Back to projects

ML systems · Local platform

FlightOps Sentinel

Flight delay prediction at T−24 hours

An end-to-end ML system predicting departure delays over 15 minutes at T−24 hours. The pipeline uses a PostgreSQL feature mart, chronological evaluation, MLflow, Airflow, and a FastAPI prediction service.

Written by Mohamad Maulana Firdaus Ramadhan

Explore the system flow

A conceptual diagram based on the project documentation. Open each stage to read its context.

  1. T−24-hour feature mart

    The system asks whether departure delays over 15 minutes can be predicted one day in advance. The prediction time determines which information is valid as a feature.

  2. Chronological evaluation and MLflow

    The PostgreSQL feature mart limits inputs to data available 24 hours before scheduled departure. Chronological splits mimic prediction on future flights. Historical route delay rates outperformed logistic regression on the holdout, providing a benchmark for further experiments.

  3. Approval then batch or API

    On the 2,206-flight holdout, logistic regression ROC-AUC of 0.4836 falls below the historical-route baseline of 0.5437. This supports reviewing features and data before choosing a more complex model.

Problem and purpose

The system asks whether departure delays over 15 minutes can be predicted one day in advance. The prediction time determines which information is valid as a feature.

Technical decisions

T−24-hour feature cutoffs and chronological splits avoid using future information. MLflow connects experiments with models, while approval creates a checkpoint before prediction.

Role & contribution

Developed the data pipeline and prediction service with feature cutoffs to prevent leakage, experiment lineage, model approval, and Docker-based local deployment.

Technical workflow

The PostgreSQL feature mart limits inputs to data available 24 hours before scheduled departure. Chronological splits mimic prediction on future flights. Historical route delay rates outperformed logistic regression on the holdout, providing a benchmark for further experiments.

  1. PostgreSQL
  2. T−24h features
  3. Training & evaluation
  4. MLflow registry
  5. Batch / FastAPI

Results & context

On a 2,206-flight holdout, logistic regression scored ROC-AUC 0.4836 and historical route delay rate scored 0.5437. The platform runs locally with experiment tracking, lineage, and model approval.

Evaluation limits and lessons

On the 2,206-flight holdout, logistic regression ROC-AUC of 0.4836 falls below the historical-route baseline of 0.5437. This supports reviewing features and data before choosing a more complex model.