Predicting Algal Bloom Dynamics in Drinking Water Reservoirs Using High-Frequency In Situ Data and Machine Learning
Abstract
1. Introduction
2. Results
2.1. Variations in Environmental Factors in SM Reservoir
2.2. Dynamics in Algal Abundance and Its Influencing Factors
2.3. Performance Evaluation of the Transformer Model
3. Discussion
3.1. Key Factors Controlling Algal Abundance
3.2. Predictive Performance of the Optimized Transformer Model on Algal Abundance
3.3. Implications for the Reservoir Water Management
4. Conclusions
5. Materials and Methods
5.1. Study Area
5.2. Data Acquisition
5.3. Model Construction
5.3.1. Subsubsection
5.3.2. Model Selection
5.3.3. Hyperparameter Optimization
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Zhang, Y.; Deng, J.; Zhou, Y.; Zhang, Y.; Qin, B.; Song, C.; Shi, K.; Zhu, G.; Hou, X.; Zhang, Y.; et al. Drinking water safety improvement and future challenge of lakes and reservoirs. Sci. Bull. 2024, 69, 3558–3570. [Google Scholar] [CrossRef]
- Liu, Y.; Yang, B.; Xie, K.; Sun, J.; Zhu, S. Dongting Lake algal bloom forecasting: Robustness and accuracy analysis of deep learning models. J. Hazard. Mater. 2025, 485, 136804. [Google Scholar] [CrossRef]
- Hu, M.; Ma, R.; Xiong, J.; Wang, M.; Cao, Z.; Xue, K. Eutrophication state in the Eastern China based on Landsat 35-year observations. Remote Sens. Environ. 2022, 277, 113057. [Google Scholar] [CrossRef]
- Tong, Y.; Feng, L.; Wang, X.; Pi, X.; Xu, W.; Woolway, R.I. Global lakes are warming slower than surface air temperature due to accelerated evaporation. Nat. Water 2023, 1, 929–940. [Google Scholar] [CrossRef]
- Chen, S.; Huang, J.; Huang, J.; Wang, P.; Sun, C.; Zhang, Z.; Jiang, S. Explainable deep learning identifies patterns and drivers of freshwater harmful algal blooms. Environ. Sci. Ecotechnol. 2025, 23, 100522. [Google Scholar] [CrossRef]
- Du, Y.; Zhao, H.; Li, J.; Mu, Y.; Yin, Z.; Wang, M.; Hong, D.; Zhang, F.; Wang, S.; Zhang, B. Cyanobacterial blooms prediction in China’s large hypereutrophic lakes based on MODIS observations and Bayesian theory. J. Hazard. Mater. 2024, 480, 136057. [Google Scholar] [CrossRef]
- Naderian, D.; Noori, R.; Kim, D.; Jun, C.; Bateni, S.M.; Woolway, R.I.; Sharma, S.; Shi, K.; Qin, B.; Zhang, Y.; et al. Environmental controls on the conversion of nutrients to chlorophyll in lakes. Water Res. 2025, 274, 123094. [Google Scholar] [CrossRef]
- Wu, D.; Chen, M.; Shen, A.; Shi, Y. Spatiotemporal dynamics of 2-methylisoborneol produced by filamentous cyanobacteria and associated driving factors in Lake Taihu, China. Harmful Algae 2024, 138, 102703. [Google Scholar] [CrossRef]
- Cao, T.; Fang, J.; Jia, Z.; Zhu, Y.; Su, M.; Zhang, Q.; Song, Y.; Yu, J.; Yang, M. Early warning of MIB episode based on gene abundance and expression in drinking water reservoirs. Water Res. 2023, 231, 119667. [Google Scholar] [CrossRef]
- Zahir, M.; Su, Y.; Chen, Y.; Shahzad Muhammad, I.; Ayub, G.; Rahman Sami, U.; Ahmed, T.; Ijaz, J. Anthropogenic and Climate-Driven Changes on Harmful Algal Blooms in Two Chinese Reservoirs. Ecohydrology 2024, 18, e2745. [Google Scholar] [CrossRef]
- Xie, Y.; Chen, S.; Zhou, F.; Wang, J.; Liu, Y.; Gao, Y.; Yan, X.; Deng, K.; Chen, C. Development of a hybrid algal population prediction (HAPP) model by algae growth potential estimation and time series regression and its application in one reservoir in China. Water Res. 2025, 287, 124419. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Xu, C.; Lin, Q.; Xiao, W.; Huang, B.; Lu, W.; Chen, N.; Chen, J. Modeling of algal blooms: Advances, applications and prospects. Ocean Coast. Manag. 2024, 255, 107250. [Google Scholar] [CrossRef]
- Recknagel, F.; Shan, K.; Adrian, R.; Köhler, J. Early warning of harmful cyanobacteria blooms based on high frequency in situ monitoring and intelligible machine learning modelling: The case study of Lake Müggelsee (Germany). Water Res. 2025, 287, 124514. [Google Scholar] [CrossRef] [PubMed]
- Jiang, Y.; Song, Y.; Liu, J.; Liu, H.; Zang, X.; Ji, Z. Machine learning assisted precise prediction of algae bloom in large-scale water diversion engineering. Desalination 2025, 610, 118880. [Google Scholar] [CrossRef]
- Rowe, M.D.; Anderson, E.J.; Wynne, T.T.; Stumpf, R.P.; Fanslow, D.L.; Kijanka, K.; Vanderploeg, H.A.; Strickler, J.R.; Davis, T.W. Vertical distribution of buoyant Microcystis blooms in a Lagrangian particle tracking model for short-term forecasts in Lake Erie. J. Geophys. Res. Oceans 2016, 121, 5296–5314. [Google Scholar] [CrossRef]
- Zhang, Y.; Wang, Y.; Chen, J.; Lin, L.; Xiao, W.; Huang, B. Enhancing short-term algal bloom forecasting through an anti-mimicking hybrid deep learning method. J. Environ. Manag. 2025, 379, 124832. [Google Scholar] [CrossRef]
- Liang, L.; Deng, Y.; Wang, W.; Zhou, S.; Zhang, L. Influences of lower pH on phytoplankton growth in alkaline lakes after water transfer: Insights from a coupled hydrodynamic–algal ecological model and experimental analysis. Environ. Res. 2024, 257, 119201. [Google Scholar] [CrossRef]
- Lin, Y.; Zhong, W.; Zhang, X.; Zhou, X.; He, L.; Lv, J.; Zhao, Z. Environmental DNA metabarcoding revealed the impacts of anthropogenic activities on phytoplankton diversity in Dianchi Lake and its three inflow rivers. Ecol. Evol. 2023, 13, e10088. [Google Scholar] [CrossRef]
- Yu, H.; Zhang, J.; Yin, Z.; Liu, Z.; Chen, J.; Xu, J.; Gao, Q.; Liu, J. A method for quantifying the contribution of algal sources to CODMn in water bodies based on ecological chemometrics and its potential applications. J. Environ. Chem. Eng. 2024, 12, 111943. [Google Scholar] [CrossRef]
- Savadova-Ratkus, K.; Grendaitė, D.; Karosienė, J.; Stonevičius, E.; Kasperovičienė, J.; Koreivienė, J. Modelling harmful algal blooms in a mono- and a polydominant eutrophic lake under temperature and nutrient changes. Water Res. 2025, 275, 123138. [Google Scholar] [CrossRef]
- Huisman, J.; Codd, G.A.; Paerl, H.W.; Ibelings, B.W.; Verspagen, J.M.H.; Visser, P.M. Cyanobacterial blooms. Nat. Rev. Microbiol. 2018, 16, 471–483. [Google Scholar] [CrossRef]
- Ma, L.; Xiao, W.; Laws, E.A.; Bai, X.; Chiang, K.P.; Liu, X.; Chen, J.; Huang, B. Responses of phytoplankton communities to the effect of internal wave-powered upwelling. Limnol. Oceanogr. 2020, 66, 108–1098. [Google Scholar] [CrossRef]
- Wang, S.; Liang, X.; Zhang, S.; Cai, M.; Xie, Z.; Lin, L.; Chen, Z.; Rao, Y.; Zhong, Y. Dynamics of Phytoplankton Communities and Their Characteristics of Realized Niches in a Drinking Reservoir. Ecol. Evol. 2025, 15, e71180. [Google Scholar] [CrossRef] [PubMed]
- Wang, L.; Shan, K.; Yi, Y.; Yang, H.; Zhang, Y.; Xie, M.; Zhou, Q.; Shang, M. Employing hybrid deep learning for near-real-time forecasts of sensor-based algal parameters in a Microcystis bloom-dominated lake. Sci. Total Environ. 2024, 922, 171009. [Google Scholar] [CrossRef] [PubMed]
- Qian, J.; Pu, N.; Qian, L.; Xue, X.; Bi, Y.; Norra, S. Identification of driving factors of algal growth in the South-to-North Water Diversion Project by Transformer-based deep learning. Water Biol. Secur. 2023, 2, 100184. [Google Scholar] [CrossRef]
- Scavia, D.; Wang, Y.; Obenour, D. Advancing freshwater ecological forecasts: Harmful algal blooms in Lake Erie. Sci. Total Environ. 2023, 856, 158959. [Google Scholar] [CrossRef]
- Zhang, Q.; Wang, R.; Qi, Y.; Wen, F. A watershed water quality prediction model based on attention mechanism and Bi-LSTM. Environ. Sci. Pollut. Res. 2022, 29, 75664–75680. [Google Scholar] [CrossRef]
- Xu, Z.; Ge, L.; Zou, W.; Lv, B.; Yang, J.; Chai, Z.; Guo, X.; Zhu, X.; Kao, S.-J. The underestimated role of manganese in modulating the nutrient structure in a eutrophic seasonally-stratified reservoir. Water Res. 2024, 260, 121940. [Google Scholar] [CrossRef]
- Chang, J.; Zhang, S.; Zhong, Y.; Ding, S.; Zhang, W.; Huang, Q.; Ji, S.; Chi, Y. Long-term and seasonal evaluation on environmental microbiology and water quality of Shanmei reservoir in southeast China. Environ. Pollut. 2025, 367, 125650. [Google Scholar] [CrossRef]
- Pyo, J.; Park, L.J.; Pachepsky, Y.; Baek, S.-S.; Kim, K.; Cho, K.H. Using convolutional neural network for predicting cyanobacteria concentrations in river water. Water Res. 2020, 186, 116349. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. Adv. Neural Inf. Process. Syst. 2017, 30, 1–15. [Google Scholar]








Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Wang, J.; Jiang, M.; Wang, S.; Wang, Z.; Cui, Y.; Feng, Y.; Zhang, S.; Cai, M.; Zhong, Y. Predicting Algal Bloom Dynamics in Drinking Water Reservoirs Using High-Frequency In Situ Data and Machine Learning. Toxins 2026, 18, 203. https://doi.org/10.3390/toxins18050203
Wang J, Jiang M, Wang S, Wang Z, Cui Y, Feng Y, Zhang S, Cai M, Zhong Y. Predicting Algal Bloom Dynamics in Drinking Water Reservoirs Using High-Frequency In Situ Data and Machine Learning. Toxins. 2026; 18(5):203. https://doi.org/10.3390/toxins18050203
Chicago/Turabian StyleWang, Jiangbin, Min Jiang, Shuhua Wang, Zixin Wang, Yikun Cui, Ying Feng, Shanshan Zhang, Mingjiang Cai, and Yanping Zhong. 2026. "Predicting Algal Bloom Dynamics in Drinking Water Reservoirs Using High-Frequency In Situ Data and Machine Learning" Toxins 18, no. 5: 203. https://doi.org/10.3390/toxins18050203
APA StyleWang, J., Jiang, M., Wang, S., Wang, Z., Cui, Y., Feng, Y., Zhang, S., Cai, M., & Zhong, Y. (2026). Predicting Algal Bloom Dynamics in Drinking Water Reservoirs Using High-Frequency In Situ Data and Machine Learning. Toxins, 18(5), 203. https://doi.org/10.3390/toxins18050203
