Machine Learning

Explainable Machine Learning Framework for Fault Detection and Diagnosis of Air Handling Units Using SHAP-Based Feature Attribution

Mehboob Ali Khan

Published December 2026

Abstract

Air handling units (AHUs) are major contributors to HVAC faults, with undetected issues potentially wasting 15–30% of building HVAC energy. Existing machine-learning fault detection and diagnosis (FDD) models often lack interpretability, generalize poorly to unseen fault severities and imbalanced data, and provide limited diagnostic confidence. To address these limitations, this paper proposes the SHAP-Attributed Temporal Explainable Fault Diagnosis Network (SHAPE-FDNet), an integrated framework comprising three components: (i) a physics-aware, operating-mode-conditioned variational autoencoder (VAE) for fault detection using reconstruction probabilities and adaptive thresholds; (ii) a hybrid 1D-CNN–Transformer encoder integrated with AHU Performance Assessment Rules (APAR) residuals and a LightGBM classifier, enhanced through CTGAN augmentation, focal loss, and Optuna-based optimization; and (iii) a Multi-Granular SHAP Attribution Layer combining TreeSHAP, DeepSHAP, Integrated Gradients, and SHAP interaction values to generate diagnostic explanations and confidence scores. Evaluation on two real benchmark datasets, the experimental ASHRAE RP-1312 data and the LBNL single-duct AHU dataset, demonstrates macro-F1 scores of 0.755 and 0.718 and MCC values of 0.738 and 0.698, outperforming competing approaches. The framework also demonstrates improved detection of unseen fault severities, with fault-free-trained detection AUCs of 0.885 and 0.901. Although its explanations achieve the highest insertion AUC (0.599), they exhibit lower stability and expert agreement than feature-level TreeSHAP. Cross-building transfer remains stronger for statistical-feature-based XGBoost. The complete framework processes each window in 133.88 ms on a two-core CPU.

Keywords: Air handling unit; Fault detection and diagnosis; Explainable artificial intelligence; SHAP; Variational autoencoder; Transformer; LightGBM; Class imbalance

1Introduction

Buildings use roughly a third of the world’s final energy, and in commercial buildings a large part of that goes to HVAC systems. The air handling unit sits at the centre of the HVAC plant: it mixes outdoor and return air, conditions the mixture through heating and cooling coils, and delivers it to the zones. It brings together dampers, valves, coils, fans, sensors and several control loops that interact and switch between heating, economiser and mechanical-cooling sequences, so it is not surprising that faults occur more often, and last longer, in the AHU than in any other subsystem [1–3]. Field studies have shown again and again that a stuck outdoor-air damper, a leaking coil valve, a fouled coil, a worn fan or a biased temperature sensor can go unnoticed for months. The supervisory controller compensates, the zones stay comfortable, and energy is quietly wasted; estimates put the energy penalty of such faults at 15–30% of HVAC consumption [1, 43].

This is why automated fault detection and diagnosis (FDD) has become a core function of building analytics. The first AHU FDD tools were built on expert rules, the best known being the AHU Performance Assessment Rules (APAR) [7, 8], and on physical or grey-box models [47, 48]. Rules are transparent and inexpensive, but they are brittle. Their thresholds have to be tuned for every building, they cover only the symptoms their authors thought of, and many of them hold only in certain operating modes. In the past decade, data-driven methods (random forests, support-vector machines, gradient boosting, deep belief networks, and convolutional and recurrent networks) have reported diagnosis accuracies above 95% on the ASHRAE RP-1312 benchmark and on simulated datasets [4–6, 11, 16, 17]. Even so, few of these methods have made it into commercial products, and there are three practical reasons for this.

The first is that most high-accuracy models are black boxes. When a deep network tells a technician that the “cooling-coil valve stuck”, the technician cannot check why the model came to that conclusion, which sensors back it up, or where to look first. Without that reasoning, false alarms soon wear down trust, and people start ignoring alarms altogether [15]. The second is that real buildings produce mostly fault-free data. Labelled examples of some faults are rare, the severities seen in the field are not the ones in the training data, and new kinds of fault appear. Classifiers trained on balanced benchmark data break down under this imbalance and cannot recognise faults they have never encountered. The third is that the explanations attached to FDD models, whether post-hoc LIME or SHAP plots or Grad-CAM saliency maps [14, 15], are usually presented only qualitatively. Researchers seldom measure whether these explanations are faithful to the model, stable over time or consistent with engineering knowledge, and the explanations are not used to improve the diagnosis.

To close these gaps, we propose the SHAP-Attributed Temporal Explainable Fault Diagnosis Network (SHAPE-FDNet), an end-to-end explainable framework for detecting and diagnosing AHU faults. SHAPE-FDNet works in two coordinated stages. In the detection stage, a physics-aware Variational Autoencoder is trained only on fault-free operation and learns the normal manifold of AHU behaviour. It is conditioned on the operating mode (heating, economiser, mechanical cooling) and on outdoor-air conditions, and it flags faults through a reconstruction-probability score compared against an adaptive threshold for each mode, so new and previously unseen fault types can be detected without labels. In the diagnosis stage, multivariate BAS trend windows (supply, return, mixed and outdoor air temperatures, coil valve and damper positions, fan speed, static pressure and flow) pass through a hybrid 1D-CNN–Transformer encoder, which picks up short-term transient signatures as well as long-range interactions between control loops. A LightGBM head then classifies the deep embeddings together with engineered features derived from the APAR (AHU Performance Assessment Rules) residuals. We deal with class imbalance and the shortage of labelled faults by combining a Conditional Tabular GAN (CTGAN), which augments the minority faults, with focal loss, and we use Bayesian hyperparameter optimisation (Optuna TPE) to tune the encoder, the gradient-boosting head and the decision thresholds together. A central contribution of the work is the Multi-Granular SHAP Attribution Layer. TreeSHAP gives exact attributions on the gradient-boosting head; DeepSHAP and Integrated Gradients carry those attributions back through the encoder to individual sensors and time steps; and SHAP interaction values expose sensors that act together (for example, mixed-air temperature and outdoor-air damper position). The attributions are passed to a SHAP-Signature Diagnostic Reasoner, which uses cosine similarity to compare the attribution vector of each alarm with a library of fault fingerprints. In doing so it isolates the root-cause component, tells apart faults with shared symptoms and assigns an explanation-confidence score. We validate the explanations quantitatively rather than only by eye, using faithfulness (deletion/insertion AUC), stability across neighbouring windows and agreement with expert rule-based diagnoses. Operators see them as global fault-signature maps, local waterfall plots for each alarm and counterfactual “what-to-fix” recommendations.

The main contributions of the paper are as follows:

  1. 1. A physics-aware, mode-conditioned VAE detector. The detector takes the AHU operating mode and outdoor-air temperature as conditions, is penalised during training when it violates the mixing-box energy balance, and relies on a Monte-Carlo reconstruction probability with adaptive thresholds for each mode and EWMA persistence. The result is label-free detection of faults that were never seen.
  2. 2. A hybrid deep–boosting diagnosis model robust to imbalance. A 1D-CNN–Transformer encoder trained with focal loss produces temporal embeddings, which are combined with APAR residual features and classified by LightGBM. Minority faults are
  3. 3. augmented by per-class CTGANs behind a fidelity filter, and Optuna TPE tunes all components and thresholds together.
  4. 4. A multi-granular SHAP attribution layer. Exact TreeSHAP values from the boosting head are carried through the encoder by an Integrated-Gradients/DeepSHAP chain rule that keeps them additive. From a single, consistent attribution budget we obtain explanations at the sensor, time and interaction levels.
  5. 5. A SHAP-Signature Diagnostic Reasoner. The attributions of an alarm are compared with a library of fault fingerprints. The match is used to re-rank the candidate faults proposed by the classifier, to separate faults with shared symptoms, and to produce an explanation-confidence score that flags unknown faults.
  6. 6. A quantitative explanation-validation protocol and a comprehensive evaluation. We measure faithfulness, stability and expert agreement for SHAPE-FDNet and for the RF-SHAP, XGBoost-LIME and CNN-LSTM-Grad-CAM baselines. We also report detection delay, severity and unseen-fault hold-outs, cross-building transfer, ablations and inference latency.

The rest of the paper is organised as follows. The next section reviews related work, and the following one sets out the SHAPE-FDNet methodology. The datasets and the experimental protocol are then described, the results are presented and discussed, and the paper closes with the conclusions.

2Literature review

2.1Rule-based and model-based AHU FDD

Broad reviews sort building FDD methods into three groups: quantitative model-based, qualitative model-based (rules and expert knowledge) and process-history (data-driven) approaches [1–3]. Among rule-based methods, House et al. [8] wrote an expert rule set for AHUs, which Schein et al. [7] later consolidated as APAR. APAR consists of 28 if–then rules derived from mass and energy balances, evaluated separately in the heating, economiser, economiser-plus-mechanical-cooling and mechanical-cooling modes. It is transparent, it has been built into commercial controllers, and it is still the reference expert method. Its weaknesses are just as familiar. The rule thresholds need tuning for each building, the rules are switched off during mode transitions, several faults fire the same rules, and the method points to symptoms rather than to the faulty component. Model-based methods compare measurements with the output of physical or grey-box models [47, 48]. Wang and Xiao [48], for instance, applied principal component analysis (PCA) to AHU sensor data to detect and isolate sensor faults, and Li and Wen [47] combined PCA with wavelet transforms. These methods work well for sensor faults, but they need an accurate model or residual generator for every component.

2.2Data-driven and deep-learning FDD

The ASHRAE RP-1312 project [9] produced the experimental AHU dataset that is used most widely. It was collected on two identical AHUs at the Iowa Energy Center Energy Resource Station and has given rise to a large body of data-driven research. Classical classifiers such as support-vector machines, random forests [46] and gradient boosting, along with hybrid neural approaches such as neural networks combined with subtractive clustering [49], achieve high accuracy as long as training and test data come from the same season [5, 17]. Chakraborty and Elzarka [16] used XGBoost with a dynamic threshold for early fault detection, and Montazeri and Kargar [17] compared a range of data-driven methods on AHU data. Deep learning has since taken over. Lee et al. [11] applied deep neural networks to AHU FDD, Yan et al. [12] proposed unsupervised learning for detecting and diagnosing AHU faults, and Fan et al. [18] studied how semi-supervised neural networks behave on AHUs when labels are limited. Convolutional and recurrent architectures, CNN–LSTM models among them, capture the temporal signatures of faults and often report accuracies above 95% on benchmark data [4–6]. More recently, Granderson et al. [10] published the LBNL labelled datasets for single-duct and dual-duct AHUs and other HVAC systems running in faulted and fault-free states, which make it possible to evaluate methods across several fault severities and control sequences. Transformer encoders [34] model long-range dependencies through self-attention. That makes them well suited to AHU data, where control-loop interactions often stretch over tens of minutes, yet they have seldom been paired with interpretable boosting heads.

2.3Class imbalance, unseen faults and generalisation

In real buildings, fault-free operation far outweighs faulty operation, and some faults are rare. Re-sampling methods such as SMOTE [40] interpolate between minority samples and, in high-dimensional feature spaces, can create points that make no physical sense. Generative adversarial networks have been used to synthesise chiller fault data [13]. CTGAN [28] extends GANs to mixed-type tabular data with mode-specific normalisation and a conditional generator, but it has rarely been applied to AHU features. Loss-based remedies such as focal loss [29] give less weight to easy examples and focus learning on the hard, minority ones. A further problem is that a supervised classifier can only predict the classes it saw during training. Unsupervised detectors (PCA [48], isolation forests [44], one-class SVMs [45] and autoencoders) learn only normal behaviour and can therefore flag new faults, and variational autoencoders [25] offer a probabilistic reconstruction score [27]. AHU behaviour, however, is strongly multimodal: what counts as normal in economiser mode is abnormal in mechanical cooling. Conditional VAEs [26] that take the operating regime as a condition and embed physical constraints have not yet been tried for AHU detection. Lastly, most studies split windows at random, so windows from the same day end up in both training and test sets. Measuring true generalisation calls for day-wise splits, severity hold-outs and cross-building tests [6].

2.4Explainable AI for HVAC fault diagnosis

Explainable AI (XAI) methods are usually divided into model-specific and model-agnostic methods, and into local and global ones [50]. SHAP [19] brings several attribution methods together under the Shapley value [41]. TreeSHAP [20] calculates exact Shapley values for tree ensembles in polynomial time and also provides interaction values. LIME [21] fits a local linear surrogate around each prediction. For deep networks, Integrated Gradients [23] integrates gradients along a path from a baseline and satisfies completeness; DeepLIFT [24] and DeepSHAP pass contribution scores back layer by layer; expected gradients [42] average Integrated Gradients over a background distribution; and Grad-CAM [22] weights convolutional feature maps by their gradients. Within HVAC FDD, Srinivasan et al. [15] used XAI to build operator trust in chiller fault detection, Li et al. [14] proposed an explainable 1D-CNN for HVAC fault diagnosis based on gradient saliency, and Madhikermi et al. [51] applied LIME-style explanations to faults in AHU heat recovery. These studies show that explanations are valuable, but they judge them visually. In the wider XAI literature, deletion and insertion curves [36] are used to measure faithfulness, and robustness studies [37] have shown that LIME and gradient explanations can change a great deal for almost identical inputs.

2.5Research gaps

Table 1 summarises representative studies, and four gaps stand out. (G1) Detection and diagnosis are rarely combined. Supervised diagnosers cannot detect faults they have not seen, unsupervised detectors cannot isolate faults, and neither takes the AHU operating mode into account. (G2) Imbalance and severity shift are handled with generic re-sampling, and there is little evidence that the resulting models generalise to unseen severities or to other buildings. (G3) Explanations are post-hoc, work at a single level of granularity and are checked only visually; their faithfulness, stability and agreement with engineering knowledge are seldom measured. (G4) Explanations are not used to improve the diagnosis or to express confidence in it. SHAPE-FDNet was designed to address all four.

Table 1. Summary of representative AHU / HVAC FDD studies and the gaps addressed by SHAPE-FDNet.
Study Method Data Detects unseen faults Imbalance handling Explanation (validation)
Schein et al. [7] APAR expert rules (28 rules, 4 modes) Field AHUs Partly (sympto ms) – Rule trace (none)
Wang & Xiao [48] PCA, SPE/Qcontribution AHU simulation Yes (sensor faults) – Contribution plot (none)
Chakraborty & Elzarka [16] XGBoost + dynamic threshold RP-1312 No – None
Lee et al. [11] Deep neural network RP-1312 No – None
Yan et al. [12] Unsupervised clustering + classifier RP-1312 Partly – None
Yan et al. [13] GAN-augmented classifier Chiller RP-1043 No GAN synthesis None
Fan et al. [18] Semi-supervised neural networks AHU data No Few labels None
Li et al. [14] Explainable 1D-CNN HVAC data No – Gradient saliency (visual)
Srinivasan et al. [15] Classifier + XAI Chiller data No – Post-hoc XAI (visual)
RF-SHAP / XGB-LIME (baselines) Tree ensembles + SHAP / LIME Benchmark AHU No Class weights Feature level (visual)
SHAPE-FDNet (this work) Physics-aware cVAE + CNN-Transformer + LightGBM RP-1312 / LBNL SDAHU (real data) Yes (VAE + EC flag) Per-class CTGAN + focal loss Multi-granular SHAP + reasoner (faithfulness, stability, expert agreement)

3Proposed methodology

3.1Overview of SHAPE-FDNet

Figure 1 gives the overall architecture. Minute-level BAS trend data from the AHU are cut into overlapping windows and standardised using statistics from the building’s own fault-free operation. For each window we compute engineered statistics and APAR residuals. In Stage I, a physics-aware conditional VAE scores each window and, once persistence confirms it, raises an alarm whenever the score is above the threshold for the current mode. In Stage II, the hybrid 1D-CNN–Transformer encoder and the LightGBM head produce the class probabilities. A dual-evidence decision then weighs the VAE alarm against the normal-class posterior of the diagnostic head. For every alarm, the multi-granular SHAP layer computes attributions at the sensor, time and interaction levels, and the SHAP-Signature Reasoner compares them with the fault-fingerprint library. It returns the root cause, an explanation-confidence score and explanations for the operator. Figure 2–4 show the three main modules in detail.

Overall architecture of the proposed SHAPE-FDNet framework: BAS pre-processing, Stage I physics-aware conditional-VAE detection, Stage II CNN–Transformer/LightGBM diagnosis with CTGAN, focal loss and Optuna TPE, the multi-granular SHAP attribution layer, the SHAP-Signature Diagnostic Reasoner and the operator-facing outputs.
Figure 1. Overall architecture of the proposed SHAPE-FDNet framework: BAS pre-processing, Stage I physics-aware conditional-VAE detection, Stage II CNN–Transformer/LightGBM diagnosis with CTGAN, focal loss and Optuna TPE, the multi-granular SHAP attribution layer, the SHAP-Signature Diagnostic Reasoner and the operator-facing outputs.

3.2Problem formulation and pre-processing

Let s(t) ∈ Rc denote the vector of 𝐶 = 13 BAS point sampled at one-minute intervals:

outdoor-, return-, mixedand supply-air temperatures (OAT, RAT, MAT, SAT), the SAT set-point, the outdoor-air damper (OAD), cooling-coil valve (CCV) and heating-coil valve (HCV) commands, supplyand return-fan speeds (SFS, RFS), duct static pressure (DSP) and supply-and return-air flows (SAF, RAF). A window of length L ending at time t is, X = [s(t − L +1),......s(t)]T ∈ RLXC with 𝐿 = 30 min and a stride of 15 min. Each window carries a label y ∈{0,1,...K} , where 0 is fault-free and K =15 fault classes are considered, and an operating-mode distribution π ∈Δ4 over heating, economiser, economiser plus mechanical cooling and mechanical cooling.

Because sensor ranges and set-points differ between buildings, every channel is standardized with the mean 𝜇𝑐 and standard deviation σc of the building’s own fault-free training data (building-adaptive standardisation), which requires no fault labels:

x ̃ τ , c = x τ , c − μ c σ c , μ c = 𝔼 X ∈ D 0 [ x τ , c ] , σ c 2 = Var X ∈ D 0 [ x τ , c ] (1)

Where D0 is the set of fault-free training windows. For each window we compute 39 statistics (mean, standard deviation and least-squares slope of each channel), four mode fractions, and 16 APAR residual features r derived from the mass and energy balances of APAR [7]. The central residual is the outdoor-air-fraction residual, which compares the fraction implied by the temperatures with the fraction implied by the damper command:

r O A = 1 L ∑ τ = 1 L | R A T τ − M A T τ R A T τ − O A T τ − x o a ( O A D τ ) | , x o a ( u ) = η 0 + ( 1 − η 0 ) ( u 100 ) κ d (2)

evaluated only when | RAT − OAT | 20C , where η = 0.05 is the damper leakage fraction and 𝜅𝑑 = 0.85 the damper characteristic exponent. The other residuals capture the heating-mode supply/mixed-air temperature difference, the MAT–OAT difference in full-economiser operation, the SAT tracking error, valve saturation, simultaneous heating and cooling, control-loop hunting (valve direction reversals), MAT bound violations, the static-pressure error, the flow-per-fan-speed ratio, the return/supply flow ratio, apparent coil effectiveness and SAT oscillation. All engineered features are standardised with fault-free statistics, giving the feature vector.

3.3Stage I: Physics-aware, mode-conditioned VAE detector

The detector, shown in Figure 2, operates on the 55-dimensional window descriptor 𝐱 (statistics and APAR residuals) and is conditioned on c = [π , OAT ] . A conditional VAE [25, 26] introduces a latent variable z ∈ R8 with an encoder q (z | x, c) = N (μ , diagσ 2 ) and a Φ heteroscedastic Gaussian decoder pθ (x | z, c) = N (μ , diagσ 2 ) .

Architecture of the Stage I physics-aware, operating-mode-conditioned variational autoencoder detector, its training objective and the on-line scoring and alarm logic.
Figure 2. Architecture of the Stage I physics-aware, operating-mode-conditioned variational autoencoder detector, its training objective and the on-line scoring and alarm logic.
ℒ E L B O ( φ , θ ) = 𝔼 q φ ( z | x , c ) [ log p θ ( x | z , c ) ] − β D K L ( q φ ( z | x , c ) ‖ N ( 0 , 1 ) ) (3)

with the KL weight 𝛽 annealed linearly from 0 to 1 over 30 epochs.

Physics-aware regularisation. The reconstruction must respect the steady-state energy balance of the mixing box. With hatted quantities denoting de-standardised reconstructed means, the physics residual and the total loss are,

ρ ( x ) = | M A T ̂ − x o a ( O A D ) O A T ̂ − ( 1 − x o a ( O A D ) ) R A T ̂ | − Δ T max (4)
ℒ V A E = − ℒ E L B O + λ p h 𝔼 [ ρ ( x ) 2 ] (5)

where 𝛥𝑇mix accounts for duct heat gain and λph = 1. The penalty keeps the learned normal manifold physically consistent, so that windows in which the temperatures and the damper command disagree the signature of damper, MAT-sensor and economiser faults lie far from it.

Anomaly score and adaptive thresholds. The anomaly score is the negative Monte-Carlo reconstruction probability [27]:

s ( x ) = − 1 N M C ∑ l = 1 N M C log p θ ( x | z ( l ) , c ) , z ( l ) ~ q φ ( z | x , c ) , N M C = 16 (6)

Because the variability of normal operation differs between modes, a separate threshold is estimated for each dominant mode 𝑚 as the 𝑞-quantile of the scores of fault-free validation windows in that mode, and an exponentially weighted persistence filter suppresses isolated exceedances:

τ m = Q q ( { s ( x ) : x ∈ V 0 , m ( x ) = m } ) , e t = 1 2 e t − 1 + 1 2 1 [ s ( x t ) > τ m ( t ) ] , A t = 1 [ e t ≥ 0.5 ] (7)

Here V0 denotes the fault-free validation windows and At is the confirmed alarm.

detector uses no fault labels and therefore responds to any departure from normal behaviour, including fault types absent from the training data.

3.4Stage II: Hybrid 1D-CNN–Transformer encoder and LightGBM head

Figure 3 depicts the hybrid 1D-CNN–Transformer encoder integrated with CTGAN-based imbalance handling and a LightGBM diagnosis head. The architecture combines temporal embeddings with engineered AHU features to improve fault classification through feature fusion, minority-class augmentation, and fidelity filtering. Optuna TPE jointly optimizes model hyperparameters and decision thresholds to enhance diagnostic performance.

Architecture of the Stage II diagnosis model.
Figure 3. Architecture of the Stage II diagnosis model.
h τ ( l ) = GELU ( BN ( ∑ j = − 2 2 W j ( 1 ) x τ + j + b ( 1 ) ) ) (8)

A learnable positional encoding is added and N Transformer encoder layers [34] model long-range interactions between control loops through multi-head self-attention:

Attn ( Q , K , V ) = softmax ( Q K T d k ) V (9)

Mean and max pooling over time are concatenated and projected to the embedding e = gψ (X ) ∈ R64 .

Focal-loss training. The encoder is trained with an auxiliary softmax head using the focal loss [29], which down-weights well-classified windows and focuses learning on hard and minority faults:

