Predictive modelling and optimization of electrocoagulation for nitrate removal using deep learning: Toward intelligent and sustainable water treatment.

IF 4.4 3区 环境科学与生态学 Q2 ENVIRONMENTAL SCIENCES
Harun Çiğ, Fatma Didem Alay, Benan Yazıcı Karabulut
{"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}
引用次数: 0

Abstract

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.

使用深度学习的电絮凝去除硝酸盐的预测建模和优化:迈向智能和可持续的水处理。
本研究通过应用先进的深度学习方法,研究了电絮凝(EC)工艺对合成废水中硝酸盐(NO₃-)去除的优化。基于卷积神经网络(CNN)和长短期记忆网络(LSTM)的混合模型,实现了空间特征提取和时间序列学习能力。CNN和LSTM的协同作用使EC过程复杂的、随时间变化的行为能够更准确地建模。使用Box-Behnken设计进一步优化电凝(EC),以评估六个关键变量——ph、初始NO₃浓度、电导率、电压、电流和反应时间——对NO₃去除效率的影响。得到的统计模型得到了高系数值的支持,在估计NO₃去除性能方面表现出了很强的预测能力。通过使用随机搜索算法进行超参数调优,系统地增强了模型性能,同时采用早期停止技术防止过拟合。构建了几种机器学习和深度学习模型,并基于已建立的性能指标(包括MSE、RMSE、MAE、MAPE和R2)进行了比较评估。XGBoost模型表现出优越的预测性能,MSE(44.77)、RMSE(6.69)和MAE(4.93)的最低值。此外,高R2(0.96)和调整后的R2(0.94)值表明该模型有效地捕获了数据集中相当大比例的方差。然而,CNN-LSTM混合模型也表现出优异的性能,并最终被认为是最有效的深度学习方法,因为它能够捕捉时空动态。除了预测性能外,该研究还涉及能源消耗和运营成本分析,有助于对系统可持续性进行全面评估。铝电极的平均成本为0.46美元/立方米,铁电极为0.55美元/立方米,铝/铁复合电极为0.25美元/立方米。因此,提出了一种优化的系统设计,以最大限度地提高NO₃去除效率,最大限度地减少能源使用,并促进环境可持续的做法。在5重交叉验证中,XGBoost的准确率最高(R2 = 0.932±0.051),CNN-LSTM的可靠性相当,但准确率较低(R2 = 0.886±0.056)。配对Wilcoxon检验结果为p = 0.0679,表明存在临界、无显著性差异。研究结果强调了混合深度学习架构在环境建模中的潜力,并为开发智能、经济高效和绿色水处理技术提供了一个强大的框架。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of contaminant hydrology
Journal of contaminant hydrology 环境科学-地球科学综合
CiteScore
6.80
自引率
2.80%
发文量
129
审稿时长
68 days
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信