Mountain Rescue

Source on GitHub

Multi-agent simulation · Mesa · GNN-MARL

Simple rules rescued about 2.5× as many people as the GNN.

Robots, drones and a charger on a simulated mountain, run three ways: random exploration, drones messaging robots, and a graph neural network choosing actions. Every run here is a recording of the project's real model.

Mean people rescued over five recorded runs of 500 steps. Basic has only its 8 starting people; in the other modes about 30 appear.

Recorded runs Not a live simulation: each run was recorded with the real Mesa code and your browser only plays the file back. Notes and limits

Replay

Mode

  • Robot
  • Drone
  • Charger
  • Missing
  • Rescued
  • 0 to 3K metres
Step
0
Rescued
0
Missing
0
Messages
0

    People so far: 8

    Extended: robots wait at base until a drone finds someone and sends coordinates. A few more people appear every 30 steps until about 30 have appeared.

    Your browser only plays the file back.

    Extended beats the GNN

    Five recorded runs per mode, 500 steps each, using the project's KPI configuration: 15×15 terrain, 4 robots, 3 drones, 8 starting people. Novel adds one charger.

    Basic

    Robots explore at random and drones survey without messaging. Only the 8 starting people.

    4.4 ± 1.5

    55.0% of people rescued

    Extended

    Robots wait at base until a drone finds someone and sends coordinates.

    15.8 ± 4.4

    52.4% rescued · 56.4 messages

    Novel

    A graph neural network chooses actions, still exploring as it runs, with one added charger.

    6.4 ± 2.9

    21.1% rescued · 23.6 messages

    Mean people rescued over a run

    Mean results per mode over five recorded runs
    Mode, 5 runsRescuedRateMessages
    Basic (8 people only)4.4 ± 1.555.0%n/a
    Extended (about 30 people)15.8 ± 4.452.4%56.4
    Novel (about 30 people)6.4 ± 2.921.1%23.6

    The rate is rescued divided by everyone who appeared, as the project's notebooks compute it. Five runs is a small sample.

    Do the recordings match the saved KPIs?

    ModeSaved reportRecorded here
    Extended15.8, 52.4%15.8, 52.4%
    Novel6.4, 21.0%6.4, 21.1%

    Against the project's KPI report of 16 July 2025, Extended reproduces run for run, including message counts. Novel's mean agrees, but its individual runs differ: the notebook did not seed PyTorch, so its learning runs are not repeatable.

    Every recorded run

    Run (select to replay)RescuedPeopleRateMessages

    Training did not show learning

    Rescue rate per training episode

    From results/training_metrics.json. Tab to the chart and use the arrow keys to read values.

    No upward trend over 250 episodes. Mean rescue rate is 5.8% in the first 50 episodes and 5.7% in the last 50. The best episode, 46.7%, came early, and all five periodic evaluations are recorded as 0.0.

    Curriculum learning stayed on the easiest stage. results_curriculum/ holds 101 episodes on an 8×8 map with 2 robots and 1 drone. The mean rescue rate was 46.2% over the last 30 episodes. It moved up a stage at episode 100, fell back at episode 101, and completed no stages. Both of its evaluations are recorded as 0.0.

    So the GNN-MARL system runs end to end with dynamic graphs, but these saved results do not show it outperforming the rule-based coordination it was meant to improve on.

    Notes and limits

    These are recorded runs, not a live simulation. Each one was run with the project's real Mesa code on a local machine, every agent position was saved at every step, and your browser only plays the file back. Agent battery, terrain and state values on this page come from the recordings.

    Novel is exploring

    The checkpoint loads weights (50 episodes, 25,000 training steps) but not the exploration rate, so each run restarts at epsilon 0.9 and only falls to 0.554 by the end. These runs show the mode as the project ran it, not a greedy evaluation of the policy.

    Novel's clock differs

    In Novel mode the model's step counter advances twice per tick (1,000 by the end) and the spawner runs twice. Its map reaches the 30-person cap by about tick 105 to 150, against 240 to 300 in Extended, so Novel faces more people earlier.

    Where the code came from

    The recordings use the author's working copy. The public repo does not yet include src/gnn_marl.py or the checkpoint, so Novel cannot be re-run from GitHub alone. The recorder is in demo/tools/.