Temporal-Aware Deep Reinforcement Learning for Energy Storage Bidding in Energy and Contingency Reserve Markets

Jinhao Li, Changlong Wang, Yanru Zhang, Hao Wang

TL;DR

This paper introduces TempDRL, a novel bidding strategy for battery energy storage systems (BESS) that jointly participates in energy spot markets and contingency reserve markets. By combining a Transformer-based temporal feature extractor with Deep Reinforcement Learning (DRL), the approach effectively captures volatile price trends to maximize revenue, outperforming traditional optimization benchmarks by up to 24%.

What Problem Does This Paper Address?

As power grids transition to renewable energy, battery storage (BESS) has become vital for stability. However, for a BESS to be economically viable, it must "stack" revenues by participating in multiple markets simultaneously—specifically the real-time spot market (energy arbitrage) and the Frequency Control Ancillary Services (FCAS) market (contingency reserves).

The challenge lies in the extreme volatility and uncertainty of electricity prices. Traditional optimization-based methods (like Model Predictive Control) struggle because they rely on highly accurate price forecasts, which are notoriously difficult to generate. Meanwhile, standard DRL approaches often treat the model as a "black box" and fail to exploit the hidden temporal patterns in historical price data that signal upcoming fluctuations.

Methods

The authors propose a framework called TempDRL, which consists of two primary components:

  1. Transformer-based Temporal Feature Extractor (TTFE): Instead of feeding raw price data directly into the RL agent, the authors use a stacked Multi-Head Attention (MHA) mechanism. This allows the model to "attend" to specific historical price points that are most relevant to current decision-making, effectively capturing the "temporal signature" of market volatility.
  2. Soft Actor-Critic (SAC) Algorithm: This off-policy DRL algorithm is used to learn the optimal bidding policy. SAC is particularly effective here because it maximizes both expected reward and entropy, which encourages the agent to explore the complex, multi-dimensional action space of seven different markets (1 spot market + 6 contingency FCAS sub-markets).

Crucially, the authors move away from the "black box" nature of DRL by introducing three interpretability layers: Q-value analysis, attention-weight visualization, and gradient-based sensitivity maps. These tools show exactly how the model responds to price spreads and why it chooses specific bidding actions.

Datasets

The study uses real-world market data from the Australian National Electricity Market (NEM) for the year 2016.

  • Scope: Data covers five jurisdictions: Victoria (VIC), New South Wales (NSW), Queensland (QLD), South Australia (SA), and Tasmania (TAS).
  • Granularity: 5-minute dispatch intervals (288 intervals per day).
  • Split: The first 10 months were used for training, and the final 2 months were reserved for evaluation.
  • Benchmarks: The model was compared against Multi-Layer Perceptron DRL (MLP-DRL) and two "Predict-and-Optimize" (P&O) methods using LSTM and Transformer-based price forecasting.

Key Insights and Ideas

  • The "Idle Time" Solution: One of the biggest drains on BESS profitability is "idle time"—periods when the battery is too full to charge or too empty to discharge in the spot market. The paper demonstrates that joint bidding in FCAS markets virtually eliminates this idleness (reducing it from ~20% to 0%), as the battery can almost always provide a "raise" or "lower" reserve service regardless of its state of charge.
  • Temporal Awareness vs. Raw Forecasting: The results suggest that understanding how prices fluctuate (temporal patterns) is more valuable for RL agents than having a precise point-forecast of the price. The TTFE allows the agent to recognize the "shape" of a price spike before it happens.
  • Interpretability Matters: By analyzing attention weights, the authors found that the model ignores historical prices that are close to the current price and instead focuses heavily on past "outliers" or significant spreads. This confirms the model is successfully learning a "buy low, sell high" heuristic.

Key Results

  • Revenue Boost: TempDRL outperformed the best optimization-based benchmark (TP&O) by 18% to 32% across different states in the joint market scenario.
  • Superiority over standard DRL: Adding the Transformer-based feature extractor (TTFE) provided a significant performance jump over standard MLP-based DRL, with revenue increases of up to 57% in certain spot market scenarios.
  • Computational Efficiency: While training takes longer (~80 minutes), the actual decision-making (evaluation) takes only 0.7 seconds for a two-month period. This makes it highly suitable for real-time 5-minute market clearing.

Limitations and Future Work

  • Price-Taker Assumption: The model assumes the BESS is a "price-taker," meaning its bids don't change the market price. While true for single batteries, a massive fleet of BESS using this strategy might influence market outcomes, requiring a "price-maker" model.
  • Battery Degradation: The authors used a simplified linear model for battery degradation. Future work could incorporate more complex, non-linear electrochemical degradation models to better reflect long-term asset health.
  • Environmental Impact: The current objective is purely financial (profit maximization). The authors suggest that future iterations should investigate how these bidding strategies impact grid-wide carbon emissions.

Summary updated

BibTeX
@article{li2024temporal,
  author = {Jinhao Li and Changlong Wang and Yanru Zhang and Hao Wang},
  title = {{Temporal-Aware Deep Reinforcement Learning for Energy Storage Bidding in Energy and Contingency Reserve Markets}},
  journal = {IEEE Transactions on Energy Markets Policy and Regulation},
  year = {2024},
  doi = {10.1109/tempr.2024.3372656},
}

Loading related content...

Figure