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

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.

Authors

Publication Details

Journal
Iconic Research and Engineering Journals
Published
2026-11-30
DOI
https://doi.org/10.64388/ire1726028
Primary Topic
Fault Detection and Control Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

Mehboob Ali Khan
Iconic Research and Engineering Journals
Fault Detection and Control Systems
article

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

Mehboob Ali Khan
article en

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.

Iconic Research and Engineering JournalsVol. 10(6)
Fault Detection and Control Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon