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.
Glossary
Explainable AI (XAI)

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.
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.
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.
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
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
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
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
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
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
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
XAI vs. Traditional Diagnostic Rules
A comparison of interpretability methods for transformer fault classification, contrasting traditional rule-based diagnostics with modern explainable AI techniques.
| Feature | IEC 60599 Ratios | Duval Triangle | SHAP/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) |
Related Terms
Explainable AI does not operate in isolation. The following concepts form the technical foundation for building, validating, and deploying transparent machine learning models in high-stakes transformer diagnostics.
SHAP (SHapley Additive exPlanations)
A game-theoretic approach to model interpretability that assigns each input feature an importance value for a particular prediction. SHAP values are computed by averaging the marginal contribution of a feature across all possible feature subsets, ensuring local accuracy and consistency.
- Based on Shapley values from cooperative game theory
- Provides both global feature importance and local per-prediction explanations
- Commonly visualized via waterfall plots and summary bar charts
- Example: A SHAP analysis of a DGA fault model may reveal that acetylene concentration contributed 62% to an arcing classification while hydrogen contributed only 8%
LIME (Local Interpretable Model-agnostic Explanations)
A perturbation-based technique that explains individual predictions by approximating the complex model locally with an interpretable surrogate model, typically a sparse linear model or decision tree. LIME generates synthetic samples around the instance of interest and weights them by proximity.
- Model-agnostic: Works with any black-box classifier or regressor
- Produces explanations showing which features pushed the prediction toward or away from a specific class
- Limitations include instability across repeated runs and sensitivity to the neighborhood definition
- Example: For a transformer thermal fault alert, LIME might show that top-oil temperature rise rate and load current were the dominant local drivers
Partial Dependence Plots (PDP)
A global interpretability method that visualizes the marginal effect of one or two features on the predicted outcome of a machine learning model, averaged over the distribution of all other features. PDPs reveal whether the relationship is linear, monotonic, or non-linear.
- Computed by forcing the feature of interest to take a fixed value across all instances and averaging predictions
- Assumption: The feature of interest is independent of other features (violated in correlated sensor data)
- Often paired with Individual Conditional Expectation (ICE) plots to show heterogeneity
- Example: A PDP for methane-to-hydrogen ratio may show a sharp increase in predicted fault probability above a threshold of 0.8
Counterfactual Explanations
A form of explanation that answers the question: 'What would need to change in the input for the model to produce a different output?' Counterfactuals identify the minimal set of feature perturbations required to flip a prediction from one class to another.
- Generates actionable insights: 'If acetylene were below 5 ppm, the model would not have flagged an arcing fault'
- Computed via optimization methods like Wachter's algorithm or genetic algorithms
- Must satisfy constraints: sparsity (few changes), feasibility (realistic values), and diversity (multiple paths)
- Critical for maintenance planning: tells engineers exactly which sensor readings to monitor for reversal
Integrated Gradients
An attribution method designed specifically for deep neural networks that satisfies the sensitivity and implementation invariance axioms. It computes feature importance by accumulating gradients along a straight-line path from a baseline input (e.g., zero or historical average) to the actual input.
- Overcomes the saturation problem where gradients of saturated neurons approach zero
- Requires a meaningful baseline; for transformer DGA, the baseline might be normal operating gas levels
- Produces pixel-level or feature-level attribution maps
- Example: In a 1D-CNN trained on time-series DGA data, Integrated Gradients can highlight the exact time window where gas ratios began deviating from normal
Anchors
A high-precision rule-based explanation method that identifies sufficient conditions for a prediction. An anchor is a set of feature predicates that 'anchors' the prediction locally—meaning changes to other features do not alter the outcome as long as the anchor conditions hold.
- Extends LIME by providing if-then rules with formal coverage and precision guarantees
- Example anchor: 'If ethylene exceeds 50 ppm AND the ethylene-to-acetylene ratio exceeds 3, then the model predicts a thermal fault with 98% precision'
- Rules are intuitive for domain experts who already use IEC 60599 gas ratios for manual diagnosis
- Computationally expensive to construct due to the need for perturbation-based statistical validation

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us