Back to home

Case study

Ground Truth

A second screen for an airport control tower: it listens to every radio call, checks each clearance against live aircraft, vehicle and weather data, and flags a conflict about a second after the call ends, all offline on one computer.

Final transcript to confirmed alert in about 1.2 seconds, fully offline on one Dell Pro Max GB10

Who had the problem#

A controller in the tower works from radio calls, and each call is a clearance: cross this runway, take off, land. The radio does not show where every aircraft and vehicle is, and a position screen does not show what was just cleared. The team's motivation was a runway collision in March 2026 that fit this gap: position data alone missed a vehicle that had no transponder.

Ground Truth is built for the tower controller on the local and ground positions, and its alerts also go to a log for airport operations and safety staff. It never suggests a clearance. It augments the controller and does not replace one.

What I built#

Ground Truth is a second screen for the tower. It listens to the radio, either replayed recordings or a live microphone, and turns each call into a structured clearance: callsign, action, runway and taxiway. Every moment it checks those clearances against live aircraft and vehicle positions and the weather. When a clearance conflicts with what is on the airfield, an alert appears with a countdown, and the controller taps Acknowledge or False alarm.

The checks are plain rules. One fires when a crossing or takeoff is cleared on a runway with an active landing. One fires when an aircraft or vehicle is in a runway zone with no matching clearance. One fires when the weather is below landing minimums. A fourth, an amber caution, fires when a readback does not match the clearance.

A team of 4 built it in one day, in three parts: a data generator that simulates airport scenarios with radio recordings, aircraft tracks and weather; a set of Python services on the GB10 for speech to text, parsing, severity and write-ups, led by a teammate; and a web console with the airfield map, flight strips, alert dock and a demo operator page that drives the scenario and speed. I worked on the console, the rules that check each clearance and the wiring that connects the console to the Python services, and I helped with testing, tech problems and the team. A live mode swaps in real aircraft positions, the airport's weather report and the microphone as the radio.

Ground Truth on a desktop screen. Ground Truth: a second set of ears for the tower.
Ground Truth: a second set of ears for the tower. Local sample data.
Ground Truth on a desktop screen. The controller console on a busy day of normal traffic, from a recorded replay.
The controller console on a busy day of normal traffic, from a recorded replay. Local sample data.
Ground Truth on a desktop screen. With Ground Truth: a warning says the rescue vehicle is crossing runway 28L while a plane lands on it.
With Ground Truth: a warning says the rescue vehicle is crossing runway 28L while a plane lands on it. Local sample data.
Ground Truth on a desktop screen. After the call to hold position: Ground Truth alerted 16 seconds before the plane reached the taxiway.
After the call to hold position: Ground Truth alerted 16 seconds before the plane reached the taxiway. Local sample data.
Ground Truth on a desktop screen. Scenario: a vehicle with no clearance.
Scenario: a vehicle with no clearance. Local sample data.

How it works#

Audio goes to a speech-to-text model fine-tuned for air traffic radio (whisper.cpp), then to a small language model that returns a structured clearance in a fixed format. A plausibility check then drops anything the model invented: the callsign must look like a callsign, its number must actually appear in the words heard, and the runway must exist at that airport.

The design rule is that plain code decides and models only add detail. The alert appears at once from a template. Only afterwards does a larger reasoning model rate the severity and write a short explanation, and it may raise the severity but never lower or hide an alert. A clearance the parser is unsure about (confidence under 0.75) shows in amber and fires no rule.

The models sit behind one local gateway. Apps ask for a capability (fast, reason or speech) rather than a model name, so swapping a model is a configuration change, and a scheduler shares the one GPU between speech, parsing and write-ups. If the gateway fails or is slow, the web app switches to a scripted stand-in so the demo keeps running. Confirmed alerts are saved to a local log that suppresses duplicates.

The scenarios are simulated so the answer is known: each has radio recordings, tracks once a second, weather in the standard aviation weather format and an answer key. Airfield maps come from OpenStreetMap. Live mode reads real aircraft positions from public feeds (adsb.lol and OpenSky) and the airport's weather report.

The hardest part#

The hardest part was making a safety-minded pipeline both fast and trustworthy with small models on one computer. The venue's internet measured about 1.3 MB per second per connection, so nothing could depend on the cloud, and the team chose llama.cpp over a heavier serving stack for that reason.

The answer was to keep every decision that matters out of the models' hands. The rules and the template alert never wait in a model's queue. A model can raise a severity but never hide an alert. The parser's output is held to a fixed format and then checked against what was actually heard, so an invented callsign or runway can't fire a rule.

One small problem cost real time: the speech engine rejected the audio format a browser records, so the browser converts microphone audio to 16 kHz WAV before sending it.

Results in numbers#

On the GB10, with scripted scenarios, speech to text took 200 to 550 ms per clip, the first parse took about 1.25 seconds at the median, the rules and template alert took 26 ms, and a confirmed alert appeared about 1.2 seconds after the final transcript. The write-up followed about 3.3 seconds later. The normal-traffic scenario raised no alerts, and the saved log held no duplicate incidents.

In the web app's own evaluation, with a scripted stand-in for the models and no delay, the restaged runway incident raised its one warning 0.128 seconds after the call ended, with a 16 second countdown. The normal-traffic replay of 70 calls raised no warnings and 5 cautions, and the no-clearance and low-visibility scenarios each raised one warning.

Ground Truth is a hackathon prototype. It is advisory only, not approved by any aviation authority, and it has not been validated with controllers.

What's next#

One box is a single point of failure, so a real installation would use two. Before any real use the rules and the speech model would need testing with controllers and recorded traffic from a real airport.