A LoRa-Based Wireless Sensor Network for Urban Water Quality Monitoring with Real-Time Machine Learning and Energy Analysis.
Iman Valizadeh, Lorena Parra, Jaime Lloret
Department of Communications, Universitat Politècnica de València, 46022 Valencia, Spain. · Departamento de Producción Agraria, Escuela Técnica Superior de Ingeniería Agronómica, Alimentaria y de Biosistemas, Universidad Politécnica de Madrid, 28040 Madrid, Spain.
Key points
From the paper's conclusion- These results show that machine learning can be useful for reconstructing individual missing or invalid UV measurements when the corresponding optical measurements are available.
Abstract
This paper presents a LoRa-based system for real-time urban water quality monitoring. The proposed platform integrates several sensors, including ultraviolet (UV), infrared (IR), red-green-blue (RGB), pH, turbidity, and temperature sensors, to monitor different water quality parameters. A total of 1443 sensor records were collected during the experiments. Among these records, 75 UV measurements, corresponding to approximately 5.2% of the dataset, were missing or invalid while the Red, Green, and Blue (RGB) and IR measurements were available. Several regression and machine learning models were evaluated to reconstruct these UV values. Multiple Linear Regression showed limited performance in the initial random train-test evaluation (R2 = 0.12), while second-order Polynomial Regression achieved a considerably higher R2 of 0.963. Support Vector Regression (SVR), k-Nearest Neighbors (KNN), Multi-Layer Perceptron (MLP), and Random Forest (RF) were also evaluated. Random Forest obtained the highest R2 in the random train-test evaluation (R2 = 0.991). However, the results were less consistent when the models were evaluated using Leave-One-Session-Out (LOSO) validation. In this evaluation, KNN obtained the lowest mean absolute error (MAE) and root mean squared error (RMSE), while the mean R2 values were negative for all evaluated models, showing limited generalization between experimental sessions. The possible energy benefit of UV reconstruction was also estimated. Based on an active power of 2.995 W and an acquisition time of 10 s, avoiding 75 additional acquisition cycles would correspond to approximately 0.624 Wh of acquisition energy, or 4.94% under the assumptions used in the energy analysis. These results show that machine learning can be useful for reconstructing individual missing or invalid UV measurements when the corresponding optical measurements are available. At the same time, the differences observed between experimental sessions show that further experiments with more independent sessions and longer field deployments are needed.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An Energy-Efficient Hybrid LoRa-Wi-Fi Architecture for Real- Time Water Quality Monitoring and Machine Learning-Based Trend Forecasting.Sensors (Basel, Switzerland) · 2026
- Water Quality Identification: Integrating IoT Sensors and Deep Learning for Near-Real-Time Water Quality AssessmentApplied Sciences · 2026
- Internet of Things-Enabled Water Quality Monitoring System.Journal of visualized experiments : JoVE · 2026
- Machine Learning for Soft Sensing in Water Quality Monitoring: A Survey and TutorialJournal of Sensor and Actuator Networks · 2026
- A LoRaWAN-Enabled Capacitive Sensor Network for Soil Moisture and Groundwater Monitoring.Sensors (Basel, Switzerland) · 2026
- Agriedge: Lora-based Edge Iot Smart Irrigation System for Precision AgricultureInternational Journal For Multidisciplinary Research · 2026