Predicting Flight Delay Severity at Scale
In collaboration with Parul Lakhotia, Ewura Impraim Mensah, Roshni Misra and Sarah Son
The Decision
Select the only model that meets the 50% severe-delay recall floor, accepting lower overall agreement.
Takeaways
- The severe-weighted random forest recovered 64.4% of 2+ hour delays on the 2019 blind test.
- Specifying the decision rule in advance provided a principled basis for that trade-off.
- Four model families plateau at a similar boundary, which suggests the feature set, rather than model capacity, is the limiting factor.
Flight delays are estimated to cost the US economy roughly $33 billion a year, with passengers bearing more than half of that cost. This project predicts the arrival delay of domestic flights as one of four ordered severity tiers, using only information available approximately two hours before scheduled departure.
The selected model has the lowest overall agreement of the four finalists. It was chosen deliberately, as the only model to satisfy the severe-delay criterion set at the outset, and the reasoning behind that choice forms the core of this write-up.
Problem Framing and Decision Rule
About 82% of flights arrive on time and only 2.2% are severely delayed. A classifier that predicts “on time” for every flight would therefore achieve 82% accuracy while offering nothing of operational value to an FAA operator, so accuracy was rejected as a success measure before modelling began. In its place, a decision rule was specified in advance, and in practice it influenced the final outcome more than any hyperparameter choice.
- Gate 1. Macro F1 above the 0.224 four-class majority floor.
- Gate 2. Recall of at least 0.50 on the 2+ hour tier.
- Models that pass both gates rank on quadratic-weighted Cohen’s kappa (\(\kappa_w\)), which penalises a three-tier miss far more than a one-tier miss.
- An asymmetric expected cost per flight (ECPF) breaks ties. It charges double for under-prediction, because missing a severe delay costs more than over-preparing for one.
Because the rule was fixed before modelling, the final selection could be justified against stated criteria rather than chosen after the results were known.
All of 2019 was held out as a blind test set (7.24M flights). The years 2015 to 2018 supported three-fold sliding-window cross-validation, with a one-year training window and a three-month validation window per fold.
Random Forest with Severe-Class Weighting
The Phase 2 forest fell well short of Gate 2, with a severe recall of 0.351 against the 0.50 floor. For Phase 3 the training data were extended from one year to five (5.7M to 23.9M training flights) and the feature set from 41 to 73 columns. Because these changes alone were insufficient, a severe-class weight multiplier was applied on top of standard inverse-frequency weighting.
Staged Search
Model selection was carried out in two stages rather than as a single large grid. The class weight and the tree structure interact, and a combined grid would have been slower to run and harder to interpret.
Stage 1 fixed the multiplier at 1.5 and varied the tree structure. Six of the eighteen planned configurations completed before an executor failure halted the deeper trees, so maxDepth values of 15 and 18 remain untested.
| # | Feature subset | minInst | Val \(\kappa_w\) | Val macro F1 | Val severe recall |
|---|---|---|---|---|---|
| 1 ★ | sqrt | 10 | 0.257 | 0.416 | 0.585 |
| 2 | sqrt | 20 | 0.257 | 0.416 | 0.588 |
| 3 | onethird | 10 | 0.250 | 0.429 | 0.569 |
| 4 | onethird | 20 | 0.250 | 0.429 | 0.571 |
| 5 | 0.5 | 10 | 0.251 | 0.428 | 0.565 |
| 6 | 0.5 | 20 | 0.250 | 0.427 | 0.568 |
sqrt feature subsetting performed best on both \(\kappa_w\) and severe recall, and was also the fastest to train. A plausible interpretation is that restricting the features available at each split concentrates the trees on the small number of high-signal propagation features that distinguish severe delays, whereas larger subsets allow splits to spread across weaker weather and calendar columns. Leaf size had little effect. Varying minInstancesPerNode between 10 and 20 changed every metric by 0.003 or less, which indicates that regularisation came mainly from bagging and feature subsampling rather than from leaf constraints.
sqrt subsetting leads on both axes.Stage 2 repeated cross-validation on the selected structure across a range of severe-class multipliers. The results are monotonic: each increase in the multiplier raises severe recall and lowers both \(\kappa_w\) and macro F1, a pattern that recurs throughout the project.
| \(m_3\) | Val \(\kappa_w\) | Val macro F1 | Val severe recall | Gate 2 |
|---|---|---|---|---|
| 1.0 | 0.398 | 0.451 | 0.410 | ✗ |
| 1.2 | 0.341 | 0.434 | 0.485 | ✗ |
| 1.5 ★ | 0.257 | 0.416 | 0.585 | ✓ |
Cross-Validation in Weight Selection
On blind-test results alone, \(m_3\)=1.2 would appear to pass Gate 2. Its test severe recall is 0.529, with substantially better ordinal agreement than 1.5 (\(\kappa_w\) 0.336 against 0.241), and on that evidence it would have been the natural choice.
Cross-validation does not support it. At \(m_3\)=1.2 the validation severe recall is 0.485, below the floor. Validation is harder than the blind test at all three multipliers, by 0.03 to 0.06 on severe recall, most likely because each fold validates on a first-quarter window, where delays are heavier and more weather-driven than across a full year.
Selecting 1.2 on the basis of test performance would therefore have meant deploying a configuration that does not reliably meet the operational floor on held-out data, and using the blind test for selection in this way would also have undermined its role as an independent check.
Trade-Off Between Severe Recall and Agreement
The selected forest (200 trees, depth 12, sqrt subsetting, 1.5× severe weight) was the only model in the project to clear Gate 2 on the blind test, with a severe recall of 64.4%. It also has the lowest \(\kappa_w\) and the highest expected cost of any finalist.
| Blind test (2019) | \(\kappa_w\) | Macro F1 | Severe recall | ECPF | Gate 2 |
|---|---|---|---|---|---|
| Multinomial LR (hybrid down/up) | 0.438 | 0.394 | 0.418 | 0.848 | Fail |
| MLP (oversample to 25%) | 0.490 | 0.493 | 0.399 | 0.715 | Fail |
| XGBoost (no severe weight) | 0.406 | 0.455 | 0.464 | 0.877 | Fail |
| Random forest (1.5× severe weight) ★ | 0.241 | 0.402 | 0.644 | 1.743 | Pass |
This gain carries a cost under the project’s own cost function. The forest recovers nearly two-thirds of the 2+ hour tier by assigning the severe tier to a large number of on-time flights, each of which the asymmetric cost matrix penalises. The multiplier therefore acts as a control on the operating point rather than as an improvement in overall predictive ability.
A similar trade-off appears across model families, which is why it is interpreted here as a frontier rather than as a failure of tuning. The MLP’s full-rebalance setting reaches 0.489 severe recall, but its \(\kappa_w\) falls to 0.339, and the forest traces a comparable curve across its three multipliers. Taken together, the four model families appear to plateau at much the same boundary.
Gradient-Boosted Trees and Computational Constraints
XGBoost was expected to outperform the forest, but computational constraints prevented a fair comparison. The severe-weighted XGBoost configuration cleared Gate 2 on validation, at 0.534 severe recall, but could not be trained to completion on the full training window. Runs failed with driver out-of-memory errors, and the grid stopped after four of eight planned configurations. The XGBoost row in the table above therefore comes from a reduced substitute without severe weighting and should not be taken as representative of the intended model.
XGBoost remains the most promising direction not yet explored. The validation evidence suggests that a severe-weighted configuration might satisfy Gate 2 at a higher \(\kappa_w\) than the forest, in which case it would be preferable to the selected model. Testing this requires more resilient compute than was available for the project.
The instability of the cluster also shaped how every search was run. Because executors failed partway through grids, each completed configuration was checkpointed and model fits were wrapped in retry logic, so that a failure cost a single configuration rather than the entire run. This is why the random forest grid yielded six usable points rather than none.
Feature Importance and the Limits of the Feature Set
Feature importance is dominated by delay propagation. inbound_delay alone accounts for 41.3% of total Gini importance, tail_cum_delay for 22.4% and origin_cum_delay_rate for 8.5%, together about 72% of the total. Weather features contribute roughly 3%, mostly through precipitation.
Per-class test recalls for the selected forest are 0.725, 0.315, 0.295 and 0.644 across the four tiers. The middle tiers are the weakest in every configuration: none of the four tree models exceeds 46% recall on them, and recall falls to about 30% as the severe weight increases. The confusion matrices show these flights being absorbed into the on-time and severe tiers more than into each other, and additional severe weight moves more of them into the severe tier.
A plausible explanation is that a 20-minute delay and a 90-minute delay are difficult to distinguish two hours before departure. If so, the binding constraint is the feature set, in particular the limited weather and network signal available at that horizon, rather than model capacity, and further work would be better directed at the features than at larger models.
Limitations
The search is incomplete. Six of eighteen random forest grid points and four of eight XGBoost configurations finished. All six surviving forest points sit at maxDepth 12, so the selected model may represent a local optimum.
The model appears to underfit. Train-to-test \(\kappa_w\) gaps are 0.005, 0.001 and 0.001 across the three multipliers. For the selected model, train and test agree to three decimal places (0.242 and 0.241), which is consistent with the constraint lying in the available signal rather than in variance.
Phase 3 does not improve on Phase 2 on every measure. Severe recall nearly doubled (0.351 to 0.644) while \(\kappa_w\) fell from 0.426 to 0.241. The model performs better on the criterion the stakeholder treated as non-negotiable and worse on overall agreement.
Next Steps
The most immediate extension is a cost-sensitive ensemble. A cost-weighted blend of the forest’s severe sensitivity and the MLP’s tier ranking might recover \(\kappa_w\) without giving up the Gate 2 pass. Finishing the forest depth grid and training the severe-weighted XGBoost configuration on more resilient compute would settle whether a boosted model can hold the gate at higher agreement. In the longer term, the apparent feature ceiling suggests that richer weather signal, such as destination-airport conditions and multi-hour trajectories in place of a single snapshot, would be more valuable than additional model capacity.
References
Ball, M. et al. “Total Delay Impact Study: A Comprehensive Assessment of the Costs and Impacts of Flight Delay in the United States.” NEXTOR / FAA (2010).
Data: On-Time Performance with Weather (OTPW), joining U.S. DOT/BTS on-time performance records to NOAA hourly weather observations.






