https://github.com/fahadpathan7/aqi-prediction-web
This is a website that uses our custom model that we have developed for our thesis. It predicts Air Quality Indexing (AQI) for an uploaded image in real-time. It also shows lime explanation that shows the regions of image that is important to the model (mostly sky areas).
https://github.com/fahadpathan7/aqi-prediction-web
flask
Last synced: 12 months ago
JSON representation
This is a website that uses our custom model that we have developed for our thesis. It predicts Air Quality Indexing (AQI) for an uploaded image in real-time. It also shows lime explanation that shows the regions of image that is important to the model (mostly sky areas).
- Host: GitHub
- URL: https://github.com/fahadpathan7/aqi-prediction-web
- Owner: fahadPathan7
- Created: 2024-12-01T15:11:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T06:56:31.000Z (over 1 year ago)
- Last Synced: 2025-04-04T15:50:55.937Z (about 1 year ago)
- Topics: flask
- Language: HTML
- Homepage:
- Size: 86.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#
๐ AQI Prediction ๐ค๏ธ
This is the application of our undergrad thesis. The thesis is about predicting the **Air Quality Index (AQI)** of a city using **Machine Learning**. We have used the data of the city of Dhaka, Bangladesh (open-source) to train our model. The model we have used here is our proposed custom model **(DeepAQNet)** which outperforms the other pre-trained models and the models worked on the same dataset. Just by capturing the image of the surrounding environment, the user can get the **real-time AQI** of that place.
---
## ๐ Table of Contents
- [๐ AQI Prediction ๐ค๏ธ](#-aqi-prediction-๏ธ)
- [๐ Table of Contents](#-table-of-contents)
- [๐ Introduction](#-introduction)
- [๐ฌ๏ธ What is AQI?](#๏ธ-what-is-aqi)
- [๐ค Why is AQI important?](#-why-is-aqi-important)
- [๐ง๐ฉ Why is AQI prediction important for Bangladesh?](#-why-is-aqi-prediction-important-for-bangladesh)
- [๐ Result of our Proposed Model](#-result-of-our-proposed-model)
- [๐ ๏ธ How to use the application?](#๏ธ-how-to-use-the-application)
- [๐ธ Web Screenshots](#-web-screenshots)
---
## ๐ Introduction
### ๐ฌ๏ธ What is AQI?
The **Air Quality Index (AQI)** indicates air pollution levels and their potential health effects. It measures pollutants such as particulate matter, ozone, carbon monoxide, sulfur dioxide, and nitrogen dioxide.
### ๐ค Why is AQI important?
The AQI communicates daily air quality and guides precautions for public health. Categories:
- **0-50**: ๐ข Good
- **51-100**: ๐ก Moderate
- **101-150**: ๐ Unhealthy for Sensitive Groups
- **151-200**: ๐ด Unhealthy
- **201-300**: ๐ฃ Very Unhealthy
- **301-500**: โซ Hazardous
### ๐ง๐ฉ Why is AQI prediction important for Bangladesh?
Bangladesh faces severe air pollution due to urbanization, industrialization, and vehicular emissions. Dhaka often ranks among the world's most polluted cities. Real-time AQI predictions can help people take precautions against harmful air quality.
---
## ๐ Result of our Proposed Model
We have trained our proposed model **(DeepAQNet)** on the dataset of Dhaka, Bangladesh. The model has achieved the following performance metrics on the test dataset:
| ๐งช Metric | โ๏ธ Value |
| --- | ---- |
| **MSE** | 1685.03 |
| **RMSE** | 41.05 |
| **MAE** | 30.55 |
| **R2 Score** | 0.4229 |
---
## ๐ ๏ธ How to use the application?
**Note:** ๐ Python must be installed on your system.
1. Clone the repository. ๐
```bash
git clone https://github.com/fahadPathan7/AQI-Prediction-Web.git
```
2. Change the directory. ๐
```bash
cd AQI-Prediction-Web
```
3. Install the required libraries. ๐ฆ
```bash
pip install flask tensorflow numpy pillow matplotlib lime scikit-image
```
4. Run the application. ๐
```bash
python app.py
```
5. Open the browser and go to the following URL. ๐
```bash
http://localhost:5000/
```
6. Capture the image of the surrounding environment. ๐ธ
7. Click on the **Predict** button to get the real-time AQI of that place. โ
8. Get the AQI and take necessary precautions to protect yourself from the harmful effects of air pollution. ๐ฌ๏ธ
---
## ๐ธ Web Screenshots
๐ผ๏ธ Before Uploading the Image
โฌ๏ธ
๐ท After Uploading & Predicting the Image
---