Skip to content

EmiCrack132/ClimFire

Repository files navigation

πŸ”₯ ClimFire

Forest Fire Risk Intelligence System β€” Victoria, Australia

Built for WeatherWise Hack 2026 β€” Smarter Weather. Safer World.

Python License ML API


🌐 Live Demo

πŸ”₯ What is ClimFire?

ClimFire is a real-time forest fire risk intelligence system for Victoria, Australia β€” one of the most fire-prone regions on Earth.

The 2019–2020 Black Summer fires burned over 5.8 million hectares in Victoria alone, killed billions of animals, and displaced thousands of people. Yet many communities still lack access to reliable, actionable fire risk information.

ClimFire addresses this by combining real-time climate data with a Machine Learning model trained on 10 years of historical weather patterns to predict daily fire risk levels β€” and estimate the environmental impact on endangered wildlife before a fire event occurs.


🧠 How It Works

Open-Meteo API NASA-grade climate data ↓ Data Processing pandas Β· feature engineering ↓ ML Model Random Forest Classifier (scikit-learn) ↓ Risk Prediction LOW / MODERATE / HIGH ↓ Flask Backend REST API serving predictions ↓ Web Dashboard Real-time map Β· Wildlife alerts Β· Impact calculator


✨ Features

  • 7-Day Fire Risk Forecast β€” daily predictions powered by ML
  • Interactive Risk Map β€” Victoria's protected areas color-coded by risk level
  • Wildlife Impact Dashboard β€” 6 endangered species monitored with real-time alerts
  • Environmental Impact Calculator β€” estimates hectares, trees, COβ‚‚, and animal populations at risk
  • Live Data β€” climate data refreshed on every page load via Open-Meteo API

πŸ† Hackathon Tracks

Track How ClimFire qualifies
🌧 Weather Intelligence Real-time 7-day climate forecast with visualization
🚨 Disaster Response & Preparedness Fire risk prediction with visual alerts
πŸ€– AI & Data Innovation Random Forest ML model trained on 10 years of data

πŸ›  Tech Stack

Layer Technology
Language Python 3.11
Backend Flask Β· Gunicorn
Machine Learning scikit-learn Β· pandas Β· numpy
Climate Data Open-Meteo Forecast & Archive API
Frontend HTML Β· CSS Β· Vanilla JavaScript
Map Leaflet.js Β· OpenStreetMap Β· CARTO
Fonts Google Fonts (Bebas Neue Β· DM Sans)
Deploy Render (free tier)

πŸ€– ML Model Details

  • Algorithm: Random Forest Classifier
  • Training data: Open-Meteo historical archive 2015–2024 (3,653 days)
  • Features used:
    • Maximum daily temperature (Β°C)
    • Total precipitation (mm)
    • Maximum wind speed (km/h)
    • Maximum relative humidity (%)
    • Consecutive dry days (engineered feature)
  • Output classes: LOW Β· MODERATE Β· HIGH fire risk
  • Test accuracy: 99% on 731 unseen days
  • Labeling: Based on Bureau of Meteorology (BOM) Fire Weather Index thresholds

πŸš€ Run Locally

1. Clone the repository

git clone https://github.com/EmiCrack132/ClimFire.git
cd ClimFire

2. Create virtual environment

python -m venv venv

# Windows
venv\Scripts\activate

# Mac/Linux
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Generate data and train the model

python fase2_datos_historicos.py
python fase2_etiquetar.py
python fase2_modelo.py

5. Start the server

python servidor.py

6. Open in browser

http://127.0.0.1:5000


πŸ“ Project Structure

ClimFire/ β”œβ”€β”€ static/ β”‚ └── index.html # Frontend dashboard β”œβ”€β”€ fase1_api.py # Phase 1 β€” API exploration β”œβ”€β”€ fase2_datos_historicos.py # Phase 2 β€” Historical data download β”œβ”€β”€ fase2_etiquetar.py # Phase 2 β€” Data labeling β”œβ”€β”€ fase2_modelo.py # Phase 2 β€” ML model training β”œβ”€β”€ servidor.py # Flask backend β”œβ”€β”€ modelo_incendio.pkl # Trained ML model β”œβ”€β”€ forecast_victoria.csv # Sample forecast output β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ Procfile # Render deploy config β”œβ”€β”€ LICENSE # MIT License └── README.md # This file


🌿 Data Sources & Attribution

Source Used for License
Open-Meteo Real-time & historical climate data CC BY 4.0
Victorian Biodiversity Atlas Species population estimates Public reference
IUCN Red List Conservation status Public reference
OpenStreetMap Map data ODbL
CARTO Dark map tiles Free tier
Leaflet.js Interactive map library BSD 2-Clause

πŸ“œ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


πŸ‘€ Author

EmiCrack132 Built with πŸ”₯ for WeatherWise Hack 2026

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors