Build Accurate Energy Consumption Prediction Model for Utilities

Quick Overview

Amazon machine learning prompt on building an energy consumption forecasting model for utilities, covering data acquisition, EDA, feature engineering, baselines, time-series validation, deployment, monitoring, and retraining.

Build Accurate Energy Consumption Prediction Model for Utilities

Company: Amazon

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Onsite

##### Scenario You must build a model that predicts daily energy consumption for utility clients. ##### Question Detail every step you would take to build a regression model from raw data all the way to production: data acquisition, EDA, feature engineering, model selection, training, validation, deployment, and monitoring. ##### Hints Mention baselines, cross-validation, feature scaling, residual analysis, retraining triggers.

Quick Answer: Amazon machine learning prompt on building an energy consumption forecasting model for utilities, covering data acquisition, EDA, feature engineering, baselines, time-series validation, deployment, monitoring, and retraining.

|Home/Machine Learning/Amazon
Amazon logo
Amazon
Jul 12, 2025, 6:59 PM
hardData ScientistOnsiteMachine Learning
15
0

Build an Energy Consumption Prediction Model for Utilities

You need to build and productionize a regression model that predicts daily energy consumption for utility clients. The data is time-indexed and likely depends on weather, seasonality, customer behavior, holidays, tariffs, and meter quality.

Constraints & Assumptions

  • Predict next-day daily energy consumption at the client, meter, account, or aggregate level; state the chosen granularity.
  • Use only information available at prediction time.
  • Include baselines before complex models.
  • Use validation that respects time ordering and client or meter grouping.
  • Cover the full path from raw data to production monitoring.

Clarifying Questions to Ask Guidance

  • What forecast horizon and cadence are needed?
  • Is the target per meter, per customer segment, feeder, region, or whole utility?
  • What actions depend on the forecast, and what error metric matters most?
  • Are weather forecasts available at prediction time?
  • What latency, interpretability, and reliability requirements apply?

What a Strong Answer Covers Guidance

  • Problem framing: target, horizon, granularity, success metrics, and business use.
  • Data acquisition: meter reads, weather observations and forecasts, calendar, holidays, tariffs, outages, customer attributes, and operational data.
  • Data quality and EDA: missing reads, duplicates, outliers, timezone/DST issues, meter changes, seasonality, trend, autocorrelation, and segment differences.
  • Feature engineering: lag features, rolling averages, day-of-week, month, holidays, heating/cooling degree days, weather interactions, customer segment, tariffs, and recent anomalies.
  • Baselines: yesterday, same day last week, seasonal averages, and simple linear or persistence models.
  • Model selection: regularized regression, tree ensembles, gradient boosting, random forest, hierarchical or panel models, and time-series approaches where appropriate.
  • Validation: time-based splits, rolling-origin backtests, grouped evaluation by customer/meter, leakage checks, and segment-level metrics.
  • Evaluation and residual analysis using MAE, RMSE, WAPE, bias, calibration by segment, and error during peak demand or extreme weather.
  • Productionization: feature pipelines, model registry, batch scoring, data contracts, alerting, rollback, retraining, and monitoring for drift and performance decay.

Follow-up Questions Guidance

  • Why might MAPE be a poor metric for low-consumption customers?
  • How would you handle missing weather forecasts?
  • What drift signal would trigger retraining?
  • How would you explain the forecast to utility operators?
Loading comments...