ML project predicting Algerian forest fires with 98% accuracy using Logistic Regression, SMOTE balancing, and SHAP explainability. Comprehensive analysis of meteorological data with ROC curves, confusion matrix, and PCA visualization.
Algerian-forest-fire-prediction
A machine learning project for predicting forest fires in Algeria using meteorological and Fire Weather Index (FWI) system data. This project addresses class imbalance using SMOTE and achieves 98% accuracy with Logistic Regression.
📋 Table of Contents
- Overview
- Dataset
- Features
- Methodology
- Results
- Installation
- Usage
- Model Performance
- Visualizations
- Technologies Used
- Future Work
- Contributing
- License
- Contact
🎯 Overview
Forest fires are a critical environmental hazard that can cause devastating ecological and economic damage. This project aims to predict forest fire occurrences in Algeria using machine learning techniques. The model analyzes meteorological conditions and fire weather indices to classify whether conditions are favorable for fire occurrence.
Key Highlights:
- ✅ Achieved 98% accuracy on test data
- ✅ Handled class imbalance using SMOTE (Synthetic Minority Over-sampling Technique)
- ✅ Implemented Explainable AI using SHAP values
- ✅ Comprehensive model evaluation with confusion matrix and ROC curves
📊 Dataset
Source: Algerian Forest Fires Dataset
Kaggle Link:
kaggle.com
Dataset Statistics
- Total Records: 243 entries
- Features: 13 input features + 1 target variable
- Time Period: June - September 2012
- Classes:
- Fire: 56.4%
- No Fire: 43.6%
Features Description
| Feature | Description | Type |
|---------|-------------|------|
| day | Day of the month (1-31) | Integer |
| month | Month of the year (6-9) | Integer |
| year | Year (2012) | Integer |
| Temperature | Temperature in Celsius (22-42°C) | Integer |
| RH | Relative Humidity (21-90%) | Integer |
| Ws | Wind Speed (6-29 km/h) | Integer |
| Rain | Rainfall (0-16.8 mm) | Float |
| FFMC | Fine Fuel Moisture Code | Float |
| DMC | Duff Moisture Code | Float |
| DC | Drought Code | Float |
| ISI | Initial Spread Index | Float |
| BUI | Buildup Index | Float |
| FWI | …