Zenghui Li , Xiaopeng Li , Zhihao Wang , Zihao Li , Peng Wang , Futian Ren , Qiannan Duan , Xiaowei Lu , Lei Huang
{"title":"Dual-model LSTM-Transformer framework with hydrodynamic adaptability for TN/TP predictions in tidal reaches","authors":"Zenghui Li , Xiaopeng Li , Zhihao Wang , Zihao Li , Peng Wang , Futian Ren , Qiannan Duan , Xiaowei Lu , Lei Huang","doi":"10.1016/j.jhydrol.2025.134231","DOIUrl":null,"url":null,"abstract":"<div><div>The accurate prediction of total nitrogen (TN) and total phosphorus (TP) concentrations is crucial for mitigating eutrophication and supporting sustainable water resource management in tidal estuaries. However, the highly non-stationary dynamics of TN/TP concentrations—characterized by time-varying patterns driven by complex river-tide interactions and biogeochemical cycling—pose significant prediction challenges. While deep learning models like LSTM and Transformer have advanced water quality forecasting, their standalone applications struggle to simultaneously capture long-term dependencies, cross-variable relationships, and hydrodynamic drivers in tidal systems. To address these limitations, we developed a framework that integrates LSTM with Transformer (LSTM-Transformer, LT) and iTransformer (LSTM-iTransformer, LIT), incorporating river discharge (RD), tidal level (TL), rainfall, water temperature (Temp), and PH as key input features. Evaluated across nine sites spanning 600 km of the Yangtze River tidal reach, the dual-model framework demonstrates superior performance over baseline models (LSTM, Transformer, CNN-LSTM), achieving an average RMSE reduction of 32.6 % (range: 16.7–57.1 %). The LT—combining LSTM’s temporal memory with Transformer’s global attention—excels in river-dominated and tide-dominated zones. Meanwhile, the LIT, enhanced through inverted feature embedding, outperforms in transitional zones by resolving short-term variability and cross-parameter interactions. SHAP analysis quantitatively validates hydrodynamic drivers (RD and TL) as critical predictive factors. This study provides a robust modeling solution for TN/TP prediction in tidal reaches, addressing the urgent need for accurate forecasting to enable early pollution warnings and informed water management decisions.</div></div>","PeriodicalId":362,"journal":{"name":"Journal of Hydrology","volume":"663 ","pages":"Article 134231"},"PeriodicalIF":6.3000,"publicationDate":"2025-09-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Hydrology","FirstCategoryId":"89","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0022169425015690","RegionNum":1,"RegionCategory":"地球科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, CIVIL","Score":null,"Total":0}
引用次数: 0
Abstract
The accurate prediction of total nitrogen (TN) and total phosphorus (TP) concentrations is crucial for mitigating eutrophication and supporting sustainable water resource management in tidal estuaries. However, the highly non-stationary dynamics of TN/TP concentrations—characterized by time-varying patterns driven by complex river-tide interactions and biogeochemical cycling—pose significant prediction challenges. While deep learning models like LSTM and Transformer have advanced water quality forecasting, their standalone applications struggle to simultaneously capture long-term dependencies, cross-variable relationships, and hydrodynamic drivers in tidal systems. To address these limitations, we developed a framework that integrates LSTM with Transformer (LSTM-Transformer, LT) and iTransformer (LSTM-iTransformer, LIT), incorporating river discharge (RD), tidal level (TL), rainfall, water temperature (Temp), and PH as key input features. Evaluated across nine sites spanning 600 km of the Yangtze River tidal reach, the dual-model framework demonstrates superior performance over baseline models (LSTM, Transformer, CNN-LSTM), achieving an average RMSE reduction of 32.6 % (range: 16.7–57.1 %). The LT—combining LSTM’s temporal memory with Transformer’s global attention—excels in river-dominated and tide-dominated zones. Meanwhile, the LIT, enhanced through inverted feature embedding, outperforms in transitional zones by resolving short-term variability and cross-parameter interactions. SHAP analysis quantitatively validates hydrodynamic drivers (RD and TL) as critical predictive factors. This study provides a robust modeling solution for TN/TP prediction in tidal reaches, addressing the urgent need for accurate forecasting to enable early pollution warnings and informed water management decisions.
期刊介绍:
The Journal of Hydrology publishes original research papers and comprehensive reviews in all the subfields of the hydrological sciences including water based management and policy issues that impact on economics and society. These comprise, but are not limited to the physical, chemical, biogeochemical, stochastic and systems aspects of surface and groundwater hydrology, hydrometeorology and hydrogeology. Relevant topics incorporating the insights and methodologies of disciplines such as climatology, water resource systems, hydraulics, agrohydrology, geomorphology, soil science, instrumentation and remote sensing, civil and environmental engineering are included. Social science perspectives on hydrological problems such as resource and ecological economics, environmental sociology, psychology and behavioural science, management and policy analysis are also invited. Multi-and interdisciplinary analyses of hydrological problems are within scope. The science published in the Journal of Hydrology is relevant to catchment scales rather than exclusively to a local scale or site.