IJRET20170609007
IJRET20170609007
Abstract
Indoor air pollution is a matter of serious concern at present times. Indoor air pollution or indoor air quality degradation is
becoming an issue of discussion among scientists and environmentalists in today’s days. As human beings generally spend most of
their time indoors, having good indoor air quality and its real time information is critical for maintaining human health and
productivity. According to the EPA, indoor air even in centrally air conditioned buildings is more polluted than outdoor air, due
to improperly maintained ventilation systems. Hence it’s an utmost necessity for human beings. Many reports have come out
showing how much harmful is Indoor air quality pollution and the bad effects and diseases caused by such deterioration in the
indoor air quality. Many solutions have been devised to tackle this air abuse and reduce its effects, also several methods of
analyzing the quality of air and further monitoring through specialized sensors, the quality of air inside our household rooms like
bedrooms or drawing rooms, even in classrooms and halls. But each of the other works have their own limitations and restraints,
some are gathering data only from the classrooms or hall rooms. Nowhere there was any implementation of such measuring
system in a bedroom, drawing room. In this research work, we have proposed a quick and easy solution of monitoring the air
quality using dedicated sensors by connecting them to a microcontroller. The entire setup is desired to be placed inside
classrooms full of students as well as in household rooms having people in them, at various times of the day with different
temperature and humidity conditions. The data collected from the classrooms and drawing rooms or bedrooms under several
environmental instances are to be uploaded to a server, from where it would be retrieved into our machines. After this collection
of data, this data to be analyzed using some machine learning tool to invigilate the attributes of the air present in the rooms,
namely the concentration of CO2, CO, the quantity of dust particles and their relative variations with changes in temperature or
humidity or the number of persons present inside the room. Thus we have developed (1) a prototype to measure the indoor air
pollutant concentration (2) a wireless sensor network architecture with a microcontroller (3) a data analyzing algorithm using a
sophisticated but popular machine learning tool. Advantages of this prototype is that it was of very low cost and measurement was
effective, also the presentation of the data was not at all robust but easy to view and monitor.
Keywords: Raspberry pi, CO2, CO, dust, Sensors, temperature and humidity, IAQM, Zigbee, Python, Graphlab
--------------------------------------------------------------------***----------------------------------------------------------------------
cemented floors even. Though in minute quantity, still the change of values, whereas reference [5], [6] takes real time
presence of Radon in the air present inside the rooms is action based on the values from the sensors. [4] Has a
harmful for the persons living inside them. Dust particles problem of issues such as spectrum availability detection,
play a major role in the pollution and are extremely harmful. interference mitigation and spectrum sharing. Reference [7]
Many studies have shown that exposure to atmospheric to improve accuracy and energy efficiency, MAQS
particulate matter (PM) is associated with adverse health incorporates three novel techniques an accurate temporal n-
impacts such as heart and respiratory diseases. In this gram augmented Bayesian room localization method that
research, we have developed an air quality sensor system requires few Wi-Fi fingerprints an air exchange rate based
using CO2, CO, Dust sensors. We have chosen only these IA sensing method, which measures general IAQ using only
gases as these are the major pollutants that affect the indoor CO2 sensors and a zone-based proximity detection method
air quality. Along with these, we have used a Temperature for collaborative sensing, which saves energy and enables
and Humidity sensor to view the changes that take place in data sharing among users. Others use Wi-Fi module,
the concentration of CO2, CO, dust in the air with the whereas reference [2],[9], [10] uses Zigbee devices for
changes in temperature, humidity or the number of people communication between sensors and an interface for
present inside the rooms. Our challenges are to: monitoring.
Getting involved in participatory air quality monitoring to
collect useful data to interpret the degree of pollution inside 3. SETUP
the rooms. These involve providing with:
1>Low-cost and low-power measurement hardware suitable The IAQ assessment system deals in the detection and
for measurements of indoor air quality. analysis of Indoor Air Quality. In fact, Indoor Air Quality is
2>Unobtrusive and user-friendly data acquisition and measured in the built environment, provides a continuous
processing and observation tool, a machine learning tool. stream of information for monitoring the air conditions
3>Support in gathering high quality data. inside the room and provides a platform for informed
decision making.
To measure the urban air pollution we needed to setup the
system in the streets or in railway stations or in busy public The prototype has two layers, a Raspberry Pi based system
pacifies. However this will have a big disadvantage. If gas associated with CO sensor, CO2 sensor, Temperature and
sensors are placed on vehicles running on the streets, the gas Humidity sensor and dust sensor and a monitoring system-
sensors can be moved or dislocated easily at random. At Graph Lab Create with Jupyter Notebook. This study
some frequency, every sensor runs with other sensors and describes the IAQ system, developed by the authors, which
they share a single location. Since several types of sensors aims to ensure autonomously and accurately the IAQ
are used in the network at the same time, the attributes or the monitoring in different indoor places such as bedrooms,
characteristics of the measurement error are different. Some drawing rooms, and classrooms. The system consists of a
of the sensor outputs are lower than real gas concentration low cost indoor air quality monitoring wireless sensor
and the others are higher than real concentration, although system, developed using Raspberry PI, Wi-Fi modules and
they are exposed to the same gas concentration at the same micro sensors, for storage and availability of monitoring
place. data on the server in real time and analyzes the changes in
the concentration of particles and compounds with
temperature and humidity.
2. RELATED WORKS
This section summarizes the prior work and efforts for We have placed the system in the air conditioned as well as
monitoring indoor air quality using sensors and then non AC classrooms of University Institute of Technology,
wirelessly monitoring accordingly. In reference[3] provides Burdwan University, at different times of the day, at such a
an integrated sensing node or WSN System for monitoring places where ample amount of student activity is available
build upon a Raspberry Pi architecture that experimented at and flow of air is also sufficient. We have put the setup there
various places such as church, classrooms and bedrooms ensuring there is proper variation in CO 2 and CO
whereas reference[5] integrates the use of portable AQS and concentration over time. We have also placed the system in
monitoring using smartphone on Arduino architecture which bedrooms at daytime and night for when (1) the room was
use AQS and a zone-based proximity detection method for empty (2) there were people working in the room (3) people
collaborative sensing, which saves energy and enables data were sleeping at night.
sharing among users but uses only C02 sensor similar to
smartphone sensor designed in [7], whereas Air quality is In order to achieve this objective a comprehensive review of
defined by 7 factors which is being using by reference[1] in the literature of journal articles, conference papers and
Arduino platform only using Wi-Fi communication and [11] edited volumes. Given that IAQ sensing is still in formative
uses IOT and wireless sensors. stages and not yet been realized, it was necessary to consider
a wide range of sources for a comprehensive review of the
Real time indoor sensors are being used in most of the topic. The IAQ is still in a conceptual state and the field is
references for indoor in some cases such as [4], [5], [8], and very dynamic at this point, reviewing only journal articles
[12] whereas [6] designed for urban Air Quality monitoring. that make a specific contribution to the IAQ would yield
Most of them uses an Arduino and auto calibration sensors. only a very limited review.
Reference [3], [4] produces a feedback alert for any abrupt
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 30
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
Fig-1: shows implementation of IAQM kit in household. 2>MQ135 Sensor: We are using this sensor for collecting
the amount of CO2 in air in ppm. A high sensitivity and
The symbol represents the kit. wide range and fast response gas sensor which can detect
NH3, NOx, Benzene and Carbon Dioxide (CO2) with a
range of 10-1000 ppm. Circuit voltage 5V±0.1 and works
well at a temperature range of -10°C to 45°C. Requires
manual calibration. It can collect data in 65%±5% humidity.
4. HARDWARE SPECIFICATIONS
The IAQ sensors are built using the RaspberryPi a mini
computer that has all the features of a computer processor.
The operating system used is Raspbian and the Linux core is
Debian. The firmware of the Sensor kit was implemented
using the SSH Putty and the commands and codes for the
sensors was given in a command terminal using basic Linux
commands for Debian core.
Fig-5:GP2Y1010AU0F sensor.
A brief description of each sensor and components is given
below:- 4>DHT11 Sensor: A digital temperature and humidity
1>MQ7 Sensor: A highly sensitive, stable and long life sensor, containing a calibrated digital signal output of the
Carbon Monoxide(CO) sensor with a range of 10ppm- temperature and humidity. The sensor includes a resistive
500ppm with an operating voltage of 5V±0.1 and works sense of wet components and an NTC temperature
well in temperature range of -20°C to 50°C. Humidity measurement device and connected with a high performance
Range– (55±5% RH). Requires manual calibration. It 8 bit microcontroller. Temperature range: 25°C±2°C.It
require a preheat time of 48 hours. requires a power supply of 3.5V-5.5V DC.
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 31
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
5. SOFTWARE IMPLEMENTATION Thus, these were the instances under which data was
collected and this data was sent to the server via the
After the collection of data from the server to our local communication system associated with Raspberry pi.
machine, we are converting the file into csv format. Python
is used as the programming language for the entire purpose Then graphical analysis is done for all the data for Carbon
of analysis of data. We are using Jupyter Notebook for the Monoxide (CO), Carbon Dioxide (CO2) and dust particles
programming, along with GraphLab Create developed by with respect to time, temperature and humidity. The
Turi Company. Jupyter Notebook App is a server-client graphical display of the environment factors allows a greater
application that allows editing and running notebook perception of the behavior of the monitored parameter than
documents, i.e. ipynb files via a web browser. Jupyter numerical display format.
notebook has a notebook kernel which is a “computational
engine” that executes the code contained in a Notebook In the ipynb file that contained the python code os package
Document. An ipython kernel referenced in this module and graphlab package was imported to convert the file to csv
executes python code. We are also using GraphLab Create format and start graphlab analysis respectively. On
which is a graph based, high performance, distributed executing the entire code together by running all the cells,
computation framework written in C++. It is an open source we could start the Graphlab view in a Google chrome tab,
project using an Apache license. The GraphLab framework through which we could view the data and their relative
is a parallel programming abstraction targeted for sparse variations in Scatter plot format or in Bar graph format or in
iterative graph algorithms and it provides a high level Heat maps. We can also calculate the mean, median,
programming interface, allowing a rapid deployment of regression coefficients and other statistical parameters by
distribute machine learning algorithms. For the installment using the Graphlab software.
of Jupyter Notebook, Anaconda is must in any machine. So
we have also installed Anaconda. The following Figs show the results that were obtained from
Graphlab from the data collected from the classrooms of the
We have developed an ipynb file where the python code is institute.
written, and a C program to initiate the ipynb file. For the
browser required for the Jupyter Notebook, we have used A sample of the code used is shown over here:
Google Chrome. The ipynb file, the csv files which contains
all the data, the C program all are kept in the same directory # coding: utf-8
in which Anaconda is located. This is extremely important # In[49]:import graphlab# In[50]:import os#
for the correct execution of the system. Another thing that In[51]:file="text.doc"# In[52]:fd=open(file,"r")#
was initially a limitation that the csv file did not have the In[53]:m=fd.read()#
column names specified (what values in what columns In[54]:data=graphlab.SFrame.read_csv(m)#
represented which parameter). So we separately added In[55]:g=data.show()# In[56]:sqft_model =
column names to each and every csv file containing data graphlab.linear_regression.create(data, target='CO2',
using python commands in Jupyter Notebook. features=['Index'],validation_set=None)# In[57]:print
sqft_model# In[58]:print sqft_model.evaluate(data)#
6. ANALYSIS AND RESULTS In[59]:sqft_model.get('coefficients')# In[60]:print
The AQM Sensor kit collects all the transfers via the sqft_model.show()
communication device to the server. Samples of data were
taken from rooms containing variable number of people
were taken and recorded and varied according to
temperature changes.
1> The system was initially placed in the Computer
Science Lab (air conditioned) in University Institute of
Technology, Burdwan University during a lab session at
the noon time for about 1 hour and 30 minutes. The lab
was filled with pupils and there was a continuous
stream of air flow as well.
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 32
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 33
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 34
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 06 Issue: 09 | Sep-2017, Available @ http://www.ijret.org 35
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308