Skip to main content
← All writingKylan Thomson

Simulation · Autonomous Systems

Simulating Autonomous Drone Response to Wildfire

A drone that never has to fly home, reload, or run out of retardant makes every strategy look brilliant. The response layer of Wildfire Sentinel is built so that the logistics bite, which is what makes the comparison mean anything.

Published
Reading time
9 minutes
Project
Wildfire Sentinel case study

A simulated drone that never has to fly home, reload, or run out of retardant makes every response strategy look brilliant. The response layer of Wildfire Sentinel is built so that the logistics bite: sorties take time, a station holds six loads, resupply is slow, and every doctrine spends the same finite budget. That is what makes the comparison between doctrines mean anything.

This article is about that layer: the fleet model, the five doctrines that decide where drops go, how the planner is wired into the fire engine, and what the doctrines actually did when raced on the real Palisades fire. The statistical method behind the race is its own piece, on paired seeds.

A fleet with a day job

Stations are laid out on a lattice whose spacing comes from a density slider, so on the 110-cell Palisades grid at the default density there are 121 of them. Each station holds a small magazine of retardant loads and resupplies from the ground at a fixed rate. A drone leaves its station, flies to the drop cell at cruise speed, drops, flies home, and turns around on the ground before it can take another load. Cruise speed is converted through the scenario's own cell size, so drone performance does not silently change when you resize the region.

export const DRONE_DEFAULTS = {
  cruiseKmh: 70,      // heavy-lift retardant UAV cruise speed
  reloadHours: 0.35,  // ground turnaround between sorties
  loadsPerStation: 6, // retardant loads held at a station
  resupplyHours: 4,   // ground resupply time per load
};
dronePlanner.js: the fleet defaults. Every one of these is a knob, and every one is there so that a strategy that wastes drops pays for it.
ONE SORTIE, MINUTES (STATION 10 CELLS FROM THE DROP)Fly out: ~12 minFly outDrop: ~1 minFly home: ~12 minFly homeReload (0.35 h): ~21 minReload (0.35 h)≈ 46 min per load · 6 loads per station · resupply 1 load per 4 h
One sortie for a station ten cells from its target: about twelve minutes out at 70 kilometres per hour, the drop, twelve minutes home, and a 21-minute turnaround before the next load. With six loads per station and four hours per resupplied load, a station that drops continuously is dry in under five hours.

The reason for all this is stated in the planner's header: without a return leg, a turnaround, and a finite magazine, a strategy that wastes drops pays no price and the ranking measures nothing but targeting luck. A unit test pins the budget: a fleet cannot fly more sorties than its magazines hold.

Five doctrines

Each planning cycle, the active doctrine looks at the threatened assets and the nearest flames and returns a short list of drop cells. Everything else (which station, whether it has a load, when the drone arrives) is the fleet's problem, shared by all doctrines. The doctrines differ only in how they choose targets.

  1. No drones. The control. Always run, whether or not it was selected, because every number the lab reports is a difference from it.
  2. Nearest threat. Sort threatened assets by distance to the nearest flame and lay a defensive line a few cells behind each, on the side away from the fire.
  3. Value priority. The same defensive geometry, but assets are sorted by distance divided by the square root of their value, so a hospital (value 25) is treated as five times closer than it is.
  4. Downwind intercept. Consider only assets that lie roughly downwind of their nearest flame, and drop between the fire and the asset, at a standoff that shrinks as the fire closes.
  5. Cluster shield. Bucket threats into tiles, score each tile by the total value nearby discounted by how far the fire is, and lay a three-drop arc across the fire-to-cluster axis in front of the best tile.

The value weights come from OpenStreetMap tags on the scenario grid rather than from the planner: hospitals and power plants at 25, substations at 20, fire stations at 15, police at 12, clinics and schools at 10, a plain building at 1. Shared parameters (how far ahead of an asset a line goes, how many drones may launch per cycle, the search radius around a threat) are the tuned constants the case study withholds, ▓▓▓ each.

// nearest: sort by raw distance to the closest flame
threats.sort((a, b) => a.minFireDist - b.minFireDist);
// valueWeighted: a valuable asset counts as closer than it is
threats.sort((a, b) =>
  a.minFireDist / Math.sqrt(a.value) - b.minFireDist / Math.sqrt(b.value));
droneStrategies.js: value priority is nearest threat with one change to the sort key.

One planner for the live map and the lab

The same fleet update runs inside the live simulation's tick loop and inside the offline races: construct a fleet, call update with the engine, the clock, the weather, and the doctrine id, apply the returned drops as retardant tool actions on the engine. There is no second planner implementation anywhere. A doctrine that wins a race is the code that then takes over the live incident, which is the only way an experimental result can be a claim about the thing you are running.

What a drop does to the fire

