How AI Helps a Grid Battery Decide When to Discharge

Follow an AI model that estimates the value of keeping energy in a battery. Test one dispatch decision against losses, power limits and a reserve.

A utility battery enclosure and a smaller inverter cabinet stand behind three translucent amber blocks.
Stored energy gives a battery a choice about when to deliver power. How much it can deliver at once depends on its power rating.

A battery can sell electricity this afternoon only if some energy is still inside it. In a study using New York prices, researchers trained an AI model to estimate what the next bit of stored energy might be worth later. That estimate changes the decision facing the battery now. A sale that looks attractive at the meter can be worth less than keeping the charge for another hour.

What is one more unit of stored energy worth?

Imagine the battery contains just enough energy for one more sale. If a better opportunity is likely in an hour, selling now gives up that opportunity. The value of holding a little more energy can also depend on how full the battery is. A nearly empty battery has fewer choices later. A nearly full one has little room to absorb cheap electricity.

Rows of metallic storage elements catch violet and amber light.
The relevant state is usable energy inside the battery. Energy delivered at the grid meter is smaller when discharge has losses.

Ningkun Zheng and colleagues built training examples from historical electricity prices. First they worked backward through past prices to calculate what stored energy would have been worth at different charge levels with the future already known. Those hindsight values supplied labels for a neural network. In a later period the network estimated values using information available at decision time, including recent real-time prices and published day-ahead prices. A separate optimization step used the estimated value, the current price and battery limits to pick an action. Zheng and colleagues’ storage arbitrage study.

This is a different prediction from tomorrow’s electricity demand. A price in dollars per megawatt-hour delivered and a value in dollars per megawatt-hour held inside a battery can look similar on a screen. The efficiency of discharge connects the two.

At this price, sell or wait?

Consider a teaching example with a five-minute interval. Assume the AI model values an extra megawatt-hour (MWh) kept inside the battery at $70 over the small range of charge in question. Discharge delivers 90% of the energy removed. Allow $10 of discharge cost for each MWh delivered. The $70 value and the two market prices below are invented. The efficiency and cost match the study’s standard assumptions.

A desk with several monitors looks out on a wooded landscape.
A dispatch calculation needs the price for a specific interval, the estimated value of stored energy and the charge available at that moment.

Megawatts (MW) limit the rate of delivery. Megawatt-hours limit the amount. At 0.5 MW, the most the battery can deliver in five minutes is 0.5 × 5/60, about 0.0417 MWh. Suppose a reserve commitment leaves just 0.030 MWh available inside the battery. With 90% discharge efficiency, only 0.027 MWh can reach the grid. An attractive price can change the economic choice, but the reserved energy is already spoken for.

What does “65% to 90%” compare?

The team used 2017 and 2018 price data to train its approach and evaluated decisions on 2019 prices from four New York zones. Real-time prices came in five-minute intervals and day-ahead prices in hourly intervals. The authors’ standard simulated battery stored 1 MWh, had a 0.5 MW power rating and incurred charging and discharging losses separately. Changing the battery or its location changes which price movements it can exploit.

A row of circular electronic components glows amber on a dark work surface.
A replay on historical prices can compare decisions under the same sequence of opportunities. The modeled capacity, losses and costs belong beside the result.

Across the reported cases the approach earned roughly 65% to 90% of the arbitrage profit achievable with perfect knowledge of future prices. That denominator is a hindsight benchmark for the simulated battery. A 90% share of it gives neither an annual return on the purchase price nor a measured profit from operating a physical plant. For a fair comparison, give competing strategies the same price history, starting conditions, power rating, costs and efficiency. Study methods and results, section IV (PDF).

What else would a site operator need?

A real battery has temperature and charge limits, planned maintenance and sometimes obligations to provide another service. An owner would also need the metered exports and imports, actual settlements, availability and a record of battery wear before making a claim about delivered value. The paper’s per-MWh discharge charge is an assumption covering a marginal cost. It cannot establish how a particular battery aged.

