Logo Lanfrica

azrapatvi/Algerian-Forest-Fire-Prediction

Domain:

environment and energy

Record type:

software
Creator:
azr
Host:
# πŸ”₯ Algerian Forest Fire Prediction (Machine Learning + Flask Web App) ## πŸ“Œ Project Overview This project predicts forest fire risk in Algeria using machine learning and provides an interactive **Flask-based web application** for real-time predictions. It covers the complete ML workflow β€” data preprocessing, EDA, feature selection, model training, evaluation β€” and deployment using a modern web interface. --- ## 🌐 Web Application Features * User-friendly prediction form (HTML + Bootstrap) * Takes real-time meteorological inputs * Uses trained ML model for prediction * Displays **Fire Weather Index (FWI)** * Indicates fire risk level based on predicted value --- ## πŸ“‚ Project Structure ``` Algerian-Forest-Fire-Prediction/ β”‚ β”œβ”€β”€ Algerian_forest_fire.ipynb β”œβ”€β”€ feature_selection_and_model_training.ipynb β”œβ”€β”€ main.py # Flask backend β”œβ”€β”€ templates/ β”‚ └── index.html # Frontend UI β”œβ”€β”€ models.pkl # Trained ML models β”œβ”€β”€ scaler.pkl # Feature scaler β”œβ”€β”€ dataset/ (optional) β”œβ”€β”€ README.md ``` --- ## πŸ§ͺ Key Steps Performed ### Machine Learning * Data cleaning & preprocessing * Exploratory Data Analysis (EDA) * Feature engineering & selection * Model training (Linear Regression) * Model evaluation * Model serialization using Pickle ### Deployment * Flask backend (`main.py`) * HTML + Bootstrap frontend * Real-time prediction pipeline --- ## πŸ› οΈ Technologies Used * Python * Google Colab * Pandas, NumPy * Matplotlib, Seaborn * Scikit-learn * Flask * HTML, CSS, Bootstrap --- ## πŸ“Š Dataset The dataset includes environmental and meteorological features: * Temperature * Relative Humidity (RH) * Wind Speed (WS) * Rain * FFMC, DMC, ISI indices * Region Target: Fire Weather Index (FWI) --- ## πŸ“ˆ Model Output The application predicts **FWI (Fire Weather Index)**: * Low FWI β†’ Low fire risk * High FWI β†’ High fire risk ## ⭐ If you find this project useful, consider giving