Data-driven machine learning approach for water quality anomaly detection and NPS-FM non-compliance risk prediction: A study with five New Zealand rivers.
Tanishqa Goyal, Parul Tiwari
Department of Mathematical Sciences, School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, 55 Wellesley Street East, Auckland, 1010, New Zealand. Electronic address: tanishqagoyal12@gmail.com. · Department of Mathematical Sciences, School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, 55 Wellesley Street East, Auckland, 1010, New Zealand. Electronic address: parul.tiwari@aut.ac.nz.
Key points
From the paper's conclusion- The National Policy Statement for Freshwater Management (NPS-FM) 2020 sets national water quality objectives for New Zealand's freshwater, but compliance is mostly assessed after the fact, and tools for anticipating which sites may be at greatest risk of future non-compliance remain limited.
Abstract
The National Policy Statement for Freshwater Management (NPS-FM) 2020 sets national water quality objectives for New Zealand's freshwater, but compliance is mostly assessed after the fact, and tools for anticipating which sites may be at greatest risk of future non-compliance remain limited. This study presents a machine learning pipeline that detects abnormal water quality events and quantifies NPS-FM non-compliance risk, applied to five South Island rivers of New Zealand spanning four land cover types. Anomaly detection combined Isolation Forest method with seasonal interquartile range thresholds, with observations flagged by both methods classified as confirmed anomalies. A weighted risk score (0-100) was computed from NPS-FM exceedance rate, confirmed anomaly rate, 90th percentile severity, and Mann-Kendall trend slope. This risk score is then validated using temporal hold-out, literature benchmarking, and seasonal pattern analysis. The stability of the applied pipeline is assessed by using alternative anomaly detection algorithms and by varying the quality-control filter. Risk scores followed a clear land cover gradient: the urban site scored 34.12 (High risk), with 96% of total nitrogen and 72% of E. coli readings exceeding NPS-FM limits, while native vegetation sites scored 14.24-16.24 (Medium risk). A paired catchment comparison isolated land use as the dominant driver, with the pasture site recording total nitrogen concentrations 0.3-0.5 mg/L above the upstream native site. Multi-indicator anomaly co-occurrence was 10.6-14.0 times higher than expected under random noise, and temporal hold-out validation passed at four of five sites. Site rankings and risk grades were unchanged when One-Class SVM or Local Outlier Factor was substituted for Isolation Forest. This research produces interpretable, indicator-level risk scores distinguishing episodic events from persistent contamination, consistent with established land use signatures. The framework is transferable to other regulatory contexts where long-term monitoring data and threshold-based standards exist.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Data-driven optimisation of multi-agency river water quality monitoring networks under high anthropogenic pressure.Environmental science and pollution research international · 2026
- A process-based SWAT-LSTM hybrid framework for efficient water quality index modeling in urban river catchment.Water research · 2026
- Harnessing hydro chemical characterization of surface water using water quality indices and machine learning – Driven water quality modelling with special emphasis on side – Stream pollutionDesalination and Water Treatment · 2025
- Deciphering Multi-Scale Anthropogenic Drivers of River Water Quality: A Synergistic ML-GAM Cascade Framework with Sentinel-2Remote Sensing · 2026
- A machine learning approach to estimating nitrate-nitrogen concentrations in shallow groundwater across New Zealand.Chemosphere · 2026
- Machine learning for water quality prediction and uncertainty assessmentPhysics and Chemistry of the Earth Parts A/B/C · 2026