{"title":"Real-time effluent water quality prediction model based on BiLSTM and KAN for wastewater treatment plants","authors":"Siyu Liu , Zhaocai Wang","doi":"10.1016/j.jwpe.2025.108750","DOIUrl":null,"url":null,"abstract":"<div><div>Predicting effluent water quality in wastewater treatment plants (WWTPs) is essential for operation optimization, resource efficiency, and regulatory compliance. However, traditional methods struggle with complex temporal dynamics and nonlinear interactions, and current research lacks unified approaches for feature interaction, noise robustness, and multiscale modeling. In this study, we introduce a hybrid model combining bidirectional long short-term memory (BiLSTM) and Kolmogorov-Arnold networks (KAN), alongside a feature-selection mechanism that fuses Spearman, Kendall, and maximal information coefficient (MIC) metrics to identify key water-quality drivers. The feature-selection strategy integrates three methods to capture both monotonic and non-monotonic associations, reducing noise by focusing on impactful predictors. The model synergistically combines BiLSTM's bidirectional temporal feature extraction (capturing past-future context of time-series data) with KAN's strong nonlinear approximation power (modeling complex interactions via spline-based univariate function combinations, based on the Kolmogorov-Arnold theorem), optimizing spatiotemporal feature integration through a dynamic weighted gating mechanism. Experimental results show that, compared with benchmark models such as long short-term memory (LSTM), the model reduces the root mean square error (RMSE) in predicting effluent chemical oxygen demand (COD) by 7.67 % to 45.17 % and improves the coefficient of determination (R<sup>2</sup>) by 0.96 % to 14.76 %, demonstrating superior forecasting performance. Temporal differential analysis uncovers water quality fluctuations within a day, while multiscale forecasting achieves R<sup>2</sup> > 0.92, validating the model's ability to capture dynamic changes and perform nonlinear mapping. This study further applies SHapley Additive Explanation (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) for interpretability: SHAP identifies key drivers while LIME clarifies how these variables influence specific predictions, aiding operational adjustments. Noise-injection tests confirm robustness, ensuring reliability under sensor drift. This framework offers a comprehensive, interpretable, and resilient solution for real-time WWTP control (e.g., dynamic carbon source dosing) and advances smart water management.</div></div>","PeriodicalId":17528,"journal":{"name":"Journal of water process engineering","volume":"78 ","pages":"Article 108750"},"PeriodicalIF":6.7000,"publicationDate":"2025-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of water process engineering","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2214714425018239","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, CHEMICAL","Score":null,"Total":0}
引用次数: 0
Abstract
Predicting effluent water quality in wastewater treatment plants (WWTPs) is essential for operation optimization, resource efficiency, and regulatory compliance. However, traditional methods struggle with complex temporal dynamics and nonlinear interactions, and current research lacks unified approaches for feature interaction, noise robustness, and multiscale modeling. In this study, we introduce a hybrid model combining bidirectional long short-term memory (BiLSTM) and Kolmogorov-Arnold networks (KAN), alongside a feature-selection mechanism that fuses Spearman, Kendall, and maximal information coefficient (MIC) metrics to identify key water-quality drivers. The feature-selection strategy integrates three methods to capture both monotonic and non-monotonic associations, reducing noise by focusing on impactful predictors. The model synergistically combines BiLSTM's bidirectional temporal feature extraction (capturing past-future context of time-series data) with KAN's strong nonlinear approximation power (modeling complex interactions via spline-based univariate function combinations, based on the Kolmogorov-Arnold theorem), optimizing spatiotemporal feature integration through a dynamic weighted gating mechanism. Experimental results show that, compared with benchmark models such as long short-term memory (LSTM), the model reduces the root mean square error (RMSE) in predicting effluent chemical oxygen demand (COD) by 7.67 % to 45.17 % and improves the coefficient of determination (R2) by 0.96 % to 14.76 %, demonstrating superior forecasting performance. Temporal differential analysis uncovers water quality fluctuations within a day, while multiscale forecasting achieves R2 > 0.92, validating the model's ability to capture dynamic changes and perform nonlinear mapping. This study further applies SHapley Additive Explanation (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) for interpretability: SHAP identifies key drivers while LIME clarifies how these variables influence specific predictions, aiding operational adjustments. Noise-injection tests confirm robustness, ensuring reliability under sensor drift. This framework offers a comprehensive, interpretable, and resilient solution for real-time WWTP control (e.g., dynamic carbon source dosing) and advances smart water management.
期刊介绍:
The Journal of Water Process Engineering aims to publish refereed, high-quality research papers with significant novelty and impact in all areas of the engineering of water and wastewater processing . Papers on advanced and novel treatment processes and technologies are particularly welcome. The Journal considers papers in areas such as nanotechnology and biotechnology applications in water, novel oxidation and separation processes, membrane processes (except those for desalination) , catalytic processes for the removal of water contaminants, sustainable processes, water reuse and recycling, water use and wastewater minimization, integrated/hybrid technology, process modeling of water treatment and novel treatment processes. Submissions on the subject of adsorbents, including standard measurements of adsorption kinetics and equilibrium will only be considered if there is a genuine case for novelty and contribution, for example highly novel, sustainable adsorbents and their use: papers on activated carbon-type materials derived from natural matter, or surfactant-modified clays and related minerals, would not fulfil this criterion. The Journal particularly welcomes contributions involving environmentally, economically and socially sustainable technology for water treatment, including those which are energy-efficient, with minimal or no chemical consumption, and capable of water recycling and reuse that minimizes the direct disposal of wastewater to the aquatic environment. Papers that describe novel ideas for solving issues related to water quality and availability are also welcome, as are those that show the transfer of techniques from other disciplines. The Journal will consider papers dealing with processes for various water matrices including drinking water (except desalination), domestic, urban and industrial wastewaters, in addition to their residues. It is expected that the journal will be of particular relevance to chemical and process engineers working in the field. The Journal welcomes Full Text papers, Short Communications, State-of-the-Art Reviews and Letters to Editors and Case Studies