Skip to content

Latest commit

Β 

History

History
40 lines (20 loc) Β· 1.35 KB

File metadata and controls

40 lines (20 loc) Β· 1.35 KB

🌬️ Air Quality Predictor

This is a web app that helps you check and predict the air quality (AQI) in different cities. It combines live weather and pollution data with a machine learning model I trained, so you can see not just the current AQI, but also a predicted value with a confidence score.

The app is built with Streamlit for the UI, uses PostgreSQL to store historical data, and a RandomForest model (from scikit-learn) for predictions. It’s simple to use: type a city, hit a button, and you’ll get the current and predicted air quality, along with health recommendations.

πŸš€ Features

πŸ“‘ Live Data Fetching – Collects air quality & weather data from external APIs.

πŸ€– ML Prediction – RandomForest model trained on environmental features.

πŸ“Š Confidence Scoring – Multi-factor confidence calculation (tree agreement, feature ranges, prediction spread, time-based).

πŸ—„οΈ Database Integration – Stores AQI, weather, and prediction history in PostgreSQL.

πŸ“± Interactive Web UI – Streamlit interface with quick actions:

Share Location

Set AQI Alerts

View Historical Trends

πŸ” Explainability – Each prediction comes with category, health impact, and confidence level.

πŸ› οΈ Tech Stack

Frontend/UI: Streamlit

Backend/DB: PostgreSQL + SQLAlchemy

Machine Learning: scikit-learn (RandomForest)

Data Handling: Pandas, NumPy