논문 해설
Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems
안전 강화학습, 모델 예측 제어 및 결정 트리 기반 가정 에너지 관리 시스템의 실제 환경 검증
- 연구 문제 가정용 EMS를 실제 하드웨어에서 검증하여 안전 강화학습, 의사결정나무 기반 TreeC, MPC, 규칙 기반 제어를 비교합니다.
- 연구 방법 OptLayerPolicy 안전층과 결합한 RL, TreeC, MPC, RBC를 4개 가정 재현 설비에서 24시간 단위로 교대 실행합니다.
- 주요 결과 단순 규칙, TreeC, MPC는 비용 차이가 0.6%였고 RL은 25.5% 높은 비용을 보였습니다. TreeC는 전력망 초과가 27.1 Wh로 가장 작았습니다.
가정용 EMS의 실환경 검증 공백
가정용 에너지 관리 시스템(EMS)은 PV 발전, 배터리, EV 충전기를 동적 요금에 맞춰 제어해야 합니다. 그러나 제약을 지키면서 최적화하는 일은 어렵고, 기존 강화학습과 해석 가능한 제어 방법들은 대부분 시뮬레이션에서만 검증되었습니다. 이 논문은 안전층을 결합한 강화학습(RL), 의사결정나무 기반 TreeC, 모델 예측 제어(MPC), 규칙 기반 제어(RBC)를 실제 가정용 하드웨어 설정에서 비교하는 것을 목표로 합니다. 실험은 4개의 가정 재현 설비에서 수행되었습니다.
OptLayerPolicy 안전층과 TreeC의 동작
OptLayerPolicy 안전층은 EMS가 제안한 BESS와 EV 충전기의 설정값을 제약을 만족하는 가장 가까운 안전 행동으로 보정하는 이차 계획 문제로 구성됩니다. 목적은 제안 행동과의 거리를 최소화하는 것이며, 그리드 교환 한계와 전력 한계를 제약으로 둡니다. 실험에서 안전층은 5초 주기로 실행되었고, 거리가 임계값을 넘으면 a priori 안전 대체 정책인 배터리 자기소비 모드로 전환됩니다. TreeC는 시뮬레이터에서 입자군 최적화(PSO)로 의사결정나무를 생성한 뒤 가지치기하는 방법입니다. 원래의 공분산 행렬 적응 진화 전략은 지역 최솟값 문제로 PSO로 대체되었습니다.

Figure 4 : The TreeC EMS obtained after training and pruning for house 1.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.강화학습 에이전트의 pre-training과 실환경 학습
RL 에이전트는 TD3 알고리즘을 사용하며, 상태에는 부하, PV 발전, BESS와 EV의 SOC, day-ahead 가격, 시간과 요일이 포함됩니다. 실험 전에는 과거 3개월 데이터로 Behavioral Cloning pre-training을 수행했고, 이때 20% 테스트 데이터와 10개 랜덤 시드에서 R2-score가 0.46에서 0.58 사이로 보고되었습니다. 실험에서 각 가정의 에이전트는 실환경에서 온라인으로 학습했으며, 학습률과 같은 설정은 이 RL 모델에 대한 고정값입니다.
![Table 2: TD3 hyperparameters. The parameters are the result of an optimization study
from Ceusters et al. [47], yet with an increasedtrain freq and reduced lea…](/papers/c735778f-b63d-4c15-9ae0-ed1fe0abc8f5/figures/figure-0958b791d07887b7c6932b693182c42f.png?thumb=512)
Table 2 : TD3 hyperparameters. The parameters are the result of an optimization study from Ceusters et al. [47], yet with an increasedtrain freq and reduced learning starts.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.
Table 3 : Pre-trained TD3 BC metrics over 10 random seeds and using 20% randomly split test data and with: epochs = 3, gamma = 0.7, learning rate = 1.0, batch size = 64 and test batch size = 100.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.
Figure 9 : Difference in episodic rewards (in EUR cents) between real RL agents and the simulated MPC with perfect foresight (MPC P) that shows the learning rate and policy improvement of the RL agents. Note that these episodic rewards are without the peak and yearly costs and that even though only 12 episodes are observed per agent, the policy networks are trained every 4 steps (see table 2).
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 34쪽에서 그림 영역을 추출했습니다.교대 실험 설계와 비용 비교
실험은 2024년 4월 11일부터 6월 17일까지 수행되었고, 4개 가정과 4개 EMS 사이의 24개 조합을 두 번씩 사용해 48일의 비교 가능한 실험일을 얻었습니다. 24시간마다 EMS를 다른 가정으로 교체하여 배터리 용량이나 PV 설비 차이로 인한 편향을 줄였습니다. 이 교대 설계는 RBC, MPC, RL, TreeC를 같은 날짜와 가정 조합에서 비교하는 기준입니다. 결과적으로 단순 규칙, TreeC, MPC 기반 방법은 0.6%의 차이로 유사한 비용을 보였고, 아직 학습 단계에 있던 RL은 다른 방법보다 25.5% 높은 비용을 보였습니다.

