Elsevier

Ad Hoc Networks

Volume 126, 1 March 2022, 102749
Ad Hoc Networks

Water quality prediction on a Sigfox-compliant IoT device: The road ahead of WaterS

https://doi.org/10.1016/j.adhoc.2021.102749Get rights and content

Abstract

Water pollution is a critical issue that affects the entire ecosystem, with non-negligible consequences on humans’ health, thus inducing economic and social concerns. This paper focuses on an Internet of Things water quality prediction system, namely WaterS, that remotely communicates gathered measurements leveraging the Sigfox communication technology. The solution addresses the water pollution problem while considering the peculiar Internet of Things constraints such as energy efficiency and autonomy. The proposal demonstrateshow it is possible to detect and predict water quality parameters such as pH, conductivity, oxygen, and temperature by using WaterS, the Tiziano Project dataset, and a Deep Learning algorithm based on a Long Short-Term Memory recurrent neural network. The discussed water quality measurements are referred to the dataset that belongs to the Tiziano Project, in a period of time spanning from 2008 to 2012. The Long Short-Term Memory applied to predict the water quality parameters achieves high accuracy and a low Mean Absolute Error of 0.20, a Mean Square Error of 0.092, and finally a Cosine Proximity of 0.94. The obtained results are analyzed in terms of protocol suitability of the current architecture toward large-scale deployments. From a networking perspective, with an increasing number of Sigfox-enabled end-devices, the Packet Error Rate increases as well up to 4% with the largest envisioned deployment. Finally, the source code of WaterS ecosystem has been released as open-source, to encourage and promote research activities from both Industry and Academia.

Introduction

The Internet of Things (IoT) is a well-known paradigm that turns devices into interconnected smarter objects. IoT devices are generally characterized by low computational power, networking limitations, and communication capabilities. As a matter of fact, IoT devices have to deal with issues related to data exchange while optimizing the communication protocols in terms of latencies, bandwidth, security, and energy consumption [1], [2], [3]. Despite their intrinsic limitations, IoT devices are now part of continuous monitoring processes in several fields, from industrial applications [4], to monitoring activities connected to air quality and environmental parameters in the most modern smart cities [5].

Among the many fields that could benefit from the introduction of IoT technologies, water quality monitoring is undoubtedly one of the most relevant and recently investigated [6], [7], [8], [9], [10], [11], [12], [13], [14]. In this context, WaterS [15] has been already proven to be able to provide remote monitoring capabilities for some of the most representative water quality indicators (i.e., temperature and turbidity) [16]. At the same time, the WaterS architecture provides an energy-harvesting and an ultra-low-power Sigfox-compliant radio interface to keep track of the continuous monitoring activities carried out by the IoT architecture. Even though the monitoring activities are of utmost importance to grant fine-grained sampling of the parameters of interest, water pollution, and other long-lasting phenomena could still be detected. In fact, since a large portion of the world’s freshwater lies underground, infiltration into the ground could be underestimated. Therefore, a system like WaterS could be more and more useful if it was able to carry out a prediction analysis of water quality parameters. Such an advancement could lead to the massive adoption of smart and energy-efficient sensing units to be employed in hostile areas, for example, subject to massive and pervasive pollution phenomena such as the spillage of toxic waste into the aquifers where water infiltration is a crucial task [17].

WaterS is proposed as a stand-alone, energy-efficient and standard-compliant system for measuring and forecasting water quality parameters.

The system was tested close to the seaside in the city town of Bari, Italy. The dataset involved in this study is one of the main outcomes of the Tiziano project [18], and it has been fully exploited to train a deep learning model for forecasting, i.e., in our case a Long Short-Term Memory (Long Short-Term Memory (LSTM)) neural network. WaterS has been developed by adopting open-source hardware/software (with a focus on the energy harvesting [19] capabilities of our solution) and a standardized wireless protocol to push the innovation further, as well as to allow researchers and academia to further use our code as a ready-to-use basis for further software development [20].

