Logo Lanfrica

tanmay-045/Forest-Fire-Risk-ML-Predictor

Domain:

environment and energy

Record type:

software
Creator:
tan
Host:
A Flask web app to predict the Fire Weather Index (FWI) of Algerian Forest Fires using a machine learning model. It takes inputs like temperature, relative humidity, wind speed, and other fire-related data to predict fire risk using a Ridge regression model. ## Algerian Forest Fire FWI Prediction This web application predicts the Fire Weather Index (FWI) for Algerian forest fires using a machine learning model. The FWI is an important metric used to estimate the risk of forest fires, based on several environmental factors. github.com ### Aim *to predict the Fire Weather Index (FWI), a critical indicator used in fire management to assess the likelihood of fire spread and intensity.* ### Dataset Description The dataset contains observations of forest fires in Algeria, along with various meteorological features that influence fire activity. Key features include: - **Temperature** - **Relative Humidity (RH)** - **Wind Speed (Ws)** - **Rain** - **Fine Fuel Moisture Code (FFMC)** - **Drought Code (DMC)** - **Initial Spread Index (ISI)** - **Classes**: Fire severity classification - **Region**: Specific regions in Algeria ### Machine Learning Approach I used Ridge Regression, a regularized linear regression model, to predict the FWI. Here’s how I approached the problem: 1. **Data Preprocessing**: The data was scaled using `StandardScaler` to ensure all features contribute proportionally to the model. 2. **Model Selection**: Ridge Regression was chosen due to its effectiveness in handling multicollinearity and regularization, which prevents overfitting. 3. **Flask Integration**: The trained model was saved using `pickle` and integrated into a Flask web application. The app allows users to input the environmental parameters, which are then scaled and passed to the Ridge regression model to predict the FWI. The app consists of two main components: - **Frontend**: A simple HTML form where users can input their data. - **Backend**: Flask handles the requests, performs scaling and predictions, and displays the results. ### What Does This App Achieve? This app provides a quick and easy way for users to estimate the Fire Weather Index based on real-time me …