Professional Documents
Culture Documents
ppsd-1720118772
ppsd-1720118772
ppsd-1720118772
Exclude URL: NO
CHAPTER 3
METHODOLOGY
3.1 INTRODUCTION
The chapter will describe the overall methodology to design, develop, and deploy the real-time air quality
monitoring and AQI forecasting system. Basically, the objective of the project is to provide a low-cost, feasible
system that can give information on a daily basis about air quality and the level of different pollutants, in order to
3.2 METHODOLOGY
The first step in the development of the air quality monitoring system is the selection of appropriate hardware.
The hardware should be cost-effective, reliable, and capable of measuring a wide range of pollutants. Equipment
used:
* ESP32 Dev Module: That is a microcontroller board used for the collection and processing of any form of data.
* Dust Sensor GP2Y1010AU0F: The sensor measures particulate matter levels, PM2.5.
* MQ-135 Sensor: The sensor measures multiple gases, including CO2, SO2, NO2, and NH3.
Raw data is acquired from the sensors by the system, measuring the concentrations for a host of pollutants. This
information is then preprocessed to remove noise and ensure it is correct. Preprocessing steps include:
* Filter: This is a step for removing the artifacts due to environmental factors and sensor anomalies. Moving
average filters or, on a higher level of complexity, techniques of digital filtering can be employed to smoothen the
Page 1 of 4
data in order to perform denoising.
* Normalization: It is the process of standardizing data to allow it to have a consistency and compatibility with the
prediction model. It rescales data to lie within a specific range, usually 0 to 1, making it better-suited for
It then becomes the work of the control algorithm to read and process the pre-processed data and predict the
* Machine Learning Algorithm: For the prediction of time series, Long Short-Term Memory neural network has
been used. LSTMs would be more appropriate for this purpose since they are capable of learning temporal
dependencies.
* Model Training: The LSTM model learns the trend of historical air quality data and forms a pattern to predict
things accurately. Training involves feeding the model with past data and adjusting the parameters so that it
Subsequently, a hardware-software integrated system is developed for the prediction model. In this case, the
ESP32 microcontroller extracts data from sensors and uploads the information into the ThingSpeak IoT platform.
Later, the information is retrieved and fed into the LSTM model to achieve the predicted AQI values. At last, these
* Data Collection: The ESP32 continuously receives data from the many sensors that are connected to it.
* Data Transmission: The measured data will be sent to ThingSpeak, which is an IoT platform aimed at storing
* Prediction: The LSTM model extracts historic data from ThingSpeak, processes it, and predicts future AQI
values.
* Visualization: The predicted AQI values have been presented through a web-based dashboard for easy access
It finally ensures easy access to air quality data and forecasts, which includes:
* Webpage Dashboard: The AQI shall display values of real time and estimated. The user-friendly dashboard will
present the data through clear and concise visuals that become easy for users to comprehend.
* User Interface: This depends on the above to see details of pollutant levels and to subsequently act to minimize
exposure. The user interface warns and gives recommendations depending on the air quality forecast.
The block diagram of the proposed system illustrates the main components and data flow. Each block's
Page 2 of 4
Fig.3.1.Block diagram of hardware setup
* Function: Collects data on various pollutants (PM2.5, O3, CO, CO2, SO2, NO2, NH3).
* Function: Processes raw sensor data and uploads it to the ThingSpeak IoT platform.
* Function: Stores collected data for real-time monitoring and historical analysis.
* Process: Receives and stores data from ESP32, provides an API for data retrieval.
* Process: Trained on historical data, processes new data to forecast pollutant levels.
The process flow diagram details the step-by-step operation of the air quality monitoring and forecasting system:
* Process: Set up communication between sensors and ESP32, ensure accurate data collection.
* Process: Filter and normalize data to remove noise and ensure accuracy.
* Process: Use ThingSpeak API to send data from ESP32 to the cloud.
* Process: Feed data into the LSTM model to predict future AQI values.
* Step: Display real-time and forecasted AQI values on the web-based dashboard.
Page 3 of 4
3.5 CONCLUSION
The methodology described in the chapter stipulates the overall approach that shall be used to develop a real-
MATCHED SOURCES:
Page 4 of 4