# π² Algerian Forest Fires Prediction
## π Project Overview
This project focuses on predicting forest fire occurrences in Algeria using historical weather and fire data. By applying machine learning techniques, the system analyzes environmental conditions to determine whether a forest fire is likely to occur.
The project uses the **Algerian Forest Fires Dataset**, which contains data collected from two regions in Algeria (Bejaia and Sidi Bel-Abbes) during the summer months.
---
## π― Project Objectives
- Perform **Exploratory Data Analysis (EDA)** to understand data patterns
- Clean and preprocess the dataset
- Build and evaluate **machine learning models**
- Predict forest fire occurrence based on weather conditions
- Identify key factors contributing to forest fires
---
## π Dataset Description
The dataset contains **244 records** with the following features:
| Feature | Description |
|-------|-------------|
| Temperature | Maximum temperature (Β°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 |
| FWI | Fire Weather Index |
| Classes | Fire / Not Fire (Target Variable) |
---
## π Exploratory Data Analysis (EDA)
- Checked missing values and data consistency
- Analyzed distributions of weather variables
- Visualized correlations between features
- Identified important factors influencing fire occurrence
Libraries used for EDA:
- Pandas
- NumPy
- Matplotlib
- Seaborn
---
## π€ Machine Learning Models Used
- Logistic Regression
- Random Forest Classifier
### Workflow:
1. Data cleaning and preprocessing
2. Feature selection
3. Train-test split
4. Model training
5. Model evaluation
---
## π Model Evaluation
Models were evaluated using:
- Accuracy score
- Confusion matrix
The Random Forest model showed strong performance in classifying fire and non-fire events.
---
## π Technologie β¦