Contribution. This work aims at integrating an advanced deep learning technique, namely LSTM within WaterS to improve the current solution by providing additional features like the water quality prediction. Specifically, we provide an experimental evaluation where we show how the adoption of LSTM can effectively predict the reference data by assessing the results accordingly the Mean Square Error, Mean Absolute Error and Cosine Proximity metrics. In particular, the neural network has been configured to search for correlations on multivariate time series on surface water. Indeed, the experimental results demonstrated that some degree of correlation exists and this proves that it is worth pursuing estimations on the proposed variables. In addition, the achieved results show that the adoption of Recurrent Neural Network (RNN) for the analysis of water quality is a winning solution for the study of multivariate time series [21]. Comparisons against competing solutions show the viability and efficiency of our proposal. Finally, WaterS has been fully implemented as the first open hardware/software solution, and the source code has been released as open-source [20]. This permits the research community and companies to reproduce our results, use the solution on top of existing Sigfox transceivers, adopt the released code as a ready-to-use basis for further improvements and comparison and, finally, allow the interested readers to verify our claims.

Roadmap. The remainder of the present work is as follows: Section 2 is three-folded, since it introduces the reference background on (i) water quality monitoring IoT systems, (ii) Low-Power Wide Area Networks (Low-Power Wide Area Networks (LPWANs)) technologies, with a focus on the Sigfox protocol, and (iii) a thorough analysis on LSTM. Section 3 describes the operating scenario in which WaterS is adopted, as well as the envisioned architecture and the proposed prediction system. Section 4 summarizes both the leading criteria and methodological approach. On top of that, Section 5 presents the experimental campaign while Section 6 discusses the obtained results. Possible strategies for improving the WaterS systems are proposed in Section 7 together with the main findings, limitations, and future research directions. Finally, Section 8 tightens the conclusions and discusses future work directions.

Section snippets

Background and related work

This section provides the background on IoT systems specifically designed for environmental monitoring activities. Some of them are focused on water quality control, whereas some others are devoted to air quality. In almost all of them, one of the key features is communicating with remote users/base stations. This data-gathering activity usually enables advanced analysis possibilities. The largest majority of the surveyed contribution deals with LPWAN communications, leveraging some of the

Design and system model

The reference background and the requirement analysis discussed in the previous sections allow us to describe the operating scenario in which the WaterS system is at work, as well as the envisioned architecture and the proposed deep learning solution.

According to the conditions of the environment in which the surveys are carried out, all the water quality parameters may be subject to significant changes over time. One of the most important aspects of this contribution is improving the current

Proposed approach

The problem was modeled as a multivariate time series forecasting with stacked LSTM networks. The LSTM network architecture has been selected based on its effectiveness in time series prediction and in learning long-term dependencies [30], [33], [34], [35]. The gating mechanism that controls the information flow in the cells can resolve the vanishing or exploding gradients training problem with common RNN networks [36]. Evidence has also proved that LSTM networks are more effective than the

Experimental evaluation

This Section describes the detail of the conducted experimental evaluations. In particular, it is herein discussed the structure of the reference dataset, the metrics used to evaluate the model, and the experimental settings.

Results

Table 7 shows the Pearson correlation between the considered parameters. Specifically, the water temperature negatively correlates with conductivity, oxygen, and pH at the significant level of 0.01. Conductivity has a negative correlation with oxygen and has a positive correlation with pH at a significant level of 0.01. Moreover, based on available data, conductivity, and pH have shown a positive correlation. Finally, oxygen and pH show the highest correlation value (i.e., a negative

Discussion and further directions

System Integration. The proposed solution demonstrates that machine learning and IoT can actively interplay in real-world systems. Overall, the presented system demonstrates how it is possible to perform detection of water quality parameters (Ph, turbidity, and temperature) using WaterS. The device communicates to the central server using the Sigfox communication protocol. The Tiziano Project dataset is used to demonstrate that the prediction of the parameters made is correct. Therefore, it is

Conclusion

This work presented the WaterS architecture, an IoT solution that leverages the water monitoring capabilities, and the compliance to one of the most promising candidates in the context of LPWANs. Leveraging its prototypical nature, the WaterS system has been proposed for an enhancement based on the employment of neural network solutions. Therefore, the proposed system uses the IoT paradigm for the data collection and processing phase and the application of a Deep Learning algorithm on the IoT

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

The authors would like to thank Prof. D. Fidelibus, Prof. T. Di Noia, C. Pomo, and W. Anelli for their contributions and support to this work.

Pietro Boccadoro received the Dr. Eng. degree (with honors) in electronic engineering from “Politecnico di Bari”, Bari, Italy, in July 2015. From Nov. 2015 to Oct. 2017, he collaborated as a researcher with Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT) at Politecnico di Bari and collaborated to research activities for the H2020 BONVOYAGE project.