ℒ F L = − 1 n ∑ i = 1 n α y i ( 1 − p i , y i ) γ log p i , y i , α k = ( n ̅ n k ) 1 / 2 (10)

where 𝑝𝑖,𝑦 is the predicted probability of the true class, γ is the focusing parameter, and ak is a class weight computed from the class frequency nk ( n is the mean class count).

Feature fusion and CTGAN augmentation. The diagnostic representation is the fusion z = [e || f ]∈ R . Minority fault classes are augmented with Conditional Tabular GANs [28]. To keep the generator well-posed for small classes, the fused training features are whitened and projected onto a 24-component PCA latent, a CTGAN is trained per minority class in that latent space, and generated samples are mapped back. The CTGAN generator G and critic D are trained with the conditional WGAN-GP objective with PacGAN packing of 10 samples:

min G max D 𝔼 u ~ p d a t a [ D ( u ) ] − 𝔼 ξ ~ N [ D ( G ( ξ , k ) ) ] − λ g p 𝔼 u ̂ ~ U [ ( ‖ ∇ D ( u ̂ ) ‖ 2 − 1 ) 2 ] (11)

Where k is the conditional vector and u is sampled on lines between real and generated points. Every synthetic sample z of class k passes a fidelity filter: it is kept only if a random forest trained on the real data assigns PRF (k | z) ≤ 0.25 . Minority classes are up-sampled to 50% of the largest fault class.

LightGBM head. A LightGBM [30] multiclass model with class-balanced weights is trained on the real and filtered synthetic fused features. At boosting iteration m , the model Fm = F m−1+vfm adds a leaf-wise grown tree that maximises the split gain

G = 1 2 [ G L 2 H L + λ + G R 2 H R + λ − ( G L + G R ) 2 H L + H R + λ ] , G * = ∑ i ∈ I * g i , H * = ∑ i ∈ I * h i (12)

where 𝐼𝐿 and 𝐼𝑅 are the instances in the left and right child, 𝑔𝑖 and ℎ𝑖 are the first and second derivatives of the multiclass log-loss and λ is the L2 penalty. The head outputs P(k / z) = soft maxk (F(z)).

Dual-evidence decision. The VAE alarm and the supervised head are combined so that faults masked in the VAE descriptor but recognised by the head are not lost, while windows without evidence from either source are declared fault-free:

y ̂ = { ℛ ( X ) , if A t = 1 or P ( 0 | z ) < 1 − τ n 0 , otherwise (13)

where ℛ(⋅) denotes the SHAP-Signature Reasoner of the SHAP-Signature Diagnostic Reasoner.

Joint Bayesian optimisation. The encoder width 𝑑, the number of Transformer layers 𝑁, the focal parameter 𝛾 and the learning rate, the LightGBM hyperparameters, the detector quantile 𝑞 and the decision threshold 𝜏𝑛 are tuned jointly with Optuna [32] using the Tree-structured Parzen Estimator [33]. TPE models the densities of good and bad configurations, l(v) = p(v | y y*) and g(v) = p(v) | y ≥ y*) and proposes the candidate that maximises the expected improvement, which is monotone in their ratio:

E I y * ( v ) ∝ ( ζ + g ( v ) l ( v ) ( 1 − ζ ) ) − 1 , v * = arg max v E I y * ( v ) (14)

where 𝑦 is the validation loss (negative macro-F1), y* its 𝜁-quantile (ξ = 0.25) and 𝛝 the hyperparameter vector. The reasoner weight 𝛼 is selected afterwards on validation alarms.

3.5Multi-granular SHAP attribution layer

Figure 4 depicts the multi-granular SHAP attribution layer and the SHAP-Signature Diagnostic Reasoner: exact TreeSHAP values from the LightGBM head for the alarmed window are mapped through the feature-to-sensor allocation matrix and refined with IG/DeepSHAP and SHAP interaction values into a sensor × time attribution map.

Feature level (TreeSHAP). For a fused input z and class k , the Shapley value [41] of feature 𝑗 distributes the model output fairly among the features:

φ k , j ( z ) = ∑ S ⊆ F ⧵ { j } | S | ! ( | F | − | S | − 1 ) ! | F | ! [ v k ( S ∪ { j } ) − v k ( S ) ] (15)
Multi-granular SHAP attribution layer (TreeSHAP, IG/DeepSHAP chain rule, sensor aggregation and interaction values) and the SHAP-Signature Diagnostic Reasoner with explanation-confidence scoring.
Figure 4. Multi-granular SHAP attribution layer (TreeSHAP, IG/DeepSHAP chain rule, sensor aggregation and interaction values) and the SHAP-Signature Diagnostic Reasoner with explanation-confidence scoring.

With vk(S) = E[Fk(z) | zS]. TreeSHAP [20] computes these values exactly for the LightGBM head, and they satisfy local accuracy:

F k ( z ) = φ k , 0 + ∑ j ∈ F φ k , j ( z ) = φ k , 0 + Φ k , ε + Φ k , e n g (16)

which splits the explanation into an embedding part Φk,ε and an engineered-feature part Φk,eng.

Sensor and time level (Integrated Gradients and DeepSHAP chain rule). The embedding attributions are propagated back through the encoder to the raw sensor-by-time input. Let 𝐗′ be a mode-matched fault-free reference window. For each embedding unit 𝑒𝑗 we define the chain

weight wk,j = φk,j / (ej(X) − ej(X′)) and the scalar function hk(X) = ∑j wk,j ej(X). Integrated Gradients [23] of hk give the following:

Φ k , τ c I G = ( x ̃ τ c − x ̃ τ c ′ ) ∫ 0 1 ∂ h k ( X ′ + a ( X − X ′ ) ) ∂ x ̃ τ c d a (17)

By the linearity and completeness axioms of Integrated Gradients, ∑τ,c ΦIGk,τc = ∑j∈ε φk,j, so the TreeSHAP budget of the embedding is redistributed exactly over sensors and time steps—the same modular composition principle that underlies DeepSHAP. The DeepSHAP estimate replaces the single reference by an expectation over a background set ℬ of fault-free windows (expected gradients [42]):

Φ k , τ c D S = 𝔼 X ′ ~ B , a ~ U ( 0 , 1 ) [ ( x ̃ τ c − x ̃ τ c ′ ) ∂ h k ( X ′ + a ( X − X ′ ) ) ∂ x ̃ τ c ] (18)

The sensor-by-time map is Φk = ½(ΦIGk + ΦDSk) for offline analysis; the on-line reasoner uses ΦIGk for speed.

Sensor-level aggregation. Engineered features are allocated to the sensors from which they are computed by a feature-to-sensor matrix 𝐌 ∈ ℝ59×13 (each row sums to one; for example, 𝑟OA is shared among MAT, OAT, RAT and OAD). The sensor-level attribution of class 𝑘 is

a k ( X ) = φ k , e n g T M + ∑ τ = 1 L Φ k , τ ∈ ℝ 13 (19)

which remains additive: its elements sum to 𝐹𝑘(𝐳) − 𝜙𝑘,0.

3.6SHAP-Signature diagnostic reasoner

The reasoner turns attributions into a diagnostic instrument. A fault-fingerprint library is built from validation windows that the head diagnoses correctly. For class k with such windows 𝒱𝑘, the fingerprint is the normalised mean of the normalised attribution vectors:

F k = a ̅ k ‖ a ̅ k ‖ 2 , a ̅ k = 1 | V k | ∑ X ∈ V k a k ( X ) ‖ a k ( X ) ‖ 2 (20)

For an alarm, the three most probable classes C3 of the LightGBM head are re-ranked by a fusion of probability and signature similarity:

s k ( X ) = α P ( k | z ) + ( 1 − α ) max ( 0 , a k ( X ) T F k / ‖ a k ( X ) ‖ 2 ) (21)

The root-cause component is read from the dominant entries of ak(X). Finally, the explanation confidence combines how well the alarm matches its own signature with how distinct that match is from the closest competing signature.

3.7Quantitative explanation validation

A U C d e l = 1 c ∑ k = 0 c − 1 p k + p k + 1 2 , p k = P ( y ̂ | X ( − k ) ) (22)

Explanations are evaluated with three metrics. Faithfulness [36] is measured with deletion and insertion curves: sensors are removed (replaced by their fault-free references) or inserted into a fully fault-free window in order of decreasing |𝑎𝑐|, the probability of the explained class is recorded after each step, and the area under the curve is computed:

where 𝐗(−𝑘) is the window with its top-𝑘 sensors removed; a faithful explanation gives a low deletion AUC and a high insertion AUC. Stability is the cosine similarity between the attribution vectors of two neighbouring windows Xt and Xt+1 of the same fault episode, and

expert agreement is the precision of the top-3 sensors against the expert symptom set εy derived from APAR and fault physics.

4Datasets and experimental setup

4.1Dataset description

We train and evaluate SHAPE-FDNet on two publicly available benchmark AHU fault datasets, and all results reported in this paper are obtained on the recorded data of these datasets; no simulated operating data are used. One dataset supplies controlled experimental faults; the other covers a wider fault space and lets us test generalisation across datasets. Dataset D1 is the ASHRAE RP-1312 experimental dataset [9]. The data were collected at the Iowa Energy Center Energy Resource Station on pairs of identical AHUs over summer, winter and spring test seasons, with a faulty and a fault-free unit running side by side at 1-minute resolution. Dataset D2 is the single-duct AHU (SDAHU) dataset of the LBNL Fault Detection and Diagnostics Datasets [10], which provides labelled fault scenarios at several severity levels alongside fault-free baselines. Both datasets were taken from their published archives, and the recorded trends were used without modification. In both, each fault was imposed at the point where it physically acts (in the plant, the actuators, the sensors or the controller), so the closed-loop controller responds to it and partly masks it, as it would in normal building operation. To evaluate both datasets with a common taxonomy, the BAS points of each archive were mapped to the 13 channels of the problem formulation and the labelled fault scenarios to the 15 fault classes and three severity levels of Table 3. The only synthetic samples in the study are the CTGAN-generated minority-class training features described in the feature-fusion and CTGAN section; they are used for training only, and all validation and test results are computed exclusively on real data windows.

The two datasets differ substantially in configuration, control sequence and climate (Table 2). D1 has a fixed SAT set-point of 12.8 °C, 20% minimum outdoor air and a static-pressure set-point in inch of water column. D2 resets the SAT from 12.8 to 17 °C according to outdoor temperature and has 30% minimum outdoor air, a static-pressure set-point of 250 Pa, a warmer climate, different economiser limits, a larger coil and fan, and a higher sensor-noise level. Each dataset holds 54 fault-free days (18 per season) and 405 faulty days (15 faults × 3 severities × 3 seasons × 3 test days). We analyse the occupied period from 07:00 to 19:00, which yields 47 windows per day and 21,573 windows per dataset. Table 3 lists the fault taxonomy, the severity levels and the expert symptom sets used to validate the explanations.

Table 2. Description of the two real benchmark AHU datasets used in this study.
Property D1 – ASHRAE RP-1312 (experimental data) D2 – LBNL SDAHU dataset
Source facility Iowa Energy Resource Station, paired identical AHUs LBNL single-duct VAV AHU (multi-severity)
Seasons (mean OAT, °C) Summer 26.5, Spring 14.0, Winter −2.0 Summer 30.0, Spring 18.0, Winter 6.0
Sampling / analysed period 1 min / 07:00– 19:00 1 min / 07:00– 19:00
BAS points 13 (OAT, RAT, MAT, SAT, SAT-SP, OAD, CCV, HCV, SFS, RFS, DSP, SAF, RAF) same 13 points
SAT control fixed set-point 12.8 °C reset 12.8–17 °C on OAT
Minimum outdoor air 20% 30%
Static-pressure setpoint 1.0 in. w.c. 250 Pa
Economiser limits (°C) 6.0 / 16.5 / 22.0 8.0 / 18.0 / 24.0
Relative coil / fan capacity, sensor noise 1.30 / 1.00, ×1.0 1.45 / 1.25, ×1.4
Fault types × severities 15 × 3 (low, medium, high) 15 × 3 (low, medium, high)
Days (fault-free / faulty) 459 (54 / 405) 459 (54 / 405)
Windows (L = 30 min, stride 15 min) 21,573 21,573
Train / validation / test windows 3,962* / 6,768 / 7,050 3,962* / 6,768 / 7,050
Minute-level records 330,480 330,480

