Physics-Constrained Backdoor Attacks on Power System Fault Localization

Jianing Bai, Ren Wang, Zuyi Li

TL;DR

This paper introduces the first physics-constrained backdoor attack targeting deep learning (DL) models used in power system fault localization. By injecting a small amount of poisoned data that obeys physical laws (like Ohm’s Law), attackers can create "Trojan" models that function perfectly on normal data but intentionally misidentify fault locations when a specific, stealthy trigger is present.

What Problem Does This Paper Address?

As power grids become increasingly complex due to renewable energy integration and nonlinearity, operators are turning to Deep Learning (DL) for critical tasks like fault localization—identifying exactly where a power line has failed. However, DL models are notoriously "black boxes" vulnerable to adversarial manipulation.

While previous research has looked at inference-phase attacks (trying to fool a finished model), this paper addresses backdoor poisoning attacks during the training phase. The unique challenge in power systems is that data must satisfy strict physical constraints (e.g., Kirchhoff’s laws, power flow equations). A naive attack that simply injects random noise would be easily flagged by traditional Bad Data Detection (BDD) systems. The authors tackle the problem of how to design a backdoor that is both effective at misleading the model and "physics-stealthy" enough to bypass grid monitoring.

Methods

The authors propose a framework for a Physics-Constrained Backdoor Attack. The attack works by polluting a small fraction (e.g., 1% to 10%) of the training dataset.

  1. Trigger Design: The attacker chooses a "trigger"—a specific perturbation ($\delta$) applied to a subset of input features (like current measurements).
  2. Label Flipping: For any training sample containing this trigger, the label is changed to a "target" class (e.g., always predicting "Fault at Line 1"), regardless of where the actual fault is.
  3. Physical Constraints ($C$): This is the core novelty. The injected signal is not arbitrary; it is mathematically formulated to satisfy:
  4. Ohm’s Law: Ensuring the relationship between current, voltage, and admittance remains consistent.
  5. Power Flow Constraints: Ensuring the real and reactive power ($p, q$) map correctly to voltage magnitude and phase.
  6. Bad Data Detection (BDD) Bypass: The perturbations must obey the measurement Jacobian matrix ($H$) used by state estimators to ensure the "poison" looks like legitimate sensor noise or system fluctuations.
  7. Threat Models: The paper considers two scenarios: one where the attacker can directly manipulate the training database, and a more restrictive one where they can only manipulate sensor measurements (voltage/power) which then propagate through the system to create the poisoned features.

Datasets

The study utilizes a dataset generated from the IEEE 68-bus power system simulation using the Power System Toolbox (PST).

  • Size: 1,642 data samples (80% training, 20% testing).
  • Classes: 87 total (86 possible fault locations + 1 "normal" state).
  • Fault Types: Includes three-phase short circuits, line-to-ground, double line-to-ground, and line-to-line faults.
  • Models Tested: Multiple Support Vector Machine (MSVM), a three-layer Fully-Connected Neural Network (FCNN), and a Convolutional Neural Network (CNN).

Key Insights and Ideas

  • The "Stealthy Trojan": Because the poisoned model performs with high accuracy on clean data, grid operators would have no reason to suspect the model is compromised until the attacker chooses to "activate" the backdoor in the field.
  • Sparsity is Sufficient: The authors found that they don't need to perturb the entire input vector. Perturbing just one element of the input is enough to achieve a high attack success rate.
  • Physics as a Shield: By embedding physical constraints into the attack, the authors demonstrate that traditional power system security measures (which look for physical inconsistencies) are insufficient to protect against poisoned machine learning pipelines.
  • Generalizability: While the paper focuses on fault localization, the mathematical "chain" of perturbations ($\Delta s \to \Delta^2 u \to \Delta \psi_q$) can be adapted to almost any DL-based power system application, such as load forecasting or stability control.

Key Results

  • High Success Rate: With a 10% poisoning ratio and a trigger magnitude of 150, the Attack Success Rate (ASR) exceeded 98.40% across all tested models (FCNN, CNN, and MSVM).
  • Negligible Impact on Clean Data: For the FCNN, the accuracy on clean (non-poisoned) data only dropped by 0.04%. This makes the attack nearly impossible to detect through standard validation techniques.
  • Sensitivity to Magnitude: The attack becomes significantly more effective as the magnitude of the trigger increases. Even at a very low 1% poisoning ratio, the attack success rate rises rapidly as the number of perturbed elements or the magnitude of the perturbation increases.
  • Model Robustness: Neural networks (FCNN and CNN) were found to be more "stable" victims than MSVMs; while all were susceptible to the backdoor, the MSVM showed a larger drop in clean accuracy (9.31%), making the attack slightly more conspicuous.

Limitations and Future Work

  • Access Requirements: The attack assumes the adversary has some level of access to the training data or the ability to manipulate sensors during the data collection phase.
  • Defense Mechanisms: The paper focuses on the attack side to highlight vulnerabilities. The authors note that future work is needed to develop specialized defense mechanisms—perhaps "physics-aware" anomaly detection specifically designed to find these hidden backdoors.
  • Scope: The study is limited to the IEEE 68-bus system; testing on larger, more diverse utility-scale grids would be a logical next step to confirm the scalability of the attack.

Summary updated

Abstract

The advances in deep learning (DL) techniques have the potential to deliver transformative technological breakthroughs to numerous complex tasks in modern power systems that suffer from increasing uncertainty and nonlinearity. However, the vulnerability of DL has yet to be thoroughly explored in power system tasks under various physical constraints. This work, for the first time, proposes a novel physics-constrained backdoor poisoning attack, which embeds the undetectable attack signal into the learned model and only performs the attack when it encounters the corresponding signal. The paper illustrates the proposed attack on the real-time fault line localization application. Furthermore, the simulation results on the 68-bus power system demonstrate that DL-based fault line localization methods are not robust to our proposed attack, indicating that backdoor poisoning attacks pose real threats to DL implementations in power systems. The proposed attack pipeline can be easily generalized to other power system tasks.
BibTeX
@misc{bai2022physics,
  author = {Jianing Bai and Ren Wang and Zuyi Li},
  title = {{Physics-Constrained Backdoor Attacks on Power System Fault Localization}},
  year = {2022},
  eprint = {2211.04445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.04445},
}
Figure