A drone that taught itself to race.

Nobody wrote this drone's flying rules. It learned them by flying a gated track in simulation, crashing, and trying again. Drag the slider to watch it improve.

Start and finish
0
Gates passed
0 / 8
Lap time
No lap
Result
Crashed at gate 1

Iteration 0. Crashed at gate 1. 0 of 8 gates passed.

Sample data: these flights are generated for the demo, not recorded from the real drone.

How it learns

  1. Fly

    The current policy flies the track in simulation, with many drones flying at once.

  2. Score

    Each flight is scored on progress along the track, gates passed and crashes.

  3. Update

    The policy shifts toward the moves that scored well and away from the ones that crashed.

  4. Repeat

    After many rounds the crashes stop and the lap times keep dropping.

The policy

What it sees
Its own position, speed and tilt, plus where the next two gates are.
What it controls
Total thrust and how fast the drone rotates around each of its three axes.
What it learns from
A reward for progress and for passing gates, and a penalty for crashing.
Where it trains
A physics simulation running thousands of flights in parallel.