Abstract
Amid global sustainability transitions, campus energy systems confront growing pressure to balance operational efficiency, resilience to extreme weather events, and sustainable development education. This study proposes an artificial intelligence-driven framework for smart campus microgrids that synergistically advances environmental sustainability and disaster resilience, while deepening students’ understanding of sustainable development. The framework integrates an enhanced multi-scale gated temporal attention network (MS-GTAN+) to realize end-to-end meteorological hazard-state recognition for adaptive dispatch mode selection. Compared with Transformer and Informer baselines, MS-GTAN+ reduces prediction RMSE by approximately 48.5% for wind speed and 46.0% for precipitation while maintaining a single-sample inference time of only 1.82 ms. For daily operations, a multi-intelligence co-optimization algorithm dynamically balances economic efficiency with carbon reduction objectives. During disaster scenarios, an improved PageRank algorithm incorporating functional necessity and temporal sensitivity enables precise identification of critical loads and adaptive power redistribution, achieving an average critical-load assurance rate of approximately 75%, nearly doubling the performance of the traditional topology-based method. Furthermore, the framework bridges the divide between theoretical knowledge and educational practice via an educational digital twin platform. Simulation results demonstrate that the framework substantially improves carbon footprint reduction, resilience to power disruptions, and student sustainability competency development. By unifying technical innovation with pedagogical advancement, this study offers a holistic model for educational institutions seeking to advance sustainability transitions while preparing the next generation of sustainability leaders.
1. Introduction
A spectrum of interconnected operational challenges exists for campus microgrid development, as shown in Figure 1, encompassing supply intermittency, resilience pressures under extreme events, and the heterogeneous functional demands of campus environments. The global push for dual-carbon goals and smart campus development has elevated sustainable campus energy management to a critical priority area [1,2]. Campus energy systems, serving diverse functions ranging from teaching and research to daily operations, represent complex consumption entities with significant temporal variability [3]. This complexity intensifies with the high penetration of intermittent renewable sources, creating fundamental supply-demand mismatches [4]. Furthermore, the increasing frequency of extreme weather events challenges campus power resilience and necessitates maintaining an uninterrupted supply for critical functions during disasters. The educational mission further requires these systems to transcend mere energy provision to become platforms cultivating student innovation and practical skills [5].
Figure 1.
Challenges in the development of campus microgrid systems. Source: Drafted by authors.
From a sustainability perspective, campus microgrids are evolving into multi-objective infrastructures that deliver environmental, social, and economic value aligned with the triple bottom line [6]. They enable emission reduction, renewable integration, energy awareness, cost efficiency, and disaster resilience, contributing to SDGs including climate action (SDG 13), clean energy (SDG 7), resilient infrastructure (SDG 11), and AI-driven innovation (SDG 9).
Research on microgrid forecasting, scheduling, and resilience has advanced from traditional statistical models to deep learning and multi-scale optimization approaches. Notably, hybrid LSTM–SMI–ARIMA and CEEMDAN-TCN-LSTM models have improved prediction of complex loads [7,8], while multi-timescale optimization frameworks enhance scheduling reliability across temporal horizons [9]. To further support decision-making under uncertainty, evolutionary game-theoretic methods provide adaptive resource allocation [10], and resilience-focused strategies leverage distributed resources to restore critical loads, as demonstrated by Gao et al. and Amini et al. [11,12].
Nevertheless, forecasting, scheduling, and critical-load identification remain constrained by static methods and incomplete data, which limit their adaptability to rapid system changes. Integration of sustainability, resilience, and educational empowerment is also limited. Socio-technical frameworks highlight technology–behavior–governance interactions [13] but often treat microgrids as isolated systems; game-theoretic insights [14] are rarely operationalized alongside resilience strategies [15]; and educational empowerment remains insufficiently aligned with Education for Sustainable Development or the concept of the university as a “living laboratory” [16,17].
This study addresses three core challenges: (1) decision lag under meteorological uncertainty, (2) dynamic critical-load prioritization, and (3) integration of technical and educational functions to foster student skills and innovation.
2. Integrated Prediction-Decision Model
To address these challenges, we propose an AI-based campus microgrid load optimization framework (as shown in Figure 2), which comprises a data processing module, a prediction-decision model, a power scheduling module, and a disaster response module.
Figure 2.
Structural diagram of campus microgrid load optimization framework. Source: Drafted by authors.
The proposed framework consists of four interconnected modules. The data processing module collects and preprocesses two core data types: environmental data and energy system operational data. Preprocessing involves Z-score standardization to normalize data [18], followed by outlier identification via the 3σ criterion and correction using local linear interpolation [19,20].
The core intelligent engine of this framework is an integrated prediction-decision model based on an Enhanced Multi-scale Gated Temporal Attention Network (MS-GTAN+). This model realizes an end-to-end mapping from multivariate temporal meteorological data to microgrid operational modes, which in turn activate the corresponding scheduling or disaster-response strategies. By unifying feature extraction, meteorological situational awareness, and scheduling strategy generation within a single deep neural network, it significantly enhances the real-time performance and accuracy of decision-making. The overall architecture, depicted in Figure 3, comprises an input embedding layer, a multi-scale gated time-series convolution module, an adaptive attention pooling module, a lightweight feature refinement module, and a strategy output layer.
Figure 3.
Integrated Prediction-Decision Modeling Based on Enhanced Multiscale Gated Temporal Attention Network (MS-GTAN+). Source: Drafted by authors.
2.1. GTCN Block Feature Extraction
The Gated Temporal Convolutional Network (GTCN) Block performs feature extraction through a sequence of a causal dilated convolutional layer, a gated activation unit, a 1 × 1 convolutional layer, and a residual adder. Its primary function is to accurately capture long-term dependencies in microgrid meteorological and energy data, providing highly relevant feature inputs for subsequent prediction-decision integration while mitigating the gradient vanishing problem common in traditional RNNs, thereby ensuring stable performance during deep training. The integrated model employs four GTCN blocks connected in series, with the structure of each block illustrated in Figure 4.
Figure 4.
GTCN model structure diagram. Source: Drafted by authors.
- 1.
- Causal dilation convolution
As the core operation of the GTCN, causal dilated convolution expands the receptive field of the kernel via the dilation rate while preventing future information leakage. For the -th GTCN Block (b = 1, 2, 3, 4), the dilation rate is set as (i.e., 1, 2, 4, 8 for successive blocks), and the kernel size is . Given input feature maps , where is the number of input channels, the output is computed as
In Equation (1), denotes the weight parameter for the output channel , input channel , and kernel position i in the -th Block. The condition is maintained via zero-padding where necessary to preserve temporal integrity. With identical input and output channels per block (), the fourth GTCN Block achieves a receptive field of timesteps, enabling effective capture of medium- and long-term dependencies in meteorological data.
- 2.
- Gated activation unit
To enhance nonlinear feature representation, a gating activation unit is introduced. It processes the convolutional output to generate a gating signal, which selectively activates relevant features while suppressing irrelevant noise. This mechanism allows the model to focus on features most predictive of microgrid operational states. The detailed mathematical formulation of the gated activation is detailed in Appendix A.1.
- 3.
- 1 × 1 convolution and adder
The output from the gating unit is then passed through a 1 × 1 convolution layer, which performs a linear transformation across feature channels to enhance diversity without altering the temporal dimension. Finally, a residual connection adds the original block input to the transformed output, mitigating gradient decay during deep network training and ensuring stable feature propagation through the four serially connected GTCN Blocks. The subsequent output is a feature map rich in temporal dependency information. The corresponding equations are detailed in Appendix A.2.
2.2. Multi-Scale Feature Fusion
To comprehensively capture the multi-scale characteristics inherent in meteorological data, the model implements a parallel multi-branch convolutional structure. Each branch is configured with a different dilation rate to extract feature patterns at specific time scales: a short-scale branch (dilation = 1, 1 h receptive field), a lower-middle-scale (dilation = 2, 2 h), an upper-middle-scale (dilation = 4, 4 h), and a long-scale branch (dilation = 8, 8 h). The feature vector at time for scale is computed as
In Equation (2), is the window length for the -th scale, and represents the -th row feature vector of the input matrix . Each branch processes the original sequential data (where B is batch size, T is sequence length, F is feature dimension) and produces an output feature map . The outputs from all four branches are concatenated along the channel dimension, resulting in a multi-scale fusion feature matrix , which provides rich, multi-scale information for subsequent processing stages.
2.3. Adaptive Attention Pooling
To quantify the varying importance of different meteorological features and time steps for microgrid generation and load prediction, the model incorporates an adaptive attention pooling layer. This mechanism dynamically assigns weights to feature channels and temporal steps, reinforcing critical features while suppressing redundant features.
The channel attention weights are derived by first averaging the feature map along the temporal dimension to obtain a channel feature vector, which is then processed through a small neural network to generate the normalized channel weight vector . Similarly, the temporal attention weights are computed by averaging along the channel dimension and processing through another network layer, yielding the temporal weight vector . The detailed computation steps for and are detailed in Appendix A.3.
The global feature vector is subsequently obtained through adaptive attention pooling, which integrates both temporal and channel weights into the feature aggregation process:
This operation enables the model to automatically focus on highly contributive features, significantly enhancing the information density and predictive relevance of the global feature vector G.
2.4. Feature Refinement Module
Although the global feature vector G encapsulates key temporal information, it may still contain redundancies and lack sufficient discriminative power. To address this, a feature refinement module employing a micro Feed-Forward Network (micro-FNN) with a contract–expand structure and residual connections is introduced. This module performs nonlinear transformation and compressive refinement of global features to enhance their discriminative properties.
The module operates in two stages. In the contraction stage, the feature dimension is reduced from to (set to 3 in this study) using a fully connected layer with GELU activation. The Gaussian Error Linear Unit (GELU) offers smoother activation properties compared to ReLU, better preserving feature details. In the expansion stage, the feature dimension is restored to through another fully connected layer. Finally, a residual connection adds the expanded feature back to the original global feature G, producing the final refined feature vector . This residual connection mitigates gradient vanishing in deep networks, ensuring the module compresses redundant information without disrupting the essential temporal dependencies. The mathematical expressions for these operations are detailed in Appendix A.4.
2.5. Classifier Module
The classifier module maps the refined feature vector into a weather risk probability distribution, which directly determines the selection of the microgrid’s operational mode (normal mode or disaster mode). This is achieved through a fully connected layer followed by a softmax activation function. The model is trained to minimize the cross-entropy loss between the predicted probabilities and the true labels, ensuring reliable discrimination between normal and disaster scenarios for robust decision-making. The core loss function used for optimization is
In Equation (4), is the one-hot encoded true label, and is a small constant to prevent numerical instability. All learnable parameters are updated via backpropagation.
2.6. Model Output and Decision Mapping
The model outputs the weather level probability distribution , which directly triggers corresponding microgrid operational strategies, completing the end-to-end pipeline:
Normal level (): A normal operation signal is issued. The power dispatch module then dynamically adjusts power allocation among consumption units with the objective of minimizing cost and carbon emissions.
Disaster level (): A disaster emergency signal is activated. The disaster response module subsequently calculates critical load priorities using the improved PageRank algorithm.
This integrated prediction-decision pipeline fundamentally differs from traditional cascaded models, where a standalone prediction model feeds results into a separate decision-making module, which is a decoupled design prone to information loss and delayed response. In contrast, our MS-GTAN+ architecture integrates both stages within a unified deep learning backbone. The entire network acts as a cohesive feature extraction engine, processing raw meteorological data into a refined latent representation, , that serves as a common foundation for both prediction and decision tasks. Figure 5 visually contrasts this integrated framework with the traditional cascaded approach.
Figure 5.
Comparison Architecture Diagram. Source: Drafted by authors.
The core innovation lies in this jointly optimized latent representation. The feature vector is not solely tuned for high prediction accuracy in weather classification; it is also implicitly guided by the end-to-end training process to encapsulate features salient for triggering the appropriate operational response. Consequently, while the final decision mapping is rule-based for clarity and reliability, the input probability is derived from a feature set already attuned to the decision context. This tight coupling results in inherently more actionable predictions, ultimately enhancing the microgrid’s response coherence and operational efficiency compared to a loosely coupled, two-stage system.
It should be clarified that MS-GTAN+ does not directly output continuous control actions such as generation set-points, storage charging or discharging power, or load curtailment ratios. Instead, it provides a hazard-aware probabilistic assessment that triggers the selection of an appropriate dispatch mode. Detailed control actions are subsequently determined by dedicated optimization or rule-based modules under each operational mode. This design prioritizes robustness, interpretability, and operational safety in campus microgrid applications.
3. Multi-Intelligence Co-Optimization for Daily Power Scheduling
During daily campus microgrid operations, the power scheduling module employs a multi-agent cooperative optimization strategy. Each power consumption unit (e.g., teaching buildings, laboratories, and dormitories) and each distributed energy resource is modeled as an autonomous agent. These agents operate collaboratively, pursuing local objectives while adhering to global system constraints, such as minimizing individual energy costs while maintaining voltage deviation limits and carbon emission intensity thresholds. The principal challenge involves reconciling individual agent goals with system-wide requirements to ensure both economic efficiency and operational reliability.
To mitigate potential conflicts between individual agent objectives and global constraints, a unified reward function is designed within a reinforcement learning framework. This function combines local cost metrics with penalty terms for system-level constraint violations, guiding each agent to optimize its actions in a coordinated fashion. The reward function for agent is defined as
In Equation (5), is the reward for intelligence , which is maximized through the learning process; is the electricity purchase cost incurred by intelligence (in monetary units); is the energy storage degradation cost associated with intelligence (in monetary units); is the system-wide voltage deviation rate (in per-unit); is the allowable voltage deviation threshold; is the microgrid carbon emission intensity; is the maximum permitted carbon intensity; and are the weighting coefficients that penalize voltage and carbon constraint violations, respectively, which are determined empirically to balance the trade-off between economic and system-level objectives.
Through this reward structure, agents are incentivized to minimize individual energy costs while collectively maintaining voltage stability and carbon emissions within acceptable operational thresholds, as widely demonstrated in multi-agent reinforcement learning–based energy management studies [21,22]. The quadratic penalty terms effectively discourage constraint violations, promoting coordinated and reliable system operation. Rather than being introduced as an ad hoc modeling choice, the carbon emission penalty can be interpreted as a quantitative proxy for policy-driven incentive mechanisms, such as internal carbon pricing and institutional sustainability targets in campus energy systems. The penalty coefficient reflects the intensity of policy intervention by translating high-level carbon reduction objectives into operational decision signals, consistent with recent policy-aware multi-objective dispatch studies [23].
4. Disaster Response Module: Campus Microgrid Power Optimization Strategies Under Disaster Scenarios
Under disaster conditions, the campus microgrid undergoes fundamental operational changes. The main grid connection is often interrupted, and distributed generation from photovoltaic and wind turbines drops sharply due to severe weather, reducing total available power to 30–50% of normal levels. Critical loads, such as emergency lighting, medical equipment, and core teaching servers, must be prioritized to ensure campus security and continuity of essential services, while non-essential loads like public area air conditioning and landscape lighting can be curtailed. Accordingly, the optimization objective shifts from daily economic efficiency to ensuring the reliability of key loads. This study proposes a three-stage strategy combining accurate critical load identification, orderly non-essential load reduction, and directed power resource allocation. In this strategy, an improved PageRank algorithm overcomes the limitations of traditional static identification methods, enabling fast and precise power regulation during disasters.
4.1. Critical Load Identification Using Improved PageRank Algorithm
Traditional PageRank algorithms assess load importance based solely on grid topology, failing to adapt to dynamic changes in functional necessity and temporal sensitivity during disasters. This study enhances the algorithm by incorporating functional necessity weights , temporal sensitivity weights , and power demand stability weights , forming a multi-dimensional criticality evaluation model:
In Equation (6), denotes the criticality of load node , with higher values indicating higher priority. The coefficients , and , satisfying , are objectively determined using the entropy weight method to avoid subjective bias. The functional necessity weight is assigned via Analytic Hierarchy Process according to load type; for example, medical equipment receives = 0.95, emergency lighting 0.9, and public area air conditioning 0.2. The temporal sensitivity weight reflects the impact of disaster duration on load criticality, while the power demand stability weight increases as power fluctuation decreases. The term preserves the topological influence from upstream nodes (e.g., energy storage, residual distributed power), where is the set of upstream nodes connected to load and is the out-degree of node .
To clarify the design rationale of the weighting components, the three dimensions of functional necessity, temporal sensitivity, and power-demand stability are introduced to capture the key operational attributes that influence load behavior during extreme events. Functional necessity reflects the inherent importance of different categories of campus loads. Temporal sensitivity describes how the urgency of maintaining a load increases as the duration of a disaster unfolds. Power-demand stability characterizes the feasibility of sustaining the load under varying power conditions. Among these factors, temporal sensitivity evolves dynamically with the disaster timeline, whereas functional necessity and stability are more structural properties of the microgrid. When the framework is applied to another campus or a different hazard type, these structural weights can be recalibrated through the same AHP and entropy-based procedures. The entropy weighting method further ensures that the coefficients α, β and γ are determined by the statistical characteristics of the dataset, allowing indicators with stronger discriminatory power to receive proportionally higher weights. This approach preserves objectivity while maintaining adaptability across different microgrid configurations and disaster scenarios.
The dynamic calculation of and the objective determination of coefficients , , using the entropy weight method is detailed in Appendix B.1.
4.2. Non-Essential Load Reduction and Power Redistribution Strategy
Following the calculation of load criticality , nodes are classified into critical () or non-essential () sets based on a dynamic threshold :
In Equation (7), is the total available disaster power, and represent initial critical and non-essential load totals, and is the average criticality. Loads with are assigned to ; others to .
Non-essential load reduction follows the minimum functional impact principle, curtailing the lowest- loads first until the power shortfall is met. The released power, combined with available power, is then reallocated to critical loads in descending order of their values. The power allocated to a critical load is determined by
This ensures that the highest-priority critical loads are secured first, maintaining core campus functions.
The specific calculations for load curtailment and the power shortfall are detailed in Appendix B.2.
4.3. Strategy Implementation Process and Dynamic Regulation Mechanism
The disaster response strategy operates through a dynamic four-step cycle. Initially, the campus monitoring system collects real-time data, including disaster duration, distributed power output, storage capacity, and load power consumption, from which total available power is computed. This data then feeds into the improved PageRank algorithm to calculate load criticality indices and perform load classification. Subsequently, non-essential loads are curtailed following the minimum criticality order while power is reallocated to critical loads based on their priority ranking. Finally, the digital twin platform enables continuous monitoring of critical load status. Should power fluctuations or demand changes occur, the system automatically reactivates the criticality calculation and power redistribution processes, ensuring continuous operational adaptation throughout the disaster scenario.
5. Experimental Design and Results
5.1. Comparison Experiment
The MS-GTAN+ model’s performance is crucial as it directly determines forecasting accuracy and disaster classification reliability, impacting both daily scheduling efficiency and emergency response. We conducted comparative experiments against three established temporal models: LSTM multi-task, Transformer, and Informer2020, evaluating two key metrics: temporal prediction accuracy and disaster classification performance.
5.1.1. Dataset and Pre-Processing
The experimental dataset was constructed from ERA5 reanalysis data for December 2024, covering the geographical region of Japan. ERA5 provides hourly meteorological variables on a regular latitude–longitude grid with a standard spatial resolution of 0.25° × 0.25°, capturing regional-scale atmospheric dynamics relevant to the evolution of extreme weather events. Two meteorological variables were selected, namely 10 m wind speed and total precipitation, as they represent the dominant exogenous drivers affecting microgrid operation under severe weather conditions. The original NetCDF files were converted into a structured CSV format containing 24-h sequential measurements for each variable, which serve as the input time series for the proposed model. Although fine-grained campus microclimate effects, such as building-induced local variations, are not explicitly resolved at this spatial resolution, the regional meteorological forcing provided by ERA5 is sufficient for validating hazard-state recognition and dispatch mode selection in campus microgrid applications.
Data pre-processing consisted of two steps. First, non-informative samples in which both variables remained zero across all 24 time steps were removed. Subsequently, disaster labels were assigned using a unified threshold-based scheme: a sample was marked as a disaster when the final wind speed or precipitation exceeded its disaster threshold, when both indicators simultaneously surpassed 70% of the threshold at the final time step, when the 24 h average of either variable exceeded the threshold, when the growth rate of wind or precipitation during the final six hours rose above the threshold, or when the maximum value within the 24 h window exceeded 1.2 times the threshold. Samples that did not satisfy any of these conditions were labeled as normal. This concise set of rules ensures transparent and reproducible labeling for downstream model evaluation.
The final curated dataset contained 543,851 normal samples and 394,386 disaster samples, totaling 938,237 valid samples.
5.1.2. Results
The four models were trained and evaluated on the prepared dataset. As shown in Table 1, MS-GTAN+ and the LSTM model form the top tier in prediction performance. MS-GTAN+ achieves a marginally lower wind speed RMSE and comparable precipitation errors relative to LSTM. Its core advantage, however, lies in superior extreme value fitting capability. As visualized in Figure 6, MS-GTAN+’s predictions for disaster-level extremes align closely with the actual values, whereas the LSTM model shows greater dispersion. This capability stems from the multi-scale gated convolutional modules in MS-GTAN+, which effectively capture medium- to long-term dependencies essential for characterizing abrupt weather changes. In contrast, Transformer and Informer2020 demonstrate significantly higher prediction errors—approximately double those of MS-GTAN+—and longer inference times, underscoring MS-GTAN+’s efficiency and suitability for low-latency microgrid scheduling. The definitions of the evaluation metrics and their operational relevance are provided in Appendix C.
Table 1.
Performance Comparison Table for the Test Set of Timing Prediction Tasks.
Figure 6.
MS-GTAN+ timing prediction result map. (a) Wind Speed: Predicted vs. True; (b) Precipitation: Predicted vs. True; (c) Regression RMSE History; (d) Prediction Error Distribution; (e) Residual Plot; (f) Sample Predictions vs. True Values.
For the disaster classification task, MS-GTAN+ achieves a balanced performance (Figure 7), effectively minimizing both false alarms (misclassifying normal conditions as disasters) and omissions (failing to identify actual disasters). The LSTM model produces excessive false alarms, potentially triggering unnecessary emergency responses, while Informer2020 suffers from a high omission rate, risking power supply failures during genuine disasters.
Figure 7.
Comparison of multi-model confusion matrices.
As summarized in Figure 8, MS-GTAN+ leads in comprehensive metrics, including accuracy, precision, recall, F1-score, AUC, and AP. It reliably distinguishes between normal and disaster scenarios, providing a robust basis for microgrid operation by reducing ineffective warnings during daily dispatch and ensuring timely emergency response. This balanced performance supports efficient and secure microgrid operation under both scenarios.
Figure 8.
Multi-model performance comparison chart.
In summary, while Transformer and Informer2020 are unsuitable due to low accuracy and high misclassification risks, and LSTM exhibits a high false alarm rate, MS-GTAN+ excels in extreme weather prediction, classification stability, and real-time performance, making it ideally suited for campus microgrid applications.
5.2. Simulation Experiment
A simulation platform was established to validate the proposed disaster response strategy. The test system models a campus microgrid with 120 load nodes, classified as critical (20), important (40), and non-essential (60) loads. The hierarchical network topology comprises 127 nodes and 136 edges, including four power sources and three substations. Simulations employed campus-specific load data under three disaster scenarios, as shown in Table 2.
Table 2.
Parameter table of simulation experiment.
The improved PageRank algorithm demonstrated strong performance across all scenarios (Table 3), converging within 8 iterations on average. It identified 26 critical loads during rainstorms and only 13 during blizzards, demonstrating its adaptive capability under varying power constraints.
Table 3.
Critical load identification results for each scenario.
Analysis of Figure 9 reveals four key advantages: (a) Critical load guarantee rates exceed 82.8% in all scenarios, achieved through dynamic adaptation to power constraints via integrated weighting; (b) Load classification shows adaptive flexibility, identifying more critical loads during rainstorms while focusing on core functions during power-limited blizzards; (c) Power allocation closely matches available resources, demonstrating precise resource-load matching; (d) The blizzard scenario achieves highest average criticality by prioritizing essential loads under strict constraints.
Figure 9.
Comprehensive analysis diagram of simulation results of disaster scenarios.
The proposed improved PageRank algorithm was then compared with the traditional PageRank method. The traditional approach relies solely on topological structure for key load identification, without considering functional characteristics or temporal dynamics.
As shown in Table 4, the improved method consistently raises the critical load assurance rate from approximately 38 percent to around 75 percent across all disaster scenarios, representing a substantial enhancement in resilience performance while maintaining nearly identical response times. The multi-weight integration mechanism effectively overcomes the rigidity of topology-dependent identification in the traditional PageRank method and provides more reliable and adaptive critical-load protection for campus microgrids during extreme events.
Table 4.
Performance Comparison: Traditional vs. Improved PageRank Algorithm.
5.3. Educational Digital Twin Platform: Implementation and Impact Assessment
An educational digital twin interface was developed to realize the framework’s pedagogical potential, as shown in Figure 10. This interactive platform enables students to visualize real-time microgrid operations and AI-driven decision processes. Its core functionality allows direct manipulation of key algorithmic parameters—such as reward function coefficients in daily scheduling and functional necessity weights in disaster response—with immediate simulation feedback. In a representative teaching scenario, student groups optimize microgrid performance during a simulated typhoon by adjusting load priority weights, then quantitatively evaluate their strategy’s effectiveness in balancing critical load guarantee rates against energy curtailment levels.
Figure 10.
Framework for the Educational Impact Assessment of the Teaching Platform.
The platform maintains seamless integration with the AI backend, ensuring all visualizations and outcomes are generated by the actual MS-GTAN+ and improved PageRank models. This authentic connection provides transparent insight into complete decision-making workflows, effectively bridging theoretical AI concepts with practical energy management applications.
A structured assessment protocol employing mixed methods was formulated to evaluate educational impact. This combines quantitative pre- and post-testing to measure learning gains in smart grid and AI comprehension, with qualitative surveys assessing student engagement and platform usability. The interface’s modular design supports interdisciplinary adaptation. By modifying datasets and contextual focus, the platform can be repurposed for courses in business, public policy, and environmental science, creating a versatile educational model transferable across academic disciplines and campus environments.
5.4. Triple Bottom Line–Oriented Reflections on the Results
The experimental results also show implications for the campus triple bottom line. The integrated scheduling process improves renewable utilization and reduces unnecessary energy use, supporting environmental performance. The coordinated optimization lowers routine operating costs and stabilizes essential functions during disruptions, contributing to economic efficiency. Through the digital-twin interface, these operational improvements are made transparent to students, reinforcing the microgrid’s educational and social value. Overall, the observed outcomes align technical enhancements with environmental, economic, and social objectives.
6. Limitations and Future Work
The simulation results validate the feasibility of the proposed framework; however, its evaluation is limited by the reliance on synthetic data and a simulated microgrid environment. Although the load characteristics, disaster scenarios, and network configurations are generated from documented campus energy patterns, historical meteorological events, and standard microgrid design specifications, these inputs cannot fully reflect the variability, data uncertainty, and operational irregularities encountered in actual deployments. Future work will involve deploying the framework in an operational campus microgrid to examine its robustness under practical conditions, including fluctuations in energy demand, measurement noise, communication latency, and potential algorithmic bias arising from different climatic or infrastructural settings. This direction will help establish stronger empirical validation and support the framework’s progression toward real-world application.
7. Conclusions
This research advances sustainable campus energy transitions through an integrated framework harmonizing technological innovation with student-centered sustainability education. The approach reimagines campus microgrids as dynamic platforms for advancement across environmental, economic, and social dimensions.
The framework bridges energy optimization and sustainability pedagogy. The MS-GTAN+ architecture integrates prediction and decision-making, reducing key prediction errors by approximately 47% compared to common deep learning baselines while enabling sub-2ms inference. The multi-dimensional improved PageRank algorithm prioritizes critical campus functions during disruptions, improving critical load guarantee rates from 37.9% to 75.5% across the tested disaster scenarios. These quantitative gains demonstrate AI’s transformative role in enhancing both operational efficiency and system resilience.
Practically, digital twin technology turns energy systems into experiential learning environments, enabling universities to enhance resilience while building students’ sustainability decision-making competencies (addressing the theory-practice gap). Sustainably, the framework operationalizes climate targets via AI-driven carbon reduction, strengthens infrastructure resilience, and improves education through authentic problem-solving.
Notably, sustained application of the dispatch strategy can influence consumption behavior and DER participation, thereby shaping the long-term equilibrium of campus energy systems. Stronger carbon penalties encourage low-carbon dispatch and greater DER utilization, whereas weaker penalties lead to operating regimes dominated by cost-oriented decisions. Although load taxonomy and governance structures are inherently campus-specific, the incentive-aligned optimization framework and constrained adaptive mechanisms are transferable, reinforcing the interpretability and generalizability of the proposed methodology.
Author Contributions
Conceptualization, Z.L. (Zhanyi Li) and Q.S.; methodology, Z.L. (Zhanyi Li) and G.X.; software, Z.L. (Zhanyi Li); validation, Z.L. (Zhanyi Li). and Z.L. (Zhanhong Liu); formal analysis, Z.L. (Zhanyi Li) and C.Z.; investigation, Z.L. (Zhanyi Li) and Z.L. (Zhanhong Liu); resources, G.X. and Q.S.; data curation, Z.L. (Zhanhong Liu) and C.Z.; writing—original draft preparation, Z.L. (Zhanhong Liu); writing—review and editing, Q.S., G.X. and Z.L. (Zhanhong Liu); visualization, Z.L. (Zhanhong Liu) and C.Z.; supervision, Q.S. and G.X.; project administration, Q.S.; funding acquisition, Q.S. and G.X. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data are contained within the article. Further inquiries can be directed to the corresponding author(s).
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
Appendix A. Detailed Mathematical Formulations for MS-GTAN+ Components
Appendix A.1. Gated Activation Unit
To enhance nonlinear feature representation, a gating activation unit is introduced. It splits the convolutional output into two components, the candidate state and the gating signal (both of channel size ), via two parallel causal dilated convolutional layers. The gated activation output is then obtained by
In Equation (A1), denotes element-wise multiplication, is the sigmoid function, and is the hyperbolic tangent function. This mechanism allows the model to focus on features relevant for prediction while suppressing irrelevant noise.
Appendix A.2. 1 × 1 Convolution and Residual Adder
A 1 × 1 convolution layer transforms the gated output into , linearly transforming features across channels without altering temporal length and enhancing feature diversity. A residual connection then adds the original block input to , yielding the final block output :
Appendix A.3. Adaptive Attention Pooling Formulation
The channel attention weights are derived by first averaging the feature map along the temporal dimension to obtain a channel feature vector (where ). This vector is then processed through a two-layer fully connected network (FC1: 6→3, FC2: 3→6) with ReLU and sigmoid activation to generate the channel weight vector :
In Equation (A3), represents the attention weight of the -th channel, with .
Similarly, the temporal attention weights are computed by averaging along the channel dimension to produce a temporal feature vector . This vector is passed through a single fully connected layer (FC: T→T) followed by a softmax activation, yielding the temporal weight vector :
In Equation (A4), denotes the attention weight at the -th time step, and .
Appendix A.4. Feature Refinement Module Formulation
The module first enters the contraction stage, compressing the global feature dimension from to ( in this study) through the fully connected network , which retains the core features and reduces the computational complexity, and the mathematical expression is shown in Equation (8):
In the contraction stage, the feature dimension is reduced from to (set to 3 in this study) via the fully connected layer :
The Gaussian Error Linear Unit (GELU) activation, defined as where is the standard normal cumulative distribution function, offers smoother activation properties compared to ReLU, better preserving feature details.
Subsequently, the expansion stage restores the feature dimension to through another fully connected layer :
This step reconstructs the feature space via linear transformation, strengthening interactions across different feature dimensions.
To prevent the loss of original critical information, a residual connection adds the expanded feature to the original global feature G, producing the final refined feature vector :
This residual connection mitigates gradient vanishing in deep networks, ensuring the module compresses redundant information without disrupting the essential temporal dependencies in the original features. Consequently, achieves high discriminative power while retaining core information relevant to microgrid operational states.
Appendix A.5. Classifier Module
The classifier maps the refined feature vector into weather risk probabilities for two classes—normal (c = 1) and disaster (c = 2)—to inform scheduling decisions. Utilizing a fully connected layer followed by softmax activation, the process is as follows.
First, the dimension of is projected to the number of classes via , yielding the raw classification scores :
These scores are then normalized into a probability distribution using the softmax function:
where denotes the probability that the -th sample belongs to the -th class.
Appendix B. Mathematical Details for Disaster Response Strategy
Appendix B.1. Improved PageRank Algorithm Details
Temporal Sensitivity Function:
Temporal sensitivity varies dynamically with disaster duration. This is modeled using an exponential function:
In Equation (A10), is the real-time disaster duration in hours, and is the time-sensitivity coefficient. A higher indicates greater functional urgency.
Entropy Weight Method:
The entropy weight method objectively determines , and . First, the three indicators , and are normalized to for each load and indicator . The entropy for each indicator is computed as
In Equation (A11), is the total number of load nodes. A smaller indicates greater discriminatory power. The weight coefficients are then calculated as
yielding , and , with . This process ensures objective assignment of the weight coefficients.
The weighting scheme is adaptable across different deployment environments. When the microgrid configuration, load composition, or disaster type differs from the scenario considered in this study, the functional necessity and stability-related inputs can be recomputed using the same AHP and entropy procedures. Temporal sensitivity remains a dynamic component and can be re-parameterized according to the time-impact characteristics of the specific hazard. This ensures that the improved PageRank model maintains generalizability and can be transferred to other campus microgrid settings without altering its core formulation.
Appendix B.2. Load Reduction and Redistribution Details
The curtailment power for load is
where and define operational range, and is the power shortfall:
Curtailment terminates when to preserve campus basic functions.
Appendix C. Evaluation Metrics and Their Operational Relevance
This appendix provides additional details on the evaluation metrics used in Section 5.1 and explains their relevance to real-time decision-making in campus microgrid management.
- 1.
- Regression Metrics for Load and Disaster-State Forecasting.
To quantify the performance of the forecasting components of the MS-GTAN+ model, we adopt two widely used regression metrics: Root Mean Square Error (RMSE) and Mean Absolute Error (MAE). RMSE captures the magnitude of large deviations between predicted and actual values, making it particularly sensitive to abrupt load changes during disaster events, while MAE provides a straightforward measure of the average prediction deviation across the entire time horizon. Their definitions are
where is the actual load or disaster-state indicator, and is the corresponding prediction.
- 2.
- Relevance to Real-Time Campus Microgrid Management.
In practical microgrid operations, both RMSE and MAE have direct implications for decision reliability. A lower RMSE indicates stronger robustness against sudden fluctuations, which is critical during extreme-weather events when load variations become more volatile. MAE reflects the overall forecast consistency, ensuring that the dispatch and protection strategies derived from model outputs remain stable and actionable. These metrics jointly characterize the model’s ability to support timely corrective actions, reduce unnecessary switching operations, and maintain supply to critical loads during emergency conditions.
- 3.
- Classification Metrics for Disaster-State Identification.
For the disaster classification module, accuracy and timing correctness are used to evaluate the model’s responsiveness. High classification accuracy ensures that operational states are identified correctly, while timing correctness reflects whether state transitions are detected with minimal delay—an essential requirement during fast-evolving events such as typhoons or sustained heatwaves.
Together, these metrics provide a comprehensive assessment of the MS-GTAN+ model’s forecasting and classification capabilities, aligning them with real operational needs in campus microgrid emergency management.
References
- Guo, L. A Comprehensive Study on Enhancing the Smart Campus Evaluation Index System through IoT Technologies: A Case Study of a Vocational College in Henan Province. J. Comput. Methods Sci. Eng. 2025, 25, 4180–4195. [Google Scholar] [CrossRef] [Scilit]
- Elazab, R.; Dahab, A.A.; Adma, M.A.; Hassan, H.A. Reviewing the Frontier: Modeling and Energy Management Strategies for Sustainable 100% Renewable Microgrids. Discov. Appl. Sci. 2024, 6, 168. [Google Scholar] [CrossRef] [Scilit]
- Baba, K.; Elfaddouli, N.; Cheimanoff, N. The Role of Information and Communication Technologies in Developing a Smart Campus with Its Four Pillars’ Architectural Sketch. Educ. Inf. Technol. 2024, 29, 14815–14833. [Google Scholar] [CrossRef] [Scilit]
- Raj, H.; Jaiswal, S.; Maheshwari, A. A Review of Energy Management Strategy and Forecasting Techniques in Multi Microgrids. Int. J. Ambient. Energy 2025, 46, 2507808. [Google Scholar] [CrossRef] [Scilit]
- Kumar, B.; Padmanabha, V.; Dwivedi, R. Utilizing Packet Tracer Simulation to Modern Smart Campus Initiatives for a Sustainable Future. In Proceedings of the 2024 IEEE 12th International Conference on Smart Energy Grid Engineering (SEGE); IEEE: New York, NY, USA, 2024; pp. 97–102. [Google Scholar] [CrossRef] [Scilit]
- Gupta, M.; Bhargava, A. Optimal Design of Hybrid Renewable-Energy Microgrid System: A Techno–Economic–Environment–Social–Reliability Perspective. Clean Energy 2024, 8, 66–83. [Google Scholar] [CrossRef] [Scilit]
- Khan, S.; Muhammad, Y.; Jadoon, I.; Awan, S.E.; Raja, M.A.Z. Leveraging LSTM-SMI and ARIMA Architecture for Robust Wind Power Plant Forecasting. Appl. Soft Comput. 2025, 170, 112765. [Google Scholar] [CrossRef] [Scilit]
- Heng, L.; Hao, C.; Nan, L.C. Load Forecasting Method Based on CEEMDAN and TCN-LSTM. PLoS ONE 2024, 19, e0300496. [Google Scholar] [CrossRef] [Scilit]
- Han, Z.; Han, S.; Wu, D.; Zhang, X.; Song, H.; Guo, J.; Liu, Z. Multi-Timescale Optimization Scheduling of Integrated Energy Systems Based on High-Accuracy Predictions. Energy 2025, 333, 137403. [Google Scholar] [CrossRef] [Scilit]
- Cheng, L.; Peng, P.; Lu, W.; Sun, J.; Wu, F.; Shi, M.; Yuan, X.; Chen, Y. The Evolutionary Game Equilibrium Theory on Power Market Bidding Involving Renewable Energy Companies. Int. J. Electr. Power Energy Syst. 2025, 167, 110588. [Google Scholar] [CrossRef] [Scilit]
- Gao, H.; Chen, Y.; Xu, Y.; Liu, C.-C. Resilience-Oriented Critical Load Restoration Using Microgrids in Distribution Systems. IEEE Trans. Smart Grid 2016, 7, 2837–2848. [Google Scholar] [CrossRef] [Scilit]
- Amini, F.; Ghassemzadeh, S.; Rostami, N.; Tabar, V.S. A Stochastic Two-Stage Microgrid Formation Strategy for Enhancing Distribution Network Resilience against Earthquake Event Incorporating Distributed Energy Resources, Parking Lots and Responsive Loads. Sustain. Cities Soc. 2024, 101, 105191. [Google Scholar] [CrossRef] [Scilit]
- Tiwari, S.P. Sociotechnical Systems in the 21st Century: An Analysis of Antecedents and Determinants from a Multivariate Perspective. Can. J. Educ. Soc. Stud. 2023, 3, 38–47. [Google Scholar] [CrossRef] [Scilit]
- Cheng, L.; Li, M.; Tan, C.; Huang, P.; Zhang, M.; Sun, R. Computational Game-Theoretic Models for Adaptive Urban Energy Systems: A Comprehensive Review of Algorithms, Strategies, and Engineering Applications. Arch. Comput. Methods Eng. 2025, 1–78. [Google Scholar] [CrossRef] [Scilit]
- Zidane, T.E.K.; Ab Muis, Z.; Ho, W.S.; Zahraoui, Y.; Aziz, A.S.; Su, C.-L.; Mekhilef, S.; Campana, P.E. Power Systems and Microgrids Resilience Enhancement Strategies: A Review. Renew. Sustain. Energy Rev. 2025, 207, 114953. [Google Scholar] [CrossRef] [Scilit]
- Hadfield, P.; Sharp, D.; Pigeon, J.; Raven, R. Governing University Living Labs for Sustainability Transformations: Insights from 18 International Case Studies. Sustain. Sci. 2025, 20, 1753–1774. [Google Scholar] [CrossRef] [Scilit]
- Stuckrath, C.; Rosales-Carreón, J.; Worrell, E. Conceptualisation of campus living labs for the sustainability transition: An integrative literature review. Environ. Dev. 2025, 54, 101143. [Google Scholar] [CrossRef] [Scilit]
- Kornak, J.; Fields, J.; Kremers, W.; Farmer, S.; Heuer, H.W.; Forsberg, L.; Brushaber, D.; Rindels, A.; Dodge, H.; Weintraub, S.; et al. Nonlinear Z-Score Modeling for Improved Detection of Cognitive Abnormality. Alzheimer’s Dement. Diagn. Assess. Dis. Monit. 2019, 11, 797–808. [Google Scholar] [CrossRef] [Scilit]
- Mantuano, C.; Omoyele, O.; Hoffmann, M.; Weinand, J.M.; Panella, M.; Stolten, D. Data Imputation Methods for Intermittent Renewable Energy Sources: Implications for Energy System Modeling. Energy Convers. Manag. 2025, 339, 119857. [Google Scholar] [CrossRef] [Scilit]
- Rastkar, S.T.; Zendehdel, D.; Capillo, A.; De Santis, E.; Rizzi, A. Seasonality Effect Exploration for Energy Demand Forecasting in Smart Grids. In Proceedings of the International Joint Conference on Computational Intelligence; Springer Nature: Cham, Switzerland, 2023; pp. 211–223. [Google Scholar] [CrossRef] [Scilit]
- Hu, J.; Xia, L.; Hu, J.; Wu, H. Economical and Reliable Energy Management for Networked Microgrids in a Multi-Agent Collaborative Manner. IEEE Trans. Autom. Sci. Eng. 2025, 22, 8659–8669. [Google Scholar] [CrossRef] [Scilit]
- Saberi, H.; Zhang, C.; Dong, Z.Y. A Multi-Agent Deep Constrained Q-Learning Method for Smart Building Energy Management under Uncertainties. IEEE Trans. Smart Grid 2024, 15, 4649–4661. [Google Scholar] [CrossRef] [Scilit]
- Cheng, L.; Sun, R.; Wang, K.; Huang, P.; Zhang, M. Advancing sustainable electricity markets: Evolutionary game theory as a framework for complex systems optimization and adaptive policy design. Complex Intell. Syst. 2025, 11, 320. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









