- Project Overview
- Dataset Description
- Problem Statement
- Approach
- Technologies Used
- Model Performance
- How to Use
- Examples
- Future Enhancements
- Acknowledgements
The Forest Fire Algerian ML Project aims to predict the likelihood and severity of forest fires in Algeria based on weather conditions and other environmental factors. The model developed can help authorities and environmental agencies take preventive measures to minimize fire risks.
The dataset consists of 244 instances, which include data from two regions in Algeria:
- Bejaia Region: Located in the northeast of Algeria.
- Sidi Bel-abbes Region: Located in the northwest of Algeria.
- Time Period: The data spans from June 2012 to September 2012.
- Instances:
- 122 instances for each region.
- Fire cases: 138 instances.
- No fire cases: 106 instances.
- Attributes: The dataset has 11 attributes and 1 target attribute (class).
-
Date: Observation date in the format
DD/MM/YYYY
.
Includes:- Day
- Month (
June
toSeptember
) - Year (2012)
-
Temperature (Temp):
- The maximum temperature at noon, measured in degrees Celsius.
- Range: 22 to 42.
-
Relative Humidity (RH):
- The relative humidity percentage.
- Range: 21% to 90%.
-
Wind Speed (Ws):
- Wind speed measured in km/h.
- Range: 6 to 29.
-
Rain:
- Total rainfall in a day, measured in mm.
- Range: 0 to 16.8.
-
Fine Fuel Moisture Code (FFMC):
- An index from the FWI system that represents moisture content in fine fuels.
- Range: 28.6 to 92.5.
-
Duff Moisture Code (DMC):
- Represents the moisture content in the duff layer.
- Range: 1.1 to 65.9.
-
Drought Code (DC):
- Represents the moisture content in the deep organic layers.
- Range: 7 to 220.4.
-
Initial Spread Index (ISI):
- Indicates the initial rate of fire spread.
- Range: 0 to 18.5.
-
Buildup Index (BUI):
- Represents the total amount of fuel available for combustion.
- Range: 1.1 to 68.
-
Fire Weather Index (FWI):
- A comprehensive index representing fire risk.
- Range: 0 to 31.1.
-
Classes:
- The target attribute with two possible values:
- Fire
- No Fire
- The target attribute with two possible values:
Predict whether a forest fire will occur and classify its severity based on meteorological and environmental data. The project focuses on using machine learning models to identify patterns and relationships within the dataset.
-
Data Preprocessing
- Handling missing values.
- Feature scaling and encoding.
- Splitting data into training and testing sets.
-
Exploratory Data Analysis (EDA)
- Visualizing key features and their relationships.
- Identifying correlations and trends.
-
Model Development
- Algorithms used: Logistic Regression, Random Forest, Decision Tree, Gradient Boosting.
- Hyperparameter tuning for optimal performance.
-
Evaluation
- Metrics: Accuracy, Precision, Recall, F1-score.
- Confusion Matrix and ROC curve analysis.
- Programming Language: Python
- Libraries:
- pandas, numpy
- scikit-learn
- matplotlib, seaborn
- Flask (for deployment)
The best-performing model is Ridge Regression model, achieving the following metrics:
- R2 Score: 98.42%
- Mean absolute error: 0.56
-
Clone the Repository
git clone https://github.com/Ktrimalrao/Forest_fire_Algerian_ML-project.git
-
Install Dependencies
pip install -r requirements.txt
-
Run the Project
python app.py
-
Access the Application Open your browser and navigate to
http://127.0.0.1:5000
.
- Temperature: 30°C
- Relative Humidity: 40%
- Wind Speed: 15 km/h
- Rainfall: 0 mm
- Fire Severity: High Risk
- Integration with real-time weather APIs for dynamic predictions.
- Expand the dataset to include more regions.
- Develop a mobile application for accessibility.
We thank the creators of the Algerian forest fire dataset for their valuable contribution to environmental and disaster management research.
Author: Ktrimalrao
GitHub: https://github.com/Ktrimalrao
LinkdIn: LinkdIN