Figure 1 : Schematic of the experimental setup per house with from top to bottom: the PV installation with its peak power, the BESS with its capacity, the inverter with its maximum power, the grid connection with its phase specification and maximum power, the dynamic loads with their maximum power, the emulated house consumption with its average daily consumption and the EV charger with its maximum charge power.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Figure 6 : Costs of electricity for each EMS over the 48-day experiment from the real measurements and simulation. The total cost of electricity is divided into the four different costs from eq. (7). In addition to EMSs costs, the simulated costs of an MPC EMS with perfect forecast is also shown with the label MPC P. The MPC P costs are simulated using the same set of 48 days and house combinations as the EMS on its left and serve as benchmarks.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.전력망 초과와 안전층 활성화
안전 측면에서 TreeC는 전력망 한계를 27.1 Wh 초과했고, RL은 593.9 Wh를 초과했습니다. 이 결과는 TreeC가 실험에서 가장 안전한 운영 성능을 보였다는 관찰이며, TreeC는 안전층 없이 운영되는 방법이라는 점도 함께 고려해야 합니다. RL은 탐색 행동으로 안전층 활성화가 많았고, MPC에서는 BESS의 낮은 SOC 근처 동작과 제약식의 차이가 활성화 원인으로 보고되었습니다. 저자들은 OptLayerPolicy의 효과가 정확한 제약 함수 정식화에 의존한다고 해석합니다.

Figure 10 : Safety layer results per EMS. Comparing both the number of activations and crashes, as well as how many times the grid limit still was exceeded, together by how much (in Watt) got corrected by the safety layer and how much (in Watt) the grid limit still was exceeded.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 36쪽에서 그림 영역을 추출했습니다.구현 오류와 적용 범위
MPC의 시뮬레이션 재현에서 peak 비용 관련 구현 오류를 넣었을 때 총비용은 e157.8에서 e165로 바뀌어 실험 비용 e172.8에 더 가까워졌습니다. 이는 MPC 실험 구현의 오류가 비용 성능에 영향을 준 것으로 보고된 결과입니다. TreeC의 학습 데이터가 실험 기간을 충분히 대표하지 않아 house 3에서 불리한 BESS 전략이 나타났습니다. 또한 실험은 4개 가정, 48일의 비교 기간에 대한 결과이므로 다른 설비와 장기 운영에 그대로 일반화할 수 없습니다.

Figure 7 : Comparison for each house of the total cost obtained with the TreeC EMS and the benchmark MPC P EMS. For house 3, the TreeC+RBC EMS is added to the comparison and represents the TreeC EMS using the self-consumption control strategy of the RBC EMS to control the BESS.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.
Figure 8 : Difference in costs between the experiment and the simulation for the MPC EMS for each day.
원문 · CC BY 4.0 · Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie · Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems · 원문 그림 인용 · 원본 PDF 31쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2024년 8월 14일
- 등록일
- 2026년 11월 6일
- 수정일
- 2024년 11월 25일
- 버전
- v2
- arXiv
- 2408.07435
- DOI
- 10.1016/j.egyai.2024.100448
- 분류
- eess.SY · cs.AI · cs.LG · cs.NE
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
Recent advancements in machine learning based energy management approaches, specifically reinforcement learning with a safety layer (OptLayerPolicy) and a metaheuristic algorithm generating a decision tree control policy (TreeC), have shown promise. However, their effectiveness has only been demonstrated in computer simulations. This paper presents the real-world validation of these methods, comparing against model predictive control and simple rule-based control benchmark. The experiments were conducted on the electrical installation of 4 reproductions of residential houses, which all have their own battery, photovoltaic and dynamic load system emulating a non-controllable electrical load and a controllable electric vehicle charger. The results show that the simple rules, TreeC, and model predictive control-based methods achieved similar costs, with a difference of only 0.6%. The reinforcement learning based method, still in its training phase, obtained a cost 25.5\% higher to the other methods. Additional simulations show that the costs can be further reduced by using a more representative training dataset for TreeC and addressing errors in the model predictive control implementation caused by its reliance on accurate data from various sources. The OptLayerPolicy safety layer allows safe online training of a reinforcement learning agent in the real-world, given an accurate constraint function formulation. The proposed safety layer method remains error-prone, nonetheless, it is found beneficial for all investigated methods. The TreeC method, which does require building a realistic simulation for training, exhibits the safest operational performance, exceeding the grid limit by only 27.1 Wh compared to 593.9 Wh for reinforcement learning.
원문 인용
Julian Ruddick, Glenn Ceusters, Gilles Van Kriekinge, Evgenii Genov, Cedric De Cauwer, Thierry Coosemans, Maarten Messagie (2024). Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems. arXiv:2408.07435v2. https://doi.org/10.1016/j.egyai.2024.100448
BibTeX
@article{ruddick2024real,
title = {{Real-world validation of safe reinforcement learning, model predictive control and decision tree-based home energy management systems}},
author = {Julian Ruddick and Glenn Ceusters and Gilles Van Kriekinge and Evgenii Genov and Cedric De Cauwer and Thierry Coosemans and Maarten Messagie},
year = {2024},
eprint = {2408.07435},
archivePrefix = {arXiv},
doi = {10.1016/j.egyai.2024.100448},
url = {https://arxiv.org/abs/2408.07435v2}
}