DEPARTURES
--:--:--

DEPARTMENT OF AIRPORTS · OPERATIONS AI

AI FOR AIRPORTS

Two systems on the board: a passenger-throughput forecaster and a retrieval-augmented security assistant — each answering with evidence, not guesses.

FastAPI· LightGBM· pgvector RAG· Bedrock / Ollama· Next.js

Usage forecasting

GET /forecast?horizon=14

Predicts daily passenger throughput. A seasonal baseline and a LightGBM model are backtested, and whichever wins is served. The dotted line is the flight-schedule leading indicator— passengers ≈ scheduled seats × historical load factor — the signal real airport (ACI) forecasts lean on because it's known weeks ahead.

forecasting/api · /forecastLIVE
horizon:

Predicted daily passengers — next 14 days

Example data for demonstration — the service ingests real TSA throughput.

Checkpoint wait-time & staffing

GET /wait?horizon=7

The daily forecast becomes an operational plan: how many passengers arrive each hour, how many security lanes to open, and the queue wait if you don't staff to the peak. Opening lanes ahead of the bank — instead of reacting to a queue — is the lever on both wait times and staffing cost (the approach behind TSA / Veovo / Xovis systems).

forecasting/api · /waitLIVE

Hourly demand vs. estimated wait — busiest forecast day

Illustrative synthetic intraday model — real systems use sensor counts + ML.

Security assistant

POST /chat

A retrieval-augmented chatbot for airport-security questions. It answers from a document index and cites sources — and refuses when the answer is not grounded, instead of guessing (try the last one below). It also detects the question's language and replies in it (try the Thai example). Sample answers shown when the API is offline.

security/api · /chatLIVE

About the system

cat README.md

usage-forecasting

FastAPI service forecasting passenger throughput — a seasonal baseline, LightGBM on calendar + lag features, and a flight-schedule leading indicator, backtested so the winner serves. Adds a `/wait` plan for hourly lanes & queue times. Public TSA data first; real airport data later.

FastAPILightGBMPostgres

security-assistant

RAG over a document index + structured DB. Cites sources, refuses when not grounded, and answers in the passenger's language. Provider-agnostic LLM: local Ollama for dev, Claude on AWS Bedrock for production.

RAGpgvectorBedrock / Ollama