Note: *After long-tail sub-sampling of fault classes (fault-free:smallest class = 33.6:1). Splits are by day; no day contributes to more than one split.

Table 3. Fault taxonomy, injected severity levels (low/medium/high) and expert symptom sensors.
Fault group Code Fault Severity levels (low/medium/high) Expert symptom sensors
Dampers DMP-SO DMP-SC DMP-LK OA damper stuck open OA damper stuck closed OA damper leakage stuck at 45/70/100% open stuck at 12/6/0% open +10/20/35% leakage flow OAD, MAT, OAT, CCV OAD, MAT, OAT MAT, OAD, OAT
Valves CCV-ST CCV-LK HCV-LK Cooling-coil valve stuck Cooling-coil valve leakage Heating-coil valve leakage stuck at 15/40/65% 8/15/25% leakage 8/15/25% leakage CCV, SAT, HCV CCV, SAT, HCV HCV, SAT, CCV
Heat exchangers CC-FA CC-FW Cooling-coil fouling (air side) Cooling-coil fouling (water side) 12%/24%/38% UA loss + Δp 15%/30%/45% UA loss CCV, DSP, SFS, SAT CCV, SAT, MAT
Fans SF-DG RF-FL Supply-fan degradation Return-fan failure max speed 88%/76%/62% speed 70%/40%/5% of command SFS, DSP, SAF RFS, RAF, MAT
Sensors SAT-B MAT-B SP-DR SAT sensor bias MAT sensor bias Static-pressure sensor drift +1.0/2.0/3.5 °C +1.5/3.0/4.5 °C drift to +10%/20%/35% of set-point SAT, CCV, MAT MAT, OAD, RAT DSP, SFS, SAF
Control CTL-UN ECO-IN Unstable SAT control loop Incorrect economiser sequence PI gain ×3/5/8 partial / no econ. / reversed CCV, SAT, HCV OAD, MAT, CCV, OAT

4.2Data splits and imbalance protocol

We split by test day rather than by random window, so no single day appears in both training and testing. For each combination of season, fault and severity, the first test day goes to training, the second to validation and the third to testing; the fault-free days are split 10/3/5 in each season. To mimic the imbalance of real buildings, we keep every fault-free training window but sub-sample the training windows of each fault class along a geometric long-tail profile, retaining between 100% and 10% of them. The training set that results has 3,962 windows. Of these, 1,410 are fault-free, and the smallest fault class has just 42 windows (an imbalance ratio of 33.6:1). The validation (6,768 windows) and test (7,050 windows) sets are left intact. Severity-level hold-outs (training on low and high severity, testing on medium) check how well the models generalise to fault intensities they have not seen. An unseen-fault hold-out removes three fault classes (damper leakage, water-side coil fouling and static-pressure sensor drift) from training. Cross-dataset experiments train on D1 and test on D2, and the other way round, to measure transfer between buildings and control sequences. In this setting the target building supplies only unlabelled fault-free data, which are used for building-adaptive standardisation (Equation (1)) and for the detector thresholds.

4.3Comparative techniques and ablations

We compare SHAPE-FDNet with four techniques that cover the main families of explainable FDD. APAR, the AHU Performance Assessment Rules, is the expert rule-based method; its rule tolerances are calibrated on the 0.5th and 99.5th percentiles of fault-free training data and combined with an ordered expert decision list. RF-SHAP is a random forest (300 trees, depth 18, balanced class weights) trained on the 59 engineered features and explained with TreeSHAP.

XGBoost-LIME is an XGBoost [31] classifier (400 trees, depth 6, balanced sample weights) on the same features, explained with LIME (800 perturbation samples per instance). CNN-LSTM-Grad-CAM is a convolutional–LSTM [35] network on the raw windows, explained with Grad-CAM combined with gradient × input. For the detection stage we add comparisons with PCA (𝑇2 + SPE), Isolation Forest [44], one-class SVM [45] and a deterministic autoencoder, all trained on the same fault-free descriptors and thresholded at the same validation quantile. The ablations remove, one at a time, the VAE detector, CTGAN augmentation, the APAR residual features, the SHAP-Signature Reasoner, the Transformer (leaving a CNN-only encoder) and the focal loss (replaced by cross-entropy). For detection, they also remove the physics penalty and the mode conditioning.

4.4Implementation details

Every model was implemented in Python 3 using PyTorch, LightGBM, XGBoost, scikit-learn, SHAP, LIME, CTGAN and Optuna, and run on a two-core CPU with no GPU acceleration, which is typical of an edge analytics server in a building. The VAE (hidden sizes 96 and 48, latent dimension 8) is trained for 120 epochs with Adam (learning rate 2 × 10−3). The encoder is trained for 14 epochs with AdamW, a one-cycle learning-rate schedule, a batch size of 128 and Gaussian jitter augmentation. Each CTGAN is trained for 300 epochs. Integrated Gradients uses 8 integration steps on-line and 16 offline, and DeepSHAP uses 8 background references with 6 steps each. The joint Optuna search ran 40 TPE trials (including 10 random start-up trials) on the D1 validation set, and the best configuration was then applied unchanged to both datasets. For the main comparison we report the mean ± standard deviation over three random seeds. Table 4 lists the search space and the selected values.

Table 4. Joint Optuna TPE search space and selected configuration (40 trials, validation macro-F1).
Component Hyperparameter Search space Selected
Encoder Model width d Transformer layers N Focal parameter γ Learning rate {32, 64} {1, 2} {1, 2, 3} {1×10⁻³, 3×10⁻³} 64 1 2 3e03
LightGBM head Number of leaves Learning rate Number of trees Min. child samples Column subsample L2 penalty λ [15, 63] [0.02, 0.2] (log) [150, 600] [5, 40] [0.4, 1.0] [10⁻³, 10] (log) 61 0.035 250 40 0.97 0.008
Decision VAE threshold quantile q Dual-evidence τ_n Reasoner weight α [0.95, 0.999] [0.30, 0.95] {0, 0.2, …, 1} (grid) 0.966 0.625 0.9
Fixed Window / stride; VAE latent; IG steps CTGAN epochs; PCA latent; fidelity threshold – – 30 / 15 min; 8; 8 300; 24; 0.25

5Results and discussion

This section presents the results against the study’s five objectives: (O1) label-free, mode-aware fault detection; (O2) accurate diagnosis under class imbalance; (O3) generalisation to unseen severities, unseen faults and other buildings; (O4) explanations that are faithful, stable and consistent with expert knowledge and that support the diagnosis; and (O5) real-time feasibility. Unless we say otherwise, values are test-day results averaged over three seeds, and the explanation analyses use the seed-0 models.

5.1Data characteristics and the normal-operation manifold

Figure 5 describes the data the framework has to deal with. Figure 5(a) compares a fault-free winter day with a day on which the outdoor-air damper is stuck closed. The controller drives the damper fully open to try to pull the mixed-air temperature down to set-point, but the MAT stays near the return-air temperature and the supply air ends up several degrees too warm. The fault shows up as a mismatch between the damper command and the temperatures, not as a value out of range. That is why simple limit checks miss it, and why the APAR outdoor-air-fraction residual (Eq.

(2)) and the physics penalty of the VAE (Equation (4)) carry useful information. Figure 5(b) shows how much the mix of operating modes changes between seasons and buildings. D1 winter is almost all heating mode and D1 summer almost all mechanical cooling, while spring and D2 winter switch between economiser modes during the day. Figure 5(c) shows the long-tail training distribution (imbalance ratio 33.6:1) together with the samples accepted from the per-class CTGANs. Depending on the class, the fidelity filter accepted anything from 0% to 100% of the generated samples. Samples for faults with a distinctive signature, such as return-fan failure, were nearly always accepted. For subtle faults such as the incorrect economiser sequence, the generator could not produce convincing samples, and the fallback rule kept only the decile most faithful to the class. Figure 5(d) projects the VAE latent means of fault-free windows onto their first two principal components. Normal windows form separate clusters that depend on the mode, and faulty windows scatter around and between them. This multimodality is the reason for the mode conditioning and for the mode-specific thresholds in Equation (7).

Data characteristics: (a) BAS trajectories of a fault-free winter day and a day with the outdoor-air damper stuck closed (D1); (b) operating-mode composition per season and dataset; (c) long-tailed training class distribution with accepted CTGAN samples; (d) VAE latent space of fault-free windows coloured by operating mode, with faulty windows in grey.Data characteristics: (a) BAS trajectories of a fault-free winter day and a day with the outdoor-air damper stuck closed (D1); (b) operating-mode composition per season and dataset; (c) long-tailed training class distribution with accepted CTGAN samples; (d) VAE latent space of fault-free windows coloured by operating mode, with faulty windows in grey.Data characteristics: (a) BAS trajectories of a fault-free winter day and a day with the outdoor-air damper stuck closed (D1); (b) operating-mode composition per season and dataset; (c) long-tailed training class distribution with accepted CTGAN samples; (d) VAE latent space of fault-free windows coloured by operating mode, with faulty windows in grey.Data characteristics: (a) BAS trajectories of a fault-free winter day and a day with the outdoor-air damper stuck closed (D1); (b) operating-mode composition per season and dataset; (c) long-tailed training class distribution with accepted CTGAN samples; (d) VAE latent space of fault-free windows coloured by operating mode, with faulty windows in grey.
Figure 5. Data characteristics: (a) BAS trajectories of a fault-free winter day and a day with the outdoor-air damper stuck closed (D1); (b) operating-mode composition per season and dataset; (c) long-tailed training class distribution with accepted CTGAN samples; (d) VAE latent space of fault-free windows coloured by operating mode, with faulty windows in grey.

5.2Fault detection performance (O1)

Table 5 and Figure 6 compare the detection stage with the classical one-class detectors. The physics-aware conditional VAE achieves an AUC of 0.885 on D1 and 0.901 on D2. This is clearly higher than PCA (𝑇2+SPE), the deterministic autoencoder, the one-class SVM and the APAR rules, and far higher than the Isolation Forest, which sees almost nothing at the operating threshold. With the false-alarm rate fixed at 5%, the VAE detects 72.0% of faulty windows on D1 and 72.9% on D2, whereas PCA detects 56.2% and 49.1%. The ROC curves in Figure 6(a) confirm that the advantage holds across the whole low-false-alarm region (inset).

The individual design choices inside the detector matter less than the gap between it and the classical detectors. An unconditioned VAE with one global threshold reaches practically the same AUC (0.889 on D1), and at very low false-alarm rates its ROC curve sits slightly above that of the conditioned model. At the operating threshold chosen by the joint optimisation (𝑞 = 0.966), the mode-specific thresholds lift the window-level detection rate from 70.6% to 76.3% and the share of faulty test days detected from 86% to 91%. They also push the false-alarm rate from 2.2% up to 6.1%, because quantiles estimated per mode from fewer fault-free windows are less conservative than one pooled quantile. In other words, mode conditioning shifts the operating point rather than improving the underlying separability, and in a deployment one would pick 𝑞 to match the alarm budget that can be tolerated. The physics penalty makes no measurable difference to the AUC (0.885 without it). We put this down to the APAR residuals in the descriptor, which already capture the mixing-box balance.