A retardant cell multiplies the spread rate into it by a small factor for two simulated days, and an ember landing on it is damped by the same factor. Retardant is not a wall. Under a strong wind, spotting throws embers over a line onto whatever is dry behind it, and lines laid across the direction of spread hold better than lines laid along it. That is why the intercept and cluster doctrines, which think about direction, behave differently from the two that only think about distance.

What the doctrines did on a real fire

To see the doctrines at work I ran the engine and the planner headless over the January 2025 Palisades fire, assembled from real terrain, 45,692 OpenStreetMap buildings, and hourly ERA5 weather, with the spread rate fitted to the observed perimeter. Every doctrine was raced on 32 shared seeds in three windows of the same fire.

  • Downwind intercept
  • Cluster shield
  • Value priority
  • Nearest threat
3 h in, next 12 hno drones: 27 cells lost3 h in, next 12 h, Downwind intercept: 17.8 cells lost, 65% of control65%3 h in, next 12 h, Cluster shield: 18.9 cells lost, 69% of control69%3 h in, next 12 h, Value priority: 26.9 cells lost, 99% of control99%3 h in, next 12 h, Nearest threat: 27.2 cells lost, 100% of control100%100% control6 h in, next 24 hno drones: 349 cells lost6 h in, next 24 h, Cluster shield: 230.9 cells lost, 66% of control66%6 h in, next 24 h, Value priority: 232.4 cells lost, 67% of control67%6 h in, next 24 h, Downwind intercept: 294.3 cells lost, 84% of control84%6 h in, next 24 h, Nearest threat: 311.6 cells lost, 89% of control89%100% control12 h in, next 48 hno drones: 606 cells lost12 h in, next 48 h, Value priority: 453.8 cells lost, 75% of control75%12 h in, next 48 h, Downwind intercept: 458.3 cells lost, 76% of control76%12 h in, next 48 h, Cluster shield: 475.5 cells lost, 78% of control78%12 h in, next 48 h, Nearest threat: 491.9 cells lost, 81% of control81%100% control
View as table
Mean structure cells lost by doctrine and window, 32 paired seeds each
WindowControlDownwind interceptCluster shieldValue priorityNearest threat
3 h in, next 12 h27.217.818.926.927.2
6 h in, next 24 h349.0294.3230.9232.4311.6
12 h in, next 48 h606.0458.3475.5453.8491.9
Structure cells lost as a share of the no-drones control in three windows of the same fire. Early, with one front to get ahead of, downwind intercept wins. Once the fire is established and many streets are threatened, the doctrines that spend sorties by value win. Nearest threat is last every time.
Mean structure cells lost by doctrine across three windows of the Palisades fire, 32 paired seeds, 121 stations, 144 sorties per race
Doctrine3 h in, 12 h6 h in, 24 h12 h in, 48 hValue lost, 48 h
Downwind intercept17.8294.3458.31,672
Cluster shield18.9230.9475.52,035
Value priority26.9232.4453.81,980
Nearest threat27.2311.6491.92,547
No drones (control)27.2349.0606.03,829
The same races in numbers. Every armed doctrine flew 144 sorties in a 48-hour race, so the differences are targeting, not effort. Value lost is the facility-weighted score, reported separately from the cell count the lab ranks on.

Three things stand out. Nearest threat, the doctrine a first sketch would write, is the worst of the four in every window, and in the earliest window it saved exactly zero cells on every seed because the fire had not yet reached anything it would defend. The two doctrines that reason about value trade places with the one that reasons about wind depending on the stage of the fire, which is the argument for racing on the live incident rather than shipping a recommendation. And the cell-count ranking and the value-weighted ranking can disagree: cluster shield lost more cells than downwind intercept in the 48-hour window but protected more value. The lab ranks on cells and reports value alongside, and I have gone back and forth on which should lead.

What the response layer does not do yet

  • Drones do not plan around each other. Two stations can choose the same target in the same cycle; the fleet resolves it by launch order rather than by coordination.
  • Doctrines are hand-written. The project's notes sketch a self-play reinforcement learning agent over this same environment, and the paired-seed harness is exactly the evaluation such an agent would need. It has not been built.
  • Water drops, backfires, and hand lines exist as manual tools with their own cooldowns and concurrency limits, but no doctrine uses them. A mixed-tool planner would be a better model of a real response.

The fire engine the doctrines fight against, with its elliptical wind field, lagged fuel moisture, and ember spotting, is described in the Wildfire Sentinel case study. If you build a response planner for any simulation, add the logistics before you add the intelligence. A planner that never runs out of anything cannot be wrong, and a planner that cannot be wrong cannot be evaluated. The DRONE_DEFAULTS block is four lines and it is the most important code in the layer.

Book a 30-min callEmail about this work