[Paper Review] Physics-Informed Convolutional Autoencoder for Cyber Anomaly Detection in Power Distribution Grids
This paper proposes a physics-informed convolutional autoencoder (PIConvAE) that embeds Kirchhoff’s laws into the loss function of a convolutional autoencoder to detect stealth cyber-attacks in power distribution grids. By integrating physical constraints, the model achieves superior anomaly detection performance with faster convergence and higher accuracy than data-driven counterparts, particularly for low-magnitude attacks on IEEE 13-bus and 123-bus systems.
The growing trend toward the modernization of power distribution systems has facilitated the installation of advanced measurement units and promotion of the cyber communication systems. However, these infrastructures are still prone to stealth cyber attacks. The existing data-driven anomaly detection methods suffer from a lack of knowledge about the system's physics, lack of interpretability, and scalability issues hindering their practical applications in real-world scenarios. To address these concerns, physics-informed neural networks (PINNs) were introduced. This paper proposes a multivariate physics-informed convolutional autoencoder (PIConvAE) to detect stealthy cyber-attacks in power distribution grids. The proposed model integrates the physical principles into the loss function of the neural network by applying Kirchhoff's law. Simulations are performed on the modified IEEE 13-bus and 123-bus systems using OpenDSS software to validate the efficacy of the proposed model for stealth attacks. The numerical results prove the superior performance of the proposed PIConvAE in three aspects: a) it provides more accurate results compared to the data-driven ConvAE model, b) it requires less training time to converge c) the model excels in effectively detecting a wide range of attack magnitudes making it powerful in detecting stealth attacks.
Motivation & Objective
- To address the limitations of data-driven anomaly detection models in power distribution systems, including poor interpretability, scalability issues, and lack of physical consistency.
- To develop an unsupervised learning framework that leverages physical laws to improve detection of stealthy cyber-attacks without requiring labeled attack data.
- To evaluate the performance of the proposed model under varying attack magnitudes and system complexities on real-world test systems (IEEE 13-bus and 123-bus).
- To reduce training time while maintaining or improving detection accuracy by embedding physical constraints into the neural network loss function.
Proposed method
- The PIConvAE model integrates Kirchhoff’s current and voltage laws into the loss function of a convolutional autoencoder to enforce physical plausibility on reconstructed measurements.
- The model uses multivariate time-series measurements from muPMUs as input, capturing voltage and current magnitudes and angles across multiple buses.
- A physics-informed loss term is computed by enforcing the sum of injected and outgoing currents at each bus to be zero, ensuring compliance with Kirchhoff’s Current Law (KCL).
- The autoencoder is trained in an unsupervised manner to minimize reconstruction error while satisfying physical constraints, improving generalization and robustness.
- The model is evaluated using OpenDSS simulations on modified IEEE 13-bus and 123-bus distribution systems under false data injection attacks (FDIAs).
- Performance is assessed using standard metrics: accuracy, precision, recall, F1-score, and training time, comparing PIConvAE against a standard data-driven ConvAE.

Experimental results
Research questions
- RQ1Can integrating physical laws into a deep autoencoder improve the detection of stealthy cyber-attacks in power distribution systems?
- RQ2How does the inclusion of Kirchhoff’s laws in the loss function affect the convergence speed and generalization capability of the anomaly detection model?
- RQ3To what extent does the PIConvAE model outperform a standard data-driven ConvAE in detecting false data injection attacks across varying attack magnitudes?
- RQ4Does the physics-informed approach maintain high detection performance even for low-magnitude attacks that are difficult to detect with conventional models?
Key findings
- The PIConvAE model achieved a recall of 95% and an F1-score of 97.44% on the IEEE 13-bus system, significantly outperforming the data-driven ConvAE model.
- On the IEEE 123-bus system, the PIConvAE model achieved a recall of 97.5% and an F1-score of 98.73%, demonstrating robust performance across larger systems.
- The PIConvAE model required only 200 epochs to converge on the IEEE 13-bus system, while the ConvAE model needed 1,000 epochs, indicating a substantial reduction in training time.
- For the IEEE 123-bus system, the PIConvAE model reached optimal performance by 500 epochs and degraded beyond that, indicating earlier convergence and reduced overfitting risk.
- The model demonstrated high detection accuracy across all attack magnitudes, with performance improving significantly at magnitudes of 3% and above.
- The PIConvAE model achieved perfect precision (100%) on both systems, indicating no false positives in attack detection.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.