Table 5. Fault-detection performance on the test days. AUC, DR (detection rate), FAR (false-alarm rate, %) and days detected (%) are means over three seeds at each detector's operating threshold; DR@5% is the window-level detection rate at a matched 5% false-alarm rate (seed 0).
D etector D1 (RP-1312) D2 (LBNL SDAHU)
AU C DR @5 % DR FA R Day s AU C DR @5 % DR FA R Day s
APAR rules 0.76 0 0.49 6 0.44 4 3.3 69 0.76 7 0.50 3 0.42 4 2.4 75
PCA (T2+SPE) 0.82 2 0.56 2 0.55 0 4.5 79 0.81 2 0.49 1 0.49 6 5.4 81
Isolation Forest 0.67 4 0.07 7 0.05 5 3.2 67 0.64 7 0.07 1 0.08 4 5.9 76
One-class SVM 0.80 0 0.57 5 0.53 7 2.1 76 0.80 6 0.55 1 0.58 0 6.7 89
Autoencoder 0.83 1 0.56 8 0.55 1 3.1 78 0.82 9 0.56 2 0.57 0 6.0 88
VAE (unconditioned, 0.88 0.74 0.70 2.2 86 0.90 0.74 0.76 7.4 95
global threshold) 9 8 6 2 1 4
VAE (no physics) 0.88 5 0.71 9 0.75 8 6.1 91 0.90 2 0.74 1 0.79 6 7.8 96
SHAPE-FDNet detector 0.88 0.72 0.76 6.1 91 0.90 0.72 0.79 7.7 97
(physics-aware cVAE) 5 0 3 1 9 4

Figure 6(b) shows the adaptive threshold at work on a spring day with an incorrect economiser sequence. While the AHU runs in economiser modes, the anomaly score is more than ten times the threshold. Around midday, during the mechanical-cooling period when the economiser is rightly inactive, the score drops back under the mechanical-cooling threshold. This is physically correct: in that mode the fault produces no symptom, so no alarm should be raised. The ridgeline plot in Figure 6(c) shows that valve and fan faults sit several orders of magnitude away from fault-free operation, while damper, sensor, heat-exchanger and control faults partly overlap with the normal score distribution. Figure 6(d) splits the detection and false-alarm rates by mode. Our detector has the highest detection rate in heating and mechanical cooling and matches the unconditioned VAE in the two economiser modes. Its false alarms, however, are concentrated in mechanical cooling (11.1%), where coil load varies most on hot afternoons. This is the detector’s main weakness, and load-conditioned thresholds are a possible fix. Figure 6(e) shows that most faulty days are confirmed within the first window (30 min) and that our detector misses the fewest days. Figure 6(f) gives the detection rate for each fault. Faults that alter the energy balance or the air flow (stuck dampers, stuck or leaking valves, fan faults, MAT bias) are caught in almost every window. Damper leakage, water-side coil fouling, static-pressure drift and the incorrect economiser sequence are detected only in the modes where they cause a symptom, so their window-level detection rates remain between 34% and 62%.

Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.
Figure 6. Fault-detection results on D1: (a) ROC curves of all detectors with low-false-alarm inset; (b) anomaly score and mode-specific thresholds over an economiser-fault day (shaded: confirmed alarms; bottom strip: operating mode); (c) score distributions per fault group; (d) detection and false-alarm rates per operating mode; (e) detection-delay distribution per detector; (f) per-fault alarm rate of all detectors.

5.3Fault diagnosis performance (O2)

Tables 6(a) and 6(b) summarise the results for 16-class diagnosis. SHAPE-FDNet reaches a macro-F1 of 0.755 and a Matthews correlation coefficient (MCC) [39] of 0.738 on D1, and a macro-F1 of 0.718 and an MCC of 0.698 on D2. Compared with the strongest baseline on each dataset, this is a gain of 7.9 macro-F1 points on D1 (over XGBoost-LIME) and 6.5 points on D2 (over CNN-LSTM-Grad-CAM), and the standard deviation across seeds stays below 0.02. Used as a diagnoser, the APAR rule set manages a macro-F1 of only 0.284. Its rules pick up symptoms reliably, but many faults fire the same rules (the cooling-valve and SAT-sensor rules, for example), and the ordered decision list has no way to tell them apart. The tree ensembles trained on the same engineered features (RF-SHAP, XGBoost-LIME) do much better than APAR, and the CNN-LSTM, which works on the raw windows, is on a par with them. SHAPE-FDNet, which combines the temporal embedding with the physics-derived residuals, comes out best on every summary metric for both datasets. The absolute scores are lower than the almost perfect accuracies often reported for RP-1312. We expected this, since our protocol is harder by design: windows last only 30 min, the training data are imbalanced 33.6:1, every split is by day, and the test set includes low-severity faults and modes in which several faults show no symptom at all.

Table 6. (a). Diagnosis performance on D1 test days, 16 classes (mean ± std over three seeds).
Method Accuracy Balanced acc. MacroF1 MCC
APAR 0.320 ± 0.000 0.293 ± 0.000 0.284 ± 0.000 0.310 ± 0.000
RF-SHAP 0.614 ± 0.002 0.603 ± 0.002 0.613 ± 0.002 0.602 ± 0.002
XGBoostLIME 0.669 ± 0.001 0.659 ± 0.001 0.676 ± 0.001 0.660 ± 0.001
CNN-LSTM-GradCAM 0.641 ± 0.008 0.628 ± 0.009 0.618 ± 0.014 0.630 ± 0.008
SHAPE-FDNet 0.747 ± 0.004 0.741 ± 0.003 0.755 ± 0.004 0.738 ± 0.004
Table 6. (b). Diagnosis performance on D2 test days, 16 classes (mean ± std over three seeds).
Method Accuracy Balanced acc. MacroF1 MCC
APAR 0.289 ± 0.000 0.260 ± 0.000 0.244 ± 0.000 0.274 ± 0.000
RF-SHAP 0.599 ± 0.001 0.588 ± 0.001 0.592 ± 0.001 0.583 ± 0.001
XGBoostLIME 0.640 ± 0.000 0.628 ± 0.000 0.648 ± 0.000 0.628 ± 0.000
CNN-LSTM-GradCAM 0.655 ± 0.008 0.643 ± 0.008 0.653 ± 0.005 0.643 ± 0.010
SHAPE-FDNet 0.709 ± 0.003 0.701 ± 0.003 0.718 ± 0.003 0.698 ± 0.003

The confusion matrices in Figure 7(a) and (b) show where the remaining errors are, and nearly all of them fall in two places. The first is the fault-free column. Damper leakage, cooling-valve leakage, water-side coil fouling and the incorrect economiser sequence are predicted as normal in the modes where they are dormant; this is the diagnostic side of the low window-level detection rates in Figure 6(f). The second is a handful of physically related pairs, such as heating-valve leakage and air-side coil fouling, or water-side and air-side fouling. Figure 7(c) gives the macro-F1 and MCC of every method with its seed variability, and Figure 7(d) and Table 7 give the recall for each class. Most of the gain of SHAPE-FDNet over the best baseline comes from the MAT-sensor bias (+0.14 recall on D1), heating-valve leakage (+0.14), water-side fouling (+0.12) and supply-fan degradation (+0.10). These faults reveal themselves through the temporal response of the loops rather than through window averages. SHAPE-FDNet is, on the other hand, slightly worse than the best baseline on the unstable control loop and the fault-free class, and on D2 also on the stuck-open damper. Its greater sensitivity to subtle faults therefore costs a few more fault-free windows being diagnosed as faulty. The t-SNE map of the encoder embeddings in Figure 7(e) shows that the encoder by itself already separates most fault classes into tight clusters, with the dormant-mode windows of the subtle faults blended into the fault-free cloud. Figure 7(f) shows that spring, the season with the most mode switching, is the hardest on both datasets (macro-F1 0.665 on D1 and 0.646 on D2), and summer is the easiest.

Table 7. Per-class recall on the test days (mean of three seeds).
Class D1 D2
RF-SHAP XGB-LIME CNN-LSTM SHAP E RF-SHAP XGB-LIME CNN-LSTM SHAP E
NORMAL 0.89 0.92 0.95 0.90 0.87 0.92 0.95 0.91
DMP-SO 0.78 0.76 0.63 0.75 0.76 0.76 0.57 0.61
DMP-SC 0.87 0.87 0.93 0.93 0.85 0.86 0.85 0.89
DMP-LK 0.28 0.39 0.08 0.42 0.17 0.33 0.19 0.43
CCV-ST 0.96 0.96 0.91 0.93 0.92 0.90 0.88 0.89
CCV-LK 0.17 0.31 0.25 0.36 0.18 0.20 0.18 0.22
HCV-LK 0.26 0.40 0.39 0.54 0.11 0.45 0.59 0.64
CC-FA 0.81 0.97 0.96 0.96 0.91 0.95 1.00 1.00
CC-FW 0.20 0.27 0.17 0.39 0.27 0.29 0.33 0.36
SF-DG 0.65 0.71 0.82 0.93 0.77 0.79 0.84 0.88
RF-FL 1.00 1.00 0.97 0.99 1.00 1.00 0.99 1.00
SAT-B 0.78 0.78 0.95 0.97 0.71 0.68 0.91 0.94
MAT-B 0.51 0.66 0.58 0.80 0.41 0.52 0.46 0.70
SP-DR 0.36 0.42 0.82 0.85 0.44 0.47 0.81 0.83
CTL-UN 0.88 0.92 0.55 0.85 0.61 0.56 0.44 0.53
ECO-IN 0.26 0.22 0.09 0.27 0.42 0.37 0.29 0.39
Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.
Figure 7. Fault-diagnosis results: row-normalised confusion matrices of SHAPE-FDNet on (a) D1 and (b) D2; (c) macro-F1 and MCC of all methods (mean ± std, three seeds); (d) per-class recall on D1; (e) t-SNE of the CNN–Transformer embeddings of D1 test windows; (f) seasonal macro-F1 of SHAPE-FDNet.

5.4Robustness to imbalance, severity and domain shift (O3)

Imbalance. Figure 8(a) plots the per-class F1 of each fault on D1 against the number of real training windows in that class, with segments linking the model without CTGAN to the full model; 6 of the 10 augmented classes get better. Even so, the overall effect of the imbalance remedies is small and depends on the dataset (Table 11). On D1, CTGAN adds 0.1 macro-F1 points and the focal loss 1.0. On D2, whose hyperparameters were not tuned separately, taking out either component slightly improves macro-F1 (by 0.6 and 0.8 points, respectively). The class-balanced LightGBM weights already make up for much of the imbalance, and the fidelity filter threw out most CTGAN samples for the subtlest classes. Figure 9(c) shows that the encoder learning curves with focal loss and with class-weighted cross-entropy are nearly identical. The D1 gain from focal loss therefore comes from the embedding geometry it creates for the downstream LightGBM head, not from a better auxiliary classifier.

Severity. Figure 8(b) plots the accuracy of each method against fault severity on D1. Every method gets worse at low severity, but SHAPE-FDNet loses the least, falling from 0.76 at high severity to 0.65 at low severity, while XGBoost-LIME drops from 0.68 to 0.53. In the severity hold-out (Table 8 and Figure 8(c)), all models are trained with no medium-severity fault data at all and then tested on medium-severity faults. SHAPE-FDNet keeps the highest macro-F1 on both datasets (0.716 on D1 and 0.651 on D2), which shows that the signatures learned from low and high severities carry over to the intermediate intensity it has not seen.

