Machine learning web application for predicting Forest Fire Weather Index (FWI) using Algerian forest fire data and a Ridge Regression model.
š„ Algerian Forest Fire FWI Prediction
A Machine Learning web application that predicts the *Fire Weather Index (FWI)* using meteorological and fire-weather data from the Algerian Forest Fires dataset.
The project uses *Ridge Regression* for prediction and *StandardScaler* for feature preprocessing. A *Flask* web application provides a simple interface where users can enter the required values and get an FWI prediction.
## š Features
- Machine Learning based FWI prediction
- Ridge Regression model
- Feature scaling using StandardScaler
- Flask web application
- Simple HTML user interface
- Real-time prediction through a web form
- Trained model saved using Pickle
## š ļø Technologies Used
- Python
- Flask
- NumPy
- Pandas
- Scikit-learn
- HTML/CSS
- Pickle
## š Dataset
This project is based on the *Algerian Forest Fires Dataset*.
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)
- Buildup Index (BUI)
- Classes
- Region
The target variable is:
*FWI (Fire Weather Index)*
## š¤ Machine Learning Model
The project uses *Ridge Regression* to predict the Fire Weather Index.
Before prediction, the input features are transformed using *StandardScaler*, using the same preprocessing approach used during model training.
The trained files are:
- ridge.pkl ā trained Ridge Regression model
- scaler.pkl ā trained StandardScaler
## š Project Structure
```text
algerian-forest-fire-fwi-prediction/
ā
āāā templates/
ā āāā index.html
ā
āāā app.py
āāā ridge.pkl
āāā scaler.pkl
āāā requirements.txt
āāā README.md