Kalman filtering assimilated machine learning methods significantly improve the prediction performance of water quality parameters
Accurate water quality prediction is essential for effective water pollution prevention and emergency responses. However, existing research on machine learning (ML)-based data assimilation methods remains limited, particularly in terms of addressing the combined impacts of climate change and anthropogenic activities. To address this gap, we proposed a novel ‘ML–Kalman filter (KF)’ data assimilation framework and evaluated its performance in the Dahei River Basin, a representative semi-arid watershed. Our results demonstrated significant improvements in predicting key water quality parameters, including total nitrogen (TN), total phosphorus (TP), and the permanganate index (COD Mn ), through the integration of KF with four ML models (LSTM, RF, XGBoost, and SVR). The accuracy enhancement ranged from 4.3 % to 17.6 %, with TP showing the most substantial improvement (9.2 %–17.6 %), followed by TN (6.4 %–11.1 %) and COD Mn (4.3 %–12.1 %). After assimilation, the models exhibited the following performance ranking for TN based on the coefficient of determination (R 2 ): LSTM–KF (R 2 = 0.909) > RF–KF (R 2 = 0.886) > SVR–KF (R 2 = 0.840) > XGBoost–KF (R 2 = 0.797), with similar trends observed for TP and COD Mn . The proposed framework demonstrates strong portability and applicability across different monitoring sections and temporal resolutions, offering a robust solution for regions with limited monitoring capabilities and challenging climatic conditions. These findings provide valuable data and technical support for advancing water pollution prediction and early warning systems, particularly for ecological and environmental departments operating in data-deficient regions. • The Kalman Filter effectively improved the prediction accuracy of machine learning models. • The prediction accuracy generally demonstrates the following results: LSTM-KF > RF-KF > XGBoost-KF > SVR-KF. • The LSTM-KF prediction method demonstrated considerable potential in future water environment monitoring and supervision. • This method exhibits good applicability and portability across datasets from various locations and time resolutions.
Authors
- A Yinglan
- Jinyue Chen (ORCID: https://orcid.org/0000-0001-6912-435X)
- Shilong Ren
- Ruobing Liu
- Shuping Ji
- Zhenyu Gao (ORCID: https://orcid.org/0000-0003-4808-2511)
- Lei Fang (ORCID: https://orcid.org/0000-0002-7194-8742)
- Guoqiang Wang (ORCID: https://orcid.org/0000-0002-3976-1056)
- Qiao Wang (ORCID: https://orcid.org/0000-0001-7199-1831)
Institutions
- Shandong University (CN)
- Beijing Normal University (CN)
- City University of Hong Kong, Shenzhen Research Institute (CN)
Publication Details
- Journal
- Ecological Informatics
- Published
- 2025-07-21
- DOI
- https://doi.org/10.1016/j.ecoinf.2025.103337
- Citations
- 4
- Primary Topic
- Hydrological Forecasting Using AI
- Type
- article
- Field-Weighted Citation Impact
- 3.20
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Shandong Province
- National Key Research and Development Program of China
- National Science Fund for Distinguished Young Scholars
- Basic and Applied Basic Research Foundation of Guangdong Province