Problem
Airfield operations need a few hours’ warning of thunderstorms and strong wind to plan ground handling, fuelling and runway use. The question here is narrow and testable: given only an airfield’s METAR history up to some hour, what is the probability of a thunderstorm, or of wind at 25 knots or more, in the next hour or the next three?
The wind threshold is 25 knots rather than the 34-knot gale threshold because gale hours are too rare at these stations to evaluate.
Approach
The data are archived METAR reports for six airfields from 2016 to 2024, split by time: training before 2022, validation in 2022, and the test years 2023 and 2024 used once, for the report. No synthetic data is used anywhere in training or evaluation.
Features describe the current state, short-term tendencies and recent history, and the same function runs in training and serving. The model is a gradient-boosted tree, with probabilities calibrated by isotonic regression on the validation year and alert thresholds chosen there too. Each is compared with climatology, persistence, persistence plus the METAR trend group, and logistic regression, with confidence intervals from a block bootstrap over station-days.
Alerts are not hand-picked probability cut-offs. Each prediction carries the thresholds that were chosen on validation data for fixed precision targets, and they map to Green, Yellow, Orange or Red. Green never creates an alert. A scheduled cycle runs a few minutes after each half-hourly METAR.
On the test years the model scores a precision-recall AUC of 0.576 for a thunderstorm in the next hour, against 0.409 for persistence and 0.070 for climatology. The other targets are in the chart below. The path from report to alert is drawn below, and the code is covered by 63 tests.