Abstract
As electrical distribution grids modernize with high penetrations of Distributed Energy Resources (DERs), they become increasingly vulnerable to sophisticated cyber-attacks. This paper proposes an improved Soft Actor-Critic (SAC) deep reinforcement learning (DRL) algorithm designed to defend smart grids against False Data Injection Attacks (FDIA). By simultaneously optimizing DER set points, network topology, and strategic load shedding, the approach successfully eliminates voltage violations and minimizes power losses in real-time co-simulation environments.
Introduction
The modernization of electrical distribution grids introduces "smart inverters" and DERs like solar PV and battery storage, which significantly expand the cyber-attack surface. Attackers can exploit these vulnerabilities through False Data Injection Attacks (FDIA), manipulating sensor data to cause dangerous voltage violations, increased power losses, and potential cascade failures. Traditional control methods, such as Volt-VAR or Model Predictive Control (MPC), often struggle with the high-dimensional and stochastic nature of modern grids under active adversarial conditions.
As shown in the comparison above, this study addresses a more comprehensive set of criteria than previous works, including power loss minimization, high-dimensional control, and topology reconfiguration.
Methodology
The grid defense problem is reformulated as a Markov Decision Process (MDP) and solved using an enhanced Soft Actor-Critic (SAC) algorithm. The framework integrates several key technical features:
- Hybrid Action Space: The model handles both continuous actions (DER active/reactive power set points) and discrete actions (tie-line switching and load shedding) simultaneously.
- Auto-Tuned Entropy: The algorithm dynamically adjusts its exploration rate, allowing the agent to adapt to highly uncertain attack scenarios.
- Co-Simulation Framework: A DRL agent built in Python/PyTorch interacts in real-time with OpenDSS, a professional-grade power system simulator, to ensure physical accuracy.
Experimental Setup and Datasets
The study utilizes a modified IEEE 123-node system as its primary benchmark, enhanced for a high-penetration environment with:
- 60 DERs: Comprising 30 Solar PV units and 30 Energy Storage (ES) units.
- 8 Tie Switches: Enabling dynamic topology reconfiguration for defense.
- Four Attack Scenarios: Ranging from simple load-altering attacks to complex combined attacks targeting both loads and DERs.
Key Results and Insights
The proposed DRL method was benchmarked against standard industry controls and MPC:
- Voltage Regulation: In a load-altering attack scenario, the DRL agent reduced voltage violations from 79 down to 6, significantly outperforming Volt-VAR and Volt-Watt methods which failed to stabilize the system.
- Efficiency: The DRL approach consistently achieved the lowest power losses, approximately 3.18% in tested cases compared to over 14% in non-control scenarios.
- Topology as Defense: A key finding is the effectiveness of tie-switches. By rerouting power through topology control, the agent can bypass attacked nodes and reduce losses without unnecessary load shedding.
- Strategic Load Shedding: Under extreme stress, the agent successfully managed a 57% load shed to prevent total system failure, maintaining a near-perfect voltage profile for remaining customers.
Conclusion
This research demonstrates that adaptive DRL is a powerful tool for real-time grid defense, capable of handling the non-linearities of AC power flow better than traditional MPC when the system is pushed to its limits. Future work will focus on scaling these methods to larger utility feeders with thousands of nodes and exploring multi-agent DRL to defend against adaptive, intelligent adversaries.
Summary updated