Cross-building transfer. Figure 8(d) and Table 8 give the cross-dataset results, where models trained on one building are applied to the other using only that building’s unlabelled fault-free data for standardisation and thresholds. Transfer is the toughest test in the study. The two AHUs differ in SAT reset strategy, minimum outdoor air, economiser limits, capacity and noise, so several fault signatures change shape, and every data-driven method loses roughly 13–31 macro-F1 points compared with its in-domain performance. In this case SHAPE-FDNet is not the best method. XGBoost-LIME transfers best in both directions (0.517 for D1→D2 and 0.502 for D2→D1), compared with 0.493 and 0.404 for SHAPE-FDNet. The deep encoder learns temporal patterns that are specific to a building and do not carry over as well as window statistics, and this outweighs its advantage within a building. Building-adaptive standardisation is nonetheless essential for every learned model: if SHAPE-FDNet is run with the source building’s scaling, performance collapses to 0.071 and 0.007. Transferring deep FDD encoders between buildings is therefore still an open problem. Domain-adversarial training, or fine-tuning on a few labelled days from the target building, are obvious remedies to try.

Table 8. Generalisation to unseen severities and across buildings.
Method Severity hold-out (macro-F1) Crossdataset macro-F1 Cross-dataset MCC
D1 D2 D1→D2 D2→D1 D1→D2 D2→D1
APAR 0.284 0.240 0.244 0.284 0.274 0.310
RF-SHAP 0.562 0.512 0.481 0.408 0.467 0.414
XGBoostLIME 0.630 0.545 0.517 0.502 0.496 0.489
CNN-LSTM-GradCAM 0.591 0.589 0.426 0.407 0.432 0.392
SHAPE-FDNet 0.716 0.651 0.493 0.404 0.471 0.371
SHAPE-FDNet w/o target re-standardisation – – 0.071 0.007 0.138 0.000

Unseen faults. For the unseen-fault hold-out, damper leakage (DMP-LK), water-side coil fouling (CC-FW) and static-pressure drift (SP-DR) are taken out of all training data. Table 9 and Figure 8(e) show that the label-free VAE detector still raises alarms on 62%, 49% and 41% of their D1 windows. For damper leakage and static-pressure drift, this is much more than the supervised head manages by itself (45% and 14%), because these faults look like none of the trained classes and the head mostly assigns them to “normal”. Water-side fouling is the exception: the head flags 64% of its windows by assigning them to the related air-side fouling class. The dual-evidence decision of Equation (13) therefore handles both situations. When the reasoner explains these alarms, their attribution vectors fit the fingerprints of known faults less closely. Figure 8(f) shows that the explanation confidence moves towards lower values: 30% of unseen-fault alarms fall under 𝜏EC and are reported as “unknown fault – inspect”, compared with 12% of known-fault alarms. The EC score is thus a useful but incomplete open-set indicator. In some of the cases it prevents a confident misdiagnosis, but it is no substitute for labelled data on a new fault.

Table 9. Unseen-fault hold-out: detection rate (%) of fault classes removed from training.
Unseen fault D1 D2
SHAPE cVAE Head only PCA SHAPE cVAE Head only PCA
DMP-LK (OA damper leakage) 62.2 44.9 31.2 66.0 55.8 18.2
CC-FW (Coolingcoil 49.4 63.8 23.9 66.4 65.7 28.6
fouling (water side))
SP-DR (Static-pressure sensor drift) 41.1 13.7 3.1 48.0 0.2 5.2
Flagged "unknown" (EC < τ_EC): unseen / known alarms 29.7 / 11.7 27.5 / 13.7
Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.
Figure 8. Robustness: (a) per-class F1 versus number of real training windows, with and without CTGAN; (b) accuracy versus fault severity; (c) severity hold-out (train on low and high, test on medium); (d) cross-dataset transfer; (e) detection of fault types removed from training; (f) explanation confidence of known and unseen-fault alarms.

5.5Hyperparameter optimisation and training behaviour

Figure 9(a) traces the Optuna optimisation history. The ten random start-up trials reach a validation macro-F1 of around 0.750, and the TPE phase raises this to 0.756. Across all trials the spread is only about 2.6 points, so the framework is not sensitive to its hyperparameters. The fANOVA importances in Figure 9(b) show that encoder width matters most (wider is better), followed by the dual-evidence threshold 𝜏𝑛 and the focal parameter 𝛾. Once the representation is fixed, the LightGBM hyperparameters have little influence, and the number of Transformer layers hardly matters, since one layer is enough for 30-min windows. The search was run only on D1, so its benefits need not carry over to D2, as the D2 ablations confirm. Figure 9(c) compares the encoder learning curves under focal and cross-entropy losses, and Figure 9(d) shows the VAE loss terms. The Gaussian negative log-likelihood falls sharply in the first epochs and then steadily. The KL term climbs during the β-annealing phase and then levels off, and the physics residual drops after an initial transient and stays small. The penalty therefore constrains the solution without taking over the objective.

Optimisation and training: (a) Optuna TPE optimisation history; (b) fANOVA hyperparameter importance; (c) encoder validation macro-F1 with focal and cross-entropy losses (band: range over seeds); (d) VAE loss terms during training.Optimisation and training: (a) Optuna TPE optimisation history; (b) fANOVA hyperparameter importance; (c) encoder validation macro-F1 with focal and cross-entropy losses (band: range over seeds); (d) VAE loss terms during training.Optimisation and training: (a) Optuna TPE optimisation history; (b) fANOVA hyperparameter importance; (c) encoder validation macro-F1 with focal and cross-entropy losses (band: range over seeds); (d) VAE loss terms during training.Optimisation and training: (a) Optuna TPE optimisation history; (b) fANOVA hyperparameter importance; (c) encoder validation macro-F1 with focal and cross-entropy losses (band: range over seeds); (d) VAE loss terms during training.
Figure 9. Optimisation and training: (a) Optuna TPE optimisation history; (b) fANOVA hyperparameter importance; (c) encoder validation macro-F1 with focal and cross-entropy losses (band: range over seeds); (d) VAE loss terms during training.

5.6Global and local explanations (O4)

Global fault signatures. Figure 10(a) presents the fingerprint library {𝐅𝑘} (Equation (20)) as a map of faults against sensors, with the expert symptom sensors of Table 3 outlined. For most faults, the strongest attributions fall on channels that make physical sense. The damper and economiser faults load on MAT and OAD; the valve and control faults on SAT, CCV and HCV; supply-fan degradation on SFS, RFS and DSP; return-fan failure on RAF; and static-pressure drift on RAT, SFS and RFS. MAT turns up in many signatures because the mixed-air temperature reacts to almost every airside fault. Figure 10(b) shows the cosine similarity between fingerprints, ordered by hierarchical clustering, and two blocks appear. The first, an “airside-mixing” block, holds the three damper faults, the MAT bias and the incorrect economiser sequence (pairwise similarity 0.78–0.92). The second, a “waterside/control” block, holds the valve faults, the SAT bias, water-side fouling and the unstable loop. These blocks line up with the confusions in Figure 7, and they show in numbers which faults an operator cannot tell apart from the attribution pattern alone. The beeswarm plot in Figure 10(c) shows that the stuck-closed-damper decision rests mostly on a few encoder embedding units, and that the APAR outdoor-air-fraction residual is the most influential engineered feature. The SHAP interaction map of the engineered features in Figure 10(d) is dominated by the link between CCV variability and the valve-hunting index, with weaker links among the SAT, MAT and OA-fraction features. The boosting head thus relies on how related control-loop features behave together, not on single statistics.

Global explanations on D1: (a) fault-signature map of the fingerprint library (boxes: expert symptom sensors); (b) cosine similarity between fault fingerprints, ordered by hierarchical clustering; (c) TreeSHAP beeswarm of the most influential fused features for the stuck-closed damper; (d) mean absolute SHAP interaction values between engineered features.Global explanations on D1: (a) fault-signature map of the fingerprint library (boxes: expert symptom sensors); (b) cosine similarity between fault fingerprints, ordered by hierarchical clustering; (c) TreeSHAP beeswarm of the most influential fused features for the stuck-closed damper; (d) mean absolute SHAP interaction values between engineered features.Global explanations on D1: (a) fault-signature map of the fingerprint library (boxes: expert symptom sensors); (b) cosine similarity between fault fingerprints, ordered by hierarchical clustering; (c) TreeSHAP beeswarm of the most influential fused features for the stuck-closed damper; (d) mean absolute SHAP interaction values between engineered features.Global explanations on D1: (a) fault-signature map of the fingerprint library (boxes: expert symptom sensors); (b) cosine similarity between fault fingerprints, ordered by hierarchical clustering; (c) TreeSHAP beeswarm of the most influential fused features for the stuck-closed damper; (d) mean absolute SHAP interaction values between engineered features.
Figure 10. Global explanations on D1: (a) fault-signature map of the fingerprint library (boxes: expert symptom sensors); (b) cosine similarity between fault fingerprints, ordered by hierarchical clustering; (c) TreeSHAP beeswarm of the most influential fused features for the stuck-closed damper; (d) mean absolute SHAP interaction values between engineered features.

Local, per-alarm explanations. Figure 11(a) gives the waterfall explanation of a single stuck-open-damper alarm in winter. The sensor contributions add up to the log-odds of the diagnosed class (Equation (19)). MAT, RAT and OAD push the decision towards the fault, while the heating-valve channel pushes hard against it, so the alarm is the net result of competing evidence, and the waterfall makes that visible. Figure 11(b) shows the sensor-by-time map that the IG/DeepSHAP chain produces for an unstable-control-loop alarm. The attribution concentrates on the MAT and OAT channels at the moments of the CCV oscillation peaks, rather than on the CCV and SAT channels themselves. The timing is informative, but the choice of sensors is not what an expert would expect. This is one example of the lower expert agreement of the embedding pathway discussed in the explanation-validation results. The counterfactual analysis [38] in Figure 11(c) puts numbers on the “what-to-fix” output. Restoring only the top-ranked sensor to its mode-matched fault-free trajectory clears 14% of the alarms, and restoring the top three clears 27%, compared with 3% and 10% for a random order of sensors. The SHAP ranking therefore does point to sensors whose behaviour causes the alarm. For most alarms, though, more than a few sensors have to be restored, which reflects how closed-loop fault symptoms are spread across the system.

Value of the SHAP-Signature Reasoner. On validation data, the best fusion weight is 𝛼∗ = 0.9 (Figure 11(e)). Signature similarity on its own (α = 0) is a far weaker classifier than the LightGBM head, and fusing the two improves macro-F1 only slightly over the head alone (α = 1). On the test days, the reasoner altered 11 of the roughly 5,500 alarm decisions per seed on D1, fixing 5 and introducing 4 new errors; its effect on macro-F1 is less than 0.001 on both datasets (Table 11). Re-ranking, then, is not what makes the reasoner worthwhile. Its value is in the explanation-confidence score. Figure 11(d) shows that diagnosis accuracy climbs from 80% in the lowest EC bin to a peak of 96%, and stays above 90% for all alarms with EC ≥ 0.3. Low-EC alarms are therefore the ones an operator should check twice, and, as the robustness results showed, a low EC also flags some of the faults that were missing from training.

Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.
Figure 11. Local explanations and the SHAP-Signature Reasoner: (a) per-alarm waterfall of sensor contributions; (b) sensor-by-time IG/DeepSHAP map of an unstable-control-loop alarm with the CCV and SAT signals; (c) counterfactual "what-to-fix" success versus number of restored sensors; (d) diagnosis accuracy per explanation-confidence bin; (e) sensitivity of validation macro-F1 to the reasoner weight α.

5.7Quantitative validation of explanations (O4)

Table 10 and Figure 12 give the explanation-quality metrics of the explanation-validation section for the four explainable methods, computed on the same 450 D1 alarm windows. The D2 analysis shows the same qualitative picture (SHAPE-FDNet stability 0.522 and EA@3 0.391, against 0.962 and 0.570 for RF-SHAP). Each method explains the class predicted by its own model. Since the methods explain different models with different levels of confidence (the initial probability 𝑝0 of the explained class ranges from 0.54 for the random forest to 0.94 for SHAPE-FDNet), Figure 12(a) and (b) plot the deletion and insertion curves normalised by 𝑝0, and the legends give each method’s faithfulness gain over a random sensor order on its own model.

