Back to projects

01Featured projects

openScope

AI air traffic controllers

Status
Bot A working · Bot B implemented, not yet trained
Stack
JavaScript · Python · PyTorch · ONNX · PPO · DAgger · CMA-ES · Gymnasium

Two programs that act as the air traffic controller for an entire airport: arrivals, departures and every conflict between them. The rule I set myself is that they may only do what a human controller can, giving the same commands through the same command line, under real ICAO, EASA and FAA separation rules.

Fork of the open-source openScope ATC simulator. The bots, realism layer, headless simulator, Python tooling and the two new airports are my additions.

  • 0collisions or runway incursions
  • 20–22landings per hour
  • 21–25departures per hour
  • 4–11separation losses per hour

Untuned Bot A results · 60-minute sessions · seeds 1–3 · Madrid-Barajas and Munich.

  • 01

    Bot A · expert rules

    Arrival and departure sequencing (AMAN/DMAN), vectors, holds and conflict resolution. Every command carries its reason, and its parameters can be tuned with CMA-ES.

  • 02

    Bot B · reinforcement learning

    A PPO agent in PyTorch with a curriculum, designed to start by imitating Bot A (DAgger) and export to ONNX to play in the browser.

  • 03

    Safety shield

    Blocks unsafe commands from either bot. Rules ranked by priority: safety → separation → procedure → efficiency.

// What I built

  • Headless simulator with seeded randomness, a Bot API and a Python bridge exposed as a Gymnasium-style environment.
  • Realism layer: a regulatory profile per airport (EASA with RECAT-EU, FAA or ICAO), wake turbulence separation, runway wind limits, terrain clearance and minimum vectoring altitudes.
  • Two new airports: Madrid-Barajas (LEMD) and Málaga (LEMG), with procedures and terrain data.

// Training pipeline

  • Bot A plays and every decision is recorded on an audit page.
  • Bot B learns to imitate it (DAgger), then improves with PPO behind the same shield.

// Known limitations

  • Bot A still loses separation a few times per hour, mostly with aircraft bunching on the downwind or leaving holds. Taxiing is modelled as a waiting time.