How AI Helps Forecast Electricity Demand on a Smart Grid

Check a New York City electricity forecast hour by hour. See how an AI model contributes to the forecast and how its peak compares with actual demand.

A miniature city and transmission tower stand beside a glass panel with two daily demand curves.
A city’s electricity use changes from hour to hour. The two illustrative curves suggest a forecast and the demand that eventually arrives.

At four in the afternoon on July 17, 2024, New York City’s electricity demand reached the highest hourly value of the day. The grid operator’s forecast had picked that hour, too. Its estimate for that hour was about 443 megawatts higher than the city’s actual demand. An AI model can learn how electricity use responds to weather and the hour of the day. What matters to a grid operator is how well the resulting forecast prepares the system for the load that arrives.

What a grid operator asks the AI model to predict

When people turn on air conditioning across a city, their separate choices add up to a demand that generators, imports and storage must meet together. A grid operator needs a forecast early enough to arrange supply. How much power will this area draw at each hour tomorrow? Which resources need time to start? A forecast in megawatts gives planners a quantity to work with.

A grid control display shows several time series above rows of instruments.
The curve that matters here is hourly electrical demand in one named area. Its location, unit and forecast date travel with the prediction.

The New York Independent System Operator (NYISO) describes using neural networks alongside regression to forecast hourly demand for eleven zones and the state. Historical electricity use is paired with weather observations. Day of the week, the season, temperature, humidity as reflected in dew point, wind and cloud cover all give a forecast context. For a future hour, the weather inputs themselves come from a forecast. A training exercise that substitutes tomorrow’s observed temperature has given the AI an advantage it would lack on the day.

NYISO’s scheduling system combines the published load forecast with information about available resources and system limits. The public forecast file gives the final number for each zone. It supplies no separate prediction from the neural network, so scoring that file measures the operator’s combined forecast. NYISO Day-Ahead Scheduling Manual, section 6 (PDF).

Put the forecast and the meter record on the same clock

For this comparison, open the forecast file labeled July 16 and find the July 17 rows in the N.Y.C. column. The neighboring NYISO column covers the whole state. In the separate integrated actual-load file for July 17, match each hour label and select the zone named N.Y.C. Both series below use the archive’s local hour labels, Eastern Daylight Time. The actual series represents hourly average power. A short spike within an hour can disappear in that average.

Both New York City curves reach their high point at 16:00. The forecast is above actual demand at that hour.
New York City, July 17, 2024. The forecast peak is 10,227 MW and the observed hourly peak is about 9,784 MW. The downloadable file also includes the previous Wednesday for comparison. Download the 24 hourly rows (CSV).

At 16:00, forecast minus actual is 10,227 minus 9,783.9405, or about +443.1 MW. A positive sign means the forecast ran high. Both curves peak at 16:00, so the miss in peak timing is zero hours. Someone evaluating when to make resources available might care about both numbers. NYISO July 2024 forecast files (ZIP) and hourly actual-load files (ZIP).

Could last Wednesday have done as well?

A simple comparison was available before July 17. For every hour, reuse the same zone’s actual demand from July 10, the previous Wednesday. At 16:00 this estimate is about 9,982 MW. It misses high by roughly 198 MW. To score a whole day, take the absolute difference for each of the 24 hours and average those differences. Otherwise a morning underestimate can cancel an afternoon overestimate.

A person studies colored plots on a large operator display.
An operator comparing forecasts needs the same measurement interval for every curve. Five-minute and hourly peaks can have different heights.

The operator forecast’s mean absolute error was 353.1 MW. Reusing the previous Wednesday yielded 225.0 MW. That simpler estimate wins this particular comparison. A seasonal evaluation would repeat the same advance selection on many days, include holidays and unusual weather, and record how often each method misses high-demand hours. Those tests would also help distinguish a useful average from performance on the afternoons when an extra megawatt matters most.

What can change when the forecast moves?

A forecast update can give an operator time to arrange more supply or flexible demand. Forecast error alone tells you little about the cost of the response. Some supply may already be available. A resource in one part of a network may have limited ability to serve another. To trace an actual response, pair the forecast with a schedule, the operating limits in force and a record of what was dispatched.

Low buildings and electrical equipment occupy a snow-covered site.
Storage can move energy between hours. Its power rating and available charge determine how much of a shortfall it could cover.

A battery operator faces a related question. If electricity is valuable now, how much energy should remain for the next interval? Follow that calculation in the battery dispatch guide. A building operator has another option, explored in the heat-pump experiment.

Try it with the evidence

Download the hourly CSV above and attach it when using the prompt with an AI assistant. The peak-hour check also works with the source notes alone.

Score the peak and the whole day

Source notes. The New York City load forecast in the July 16, 2024 NYISO file peaks at 16:00 EDT on July 17 at 10,227 MW. Actual hourly demand also peaks at 16:00, at 9,783.9405 MW. At that hour on July 10 demand was 9,981.6668 MW. The linked CSV contains the three series for all 24 hours.

Prompt. Using the notes, calculate the signed error at 16:00 as forecast minus actual. Compare it with the same-hour, previous-week estimate. If you can read the attached CSV, calculate mean absolute error over all 24 rows for both forecasts. If you only have the peak row, say which calculation needs more data. Explain how a forecast can get the peak hour right and still miss its height.

Check your reading

The operator forecast was about 443.1 MW high at 16:00. The previous-week estimate was about 197.7 MW high. Across all 24 hours, mean absolute error was 353.1 MW for the operator forecast and 225.0 MW for the previous-week estimate. Both the timing and the height matter when planning supply. Ranking forecasting methods across seasons would take many more days.

Illustrated field notes

Local conditions and the visible grid
A city at night is overlaid with illuminated network connections.
A citywide demand total can hide a neighborhood peak. Checking a local constraint requires a measurement at the relevant part of the network.
Solar arrays and wind turbines share a green valley.
The load the grid must supply can change as solar output changes. Check whether an operator’s series includes or subtracts local generation.
A worker in protective clothing studies a handheld screen near equipment.
A maintenance record can explain why a resource was unavailable even when the demand prediction was accurate.
Meters, customers and evidence of a response
A bank of dark displays shows green and amber charts.
Moving a peak to a different hour changes a load curve. Add up energy over the whole day to check for a change in consumption.
A hand holds a mobile device amid points of light.
A published price signal records what customers were offered. Interval meter data can help determine whether their electricity use changed.
A dark monitoring display shows a network dotted with red lights.
When a meter series contains gaps, an analyst needs to know which readings were estimated before using them as training examples.
A resident looks at a wall-mounted display.
A household can shift an appliance to a later hour. The response visible to a system operator is the sum of many individual choices.