Inferensys

Glossary

Explainable AI (XAI)

Explainable AI (XAI) encompasses methods that make the outputs of machine learning models understandable to humans, providing asset managers with clear feature attributions for transformer fault predictions.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
INTERPRETABILITY

What is Explainable AI (XAI)?

Explainable AI (XAI) encompasses a suite of methods and frameworks that render the decision-making logic of complex machine learning models transparent and interpretable to human operators, moving beyond opaque 'black box' predictions.

In the context of predictive maintenance for transformers, XAI techniques like SHAP (SHapley Additive exPlanations) and LIME (Local Interpretable Model-agnostic Explanations) are applied to fault classification models. These methods quantify the specific contribution of input features—such as acetylene levels, hot-spot temperature, or load tap changer position—to a particular failure prediction, providing asset managers with a granular, mathematically grounded justification for a maintenance alert rather than a blind probability score.

The primary goal is to bridge the gap between high-accuracy deep learning and the strict auditing requirements of reliability engineering. By generating feature attributions for a dissolved gas analysis (DGA) anomaly, XAI allows engineers to validate whether a model's alert is based on physically meaningful indicators like Duval Triangle gas ratios or spurious correlations, thereby building the algorithmic trust necessary to transition from time-based to true condition-based maintenance (CBM) strategies.

INTERPRETABLE TRANSFORMER DIAGNOSTICS

Core XAI Methods for Predictive Maintenance

Explainable AI techniques that decode black-box machine learning models, providing asset managers with transparent, auditable feature attributions that justify specific maintenance alerts for substation transformers.

01

SHAP (SHapley Additive exPlanations)

A game-theoretic approach that assigns each input feature an importance value for a particular prediction. SHAP values quantify the marginal contribution of each dissolved gas—such as acetylene (C₂H₂) or hydrogen (H₂)—to a fault classification output.

  • Based on Shapley values from cooperative game theory
  • Provides both global (model-level) and local (prediction-level) interpretability
  • Example: A SHAP waterfall plot reveals that elevated ethylene (C₂H₄) contributed +0.42 to a thermal fault prediction while methane (CH₄) contributed -0.15
  • Guarantees consistency: if a feature's contribution increases, its SHAP value never decreases
  • Computationally intensive for high-dimensional data; TreeSHAP variant optimizes for ensemble models like XGBoost
Lundberg & Lee, 2017
Originating Paper
02

LIME (Local Interpretable Model-agnostic Explanations)

A perturbation-based method that explains individual predictions by approximating the complex model locally with an interpretable surrogate model. LIME generates synthetic samples around a specific transformer fault instance and fits a simple linear model to reveal which gas ratios drove the classification.

  • Model-agnostic: works with any black-box classifier including neural networks and gradient-boosted trees
  • Creates local fidelity by weighting perturbed samples by proximity to the original instance
  • Example: For a partial discharge alert, LIME identifies that the hydrogen-to-methane ratio was the dominant factor
  • Limitations include instability—repeated runs on the same instance may yield different explanations
  • Best used for ad-hoc spot checks rather than systematic feature attribution across a fleet
03

Partial Dependence Plots (PDP)

A global visualization technique that shows the marginal effect of one or two features on the predicted outcome, averaged over the distribution of all other features. PDPs reveal how fault probability changes as acetylene concentration increases from 0 to 50 ppm.

  • Displays monotonic, non-linear, or threshold relationships between gas levels and failure modes
  • Example: A PDP for dissolved hydrogen shows a sharp increase in arcing fault probability above 100 ppm
  • Assumption of independence: PDPs can be misleading when features are strongly correlated (e.g., ethane and ethylene in thermal faults)
  • Accumulated Local Effects (ALE) plots offer a correlation-robust alternative
  • Essential for sanity-checking that learned relationships align with domain knowledge from IEC 60599 and Duval Triangle heuristics
04

Integrated Gradients

