A Machine Learning web application built with Flask that predicts the Fire Weather Index (FWI) using meteorological conditions from two Algerian regions.
This project demonstrates an end-to-end Machine Learning workflow including data preprocessing, model training, model serialization, and deployment-ready web development.
Try the application here:
https://algerian-forest-fire-risk-analyzer.onrender.com
The application predicts the Fire Weather Index (FWI) from weather measurements collected in:
- 📍 Bejaia
- 📍 Sidi-Bel Abbes
Users enter meteorological information through a simple web interface and the trained Linear Regression model predicts the expected Fire Weather Index.
The application also categorizes the predicted fire danger into different risk levels and provides a recommendation.
- Predict Fire Weather Index (FWI)
- Supports two Algerian regions
- Linear Regression model
- StandardScaler preprocessing
- Flask backend
- Bootstrap-based frontend
- Risk level classification
- Fire safety recommendation
The model uses the following features:
- Temperature
- Relative Humidity (RH)
- Wind Speed (Ws)
- Rain
- Fine Fuel Moisture Code (FFMC)
- Duff Moisture Code (DMC)
- Drought Code (DC)
- Initial Spread Index (ISI)
- Region
- Fire Weather Index (FWI)
- Data Cleaning
- Exploratory Data Analysis (EDA)
- Correlation Analysis
- Feature Selection
- Train-Test Split
- Feature Scaling using StandardScaler
- Linear Regression Model Training
- Model Evaluation
- Model Serialization using Pickle
- Flask Deployment
- Python
- Flask
- Scikit-Learn
- Pandas
- NumPy
- HTML
- Bootstrap
- Pickle
Algerian-Forest-Fire-Risk-Analyzer/
│
├── application.py
├── requirements.txt
├── README.md
├── .gitignore
│
├── models/
│ ├── linear_regression_model.pkl
│ └── standard_scaler.pkl
│
├── notebooks/
│ ├── ALGERIAN_LR.ipynb
│ └── Algerian_forest_fire_cleaned.csv
│
└── templates/
├── home.html
└── index.html
Clone the repository
git clone https://github.com/YOUR_USERNAME/Algerian-Forest-Fire-Risk-Analyzer.gitMove into the project directory
cd Algerian-Forest-Fire-Risk-AnalyzerCreate a virtual environment
python -m venv .venvActivate the environment
Windows
.venv\Scripts\activateInstall dependencies
pip install -r requirements.txtRun the application
python application.pyThe application will be available at
http://127.0.0.1:5000
Algorithm:
Linear Regression
Preprocessing:
StandardScaler
Framework:
Flask
(Add screenshots after deployment)
- Home Page
- Prediction Form
- Prediction Result
Pratham Singh
Machine Learning | Artificial Intelligence | Python Developer
This project is intended for educational and portfolio purposes.