<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>An Explainable AI–Driven Type-2 Fuzzy Decision Support Framework for Sustainable Energy Management in Smart</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Nasehi</surname><given-names>Mojtaba</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<aff id="aff1">Faculty of Electrical Engineering, Isfahan Azad University, Isfahan, Iran.</aff>
</contrib-group>
<abstract><p>The increasing integration of renewable energy resources, distributed energy systems, and intelligent monitoring technologies has transformed traditional power networks into complex smart-grid environments. Although Artificial Intelligence (AI) and Machine Learning (ML) techniques have significantly improved forecasting accuracy and operational efficiency, the lack of transparency in many AI models remains a major challenge for critical energy-management applications. In addition, the inherent uncertainty associated with renewable energy generation, electricity demand, and market conditions further complicates decision-making processes in smart grids. To address these challenges, this paper proposes an Explainable Artificial Intelligence (XAI)–Driven Type-2 Fuzzy Decision Support Framework for sustainable energy management in smart grids. The proposed framework integrates Extreme Gradient Boosting (XGBoost)-based forecasting, SHapley Additive exPlanations (SHAP), and an Interval Type-2 Fuzzy Inference System (IT2FIS) into a unified architecture. First, the forecasting module predicts future electricity demand and renewable energy generation using historical operational and environmental data. Subsequently, SHAP is employed to provide both global and local explanations by quantifying the contribution of input variables to forecasting outcomes. The extracted explainability information is then incorporated into the Type-2 fuzzy decision-support module, which generates interpretable and uncertainty-aware energy-management actions under dynamic operating conditions. The proposed framework aims to simultaneously improve prediction accuracy, enhance transparency, and increase the robustness of decision-making in the presence of uncertainty. Performance evaluation is designed using standard forecasting metrics, including Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²), together with sustainability-oriented indicators such as Renewable Energy Utilization rate (REU), Peak Load Reduction (PLR), Energy Cost Saving Ratio (CSR), and Carbon Emission Reduction (CER). Compared with conventional ML and Type-1 fuzzy approaches, the proposed framework is expected to provide more reliable predictions, greater interpretability, and improved sustainability performance. The findings of this study contribute to the development of trustworthy and human-centered intelligent energy-management systems and provide a promising pathway toward transparent, resilient, and sustainable smart-grid operation.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Explainable artificial intelligence</kwd><kwd>Smart grid</kwd><kwd>Sustainable energy management</kwd><kwd>Type-2 Fuzzy Logic</kwd><kwd>SHAP</kwd><kwd>XGBoost</kwd><kwd>Decision support system</kwd><kwd>Renewable energy</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1"><label>1</label><title>Introduction</title>
<p>The global transition toward sustainable and low-carbon energy systems has significantly accelerated the deployment of smart grid technologies over the past decade. The increasing penetration of renewable energy resources, including solar photovoltaic systems, wind farms, distributed energy storage, and electric vehicles, has transformed conventional power grids into highly interconnected cyber-physical systems. Smart grids integrate advanced sensing, communication, automation, and computational technologies to improve operational efficiency, reliability, resilience, and sustainability. However, the large-scale integration of intermittent renewable energy sources introduces substantial uncertainty into energy generation, demand forecasting, and grid operation, creating new challenges for energy management and decision-making processes <xref ref-type="bibr" rid="ref-1">[1]</xref>.</p>
<p>Recent advances in Artificial Intelligence (AI), Machine Learning (ML), and Deep Learning (DL) have enabled the development of sophisticated predictive models capable of addressing many of these challenges. Intelligent forecasting systems are increasingly employed to estimate electricity demand, renewable energy production, market prices, and system reliability indicators. Models such as Long Short-Term Memory (LSTM), Extreme Gradient Boosting (XGBoost), Random Forests, and Transformer-based architectures have demonstrated remarkable predictive performance in smart-grid applications. Accurate forecasting allows operators to optimize generation schedules, improve demand-response programs, reduce operational costs, and enhance grid stability <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
<p>Despite their impressive predictive capabilities, many advanced AI models suffer from a critical limitation: lack of interpretability. Most state-of-the-art ML models operate as black boxes, producing predictions without providing transparent explanations regarding the factors influencing their decisions. In critical infrastructure environments such as smart grids, where operational decisions directly affect economic performance, energy security, and system reliability, stakeholders require understandable and trustworthy explanations before adopting AI-generated recommendations. The absence of transparency can reduce operator confidence, hinder regulatory acceptance, and increase the risk of inappropriate decision-making under uncertain conditions <xref ref-type="bibr" rid="ref-3">[3]</xref>.</p>
<p>To address these concerns, Explainable Artificial Intelligence (XAI) has emerged as a rapidly growing research field focused on improving the transparency, interpretability, and trustworthiness of AI systems. XAI techniques seek to reveal how ML models generate predictions and identify the most influential factors affecting decision outcomes. Methods such as SHapley Additive exPlanations (SHAP), Local Interpretable Model-Agnostic Explanations (LIME), Integrated Gradients, and counterfactual explanations have been widely applied in energy forecasting and smart-grid analytics. These techniques provide valuable insights into model behavior, enabling domain experts to validate predictions, identify anomalies, and gain confidence in automated decision-support systems <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
<p>Among existing XAI approaches, SHAP has attracted considerable attention due to its strong theoretical foundation based on cooperative game theory and its ability to provide both local and global explanations. SHAP values quantify the contribution of each input feature to individual predictions, thereby facilitating a comprehensive understanding of model behavior. Recent studies have demonstrated the effectiveness of SHAP-based explanations in renewable energy forecasting, electricity load prediction, demand-response management, and power system monitoring. The integration of SHAP with ML models has been shown to improve transparency while maintaining high predictive accuracy, making it particularly suitable for smart-grid applications <xref ref-type="bibr" rid="ref-5">[5]</xref>.</p>
<p>Although explainability improves transparency, smart-grid environments remain inherently uncertain. Renewable energy generation is highly dependent on weather conditions, consumer behavior changes dynamically, and electricity prices fluctuate continuously. Such uncertainties complicate the decision-making process and often reduce the effectiveness of conventional deterministic optimization approaches. Therefore, intelligent decision-support systems must not only provide accurate predictions but also effectively handle ambiguity, vagueness, and uncertainty associated with real-world energy systems <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>Fuzzy logic has long been recognized as a powerful methodology for modeling uncertain and imprecise information. Unlike classical binary logic, fuzzy systems allow variables to possess varying degrees of membership, enabling the representation of linguistic knowledge and expert reasoning. Fuzzy-based decision-support systems have been successfully applied to energy management, renewable energy integration, load balancing, and demand-side management. However, traditional Type-1 fuzzy systems assume precise membership functions, which may not adequately capture the uncertainties present in modern smart-grid environments <xref ref-type="bibr" rid="ref-7">[7]</xref>.</p>
<p>To overcome this limitation, Type-2 Fuzzy Logic Systems (T2FLS) have been introduced as an advanced extension of conventional fuzzy systems. Type-2 fuzzy sets incorporate uncertainty directly into membership functions through a Footprint of Uncertainty (FOU), enabling superior modeling of ambiguity and variability. Numerous studies have demonstrated that Type-2 fuzzy systems outperform Type-1 approaches in complex and uncertain environments, particularly when data quality is limited or expert knowledge is incomplete. Consequently, Type-2 fuzzy inference systems have emerged as promising tools for intelligent energy management and decision support in smart-grid applications <xref ref-type="bibr" rid="ref-8">[8]</xref>.</p>
<p>While both XAI and Type-2 fuzzy logic have independently demonstrated significant benefits, relatively limited research has explored their integration within a unified decision-support framework. Most existing studies focus either on improving forecasting accuracy through explainable ML models or enhancing uncertainty management through fuzzy reasoning mechanisms. Few studies have investigated how knowledge extracted from XAI models can be systematically incorporated into Type-2 fuzzy decision-making processes to support sustainable energy management. This gap is particularly important because explainability and uncertainty management are complementary capabilities that can collectively improve decision quality, transparency, and stakeholder trust <xref ref-type="bibr" rid="ref-9">[9]</xref>.</p>
<p>Furthermore, the growing emphasis on sustainable development and carbon-neutral energy systems has increased the need for intelligent decision-support frameworks capable of optimizing energy utilization while maintaining transparency and accountability. Smart-grid operators must continuously balance multiple objectives, including minimizing operational costs, maximizing Renewable Energy Utilization (REU), reducing carbon emissions, maintaining system reliability, and ensuring consumer satisfaction. Achieving these objectives requires decision-support systems that can effectively combine predictive intelligence with human-understandable reasoning mechanisms <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<p>Motivated by these challenges, this study proposes an XAI–Driven Type-2 Fuzzy Decision Support Framework for Sustainable Energy Management in Smart Grids. The proposed framework integrates ML-based forecasting, SHAP-driven interpretability analysis, and Interval Type-2 Fuzzy Inference Systems (IT2FIS) into a unified architecture for intelligent decision support. The forecasting component predicts future electricity demand and renewable energy generation, while the explainability component identifies the most influential variables affecting predictions. The extracted knowledge is subsequently incorporated into a Type-2 fuzzy decision engine that generates interpretable and uncertainty-aware energy management recommendations.</p>
<p>The primary contributions of this study can be summarized as follows.</p>
<p>I. Development of a hybrid explainable forecasting framework for smart-grid energy management.</p>
<p>II. Integration of SHAP-based explainability mechanisms with ML prediction models.</p>
<p>III. Design of an Interval Type-2 Fuzzy Decision Support System capable of handling uncertainty in energy management scenarios.</p>
<p>IV. Enhancement of transparency and trustworthiness in AI-driven smart-grid decision-making.</p>
<p>V. Promotion of sustainable energy utilization through intelligent and interpretable operational recommendations.</p>
<p>The remainder of this paper is organized as follows. Section 2 reviews recent literature on XAI, smart-grid forecasting, and Type-2 fuzzy systems. Section 3 presents the proposed framework and system architecture. Section 4 describes the mathematical formulation and fuzzy inference mechanism. Section 5 outlines the experimental design and evaluation metrics. Section 6 discusses expected outcomes and performance evaluation, while Section 7 concludes the paper and identifies directions for future research.</p>
</sec>
<sec id="sec-2"><label>2</label><title>Literature Review</title>
<sec id="sec-3"><label>2.1</label><title>Explainable Artificial Intelligence in Smart Grids</title>
<p>The rapid adoption of AI and ML technologies in modern smart grids has significantly improved forecasting accuracy, operational efficiency, fault diagnosis, and demand-response management. However, the increasing complexity of DL and ensemble learning models has introduced a major challenge: the lack of interpretability. While advanced models often achieve superior predictive performance, their black-box nature makes it difficult for operators and decision-makers to understand the rationale behind generated predictions and recommendations. This limitation is particularly critical in smart-grid environments where operational decisions directly affect reliability, economic performance, and energy security. Recent reviews have identified explainability as one of the most important requirements for trustworthy AI deployment in energy systems <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
<p>XAI has emerged as a promising solution to address these concerns. XAI techniques aim to provide transparent explanations regarding how ML models generate predictions and which variables influence decision outcomes. Among existing methods, SHAP and LIME are the most frequently adopted approaches in energy-related applications. SHAP is particularly attractive because it provides both global and local interpretability while maintaining a strong theoretical foundation derived from cooperative game theory. Recent studies have demonstrated the effectiveness of SHAP in electricity demand forecasting, renewable energy prediction, fault detection, and demand-response optimization. These explanations enable operators to validate model outputs and identify influential variables such as weather conditions, electricity prices, and consumer behavior patterns <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
<p>Furthermore, explainability has become increasingly important because regulatory agencies and energy stakeholders demand transparency in AI-assisted decision-making processes. Interpretable models improve stakeholder trust, facilitate human oversight, and support compliance with emerging AI governance frameworks. Consequently, XAI is now considered a critical component of next-generation smart-grid intelligence systems rather than merely an optional analytical tool <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
</sec>
<sec id="sec-4"><label>2.2</label><title>Machine Learning for Energy Forecasting and Management</title>
<p>Energy forecasting represents one of the most important applications of AI in smart-grid environments. Accurate prediction of electricity demand, renewable energy generation, and market prices enables grid operators to optimize resource allocation and improve system stability. Recent studies have shown that ML models such as XGBoost, Random Forest, Artificial Neural Networks, and LSTM networks outperform many traditional statistical forecasting methods in terms of prediction accuracy and adaptability to nonlinear energy consumption patterns <xref ref-type="bibr" rid="ref-11">[11]</xref>.</p>
<p>Hybrid intelligent systems have gained particular attention because they combine the predictive capabilities of ML with the interpretability of fuzzy logic. For example, Wang and Nishter <xref ref-type="bibr" rid="ref-11">[11]</xref> proposed a neuro-fuzzy framework for real-time load forecasting and adaptive control in smart grids. Their results demonstrated that integrating neural networks with fuzzy reasoning improved forecasting performance while maintaining interpretability and adaptability under dynamic operating conditions. Such findings indicate that hybrid approaches may provide a suitable foundation for developing intelligent decision-support systems in modern energy infrastructures.</p>
<p>Despite these advances, many forecasting models still focus exclusively on predictive accuracy while neglecting interpretability and uncertainty management. As a result, there remains a need for integrated frameworks capable of simultaneously addressing prediction accuracy, explainability, and decision uncertainty.</p>
</sec>
<sec id="sec-5"><label>2.3</label><title>Type-2 Fuzzy Logic for Energy Management</title>
<p>Uncertainty is an inherent characteristic of smart-grid environments due to fluctuating renewable energy production, changing consumer behavior, weather variability, and market dynamics. Conventional optimization methods often struggle to manage these uncertainties effectively. Fuzzy logic has therefore become a widely adopted methodology for energy management because it enables the representation of vague, uncertain, and linguistic information through fuzzy sets and inference rules.</p>
<p>Traditional Type-1 Fuzzy Logic Systems (T1FLS) have demonstrated effectiveness in energy management applications; however, they assume precise membership functions and may be insufficient when uncertainty levels are high. To overcome this limitation, T2FLS were developed. Type-2 fuzzy sets incorporate uncertainty directly into membership functions through the FOU, enabling more robust reasoning under ambiguous conditions <xref ref-type="bibr" rid="ref-12">[12]</xref>.</p>
<p>Recent research has demonstrated the advantages of Type-2 fuzzy systems in various smart-energy applications. Aljohani <xref ref-type="bibr" rid="ref-12">[12]</xref> proposed an Intelligent Type-2 Fuzzy Logic Controller for hybrid microgrid energy management with electric vehicle integration. The results showed improved energy utilization, enhanced system stability, and reduced operational costs under uncertain renewable generation conditions. Similarly, robust Type-2 fuzzy controllers have been successfully applied to photovoltaic microgrids and battery energy storage systems, outperforming traditional Type-1 fuzzy approaches in power-quality improvement and uncertainty management.</p>
<p>In smart-home environments, Type-2 fuzzy controllers have also been employed to coordinate renewable energy sources, battery storage systems, and electric vehicles. Experimental results demonstrated reductions in electricity consumption, peak demand, and operational costs while maintaining user comfort and system reliability. These findings suggest that Type-2 fuzzy reasoning is particularly suitable for sustainable energy management applications where uncertainty is unavoidable.</p>
</sec>
<sec id="sec-6"><label>2.4</label><title>Integration of Explainable Artificial Intelligence and Fuzzy Decision-Making</title>
<p>Although XAI and Type-2 fuzzy systems have individually demonstrated significant benefits, research integrating these two paradigms remains relatively limited. Existing studies generally focus on either explainable forecasting or uncertainty-aware decision-making. Very few frameworks utilize knowledge extracted from explainable ML models to enhance fuzzy reasoning and decision-support processes.</p>
<p>This gap is particularly significant because explainability and fuzzy reasoning possess complementary characteristics. XAI techniques can identify the most influential variables affecting prediction outcomes, while Type-2 fuzzy systems can use this knowledge to generate transparent and uncertainty-aware decisions. The combination of these approaches has the potential to improve trustworthiness, robustness, and interpretability simultaneously. Recent reviews have identified the integration of XAI, uncertainty quantification, and human-centered decision support as one of the most promising research directions in intelligent energy systems <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
<p>Therefore, the development of a unified framework that combines ML forecasting, SHAP-based explanations, and IT2FIS represents an important research opportunity. Such a framework can support sustainable energy management by providing accurate predictions, transparent explanations, and robust decisions under uncertainty.</p>
</sec>
<sec id="sec-7"><label>2.5</label><title>Research Gap</title>
<p>Based on the reviewed literature, three major research gaps can be identified:</p>
<p>I. Most smart-grid forecasting studies prioritize prediction accuracy while neglecting explainability.</p>
<p>II. Existing Type-2 fuzzy energy-management systems rarely exploit information extracted from XAI models.</p>
<p>III. Limited research has investigated integrated frameworks that simultaneously address forecasting, interpretability, uncertainty management, and sustainable energy optimization.</p>
<p>To address these limitations, this study proposes an XAI–Driven Type-2 Fuzzy Decision Support Framework that integrates SHAP-based explainability with Interval Type-2 fuzzy reasoning for sustainable smart-grid energy management.</p>
</sec>
</sec>
<sec id="sec-8"><label>3</label><title>Proposed Framework</title>
<sec id="sec-9"><label>3.1</label><title>Framework Overview</title>
<p>The proposed framework aims to develop a transparent, uncertainty-aware, and intelligent decision-support system for sustainable energy management in smart-grid environments. The framework integrates three complementary technologies: ML-based forecasting, XAI, and IT2FIS. The rationale behind this integration is that accurate predictions alone are insufficient for critical energy infrastructures. Instead, decision-makers require both interpretable explanations and robust mechanisms for handling uncertainty.</p>
<p>As illustrated, the proposed architecture consists of four interconnected layers:</p>
<p>I. Data Acquisition and Preprocessing Layer II. ML Forecasting Layer III. Explainability Layer IV. Type-2 Fuzzy Decision Support Layer The framework continuously collects operational data from smart-grid infrastructures and converts them into actionable energy-management recommendations. This architecture aligns with recent trends in trustworthy AI and explainable smart-grid intelligence, which emphasize transparency, human-centered decision-making, and uncertainty-aware control mechanisms.</p>
</sec>
<sec id="sec-10"><label>3.2</label><title>Data Acquisition and Preprocessing Layer</title>
<p>The first layer gathers real-time and historical information from multiple smart-grid components. The collected variables include:</p>
<p> Historical electricity demand  Electricity market prices  Solar irradiance  Wind speed  Ambient temperature  Relative humidity  Battery State of Charge (SOC)  Renewable energy generation output  Electric vehicle charging demand</p>
<p>Because smart-grid data are typically heterogeneous, noisy, and incomplete, a preprocessing stage is implemented before model training.</p>
<p>The preprocessing pipeline consists of:</p>
<p>Data cleaning: missing values are handled using interpolation or K-nearest neighbor imputation techniques. Outliers are detected through interquartile range analysis and z-score methods.</p>
<p>Feature engineering: additional features are extracted from raw data, including:</p>
<p> Hour of day  Day of week  Peak/off-peak indicator  Seasonal index  Renewable penetration ratio</p>
<p>Data normalization: all variables are normalized using Min-Max scaling:</p>
<p>X_{norm}=\frac{X-X_{min}}{X_{max}-X_{min}}</p>
<p>This normalization improves learning stability and convergence during model training.</p>
</sec>
<sec id="sec-11"><label>3.3</label><title>Machine Learning Forecasting Layer</title>
<p>The second layer is responsible for predicting future energy conditions. Recent studies indicate that advanced ML models significantly outperform traditional statistical forecasting approaches in smart-grid applications. Hybrid forecasting systems have demonstrated superior performance in capturing nonlinear energy consumption patterns and renewable generation fluctuations.</p>
<p>In the proposed framework, XGBoost is selected as the primary forecasting model because of its:</p>
<p> High predictive accuracy  Computational efficiency  Robustness against overfitting  Compatibility with SHAP explanations</p>
<p>The forecasting model receives the preprocessed feature vector:</p>
<p>X_t = {D_t, T_t, H_t, P_t, S_t, W_t}</p>
<p> (D_t) = historical demand  (T_t) = temperature  (H_t) = humidity  (P_t) = electricity price  (S_t) = solar irradiance  (W_t) = wind speed</p>
<p>The forecasting function is expressed as:</p>
<p>\hat{Y}_{t+1}=f(X_t) \hat{Y}_{t+1}</p>
<p>represents predicted electricity demand or renewable generation for the next time interval.</p>
<p>The forecasting output serves as the primary input to the explainability and decision-support modules.</p>
</sec>
<sec id="sec-12"><label>3.4</label><title>Explainability Layer</title>
<p>The third layer addresses one of the major limitations of modern ML systems: lack of interpretability. Recent reviews emphasize that explainability is becoming an essential requirement for trustworthy smart-grid applications because operators must understand why a prediction was generated before taking corrective actions. SHAP has emerged as one of the most reliable explanation techniques in energy forecasting due to its theoretical consistency and ability to provide both local and global interpretations.</p>
<p>The proposed framework adopts SHAP to quantify feature contributions.</p>
<p>For a prediction (f(x)), the SHAP explanation is represented as:</p>
<p>f(x)=\phi_0+\sum_{i=1}^{M}\phi_i</p>
<p> (\phi_0) denotes the average prediction,  (\phi_i) represents the contribution of feature (i),  (M) is the number of input variables.</p>
<p>The explainability layer generates:</p>
<p>Global explanations: identification of the most influential variables affecting forecasting performance across the entire dataset.</p>
<p>Local explanations: interpretation of individual predictions.</p>
<p>Temporal explanations: analysis of feature importance changes over time.</p>
<p>The extracted knowledge is subsequently transferred to the fuzzy decision-support module, enabling the incorporation of explainable information into the decision-making process.</p>
</sec>
<sec id="sec-13"><label>3.5</label><title>Interval Type-2 Fuzzy Decision Support Layer</title>
<p>Although explainability improves transparency, uncertainty remains unavoidable in smart-grid operations. Renewable generation, consumer behavior, and electricity prices are inherently uncertain and difficult to model precisely.</p>
<p>To address this challenge, the proposed framework employs an IT2FIS.</p>
<p>Recent studies have shown that Type-2 fuzzy systems outperform conventional Type-1 approaches in energy-management applications because they explicitly represent uncertainty through the FOU. This capability leads to more robust decision-making under dynamic operating conditions.</p>
<p>The fuzzy decision engine receives four inputs:</p>
<p>I. Forecasted Demand II. Renewable Energy Availability III. Electricity Price IV. Battery SOC The output variable is:</p>
<p>Energy Management Action Level (EMAL): with five linguistic states:</p>
<p>I. Very Low II. Low III. Medium IV. High V. Critical Fuzzy rule base: example rules include:</p>
<p>Rule 1.</p>
<p>IF Demand is High AND Renewable Generation is Low AND Electricity Price is High THEN Energy Saving Action is Critical Rule 2.</p>
<p>IF Demand is Medium AND Renewable Generation is High THEN Energy Saving Action is Low Rule 3.</p>
<p>IF Battery SOC is High AND Demand is High THEN Battery Discharge Action is High The fuzzy reasoning process consists of:</p>
<p> Fuzzification  Rule Evaluation  Type Reduction  Defuzzification</p>
<p>The final crisp output determines the optimal energy-management strategy.</p>
</sec>
<sec id="sec-14"><label>3.6</label><title>Integrated Decision-Making Process</title>
<p>The complete decision-support process operates as follows:</p>
<p>Step 1. Collect smart-grid operational data.</p>
<p>Step 2. Perform preprocessing and feature extraction.</p>
<p>Step 3. Predict future demand and renewable generation using XGBoost.</p>
<p>Step 4. Generate SHAP explanations.</p>
<p>Step 5. Extract influential factors.</p>
<p>Step 6. Feed explainable information into the IT2FIS engine.</p>
<p>Step 7. Generate energy-management recommendations.</p>
<p>Step 8. Execute operational actions and update the system continuously.</p>
<p>This integration enables simultaneous achievement of:</p>
<p> High forecasting accuracy,  Explainability,  Uncertainty management,  Sustainable energy utilization.</p>
</sec>
<sec id="sec-15"><label>3.7</label><title>Expected Advantages of the Proposed Framework</title>
<p>Compared with existing smart-grid decision-support systems, the proposed framework offers several advantages:</p>
<p> Improved forecasting accuracy through ML.</p>
<p> Transparent prediction interpretation through SHAP.</p>
<p> Robust uncertainty management using Interval Type-2 Fuzzy Logic.</p>
<p> Increased operator trust and acceptance.</p>
<p> Enhanced REU.</p>
<p> Reduced operational costs and carbon emissions.</p>
<p>Consequently, the framework provides a comprehensive solution for trustworthy and sustainable smart-grid energy management.</p>
</sec>
</sec>
<sec id="sec-16"><label>4</label><title>Mathematical Formulation</title>
<sec id="sec-17"><label>4.1</label><title>Overview of the Mathematical Framework</title>
<p>The proposed XAI–Driven Type-2 Fuzzy Decision Support Framework integrates three mathematical components: 1) ML-based forecasting, 2) SHAP-based explainability analysis, and 3) IT2FIS-based decision-making. The objective is to transform raw smart-grid data into interpretable and uncertainty-aware energy management recommendations. Recent studies emphasize that future smart-grid intelligence systems should combine predictive accuracy, explainability, and uncertainty quantification within a unified framework to support trustworthy operational decision-making.</p>
<p>Let the smart-grid input vector at time (t) be defined as:</p>
<p>X_t = [D_t, T_t, H_t, S_t, W_t, P_t, SOC_t]</p>
<p> (D_t): electricity demand,  (T_t): ambient temperature,  (H_t): relative humidity,  (S_t): solar irradiance,  (W_t): wind speed,  (P_t): electricity price,  (SOC_t): battery state of charge.</p>
<p>The objective of the forecasting model is to estimate future demand and renewable generation:</p>
<p>\hat{Y}_{t+1}=f(X_t)</p>
<p>where (f(\cdot)) denotes the ML forecasting function.</p>
</sec>
<sec id="sec-18"><label>4.2</label><title>Forecasting Model Formulation</title>
<p>In the proposed framework, XGBoost is employed as the forecasting engine because of its robustness, scalability, and compatibility with explainability techniques. XGBoost constructs an ensemble of regression trees and generates predictions by minimizing a regularized objective function.</p>
<p>The prediction model is expressed as:</p>
<p>\hat{Y}{i}=\sum{k=1}^{K} f_k(X_i)</p>
<p> (K) represents the number of decision trees,  (f_k) denotes the prediction generated by tree (k).</p>
<p>The corresponding optimization objective is:</p>
<p>Obj=\sum_{i=1}^{n}l(y_i,\hat{y}i)+\sum{k=1}^{K}\Omega(f_k)</p>
<p> (l(\cdot)) denotes the loss function,  (\Omega(\cdot)) represents the regularization term used to control model complexity.</p>
<p>The forecasting model generates:</p>
<p> Predicted electricity demand.</p>
<p> Predicted renewable energy generation.</p>
<p> Predicted energy imbalance indicators.</p>
<p>Accurate forecasting provides the foundation for subsequent explainability and decision-support processes. Recent smart-grid forecasting studies demonstrate that ML models significantly improve prediction accuracy when compared with conventional statistical approaches.</p>
</sec>
<sec id="sec-19"><label>4.3</label><title>SHAP-Based Explainability Formulation</title>
<p>To improve transparency and trustworthiness, the framework employs SHAP.</p>
<p>SHAP quantifies the contribution of each feature to a prediction based on Shapley values derived from cooperative game theory. Recent reviews identify SHAP as one of the most reliable and widely adopted explainability techniques in energy forecasting and smart-grid intelligence.</p>
<p>For an instance (x), the prediction is represented as:</p>
<p>f(x)=\phi_0+\sum_{i=1}^{M}\phi_i</p>
<p> (\phi_0) is the average model prediction,  (\phi_i) is the contribution of feature (i),  (M) is the number of input features.</p>
<p>The Shapley value is calculated as:</p>
<p>\phi_i=\sum_{S\subseteq N\setminus {i}} \frac{|S|!(M-|S|-1)!}{M!} [f(S\cup {i})-f(S)]</p>
<p> (S) represents a subset of input features,  (N) is the complete feature set.</p>
<p>The resulting SHAP values provide:</p>
<p>Global importance:</p>
<p>GI_i=\frac{1}{n}\sum_{j=1}^{n}|\phi_{ij}|</p>
<p>which measures the overall influence of feature (i) across all observations.</p>
<p>Local importance:</p>
<p>LI_i=\phi_i</p>
<p>which explains a specific prediction.</p>
<p>The obtained SHAP information is transferred to the fuzzy decision-support layer, enabling explainability-aware decision-making.</p>
</sec>
<sec id="sec-20"><label>4.4</label><title>Interval Type-2 Fuzzy Set Representation</title>
<p>Although explainability provides transparency, smart-grid environments remain highly uncertain due to renewable intermittency, weather variability, and consumer behavior fluctuations.</p>
<p>To model uncertainty explicitly, the framework employs Interval Type-2 Fuzzy Sets (IT2FS). Recent energy-management studies demonstrate that IT2FLS provides superior robustness compared with Type-1 fuzzy systems under uncertain operating conditions.</p>
<p>An IT2FS (\tilde{A}) is defined as:</p>
<p>\tilde{A}= \left{ (x,u),\mu_{\tilde{A}}(x,u) \right}</p>
<p>u\in J_x\subseteq[0,1]</p>
<p>The uncertainty is represented through the FOU:</p>
<p>FOU(\tilde{A})= \bigcup_{x\in X}J_x</p>
<p>The FOU is bounded by:</p>
<p>Upper Membership Function (UMF):</p>
<p>\overline{\mu}_{A}(x)</p>
<p>Lower Membership Function (LMF):</p>
<p>\underline{\mu}_{A}(x)</p>
<p>The interval between UMF and LMF captures uncertainty associated with linguistic variables.</p>
</sec>
<sec id="sec-21"><label>4.5</label><title>Fuzzification Process</title>
<p>The fuzzy decision-support system utilizes four inputs:</p>
<p>[D_f,R_g,P_e,SOC]</p>
<p> (D_f): forecasted demand,  (R_g): renewable generation,  (P_e): electricity price,  (SOC): battery state of charge.</p>
<p>Each variable is represented by five linguistic terms:</p>
<p>VL,L,M,H,VH</p>
<p>corresponding to:</p>
<p> Very Low,  Low,  Medium,  High,  Very High.</p>
<p>Gaussian interval Type-2 membership functions are employed:</p>
<p>\mu(x)= \exp \left( -\frac{(x-c)^2}{2\sigma^2} \right)</p>
<p> (c) is the center,  (\sigma) is the standard deviation.</p>
</sec>
<sec id="sec-22"><label>4.6</label><title>Fuzzy Rule Inference</title>
<p>The fuzzy knowledge base consists of expert-defined IF–THEN rules.</p>
<p>A typical rule is:</p>
<p>R_i:</p>
<p>IF\ D_f\ is\ High \ AND R_g\ is\ Low \ AND P_e\ is\ High \ THEN EMAL\ is\ Critical</p>
<p>The firing strength of Rule 1 is computed as:</p>
<p>w_i= \mu_{D_f} \cdot \mu_{R_g} \cdot \mu_{P_e} \cdot \mu_{SOC}</p>
<p>For interval Type-2 systems:</p>
<p>w_i= [\underline{w_i},\overline{w_i}]</p>
<p> (\underline{w_i}) denotes lower firing strength,  (\overline{w_i}) denotes upper firing strength.</p>
</sec>
<sec id="sec-23"><label>4.7</label><title>Type Reduction Using Karnik–Mendel Algorithm</title>
<p>A unique characteristic of Type-2 fuzzy systems is the type-reduction stage.</p>
<p>The framework employs the Karnik–Mendel (KM) algorithm, which remains the most widely adopted approach for centroid type reduction in interval Type-2 fuzzy systems. Recent studies continue to improve computational efficiency of KM-based procedures while preserving accuracy.</p>
<p>The left and right centroids are computed as:</p>
<p>Y_L= \frac{\sum_{i=1}^{N}x_iw_i^{L}} {\sum_{i=1}^{N}w_i^{L}}</p>
<p>Y_R= \frac{\sum_{i=1}^{N}x_iw_i^{R}} {\sum_{i=1}^{N}w_i^{R}}</p>
<p>The type-reduced interval is:</p>
<p>Y_{TR}=[Y_L,Y_R]</p>
</sec>
<sec id="sec-24"><label>4.8</label><title>Defuzzification</title>
<p>The final crisp decision output is obtained through centroid averaging:</p>
<p>\frac{Y_L+Y_R}{2}</p>
<p>The resulting value corresponds to the EMAL.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Decision levels.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:15:66,599,537.1,701.2"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-25"><label>4.9</label><title>Multi-Objective Sustainability Index</title>
<p>To evaluate the effectiveness of the proposed framework, a sustainability index is introduced:</p>
<p>SI= w_1REU+ w_2PCR+ w_3CER+ w_4CSR</p>
<p> REU = Renewable Energy Utilization,  PCR = Peak Consumption Reduction,  CER = Carbon Emission Reduction,  CSR = Cost Saving Ratio.</p>
<p>Subject to:</p>
<p>\sum_{i=1}^{4}w_i=1</p>
<p>This index provides a unified measure of sustainability performance and enables comparison with benchmark energy-management approaches.</p>
</sec>
<sec id="sec-26"><label>4.10</label><title>Computational Workflow</title>
<p>The complete mathematical workflow can be summarized as follows:</p>
<p> Acquire smart-grid data.</p>
<p> Forecast future demand and renewable generation using XGBoost.</p>
<p> Generate SHAP explanations and feature importance values.</p>
<p> Transform prediction outputs into fuzzy linguistic variables.</p>
<p> Execute Interval Type-2 fuzzy inference.</p>
<p> Apply KM type reduction.</p>
<p> Perform defuzzification.</p>
<p> Generate final energy-management recommendations.</p>
<p>This formulation establishes a mathematically rigorous and explainable framework capable of supporting sustainable smart-grid energy management under uncertainty.</p>
</sec>
</sec>
<sec id="sec-27"><label>5</label><title>Experimental Design</title>
<p>To validate the proposed XAI–Driven Type-2 Fuzzy Decision Support Framework, experiments are conducted using publicly available smart-grid datasets containing electricity demand, renewable energy generation, weather variables, and electricity price information.</p>
<p>The dataset is divided into training (70%), validation (15%), and testing (15%) subsets. After data preprocessing, the XGBoost model is employed to predict future electricity demand and renewable energy generation. SHAP is then applied to explain model predictions and identify the most influential features affecting forecasting performance. The extracted explainability information is subsequently incorporated into the IT2FIS to generate energy management decisions. Recent studies have highlighted the effectiveness of combining XAI and intelligent energy management techniques in smart-grid environments.</p>
<p>Evaluation Metrics The forecasting performance is assessed using four commonly adopted metrics:</p>
<p>I. Mean Absolute Error (MAE) II. Root Mean Square Error (RMSE) III. Mean Absolute Percentage Error (MAPE) IV. Coefficient of Determination ((R^2)) The decision-support module is evaluated using sustainability-oriented indicators:</p>
<p>I. REU II. Peak Load Reduction (PLR) III. Energy Cost Saving Ratio (CSR) IV. Carbon Emission Reduction (CER) The proposed framework is compared with three benchmark approaches:</p>
<p>I. Conventional XGBoost forecasting model.</p>
<p>II. Type-1 fuzzy decision-support system.</p>
<p>III. Rule-based energy management strategy.</p>
<p>Finally, a sensitivity analysis is performed under different renewable energy penetration levels, electricity price variations, and battery storage capacities to evaluate the robustness of the proposed framework under uncertain operating conditions. The expected outcome is improved forecasting accuracy, enhanced interpretability, better uncertainty management, and more sustainable energy utilization compared with existing approaches.</p>
</sec>
<sec id="sec-28"><label>6</label><title>Expected Results</title>
<p>The proposed XAI–Driven Type-2 Fuzzy Decision Support Framework is expected to improve forecasting accuracy, decision transparency, and uncertainty management in smart-grid environments. By integrating XGBoost forecasting, SHAP-based explainability, and Interval Type-2 fuzzy reasoning, the framework can provide more reliable and interpretable energy management recommendations compared with conventional approaches. Recent studies have emphasized that combining XAI with intelligent energy-management systems enhances trustworthiness and supports more effective operational decision-making in smart grids. From the forecasting perspective, the proposed model is expected to achieve lower MAE, RMSE, and MAPE values than traditional ML models due to its ability to capture nonlinear relationships among demand, weather conditions, renewable generation, and electricity prices. In addition, SHAP analysis is expected to identify the most influential variables affecting energy demand and renewable energy generation, thereby improving model interpretability and supporting human-centered decision-making.</p>
<p>The IT2FIS is expected to improve decision quality under uncertain operating conditions. By explicitly modeling uncertainty through the FOU, the framework can generate more robust energy-management actions when renewable generation fluctuates or demand patterns change unexpectedly. This capability is particularly important in smart grids with high penetration of renewable energy resources.</p>
<p>Furthermore, the proposed framework is expected to increase REU, reduce peak-load demand, lower operational costs, and contribute to CER. The integration of explainability and uncertainty-aware reasoning can also increase operator confidence and facilitate the adoption of AI-based decision-support systems in critical energy infrastructures. Overall, the proposed approach is anticipated to provide a transparent, sustainable, and trustworthy solution for next-generation smart-grid energy management.</p>
</sec>
<sec id="sec-29"><label>7</label><title>Conclusion</title>
<p>This study proposed an XAI–Driven Type-2 Fuzzy Decision Support Framework for sustainable energy management in smart grids. The framework integrates XGBoost-based forecasting, SHAP explainability, and an IT2FIS to provide accurate, transparent, and uncertainty-aware decision support. By combining predictive intelligence with explainable reasoning, the proposed approach addresses two major challenges of modern smart-grid systems: the lack of transparency in AI models and the presence of uncertainty in energy management processes. Recent studies emphasize that explainability, trustworthiness, and uncertainty management are becoming essential requirements for the deployment of AI in critical energy infrastructures. The proposed framework is expected to improve forecasting performance, enhance operator trust through interpretable predictions, and support more robust decision-making under fluctuating renewable energy generation and dynamic demand conditions. Furthermore, the integration of SHAP explanations with Type-2 fuzzy reasoning enables the transformation of ML outputs into human-understandable and actionable energy-management recommendations. This capability can contribute to increased REU, reduced operational costs, improved grid reliability, and lower carbon emissions.</p>
<p>Future research may focus on real-time implementation of the framework in practical smart-grid environments, integration with reinforcement learning and digital-twin technologies, and extension toward multi-agent energy management systems. In addition, investigating distributed and edge-based XAI architectures could further improve scalability, responsiveness, and resilience in next-generation smart grids. Overall, the proposed framework provides a promising foundation for the development of trustworthy, explainable, and sustainable intelligent energy management systems capable of supporting the ongoing transition toward smart and low-carbon power networks.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Yussuf, R. O., &amp; Asfour, O. S. (2024). Applications of artificial intelligence for energy efficiency throughout the building lifecycle: An overview. Energy and buildings, 305, 113903. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.enbuild.2024.113903">https://doi.org/10.1016/j.enbuild.2024.113903</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>E, M., R, N., &amp; Satheesh, R. (2025). Deep learning-based load forecasting in smart grid. 2025 emerging technologies for intelligent systems (ETIS) (pp. 1–5). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ETIS64005.2025.10961160">https://doi.org/10.1109/ETIS64005.2025.10961160</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Yigit, Y., Ferrag, M. A., Ghanem, M. C., Sarker, I. H., Maglaras, L. A., Chrysoulas, C., … ., &amp; Janicke, H. (2025). Generative AI and LLMs for Critical infrastructure protection: Evaluation benchmarks, agentic AI, challenges, and opportunities. Sensors, 25(6), 1–40. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s25061666">https://doi.org/10.3390/s25061666</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Kandula, R., Dandamudi, J. T., Raj, R. D. A., Yanamala, R. M. R., &amp; Prakasha, K. K. (2026). Explainable AI for smart grid intelligence: A comprehensive review of techniques, applications and future directions. Energy and ai, 25, 100820. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.egyai.2026.100820">https://doi.org/10.1016/j.egyai.2026.100820</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Song, Z., Cao, S., &amp; Yang, H. (2024). An interpretable framework for modeling global solar radiation using tree-based ensemble machine learning and Shapley additive explanations methods. Applied energy, 364, 123238. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.apenergy.2024.123238">https://doi.org/10.1016/j.apenergy.2024.123238</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Hu, H., Yu, S. S., &amp; Trinh, H. (2024). A review of uncertainties in power systems—modeling, impact, and mitigation. Designs, 8(1), 1–27. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/designs8010010">https://doi.org/10.3390/designs8010010</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Bai, K., Zhang, W., Wen, S., Zhao, C., Meng, W., Zeng, Y., &amp; Jia, D. (2024). A data-knowledge-driven interval type-2 fuzzy neural network with interpretability and self-adaptive structure. Information sciences, 660, 120133. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.ins.2024.120133">https://doi.org/10.1016/j.ins.2024.120133</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Nishanth, F. P., Dash, S. K., &amp; Mahapatro, S. R. (2024). Critical study of type-2 fuzzy logic control from theory to applications: A state-of-the-art comprehensive survey. E-prime - advances in electrical engineering, electronics and energy, 10, 100771. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.prime.2024.100771">https://doi.org/10.1016/j.prime.2024.100771</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Niskanen, V. A. (2024). Methodological aspects on integrating fuzzy systems with explainable artificial intelligence. In Advances in artificial intelligence-empowered decision support systems: Papers in honour of professor john psarras (pp. 415–438). Cham: Springer Nature Switzerland. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-031-62316-5_16">https://doi.org/10.1007/978-3-031-62316-5_16</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>International Energy Agency (IEA). (2022). World energy outlook 2022. <ext-link ext-link-type="uri" xlink:href="https://www.iea.org/reports/world-energy-outlook-2024">https://www.iea.org/reports/world-energy-outlook-2024</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Wang, F., &amp; Nishter, Z. (2024). Real-time load forecasting and adaptive control in smart grids using a hybrid neuro-fuzzy approach. Energies, 17(11), 1–24. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/en17112539">https://doi.org/10.3390/en17112539</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Aljohani, T. (2024). Intelligent Type-2 Fuzzy logic controller for hybrid microgrid energy management with different modes of EVs integration. Energies, 17(12), 1–25. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/en17122949">https://doi.org/10.3390/en17122949</ext-link></mixed-citation></ref>
</ref-list></back>
</article>