After the shock: what airline demand models keep learning from COVID, and how their explanations show it
Airlines plan aircraft, crews and fuel months ahead from demand forecasts. In 2020 demand on US routes fell by about 95% in a month and took two years to come back. Most forecasting models are retrained on all available history, so that crash stays in their training data. What does it do to forecasts years later?
I built a forecasting system for the 50 busiest US domestic routes to find out, and checked not only how accurate it is but whether its explanations can be trusted.
Input and output
The data is the US Bureau of Transportation Statistics T-100 Domestic Market table: monthly passengers by origin and destination, January 2015 to August 2026. I kept the 50 busiest routes, ranked on 2015–2016 traffic only, so the choice of routes does not use future information.
What I compared
At every month from mid-2017, each model was trained only on data available at that time and asked to forecast 1, 2 and 3 months ahead: 110 forecast dates × 50 routes × 3 horizons, repeated over 3 random seeds. The main model is a global LightGBM [1] on seasonal, recent-trend and year-on-year features. I trained it under different policies for the shock data:
- Retrain on everything: every month, all history counts equally. The common default.
- Shock-aware: a monitor watches the monthly forecast error and raises an alarm when the last 3 months are more than twice their usual level. While the alarm is on, recent months get more weight. Once it ends, training rows whose inputs or targets fall in the alarmed months get 5% weight.
- Frozen in December 2019 and 2020–21 removed by hand: both use hindsight that was not available in 2020, so they are reference points, not real options.
What happened
| Model (WAPE %, lower is better) | Recovery Jul 2021 – Jun 2023 | Stable Jul 2023 – Aug 2026 |
|---|---|---|
| Same month last year | 27.9 | 7.4 |
| ETS (statistical) | 13.3 | 9.6 |
| LightGBM, retrained on everything | 15.9 | 9.3 |
| LightGBM, shock-aware | 12.4 | 5.9 |
| LightGBM, frozen in Dec 2019 (hindsight) | 10.9 | 5.6 |
| LightGBM, 2020–21 removed by hand (hindsight) | 10.9 | 5.4 |
Mean of 3 seeds, horizons 1–3 pooled.
The model retrained on everything stayed about 3.3 points worse than the shock-aware one for five years after the crash. The difference holds on all 50 routes (route-bootstrap 95% CI −3.6 to −3.0 points; Diebold–Mariano test [2, 3] p = 0.02 one month ahead, p < 0.001 three months ahead), in 20 of 21 settings of the shock-aware method, and across seeds. The one setting where it disappears is the one that turns forgetting off.
The cause is visible: the retrained model's error spikes every March, in 2024, 2025 and 2026. Its year-on-year and seasonal inputs learned from 2020–2021 still point to a collapse each spring. Down-weighting the shock months removes the spikes.
What the explanations show
Every forecast is explained with TreeSHAP [4], grouped into four drivers: seasonality, recent trend, year-on-year growth, and route size. I then checked each explanation in three ways: whether replacing the main driver's inputs with other recent real values moves the forecast more than any other driver (is the explanation faithful to the model?), whether five seeds agree on the main driver, and whether the seasonal driver points the same way as last year's real change.
- Models trained on the shock also explain themselves less reliably. After 2021 the main driver is confirmed for 62% of forecasts from the model retrained on everything, 74% from the shock-aware model and 80% from the frozen one, with all three tested on the same recent inputs.
- The explanations shift before the errors do. For the model retrained on everything, 3 of the 5 months where its explanations moved furthest from how it explained the same calendar month before 2020 are exactly its 3 worst months, the March spikes. The explanation is available when the forecast is made; the error only a month later.
- Explanations are not perfectly stable. About one forecast in seven gets a different main driver under a different seed. The dashboard flags these instead of hiding them.
Limits
- On this data the shock-aware model ties or loses slightly to freezing the model in 2019 or dropping 2020–21 by hand. Both need hindsight, but COVID was a V-shaped shock: demand returned to its old pattern, which is exactly when ignoring the shock works.
- My detector raised one false alarm (March 2025) because it watches a model that is itself contaminated by the shock. A standard Page–Hinkley test [5] did better here.
- During the shock itself every model was poor (about 55–70% error), and adapting faster made it worse.
- I designed the forgetting step after seeing the first results. The sensitivity analysis shows the main finding does not depend on its settings, and the explanation early-warning result is exploratory.
- One dataset and one major shock, monthly route totals only, no fares or bookings.
Takeaways
- After a shock, keep monitoring after the errors come down: a model retrained on everything can keep repeating the shock for years, on specific calendar months.
- Adapting to a shock has two parts, reacting and forgetting, and the second one is easy to miss.
- Check explanations, not only accuracy: their faithfulness drops when the training data is contaminated, and a shift in how a model explains a forecast can show a problem before the error does.
The next question is whether forgetting beats freezing when a shock leads to a new normal instead of a return to the old one, which needs synthetic shocks with known timing. This is the time-series counterpart of the O-RAN note: there the controller changed the data, here the world did.
References
- G. Ke et al. LightGBM: a highly efficient gradient boosting decision tree. NeurIPS, 2017.
- F. X. Diebold and R. S. Mariano. Comparing predictive accuracy. Journal of Business & Economic Statistics, 1995.
- D. Harvey, S. Leybourne and P. Newbold. Testing the equality of prediction mean squared errors. International Journal of Forecasting, 1997.
- S. M. Lundberg et al. From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2020.
- E. S. Page. Continuous inspection schemes. Biometrika, 1954.
Data: US Bureau of Transportation Statistics, Air Carrier Statistics (Form 41 Traffic), T-100 Domestic Market (U.S. carriers), public.