Transparent cylindrical housings expose layered components and amber highlights.
State of charge describes energy available now. State of health concerns how the usable capacity and performance have changed over time.

Changing the hour of delivery can improve the economics while using energy during charging and discharging. If the claim is about energy saved at a building, start with the meter and comparison in the building energy guide.

Try it with the evidence

Use the two invented prices to test whether an AI assistant keeps stored energy, delivered energy and power in the right units.

Sell now or keep the energy?

Source notes. In this invented five-minute decision, the AI model values another MWh kept inside the battery at $70. Discharge efficiency is 90%. Discharge costs $10 per MWh delivered. Compare grid prices of $82 and $96 per MWh. The output limit is 0.5 MW. Only 0.030 MWh inside the battery is available above a reserve floor. The two prices and the reserve are teaching assumptions. The linked study gives the research setting.

Prompt. For each price, calculate the net sale value per MWh removed from the battery and compare it with $70. At the higher price, work out the maximum deliverable MWh over five minutes with both the power cap and reserve floor. State every unit and identify which input came from the AI model.

Check your reading

At $82, each internal MWh earns 0.90 × ($82 − $10) = $64.80 after discharge cost, so holding it is worth more. At $96, the corresponding value is $77.40 and discharge is favored. The power cap allows 0.5 × 5/60 = 0.0417 MWh at the grid, but the reserve allows only 0.030 × 0.90 = 0.027 MWh. The smaller limit binds, equivalent to 0.324 MW for five minutes. The $70 estimate is the learned input.

Illustrated field notes

Forecasts, sizing and commitments
Lit transmission structures and wind turbines stand against a blue sky.
A load forecast can help explain an expected price change. Congestion and available supply can also affect the price at one location.
An illustration combines amber bars with a figure and a clock face.
Sizing requires both an intended discharge rate and a duration. A short price spike and a long backup commitment call on different capabilities.
Power lines and buildings reflect in water at dusk.
A battery committed to a grid service must retain the energy and power needed to deliver it.
Several energy installations share a landscape reflected in water.
When several assets share a connection, their combined power can reach the connection limit before any single asset reaches its own rating.
Equipment condition and operating limits
Red indicator lights sit above a row of dark components.
Maintenance records help distinguish an uneconomic interval from a period when the equipment was unavailable.
Several cabinets have illuminated amber edges and small status lights.
A fault can restrict available capacity. A market schedule should use the capacity the equipment can actually deliver.
A circular instrument interface is marked by concentric bands.
A dispatch request passes through equipment controls that enforce the site’s operating limits.
A beam of light crosses the face of a dark cabinet.
Temperature limits, alarms and protected reserves can all change what counts as a feasible dispatch.
A blue circular component hovers above an illuminated platform.
A cell design would need its own measured efficiency and aging data before it could change the assumptions in a dispatch study.
Customers and local energy systems
An electric-vehicle charger stands beside a city street.
For a vehicle, departure time and the driver’s required charge limit the energy available to sell.
A city skyline rises above a corridor of bright traffic.
If customers shift their own demand, the price and load conditions that justified a battery schedule can change.
A small illuminated building sits among trees beside water.
A microgrid that may need stored energy during an outage gives that reserve a value beyond the market price.
Counting costs and checking performance
A cutaway-style illustration shows a cylindrical component and surrounding layers.
A lifecycle calculation also needs installation cost, usable capacity over time and replacement assumptions.
A monitoring desk holds several screens in a darkened room.
To reconstruct a decision, keep the forecast available at the time alongside its timestamp and the later settlement record.
Dark equipment enclosures sit on a grid of amber lines.
When the same software moves to another site, the new power rating, connection limit and tariff must follow it.
Translucent structures and trees share a sunlit architectural scene.
A revised AI model earns its place by performing on a later period that was kept out of training.