Privacy-Preserving Explainable AIoT Application via SHAP Entropy Regularization

Dilli Prasad Sharma, Xiaowei Sun, Liang Xue, Xiaodong Lin, Pulei Xiong

Abstract

In the Artificial Intelligence of Things (AIoT), transparency via Explainable AI (XAI) is crucial but introduces significant privacy risks. Explanations, such as those generated by SHAP (SHapley Additive exPlanations), can inadvertently serve as side channels for leaking sensitive user behavior. This paper introduces SHAP entropy regularization, a novel training technique that penalizes models for overly concentrated feature attributions. By encouraging higher entropy in explanations, the proposed SHAP-regularized LSTM maintains high predictive accuracy while effectively mitigating membership inference and fingerprinting attacks.

Introduction

Transparency in smart home environments allows users to understand AI-driven energy forecasts. However, detailed explanations can reveal private routines, such as cooking schedules or specific appliance usage. This creates an "explanation-privacy" paradox: providing meaningful insights without compromising user privacy. Current defenses like Differential Privacy (DP) often incur a heavy "utility tax," significantly degrading model accuracy. This research proposes a "privacy-by-design" approach that regularizes the explanation space itself to protect user data.

Methods

The core of the proposed approach is the integration of privacy constraints directly into the model's learning process.

SHAP Entropy Regularization

Standard models often overfit their reasoning to a few dominant features, creating "spiky" explanations that are easy to fingerprint. The authors introduce a penalty term to the loss function that discourages low-entropy SHAP distributions. This forces the model to distribute feature importance more uniformly across available inputs, effectively "blurring" the reasoning process and making it harder for an attacker to exploit.

SHAP-Regularized LSTM

The technique was implemented using a Long Short-Term Memory (LSTM) network, which is ideal for the sequential nature of energy consumption data. The model was evaluated against a suite of specialized SHAP-based attacks, including entropy attacks, similarity/divergence attacks, and rank correlation attacks designed to identify stable feature importance "fingerprints."

Experimental Setup

The method was validated using the REFIT Electrical Load Measurements dataset, containing real-world power consumption from 20 UK households. The study focused on forecasting aggregate household power based on nine individual appliance monitors (e.g., kettles, dishwashers, TVs) across three specific houses.

Results and Discussion

The SHAP-regularized LSTM was compared against a baseline LSTM and a DP-LSTM.

Quantitative Performance

The regularized model demonstrated a superior balance between privacy and utility. As shown in Figure 1, while the DP-LSTM suffers from increased Mean Absolute Error (MAE), the SHAP-regularized model maintains accuracy close to the baseline. Crucially, it achieves significantly higher SHAP entropy and lower membership similarity, indicating robust protection against inference attacks. For instance, in "House 1," the rank correlation—a measure of fingerprinting ease—dropped from 0.2889 in the baseline to 0.2413 in the regularized model.

Comparison of MAE, SHAP Entropy, and Membership Similarity across models.

Qualitative Visual Evidence

Heatmap analysis reveals the "blurring" effect of the regularization. In the baseline model, specific appliances like the kettle show glaringly obvious attribution spikes during peak hours. In contrast, the regularized model produces more diverse and less "spiky" attributions, making it harder for an adversary to pinpoint specific appliance usage patterns.

SHAP Attribution and Mean Hourly SHAP Entropy heatmaps for the three models.

Conclusion

SHAP entropy regularization offers a promising path for privacy-preserving XAI in AIoT. By treating explanations as a potential vulnerability and regularizing them during training, models can remain both transparent and secure. Future work will explore adaptive regularization weights and the extension of this method to multimodal AIoT data, while aligning technical metrics with legal frameworks like the GDPR and the EU AI Act.

Summary updated

Abstract

The widespread integration of Artificial Intelligence of Things (AIoT) in smart home environments has amplified the demand for transparent and interpretable machine learning models. To foster user trust and comply with emerging regulatory frameworks, the Explainable AI (XAI) methods, particularly post-hoc techniques such as SHapley Additive exPlanations (SHAP), and Local Interpretable Model-Agnostic Explanations (LIME), are widely employed to elucidate model behavior. However, recent studies have shown that these explanation methods can inadvertently expose sensitive user attributes and behavioral patterns, thereby introducing new privacy risks. To address these concerns, we propose a novel privacy-preserving approach based on SHAP entropy regularization to mitigate privacy leakage in explainable AIoT applications. Our method incorporates an entropy-based regularization objective that penalizes low-entropy SHAP attribution distributions during training, promoting a more uniform spread of feature contributions. To evaluate the effectiveness of our approach, we developed a suite of SHAP-based privacy attacks that strategically leverage model explanation outputs to infer sensitive information. We validate our method through comparative evaluations using these attacks alongside utility metrics on benchmark smart home energy consumption datasets. Experimental results demonstrate that SHAP entropy regularization substantially reduces privacy leakage compared to baseline models, while maintaining high predictive accuracy and faithful explanation fidelity. This work contributes to the development of privacy-preserving explainable AI techniques for secure and trustworthy AIoT applications.
BibTeX
@misc{sharma2025privacy,
  author = {Dilli Prasad Sharma and Xiaowei Sun and Liang Xue and Xiaodong Lin and Pulei Xiong},
  title = {{Privacy-Preserving Explainable AIoT Application via SHAP Entropy Regularization}},
  year = {2025},
  eprint = {2511.09775},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.09775},
}
Figure