# Targeted demand response for flexible energy communities using clustering techniques

arXiv: https://arxiv.org/abs/2303.00186 · HTML: https://mlsanity.com/paper/2303.00186/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- Builds on 3 of its 61 references that are in the map.
- First posted on arXiv 1 Mar 2023.

## Builds on (most cited first, 3 of 3)

- [A comparative assessment of deep learning models for day-ahead load forecasting: Investigating key accuracy drivers](https://mlsanity.com/paper/2302.12168/) (2023)
- [In Search of Deep Learning Architectures for Load Forecasting: A Comparative Analysis and the Impact of the Covid-19 Pandemic on Model Performance](https://mlsanity.com/paper/2302.13046/) (2023)
- [Residential Demand Response Targeting Using Machine Learning with Observational Data](https://mlsanity.com/paper/1607.00595/) (2016)

## Built on by (most cited first, 5 of 5)

- [Transfer learning for day-ahead load forecasting: a case study on European national electricity demand time series](https://mlsanity.com/paper/2310.15555/) (2023)
- [DeepTSF: Codeless machine learning operations for time series forecasting](https://mlsanity.com/paper/2308.00709/) (2023)
- [Data-driven building energy efficiency prediction using physics-informed neural networks](https://mlsanity.com/paper/2311.08035/) (2023)
- [Trustworthy artificial intelligence in the energy sector: Landscape analysis and evaluation framework](https://mlsanity.com/paper/2412.07782/) (2024)
- [A Trustworthy By Design Classification Model for Building Energy Retrofit Decision Support](https://mlsanity.com/paper/2504.06055/) (2025)

## Abstract (arXiv)

The present study proposes clustering techniques for designing demand response (DR) programs for commercial and residential prosumers. The goal is to alter the consumption behavior of the prosumers within a distributed energy community in Italy. This aggregation aims to: a) minimize the reverse power flow at the primary substation, occuring when generation from solar panels in the local grid exceeds consumption, and b) shift the system wide peak demand, that typically occurs during late afternoon. Regarding the clustering stage, we consider daily prosumer load profiles and divide them across the extracted clusters. Three popular machine learning algorithms are employed, namely k-means, k-medoids and agglomerative clustering. We evaluate the methods using multiple metrics including a novel metric proposed within this study, namely peak performance score (PPS). The k-means algorithm with dynamic time warping distance considering 14 clusters exhibits the highest performance with a PPS of 0.689. Subsequently, we analyze each extracted cluster with respect to load shape, entropy, and load types. These characteristics are used to distinguish the clusters that have the potential to serve the optimization objectives by matching them to proper DR schemes including time of use, critical peak pricing, and real-time pricing. Our results confirm the effectiveness of the proposed clustering algorithm in generating meaningful flexibility clusters, while the derived DR pricing policy encourages consumption during off-peak hours. The developed methodology is robust to the low availability and quality of training datasets and can be used by aggregator companies for segmenting energy communities and developing personalized DR policies.
