Machine learning models for water quality: Predicting pollutant loads and assessing conservation practice's effectiveness in agricultural fields

Estimating real-time sources of pollutants and evaluating the effectiveness of conservation practices in agriculture are crucial for prevention of water resources contamination. Data driven Machine Learning (ML) models may be more effective to predict daily water pollutant loads and may not need many types of data such as soil, weather, crop management, etc., that are needed by currently used process-based models. In this study, daily hydro-meteorological data (e.g., temperature, rainfall, irrigation, runoff, etc.) were collected from paired control and treatment fields, each with an area of 7.81 ha, from 2016 to 2022, located near Manila, Arkansas, where cover crops and filter strips were used for pollution mitigation in the treatment field only. Pollutant loads, including sediment, total phosphorus (TP), and total nitrogen (TN), were measured daily and used to train and test nine ML models: Multiple Linear Regression (MLR), K-Nearest Neighbors (KNN), Random Forest (RF), Extreme Gradient Boosting (XGB), Histogram Gradient Boosting (HGB), Artificial Neural Networks (ANN), Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNN), and a hybrid CNN-LSTM model. Results showed that the hybrid model best-predicted runoff in the control field (Coefficient of determination (R2) = 0.87) and KNN in the treatment field (R2 = 0.82). LSTM excelled in sediment prediction for both fields, while RF and ANN were superior for TP and TN predictions, respectively. Model performance declined from runoff to sediment to nutrient loads due to error propagation. Advanced models (e.g., LSTM, CNN, and hybrid) outperformed conventional ML models, showing robustness against overfitting. Shapley Additive exPlanations (SHAP) analysis highlighted precipitation and runoff as key drivers of pollutant loads. Conservation practices significantly reduced pollutant loads, with the treatment field achieving reductions of 33 % (runoff), 46 % (sediment), 47 % (TP), and 44 % (TN) compared to the control field. These findings demonstrate the effectiveness of ML models in predicting the pollutant loads based on calibrated ML models and hydrometeorological data, which can be helpful for site-specific monitoring of water pollutants in the agricultural field. The results also highlight the tangible benefits of conservation practices in mitigating agricultural pollution.

Authors

Publication Details

Journal
Ecological Informatics
Published
2025-10-27
DOI
https://doi.org/10.1016/j.ecoinf.2025.103479
Citations
2
Primary Topic
Hydrology and Watershed Management Studies
Type
article
Field-Weighted Citation Impact
1.63
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine learning models for water quality: Predicting pollutant loads and assessing conservation practice's effectiveness in agricultural fields

Arjun Thapa, Niroj Aryal, Michele L. Reba
2 citations
Ecological Informatics
Hydrology and Watershed Management Studies
1.63
article

Machine learning models for water quality: Predicting pollutant loads and assessing conservation practice's effectiveness in agricultural fields

Arjun Thapa, Niroj Aryal, Michele L. Reba
article en
2 citations

Abstract

Estimating real-time sources of pollutants and evaluating the effectiveness of conservation practices in agriculture are crucial for prevention of water resources contamination. Data driven Machine Learning (ML) models may be more effective to predict daily water pollutant loads and may not need many types of data such as soil, weather, crop management, etc., that are needed by currently used process-based models. In this study, daily hydro-meteorological data (e.g., temperature, rainfall, irrigation, runoff, etc.) were collected from paired control and treatment fields, each with an area of 7.81 ha, from 2016 to 2022, located near Manila, Arkansas, where cover crops and filter strips were used for pollution mitigation in the treatment field only. Pollutant loads, including sediment, total phosphorus (TP), and total nitrogen (TN), were measured daily and used to train and test nine ML models: Multiple Linear Regression (MLR), K-Nearest Neighbors (KNN), Random Forest (RF), Extreme Gradient Boosting (XGB), Histogram Gradient Boosting (HGB), Artificial Neural Networks (ANN), Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNN), and a hybrid CNN-LSTM model. Results showed that the hybrid model best-predicted runoff in the control field (Coefficient of determination (R2) = 0.87) and KNN in the treatment field (R2 = 0.82). LSTM excelled in sediment prediction for both fields, while RF and ANN were superior for TP and TN predictions, respectively. Model performance declined from runoff to sediment to nutrient loads due to error propagation. Advanced models (e.g., LSTM, CNN, and hybrid) outperformed conventional ML models, showing robustness against overfitting. Shapley Additive exPlanations (SHAP) analysis highlighted precipitation and runoff as key drivers of pollutant loads. Conservation practices significantly reduced pollutant loads, with the treatment field achieving reductions of 33 % (runoff), 46 % (sediment), 47 % (TP), and 44 % (TN) compared to the control field. These findings demonstrate the effectiveness of ML models in predicting the pollutant loads based on calibrated ML models and hydrometeorological data, which can be helpful for site-specific monitoring of water pollutants in the agricultural field. The results also highlight the tangible benefits of conservation practices in mitigating agricultural pollution.

Ecological InformaticsVol. 92
Openalex Percentile: Top 14%
Hydrology and Watershed Management Studies
1.63
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.