He got the Ph.D. in 2021 at Politecnico di Bari.

References (51)

  • ZhangJ. et al.

    Developing a long short-term memory (LSTM) based model for predicting water table depth in agricultural areas

    J. Hydrol.

    (2018)
  • LindemannB. et al.

    A survey on anomaly detection for technical systems using LSTM networks

    Comput. Ind.

    (2021)
  • LinJ. et al.

    A survey on internet of things: Architecture, enabling technologies, security and privacy, and applications

    IEEE Internet Things J.

    (2017)
  • TedeschiP. et al.

    Like: Lightweight certificateless key agreement for secure IoT communications

    IEEE Internet Things J.

    (2020)
  • PulpitoM. et al.

    On fast prototyping LoRaWAN: a cheap and open platform for daily experiments

    IET Wirel. Sens. Syst.

    (2018)
  • SisinniE. et al.

    Industrial internet of things: Challenges, opportunities, and directions

    IEEE Trans. Ind. Inf.

    (2018)
  • MontoriF. et al.

    A collaborative internet of things architecture for smart cities and environmental monitoring

    IEEE Internet Things J.

    (2018)
  • C.Z. Myint, L. Gopal, Y.L. Aung, Reconfigurable smart water quality monitoring system in IoT environment, in: 2017...
  • A.A. Pranata, J.M. Lee, D.S. Kim, Towards an IoT-based water quality monitoring system with brokerless pub/sub...
  • CloeteN.A. et al.

    Design of smart sensors for real-time water quality monitoring

    IEEE Access

    (2016)
  • K.H. Kamaludin, W. Ismail, Water quality monitoring with internet of things (IoT), in: 2017 IEEE Conference on Systems,...
  • S. Anand, R. Regi, Remote monitoring of water level in industrial storage tanks using NB-IoT, in: 2018 International...
  • R. Sammoudi, A. Chahlaoui, A. Kharoubi, I. Taha, A. Taouraout, Development of a quality index model of spring waters:...
  • J.-x. Wang, Y. Liu, Z.-b. Lei, K.-h. Wu, X.-y. Zhao, C. Feng, H.-w. Liu, X.-h. Shuai, Z.-m. Tang, L.-y. Wu, S.-y. Long,...
  • LiuP. et al.

    Analysis and prediction of water quality using LSTM deep neural networks in IoT environment

    Sustainability

    (2019)
  • M. Mukta, S. Islam, S.D. Barman, A.W. Reza, M.S. Hossai Khan, Iot based smart water quality monitoring system, in: 2019...
  • Di GennaroP. et al.

    Waters: A sigfox-compliant prototype for water monitoring

    Internet Technol, Lett.

    (2019)
  • TyagiS. et al.

    Water quality assessment in terms of water quality index

    Am. J. of Water Resour.

    (2013)
  • RichardsonS.D. et al.

    Water analysis: Emerging contaminants and current issues

    Anal. Chem.

    (2018)
  • PugliaR.

    Progetto tiziano—Sistema di monitoraggio acque sotterranee

    (2006)
  • TedeschiP. et al.

    Security in energy harvesting networks: A survey of current solutions and research challenges

    (2020)
  • P. Di Gennaro, D. Lofú, V. Daniele, P. Tedeschi, P. Boccadoro, Open-source code of the implementation of WaterS,...
  • WangX. et al.

    Evaluation of water quality based on a machine learning algorithm and water quality index for the Ebinur Lake Watershed, China

    Sci. Rep.

    (2017)
  • ZhangW. et al.

    LSTM-Based analysis of industrial IoT equipment

    IEEE Access

    (2018)
  • WangY. et al.

    LASSO And LSTM integrated temporal model for short-term solar intensity forecasting

    IEEE Internet Things J.

    (2019)
  • Cited by (13)

    • Wireless protocols for swarm of sensors: Sigfox, Lorawan, and Nb-IoT

      2023, Smart Embedded Systems: Advances and Applications
    • Exploring the Mental State Intersection by Brain-Computer Interfaces, Cellular Automata and Biofeedback

      2023, EUROCON 2023 - 20th International Conference on Smart Technologies, Proceedings
    View all citing articles on Scopus

    Pietro Boccadoro received the Dr. Eng. degree (with honors) in electronic engineering from “Politecnico di Bari”, Bari, Italy, in July 2015. From Nov. 2015 to Oct. 2017, he collaborated as a researcher with Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT) at Politecnico di Bari and collaborated to research activities for the H2020 BONVOYAGE project.

    He got the Ph.D. in 2021 at Politecnico di Bari.

    Vitanio Daniele received the bachelor’s degree in Computer Science Engineering at the Polytechnic University of Milano (Italy) with a thesis based on the development of a large-scale distributed application RPC based, and the master’s degree (Hons.) in Computer Engineering at the Polytechnic University of Bari (Italy) with a thesis on the Application of Software Engineering in the Embedded-IoT domain. Since 2018 he works at the Laboratory of Connected Vehicle & Micro Mobility at Sitael S. p. A. where he mainly deals with the design and development of embedded applications for payment and automotive field. Further areas of interest concern Machine Learning, Computer Security and all the Security related aspects of the Internet of Things (IoT).

    Pietro Di Gennaro received the bachelor’s degree in Computer Science and Automation engineering with an experimental thesis in Automation, “Distributed Optimized Algorithms for charging electrical vehicles” at the Polytechnic University of Bari.

    He is currently pursuing the 2nd Degree Master Course Computer Science Engineering at the Polytechnic University of Bari and working as a Software Developer for Fincons S.p.a. for “Progetto Corner”.

    His research interests span over Artificial Intelligence, Machine Learning, the Internet of Things (IoT), cybersecurity, cryptography and mobile development.

    Domenico Lofù received the master’s degree in Computer Science Engineering at the Polytechnic University of Bari (Italy), with full marks. His thesis, which had an industrial characterization, addressed the application of Deep Learning techniques to Aerial Images.

    He is currently Ph.D. student in Computer Science at the Polytechnic University of Bari. His research interests are related to Artificial Intelligence, Adversarial Machine Learning, and Machine Learning for Cyber Security. The specific topic of his Ph.D. research is “Artificial Intelligence in Cyber Security”. He is member of the Laboratory of Information Systems (SisInfLab) at the Polytechnic University of Bari. He is also member of the Research and Development Laboratory of Exprivia S.p.A., where he is involved in Cyber Security research projects.

    Pietro Tedeschi is currently a Ph.D. Student in Computer Science and Engineering (Cybersecurity) at the Hamad Bin Khalifa University (HBKU), Doha, Qatar. He is an active member of the HBKU Cyber-Security Research Innovation Lab. He received his Bachelor’s degree in Computer and Automation Engineering in 2014 with a thesis on the Analysis of Security Protocols for the Internet of Things, in IEEE 802.15.4e Networks, and his Master’s degree (with honors) in Computer Engineering both from the “Politecnico di Bari”, in 2017 with a thesis on the Development of Security Architectures in Intelligent Transport Systems for EU Horizon 2020 BONVOYAGE project. From 2017 to 2018, he worked as Security Researcher at CNIT (Consorzio Nazionale Interuniversitario per le Telecomunicazioni), Italy, for the EU H2020 SymbIoTe project. His research interests span over UAV/Drone Security, Wireless Security, Internet of Things (IoT), Applied Cryptography, and Cyber–Physical Systems.

    View full text