Skip to content
@Terra-Watch

TerraWatch

TerraWatch

See where wildfire is likely tomorrow, and where a fire will go next.

Forest fire forecast, spread outlook and monitoring for India's forest departments.
Three models, a web application in three languages, and a LoRa network of lookout stations.

Live site  ·  Dataset on Zenodo  ·  Dashboard code  ·  English · हिन्दी · ଓଡ଼ିଆ

The control-room map on 10 March 2025 over Odisha: forest cells shaded by forecast level with the fires the satellite detected that day drawn as diamonds

The control-room map for Odisha, 10 March 2025. Squares are forest cells shaded by the forecast level; diamonds are the fires the satellite detected that day.


In numbers

7,148 forest cells in 17 states scored every day 0.795 average precision per 55 km area on the unseen year 2025 81% of area-days rated Extreme had a detected fire
2,930 past fires in 25 states train the spread model 75% of what burned lies inside the top band (median, 244 test fires) 50% is what ranking the nearest cells first gets
43,055 sound clips train the station classifier 4.3 MB int8 model runs on an ESP32-S3 in 1.85 s 97 to 99% of station reports arrive in an 80-station simulation

The forecast and outlook numbers come from data the models never saw in training: the year 2025, and three states held out completely. The station numbers are from the bench and a simulation, not from a forest.

How it fits together

flowchart LR
  subgraph SRC["Open data"]
    V["NASA FIRMS<br/>VIIRS detections"]
    W["ERA5-Land, GFS,<br/>Open-Meteo weather"]
    B["MODIS burned area,<br/>Sentinel-2, DEM, WorldCover"]
  end
  subgraph ML["Models"]
    F["Next-day forecast<br/>XGBoost, 5 seeds, calibrated"]
    Q["Detection sorter<br/>real fire or false"]
    S["Spread outlook<br/>gated U-Net"]
  end
  subgraph FIELD["Forest"]
    ST["Lookout station<br/>ESP32-S3: smoke, weather, sound"]
    RL["Relay"]
    GW["Gateway"]
    ST -- "LoRa 433 MHz" --> RL -- "LoRa" --> GW
  end
  subgraph APP["Dashboard"]
    API["FastAPI + PostGIS"]
    UI["React PWA<br/>ranger, control room, citizen"]
    API --> UI
  end
  V --> F
  W --> F
  V --> Q
  B --> Q
  V --> S
  B --> S
  F --> API
  Q --> API
  S --> API
  GW -- "serial bridge" --> API
  UI --> P(["A person decides"])
Loading

Software suggests and people decide. A model never verifies, assigns, dispatches or announces. Anything that becomes an action goes through a ranger or a control-room user.


1. Forecast: where fire is likely tomorrow

The forecast board for Odisha on 10 March 2025: counts per level, a map and a table of areas with their chance and whether a fire was detected

Each 55 km forest area gets a chance of a satellite-detected fire for the next day, shown as a level with the places to look first.

Level Chance Area-days that had a fire (2025)
Extreme 60% or more 81%
High 30 to 60% 42%
Moderate 10 to 30% 17%
None under 10% 0.7%

Model. XGBoost, five seeds, isotonic calibration. 41 daily inputs per cell: fire history, ERA5-Land weather, the GFS forecast, NDVI, land cover, terrain, people and roads.

Tested on 2025. Average precision 0.519 per cell against 0.292 for climatology, 0.227 for persistence and 0.116 for the Fire Weather Index. Nine model families were compared, from logistic regression to a graph network; on the test year none did better than boosted trees.

Honest about misses. The board sets yesterday's forecast beside what was detected: on the day shown, 41 areas were rated High or Extreme, 31 had a fire, and 2 fires were missed.

Code: wildfire-ignition-forecasting

2. Outlook: where a burning fire goes next

Pick a burning fire and see the forest cells within 8 km ranked in three bands for the next one to two days, with the villages, people and roads in each band.

