# Algerian Forest Fire Prediction π₯
This project is an **end-to-end Machine Learning web application** that predicts the **Fire Weather Index (FWI)** using environmental features such as temperature, humidity, wind speed, and rainfall.
The model is deployed using **Flask** and allows users to input values through a web interface to obtain predictions.
---
## π Project Overview
The goal of this project is to build a machine learning model that predicts the **Fire Weather Index (FWI)** for Algerian forest regions.
The system takes multiple environmental parameters as input and returns a predicted FWI value using a **Ridge Regression model**.
---
## βοΈ Technologies Used
* Python
* Flask
* Scikit-Learn
* NumPy
* Pandas
* HTML
* Jinja2
---
## π Features Used for Prediction
* Temperature
* Relative Humidity (RH)
* Wind Speed (Ws)
* Rain
* FFMC
* DMC
* ISI
* Classes
* Region
---
## π§ Machine Learning Model
The trained model used in this project:
**Ridge Regression**
Steps performed:
1. Data preprocessing
2. Feature scaling using **StandardScaler**
3. Model training
4. Model serialization using **pickle**
5. Deployment with **Flask**
---
## π Project Structure
```
Algerian_Fire-Prediction
β
βββ application.py
βββ requirements.txt
βββ README.md
β
βββ models
β βββ ridge.pkl
β βββ scaler.pkl
β
βββ templates
β βββ index.html
β βββ home.html
β
βββ Algerian.ipynb
```
---
## π How to Run the Project
### 1. Clone the repository
```
git clone
```
### 2. Install dependencies
```
pip install -r requirements.txt
```
### 3. Run the Flask application
```
python application.py
```
### 4. Open in browser
```
127.0.0.1
```
---
## π Future Improvements
* Improve UI using Bootstrap
* Add model evaluation metrics
* Deploy on cloud platforms (Render / AWS / Heroku)
---
## π¨βπ» Author
Kartavya Verma