Peak Forecasting for Battery-based Energy Optimizations in Campus Microgrids

Akhil Soman, Amee Trivedi, David E. Irwin, Beka Kosanovic, Benjamin McDaniel, Prashant J. Shenoy

Introduction

Large-scale energy consumers, such as university campuses and industrial facilities, face significant financial pressure from "demand charges." These fees are not based on total energy consumption but on the maximum power drawn during peak usage periods. To mitigate these costs, facilities often deploy large-scale battery storage systems for "peak shaving"—discharging stored energy during high-demand hours to reduce the load seen by the utility grid.

Effective peak shaving requires precise timing. Traditionally, this has relied on "load forecasting," which attempts to predict a continuous demand curve. However, while load forecasting is effective for smooth, grid-scale demand, it often fails in the highly stochastic environment of a microgrid, where individual building behaviors create significant noise. This paper proposes a shift in perspective: rather than predicting the entire demand curve, systems should focus on "peak forecasting"—identifying the specific hours of highest and lowest demand.

The Shift to Peak Forecasting

The authors argue that for battery optimization, the exact kilowatt value of future demand is less critical than knowing the temporal location of the peaks. By reframing the problem as a classification task—identifying the top-$k$ (highest demand) and bottom-$k$ (lowest demand) hours—the system can ignore inherent microgrid noise that does not affect the ranking of hours.

Examples of (a) unimodal and (b) bimodal demand patterns, highlighting the top-k and bottom-k hours used for battery optimization.

As shown in the figure above, microgrid demand often exhibits complex patterns. While some days show a single smooth peak (unimodal), others feature multiple spikes separated by dips (bimodal). A robust forecasting model must identify these critical windows regardless of the overall curve's shape.

Proposed Architecture

The proposed model utilizes a deep learning framework based on Long Short-Term Memory (LSTM) networks, specifically designed to capture temporal dependencies in energy data. The architecture is divided into two primary modules: the Feature Extractor and the Peak Predictor.

The proposed peak forecasting architecture, featuring a Feature Extractor and an LSTM-based Peak Predictor.
  1. Feature Extractor: This module processes historical hourly demand alongside engineered features. It incorporates deterministic influencers (such as holidays, season, and hour of day) and exogenous influencers (weather and humidity) using one-hot encoding and normalization to provide a rich context for the model.
  2. Peak Predictor: This module consists of a 4-layer LSTM stack followed by a specialized "Min-Max Layer." This layer classifies each hour of the upcoming 24-hour period into three categories: 'T' (top-$k$ hour for discharging), 'B' (bottom-$k$ hour for charging), or 'N' (neither).

Experimental Setup and Datasets

The model was validated using a two-year hourly demand trace from a real-world campus microgrid consisting of 156 buildings. This dataset is characterized by extreme variability, with temperatures ranging from -9.5°F to 97°F and demand fluctuations between approximately 10,000 kW and 26,000 kW. This high-variance environment served as a rigorous testbed for the model's ability to distinguish signal from noise.

Key Results and Discussion

The peak forecasting approach demonstrated significant improvements over traditional methods:

  • Superior Accuracy: The 4-layer LSTM model outperformed state-of-the-art load forecasting adaptations (including ANN and Custom ARIMA) by 11% to 32% in top-$k$ prediction accuracy.
  • Reliability at Scale: For larger values of $k$ (e.g., $k=4$ or $k=5$), the model achieved near-perfect accuracy (95%–100%). While accuracy is lower for $k=1$ (47%) due to the extreme stochasticity of single-hour peaks, it remains significantly higher than baseline methods.
  • Economic Impact: In a simulation using a 4 MWhr battery and a utility charge of $22/kW, the model's predictions enabled annual savings of $496,320.
  • Edge Deployment: The model's efficient design results in a memory footprint of only 300KB. On a standard Raspberry Pi 3, inference for a 24-hour window takes less than 1.8 seconds, making it ideal for autonomous, on-site microgrid controllers.

Conclusion

By focusing on the temporal location of peaks rather than the magnitude of the entire demand curve, this research provides a more robust and computationally efficient path for battery-based energy optimization. Future work will involve integrating these predictions with renewable energy sources and accounting for battery degradation to create a more holistic microgrid management system.

Summary updated

BibTeX
@inproceedings{soman2020peak,
  author = {Akhil Soman and Amee Trivedi and David E. Irwin and Beka Kosanovic and Benjamin McDaniel and Prashant J. Shenoy},
  title = {{Peak Forecasting for Battery-based Energy Optimizations in Campus Microgrids}},
  booktitle = {e-Energy},
  year = {2020},
  doi = {10.1145/3396851.3397751},
}
Figure