{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T09:03:12Z","timestamp":1790672592036,"version":"4.1.0"},"reference-count":40,"publisher":"MDPI AG","issue":"19","license":[{"start":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T00:00:00Z","timestamp":1790640000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100004837","name":"Ministerio de Ciencia e Innovaci\u00f3n","doi-asserted-by":"publisher","award":["PID2023-153039OB-I00\/AEI\/10.13039\/501100011033"],"award-info":[{"award-number":["PID2023-153039OB-I00\/AEI\/10.13039\/501100011033"]}],"id":[{"id":"10.13039\/501100004837","id-type":"DOI","asserted-by":"publisher"}]},{"award":["PID2023-153039OB-I00\/AEI\/10.13039\/501100011033"],"award-info":[{"award-number":["PID2023-153039OB-I00\/AEI\/10.13039\/501100011033"]}],"id":[{"id":"https:\/\/ror.org\/05r0vyz12","id-type":"ROR","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>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\u2013test 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\u2013test 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.<\/jats:p>","DOI":"10.3390\/s26196159","type":"journal-article","created":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T08:12:42Z","timestamp":1790669562000},"page":"6159","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["A LoRa-Based Wireless Sensor Network for Urban Water Quality Monitoring with Real-Time Machine Learning and Energy Analysis"],"prefix":"10.3390","volume":"26","author":[{"ORCID":"https:\/\/orcid.org\/0009-0002-9525-2800","authenticated-orcid":false,"given":"Iman","family":"Valizadeh","sequence":"first","affiliation":[{"name":"Department of Communications, Universitat Polit\u00e8cnica de Val\u00e8ncia, 46022 Valencia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"},{"role":"conceptualization","vocabulary":"credit"},{"role":"validation","vocabulary":"credit"},{"role":"writing-original-draft","vocabulary":"credit"},{"role":"investigation","vocabulary":"credit"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9215-8734","authenticated-orcid":false,"given":"Lorena","family":"Parra","sequence":"additional","affiliation":[{"name":"Departamento de Producci\u00f3n Agraria, Escuela T\u00e9cnica Superior de Ingenier\u00eda Agron\u00f3mica, Alimentaria y de Biosistemas, Universidad Polit\u00e9cnica de Madrid, 28040 Madrid, Spain"}],"role":[{"vocabulary":"crossref","role":"author"},{"role":"methodology","vocabulary":"credit"},{"role":"investigation","vocabulary":"credit"},{"role":"writing-original-draft","vocabulary":"credit"},{"role":"visualization","vocabulary":"credit"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0862-0533","authenticated-orcid":false,"given":"Jaime","family":"Lloret","sequence":"additional","affiliation":[{"name":"Department of Communications, Universitat Polit\u00e8cnica de Val\u00e8ncia, 46022 Valencia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"},{"role":"investigation","vocabulary":"credit"},{"role":"writing-original-draft","vocabulary":"credit"},{"role":"supervision","vocabulary":"credit"}]}],"member":"1968","published-online":{"date-parts":[[2026,9,29]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Wang, S.-W., and Fan, C. (2023). Challenges of Water Quality Management for Agricultural Development. Water, 15.","DOI":"10.3390\/w15101816"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"358","DOI":"10.1016\/j.envpol.2016.07.011","article-title":"Industrial Water Pollution, Water Environment Treatment, and Health Risks in China","volume":"218","author":"Wang","year":"2016","journal-title":"Environ. Pollut."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Hofman-Caris, R., de Waal, L., and van der Hoek, J.P. (2019). Rainwater Harvesting for Drinking Water Production: A Sustainable and Cost-Effective Solution in The Netherlands?. Water, 11.","DOI":"10.3390\/w11030511"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"6789","DOI":"10.1007\/s10661-014-3889-0","article-title":"Storm Water Contamination and Its Effect on the Quality of Urban Surface Waters","volume":"186","author":"Szpakowska","year":"2014","journal-title":"Environ. Monit. Assess."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"41","DOI":"10.1007\/s10668-016-9894-4","article-title":"Environmental Pollution in Africa","volume":"20","author":"Fayiga","year":"2018","journal-title":"Environ. Dev. Sustain."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"277","DOI":"10.1016\/j.jaridenv.2004.07.014","article-title":"The Characteristics of Ground-Water Resources and Their Changes under the Impacts of Human Activity in the Arid Northwest China\u2014A Case Study of the Shiyang River Basin","volume":"61","author":"Ma","year":"2005","journal-title":"J. Arid Environ."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Miura, A., Parra, L., Lloret, J., and Catal\u00e1-Icardo, M. (2023). UV Absorption Spectrum for Dissolved Oxygen Monitoring: A Low-Cost Proposal for Water Quality Monitoring. Photonics, 10.","DOI":"10.3390\/photonics10121336"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"04162","DOI":"10.7189\/jogh.14.04162","article-title":"The Global Disease Burden Attributable to Unsafe Water, Sanitation, and Handwashing with Unqualified Facilities from 1990 to 2019","volume":"14","author":"Zeng","year":"2024","journal-title":"J. Glob. Health"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"562","DOI":"10.1016\/j.jart.2017.07.004","article-title":"Wireless Sensor Networks: A Survey on Monitoring Water Quality","volume":"15","author":"Pule","year":"2017","journal-title":"J. Appl. Res. Technol."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Calderwood, A.J., Pauloo, R.A., Yoder, A.M., and Fogg, G.E. (2020). Low-Cost, Open Source Wireless Sensor Network for Real-Time, Scalable Groundwater Monitoring. Water, 12.","DOI":"10.3390\/w12041066"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3711953","article-title":"A Comprehensive Survey of Data-Driven Solutions for LoRaWAN: Challenges and Future Directions","volume":"6","author":"Maurya","year":"2025","journal-title":"ACM Trans. Internet Things"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"1487","DOI":"10.1007\/s10462-019-09709-4","article-title":"Missing Value Imputation: A Review and Analysis of the Literature (2006\u20132017)","volume":"53","author":"Lin","year":"2020","journal-title":"Artif. Intell. Rev."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Malik, P.K., Malik, P., Kumar, G.R., Abraham, R., and Singh, R. (2023, January 24\u201325). Design and Implementation of a LoRa-Based Water Quality Monitoring System. Proceedings of the 2023 3rd International Conference on Advancement in Electronics & Communication Engineering (AECE), Ghaziabad, India.","DOI":"10.1109\/AECE59614.2023.10428618"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Berrio Quintanilla, K.J., Cosi, P.L.H., Quispe, J.L.H., Luque, J.C.C., and Avila, J.P.J. (2025). Implementation of a Dynamic LoRa Network for Real-Time Monitoring of Water Quality. Designs, 9.","DOI":"10.3390\/designs9040096"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Cohen-Manrique, C., Camacho-Leon, S., and Villa, J.L. (2025). Emerging Trends in IoT for Aquatic Systems: A Systematic Review. Front. Water, 7.","DOI":"10.3389\/frwa.2025.1699240"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Amanatidis, P., Lyratzis, E., Angelopoulos, V., Kouloumpris, E., Skaperdas, E., Bassiliades, N., Vlahavas, I., Maris, F., Emmanouloudis, D., and Karampatzakis, D. (2026). Intelligent Water Management Through Edge-Enabled IoT, AI, and Big Data Technologies. IoT, 7.","DOI":"10.3390\/iot7010005"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Decorte, T., Mortier, S., Lembrechts, J.J., Meysman, F.J.R., Latr\u00e9, S., Mannens, E., and Verdonck, T. (2024). Missing Value Imputation of Wireless Sensor Data for Environmental Monitoring. Sensors, 24.","DOI":"10.3390\/s24082416"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"9403963","DOI":"10.1155\/2021\/9403963","article-title":"Research and Design of Distributed IoT Water Environment Monitoring System Based on LoRa","volume":"2021","author":"Chen","year":"2021","journal-title":"Wirel. Commun. Mob. Comput."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"1645","DOI":"10.1016\/j.future.2013.01.010","article-title":"Internet of Things (IoT): A Vision, Architectural Elements, and Future Directions","volume":"29","author":"Gubbi","year":"2013","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"442","DOI":"10.1007\/s10661-015-4475-9","article-title":"The Influence of Industrial and Agricultural Waste on Water Quality in the \u00c1gua Boa Stream (Dourados, Mato Grosso do Sul, Brazil)","volume":"187","author":"Dourado","year":"2015","journal-title":"Environ. Monit. Assess."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Viciano-Tudela, S., Valizadeh, I., Parra, L., Sendra, S., and Lloret, J. (2025, January 2\u20135). An IoT Low-Cost Optical Sensor to Detect the Presence of Diluted Drugs in Water. Proceedings of the 2025 12th International Conference on Internet of Things: Systems, Management and Security (IoTSMS), Lyon, France.","DOI":"10.1109\/IOTSMS68530.2025.11408540"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Valizadeh, I., and Lloret, J. (2025, January 19\u201320). Energy-Efficient Clustering Multi-Hop Routing Protocol. Proceedings of the IEEE International Conference on Circuit, Systems and Communication (ICCSC 2025), Fez, Morocco.","DOI":"10.1109\/ICCSC66714.2025.11135295"},{"key":"ref_23","first-page":"359","article-title":"Localization Techniques in Underwater Wireless Sensor Networks: From Fixed to AI-Based Techniques","volume":"Volume 1724","author":"Valizadeh","year":"2026","journal-title":"Proceedings of the 4th International Conference on Big Data and Artificial Intelligence Applications (ICBDAIA\u201925)"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Manoharan, A.M., and Rathinasabapathy, V. (2018, January 10\u201312). Smart Water Quality Monitoring and Metering Using LoRa for Smart Villages. Proceedings of the 2018 2nd International Conference on Smart Grid and Smart Cities (ICSGSC), Kuala Lumpur, Malaysia.","DOI":"10.1109\/ICSGSC.2018.8541336"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Ahmed, U., Mumtaz, R., Anwar, H., Shah, A.A., Irfan, R., and Garc\u00eda-Nieto, J. (2019). Efficient Water Quality Prediction Using Supervised Machine Learning. Water, 11.","DOI":"10.3390\/w11112210"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"124084","DOI":"10.1016\/j.jhydrol.2019.124084","article-title":"Machine Learning Methods for Better Water Quality Prediction","volume":"578","author":"Ahmed","year":"2019","journal-title":"J. Hydrol."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"28","DOI":"10.2166\/ws.2019.144","article-title":"Water Quality Monitoring: From Conventional to Emerging Technologies","volume":"20","author":"Ahmed","year":"2020","journal-title":"Water Supply"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"102920","DOI":"10.1016\/j.jwpe.2022.102920","article-title":"Water Quality Classification Using Machine Learning Algorithms","volume":"48","author":"Nasir","year":"2022","journal-title":"J. Water Process Eng."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"152","DOI":"10.2166\/wqrj.2022.004","article-title":"Machine Learning for Water Quality Classification","volume":"57","author":"Abuzir","year":"2022","journal-title":"Water Qual. Res. J."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Jawad, H.M., Nordin, R., Gharghan, S.K., Jawad, A.M., and Ismail, M. (2017). Energy-Efficient Wireless Sensor Networks for Precision Agriculture: A Review. Sensors, 17.","DOI":"10.3390\/s17081781"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"P\u00e9rez-P\u00e9rez, E.-J., Gonz\u00e1lez-Baldiz\u00f3n, Y., Fragoso-Mandujano, J.-A., Guzm\u00e1n-Rabasa, J.-A., and Santos-Ruiz, I. (2025). Data-Driven Fault Diagnosis in Water Pipelines Based on Neuro-Fuzzy Zonotopic Kalman Filters. Math. Comput. Appl., 30.","DOI":"10.3390\/mca30010002"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Reynders, B., and Pollin, S. (2016, January 22). Chirp Spread Spectrum as a Modulation Technique for Long-Range Communication. Proceedings of the 2016 Symposium on Communications and Vehicular Technologies (SCVT), Mons, Belgium.","DOI":"10.1109\/SCVT.2016.7797659"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"517","DOI":"10.1007\/s11235-024-01192-9","article-title":"LoRa Interference Issues and Solution Approaches in Dense IoT Networks: A Review","volume":"87","author":"Shilpa","year":"2024","journal-title":"Telecommun. Syst."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"371","DOI":"10.1109\/COMST.2019.2949598","article-title":"A Survey on LoRa Networking: Research Problems, Current Solutions, and Open Issues","volume":"22","author":"Du","year":"2020","journal-title":"IEEE Commun. Surv. Tutor."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Bor, M.C., Roedig, U., Voigt, T., and Alonso, J.M. (2016, January 13\u201317). Do LoRa Low-Power Wide-Area Networks Scale?. Proceedings of the 19th ACM International Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems, Valletta, Malta.","DOI":"10.1145\/2988287.2989163"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Huang, W., and Sheng, G. (2024, January 24\u201326). Analysis and Research on UART Communication Protocol. Proceedings of the 2024 4th Asia-Pacific Conference on Communications Technology and Computer Science (ACCTCS), Shenyang, China.","DOI":"10.1109\/ACCTCS61748.2024.00140"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"12803","DOI":"10.1109\/TII.2024.3424517","article-title":"IoT-Enabled Real-Time Health Monitoring via Smart Textile Integration with LoRa Technology across Diverse Environments","volume":"20","author":"Iman","year":"2024","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"459","DOI":"10.1017\/jfm.2018.147","article-title":"Sparse Reduced-Order Modelling: Sensor-Based Dynamics to Full-State Estimation","volume":"844","author":"Loiseau","year":"2018","journal-title":"J. Fluid Mech."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"500","DOI":"10.1016\/j.proeng.2012.09.545","article-title":"Modelling Using Polynomial Regression","volume":"48","year":"2012","journal-title":"Procedia Eng."},{"key":"ref_40","first-page":"4040","article-title":"Deep Polynomial Neural Networks","volume":"44","author":"Chrysos","year":"2022","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/26\/19\/6159\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T08:17:01Z","timestamp":1790669821000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/26\/19\/6159"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,29]]},"references-count":40,"journal-issue":{"issue":"19","published-online":{"date-parts":[[2026,10]]}},"alternative-id":["s26196159"],"URL":"https:\/\/doi.org\/10.3390\/s26196159","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,29]]}}}