{"title":"使用深度学习的电絮凝去除硝酸盐的预测建模和优化:迈向智能和可持续的水处理。","authors":"Harun Çiğ, Fatma Didem Alay, Benan Yazıcı Karabulut","doi":"10.1016/j.jconhyd.2025.104751","DOIUrl":null,"url":null,"abstract":"<p><p>This study investigates the optimization of the electrocoagulation (EC) process for nitrate (NO₃<sup>-</sup>) removal from synthetic wastewater through the application of advanced deep learning methodologies. A hybrid model integrating Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks was developed to exploit both spatial feature extraction and temporal sequence learning capabilities. The synergy of CNN and LSTM enabled more accurate modelling of the complex, time-dependent behaviour of the EC process. Electrocoagulation (EC) was further optimized using a Box-Behnken design to evaluate the effects of six key variables-pH, initial NO₃<sup>-</sup> concentration, conductivity, voltage, current, and reaction time-on NO₃<sup>-</sup> removal efficiency. The resulting statistical model, supported by high coefficient values, demonstrated strong predictive capability for estimating NO₃<sup>-</sup> removal performance. Model performance was systematically enhanced through hyperparameter tuning using the Random Search algorithm, while the Early Stopping technique was employed to prevent overfitting. Several machine learning and deep learning models were constructed and comparatively evaluated based on established performance metrics, including MSE, RMSE, MAE, MAPE, and R<sup>2</sup>. The XGBoost model demonstrated superior predictive performance, yielding the lowest values for MSE (44.77), RMSE (6.69), and MAE (4.93). Furthermore, the high R<sup>2</sup> (0.96) and adjusted R<sup>2</sup> (0.94) values indicate that the model effectively captured a substantial proportion of the variance within the dataset. However, the CNN-LSTM hybrid model also showed excellent performance and was ultimately identified as the most effective deep learning approach due to its ability to capture spatiotemporal dynamics. Beyond predictive performance, the study also addressed energy consumption and operational cost analyses, contributing to a holistic evaluation of system sustainability. The average costs were calculated as $0.46/m<sup>3</sup> for Al, $0.55/m<sup>3</sup> for Fe, and $0.25/m<sup>3</sup> for the Al/Fe combination electrodes. Accordingly, an optimized system design was proposed to maximize NO₃<sup>-</sup> removal efficiency, minimize energy usage, and promote environmentally sustainable practices. In 5-fold cross-validation, XGBoost achieved the highest accuracy (R<sup>2</sup> = 0.932 ± 0.051), while CNN-LSTM showed comparable reliability but lower performance (R<sup>2</sup> = 0.886 ± 0.056). The paired Wilcoxon test yielded p = 0.0679, indicating a borderline, non-significant difference. The results underscore the potential of hybrid deep learning architectures in environmental modelling and provide a robust framework for the development of intelligent, cost-effective, and green water treatment technologies.</p>","PeriodicalId":15530,"journal":{"name":"Journal of contaminant hydrology","volume":"276 ","pages":"104751"},"PeriodicalIF":4.4000,"publicationDate":"2025-10-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Predictive modelling and optimization of electrocoagulation for nitrate removal using deep learning: Toward intelligent and sustainable water treatment.\",\"authors\":\"Harun Çiğ, Fatma Didem Alay, Benan Yazıcı Karabulut\",\"doi\":\"10.1016/j.jconhyd.2025.104751\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>This study investigates the optimization of the electrocoagulation (EC) process for nitrate (NO₃<sup>-</sup>) removal from synthetic wastewater through the application of advanced deep learning methodologies. A hybrid model integrating Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks was developed to exploit both spatial feature extraction and temporal sequence learning capabilities. The synergy of CNN and LSTM enabled more accurate modelling of the complex, time-dependent behaviour of the EC process. Electrocoagulation (EC) was further optimized using a Box-Behnken design to evaluate the effects of six key variables-pH, initial NO₃<sup>-</sup> concentration, conductivity, voltage, current, and reaction time-on NO₃<sup>-</sup> removal efficiency. The resulting statistical model, supported by high coefficient values, demonstrated strong predictive capability for estimating NO₃<sup>-</sup> removal performance. Model performance was systematically enhanced through hyperparameter tuning using the Random Search algorithm, while the Early Stopping technique was employed to prevent overfitting. Several machine learning and deep learning models were constructed and comparatively evaluated based on established performance metrics, including MSE, RMSE, MAE, MAPE, and R<sup>2</sup>. The XGBoost model demonstrated superior predictive performance, yielding the lowest values for MSE (44.77), RMSE (6.69), and MAE (4.93). Furthermore, the high R<sup>2</sup> (0.96) and adjusted R<sup>2</sup> (0.94) values indicate that the model effectively captured a substantial proportion of the variance within the dataset. However, the CNN-LSTM hybrid model also showed excellent performance and was ultimately identified as the most effective deep learning approach due to its ability to capture spatiotemporal dynamics. Beyond predictive performance, the study also addressed energy consumption and operational cost analyses, contributing to a holistic evaluation of system sustainability. The average costs were calculated as $0.46/m<sup>3</sup> for Al, $0.55/m<sup>3</sup> for Fe, and $0.25/m<sup>3</sup> for the Al/Fe combination electrodes. Accordingly, an optimized system design was proposed to maximize NO₃<sup>-</sup> removal efficiency, minimize energy usage, and promote environmentally sustainable practices. In 5-fold cross-validation, XGBoost achieved the highest accuracy (R<sup>2</sup> = 0.932 ± 0.051), while CNN-LSTM showed comparable reliability but lower performance (R<sup>2</sup> = 0.886 ± 0.056). The paired Wilcoxon test yielded p = 0.0679, indicating a borderline, non-significant difference. The results underscore the potential of hybrid deep learning architectures in environmental modelling and provide a robust framework for the development of intelligent, cost-effective, and green water treatment technologies.</p>\",\"PeriodicalId\":15530,\"journal\":{\"name\":\"Journal of contaminant hydrology\",\"volume\":\"276 \",\"pages\":\"104751\"},\"PeriodicalIF\":4.4000,\"publicationDate\":\"2025-10-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of contaminant hydrology\",\"FirstCategoryId\":\"93\",\"ListUrlMain\":\"https://doi.org/10.1016/j.jconhyd.2025.104751\",\"RegionNum\":3,\"RegionCategory\":\"环境科学与生态学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"ENVIRONMENTAL SCIENCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of contaminant hydrology","FirstCategoryId":"93","ListUrlMain":"https://doi.org/10.1016/j.jconhyd.2025.104751","RegionNum":3,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ENVIRONMENTAL SCIENCES","Score":null,"Total":0}
Predictive modelling and optimization of electrocoagulation for nitrate removal using deep learning: Toward intelligent and sustainable water treatment.
This study investigates the optimization of the electrocoagulation (EC) process for nitrate (NO₃-) removal from synthetic wastewater through the application of advanced deep learning methodologies. A hybrid model integrating Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks was developed to exploit both spatial feature extraction and temporal sequence learning capabilities. The synergy of CNN and LSTM enabled more accurate modelling of the complex, time-dependent behaviour of the EC process. Electrocoagulation (EC) was further optimized using a Box-Behnken design to evaluate the effects of six key variables-pH, initial NO₃- concentration, conductivity, voltage, current, and reaction time-on NO₃- removal efficiency. The resulting statistical model, supported by high coefficient values, demonstrated strong predictive capability for estimating NO₃- removal performance. Model performance was systematically enhanced through hyperparameter tuning using the Random Search algorithm, while the Early Stopping technique was employed to prevent overfitting. Several machine learning and deep learning models were constructed and comparatively evaluated based on established performance metrics, including MSE, RMSE, MAE, MAPE, and R2. The XGBoost model demonstrated superior predictive performance, yielding the lowest values for MSE (44.77), RMSE (6.69), and MAE (4.93). Furthermore, the high R2 (0.96) and adjusted R2 (0.94) values indicate that the model effectively captured a substantial proportion of the variance within the dataset. However, the CNN-LSTM hybrid model also showed excellent performance and was ultimately identified as the most effective deep learning approach due to its ability to capture spatiotemporal dynamics. Beyond predictive performance, the study also addressed energy consumption and operational cost analyses, contributing to a holistic evaluation of system sustainability. The average costs were calculated as $0.46/m3 for Al, $0.55/m3 for Fe, and $0.25/m3 for the Al/Fe combination electrodes. Accordingly, an optimized system design was proposed to maximize NO₃- removal efficiency, minimize energy usage, and promote environmentally sustainable practices. In 5-fold cross-validation, XGBoost achieved the highest accuracy (R2 = 0.932 ± 0.051), while CNN-LSTM showed comparable reliability but lower performance (R2 = 0.886 ± 0.056). The paired Wilcoxon test yielded p = 0.0679, indicating a borderline, non-significant difference. The results underscore the potential of hybrid deep learning architectures in environmental modelling and provide a robust framework for the development of intelligent, cost-effective, and green water treatment technologies.
期刊介绍:
The Journal of Contaminant Hydrology is an international journal publishing scientific articles pertaining to the contamination of subsurface water resources. Emphasis is placed on investigations of the physical, chemical, and biological processes influencing the behavior and fate of organic and inorganic contaminants in the unsaturated (vadose) and saturated (groundwater) zones, as well as at groundwater-surface water interfaces. The ecological impacts of contaminants transported both from and to aquifers are of interest. Articles on contamination of surface water only, without a link to groundwater, are out of the scope. Broad latitude is allowed in identifying contaminants of interest, and include legacy and emerging pollutants, nutrients, nanoparticles, pathogenic microorganisms (e.g., bacteria, viruses, protozoa), microplastics, and various constituents associated with energy production (e.g., methane, carbon dioxide, hydrogen sulfide).
The journal''s scope embraces a wide range of topics including: experimental investigations of contaminant sorption, diffusion, transformation, volatilization and transport in the surface and subsurface; characterization of soil and aquifer properties only as they influence contaminant behavior; development and testing of mathematical models of contaminant behaviour; innovative techniques for restoration of contaminated sites; development of new tools or techniques for monitoring the extent of soil and groundwater contamination; transformation of contaminants in the hyporheic zone; effects of contaminants traversing the hyporheic zone on surface water and groundwater ecosystems; subsurface carbon sequestration and/or turnover; and migration of fluids associated with energy production into groundwater.