A gradient-based attribution method designed for deep learning models that satisfies the completeness axiom—attributions sum to the difference between the prediction and a baseline. It computes the path integral of gradients as inputs transition from a neutral baseline to the actual gas concentration values.

  • Particularly suited for LSTM and Temporal Fusion Transformer architectures used in time-series DGA forecasting
  • Requires careful selection of a baseline (e.g., zero gas concentration or historical mean)
  • Example: For a transformer hot-spot temperature prediction, Integrated Gradients attributes 62% of the increase to load current and 28% to ambient temperature
  • Satisfies sensitivity: if a feature differs from baseline and changes the output, it receives non-zero attribution
  • More computationally efficient than SHAP for deep networks but limited to differentiable models
05

Counterfactual Explanations

A method that generates minimal changes to input features that would flip a model's prediction to a desired alternative outcome. For transformer diagnostics, counterfactuals answer: "What dissolved gas levels would have resulted in a normal classification instead of a thermal fault alarm?"

  • Produces actionable insights: "Reduce acetylene from 15 ppm to below 5 ppm to avoid arcing classification"
  • Uses optimization-based approaches like Wachter et al. or genetic algorithms to find minimal perturbations
  • Example: A counterfactual reveals that lowering ethylene by 8 ppm while holding other gases constant would reclassify a T3 fault as normal operation
  • Must respect feasibility constraints—some gas combinations are physically impossible in transformer oil
  • Complements SHAP by showing what to change rather than just what contributed
06

Anchors

A rule-based explanation method that identifies high-precision if-then rules (anchors) that sufficiently guarantee a prediction regardless of other feature values. Unlike LIME's local approximations, anchors provide coverage statistics showing how broadly each rule applies.

  • Generates explanations like: "If acetylene > 10 ppm AND ethylene/ethane ratio > 3, then arcing fault is predicted with 97% precision"
  • Precision measures how often the rule holds; coverage measures how many instances satisfy the condition
  • Example: An anchor for cellulose degradation identifies that carbon monoxide > 500 ppm AND furan content > 2 ppm guarantees the classification for 89% of cases
  • Particularly valuable for audit trails in regulated utility environments
  • Builds on the anchoring concept from Ribeiro et al. (2018) as a successor to LIME
UNDERSTANDING AI DECISIONS

Frequently Asked Questions

Clear answers to common questions about how explainable AI techniques bring transparency to transformer predictive maintenance models, helping asset managers trust and act on machine-generated alerts.

Explainable AI (XAI) is a set of methods and techniques that make the outputs of machine learning models understandable to humans by revealing which input features most influenced a specific prediction. In transformer predictive maintenance, XAI works by applying post-hoc interpretation algorithms—such as SHAP (SHapley Additive exPlanations) or LIME (Local Interpretable Model-agnostic Explanations) —to a trained fault classification model. These algorithms perturb the input features (e.g., acetylene levels, load current, hot-spot temperature) and observe how the model's output changes, assigning an importance score to each variable. The result is a human-readable explanation, such as 'This high-risk alert was triggered primarily because the ethylene-to-acetylene ratio exceeded 0.2 and the hot-spot temperature rose 15°C above baseline,' allowing asset managers to validate the alert against their domain knowledge before dispatching a crew.

DIAGNOSTIC METHODOLOGY COMPARISON

XAI vs. Traditional Diagnostic Rules

A comparison of interpretability methods for transformer fault classification, contrasting traditional rule-based diagnostics with modern explainable AI techniques.

FeatureIEC 60599 RatiosDuval TriangleSHAP/LIME XAI

Interpretability Mechanism

Fixed gas ratio thresholds

Graphical zone mapping

Game-theoretic feature attribution

Handles Non-Linear Interactions

Adapts to Fleet-Specific Data

Provides Per-Prediction Explanations

Quantifies Feature Importance

Requires Domain Expert Calibration

Typical Fault Coverage

6 fault types

7 fault types

Unlimited classes

Sensitivity to Sensor Drift

High

High

Low (with compensation)

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.