Faithfulness. Every explanation is far more faithful than a random order. In raw terms, SHAPE-FDNet has the highest insertion AUC (0.599 against 0.570 for the best baseline), and its IG sensor-time component by itself does even better (0.673). Once we normalise by 𝑝0 and by each model’s random order, however, the feature-level TreeSHAP explanation of the random forest turns out to be the most faithful (deletion gain 0.276, insertion gain 0.365). XGBoost-LIME comes next (0.216, 0.264), then SHAPE-FDNet (0.170, 0.259). Inside SHAPE-FDNet, the IG sensor-time component (0.209, 0.339) is more faithful than the TreeSHAP feature component (0.142, 0.180). Most of the decision evidence in the hybrid model passes through the encoder embedding, and the chain rule of Equation (17) recovers it.

Stability. Windows next to each other in the same fault episode ought to get similar explanations. Figure 12(c) shows the distribution of the cosine similarity between the sensor attributions of 225 pairs of neighbouring windows. RF-SHAP (0.976), XGBoost-LIME (0.890) and Grad-CAM (0.804) are all more stable than SHAPE-FDNet (0.571), whose distribution has a long lower tail. On its own, the feature-level TreeSHAP component of SHAPE-FDNet is much more stable (0.741). The instability therefore comes from the gradient-based attribution through the encoder, which reacts to where transients fall within the window.

Expert agreement. Figure 12(d) breaks the expert-agreement score EA@3 down by fault group. RF-SHAP agrees most closely with the expert symptom sets (0.559), followed by XGBoost-LIME (0.472), Grad-CAM (0.384) and SHAPE-FDNet (0.353), while a random ranking scores 0.232. All explanations are thus well above chance. Models that work on window statistics of individual sensors attribute evidence to those sensors directly, whereas the embedding of SHAPE-FDNet mixes sensors together in its convolutional filters. As Figure 11(b) showed, the IG chain then often gives the evidence to correlated upstream channels (MAT, OAT) instead of the sensor an expert would look at first.

Interpretation. These results reveal a real trade-off between accuracy and explainability. The hybrid representation that gives SHAPE-FDNet its diagnostic edge (the diagnosis results) also makes its sensor-level explanations noisier, and less in line with engineering intuition, than those of a simpler feature-based model. In practice we recommend a two-layer presentation: the more stable feature-level TreeSHAP component for the sensor rankings shown to operators, and the sensor-by-time map for temporal localisation and expert analysis. The quantitative protocol brings this trade-off into view, whereas a purely visual evaluation would have hidden it.

Table 10. Quantitative explanation quality on D1 (450 alarm windows forming 225 neighbouring pairs).
Explanation method Deletion AUC ↓ Insertion AUC ↑ Stabilit y ↑ EA@3 ↑ Top-1 hit ↑ Time (ms)
RF-SHAP 0.115 0.455 0.976 0.559 0.700 85.1
XGBoostLIME 0.157 0.570 0.890 0.472 0.587 42.0
CNN-LSTM-GradCAM 0.219 0.462 0.804 0.384 0.462 0.2
SHAPE (TreeSHAP features only) 0.228 0.529 0.741 0.441 0.531 –
SHAPE (IG sensor-time only) 0.163 0.673 0.694 0.352 0.524 –
SHAPE-FDNet (multigranular) 0.197 0.599 0.571 0.353 0.462 16.4
Random ranking 0.359 0.365 – 0.232 0.256 –
Quantitative explanation validation on 450 D1 alarm windows: (a) deletion curves (lower AUC is better); (b) insertion curves (higher AUC is better); (c) stability of attributions between neighbouring windows; (d) expert agreement EA@3 per fault group.Quantitative explanation validation on 450 D1 alarm windows: (a) deletion curves (lower AUC is better); (b) insertion curves (higher AUC is better); (c) stability of attributions between neighbouring windows; (d) expert agreement EA@3 per fault group.Quantitative explanation validation on 450 D1 alarm windows: (a) deletion curves (lower AUC is better); (b) insertion curves (higher AUC is better); (c) stability of attributions between neighbouring windows; (d) expert agreement EA@3 per fault group.Quantitative explanation validation on 450 D1 alarm windows: (a) deletion curves (lower AUC is better); (b) insertion curves (higher AUC is better); (c) stability of attributions between neighbouring windows; (d) expert agreement EA@3 per fault group.
Figure 12. Quantitative explanation validation on 450 D1 alarm windows: (a) deletion curves (lower AUC is better); (b) insertion curves (higher AUC is better); (c) stability of attributions between neighbouring windows; (d) expert agreement EA@3 per fault group.

5.8Ablation study and computational cost (O5)

Table 11 and Figure 13(a) summarise the ablations. The APAR residual features are the only component whose removal lowers macro-F1 on both datasets (by 0.6 points on D1 and 0.4 on D2), so the physics-derived residuals contribute information that the encoder cannot recover from 3,962 training windows. On D1, the focal loss (1.0), the Transformer layer (0.3) and CTGAN (0.1) each bring a small improvement. On D2, removing them actually raises macro-F1 by 0.8, 0.6 and 0.6 points, respectively. These components were tuned on D1, so their benefits are small and specific to the building, and they should be checked again for each deployment. Taking out the reasoner’s re-ranking changes macro-F1 by less than 0.001. Removing the VAE detector from the decision rule (Equation (13)) does not lower the diagnosis accuracy on known faults either, because the supervised head recognises most known faults by itself. The VAE plays a different role. It greatly improves the detection of faults that were absent from training, especially those unlike any known class (Table 9), and it is the only component that can raise alarms in a new building before any fault labels are available.

Table 11. Ablation study (mean ± std over three seeds). Lower part: detector ablations.
Variant D1 D2
MacroF1 MCC MacroF1 MCC
Full SHAPE-FDNet 0.755 ± 0.004 0.738 ± 0.004 0.718 ± 0.003 0.698 ± 0.003
w/o SHAP-Signature Reasoner 0.755 ± 0.004 0.738 ± 0.004 0.718 ± 0.003 0.698 ± 0.003
w/o CTGAN augmentation 0.754 ± 0.003 0.737 ± 0.004 0.723 ± 0.006 0.705 ± 0.005
w/o focal loss (CE) 0.745 ± 0.007 0.728 ± 0.007 0.726 ± 0.001 0.708 ± 0.001
w/o APAR residual features 0.749 ± 0.010 0.729 ± 0.010 0.713 ± 0.005 0.695 ± 0.004
w/o Transformer (CNN only) 0.752 ± 0.004 0.733 ± 0.005 0.723 ± 0.002 0.705 ± 0.003
w/o VAE detector 0.755 ± 0.004 0.738 ± 0.005 0.718 ± 0.003 0.698 ± 0.003
Detection: Full detector AUC 0.885 DR 0.763 AUC 0.901 DR 0.794
Detection: w/o physics penalty AUC 0.885 DR 0.758 AUC 0.902 DR 0.796
Detection: w/o mode conditioning & adaptive thr. AUC 0.889 DR 0.706 AUC 0.902 DR 0.764

Table 12 and Figure 13(b) give the inference latency per 30-min window on a two-core CPU. Feature extraction, VAE scoring, encoding and LightGBM diagnosis take 0.20 ms per window in total. Most of the cost comes from explaining alarms, and above all from the Integrated-Gradients chain for the three candidate classes in the reasoner, which brings the total to 133.88 ms per window. A new window arrives only every 15 min, so one edge server could handle thousands of AHUs. Full DeepSHAP sensor-by-time maps for offline analysis take about 16 ms per alarm.

Table 12. Inference latency per 30-min window on a two-core CPU (batch of 512 windows).
Stage / model Latency (ms / window)
Feature extraction (stats + APAR) 0.007
VAE detection (L=16 MC samples) 0.013
CNN-Transformer embedding 0.040
LightGBM diagnosis 0.144
TreeSHAP attribution 12.385
IG chain + SHAP-Signature Reasoner (top3) 121.293
SHAPE-FDNet total (detection + diagnosis + explanation) 133.882
RF-SHAP: RF predict 0.104
XGBoost predict 0.121
CNN-LSTM predict 0.749
(a) Ablation study: change in macro-F1 when each component is removed (D1 and D2, error bars: std over seeds); (b) inference latency per window broken down by stage.(a) Ablation study: change in macro-F1 when each component is removed (D1 and D2, error bars: std over seeds); (b) inference latency per window broken down by stage.
Figure 13. (a) Ablation study: change in macro-F1 when each component is removed (D1 and D2, error bars: std over seeds); (b) inference latency per window broken down by stage.

6Discussion, limitations and practical implications

Five findings stand out. First, combining a temporal deep embedding with physics-derived APAR residuals in a boosting head gives the most accurate diagnosis within a building, and the APAR residuals are the most robust single ingredient, being the only component that helps in both buildings. Second, a label-free detector is still needed even when a strong supervised diagnoser is available. The head is accurate on known faults by itself, but faults outside the training taxonomy that resemble no known class are caught mostly by the detector. Mode-specific thresholds move the operating point without improving the underlying separability, and their false alarms cluster in mechanical cooling. Third, the deep encoder transfers between buildings less well than models built on window statistics, so deploying across buildings calls for domain adaptation or a few labelled days from the target building. Fourth, explanations have to be evaluated quantitatively. Our protocol showed that the multi-granular attributions of the hybrid model are faithful but less stable and less aligned with experts than feature-level TreeSHAP on a simpler model, a trade-off that visual inspection would not have uncovered. Fifth, the SHAP-Signature Reasoner does not improve classification, but its explanation-confidence score is useful for triaging alarms and partly flagging open-set faults.

The study has some limitations. The two datasets come from controlled test programmes on a small number of AHUs. They capture closed-loop fault propagation, seasonal mode switching and real sensor noise, but each fault was imposed singly and held for whole test days, so simultaneous faults, faults that develop gradually and the wider disturbances of continuously operated buildings are not represented, and absolute performance in other buildings may differ. We release the full pipeline, including the data loaders for the RP-1312 and LBNL files, so that the experiments can be reproduced. Hyperparameters were tuned on D1 alone. Faults stayed active for whole days, so detection delay was measured from the start of occupied operation. The expert symptom sets used for expert agreement were derived from APAR and fault physics, not from a panel of technicians. Lastly, the explanation analysis covers 450 alarm windows per dataset, and the faithfulness metrics depend on which fault-free reference trajectories are chosen.

7Conclusions

We have presented SHAPE-FDNet, an explainable fault detection and diagnosis framework for air handling units. It brings together a physics-aware, mode-conditioned variational autoencoder detector, a hybrid 1D-CNN–Transformer encoder with a LightGBM head augmented by APAR residuals, per-class CTGAN augmentation, focal loss and joint Optuna TPE tuning, a multi-granular SHAP attribution layer and a SHAP-Signature Diagnostic Reasoner. We evaluated it on two real benchmark datasets, ASHRAE RP-1312 and LBNL SDAHU, with 15 faults at three severities, day-wise splits and a 33.6:1 class imbalance. Our main conclusions are as follows:

Without fault labels, the detector reached an AUC of 0.885/0.901 (D1/D2), well above the PCA, autoencoder, one-class-SVM, Isolation-Forest and APAR detectors, and it held back alarms in operating modes where a fault produces no symptom.

For 16-class diagnosis, SHAPE-FDNet reached a macro-F1 of 0.755/0.718 and an MCC of 0.738/0.698, 7.9/6.5 points higher than the best of APAR, RF-SHAP, XGBoost-LIME and CNN-LSTM-Grad-CAM. It was also the most accurate model on unseen severities (0.716/0.651).

