{"title":"利用深度学习和检索增强生成的大型语言模型改进多因素河流水质预测","authors":"Zuxiang Situ, Qiyang Ling, Hongwu Tang, Huiming Zhang, Hong Chen, Shengqi Lyu, Qihua Ran, Xiangju Cheng","doi":"10.1016/j.ecolind.2026.115572","DOIUrl":null,"url":null,"abstract":"<div><div>Water quality prediction is critical to protect river ecosystems and sustain effective water management under increasing urbanization pressures. Current methods rely on a limited number of influencing factors and lack interpretability, which presents challenges in practical applications. Emerging large language models (LLMs) have strong capabilities for understanding domain knowledge, but require most relevant information for reliability. This study proposed an automated multi-factor river water quality prediction framework by coupling deep learning with LLMs enhanced by retrieval-augmented generation (RAG). A multi-dimensional dataset was constructed by integrating water quality with meteorological, socio-economic and hydro-topographic features to fully characterize river dynamics. Then, LLM-guided hybrid deep learning model, combining convolutional neural network (CNN), long short-term memory (LSTM) and attention mechanisms, namely LCLA model, was developed to predict six water quality indicators. Hyperparameters covering model structure and training strategy were efficiently configured through a literature-based knowledge retrieval, achieving optimal MAE, MSE, RMSE, and MAPE of 0.42, 0.96, 0.54, and 0.11, respectively, with improved optimization efficiency. Model interpretability was enhanced using Shapley analysis, revealing main contributions of turbidity, domestic water use, and river discharge. Finally, a RAG-enhanced multi-agent system was established to perform water quality grade classification and improvement recommendation generation by integrating domain knowledge and expert experience with LLM reasoning. The case study of Xinwu District demonstrated actionable management guidance consistent with on-site conditions. This study offered a reliable and efficient framework, with advantages in prediction performance and knowledge decision support, for advancing intelligent river water quality prediction and management in complex environments.</div></div>","PeriodicalId":11459,"journal":{"name":"Ecological Indicators","volume":"191 ","pages":"Article 115572"},"PeriodicalIF":8.7000,"publicationDate":"2026-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Improving multi-factor river water quality prediction using deep learning and large language models with retrieval-augmented generation\",\"authors\":\"Zuxiang Situ, Qiyang Ling, Hongwu Tang, Huiming Zhang, Hong Chen, Shengqi Lyu, Qihua Ran, Xiangju Cheng\",\"doi\":\"10.1016/j.ecolind.2026.115572\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Water quality prediction is critical to protect river ecosystems and sustain effective water management under increasing urbanization pressures. Current methods rely on a limited number of influencing factors and lack interpretability, which presents challenges in practical applications. Emerging large language models (LLMs) have strong capabilities for understanding domain knowledge, but require most relevant information for reliability. This study proposed an automated multi-factor river water quality prediction framework by coupling deep learning with LLMs enhanced by retrieval-augmented generation (RAG). A multi-dimensional dataset was constructed by integrating water quality with meteorological, socio-economic and hydro-topographic features to fully characterize river dynamics. Then, LLM-guided hybrid deep learning model, combining convolutional neural network (CNN), long short-term memory (LSTM) and attention mechanisms, namely LCLA model, was developed to predict six water quality indicators. Hyperparameters covering model structure and training strategy were efficiently configured through a literature-based knowledge retrieval, achieving optimal MAE, MSE, RMSE, and MAPE of 0.42, 0.96, 0.54, and 0.11, respectively, with improved optimization efficiency. Model interpretability was enhanced using Shapley analysis, revealing main contributions of turbidity, domestic water use, and river discharge. Finally, a RAG-enhanced multi-agent system was established to perform water quality grade classification and improvement recommendation generation by integrating domain knowledge and expert experience with LLM reasoning. The case study of Xinwu District demonstrated actionable management guidance consistent with on-site conditions. This study offered a reliable and efficient framework, with advantages in prediction performance and knowledge decision support, for advancing intelligent river water quality prediction and management in complex environments.</div></div>\",\"PeriodicalId\":11459,\"journal\":{\"name\":\"Ecological Indicators\",\"volume\":\"191 \",\"pages\":\"Article 115572\"},\"PeriodicalIF\":8.7000,\"publicationDate\":\"2026-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Ecological Indicators\",\"FirstCategoryId\":\"93\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1470160X2600974X\",\"RegionNum\":2,\"RegionCategory\":\"环境科学与生态学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"2026/9/25 0:00:00\",\"PubModel\":\"Epub\",\"JCR\":\"Q1\",\"JCRName\":\"ENVIRONMENTAL SCIENCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Ecological Indicators","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1470160X2600974X","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/9/25 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"ENVIRONMENTAL SCIENCES","Score":null,"Total":0}
Improving multi-factor river water quality prediction using deep learning and large language models with retrieval-augmented generation
Water quality prediction is critical to protect river ecosystems and sustain effective water management under increasing urbanization pressures. Current methods rely on a limited number of influencing factors and lack interpretability, which presents challenges in practical applications. Emerging large language models (LLMs) have strong capabilities for understanding domain knowledge, but require most relevant information for reliability. This study proposed an automated multi-factor river water quality prediction framework by coupling deep learning with LLMs enhanced by retrieval-augmented generation (RAG). A multi-dimensional dataset was constructed by integrating water quality with meteorological, socio-economic and hydro-topographic features to fully characterize river dynamics. Then, LLM-guided hybrid deep learning model, combining convolutional neural network (CNN), long short-term memory (LSTM) and attention mechanisms, namely LCLA model, was developed to predict six water quality indicators. Hyperparameters covering model structure and training strategy were efficiently configured through a literature-based knowledge retrieval, achieving optimal MAE, MSE, RMSE, and MAPE of 0.42, 0.96, 0.54, and 0.11, respectively, with improved optimization efficiency. Model interpretability was enhanced using Shapley analysis, revealing main contributions of turbidity, domestic water use, and river discharge. Finally, a RAG-enhanced multi-agent system was established to perform water quality grade classification and improvement recommendation generation by integrating domain knowledge and expert experience with LLM reasoning. The case study of Xinwu District demonstrated actionable management guidance consistent with on-site conditions. This study offered a reliable and efficient framework, with advantages in prediction performance and knowledge decision support, for advancing intelligent river water quality prediction and management in complex environments.
期刊介绍:
The ultimate aim of Ecological Indicators is to integrate the monitoring and assessment of ecological and environmental indicators with management practices. The journal provides a forum for the discussion of the applied scientific development and review of traditional indicator approaches as well as for theoretical, modelling and quantitative applications such as index development. Research into the following areas will be published.
• All aspects of ecological and environmental indicators and indices.
• New indicators, and new approaches and methods for indicator development, testing and use.
• Development and modelling of indices, e.g. application of indicator suites across multiple scales and resources.
• Analysis and research of resource, system- and scale-specific indicators.
• Methods for integration of social and other valuation metrics for the production of scientifically rigorous and politically-relevant assessments using indicator-based monitoring and assessment programs.
• How research indicators can be transformed into direct application for management purposes.
• Broader assessment objectives and methods, e.g. biodiversity, biological integrity, and sustainability, through the use of indicators.
• Resource-specific indicators such as landscape, agroecosystems, forests, wetlands, etc.