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

Jinhao Li, Changlong Wang, Yanru Zhang, Hao Wang

Abstract

The battery energy storage system (BESS) has immense potential for enhancing grid reliability and security through its participation in the electricity market. BESS often seeks various revenue streams by taking part in multiple markets to unlock its full potential, but effective algorithms for joint-market participation under price uncertainties are insufficiently explored in the existing research. To bridge this gap, we develop a novel BESS joint bidding strategy that utilizes deep reinforcement learning (DRL) to bid in the spot and contingency frequency control ancillary services (FCAS) markets. Our approach leverages a transformer-based temporal feature extractor to effectively respond to price fluctuations in seven markets simultaneously and helps DRL learn the best BESS bidding strategy in joint-market participation. Additionally, unlike conventional "black-box" DRL model, our approach is more interpretable and provides valuable insights into the temporal bidding behavior of BESS in the dynamic electricity market. We validate our method using realistic market prices from the Australian National Electricity Market. The results show that our strategy outperforms benchmarks, including both optimization-based and other DRL-based strategies, by substantial margins. Our findings further suggest that effective temporal-aware bidding can significantly increase profits in the spot and contingency FCAS markets compared to individual market participation.

Introduction

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).

Joint bidding logic in Spot and FCAS markets.

The challenge lies in the extreme volatility and uncertainty of electricity prices. Traditional optimization-based methods 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.

The TempDRL Framework

The proposed TempDRL framework addresses these challenges by combining advanced feature extraction with robust reinforcement learning.

System overview of the TempDRL bidding strategy.

Transformer-based Temporal Feature Extractor (TTFE)

Instead of feeding raw price data directly into the RL agent, TempDRL uses 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.

Soft Actor-Critic (SAC) Algorithm

This off-policy DRL algorithm learns the optimal bidding policy by maximizing both expected reward and entropy. This encourages the agent to explore the complex, multi-dimensional action space of seven different markets: one spot market and six contingency FCAS sub-markets (Fast, Slow, and Delay services for both Raise and Lower contingencies).

Key Insights and Results

The study utilized real-world market data from the Australian National Electricity Market (NEM) for 2016, covering five jurisdictions with 5-minute dispatch intervals.

  • Eliminating Idle Time: A significant finding is that joint bidding in FCAS markets virtually eliminates BESS "idle time"—periods where the battery is too full to charge or too empty to discharge in the spot market. By participating in FCAS, the battery can almost always provide a "raise" or "lower" reserve service regardless of its state of charge, reducing idleness from ~20% to 0%.
  • Revenue Performance: TempDRL outperformed the best optimization-based benchmark (TP&O) by 18% to 32% across different states. Compared to standard MLP-based DRL, the addition of the TTFE provided revenue increases of up to 57% in certain scenarios.
  • Interpretability: By analyzing attention weights, the authors confirmed the model focuses on historical "outliers" or significant price spreads rather than prices close to the current value, effectively learning a "buy low, sell high" heuristic.

Conclusion

TempDRL demonstrates that temporal awareness is more valuable for RL agents than precise point-forecasts. While the current model assumes a "price-taker" role, future work will explore "price-maker" scenarios where large BESS fleets influence market outcomes, alongside more complex battery degradation models and environmental impact assessments.

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},
}
Figure