# π₯ Algerian Forest Fire Weather Index Predictor
A Machine Learning-based web application that predicts the **Fire Weather Index (FWI)** using environmental and forest condition inputs.
Built using **Flask**, **Scikit-learn**, and **HTML/CSS**.
---
## π Project Overview
Forest fires are highly dependent on weather and forest conditions.
This project uses a trained ML regression model to predict the **Fire Weather Index**, helping assess fire risk levels based on user inputs.
The application provides:
- A clean web interface
- Real-time predictions
- Proper scaling and ML pipeline integration
---
## π§ Machine Learning Pipeline
1. User enters environmental parameters
2. Data is preprocessed using a trained **StandardScaler**
3. Prediction is generated using a trained ML model
4. Result is displayed on the web interface
---
## π₯ Input Features
| Feature | Description |
|---------|-------------|
| **Temperature** | Temperature in Β°C |
| **RH** | Relative Humidity (%) |
| **Ws** | Wind Speed (km/h) |
| **Rain** | Rainfall (mm) |
| **FFMC** | Fine Fuel Moisture Code |
| **DMC** | Duff Moisture Code |
| **DC** | Drought Code |
| **ISI** | Initial Spread Index |
| **BUI** | Buildup Index |
---
## π€ Output
- **Predicted Fire Weather Index (FWI)**
- Rounded and displayed cleanly on the UI
---
## π οΈ Tech Stack
- **Backend:** Flask (Python)
- **Machine Learning:** Scikit-learn, NumPy
- **Frontend:** HTML, CSS
- **Model Serialization:** Pickle
---
## π Project Structure
```
Algerian-Forest-Fire/
β
βββ Backend/
β βββ app.py
β
βββ data/
β βββ Algerian_forest_fires_cleaned_data.csv
β
βββ Frontend/
β βββ static/
β β βββ style.css
β βββ templates/
β βββ index.html
β
βββ models/
β βββ model.pkl
β βββ scaler.pkl
β
βββ notebooks/
β βββ Algerian_forest_fires_model.ipynb
β
βββ requirements.txt
βββ README.md
```
---
## βοΈ How to Run Locally
### 1οΈβ£ Clone the repository
```bash
git clone
github.com. β¦