arXiv:2610.02504cs.AIOct 2026

Manuscript Offprint

arXiv:2610.02504

HXAI: Hierarchical Privacy-Preserving Explainable AI in Distributed Energy Systems

Poushali Sengupta, Sabita Maharjan, Frank Eliassen, Yan Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Poushali Sengupta, Sabita Maharjan, Frank Eliassen, and Yan Zhang

Abstract—Balancing electricity demand and supply is increasingly difficult due to the inherent intermittency of renewable power generation and the stochastic power consumption. Grid operators require fine-grained, decision-relevant insights into household energy consumption to manage peak loads and design responsive tariffs, but increased transparency at this level raises significant privacy concerns. Traditional methods for explainable AI (XAI) can reveal sensitive information, while standard privacy techniques often reduce the usefulness of explanations. To address this issue, we introduce HXAI, a hierarchical framework that preserves privacy while enabling reasonable explainable analysis for grid-level demand management. HXAI consists of two main components: (1) a local model that generates fine-grained explanations within a secure, private environment, and (2) a zonal model that aggregates these explanations to support grid-level analysis while enforcing privacy through flexible privacy-budget management. We explicitly limit cumulative privacy exposure under repeated operator queries and show that the proposed framework preserves decision-relevant information without compromising household privacy. Experiments on both simulated and real-world energy datasets demonstrate that HXAI provides useful insights for zonal load management while ensuring that appliance-level consumption remains local and is never transmitted to grid operators. Our results show that preserving the semantic structure of explanations, rather than minimizing numerical error, is the key to XAI under differential privacy. This framework provides a way to achieve both privacy and explainability in energy management.

Index Terms—Explainable AI, Differential Privacy, Grid Load Balancing, Smart Grids, Smart Homes, Zonal Aggregation, Privacy-Utility Trade-off.

I. INTRODUCTION

Electricity grids worldwide are transforming due to the rapid integration of renewable energy, increased household electrification, and widespread use of IoT devices [?]. This evolution has increased volatility in both supply and demand due to the inherent intermittency associated with renewable energy sources and increasingly dynamic patterns of household electricity consumption. 1^{1} As a result, timely insights are critical for understanding demand spikes, since even minor changes in local consumption can lead to voltage instability and increased operational challenges [3]. 2^{2} While individual households may seem inconsequential, collectively, their behaviors can significantly influence the load curve, peak demand timing, and stress on distribution networks [4]. Notably, high-consumption devices such as heaters and appliances contribute to peak demand but are often hidden from grid operators due to privacy concerns of household consumption data [5]. This lack of visibility hinders operators' ability to anticipate surges, implement effective demand-response programs, and design stability-focused tariffs [6].

Explainable artificial intelligence (XAI) offers a promising way to improve understanding of energy consumption, using techniques such as SHAP and LIME to identify patterns and the contributions of appliances to demand spikes [7], [8]. However, applying XAI at the household level is challenging due to privacy concerns, as detailed explanations can reveal sensitive data [9]. Simply adding noise for privacy, such as Laplace noise to SHAP values, can undermine the clarity and reliability needed for decision-making [10]. Current privacy-preserving methods, such as federated learning, often provide only broad statistics without in-depth, appliance-level insights and struggle with effective privacy management and complex queries [11]. 3^{3} This leads to three key requirements: (i) fine-grained, decision-relevant explainable signals that do not expose household power consumption behavior, (ii) explainable zonal summaries that remain useful under privacy-preserving noise, and (iii) explicit control of cumulative privacy leakage under repeated analytical queries.

To tackle these challenges, we propose HXAI, a hierarchical framework for privacy-preserving explainability in distributed energy systems, supporting explainable analysis for grid-level demand management. HXAI splits responsibilities into two layers: at the local layer, each household generates SHAP explanations of its device-level consumption within a secure private-databox, ensuring no raw data leakage [12]. At the zonal layer, an aggregator receives differentially private summaries based on a dynamically negotiated privacy budget between households and the energy provider [13]. This dynamic negotiation allows households to control their data exposure while providing operators with meaningful aggregated explanations.

Existing privacy-preserving explainability approaches primarily aim to minimize numerical distortion of explanations under differential privacy. In contrast, HXAI is built around a different principle: semantic stability of explanations. We argue that, under privacy constraints, preserving the structural invariants of explanations, such as feature identity, sign, dominance, and rank ordering, is more critical for explain-

Poushali Sengupta, Sabita Maharjan, Frank Eliassen, and Yan Zhang are with the Department of Informatics, University of Oslo, 0316 Oslo, Norway.

1^{1}Renewable generation introduces natural fluctuations [1], while household demand variability has intensified due to electric heating and cooling, electric vehicles, and other high-power appliances [2].

2^{2}For example, localized demand surges can trigger voltage drops on low-voltage feeders, increase transformer loading, and necessitate conservative reserve margins to maintain grid stability.

3^{3}These approaches typically lack explicit mechanisms for controlling cumulative privacy leakage or supporting fine-grained explanation queries.

ability than preserving exact numerical values [14]. HXAI operationalizes this principle through hierarchical aggregation, ensuring that appliance-level explanations remain noise-free within secure local environments, while only differentially private, aggregated explanation summaries are shared at the zonal level. 4^{4} HXAI fundamentally differs in both objective and abstraction: it does not aim to learn a shared global model. Instead, HXAI treats explanations as first-class analytical objects. Local models remain household-specific, and only differentially private explanation summaries, not parameters, gradients, or predictions, are aggregated. As a result, HXAI enables appliance-aware explainability without requiring model alignment, shared representations, or centralized optimization, which are core assumptions in federated learning.

HXAI also integrates a mechanism for multiple-query privacy accounting, limiting cumulative leakage when operators issue successive queries [15]. Once the privacy threshold is met, households can automatically deny further queries, preventing overexposure. Theoretical analysis confirms that the aggregated SHAP explanations remain unbiased under differential privacy noise [13]. Experimental results show that HXAI maintains explainability and utility-preserving insights, even under strong privacy constraints, allowing grid operators to monitor behavioral trends and manage peak loads while safeguarding household privacy. In summary, HXAI provides a principled and privacy-safe foundation for distributed energy intelligence, addressing the trade-off between household privacy and decision-relevant demand analysis for grid operations. This work makes the following key contributions toward privacy-safe and explainable grid-load balancing in distributed energy systems:

  1. Semantic-Stability–Preserving Explainability under Differential Privacy. We propose HXAI, a hierarchical explainability framework that provides fine-grained, decision-relevant explanations while preserving semantic structure (feature identity, ranking, and directional influence) under differential privacy.

  2. Adaptive, Query-Aware Privacy Control. HXAI introduces an Information Control Agreement (ICA) that governs permitted queries, output granularity, and cumulative privacy budgets to control long-term privacy leakage under repeated analysis.

  3. Utility-Preserving Zonal Visibility with Guarantees. We provide theoretical and empirical evidence that HXAI maintains stable, useful zonal explanations even when individual contributions are protected by privacy-preserving noise. Collectively, these contributions establish HXAI as a practical and theoretically grounded foundation for privacy-preserving, explainable, and operationally relevant demand analysis for distributed smart-home environments.

References (38)