This project performs end-to-end wildfire risk prediction using multiple regression models based on the Algerian Forest Fires dataset. It covers complete data preprocessing, feature engineering, model training, evaluation, and deployment.
Wildfires have become increasingly frequent and intense, affecting ecosystems and economies. In this project, we use real-world data from Algerian forests to build predictive models that estimate Fire Weather Index (FWI), which indicates the potential for wildfire risk.
We build multiple regression models and compare their performance using standard metrics.
- Source: Algerian Forest Fires Dataset (UCI Repository)
- Attributes:
- Temperature, Relative Humidity, Wind, Rain
- DC, DMC, FFMC, ISI (fire danger indices)
- FWI (target variable)
- Target:
FWI(Fire Weather Index — numerical value)
- Combined two region-wise datasets into one
- Converted region column to numerical category
- Converted all columns to appropriate data types
- Handled missing values
- Feature scaling using
StandardScaler - Split into
trainandtestsets (80:20)
- Linear Regression
- Lasso Regression
- Ridge Regression
- ElasticNet Regression
- Decision Tree Regressor
- Random Forest Regressor
- Mean Absolute Error (MAE)
- Mean Squared Error (MSE)
- Root Mean Squared Error (RMSE)
- R² Score
After comparing multiple models, Random Forest Regressor achieved the best performance based on R² score and lowest errors.
- Correlation Heatmap
- Feature Distribution
- Actual vs Predicted Line Plots
- Residual Plots
(All visuals are included in the notebook for deeper insights.)
- Python
- Pandas, NumPy
- Scikit-learn
- Seaborn, Matplotlib
- Jupyter Notebook
- Clone this repository
git clone https://github.com/udityamerit/Wildfire-Risk-Prediction-Using-Regression-ML-Model.git
cd Wildfire-Risk-Prediction-Using-Regression-ML-Model- Install the required libraries
pip install -r requirements.txt- Open the notebook
jupyter notebook End-to-End-ML_Project.ipynb- Add Streamlit/Flask-based UI for public access
- Use time-series wildfire prediction (e.g. LSTM)
- Integrate satellite imagery using deep learning
- Build a real-time dashboard with geolocation mapping
Uditya Narayan Tiwari 🎓 B.Tech CSE (AI/ML) – VIT Bhopal 🔗 Portfolio 🔗 GitHub 🔗 LinkedIn
This project is open-sourced under the MIT License.