Analyzing Air Quality using the Internet of Things

23
DUSTIN FRANZ Analyzing Air Quality using the Internet of Things

description

Analyzing Air Quality using the Internet of Things. Dustin FranZ. Research Project. Purdue University Calumet Professor Ricardo Calix. Internet of Things ( IoT ). What is it? Uniquely identifiable objects or things in an Internet-like structure What can it do? Internet of Cows - PowerPoint PPT Presentation

Transcript of Analyzing Air Quality using the Internet of Things

Page 1: Analyzing Air Quality using the Internet of Things

DUSTIN FRANZ

Analyzing Air Quality using the Internet of Things

Page 2: Analyzing Air Quality using the Internet of Things

Research Project

Purdue University Calumet

Professor Ricardo Calix

Page 3: Analyzing Air Quality using the Internet of Things

Internet of Things (IoT)

What is it? Uniquely identifiable objects or things in an Internet-

like structureWhat can it do?

Internet of Cows Reduce Poverty gap in India Environmental Monitoring

Page 4: Analyzing Air Quality using the Internet of Things

What things?

Arduino Microcontrollers connected to environmental sensors Why Environmental Monitoring?

Important in NWI

Why Arduino? Arduino is cheap It’s fun!

Page 5: Analyzing Air Quality using the Internet of Things

What exactly are you monitoring?

MQ7 Carbon Monoxide (CO)

MQ131 Ozone (O3)

Matches type of data collected by the Indiana Department of Environmental Management (IDEM)

Page 6: Analyzing Air Quality using the Internet of Things

Reference Model

Page 7: Analyzing Air Quality using the Internet of Things

Reference model- Measuring

Page 8: Analyzing Air Quality using the Internet of Things

Arduino Uno with Networking

Page 9: Analyzing Air Quality using the Internet of Things

Physical Arduino w/ Sensors

Page 10: Analyzing Air Quality using the Internet of Things

Arduino IDE

Program structure

#Include Libraries

//Define Global Variables

Setup(){//initialize connections}

Loop(){//Read and send data}

Page 11: Analyzing Air Quality using the Internet of Things

Reference model- Connecting

Page 12: Analyzing Air Quality using the Internet of Things

HTTP

REST(Representational State Transfer) Easy to use APIs

HTTP method PUT

Why not GET? Status Codes

Data Formats CSV JSON

Page 13: Analyzing Air Quality using the Internet of Things

Reference model- COSM

Page 14: Analyzing Air Quality using the Internet of Things

CosmA twitter for data

Sharable Searchable

Similar problems

Page 15: Analyzing Air Quality using the Internet of Things

Reference model- Server, Cosm and other APIs

Page 16: Analyzing Air Quality using the Internet of Things

Using the IoT for the IoT

What can we do with just two features? Also have time and location!

More features! Weather API

Temperature, Humidity, …

Page 17: Analyzing Air Quality using the Internet of Things

Python Script

To gather all of this information into a single location

Grabs data from cosm every 5 mins

Weather API has restrictions Updated every 30 mins

JSON

Outputs to CSV file

def getTemp    grab weather data    return weather data

def writeToCSV    grab cosm data    call getTemp every 30 mins    write data to csv

def doWork    call writeToCSV for each feed

##main##    call doWork every 5 mins

Page 18: Analyzing Air Quality using the Internet of Things

Reference model- Analyzing

Page 19: Analyzing Air Quality using the Internet of Things

Problem statement

We’ve collected data from different locations in northwest Indiana and also collected polluted data from car emissions

Use Weka to use this data to try to predict polluted data vs non-polluted data

Page 20: Analyzing Air Quality using the Internet of Things

Dataset

MQ131MQ7PollutedlatitudeLongitudetemperature in Fahrenheitdew point in FahrenheitPrecipitation in the last hour in Inchespressure in in HgRelative humidityDate and Time

Page 21: Analyzing Air Quality using the Internet of Things

WEKA

Naïve Bayes

Ranker

Page 22: Analyzing Air Quality using the Internet of Things

Problems

Sensors often have a warm up period

Sensors are sensitive and can easily produce bad data

Getting polluted data

Page 23: Analyzing Air Quality using the Internet of Things

Moving Forward

Need more data of different types (Polluted data)

Need more features to better analyze data

Hope to submit to a journal

Related research Automatic Semantic Content Enrichment of Sensor

Network Based Information