Git Product home page Git Product logo

air-quality-prediction's Introduction

Air-quality-prediction

As air pollution is a complex mixture of toxic components with considerable impact on humans, forecasting air pollution concentration emerges as a priority for improving life quality. So with the help of Python tools and some Machine Learning algorithms, we try to predict the air quality.

Install

This project requires Python 3.6 and the following libraries installed:

You will also need to have software installed to run and execute a Jupyter Notebook

If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included.

Code

Template code is provided in the Speckbit Project Air_Quality_Prediction(T).ipynb and Speckbit Project Air_Quality_Prediction[C6H6(GT)].ipynb notebook file. You will also be requires to use the included dataset file AirQualityUCl.csv.

Run

In a terminal or command window, navigate to the top-level project directory and run one of the following commands:

ipython notebook Speckbit Project Air_Quality_Prediction(T).ipynb
ipython notebook Speckbit Project Air_Quality_Prediction[C6H6(GT)].ipynb

or

jupyter notebook Speckbit Project Air_Quality_Prediction(T).ipynb
jupyter notebook Speckbit Project Air_Quality_Prediction[C6H6(GT)].ipynb

This will open the Jupyter Notebook software and project file in your browser.

Dataset information

The dataset contains 9358 instances of hourly averaged responses from an array of 5 metal oxide chemical sensors embedded in an Air Quality Chemical Multisensor Device. The device was located on the field in a significantly polluted area, at road level,within an Italian city. Data were recorded from March 2004 to February 2005 (one year)representing the longest freely available recordings of on field deployed air quality chemical sensor devices responses. Ground Truth hourly averaged concentrations for CO, Non Metanic Hydrocarbons, Benzene, Total Nitrogen Oxides (NOx) and Nitrogen Dioxide (NO2) and were provided by a co-located reference certified analyzer. Evidences of cross-sensitivities as well as both concept and sensor drifts are present as described in De Vito et al., Sens. And Act. B, Vol. 129,2,2008 (citation required) eventually affecting sensors concentration estimation capabilities. Missing values are tagged with -200 value. This dataset can be used exclusively for research purposes. Commercial purposes are fully excluded.

Attribute information

  • 0 Date (DD/MM/YYYY)
  • 1 Time (HH.MM.SS)
  • 2 True hourly averaged concentration CO in mg/m^3 (reference analyzer)
  • 3 PT08.S1 (tin oxide) hourly averaged sensor response (nominally CO targeted)
  • 4 True hourly averaged overall Non Metanic HydroCarbons concentration in microg/m^3 (reference analyzer)
  • 5 True hourly averaged Benzene concentration in microg/m^3 (reference analyzer)
  • 6 PT08.S2 (titania) hourly averaged sensor response (nominally NMHC targeted)
  • 7 True hourly averaged NOx concentration in ppb (reference analyzer)
  • 8 PT08.S3 (tungsten oxide) hourly averaged sensor response (nominally NOx targeted)
  • 9 True hourly averaged NO2 concentration in microg/m^3 (reference analyzer)
  • 10 PT08.S4 (tungsten oxide) hourly averaged sensor response (nominally NO2 targeted)
  • 11 PT08.S5 (indium oxide) hourly averaged sensor response (nominally O3 targeted)
  • 12 Temperature in °C
  • 13 Relative Humidity (%)
  • 14 AH Absolute Humidity

Output variable (desired target):

  • C6H6(GT)
  • T

Models trained on

  1. Linear Regression
  2. Lasso Regression
  3. Decision Tree Regression

air-quality-prediction's People

Contributors

ndk03 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.