Healthiness and Safety of Smart Environments through Edge Intelligence and Internet of Things Technologies
Abstract
:1. Introduction
2. Background and Related Work
2.1. Smart Environment
2.2. Edge Intelligence
2.3. Related Work
3. System Development
3.1. Analysis Phase
- Warning and Notification: Warnings about the operational status of UV-C lamps and ozone emission are critical to prevent accidental exposure. Therefore, to properly notify people that the area is undergoing ozonation, notifications should be sent through their smartphones. Similarly, alerts should be sent to the administrator when environmental conditions are unsuitable for a correct lamp operation or if it is nearing the end of its life or has failed, ensuring timely replacement and maintaining system effectiveness.
- Video surveillance: Once the treatment is started, it is important to avoid the presence of people in the room since ozone, if inhaled in significant quantities, can be harmful. Therefore, a video recognition system should be designed to make sure, in primis, people are not detected in the room while ozonation is taking place, and, hence, no pets.
- Operational Efficiency and Automation: Lamps’ activation and deactivation can be dynamically performed according to the manufacturer’s instructions so as to ensure continuous safe operation without manual intervention. For example, the system’s operation can be optimized by adjusting settings in response to changing conditions: ozone dose can be the enforced or the exposure time extended according to current sensor data, or, conversely, ozonification interrupted if unsafe conditions are detected, or UV-C lamps and ozone generators shut down when they are not needed, thus saving energy. Finally, once the ozonation process is complete, ventilation of the room should be initiated for the time needed to convert any remaining ozone back to oxygen.
- Reliability and Maintenance: UV-C lamps have a limited operational lifespan and may degrade over time, being sensitive to temperature, humidity, and pollutants. These can reduce the efficiency of the lamp, accelerating the degradation of the bulb or reducing the effectiveness of the lamp. Figure 2 presents the reliability of a typical UV-C lamp [27] over the operating time. In particular, the blue line shows that at 500 h and with an ambient temperature of 35 °C, 50% of the population will emit at least 45 mW (L75 means that the LED produced 75% of the initial UV-C output of 60 mW) while only 10% of devices (i.e., B10) emit less than 36 mW of their initial output, which is the L60B10 value. Hence, by monitoring environmental conditions, system administrators can ensure timely replacement and maintain system effectiveness so as to balance lifetime and effectiveness. Likewise, in the direction of predictive maintenance, trends in IoT data can be analyzed to predict when the system’s components require maintenance or are likely to fail.
- Logging and Storage: For regulatory compliance and performance analysis, it is important to keep a record of all the operations. In particular, many industries have rigid rules about ozonification, thus log data ensure that the system remains compliant with health and safety regulations.
3.2. Design Phase
- AWS IoT Greengrass enables real-time operations and data analysis directly on IoT devices, without the need for a constant connection to the cloud. In particular, AWS IoT Greengrass runs AWS Lambda functions locally, synchronizes data with the cloud, and manages secure communication with other devices. In our smart environment, AWS IoT Greengrass processes sensor data such as temperature, humidity, and ozone and sends them to a PostgreSQL database for storage.
- Amazon S3 is a scalable storage service that allows for the storage and retrieval of data through an Internet connection, at any time and from anywhere. In our scenario, Amazon S3 stores images and videos captured by the camera connected to the RaspberryPi to realize the video surveillance functionality.
- AWS IoT Core enables the secure connections of IoT devices to the AWS cloud, manages data, and interacts with other AWS services. In particular, in our smart environment, it is exploited to manage communication between the Raspberry Pi and AWS services, using the MQTT protocol to transfer the collected data.
- AWS Lambda is a serverless computing service that automatically executes code in response to events and manages the necessary resources. In our scenario, the functions process the sensor data and the video arriving through the IoT Core, triggering other operations within the system. Below we present snippets of functions used for processing and storing sensor data (notifying in the case of humidity, temperature, or ozone values over the established thresholds) and for image processing (notifying in the case of people or pets detected in the video).
- AWS SageMaker is a fully managed service for building, training, and deploying machine learning models at scale over the data collected from the sensors or images, using machine learning models to make predictions or classifications.
- Amazon Rekognition is an image and video analysis service that uses artificial intelligence to recognize objects, faces, scenes, text, and activities. With respect to our system, it is aimed at detecting the presence of people inside the room where the ozonation occurs, triggering a notification through Amazon SNS service if necessary.
- Amazon DynamoDB is a fully managed NoSQL database service designed for applications that require high performance and scalability. Amazon DynamoDB stores data related to events or analysis results in a NoSQL database, providing a scalable solution for data management.
- Amazon SNS is a messaging service for sending push-notifications to mobile devices, email, SMS, or forward messages to services like SQS and Lambda. In our scenario, events such as the presence of people where ozonation is occurring or the (de)activation of an ozonizer in adequate environmental conditions act as triggers for the SNS notification system.
- Alarm (CloudWatch) is back-office service aimed at the monitoring and management of the deployed infrastructure. In particular, it allows for notifications based on system metrics, such as CPU, memory usage, and anomalies during the execution of services.
3.3. Implementation Phase
- A RaspberryPi4 microcomputer acts as a central node for collecting data from a group of sensors and a camera. In particular, it collects data from the temperature, humidity, and ozone sensors, while the camera captures images or videos for detecting the presence of people. This is possible by combining TensorFlow Lite and OpenCV, so as to capture videos from the camera and apply machine learning models to process each frame in real time.
- Sensors such as DHT11 (for humidity and temperature) and KH-NPOD-100 DGOzone (for ozone).
- CRJ O3-UV-500 Ozonizer is a sanitizing machine equipped with UV-C lamps that generate ozone and a fan device; see Figure 3.It is automatically activated based on the results of analyses performed by AWS services or by the RaspberryPi.
- Node-Red, an open-source framework, commonly used for industrial automation and IoT projects, aimed at connecting hardware devices, APIs, and AWS online services through a flow-based, block-oriented interface. In particular, we configured the environment by using Node-RED to collect, store, and display data locally with a database, as shown in Figure 4.
- PostgreSQL to locally store (in a relational way) the data collected from the sensors for analysis and reporting; see Figure 5.
- MQTT (Message Queuing Telemetry Transport) as the messaging protocol owing to its efficient management of large-scale IoT deployments, low-bandwidth requirement, energy efficiency, and robustness in unreliable networks. These features make MQTT an ideal candidate to interconnect the smart environments’ components deployed at edges and on the cloud. In particular, we opted for MQTT version 5, a keep-alive duration of 30 s, and a maximum packet size of 149,504 bytes.
3.4. Results Analysis
4. Benefits, Limitations, and Future Work
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Yassin, M.; Almouqatea, S. Assessment of airborne bacteria and fungi in an indoor and outdoor environment. Int. J. Environ. Sci. Technol. 2010, 7, 535–544. [Google Scholar] [CrossRef]
- Sharma, A.; Bhyan, S.J.; Malik, A. A perspective review of deadly viral diseases: An era of viruses. Int. J. Basic Clin. Pharmacol. 2021, 10, 1038. [Google Scholar] [CrossRef]
- Lamers, M.M.; Haagmans, B.L. SARS-CoV-2 pathogenesis. Nat. Rev. Microbiol. 2022, 20, 270–284. [Google Scholar] [CrossRef] [PubMed]
- Zhang, H.; Jin, X.; Nunayon, S.S.; Lai, A.C. Disinfection by in-duct ultraviolet lamps under different environmental conditions in turbulent airflows. Indoor Air 2020, 30, 500–511. [Google Scholar] [CrossRef] [PubMed]
- Atzori, L.; Iera, A.; Morabito, G. The internet of things: A survey. Comput. Netw. 2010, 54, 2787–2805. [Google Scholar] [CrossRef]
- Augusto, J.C.; Nakashima, H.; Aghajan, H. Ambient intelligence and smart environments: A state of the art. In Handbook of Ambient Intelligence and Smart Environments; Springer: Boston, MA, USA, 2010; pp. 3–31. [Google Scholar]
- Barbuto, V.; Savaglio, C.; Chen, M.; Fortino, G. Disclosing Edge Intelligence: A Systematic Meta-Survey. Big Data Cogn. Comput. 2023, 7, 44. [Google Scholar] [CrossRef]
- Wittig, A.; Wittig, M. Amazon Web Services in Action: An In-Depth Guide to AWS; Simon and Schuster: New York, NY, USA, 2023. [Google Scholar]
- Cook, D.J.; Das, S.K. How smart are our environments? An updated look at the state of the art. Pervasive Mob. Comput. 2007, 3, 53–73. [Google Scholar] [CrossRef]
- Deng, S.; Zhao, H.; Fang, W.; Yin, J.; Dustdar, S.; Zomaya, A.Y. Edge intelligence: The confluence of edge computing and artificial intelligence. IEEE Internet Things J. 2020, 7, 7457–7469. [Google Scholar] [CrossRef]
- Xu, D.; Li, T.; Li, Y.; Su, X.; Tarkoma, S.; Jiang, T.; Crowcroft, J.; Hui, P. Edge intelligence: Empowering intelligence to the edge of network. Proc. IEEE 2021, 109, 1778–1837. [Google Scholar] [CrossRef]
- Akter, M.; Moustafa, N.; Lynar, T.; Razzak, I. Edge intelligence: Federated learning-based privacy protection framework for smart healthcare systems. IEEE J. Biomed. Health Inform. 2022, 26, 5805–5816. [Google Scholar] [CrossRef] [PubMed]
- Jo, J.; Jo, B.; Kim, J.; Kim, S.; Han, W. Development of an IoT-based indoor air quality monitoring platform. J. Sens. 2020, 2020, 8749764. [Google Scholar] [CrossRef]
- Benammar, M.; Abdaoui, A.; Ahmad, S.H.; Touati, F.; Kadri, A. A modular IoT platform for real-time indoor air quality monitoring. Sensors 2018, 18, 581. [Google Scholar] [CrossRef] [PubMed]
- Esquiagola, J.; Manini, M.; Aikawa, A.; Yoshioka, L.; Zuffo, M. Monitoring indoor air quality by using iot technology. In Proceedings of the 2018 IEEE XXV International Conference on Electronics, Electrical Engineering and Computing (INTERCON), Lima, Peru, 8–10 August 2018; pp. 1–4. [Google Scholar]
- Kadir, A.D.I.A.; Alias, M.R.N.M.; Dzaki, D.R.M.; Din, N.M.; Deros, S.N.M.; Haron, M.H. Cloud-based iot air quality monitoring system. In Proceedings of the 2021 26th IEEE Asia-Pacific Conference on Communications (APCC), Kuala Lumpur, Malaysia, 11–13 October 2021; pp. 121–127. [Google Scholar]
- Yang, C.T.; Chen, S.T.; Den, W.; Wang, Y.T.; Kristiani, E. Implementation of an intelligent indoor environmental monitoring and management system in cloud. Future Gener. Comput. Syst. 2019, 96, 731–749. [Google Scholar] [CrossRef]
- Marques, G.; Ferreira, C.R.; Pitarma, R. Indoor air quality assessment using a CO2 monitoring system based on internet of things. J. Med. Syst. 2019, 43, 67. [Google Scholar] [CrossRef] [PubMed]
- Zhou, M.; Abdulghani, A.M.; Imran, M.A.; Abbasi, Q.H. Internet of things (IoT) enabled smart indoor air quality monitoring system. In Proceedings of the 2020 International Conference on Computing, Networks and Internet of Things, Sanya, China, 24–26 April 2020; pp. 89–93. [Google Scholar]
- Zhao, L.; Wu, W.; Li, S. Design and implementation of an IoT-based indoor air quality detector with multiple communication interfaces. IEEE Internet Things J. 2019, 6, 9621–9632. [Google Scholar] [CrossRef]
- Esfahani, S.; Rollins, P.; Specht, J.P.; Cole, M.; Gardner, J.W. Smart city battery operated IoT based indoor air quality monitoring system. In Proceedings of the 2020 IEEE SENSORS, Rotterdam, The Netherlands, 25–28 October 2020; pp. 1–4. [Google Scholar]
- Tapashetti, A.; Vegiraju, D.; Ogunfunmi, T. IoT-enabled air quality monitoring device: A low cost smart health solution. In Proceedings of the 2016 IEEE Global Humanitarian Technology Conference (GHTC), Seattle, WA, USA, 13–16 October 2016; pp. 682–685. [Google Scholar]
- Moharana, B.K.; Anand, P.; Kumar, S.; Kodali, P. Development of an IoT-based real-time air quality monitoring device. In Proceedings of the 2020 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 28–30 July 2020; pp. 191–194. [Google Scholar]
- Firdhous, M.; Sudantha, B.; Karunaratne, P. IoT enabled proactive indoor air quality monitoring system for sustainable health management. In Proceedings of the 2017 2nd International Conference on Computing and Communications Technologies (ICCCT), Chennai, India, 23–24 February 2017; pp. 216–221. [Google Scholar]
- Ferrer-Cid, P.; Barcelo-Ordinas, J.M.; Garcia-Vidal, J.; Ripoll, A.; Viana, M. A comparative study of calibration methods for low-cost ozone sensors in IoT platforms. IEEE Internet Things J. 2019, 6, 9563–9571. [Google Scholar] [CrossRef]
- Dhingra, S.; Madda, R.B.; Gandomi, A.H.; Patan, R.; Daneshmand, M. Internet of Things mobile–air pollution monitoring system (IoT-Mobair). IEEE Internet Things J. 2019, 6, 5577–5584. [Google Scholar] [CrossRef]
- Reconsider UV-C LED Lifetime for Disinfection Based on Development Decisions (MAGAZINE). Available online: https://www.ledsmagazine.com/leds-ssl-design/packaged-leds/article/16695812/reconsider-uv-c-led-lifetime-for-disinfection-based-on-development-decisions-magazine (accessed on 25 September 2024).
- Fortino, G.; Savaglio, C. Integration of digital twins & internet of things. In The Digital Twin; Springer: Berlin/Heidelberg, Germany, 2023; pp. 205–225. [Google Scholar]
- Paniagua, C.; Delsing, J. Industrial frameworks for internet of things: A survey. IEEE Syst. J. 2020, 15, 1149–1159. [Google Scholar] [CrossRef]
- Fitch, F. AWS vs. Azure vs. Google vs. Alibaba: An In-Depth Comparison of Top Cloud Providers. 2023. Available online: https://www.franklinfitch.com/us/resources/blog/aws-vs-azure-vs-google-vs-alibaba--an-in-depth-comparison-of-top-cloud-providers/#:~:text=AWS%20remains%20the%20mature%20and,Cloud%20dominates%20the%20Asian20market (accessed on 3 October 2024).
- CloudForces. AWS vs. Other Cloud Providers: What Sets AWS Apart. 2024. Available online: https://www.cloudforces.ca/post/aws-vs-other-cloud-providers-what-sets-aws-apart (accessed on 3 October 2024).
- Herath, H.; Jayasundara, K.; Yadhasighe, Y.; Sanjeewa, S.D. The design and implementation of an IOT-based real-time air purification system for outdoor environment. In Proceedings of the 2022 2nd International Conference on Advanced Research in Computing (ICARC), Belihuloya, Sri Lanka, 23–24 February 2022; pp. 314–319. [Google Scholar]
- Savaglio, C.; Fortino, G. A simulation-driven methodology for IoT data mining based on edge computing. ACM Trans. Internet Technol. (TOIT) 2021, 21, 1–22. [Google Scholar] [CrossRef]
- Savaglio, C.; Mazzei, P.; Fortino, G. Edge Intelligence for Industrial IoT: Opportunities and Limitations. Procedia Comput. Sci. 2024, 232, 397–405. [Google Scholar] [CrossRef]
Paper | Year | Monitored Air Component | Hardware | Real Time | Kind of Local/Remote Computation | Level of Intelligence/Automation | Application Scenarios |
---|---|---|---|---|---|---|---|
[13] | 2020 | Aerosol, VOC, CO, CO2, temperature, and humidity | Pollutant detection sensors, microcontroller, and an LTE modem | Yes | Remote | Alert system and user notifications | General indoor environment |
[14] | 2018 | CO2, CO, SO2, NO2, O3, Cl2, temperature, and humidity | Microcontroller for gas sensor nodes, wireless sensor nodes, gateways, and an IoT server | Yes | Local and remote | Gateway data processing | Residential indoor environments |
[15] | 2018 | Temperature, humidity, pressure, particulate material, TVOC, and eCO2 | Sensor nodes, Raspberry Pi 3, and Launchpad CC2650 kit | Yes | Local and remote | Data collection and analysis | Public indoor environments |
[16] | 2021 | Temperature, humidity, eCO2, and TVOC | Air quality sensors BME680 and CCS811, along with ESP32 microcontrollers | Yes | Remote | Alert system and user notifications | Residential indoor environments |
[17] | 2019 | CO2, temperature, humidity, CO, formaldehyde, and VOCs | ZigBee wireless sensor network | Yes | Remote | Alert system | Healthcare indoor environments |
[18] | 2019 | CO2 | ESP8266 Thing Dev (Sparkfun) microcontroller and an MHZ-19 CO2 sensor | Yes | Remote | Moderate level of automation | Public and residential indoor environments |
[19] | 2020 | Temperature, humidity, and PM2.5 levels | Dust sensor GP2Y1014AU, DHT11 sensor, Arduino Leonardo board | Yes | Remote | alert system and user notifications | Healthcare indoor environments |
[20] | 2019 | Temperature, humidity, PM2.5, CO2, and formaldehyde | STM32 MCU module, RS485, and NB-IoT. | Yes | Local and remote | No automation | General indoor environments |
[21] | 2020 | VOCs, CO2, PM2.5, PM10, temperature, humidity | HUZZAH32 microcontroller board | Yes | Remote | Recommendation system | Public indoor and outdoor environments |
[22] | 2016 | CO and HCHO gases | PC, Marvell board, sensors, and mobile devices | Yes | Local and remote | Alert system and user notifications | General indoor and outdoor environments |
[23] | 2020 | Toxic gases like NOx, CO2, benzene, and smoke | NodeMCU ESP32, MQ-135, and DHT-11 sensors | Yes | Remote | Alert system | Industrial areas |
[24] | 2017 | Ozone (O3) | Arduino BT IoT Prototyping Board | Yes | Local | Generate warnings when levels exceed a predetermined threshold value | Specific indoor environment |
[25] | 2019 | O3, NO2, temperature, and relative humidity | Sensors with testbeds | Semi real | Local | Comparing and evaluating calibration methods | Indoor and outdoor environments |
[26] | 2019 | CO2, CO, and CH4 gases | Arduino Uno, ESP8266, gas sensors, and Android devices | Yes | Remote | Prediction and alert notification | Outdoor air monitoring in smart cities |
Our | 2024 | O3, temperature, humidity | DHT-11 and KH-NPOD-100 sensors, RaspberryPi, UV-C lamp | Yes | Amazon AWS and IoT technology for both cloud and edge computing | Autonomous UV-C lamp (de)activation, anomaly detection | Public indoor environments |
Functionalities | Design Choices | Implementation |
---|---|---|
Video Surveillance | AWS Rekognition, AWS IoT Greengrass | Video analysis with AWS Rekognition, video capture with Raspberry Pi, TensorFlow Lite and OpenCV for people recognition |
Warning and Notification | AWS SNS | Email notification |
Operation Efficiency and Automation | AWS Lambda | Process automation with AWS Lambda functions |
Reliability and Maintenance | AWS IoT Greengrass, AWS CloudWatch | On-Premise Monitoring with AWS IoT Greengrass, alarms, and predictive maintenance with AWS CloudWatch |
Logging and Storage | AWS S3, AWS DynamoDB | AWS S3 for file and log storage, AWS DynamoDB for structured data, PostgreSQL for relational data |
Sensor Data Processing | Image Processing | ||
---|---|---|---|
Operation | Time Range (ms) | Operation | Time Range (ms) |
Parsing SQS message | 1–5 | S3 metadata retrieval | 10–20 |
DynamoDB write | 10–20 | Recognition API call | 500–1000 |
Anomaly check | 1–2 | Label analysis | 1–5 |
SNS notification (if needed) | 20–40 | SNS notification (if needed) | 20–40 |
Total (w/o notification) | 12–27 | Total (w/o notification) | 511–1025 |
Total (with notification) | 32–67 | Total (with notification) | 531–1065 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Islam, R.U.; Mazzei, P.; Savaglio, C. Healthiness and Safety of Smart Environments through Edge Intelligence and Internet of Things Technologies. Future Internet 2024, 16, 373. https://doi.org/10.3390/fi16100373
Islam RU, Mazzei P, Savaglio C. Healthiness and Safety of Smart Environments through Edge Intelligence and Internet of Things Technologies. Future Internet. 2024; 16(10):373. https://doi.org/10.3390/fi16100373
Chicago/Turabian StyleIslam, Rafiq Ul, Pasquale Mazzei, and Claudio Savaglio. 2024. "Healthiness and Safety of Smart Environments through Edge Intelligence and Internet of Things Technologies" Future Internet 16, no. 10: 373. https://doi.org/10.3390/fi16100373
APA StyleIslam, R. U., Mazzei, P., & Savaglio, C. (2024). Healthiness and Safety of Smart Environments through Edge Intelligence and Internet of Things Technologies. Future Internet, 16(10), 373. https://doi.org/10.3390/fi16100373