Predicting Turbine Power Output from Snapshot Weather Data
Machine LearningModel answerLast updated
Design a tabular regression pipeline that maps weather and turbine attributes at a single instant to power output, covering physics features, data cleaning, model choice, validation and calibrated uncertainty.
You are given a large table of records, one row per turbine per instant (roughly 10-minute intervals), collected across many wind farms. Each row contains weather measurements (wind speed, direction, temperature, pressure, humidity, turbulence measurements), turbine identity and specifications (rotor diameter, hub height, rated power, model), and site metadata (elevation, terrain roughness). The label is the turbine's active power output in kW at that instant. You may use only the contemporaneous features in the row — no lags, no windowed sequences, no recurrent or transformer-style time models.
Design an end-to-end regression solution:
- What features would you construct, and which physics-derived quantities are worth encoding explicitly?
- How do you handle missing sensors, stuck or drifting instruments, and operational outliers such as curtailment and downtime?
- Which model families would you consider, and how do you encode known physical structure without time-series modeling?
- How do you validate so that results generalize across sites and across wind-speed regimes?
- Which metrics do you report, and how do you deal with error variance that changes with wind speed and with the hard ceiling at rated power?
- How would you produce uncertainty estimates, and how would you check they are trustworthy?
State your assumptions explicitly and discuss the trade-offs behind each choice.
Hints
Hint 1
The label is bounded between zero and rated power and behaves very differently below cut-in, in the cubic partial-load region, and above rated — consider whether one global model or a physics baseline plus a learned correction serves you better.
Hint 2
Random K-fold will flatter your model because neighboring rows share weather; group by site and turbine, and add a time-blocked holdout, then report metrics per wind-speed band rather than one global number.
Hint 3
MAPE is unusable when power is near zero, and plain conformal intervals will under-cover in the cubic region — think about regime-conditional intervals and quantile losses.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing and assumptions
I assume each row is a single turbine at a single instant with contemporaneous features only, and the label is active power in kW. Before modeling I would pin down three things. First, what exactly is being predicted: physically available power (what the turbine could produce given the wind), or actual metered power including curtailment, derating and outages. In practice I model available power and treat curtailment/availability as a separate downstream layer, because otherwise the model learns that "strong wind sometimes means zero power". Second, where the inputs come from: nacelle anemometer readings (biased by rotor induction and yaw) versus numerical weather prediction (much noisier, spatially smoothed). Third, scale: for example 500 turbines × 3 years × 10-minute steps ≈ 80M rows — comfortably single-machine tabular territory, so gradient boosting is practical.
Physics to encode
Power in the wind scales as P = ½ ρ A v³, and a turbine captures a fraction Cp of it (Betz limit 0.593). The curve has four regimes: below cut-in (~3 m/s) output is zero; between cut-in and rated wind speed output rises roughly cubically and is highly sensitive to wind error; from rated to cut-out it is flat at rated power; above cut-out (~25 m/s) the turbine shuts down. Encoding this structure is the single highest-leverage decision.
Features
- Density-corrected wind speed: v_eq = v·(ρ/ρ₀)^(1/3), with air density from pressure, temperature and humidity. This is standard practice and removes a large seasonal bias.
- Manufacturer power-curve lookup at v_eq: P_ref(v_eq). As a feature this alone often explains most of the variance.
- Yaw misalignment factor cos²θ (or cos³θ) where θ = wind direction − nacelle heading.
- Turbulence intensity (σ_v / mean v) computed within the instant's measurement window — allowed, since it is not a sequence model.
- Wake indicator: whether an upstream turbine lies within ~10 rotor diameters along the wind direction, derived from farm layout plus direction.
- Powers and ratios such as v³, ρv³, v_eq / v_rated, sin/cos of direction.
- Turbine and site attributes: rotor diameter, hub height, rated power, model family, elevation, terrain roughness. Prefer these over raw site IDs so the model transfers to unseen farms.
- Label: normalize to capacity factor y = P / P_rated ∈ [0,1] for comparability across turbine sizes.
Data quality
- Stuck/out-of-range sensors: flag zero-variance runs, physically impossible values, and icing signatures (temperature near or below freezing with high humidity and wind readings inconsistent with neighbors).
- Imputation: reconstruct wind speed from neighboring turbines or a met mast via per-pair regression; add
is_imputedflags. Tree models handle residual NaNs natively. - Operational outliers: exclude downtime (power ≈ 0 with wind well above cut-in), curtailment (power pinned below rated while wind is above rated) and derating. Use SCADA status codes where available; otherwise use robust binning — 0.5 m/s wind bins, discard points beyond k·MAD from the bin median. Keep the excluded rows labeled; they later train a curtailment classifier.
Models
| Option | Strength | Weakness |
|---|---|---|
| Ridge/Lasso on spline basis of v_eq + interactions | interpretable, sane extrapolation | misses interactions |
| Random forest | robust, low tuning | piecewise-flat, cannot extrapolate |
| Gradient boosting | top tabular accuracy, NaN-native, monotone constraints, quantile loss | flat outside training range |
| Shallow MLP (sigmoid × P_rated) | smooth, bounded output | needs scaling/tuning, rarely wins |
Recommended: physics baseline plus learned residual. Fit the power curve P_ref(v_eq), then train a GBM to predict the residual y − P_ref/P_rated, with a monotone-increasing constraint on v_eq over the operating range. Handle cut-out by rule (power is not monotone there) and clip output to [0,1]. The model then only learns site-specific corrections — wake, terrain, turbulence, degradation — while physics carries the prediction where data are sparse.
Validation
Random K-fold leaks: adjacent rows share weather and successive snapshots are nearly identical.
- Grouped K-fold by site as the primary estimate of transfer to new farms.
- Leave-turbine-out within site for new hardware at known sites.
- Time-blocked holdout (e.g., final six months) to catch seasonal and degradation drift.
- Regime-stratified reporting by wind-speed band (below cut-in, partial load, knee, rated+) and by season and wake sector — a good global RMSE can hide a broken knee.
- Extrapolation stress test: train on v < 15 m/s or exclude extreme-density months and inspect held-out extremes.
Metrics and heteroscedasticity
Report normalized RMSE and MAE as a percentage of rated power, the industry convention. Avoid plain MAPE, which explodes as power approaches zero; use WMAPE = Σ|e|/Σy or restrict MAPE to P > 10% of rated. Error variance is largest in the cubic region (wind error is amplified ~3×) and nearly zero at rated and below cut-in — so report per regime, use quantile rather than single-σ models, and optionally inverse-variance weighting. The rated cap is censoring: clip or use a bounded output (sigmoid, Beta regression) and verify that errors at rated aren't silently dominated by unflagged curtailment.
Uncertainty
- Quantile GBM on pinball loss for the 5/50/95th percentiles, with non-crossing enforcement; or NGBoost for a full distribution.
- Mondrian split conformal with bins by wind-speed regime gives finite-sample coverage per regime, unlike vanilla conformal, which under-covers under heteroscedasticity.
- Epistemic uncertainty via bootstrap or seed ensembles; their disagreement widens out of distribution.
- Calibration checks: empirical coverage per bin, reliability diagrams for the interval width, and PIT histograms.
- Safeguards: refuse or flag predictions when v_eq falls outside the observed support or when curtailment/downtime indicators are active, and fall back to the physics curve with a widened interval.
The most common mistakes: leaking by random K-fold, modeling metered power without separating curtailment, skipping density correction, and reporting a single global RMSE that masks regime-specific failure.