Value and limitations of machine learning in high-frequency nutrient data for gap-filling, forecasting, and transport process interpretation

Environ Monit Assess. 2023 Jun 27;195(7):892. doi: 10.1007/s10661-023-11519-9.

Abstract

High-frequency monitoring of water quality in catchments brings along the challenge of post-processing large amounts of data. Moreover, monitoring stations are often remote and technical issues resulting in data gaps are common. Machine learning algorithms can be applied to fill these gaps, and to a certain extent, for predictions and interpretation. The objectives of this study were (1) to evaluate six different machine learning models for gap-filling in a high-frequency nitrate and total phosphorus concentration time series, (2) to showcase the potential added value (and limitations) of machine learning to interpret underlying processes, and (3) to study the limits of machine learning algorithms for predictions outside the training period. We used a 4-year high-frequency dataset from a ditch draining one intensive dairy farm in the east of The Netherlands. Continuous time series of precipitation, evapotranspiration, groundwater levels, discharge, turbidity, and nitrate or total phosphorus were used as predictors for total phosphorus and nitrate concentrations respectively. Our results showed that the random forest algorithm had the best performance to fill in data-gaps, with R2 higher than 0.92 and short computation times. The feature importance helped understanding the changes in transport processes linked to water conservation measures and rain variability. Applying the machine learning model outside the training period resulted in a low performance, largely due to system changes (manure surplus and water conservation) which were not included as predictors. This study offers a valuable and novel example of how to use and interpret machine learning models for post-processing high-frequency water quality data.

Keywords: Data-based models; Groundwater surface water interactions; Missing data; Random forest; Water management.

MeSH terms

  • Environmental Monitoring* / methods
  • Machine Learning
  • Nitrates* / analysis
  • Phosphorus / analysis
  • Water Quality

Substances

  • Nitrates
  • Phosphorus