Water Heavy Metal Prediction Using a CBM Model Based on Hybrid Metaheuristic Algorithms
Hongfei Hou, Juan Yin, Xiaocong Qiu, Zhiyong Wu, Yonghui Yang, Darrell W. S. Tang, Ying Wang, Zeyu Wei, Cheng Xu · IEEE Transactions on Geoscience and Remote Sensing · 2025
Precise monitoring and forecasting of contaminants in river water quality are essential for the scientific management of aquatic ecosystems. Nonetheless, deep learning models encounter difficulties adapting to dynamic contexts when managing intricate hyperparameters and high-dimensional time-series data. This leads to inadequate generalization abilities for cross-regional multi-sample predictions. We propose a collaborative optimization mechanism that integrates the Whale Optimization Algorithm (WOA) and Grey Wolf Optimization (GWO) to facilitate the CNN-BiLSTM model in attaining optimal parameter selection for five heavy metal pollutants—Pb, Hg, As, Cr(VI), and Cd—in the Ningxia region of the Yellow River in China. Furthermore, we integrate a Multi-Head Attention mechanism to diminish computational complexity, thereby developing the WGCBM model for accurate multi-class heavy metal cross-sample predictions. Ultimately, we assess the model's generalization capability in multi-sample cross-regional predictions employing a multi-scale feature aggregation attribute classification approach. The experimental results indicate that: (1) In the Ningxia segment of the Yellow River, when the proportion of outliers ranges from 5% to 15%, the proposed method attains Accuracy, Recall, and F1 Score between 0.75–0.90, 0.74–0.89, and 0.75–0.88, respectively, showcasing exceptional predictive performance and generalization capability. (2) The WGCBM model enhances Accuracy, Recall, and F1 Score by 12.00%–25.48%, 10.34%–23.45%, and 11.89%–21.97%, respectively, as compared to the CBM and BiLSTM models. (3) The WOA-GWO collaborative optimization algorithm adeptly harmonizes global search with local exploitation, markedly decreasing the time needed for conventional parameter tuning methods, circumventing redundant searches, and leveraging distributed computing for parallel processing, thus enhancing tuning speed and computational resource efficiency. This study confirms the efficacy of integrating the WOA-GWO collaborative optimization mechanism with the CBM model. Integrating the WGCBM model into the Internet of Things (IoT) water quality monitoring network enables rapid generation of water quality predictions by aggregating data from sensors at multiple monitoring stations. This facilitates early warning notifications and decision-making assistance for regulatory bodies, thereby serving a crucial function in automated water monitoring systems and markedly improving the timeliness and efficacy of water quality management.