IOT ILKKM Sg Buloh (ThermoHygroSense) - Indoor Air Temperature & Humidity Smart ML Product IBES
This repository is dedicated to another tutorial of our project in IOT Development for Healthcare Facilities Monitoring System (Smart HFMS). This equipment use MCU and industrial sensor to be used as monitoring devices for indoor air quality parameters namely as Temperature and Humidity. This project can be visualize using multiple Real-Time Dashboard:
You can find below the pipeline to develop a Similar project :
This has been designed using SciKit-learn library for machine learning algorithm, testing, evaluation and development. This network has been trained on dataset collected via PhD research journey by Dr. Syazwan Aizat Ismail UTM Then this model has been exported into c code .h file. To convert the model we had used tensorflow & keras python library.
In this part I have used VS code and Arduino IDE to deploy the model onto the ESP8266 WEMOS D1 mini lite. To do it we had to import our model, and the libraries to use I2C protocol and HDC1080 temperature and humidity sensor on the ESP8266. For the application that runs for the visualization and others, the link can be access below:
- Link for ILKKMSB - This link will help you create APPS that read Google Sheet from IOT Device
- Link for Web Apps ILKKMSB - This link will help you make PREDICTION based on Syazwan et al., 2022 study.
Here is the schema of the wiring :
To conclude by running the code with get an accuracy about 90% which is quite satisfiying.
Let us learn the basic of the development using this steps. Interested to join us, REGISTER HERE. There are 13 important steps (without) electronics discussion when to learn implementing this project. Before dive into this technical details, let us answer this SURVEY to get the idea of the Sick Building Syndrome (SBS) that you possibly impacted due to poor indoor air quality/ indoor environmental quality.
This chapter, the data from previous PhD research had been analyzed and use for identifying the suitable ML algorithm. Python module and Scikit-Learn library had been used.
This step, the data best algorithm set/ selected will be tested using hyperparameter approach. The best model will be further used in the ML convertion.
This step, the data had been visualize using python based on selected algorithm and the producton of the windows applications/ computer applications for testing and validating purposes.
This is special steps where the ML algorithm had been deployed to ensure the use of the algorithm can be done across different platform around the world (WebApps Module).
In this ste, the model that had been produce, was converted into the C language for embedded technology applications. Arduino IDE and C++
In this ste, we then prepare the electronics circuit and start programming the micro-controller (MCU) using ESP8266 and industrial sensors for measuring the IEQ parameters
In this step, we include the machine learning model as C language in the sketch together with the model equation. This was done to ensure the output of the IEQ parameters (Temperature and Humidity) can successfuly predict the outcome based on ML model.
In this step, we test the output from the MCU by using the library and arduino sketch. Testing was also perform to calibrate/ verify the condition of the sensor and the predicted output.
In this step, we capture the data that had been read by the sensor (from ESP8266) and sent the data straight into the Google Clouds (using Google Apps Script). We use Google Sheets to store data in order to easily manipulate the Dashboard/ related applications.
In this step, we convert the granular data into more manageable data sources to be utilized in Appsheet for analysis and creation of mobile apps. The mobile Apps was important to enable the engineers to record any problem related to mechanical ventilation system and their related components.
In this interesting step, the data from Google Sheet had been converted into representative condition by hours and date. Then the Mobile Applications was build using AppSheet to integrate with the investigation report development and inspection protocol. This help the engineers/ maintainance personnel to record any problem observed during operation of mechanical ventilation system. Automatic bot from Appsheet was used to generate report to be used as official document for record keeping and ML applications. Mobile Applications can be access HERE.
In this last steps, Google Data Studio or LookerStudio was integrate with the Google Sheet data. This enable the report generation mechanism much more efficient and robust.
Additional approach was used to enable the data scientist and engineers to visualize and predict the outcome of the health events based on IEQ parameters namely as temperature and humidity. The application to visualize the real-time data is shown HERE, and the application to predict the health events based on temperature and humidity setting can be found HERE.