MasumBhuiyan commited on
Commit
a9d8512
·
verified ·
1 Parent(s): 04f70d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -18
README.md CHANGED
@@ -1,18 +1,49 @@
1
- # Air Quality Prediction and Classification
2
-
3
- This Gradio app predicts the Air Quality Index (AQI) and classifies air quality as "Safe" or "Unsafe" based on pollutant levels (PM2.5, PM10, NO2, CO) and weather conditions (temperature, humidity). It addresses urban air pollution, a critical public health issue.
4
-
5
- ## How to Use
6
- 1. Use sliders to input pollutant levels and weather conditions.
7
- 2. View predicted AQI from Linear Regression, Polynomial Regression, Ridge Regression, and Random Forest.
8
- 3. See classifications from Logistic Regression and Random Forest.
9
- 4. Check the bar plot comparing model predictions.
10
-
11
- ## Model Details
12
- - **Dataset**: Synthetic air quality data (inspired by UCI Air Quality Dataset).
13
- - **Features**: PM2.5, PM10, NO2, CO, Temperature, Humidity, K-means cluster labels.
14
- - **Models**: Linear Regression, Polynomial Regression, Ridge Regression, Random Forest (regression and classification), Logistic Regression.
15
- - **Concepts**: Unsupervised learning, feature engineering, regularization, ensemble learning, bias-variance tradeoff.
16
-
17
- ## Real-World Impact
18
- This app can inform air quality monitoring and health advisories in urban areas.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Air Quality Predictor
3
+ emoji: 🌍
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: gradio
7
+ sdk_version: "4.44.0"
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
+ # Air Quality Prediction and Classification
13
+
14
+ This Gradio app predicts the Air Quality Index (AQI) and classifies air quality as "Safe" or "Unsafe" based on pollutant levels (PM2.5, PM10, NO2, CO) and weather conditions (temperature, humidity). It addresses urban air pollution, a critical public health issue, making it a compelling showcase for machine learning applications.
15
+
16
+ ## How to Use
17
+ 1. Use the sliders to input pollutant levels (PM2.5, PM10, NO2, CO) and weather conditions (temperature, humidity).
18
+ 2. View predicted AQI values from four models: Linear Regression, Polynomial Regression, Ridge Regression, and Random Forest.
19
+ 3. See classification results (Safe/Unsafe) from Logistic Regression and Random Forest.
20
+ 4. Check the bar plot comparing AQI predictions across models.
21
+
22
+ ## Model Details
23
+ - **Dataset**: Synthetic air quality data inspired by real-world datasets (e.g., UCI Air Quality Dataset).
24
+ - **Features**: PM2.5, PM10, NO2, CO, Temperature, Humidity, and a K-means cluster label for feature engineering.
25
+ - **Models**:
26
+ - **Regression**: Linear Regression, Polynomial Regression (degree 2), Ridge Regression, Random Forest Regressor.
27
+ - **Classification**: Logistic Regression, Random Forest Classifier.
28
+ - **Machine Learning Concepts**:
29
+ - **Introduction to Machine Learning**: Data preprocessing and feature engineering.
30
+ - **Unsupervised Learning**: K-means clustering to create cluster features.
31
+ - **Gradient Descent and Multiple Linear Regression**: Linear and Ridge models.
32
+ - **Polynomial Regression and Regularization**: Polynomial features with Ridge to prevent overfitting.
33
+ - **Logistic Regression and Classification**: Binary classification (Safe/Unsafe).
34
+ - **Ensemble Learning**: Random Forest for robust predictions.
35
+ - **Model Evaluation and Bias-Variance Tradeoff**: Bar plot compares model performance, highlighting tradeoffs.
36
+
37
+ ## Real-World Impact
38
+ This app can assist cities in monitoring air quality and issuing health advisories, contributing to public health and environmental awareness. The predicted AQI values (e.g., ~120, classified as "Unsafe") indicate conditions that may require action, such as reducing outdoor activities.
39
+
40
+ ## Setup
41
+ - **Dependencies**: Listed in `requirements.txt` (Gradio, scikit-learn, pandas, numpy, matplotlib, seaborn, joblib).
42
+ - **Model Files**: Pre-trained models and scalers (`scaler_initial.pkl`, `scaler_with_cluster.pkl`, `kmeans.pkl`, etc.) are included.
43
+ - **Source Code**: The app is implemented in `app.py` using Gradio for an interactive interface.
44
+
45
+ ## Authors
46
+ Created as a capstone project for an Introduction to Machine Learning course, demonstrating a complete ML pipeline from data preprocessing to deployment.
47
+
48
+ ## Try It Out
49
+ Interact with the app using the sliders and explore how different pollutant levels affect AQI predictions and classifications!