Model. A gated U-Net reads 46 map layers on a 192 × 192 grid of 100 m cells (the fire's detections, fuel, terrain, Sentinel-2, burn history) and 31 numbers of weather and fire size.

Tested on fires it never saw.

Model Nearest-first
Direction AUC, 250 test fires of 2025 0.792 0.600
Direction AUC, 3 held-out states 0.818 0.595
Burned cells inside the top band (median) 75% 50%

What it is not. It ranks where a fire spreads, not when, and it is shown on archived fires. Live scoring is not built yet.

Code: fire-spread-model

Left: forest cells around a Karnataka fire ranked most likely, likely and possible. Right: what burned, with the top band dashed. The top band held 79% of the 6.2 km² that burned.

3. Monitoring: what is burning or happening now

The four detection groups: likely fire, unconfirmed, known heat source, outside forest

Satellite detections, sorted. Every VIIRS detection is kept and put in one of four groups with the reason in words. A classifier scores the chance that a burn scar follows within 1 km. Nothing is hidden.

Active fires. Detections within 1 km and 36 hours become one fire with its size, growth, the side it grew toward and the nearest named villages. A board orders fires by who needs attention.

Lookout stations. ESP32-S3 stations read PM2.5, temperature and humidity every 15 s, and an on-device classifier listens for chainsaws and blasts. Reports hop station to relay to gateway over LoRa at 433 MHz, with listen-before-talk, a backup parent and an end-to-end receipt for alerts. Each reading is judged against that station's own normal and its neighbours.

A station never confirms a fire. Only a ranger on the ground does.

Code: node-firmware · relay-firmware · gateway-firmware · acoustic-ml


Who uses it

Role What they do
Ranger Reads tomorrow's forecast for their area and the fires near them, accepts an assignment, records what they find (confirmed, not confirmed, inconclusive). Works offline.
Control room Works the forecast board, the satellite and active-fire boards and the map, sends a crew, closes checks, publishes notices approved by a second person.
Admin Manages accounts, stations and access by state.
Citizen Sends a report with place, time and photos, and reads notices. Stored photos lose their location data and faces in public copies are blurred.

Built with

React 19 TypeScript Vite Tailwind CSS MapLibre GL FastAPI PostGIS Playwright
Python XGBoost PyTorch scikit-learn Google Earth Engine GitHub Actions
ESP32-S3 PlatformIO LoRa SX1278 433 MHz TensorFlow Lite Micro C++17

Repositories

Repository What it holds Stack
dashboard The web application: forecast board, satellite and active-fire boards, map, field work, notices, citizen reports. 662 backend tests and 130 browser tests. React 19, TypeScript, MapLibre, FastAPI, PostGIS
wildfire-ignition-forecasting The next-day forecast: nine model families, frozen evaluation protocol, calibration, the daily scoring job. XGBoost, PyTorch, scikit-learn
fire-spread-model The spread outlook: 2,930 fire cases, five image models, the check against what burned. PyTorch, rasterio, numba
acoustic-ml The station sound classifier: corpus, training, int8 export, speed test on the chip. PyTorch, timm, TFLite
node-firmware Station firmware: sensors, sound, the v5 radio protocol, multi-hop routing, the network simulation. C++, PlatformIO, ESP32-S3
relay-firmware Relay build that forwards station packets toward the gateway. C++, PlatformIO, ESP32
gateway-firmware The LoRa receiver at the root of the network and its serial output for the bridge. C++, PlatformIO, ESP32-S3
terrawatch-datasets The data catalog: every dataset, its schema, a sample and where it is stored. Python, Parquet

Data sources

Source Used for
NASA FIRMS VIIRS 375 m Fire detections: labels, fire history, active fires
ERA5-Land, NOAA GFS, Open-Meteo Weather and the weather forecast
MODIS MCD64A1 burned area, Sentinel-2 What burned: spread labels and the detection sorter
Copernicus DEM, ESA WorldCover, WorldPop Terrain, land cover, people
OpenStreetMap contributors Basemap, roads, named places

What is not done yet

  • The spread outlook runs on archived fires. Scoring live fires is planned, not built.
  • The stations are built and simulated. The radio link has not been range-tested in a forest, and the sound thresholds are not calibrated in the field.
  • The sound classifier raises far more false alarms on unseen forest recordings than the target of one per hour.
  • A missing dot on a map is never evidence that there is no fire, and every view says so.

Popular repositories Loading

  1. .github .github Public

  2. dashboard dashboard Public

    TerraWatch web app for forest rangers and control rooms: next-day fire forecast, satellite detection groups, active fires, spread outlook, stations and field work. FastAPI, PostGIS, React PWA in En…

    Python

  3. node-firmware node-firmware Public

    Firmware for TerraWatch forest lookout stations: ESP32-S3, SX1278 LoRa 433 MHz, BME680, PMS5003, on-device sound classifier, multi-hop routing protocol v5 and a network simulator.

    C++

  4. gateway-firmware gateway-firmware Public

    Gateway for TerraWatch stations: LoRa receiver at the root of the network, validates and acknowledges packets, sends alert receipts and prints readings to serial for the bridge. ESP32-S3, PlatformIO.

    C++

  5. wildfire-ignition-forecasting wildfire-ignition-forecasting Public

    Next-day forest fire forecast for India: nine model families on 7,148 forest cells, frozen evaluation protocol, isotonic calibration into 55 km risk levels. XGBoost, PyTorch, scikit-learn.

    Jupyter Notebook

  6. acoustic-ml acoustic-ml Public

    Chainsaw and blast sound classifier for forest lookout stations: AudioSet-pretrained MobileNetV3 fine-tuned on 43,055 clips, int8 on an ESP32-S3 with TFLite Micro.

    Jupyter Notebook

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…