Logo Lanfrica

Sure-Mohan-Kumar/Algerian-Forest-Fires-Project

Domaine:

environment and energy

Type de record:

softwaremodel
Créateur:
Sur
Hôte:
A simple app that predicts the Fire Weather Index (FWI) using an Algerian dataset. It applies Standard Scaler for preprocessing and Ridge Regression for prediction, helping with early fire risk assessment based on weather data. # 🔥 Fire Weather Index (FWI) Prediction App A lightweight Flask web application that predicts the **Fire Weather Index (FWI)** using a Ridge Regression model trained on Algerian forest fire data. Built with a clean, responsive UI using Bootstrap 5. --- ## 🚀 Features - 🔢 Predicts FWI from user inputs: - Temperature (°C) - Relative Humidity (%) - Wind Speed (m/s) - Rainfall (mm) - FFMC (Fine Fuel Moisture Code) - DMC (Duff Moisture Code) - ISI (Initial Spread Index) - Classes (numeric category) - Region (numeric category) - ⚙️ Preprocessing with Standard Scaler - 📈 Ridge Regression model for predictions - 💡 Clear and responsive UI with Bootstrap 5 - 🛡️ Basic input validation and error handling --- ## 🛠️ Installation & Setup 1. **Clone the repository**: ```bash git github.com cd fwi-prediction-app ``` 2. **(Optional) Create a virtual environment**: ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` 3. **Install dependencies**: ```bash pip install -r requirements.txt ``` 4. **Ensure model files are present**: - Place `ridge.pkl` and `scaler.pkl` inside the `models/` directory. --- ## ▶️ Running the App Start the Flask development server: ```bash python app.py ``` Then, open your browser and go to: ``` 127.0.0.1 ``` Enter your weather data and click **"Predict FWI"**. --- ## 🧭 Project Structure ``` . ├── application.py # Flask application ├── models/ │ ├── ridge.pkl # Trained Ridge Regression model │ └── scaler.pkl # Trained Standard Scaler ├── templates/ │ └── index.html │ └── home.html # Frontend HTML with Bootstrap ├── requirements.txt # Project dependencies └── README.md # Project documentation ``` --- ## 🧪 Sample Input (for testing) | Feature | Value | |---------------------|---------| | Temperature (°C) | 25 | | Relative H …