✈️ Air Passengers Prediction System
An interactive Machine Learning web application that predicts the estimated count of monthly air passengers based on the target Year and Month. This project utilizes advanced regression algorithms to achieve high-precision forecasting, featuring an intuitive frontend dashboard built with Streamlit.
🚀 Live Demo & Deployment
You can interact with the live dashboard application here: 🔗 Live Streamlit Application Link
📸 User Interface (UI) Dashboard
Here is a preview of the active web dashboard interface where users can select inputs and get real-time forecasting numbers:
(Note: Replace ui.png in the repository root folder with your actual dashboard screenshot to render it here)
🛠️ Data Preprocessing & Pipeline
To maintain data structure integrity between training and inference phases, the following pipeline operations were carried out:
- Numerical Standardization: The
yearcolumn is preprocessed using aStandardScalerto bring variance to scale. - Categorical Encoding: The
monthfeature is transformed using One-Hot Encoding to effectively evaluate seasonal trends. - Artifact Serialization: Preprocessing pipelines and columns layout structure are safely serialized into
scaler.pklandcolumns.pklrespectively for smooth runtime execution.
📊 Model Evaluation & Benchmarking
Multiple regression variants were trained and thoroughly benchmarked based on $R^2$ and Adjusted $R^2$ matrices. The comparative evaluations are summarized below:
| Model Index | Trained Models | $R^2$ Score | Adjusted $R^2$ Score | Status |
|---|---|---|---|---|
| 0 | Linear Regression (LR) | 0.94 | 0.88 | Evaluated |
| 1 | K-Nearest Neighbors (KNN) | 0.92 | 0.86 | Evaluated |
| 2 | Decision Tree (DT) | 0.89 | 0.79 | Evaluated |
| 3 | Random Forest (RF) | 0.92 | 0.85 | Evaluated |
| 4 | AdaBoost (ADA) | 0.86 | 0.74 | Evaluated |
| 5 | Gradient Boosting (GD) | 0.98 | 0.96 | 🏆 Best Fit (Selected) |
| 6 | XGBoost (XG) | 0.97 | 0.95 | Evaluated |
Our production system utilizes the Gradient Boosting (GD) architecture (model.pkl) which delivered an outstanding benchmark performance of 98% accuracy ($R^2 = 0.98$).
🗂️ Project Repository Architecture
├── app.py # Core Streamlit interface script with built-in Exception Handling
├── requirements.txt # Dependencies (streamlit, scikit-learn, joblib, pandas, numpy)
├── model.pkl # Pickled Gradient Boosting model layout
├── scaler.pkl # Serialized StandardScaler instance
├── columns.pkl # Structural column validation checklist array
├── ui.png # Dashboard preview display asset
├── Flights.ipynb # Jupyter Notebook containing Data Analysis & Model Training pipeline
└── README.md # Document portfolio profile
An interactive Machine Learning web app built with Streamlit to forecast monthly air passengers. Features a 98% accurate Gradient Boosting Regressor pipeline with robust preprocessing (StandardScaler & One-Hot Encoding) and complete exception handling. Includes the core training Jupyter Notebook
Evaluation results
- R² Score on Air Passengers Prediction Systemself-reported0.940