Machine learning project using classification, regression, clustering, and SHAP explainability on the Algerian Forest Fires dataset. Models fire occurrence and Fire Weather Index (FWI) to support proactive wildfire management.
# π² Forest Fire Prediction and Analysis using Machine Learning
This project applies classification, regression, clustering, and explainable AI techniques to the **Algerian Forest Fires Dataset** to understand and predict fire occurrences and fire weather conditions.
---
## π Project Highlights
- β
**Binary Classification**: Predicts if a fire occurred (`fire` vs `not fire`)
- π **Regression Modeling**: Predicts **Fire Weather Index (FWI)**
- π§ **Clustering**: Groups data using KMeans and Agglomerative Clustering
- π **Explainability**: Uses SHAP for feature importance visualization
- π **Data Standardization**: Applies `StandardScaler` for uniform feature scaling
---
## π» Models Used
### π§ͺ Classification
- Logistic Regression
- Random Forest Classifier
- Support Vector Machine (SVC)
### π Regression
- Linear Regression
- Random Forest Regressor
- Gradient Boosting Regressor
### π€ Clustering
- KMeans
- Agglomerative Clustering
---
## π¦ Dependencies
Install all requirements using:
```bash
pip install -r requirements.txt
```
---
## π Dataset
- **Source**: UCI Algerian Forest Fires Dataset
Place the cleaned dataset as:
```
forest-fire-ml/
βββ Algerian_forest_fires_dataset_CLEANED.csv
```
---
## π How to Run
```bash
python forest_fire_analysis.py
```
---
## π Visualizations
- PCA-reduced clustering visualizations
- SHAP summary plots for feature importance
- Bar plots for Random Forest feature importances
---
## π§ Author
- **USMAN** β AI & ML Enthusiast | GitHub: [Usman361-AI]
---
## π License
This project is licensed under the MIT License - see the LICENSE file for details.