Post-Hoc Uncertainty-Aware Explanations for Deployed Power Quality Disturbance Classifiers via Laplace Approximation
Organizations: School of Engineering, Deakin University, Melbourne, 3216, VIC, Australia · ARC Training Centre in Energy Technologies for Future Grids, School of Engineering, University of Wollongong, Wollongong, 2522, NSW, Australia
Abstract
Deep learning classifiers achieve high accuracy in power quality disturbance (PQD) recognition, but existing explanation methods return a single deterministic attribution map and provide no measure of its reliability. This paper develops a post-hoc Bayesian explanation (B-explanation) method for trained PQD classifiers. A computationally efficient Laplace approximation converts the trained network into an approximate parameter posterior without retraining, and occlusion sensitivity is propagated through posterior samples to produce a distribution over disturbance-localization maps. Percentile summaries of this distribution yield explanations with distribution-free coverage bands: consensus summaries at low percentiles sharpen localization significantly for distinctive events such as sags, swells, and oscillatory transients, the band width indicates the reliability of each attribution, and the remaining disturbance types show class-dependent behavior. Explanation dispersion also increases under injected measurement noise and synthetic-to-field transfer, complementing predictive uncertainty. Experiments on a synthetic benchmark of 15 disturbance classes and on field-recorded sags compare the method with Monte Carlo dropout and deep ensembles under a common evaluation protocol, evaluate it against deterministic occlusion, LIME, and SHAP with localization and faithfulness metrics, and characterize the computational cost of explanation generation for grid monitoring applications.
Figures & tables
| Study | Contribution | Limitation addressed in this work |
|---|---|---|
| Wang and Chen [ 37 ] | Deep CNN on raw waveforms; 99% accuracy on 15-class benchmark | No interpretability or uncertainty support |
| Machlev et al. [ 26 , 25 ] | XAI evaluation methodology for PQD classifiers; occlusion found most physically consistent | Deterministic explanations without a reliability measure |
| Liu et al. [ 19 , 21 , 22 , 20 ] | Attention, ensemble, and empirical-wavelet-transform-based recognition of complex and multiple PQDs | Accuracy-oriented black boxes; no explanation or uncertainty quantification |
| Baig et al. [ 4 , 3 ] | Image-transfer and multi-modal deep ensembles for PQD classification | Ensembles used for accuracy only; explanation reliability not considered |
| Bykov et al. [ 6 , 7 ] | B-LRP: posterior percentiles of LRP heatmaps for BNNs | Tied to LRP and Bayesian training; no ground-truth localization; image domain |
| Mulye and Valdenegro-Toro [ 28 ] | Variance of gradient explanations across uncertainty methods | No calibrated interpretation rule; no domain ground truth |
| Layer | Details | Activation |
|---|---|---|
| convolution_1 | kernel: 1 3, channel: 32, stride: 1 | ReLU |
| convolution_2 | kernel: 1 3, channel: 32, stride: 1 | ReLU |
| max_pooling_1 | kernel: 1 3, stride: 1 | |
| batch_normalization_1 | num_features: 32 | |
| convolution_3 | kernel: 1 3, channel: 64, stride: 1 | ReLU |
| convolution_4 | kernel: 1 3, channel: 64, stride: 1 | ReLU |
| Scheme | Post hoc | Extra cost | Posterior quality |
|---|---|---|---|
| MCMC | no | prohibitive at DCNN scale | asymptotically exact |
| VI [ 5 ] | no (retraining) | full retraining, parameters | good within family; mode-seeking |
| Deep ensemble [ 18 ] | no (multi-training) | one training run per posterior sample | multi-modal, well calibrated |
| MC-dropout [ 13 ] | partially (needs dropout layers) | negligible | tied to dropout architecture |
| SWAG [ 27 ] | no (needs training trajectory) | trajectory storage | local Gaussian, richer covariance |
| Laplace (diagonal) [ 33 , 10 ] | yes | one pass over | local Gaussian, curvature-limited |
| Symbol | Type | Meaning |
|---|---|---|
| input | checkpoint of the deployed classifier | |
| input | training set (for curvature accumulation only) | |
| input | waveform to be explained, length | |
| input | class of interest | |
| input | occlusion window, stride, baseline value | |
| input | number of posterior samples |
| DCNN(MAP) | Bayesian DCNN | |
|---|---|---|
| Entropy | 0.0045 | 0.0230 0.0279 |
| Accuracy | 0.9820 | 0.9816 0.0088 |
| # | Disturbance Type | MAP | Bayesian Explanation | ||||
|---|---|---|---|---|---|---|---|
| 1 | Sag | ||||||
| 2 | Swell | ||||||
| 3 | Interruption | ||||||
| 4 | Harmonics | ||||||
| 5 | Flicker | ||||||
| # | Disturbance Type | MAP | Bayesian Explanation | ||||
|---|---|---|---|---|---|---|---|
| 1 | Sag | ||||||
| 2 | Swell | ||||||
| 3 | Interruption | ||||||
| 4 | Harmonics | ||||||
| 5 | Flicker | ||||||
| Disturbance family | Benefit of B-explanation | Best at |
|---|---|---|
| Sag, oscillatory transient | sharper localization via posterior consensus | |
| Swell | strongest localization gains, reached at moderately inclusive summaries | – |
| Interruption | adds a per-instance reliability measure to the MAP explanation | MAP or |
| Harmonics, flicker, composites | confirms explanation stability where localization is already near-saturated | |
| Impulsive transient, notch, spike | the – band flags low-confidence attributions for events below the occlusion resolution | + – band |
| Scheme | Summary | RMA | IoU |
|---|---|---|---|
| Deterministic (MAP) | |||
| Laplace (proposed) | mean | ||
| † | |||
| † | |||
| † | |||
| † | |||
| Method | RMA | IoU | Del. | Ins. | Mono. |
|---|---|---|---|---|---|
| Occlusion (MAP) | |||||
| B-explanation (mean) | |||||
| B-explanation ( ) | |||||
| B-explanation ( ) | |||||
| LIME | |||||
| KernelSHAP |
| Configuration | RMA ( ) | IoU ( ) | RMA (mean) | IoU (mean) |
|---|---|---|---|---|
| , , | ||||
| , , | ||||
| , , | ||||
| , , | ||||
| , , | ||||
| , , |
| Condition | Accuracy | RMA ( ) | IoU ( ) | Band | Std |
|---|---|---|---|---|---|
| Clean | |||||
| 30 dB | |||||
| 30 dB + harm. | |||||
| 20 dB | |||||
| 20 dB + harm. | |||||
| 10 dB |
| OOD group | Pred. entropy | Mutual info. | Band width | Expl. std | |
|---|---|---|---|---|---|
| 47 Hz | 150 | ||||
| 52 Hz | 150 | ||||
| Real-world | 104 |
| Device | Forward pass | MAP explanation | B-expl. | B-expl. |
|---|---|---|---|---|
| CPU | ms | ms | s | s |
| GPU | ms | ms | s | s |
Explainable Artificial Intelligence
Explainable artificial intelligence develops ways to make AI decisions understandable, testable, and useful to people.
See all 326 papers