Arbitrage of Energy Storage in Electricity Markets with Deep Reinforcement Learning

Hanchen Xu, Xiao Li, Xiangyu Zhang, Junbo ZhangarXiv 2019

Introduction

Energy Storage Systems (ESS), such as large-scale battery installations, are increasingly critical for maintaining grid flexibility as renewable energy penetration grows. However, the high capital and operational costs of these systems necessitate efficient monetization strategies. A primary revenue stream for ESS owners is arbitrage: the practice of purchasing electricity during periods of low prices (charging) and selling it back to the grid when prices peak (discharging).

The primary challenge in maximizing arbitrage revenue lies in the extreme volatility and uncertainty of real-time electricity markets. As shown in the market data below, prices fluctuate rapidly, requiring sophisticated decision-making to ensure profitability.

Electricity price volatility and distribution in the PJM market.

Traditional optimization methods often struggle to account for long-term price trends or the "memory" required to track the cost basis of stored energy. This paper introduces a Deep Reinforcement Learning (DRL) framework designed to navigate these complexities.

Methodology

The authors model the arbitrage problem as a Markov Decision Process (MDP), where an agent learns to make optimal charging and discharging decisions based on market states. The framework utilizes two key components to enhance performance:

1. State Representation and Contextual Awareness

To overcome the limitations of reactive models, the authors incorporate historical context into the agent's state using:

  • Exponential Moving Average (EMA): This filters high-frequency noise from price signals to reveal underlying trends.
  • Recurrent Neural Network (RNN): An RNN architecture extracts a hidden state from past price sequences, allowing the agent to identify emerging market trends and anticipate price peaks.
  • Average Cost Tracking: By including the average cost of energy currently in storage, the agent learns to only discharge when the market price offers a sufficient margin over the acquisition cost.

2. Learning with PPO

The agent is trained using Proximal Policy Optimization (PPO), a robust policy gradient method known for its stability in complex environments. The reward function is carefully designed to balance immediate profit against battery degradation (wear-and-tear) by penalizing excessive cycling.

Experimental Results

The framework was evaluated using real-world hourly price data from the PJM Interconnection. The proposed PPO-RNN model was benchmarked against a standard PPO agent and a tuned Q-learning baseline.

Cumulative profit comparison between Q-learning, PPO, and the proposed PPO-RNN model.

The results demonstrate that the PPO-RNN model significantly outperforms other methods. In a three-month test period, the PPO-RNN achieved a cumulative profit of $13,892, representing a 40% increase over the Q-learning baseline ($9,377). The inclusion of the RNN hidden state was pivotal, as it allowed the agent to anticipate price peaks rather than merely reacting to current prices. Furthermore, the PPO-based models exhibited superior learning efficiency, reaching high profitability levels faster than the discretized Q-learning approach.

Conclusion and Future Work

The integration of DRL with recurrent architectures provides a powerful tool for ESS arbitrage in volatile markets. By leveraging historical price trends and tracking internal cost metrics, the PPO-RNN agent achieves substantial profit gains. Future research directions include expanding the action space to allow for continuous charging rates and modeling "price-maker" scenarios where large-scale ESS deployments influence market prices.

Summary updated

BibTeX
@misc{xu2019arbitrage,
  author = {Hanchen Xu and Xiao Li and Xiangyu Zhang and Junbo Zhang},
  title = {{Arbitrage of Energy Storage in Electricity Markets with Deep Reinforcement Learning}},
  year = {2019},
  eprint = {1904.12232},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.12232},
}
Figure