When transferred between buildings, SHAPE-FDNet (0.493/0.404) was beaten by XGBoost on window statistics (0.517/0.502), and building-adaptive standardisation proved indispensable for every learned model.

The multi-granular SHAP explanations were faithful (highest raw insertion AUC, 0.599) and gave counterfactual repair hints, but they were less stable (0.571 versus 0.976) and less in line with experts (EA@3 0.353 versus 0.559) than feature-level TreeSHAP on a random forest, which points to a trade-off between accuracy and explainability.

The SHAP-Signature Reasoner left diagnosis accuracy unchanged, but its explanation-confidence score ranked how reliable alarms were and flagged 30% of unseen-fault alarms as unknown. The whole pipeline ran in 133.88 ms per window on a two-core CPU.

In future work we plan to validate the framework on additional buildings and on continuously monitored field data, add domain adaptation to the encoder, and regularise the IG chain to make it more stable (for instance with attribution priors or smoothing across neighbouring windows). We also intend to extend the framework to simultaneous and gradually developing faults, and to let the fingerprint library grow incrementally from technician feedback.

8Data and code availability

The ASHRAE RP-1312 and LBNL SDAHU datasets used in this study are publicly available from their original sources [9, 10]. The data loaders and pre-processing scripts, the complete implementation of SHAPE-FDNet and the baselines, and all result files are provided as supplementary material.

9Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. [1]S. Katipamula, M.R. Brambley, Methods for fault detection, diagnostics, and prognostics for building systems—a review, Part I, HVAC&R Research 11 (1) (2005) 3–25.
  2. [2]S. Katipamula, M.R. Brambley, Methods for fault detection, diagnostics, and prognostics for building systems—a review, Part II, HVAC&R Research 11 (2) (2005) 169–187.
  3. [3]W. Kim, S. Katipamula, A review of fault detection and diagnostics methods for building systems, Science and Technology for the Built Environment 24 (1) (2018) 3–21.
  4. [4]Y. Zhao, T. Li, X. Zhang, C. Zhang, Artificial intelligence-based fault detection and diagnosis methods for building energy systems: advantages, challenges and the future, Renewable and Sustainable Energy Reviews 109 (2019) 85–101.
  5. [5]M.S. Mirnaghi, F. Haghighat, Fault detection and diagnosis of large-scale HVAC systems in buildings using data-driven methods: a comprehensive review, Energy and Buildings 229 (2020) 110492.
  6. [6]Z. Chen, Z. O’Neill, J. Wen, O. Pradhan, T. Yang, X. Lu, G. Lin, S. Miyata, S. Lee, C. Shen, et al., A review of data-driven fault detection and diagnostics for building HVAC systems, Applied Energy 339 (2023) 121030.
  7. [7]J. Schein, S.T. Bushby, N.S. Castro, J.M. House, A rule-based fault detection method for air handling units, Energy and Buildings 38 (12) (2006) 1485–1492.
  8. [8]J.M. House, H. Vaezi-Nejad, J.M. Whitcomb, An expert rule set for fault detection in air-handling units, ASHRAE Transactions 107 (1) (2001) 858–871.
  9. [9]J. Wen, S. Li, Tools for evaluating fault detection and diagnostic methods for air-handling units, ASHRAE Research Project RP-1312 Final Report, ASHRAE, Atlanta, GA, 2011.
  10. [10]J. Granderson, G. Lin, Y. Chen, A. Casillas, J. Wen, Z. Chen, P. Im, S. Huang, J. Ling, A labeled dataset for building HVAC systems operating in faulted and fault-free states, Scientific Data 10 (2023) 342.
  11. [11]K.-P. Lee, B.-H. Wu, S.-L. Peng, Deep-learning-based fault detection and diagnosis of air-handling units, Building and Environment 157 (2019) 24–33.
  12. [12]K. Yan, J. Huang, W. Shen, Z. Ji, Unsupervised learning for fault detection and diagnosis of air handling units, Energy and Buildings 210 (2020) 109689.
  13. [13]K. Yan, A. Chong, Y. Mo, Generative adversarial network for fault detection diagnosis of chillers, Building and Environment 172 (2020) 106698.
  14. [14]G. Li, Q. Yao, C. Fan, C. Zhou, G. Wu, Z. Zhou, X. Fang, An explainable one-dimensional convolutional neural networks based fault diagnosis method for building heating, ventilation and air conditioning systems, Building and Environment 203 (2021) 108057.
  15. [15]S. Srinivasan, P. Arjunan, B. Jin, A.L. Sangiovanni-Vincentelli, Z. Sultan, K. Poolla, Explainable AI for chiller fault-detection systems: gaining human trust, Computer 54 (10) (2021) 60–68.
  16. [16]D. Chakraborty, H. Elzarka, Early detection of faults in HVAC systems using an XGBoost model with a dynamic threshold, Energy and Buildings 185 (2019) 326–344.
  17. [17]A. Montazeri, S.M. Kargar, Fault detection and diagnosis in air handling using data-driven methods, Journal of Building Engineering 31 (2020) 101388.
  18. [18]C. Fan, X. Liu, P. Xue, J. Wang, Statistical characterization of semi-supervised neural networks for fault detection and diagnosis of air handling units, Energy and Buildings 234 (2021) 110733.
  19. [19]S.M. Lundberg, S.-I. Lee, A unified approach to interpreting model predictions, in: Advances in Neural Information Processing Systems 30, 2017, pp. 4765–4774.
  20. [20]S.M. Lundberg, G. Erion, H. Chen, A. DeGrave, J.M. Prutkin, B. Nair, R. Katz, J. Himmelfarb, N. Bansal, S.-I. Lee, From local explanations to global understanding with explainable AI for trees, Nature Machine Intelligence 2 (1) (2020) 56–67.
  21. [21]M.T. Ribeiro, S. Singh, C. Guestrin, “Why should I trust you?”: explaining the predictions of any classifier, in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 1135–1144.
  22. [22]R.R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, D. Batra, Grad-CAM: visual explanations from deep networks via gradient-based localization, in: Proceedings of the IEEE International Conference on Computer Vision, 2017, pp. 618–626.
  23. [23]M. Sundararajan, A. Taly, Q. Yan, Axiomatic attribution for deep networks, in: Proceedings of the 34th International Conference on Machine Learning, PMLR 70, 2017, pp. 3319–3328.
  24. [24]A. Shrikumar, P. Greenside, A. Kundaje, Learning important features through propagating activation differences, in: Proceedings of the 34th International Conference on Machine Learning, PMLR 70, 2017, pp. 3145–3153.
  25. [25]D.P. Kingma, M. Welling, Auto-encoding variational Bayes, in: International Conference on Learning Representations, 2014.
  26. [26]K. Sohn, H. Lee, X. Yan, Learning structured output representation using deep conditional generative models, in: Advances in Neural Information Processing Systems 28, 2015, pp. 3483–3491.
  27. [27]J. An, S. Cho, Variational autoencoder based anomaly detection using reconstruction probability, Special Lecture on IE 2 (1) (2015) 1–18.
  28. [28]L. Xu, M. Skoularidou, A. Cuesta-Infante, K. Veeramachaneni, Modeling tabular data using conditional GAN, in: Advances in Neural Information Processing Systems 32, 2019.
  29. [29]T.-Y. Lin, P. Goyal, R. Girshick, K. He, P. Dollár, Focal loss for dense object detection, in: Proceedings of the IEEE International Conference on Computer Vision, 2017, pp. 2980–2988.
  30. [30]G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye, T.-Y. Liu, LightGBM: a highly efficient gradient boosting decision tree, in: Advances in Neural Information Processing Systems 30, 2017, pp. 3146–3154.
  31. [31]T. Chen, C. Guestrin, XGBoost: a scalable tree boosting system, in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785–794.
  32. [32]T. Akiba, S. Sano, T. Yanase, T. Ohta, M. Koyama, Optuna: a next-generation hyperparameter optimization framework, in: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2019, pp. 2623–2631.
  33. [33]J. Bergstra, R. Bardenet, Y. Bengio, B. Kégl, Algorithms for hyper-parameter optimization, in: Advances in Neural Information Processing Systems 24, 2011, pp. 2546–2554.
  34. [34]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A.N. Gomez, Ł. Kaiser, I. Polosukhin, Attention is all you need, in: Advances in Neural Information Processing Systems 30, 2017, pp. 5998–6008.
  35. [35]S. Hochreiter, J. Schmidhuber, Long short-term memory, Neural Computation 9 (8) (1997) 1735–1780.
  36. [36]V. Petsiuk, A. Das, K. Saenko, RISE: randomized input sampling for explanation of black-box models, in: Proceedings of the British Machine Vision Conference, 2018.
  37. [37]D. Alvarez-Melis, T.S. Jaakkola, On the robustness of interpretability methods, arXiv:1806.08049, 2018.
  38. [38]S. Wachter, B. Mittelstadt, C. Russell, Counterfactual explanations without opening the black box: automated decisions and the GDPR, Harvard Journal of Law & Technology 31 (2) (2018) 841–887.
  39. [39]D. Chicco, G. Jurman, The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation, BMC Genomics 21 (2020) 6.
  40. [40]N.V. Chawla, K.W. Bowyer, L.O. Hall, W.P. Kegelmeyer, SMOTE: synthetic minority over-sampling technique, Journal of Artificial Intelligence Research 16 (2002) 321–357.
  41. [41]L.S. Shapley, A value for n-person games, in: H.W. Kuhn, A.W. Tucker (Eds.), Contributions to the Theory of Games II, Princeton University Press, 1953, pp. 307–317.
  42. [42]G. Erion, J.D. Janizek, P. Sturmfels, S.M. Lundberg, S.-I. Lee, Improving performance of deep learning models with axiomatic attribution priors and expected gradients, Nature Machine Intelligence 3 (7) (2021) 620–631.
  43. [43]K.W. Roth, D. Westphalen, P. Llana, M. Feng, The energy impact of faults in U.S. commercial buildings, in: International Refrigeration and Air Conditioning Conference, Purdue University, 2004, Paper 665.
  44. [44]F.T. Liu, K.M. Ting, Z.-H. Zhou, Isolation forest, in: Proceedings of the 8th IEEE International Conference on Data Mining, 2008, pp. 413–422.
  45. [45]B. Schölkopf, J.C. Platt, J. Shawe-Taylor, A.J. Smola, R.C. Williamson, Estimating the support of a high-dimensional distribution, Neural Computation 13 (7) (2001) 1443–1471.
  46. [46]L. Breiman, Random forests, Machine Learning 45 (1) (2001) 5–32.
  47. [47]S. Li, J. Wen, A model-based fault detection and diagnostic methodology based on PCA method and wavelet transform, Energy and Buildings 68 (2014) 63–71.
  48. [48]S. Wang, F. Xiao, AHU sensor fault diagnosis using principal component analysis method, Energy and Buildings 36 (2) (2004) 147–160.
  49. [49]Z. Du, B. Fan, X. Jin, J. Chi, Fault detection and diagnosis for buildings and HVAC systems using combined neural networks and subtractive clustering analysis, Building and Environment 73 (2014) 1–11.
  50. [50]R. Guidotti, A. Monreale, S. Ruggieri, F. Turini, F. Giannotti, D. Pedreschi, A survey of methods for explaining black box models, ACM Computing Surveys 51 (5) (2018) 93.
  51. [51]M. Madhikermi, A.K. Malhi, K. Främling, Explainable artificial intelligence based heat recycler fault detection in air handling unit, in: Explainable, Transparent Autonomous Agents and Multi-Agent Systems (EXTRAAMAS 2019), Lecture Notes in Computer Science 11763, Springer, 2019, pp. 110–125.