Skip to content
Research Article Open access CC BY 4.0

Machine Learning–enabled Characterization of Normal Water Quality Behavior and Anomaly Detection in Groundwater and Surface Water Monitoring Systems

Azeez Adamolekun, Olaitan Ganiu, Toheeb Adamolekun, Francis Xian Logah, Osagie Okhuegbe

Journal of Geography, Environment and Earth Science International · pp. 61–69 · Published 29 May 2026

10.9734/jgeesi/2026/v30i61062

Abstract

Groundwater and surface water systems are monitored using physicochemical parameters such as pH, turbidity, electrical conductivity, temperature, oxidation–reduction potential (ORP), and residual chlorine to ensure environmental safety and public health. However, natural temporal variability limits the effectiveness of fixed threshold-based anomaly detection. This study proposes a data-driven framework for defining normal water quality behavior and detecting anomalies using machine learning. Historical sensor data were preprocessed to establish empirical normal ranges based on the 5th and 95th percentiles. Observations outside these bounds were labeled as abnormal, while those within were considered normal, enabling supervised classification. Two interpretable models, Logistic Regression and Random Forest, were implemented and evaluated using accuracy, precision, recall, F1-score, and ROC and precision–recall curves. Random Forest demonstrated superior performance with Precision = 0.93, Recall = 0.88, and F1-score = 0.90, outperforming Logistic Regression (Precision = 0.86, Recall = 0.74, F1-score = 0.79). The results demonstrate improved sensitivity, reduced false alarms, and stronger reliability for environmental contamination monitoring. Visualization tools, including normal range bands, correlation analysis, feature importance, temporal probability trends, and confusion matrices, enhanced interpretability. The framework enables early detection of contamination events and sensor anomalies, supporting reliable, real-time water quality monitoring and informed environmental decision-making.

Decision making machine learning water-quality sensors environmental monitoring human machine system

Cited by 2

Showing 1 of 2 known citations — external sources report more than can currently be individually listed.

Article metrics

Real usage data collected on this platform.

41

Page views

0

PDF downloads

4

Outbound clicks

2

Citations

Views over time

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

Traffic sources

Referring site, by host.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.