# π₯ Algerian Forest Fire Prediction (Machine Learning + Flask Web App)
## π Project Overview
This project predicts forest fire risk in Algeria using machine learning and provides an interactive **Flask-based web application** for real-time predictions.
It covers the complete ML workflow β data preprocessing, EDA, feature selection, model training, evaluation β and deployment using a modern web interface.
---
## π Web Application Features
* User-friendly prediction form (HTML + Bootstrap)
* Takes real-time meteorological inputs
* Uses trained ML model for prediction
* Displays **Fire Weather Index (FWI)**
* Indicates fire risk level based on predicted value
---
## π Project Structure
```
Algerian-Forest-Fire-Prediction/
β
βββ Algerian_forest_fire.ipynb
βββ feature_selection_and_model_training.ipynb
βββ main.py # Flask backend
βββ templates/
β βββ index.html # Frontend UI
βββ models.pkl # Trained ML models
βββ scaler.pkl # Feature scaler
βββ dataset/ (optional)
βββ README.md
```
---
## π§ͺ Key Steps Performed
### Machine Learning
* Data cleaning & preprocessing
* Exploratory Data Analysis (EDA)
* Feature engineering & selection
* Model training (Linear Regression)
* Model evaluation
* Model serialization using Pickle
### Deployment
* Flask backend (`main.py`)
* HTML + Bootstrap frontend
* Real-time prediction pipeline
---
## π οΈ Technologies Used
* Python
* Google Colab
* Pandas, NumPy
* Matplotlib, Seaborn
* Scikit-learn
* Flask
* HTML, CSS, Bootstrap
---
## π Dataset
The dataset includes environmental and meteorological features:
* Temperature
* Relative Humidity (RH)
* Wind Speed (WS)
* Rain
* FFMC, DMC, ISI indices
* Region
Target: Fire Weather Index (FWI)
---
## π Model Output
The application predicts **FWI (Fire Weather Index)**:
* Low FWI β Low fire risk
* High FWI β High fire risk
## β If you find this project useful, consider giving