A unified LSTM autoencoder–random forest AI-IoT framework for real-time water quality monitoring, anomaly detection, and water quality index prediction

Real-time water quality monitoring is essential for protecting aquatic ecosystems and public health; however, existing intelligent monitoring systems typically address either anomaly detection or Water Quality Index (WQI) prediction independently, limiting their effectiveness for continuous environmental surveillance. This study proposes a unified Artificial Intelligence–Internet of Things (AI-IoT) framework that integrates a Long Short-Term Memory Autoencoder (LSTM-AE) for unsupervised temporal anomaly detection with a Random Forest regressor for WQI prediction within a coordinated decision-support architecture. The novelty of the proposed framework lies in the architectural integration of complementary learning models to simultaneously detect abnormal water quality conditions and estimate WQI in real time, rather than introducing new machine learning algorithms. A synthetic multivariate IoT water quality dataset comprising 10,000 observations was developed to emulate realistic environmental monitoring conditions, including temporal dependencies, sensor noise, drift, seasonal variations, and contamination events. Experimental evaluation demonstrated that the proposed LSTM Autoencoder achieved a ROC-AUC of 0.9763, outperforming Isolation Forest ( 0.8914 ) and One-Class SVM (0.8732) for anomaly detection. For WQI prediction, the Random Forest regressor achieved the lowest prediction error with an MSE of 2.3573, surpassing Gradient Boosting (2.6841), Sequence-to-One Recurrent Neural Network (2.9137), and Support Vector Regression (3.1048 ). These results demonstrate that integrating temporal anomaly detection with ensemble-based regression provides a robust and scalable solution for intelligent water quality monitoring. Although validated using a reproducible synthetic benchmark, the framework establishes a practical foundation for AI-enabled environmental monitoring, with future work focusing on validation using real-world IoT water quality datasets.

Authors

Institutions

Publication Details

Journal
Discover Informatics
Published
2026-10-14
DOI
https://doi.org/10.1007/s44564-026-00016-z
Primary Topic
Water Quality Monitoring Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A unified LSTM autoencoder–random forest AI-IoT framework for real-time water quality monitoring, anomaly detection, and water quality index prediction

Godfrey Perfectson Oise, Immunhierokene Clinton OBRORINDO, Augustine Emakpor Otorokpo, Ifeoma Vivian Ngonadi
Discover Informatics
Water Quality Monitoring Technologies
article

A unified LSTM autoencoder–random forest AI-IoT framework for real-time water quality monitoring, anomaly detection, and water quality index prediction

Godfrey Perfectson Oise, Immunhierokene Clinton OBRORINDO, Augustine Emakpor Otorokpo, Ifeoma Vivian Ngonadi
article en

Abstract

Real-time water quality monitoring is essential for protecting aquatic ecosystems and public health; however, existing intelligent monitoring systems typically address either anomaly detection or Water Quality Index (WQI) prediction independently, limiting their effectiveness for continuous environmental surveillance. This study proposes a unified Artificial Intelligence–Internet of Things (AI-IoT) framework that integrates a Long Short-Term Memory Autoencoder (LSTM-AE) for unsupervised temporal anomaly detection with a Random Forest regressor for WQI prediction within a coordinated decision-support architecture. The novelty of the proposed framework lies in the architectural integration of complementary learning models to simultaneously detect abnormal water quality conditions and estimate WQI in real time, rather than introducing new machine learning algorithms. A synthetic multivariate IoT water quality dataset comprising 10,000 observations was developed to emulate realistic environmental monitoring conditions, including temporal dependencies, sensor noise, drift, seasonal variations, and contamination events. Experimental evaluation demonstrated that the proposed LSTM Autoencoder achieved a ROC-AUC of 0.9763, outperforming Isolation Forest ( 0.8914 ) and One-Class SVM (0.8732) for anomaly detection. For WQI prediction, the Random Forest regressor achieved the lowest prediction error with an MSE of 2.3573, surpassing Gradient Boosting (2.6841), Sequence-to-One Recurrent Neural Network (2.9137), and Support Vector Regression (3.1048 ). These results demonstrate that integrating temporal anomaly detection with ensemble-based regression provides a robust and scalable solution for intelligent water quality monitoring. Although validated using a reproducible synthetic benchmark, the framework establishes a practical foundation for AI-enabled environmental monitoring, with future work focusing on validation using real-world IoT water quality datasets.

Discover InformaticsVol. 1(1)
University of Benin (NG), Federal University of Petroleum Resource Effurun (NG)
Clean water and sanitation
Openalex Percentile: Top 25%
Water Quality Monitoring Technologies
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.