Bridging Artificial Intelligence and Power Systems Education Using a Hands-On Executable Framework
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
1
Bridging Artificial Intelligence and Power Systems Education Using a Hands-On Executable Framework
arXiv:2608.02599v1 [eess.SY] 3 Aug 2026
Junjie Yin, Graduate Student Member, IEEE, Buxin She, Member, IEEE, Xinyu Feng, Graduate Student Member, IEEE, Fangxing (Fran) Li, Fellow, IEEE
Abstract—Artificial intelligence (AI) is increasingly central to power and energy systems, supporting modeling, forecasting, optimization, and control. Yet most existing works emphasize specialized applications and offer little reusable material for newcomers or interdisciplinary learners, who increasingly rely on large language models rather than building their own. This gap points to a need for engineering-grounded AI (EGAI), in which AI workflows follow established engineering and powersystem domain rules rather than acting as task-agnostic black boxes. Motivated by a community survey of researchers and practitioners, which shows 92% report at least one barrier before running an AI model and 94% want a power-specific hands-on course. This paper presents a framework consisting of open, executable module library that lowers the entry barrier for AI in power systems. The modules follow a progressive difficulty ladder that maps core AI concepts onto representative power-system tasks: (i) foundational deep neural network (DNN) templates for function approximation and load-curve fitting; (ii) a domain-coupled convolutional neural network (CNN) power-flow surrogate for a 5-bus system; and (iii) frontier modules on DNNassisted optimization, deep reinforcement learning (DRL) for battery storage control, and physics-informed neural networks (PINNs) for the swing equation. All modules are released as Jupyter notebooks that run locally or on Google Colab and are delivered through an IEEE online course and IEEE Power & Energy Society (PES) webinar series. The webinar drew more than 590 live attendees, which is among the ten most-attended IEEE PES webinars, and over 344 repository visits within two weeks, reinforcing the survey-based motivation. Index Terms—Artificial intelligence, convolutional neural networks (CNN), engineering-grounded AI (EGAI), physicsinformed neural networks (PINN), power engineering education, power system analysis computing, reinforcement learning.
I. I NTRODUCTION A. Motivation RTIFICIAL intelligence (AI), as one of the most representative advanced technologies, is now being widely discussed and adopted across many sectors. In the field of power and energy systems, AI has shown strong potential in modeling, forecasting, optimization, and control [1], [2]. These capabilities not only accelerate computation but also help address the increasing complexity of modern grids with renewable integration and emerging technologies [3]. In daily life, AI has already brought us great convenience, from smart recommendations to voice assistants, which shows how powerful and approachable it can be when proper tools are provided.
A
J. Yin, X. Feng, and F. Li are with the EECS Department and the CURENT research center at The University of Tennessee, Knoxville, TN 37996. B. She is with the ECE Department at Kansas State University, Manhattan, KS 66506. Manuscript received 08/05/2026; revised xx/xx/xxxx.
However, most of the existing academic work still emphasizes high-level research contributions or specialized applications. While these results are valuable to experts, they are not always accessible to beginners, students, or practitioners from other disciplines. For the general public, getting started with AI is still not straightforward: the workflow may seem abstract, the learning curve is steep, and many open-source codes are either too fragmented or lack context. Therefore, there is a clear need for simple and generic hands-on codes that can lower the entry barrier. By providing progressive examples which start from basic function approximation, then moving to dataset fitting under noisy conditions, and finally to a real-world inspired power system case, we aim to make AI more approachable. Such examples can serve as stepping stones for students, engineers, and interdisciplinary learners, enabling them to quickly grasp fundamental ideas and adapt the methods to their own problems, whether in power systems, energy forecasting, or other application domains. B. Related Work Recent literature indicates a growing trend of integrating AI into education across multiple stages and disciplines. AI-related curricula and learning activities have been introduced from the secondary school level to higher education, demonstrating the feasibility of early AI exposure as well as advanced AI-supported learning environments [4], [5]. Within STEM and engineering education, prior studies have explored systematic incorporation of AI fundamentals into curricula and course modules, alongside broader institutional frameworks for adopting generative AI in teaching and learning [6], [7]. In parallel, efforts have been made to improve the accessibility and interpretability of AI tools for educators to facilitate classroom deployment [8]. Overall, these works collectively reflect the widespread and increasing integration of AI across educational stages and disciplinary contexts [9]. The interplay between AI and power & energy systems has been extensively surveyed from multiple angles. Existing reviews cover AI-enabled operation, control, and planning in power systems [10], [11], as well as AI techniques across the design, control, and maintenance life-cycle of powerelectronics systems [12]. Community perspectives further highlight the mutual coupling between AI workloads and power-electronics infrastructures [13], while domain-facing review and vision efforts summarize emerging applications and open challenges within the power-systems community [14]. In parallel, recent studies advocate open-source ecosystems to improve reproducibility, transparency, and long-term software
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
sustainability [15], and promote Python-based simulators and digital-twin-like workflows for rapid prototyping and integration with data- and AI-oriented toolchains [16]. Despite the growing body of surveys and position papers, many publicly available learning materials remain organized around a single task or narrowly defined use case. Handson tutorials often focus on specific problems such as optimal power flow (OPF) [17], while technical exemplars typically emphasize a particular AI or control objective—for example, reinforcement-learning-based adaptive control of converterinterfaced resources under varying grid conditions—rather than a generalizable workflow spanning data handling, model construction, training, and evaluation [18]. Classical benchmark test systems continue to play an important role in economic and OPF-centered demonstrations [19], but such demonstrations do not necessarily translate into reusable, endto-end coding frameworks that can be readily adapted to a broader range of AI-enabled power-system tasks. Overall, although existing literature and community resources emphasize reproducible software practices and accessible tooling [15], [16], few resources provide step-bystep, task-agnostic, hands-on AI programs that beginners can directly reuse and extend. This gap is particularly evident in the context of the rapid expansion of AI methods and their broad applicability across power systems and power electronics, where newcomers often rely primarily on large language models (LLMs) such as ChatGPT, Claude, or Gemini to obtain answers [20], rather than developing their own models and experimentation workflows. To address this gap, this work provides a set of educational, hands-on AI modules for function fitting, dataset learning, and power-flow prediction, enabling beginners to actively modify parameters, functions, and higher-level model architectures, and to directly observe their impact on learning outcomes. The proposed modules aim to offer a minimal yet extensible coding baseline that bridges foundational concepts and more advanced AI-enabled powersystem analyses. C. Contribution and Organization This paper aims to lower the entry barrier for applying AI in power and energy systems through a coherent design framework and a set of hands-on, reusable, and extensible implementations. The main contributions are summarized as follows. • Needs analysis. A targeted community survey (N = 52 valid responses were collected) is conducted to characterize the AI adoption, learning barriers, and resource preferences of power-and-energy researchers and practitioners, and its findings are used to ground the design of the proposed materials. • Design framework. A framework is proposed that organizes AI teaching modules along a progressive difficulty ladder and explicitly maps core AI concepts onto representative power-system tasks, all built on a shared, configurable notebook template. • Executable module library. Six open, hands-on modules are released across three tiers: foundational deep neural
2
network (DNN) templates for function approximation and load-curve fitting; a domain-coupled convolutional neural network (CNN) power-flow surrogate for a 5-bus system that predicts bus voltages and line active and reactive power flows; and three frontier modules covering DNNassisted optimization, deep reinforcement learning (DRL) for battery energy storage control, and physics-informed neural networks (PINNs) for the swing equation. • Reproducibility, integration, and community validation. All modules are provided as Jupyter notebooks that run locally or on Google Colab and are delivered through an IEEE online course [21] and an IEEE Power & Energy Society (PES) webinar series [22], [23], enabling learners to move beyond passive reliance on LLMs and to actively explore how parameters, model architectures, and problem formulations affect learning outcomes. Early deployment offers real-world validation: Part I of the webinar drew more than 590 live attendees, which ranked the top ten attended IEEE PES webinars, and over 344 repository visits within two weeks. The rest of this paper is organized as follows. Section II presents the community survey, educational context, and associated IEEE course and webinar resources. Section III introduces the proposed hands-on learning framework and module library. Sections IV–VI describe the released handson examples and codes. Section VII discusses the educational impact, broader applicability, engineering-grounded AI principles, and limitations of the framework. Section VIII concludes this paper. II. BACKGROUND AND E DUCATIONAL C ONTEXT A. Motivation from a Community Survey on AI Learning Barriers To ground the design of the proposed course in the actual needs of the power and energy community, we conducted a targeted survey on AI usage, learning barriers, and resource preferences among academic researchers and industry practitioners. The instrument comprised nine questions covering respondent background (role, experience, and technical area), current AI adoption and application domains, barriers encountered before running an AI model, the perceived relevance of image-based AI examples, and interest in a hands-on tutorial tailored to power systems. 1) Broad, cross-domain interest in AI: Table I summarizes the respondent profile, where Q# denotes the question index in the survey and n denotes the number of responses in each category. The sample spans graduate students (38.5%), faculty and research scientists (26.9%), industry engineers (19.2%), and undergraduates, with experience distributed across all ranges from under three years to more than ten years. As shown in Fig. 1, respondents’ research and work areas cover essentially all IEEE PES technical committees, led by power system operation, planning and economics (57.7%), analytic methods (48.1%), transmission and distribution (36.5%), and dynamic performance (30.8%). This breadth indicates that interest in AI is not confined to a single specialization but is shared across the discipline. Consistently, Fig. 2 shows that
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
3
TABLE I R ESPONDENT P ROFILE AND AI E NGAGEMENT
Grid op. & stability
23
Forecasting
Attribute
Category
n
%
(Never used AI)
20 14 10 8
38.5 26.9 19.2 15.4
Protection & control
Primary role (Q1)
Graduate student Faculty / research scientist Industry engineer Undergraduate / other < 3 years 3–5 years 5–10 years > 10 years
15 8 15 14
28.8 15.4 28.8 26.9
AI projects in past 2 yr (Q4)
More than 2 projects 2 projects 1 project Never used
15 9 15 13
28.8 17.3 28.8 25.0
Want one-click hands-on course (Q8)
Yes Maybe No
34 15 3
65.4 28.8 5.8
Experience (Q2)
respondents have already applied AI to a wide range of tasks: most frequently forecasting (23 counts) and grid operation and stability (23 counts), followed by protection and control, market analysis, asset monitoring, and cybersecurity. But there is still 13 counts responses selected “Not used AI”, which motivated us to provide more entry-level friendly tutotials to them. PSIM
AMPS
EDPG
Subst.
n=10 (19.2%)
n=7 (13.5%)
ICC n=1
NPEC n=1
SPDC n=2
SBLCS n=2
9
Market analysis
8
Cybersecurity
5
Asset monitoring
5 4
Customer-side 0
5
10
15
20
25
Number of respondents Fig. 2. Power-system application domains in which respondents have applied AI (Q5, multiple selections).
barrier divided by that group’s size, so that roles of unequal size remain comparable, whereas the “Overall” column is computed over all respondents rather than by averaging the group shares. Insufficient background knowledge is the leading barrier for every role, while hardware limitations are most acute for faculty and research scientists (57%). In aggregate, 92% of respondents reported at least one barrier, and among the 39 respondents who had already completed one or more AI projects, 95% still reported a barrier. These findings highlight the importance of execution-ready learning materials that minimize local setup requirements. Graduate
Faculty
Industry
Undergrad
Overall
n=20
n=14
n=10
n=8
N=52
n=3
Lack of background
9
6
5
5
25
Hardware limits
6
8
4
3
21
Env. setup
6
5
2
2
15
OS differences
3
2
2
1
8
Debugging
3
0
0
1
4
PSCCC
n=25 (48.1%)
ESSB
PSRC
n=10 (19.2%)
n=8 (15.4%)
n=3
EMC n=3
Transf.
Switchg.
n=5
n=5
PSOPE n=30 (57.7%)
23 13
T&D
PSDP
n=19 (36.5%)
n=16 (30.8%)
Fig. 3. Barriers reported before running an AI model, broken down by respondent role (Q6, multiple selections). Fig. 1. Treemap of respondents’ research and work areas across the IEEE PES technical committees (Q3, multiple selections).
2) Persistent barriers, even for experienced users: Despite this broad interest, adoption is uneven and accompanied by persistent barriers. Three quarters of respondents (75%) had used AI in at least one project in the past two years, while one quarter had never applied AI beyond conversational tools (Table I). Crucially, these barriers are not limited to newcomers. As shown in Fig. 3, the most frequently reported obstacles are insufficient background knowledge and not knowing where to start (48.1%), hardware limitations such as GPU and memory constraints (40.4%), and environment-configuration issues including framework installation and Python version conflicts (28.8%). Each bar in Fig. 3 reports the within-group share, the number of respondents in a role group selecting a
3) Limited relevance of generic, image-based examples: A second motivating finding concerns the limited relevance of generic AI tutorials to power-system problems. As shown in Fig. 4, when asked how relevant image-based examples such as MNIST handwritten-digit recognition are to AI applications in power systems, only 11.5% of respondents rated them “very relevant,” whereas 53.8% were neutral-to-negative. This gap echoes a recurring theme in the open-ended responses: publicly available tutorials are perceived as over-focused on computer-vision or text tasks, while power-system problems are dominated by time series, waveforms, power-flow quantities, and dynamic responses. Respondents repeatedly requested domain-specific, hands-on examples grounded in realistic power-system data, together with access to realistic datasets, affordable or cloud-based computation, and evidence of reliability.
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
9.6%
11.5%
Very relevant
15.4%
Somewhat relevant Neutral 34.6%
28.8%
Slightly irrelevant Not relevant at all
Fig. 4. Perceived relevance of image-based AI examples (e.g., MNIST handwritten-digit recognition) to power-system applications (Q7, single choice).
4
systems to other engineering and applied science domains with similar data-driven characteristics. Well-structured hands-on examples can also accommodate learners at different levels. For beginners, simplified and modular code provides an accessible entry point to AI programming, enabling experimentation with parameters, functions, and model architectures. For more advanced learners, the same codes can serve as a baseline for extending models, incorporating additional data, or exploring more sophisticated learning frameworks. As a result, generic hands-on codes can function as a common starting point for AI education across disciplines, bridging foundational learning and advanced applications. III. A F RAMEWORK FOR H ANDS -O N AI M ODULES IN P OWER S YSTEMS
4) Clear demand for a tailored, low-friction learning path: These needs translate into a clear demand for a tailored learning path. When asked whether they would use a oneclick, hands-on AI tutorial designed specifically for power and energy systems, 65.4% answered “yes” and a further 28.8% answered “maybe,” for a combined 94.2% (Table I). Together with the qualitative feedback, these results directly motivate the hands-on, execution-ready course developed in this paper: by combining cloud-executable Jupyter notebooks, modular and physically interpretable examples, and minimal local setup, the proposed course targets the most frequently reported barriers and the demonstrated demand for powersystem-specific AI education.
The survey in Section II-A indicates that learning barriers are nearly universal and that generic, image-based examples are perceived as weakly relevant to power engineering. These findings motivate an approach that is more than a loose collection of scripts: a framework in which every module deliberately couples a core AI concept to a representative power-system task, so that learners always see why a method matters. This section describes the two knowledge maps that underpin the framework (Section III-A), the design philosophy that turns them into reusable modules (Section III-B), and the resulting module library at a glance (Section III-C) [24].
B. Overview of the Online Course and Webinar
A. Coupling an AI Knowledge Map to a Power-System Knowledge Map
1) IEEE Online Course: An example of recent educational efforts is the online course AI for Power and Energy Systems: Applications, Challenges, and Opportunities [21], hosted by IEEE. The course introduces AI techniques for accelerating modeling and control tasks in power and energy systems and is accompanied by example implementations provided as Jupyter notebooks. Representative examples include DNN training for function approximation and CNN models applied to a small power system, demonstrating how AI models can be connected to power-system problems in a computational environment. 2) IEEE PES Webinar Series: The same hands-on modules are delivered through the IEEE PES webinar AI for Power System Applications: Hands-on Examples, Selected Applications, and Perspectives [22], [23]. Part I presents the foundational and domain-coupled modules (01–03), while the frontier modules (04–06) will follow in Part II. This early engagement provides direct, real-world feedback that complements the community survey and corroborates the demand for reproducible, power-system-specific AI learning materials. C. Generic Codes as Hands-on Learning Tools Hands-on practice plays a critical role in reinforcing theoretical concepts and developing practical skills in AI and datadriven modeling. While domain-specific examples are useful for illustrating particular applications, generic and reusable code templates can further enhance learning by allowing users to focus on core AI principles rather than problem-specific details. Such generic codes can be readily adapted beyond power
The framework is organized around two complementary knowledge maps. The AI knowledge map orders methods by the type of problem they solve: nonlinear regression and function approximation with feed-forward DNNs; spatial or structured feature extraction with CNNs; constrained decision making, where a learned model is embedded inside a mathematical program; sequential decision making under uncertainty with DRL; and physics-constrained learning with PINNs. The power-system knowledge map orders tasks by function: load and renewable forecasting; power-flow analysis and state estimation; security-constrained dispatch and scheduling; storage and demand-side control; and electromechanical dynamics and frequency response. The core idea of the framework is to pair entries across the two maps rather than teach them in isolation. Function approximation is paired with load-curve prediction; convolution is paired with a power-flow surrogate; a learned constraint is paired with security-constrained decision making; DRL is paired with battery storage control; and physics-informed training is paired with the swing equation. This pairing directly addresses the survey finding that image-classification exemplars feel disconnected from power engineering: each module keeps the same generic AI workflow but anchors it in a recognizable power-system problem. B. Design Philosophy Four principles turn the two maps into a coherent set of modules.
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
5
TABLE II OVERVIEW OF THE HANDS - ON MODULE LIBRARY ( FILE NAMES IN PARENTHESES ) [24]. Tier
Tier 1 (Foundational)
Tier 2 (Domaincoupled)
Tier 3 (Frontier)
Module (files)
Core AI concept
Power-system task
System / data
01 DNN function fitting (DNN_sin.ipynb DNN_template.ipynb)
Nonlinear regression (MLP)
Function approximation
Analytic y = f (x)
02 DNN load curve fitting (DNN_load_curve.ipynb 1min_load_linear.xlsx)
Data-driven regression
Load-curve prediction
1-min load data
03 CNN for 5 bus system (CNN_for_5_bus_system.ipynb)
1-D convolution, multi-output
Power-flow surrogate
PJM 5-bus, Monte-Carlo power flow
04 DNN Assisted Optimization (DNN_Assisted_Opti.ipynb)
Learned constraint via MILP
Security-constrained decisions
Synthetic feasibility set
05 DRL BESS (DRL_BESS.ipynb)
Value-based control (DQN)
Battery scheduling
24-h load, ToU price
06 PINN Frequency (PINN_Frequency.ipynb)
Physics-informed training
Frequency dynamics
Linearized swing equation
Progressive difficulty. The modules are arranged in three tiers of increasing conceptual and engineering complexity: a foundational tier that establishes the supervised-learning workflow, a domain-coupled tier that connects a model to a physics-based simulator, and a frontier tier that reaches methods at the current research edge. Unified template. Every module follows the same notebook skeleton: a Settings block (Section 0), data generation, model construction, training, evaluation, and visualization. Therefore, a learner who understands one module can navigate any other by editing a single configuration block. Minimal yet extensible. Each notebook ships with small defaults that run in seconds on a laptop or in Colab, together with explicit notes on how to scale up (e.g., more samples, larger networks, or bigger test systems). This keeps the first run fast while leaving a clear path to realistic problem sizes. Reproducibility and active exploration. All modules are released under a permissive license with a pinned environment specification and one-click Colab execution, so that results can be reproduced exactly. By exposing parameters, architectures, and problem formulations, the modules encourage learners to experiment actively rather than to rely passively on LLMs for answers.
IV. F OUNDATIONAL M ODULES (T IER 1): G ENERIC DNN T EMPLATES The foundational tier centers on a single feed-forward DNN template, implemented in DNN_template.ipynb, that serves as a generic starting point for one-dimensional regression. The same template is exercised in two modes that share an identical pipeline and differ only in the data source: analytic function approximation, where samples come from a user-selected closed-form function, and dataset / load-curve fitting (DNN_load_curve, Section IV-D), where they come from measured data. The design logic is that moving from a textbook function to real data changes only the data source, not the AI workflow; accordingly, this section emphasizes that structure and leaves the step-by-step usage to the notebooks. A. Problem Formulation The module approximates an unknown nonlinear mapping y = f (x) with scalar x, y ∈ R, a formulation that covers a broad class of one-dimensional regression problems. To illustrate generality, the Settings block (Section 0) exposes several selectable function modes: sin, cos, exp, log, poly3 (a cubic polynomial), and a user-defined custom mode. With this design, the learning task can be changed without touching the training pipeline.
C. The Module Library at a Glance Table II summarizes the six modules, their AI concepts, the power-system tasks they target, and the underlying systems or data. The remainder of the paper presents the library tier by tier: Section IV details the foundational DNN templates as a worked exemplar; Section V details the domain-coupled CNN power-flow surrogate as a second exemplar; and Section VI presents the three frontier modules more concisely, emphasizing how each extends the shared workflow to a new class of power-system problem. Full source code for every module is available in the accompanying open repository [24].
B. Network Architecture and Training Setup A fully connected DNN, i.e., a multilayer perceptron (MLP), maps the scalar input x to a scalar prediction ŷ, implemented in TensorFlow/Keras with a mean-squared-error (MSE) loss and the Adam optimizer. The key design choice is that every quantity a learner is likely to vary is surfaced in a single configuration block rather than buried in the model code. Listing 1. Key hyperparameters in the DNN template EPOCHS = 300 INPUT_SIZE = 1
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
# can be modified,
Actual
34000
Here HIDDEN_LAYERS sets the depth and width of the network, appending an entry such as [64, 32, 128] adds a layer. And EPOCHS sets the training length. The notebook then runs the full supervised-learning pipeline (data generation, splitting, training, evaluation, and visualization), so a learner studies the effect of these choices by editing one block and re-running rather than by reading a lengthy walkthrough.
Average load
HIDDEN_LAYERS = [64, 32] ,→ e.g., [64, 32, 128] OUTPUT_SIZE = 1
6
Predicted
32000 30000 28000 26000 0
4
8
12
16
20
24
Time of day (h)
Fig. 6. Load-curve learning with the DNN_load_curve module.
C. Function Approximation Results Evaluated on unseen test data, the same architecture and pipeline generalize across function families. Fig. 5 shows two representative modes: the predicted curve closely tracks the ground truth for both a trigonometric target and a cubic polynomial, confirming that the template is not tailored to any single mapping.
1.0
2
True f(x) DNN prediction
0.5
DNN prediction
−2
f(x)
f(x)
True f(x)
0
0.0
−4 −6
−0.5
−8 −10
−1.0 0
1
2
3
4
5
x
(a) f (x) = sin(x)
6
−3
−2
−1
0
1
2
V. D OMAIN -C OUPLED M ODULE (T IER 2): CNN P OWER -F LOW S URROGATE The domain-coupled tier connects a neural network directly to a physics-based simulator. A CNN, implemented in CNN_for_5_bus_system.ipynb, is trained as a powerflow surrogate: it maps known operating set-points (bus loads and generator dispatch) to the solved system state (bus voltage magnitudes and line power flows), so the nonlinear powerflow equations need not be solved online. The module shows how the Tier 1 workflow extends to structured, multi-output regression over quantities produced by a domain simulator; as before, the section emphasizes the design logic and code structure and leaves the hands-on detail to the notebook.
3
x
(b) y = 0.2x3 − 0.5x2 + 0.3x
Fig. 5. Predicted versus true curves on unseen test data for two representative modes of the shared DNN template: (a) a trigonometric mapping and (b) a cubic polynomial. The identical network and training pipeline reproduce both.
D. Dataset and Load-Curve Fitting Keeping the same network and pipeline, the second mode (DNN_load_curve) replaces the analytic generator with sampled data, in this case a measured load profile, so that the input–output relationship is learned from data rather than from a closed-form expression. Each feature–label pair (x, y) is reshaped to the DNN interface, and the data are partitioned with the widely used 70/30 train–test split, again exposed once in Section 0. Listing 2. Training configuration in Section 0 of DNN_load_curve # === Section 0: Settings === TRAIN_RATIO = 0.70 EPOCHS = 500 HIDDEN_LAYERS = [64, 32, 128] # can be changed to ,→ [64, 32] or other sizes
Evaluating on the held-out 30% reinforces the central lesson that predictive quality must be judged on unseen data. Fig. 6 shows the template reproducing a load curve from sampled data, confirming that the identical workflow transfers directly from analytic functions to measured signals. Overall, the foundational tier exposes the complete supervised-learning workflow through one configurable template, letting beginners experiment with architectures, hyperparameters, and data sources before advancing to the domain-coupled and frontier modules.
A. Dataset Generation and Leakage-Free Design The modified PJM 5-bus system [19] is loaded directly from pandapower. A single power-flow solution yields only one operating point, so the dataset is built by Monte-Carlo sampling around the nominal load: every load is perturbed by multiplicative Gaussian noise, p(i) = pbase ε,
ε ∼ N (1, σ 2 ),
(1)
with σ = 10% applied independently to the active and reactive components, and the flow is re-solved (non-converged points are discarded). A central design point, made explicit in the code, is the avoidance of data leakage. The inputs are restricted to the known quantities: bus load (P , Q), generator activepower set-points, and generator voltage set-points, arranged as a structured 5 × 4 array. The solved voltages and line flows serve exclusively as targets. Listing 3. Dataset-generation settings in CNN_for_5_bus_system N_SAMPLES = 100 # number of Monte-Carlo ,→ power-flow runs LOAD_STD = 0.10 # load noise std = 10% of the ,→ nominal demand # inputs : load P, load Q, gen P, gen V-set -> (N, ,→ 5 buses, 4 features) # targets: bus voltages (5), and line flows (P then ,→ Q)
The demo draws N_SAMPLES= 100 Monte-Carlo operating points and shuffles them into an 80/20 train/test split; this lets learners see how dataset size, training length, and capacity jointly affect accuracy while keeping the notebook quick to run. Inputs are standardized with training-set statistics that are reused on the held-out test set.
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
Model 1 2 3 4
Target Bus voltage Bus voltage Bus voltage Line power flow
Epochs
Conv. filters
50 50 200 200
24, 24, 12 240, 240, 120 240, 240, 120 24, 24, 12
All variants train with an MSE loss and the Adam optimizer (batch size sixteen, 20% validation split), tracking the mean absolute error (MAE) as an auxiliary metric. After training, the held-out test operating points, unseen during training and standardized with the training statistics, are predicted directly from the inputs, without invoking the power-flow solver, and compared against the reference solution.
Voltage magnitude (pu)
1.05 1.00 0.95 0.90 0.85
Actual Predicted (50 ep, 24 filt.)
0.80
Predicted (50 ep, 240 filt.) Predicted (200 ep, 240 filt.)
0.75 1
2
3
5
Fig. 7. Actual versus predicted bus voltage magnitudes on an unseen test sample for the three voltage models (50 epochs/24 filters, 50 epochs/240 filters, and 200 epochs/240 filters).
sizable reactive excursion (≈ −100 MVAr) is slightly underestimated. This shows the surrogate learns the bulk power-flow solution from a small dataset while the largest, most nonlinear excursions remain the hardest to match, which is exactly the data-and-capacity trade-off these hands-on modules are meant to expose.
Actual P (MW)
200
Predicted P (MW)
100 0 −100 −200 1
2
3
4
5
6
Line index
(a) Active power flow P C. Results and Comparison The surrogate is evaluated on the held-out test operating points for bus voltages and for line active and reactive flows. A physical subtlety, made explicit in the notebook, shapes the voltage results: in case5 the PV and slack buses are pinned to their voltage set-points, so only the single PQ-bus voltage actually varies across operating points, and the target is a nearflat ≈ 1.0 pu profile with a small dip at that bus. For the voltage models (Fig. 7), the model trained for 200 epochs with 240 filters reproduces this profile almost exactly (test MAE below 10−3 pu), including the dip at the PQ bus, whereas the two lightly trained 50-epoch models incur more than an orderof-magnitude larger error: the 24-filter model wobbles around the flat reference, and the higher-capacity 240-filter model, undertrained after only 50 epochs, deviates most around the PQ bus. This gives an intuitive, hands-on illustration that model capacity must be paired with sufficient training length. Because the voltage target is nearly degenerate on this small system, the line flows below are the more demanding test of the surrogate. For the line flows (Fig. 8), the power-flow model (Model 4) reproduces the active-flow pattern across all six lines, namely the large positive flows on the first two lines and the reversals on the remaining lines, with moderate per-line deviations (test MAE ≈ 14 MW on flows spanning roughly ±240 MW). The reactive flows are likewise captured (test MAE ≈ 2 MVAr), with the largest residual at the most heavily loaded line, whose
4
Bus index
Reactive power flow (MVAr)
TABLE III CNN MODEL VARIANTS USED IN THE 5- BUS SURROGATE MODULE . E ACH VARIANT USES THREE C O N V 1D LAYERS ; THE FILTER COUNTS ARE LISTED FOR THE THREE LAYERS IN ORDER .
1.10
Active power flow (MW)
B. CNN Architecture, Model Variants, and Training The 5×4 feature map is convolved along the bus dimension, so the learned filters capture interactions among neighboring buses. The network stacks three one-dimensional convolutional (Conv1D) layers with rectified linear unit (ReLU) activations (kernel size two, valid padding), a flatten, a 12-unit dense layer, and a linear output; no pooling is used because the spatial extent (five buses) is small. The output width is either five (bus voltages) or 2 nline (per-line active and reactive flows). To let learners probe the effect of training length and width, four variants are defined (Table III): Models 1–3 predict bus voltages and Model 4 predicts the line flows.
7
20 0 −20 −40 −60 −80
Actual Q (MVAr) Predicted Q (MVAr)
−100 1
2
3
4
5
6
Line index
(b) Reactive power flow Q
Fig. 8. Actual versus predicted line power flows on an unseen test sample: (a) active power P and (b) reactive power Q.
Overall, this module illustrates how the shared AI workflow extends to a domain-coupled surrogate-modeling task driven by physical simulations. Although the 5-bus system and the small demonstration dataset are intentionally lightweight, the same data-generation, modeling, and training principles scale directly to larger networks (e.g., the IEEE 39- or 118-bus systems) and to other engineering domains that rely on structured, simulation-generated data. VI. F RONTIER M ODULES (T IER 3): O PTIMIZATION , C ONTROL , AND P HYSICS The frontier tier extends the AI application beyond supervised regression to three advanced method families: learnedconstraint optimization, sequential decision making, and physics-informed learning. Each subsection first identifies how AI learning is coupled to the engineering domain and highlights the corresponding executable modules, and then examines practical cases. A. DNN-Assisted Optimization AI-assisted optimization places a learned mapping inside a mathematical program, allowing data-derived approximations of constraints that are difficult to express
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
(b) Storage control
(a) Optimization
216.34 191.58
180.19
0.5
200
100
Cost ($)
1.0
x2
8
Boundary Analytical MILP
0.0
0 0.0
0.5
x1
1.0
No storage
Cycle
DQN
Fig. 9. Executable example results for (a) DNN-assisted optimization and (b) DRL-based battery storage cost.
in a solver-compatible form. This coupling extends the shared workflow from prediction to decision making. In DNN_Assisted_Opti.ipynb, ReLURegressor approximates g(x) = x21 + x22 − 1, linear_bounds derives neuron preactivation limits over the decision box, and bigM constraints embed the trained piecewise-linear mapping in a mixed-integer linear program (MILP). Separate network and original-constraint evaluations distinguish exact encoding of the trained network from satisfaction of the nonlinear constraint. The applilcation case maximizes x1 +x2 subject to g(x) ≤ 0 over [−1.5, 1.5]2 . A 64-unit, one-hidden-layer ReLU network trained on 6000 samples. As shown in Fig. 9(a), the resulting MILP returns x⋆ = (0.7237, 0.6735), with objective 1.3973 and true constraint value −0.02256. This example illustrates how nonlinear relationships in power system applications can be approximated by AI models and subsequently embedded as constraints in optimization-based decision models.
battery to its initial empty state. Because every training episode and the reported rollout use the same synthetic profile and illustrative cost coefficients, this result verifies the executable state–action–reward coupling. Beyond this example, the same formulation can be extended to sequential power system control tasks in which learned policies must account for system states, operating constraints, and customized objectives. C. Physics-Informed Neural Networks for the Swing Equation Physics-informed learning couples a neural approximation to known differential equations through the training objective, thereby extending the shared workflow from data fitting to power system dynamics [26], [27]. In PINN_Frequency.ipynb, a two-output MLP maps time to rotor angle δ̂(t) and angular speed ω̂(t). The physics_residual routine uses automatic differentiation ˙ to evaluate rδ = δ̂ − ω̂ and rω = M ω̂˙ + Dω̂ + Ks δ̂ − ∆P at unlabeled collocation points. A composite loss then combines dimensionless data, initial-condition, and residual terms, while the physical parameters, sample densities, and loss weights remain exposed for experimentation. In the swing equation case, the ordinary neural network and PINN use identical architectures, initial weights, initial condition, and optimizer budgets. Only the PINN adds 300 collocation points. Fig. 10 compares both learned trajectories with the analytical response and the sparse training samples. The PINN more closely reproduces the rotor angle swing and the angular speed excursion between the sparse samples. For broader power system applications, embedding governing equations in the training objective can support sparse data modeling of dynamics relevant to stability analysis and to frequency-aware system operation [28], [29]. (a) Rotor angle
0.15 0.10 0.05
Analytical Ordinary NN
0.00
PINN Training samples
(b) Angular speed
0.08
ω (rad/s)
DRL formulates battery scheduling as a finite-horizon Markov decision process, coupling neural function approximation to a domain environment through state transitions and rewards [25]. DRL_BESS.ipynb schedules a battery energy storage system (BESS) for cost minimization. The normalized state comprises hour, time-of-use (ToU) price, load, and battery state of charge (SOC), while the actions are charging, idling, and discharging. BatteryStorageEnv.step enforces power and energy limits, updates the SOC, and returns a scaled negative complete cost as the reward. The DQN and ReplayMemory modules expose action-value approximation and experience replay, while the training block implements ϵ-greedy exploration and target-network Bellman updates. This separation preserves the model, training, and evaluation sequence while allowing the physical limits, reward terms, and learning settings to be modified independently. For the default case, a deep Q-network (DQN) is trained for 300 episodes on one synthetic 24-h profile. Fig. 9(b) shows that its greedy training-day rollout has a complete cost of $180.19, compared with $191.58 without storage and $216.34 for the straightforward cycle rule. The 5.9% reduction relative to the no-storage case is obtained while returning the 60-kWh
δ (rad)
B. Deep Reinforcement Learning for Battery Storage Control
0.04
0.00
−0.04 0
5
10
15
20
Time (s)
Fig. 10. Dynamic trajectories from the analytical solution, ordinary neural network, and PINN.
VII. D ISCUSSION AND E DUCATIONAL I MPACT A. Addressing the Barriers Identified by the Survey The module library is designed as a direct response to the barriers reported in Section II-A. The survey found that a large
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
majority of respondents encounter at least one obstacle before running an AI model and that generic, image-based examples are perceived as only weakly relevant to power engineering. The framework counters both issues. The unified template and one-click Colab execution remove environment- and setuprelated barriers, so that a first result is obtained within minutes and without local installation. The explicit pairing of each AI concept with a power-system task replaces the abstract image-classification exemplar with problems that respondents recognize from their own work. The progressive tiering, in turn, lets learners enter at a level matched to their background and advance without switching frameworks.
9
(bus injections, states of charge, or system parameters), the workflow is constrained by domain structure (a power-flow solver, a Markov decision process, or the swing equation), and each output is explicitly verified against a physical or analytical reference before it is trusted. Making these engineering constraints visible and executable, rather than hiding them behind a conversational interface, is what turns a generic AI recipe into a dependable power-system tool, and it is the principle we encourage learners to carry from these examples into their own work.
E. Limitations and Future Directions B. A Reusable Framework Beyond Power Systems Because every module is built on the same configurable template, the methodology transfers readily to other datadriven disciplines. The foundational regression workflow applies unchanged to problems in finance, weather, or biology; the surrogate-modeling pattern of Tier 2 applies to any expensive simulator; and the optimization, control, and physicsinformed patterns of Tier 3 recur across engineering domains. Presenting these patterns through a shared interface promotes interdisciplinary learning and lets instructors reuse a single teaching infrastructure across courses. C. Integration with the Course, Webinar, and Community Feedback The modules complement the IEEE online course AI for Power and Energy Systems [21] and the IEEE PES webinar series [22], [23]: the course and webinar provide the conceptual framing, while the notebooks provide the hands-on counterpart that learners run and modify. Google Colab support enables self-paced study on any machine, and the pinned environment specification makes the same notebooks suitable for graded assignments or laboratory sessions. Early deployment already yields encouraging feedback: with more than 590 live attendees in Part I, among the ten most-attended IEEE PES webinars. Also the open-source hands-on codes received over 344 repository visits within the first two weeks. The materials reach a large and engaged audience, echoing the survey-based demand and closing a course–webinar–survey–feedback loop that guides this work. This coupling of narrated concepts with executable, reproducible code is the mechanism by which the framework moves learners from passive consumption toward active experimentation. D. Toward Engineering-Grounded AI Beyond lowering the entry barrier, the framework points toward a broader design principle that we term engineeringgrounded AI (EGAI): AI systems for power and energy applications should be developed so that every stage of their operation (input, routine, skills, workflow, iteration, verification, and output) conforms to established engineering principles and power-system domain rules, rather than treating the model as a task-agnostic black box [20]. Each module in the library embodies this view in miniature: inputs carry physical meaning
The present modules are intentionally lightweight, and their small demonstration settings are chosen for speed rather than realism; scaling them to larger systems and larger datasets is a natural next step already signposted in the notebooks. Further directions include adding time-series modules based on recurrent and long short-term memory networks for forecasting, incorporating explainability tools so that learners can interrogate model behavior, and extending the frontier tier toward digital-twin and closed-loop grid-operation workflows. A formal classroom evaluation of learning outcomes, following the survey-driven design reported here, would further quantify the educational impact.
VIII. C ONCLUSION This paper presented an educational framework and an open, executable module library for teaching AI in power systems. Grounded in a community survey of researchers and practitioners, the framework organizes six hands-on modules along a progressive difficulty ladder that maps core AI concepts onto representative power-system tasks. Across the three tiers, a single configurable notebook template carries the learner from foundational DNN function and load-curve fitting, through a domain-coupled CNN power-flow surrogate, to frontier modules on DNN-assisted optimization, DRL for storage control, and physics-informed learning of the swing equation. The developed samples and codes lower setup barriers and anchor each method in a familiar power-system problem. They are released as a reproducible, Colab-ready notebook delivered through an IEEE online course and an IEEE PES webinar with strong early engagement. The proposed framework bridges conceptual understanding and practical implementation and encourages active experimentation over passive reliance on LLMs.
ACKNOWLEDGMENT The authors would like to thank the CURENT Engineering Research Center for facility support and the IEEE PES Artificial Intelligence for Power Systems Coordinating Committee (AIPSCC) for support in conducting the survey reported in this paper.
JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, AUGUST 2026
R EFERENCES [1] X. Chen, G. Qu, Y. Tang, S. H. Low, and N. Li, “Reinforcement learning for selective key applications in power systems: Recent advances and future challenges,” IEEE Transactions on Smart Grid, vol. 13, no. 4, pp. 2935–2958, Jul. 2022. [Online]. Available: https://ieeexplore.ieee.org/document/9721402/ [2] L. Duchesne, E. Karangelos, and L. Wehenkel, “Recent developments in machine learning for energy systems reliability management,” Proceedings of the IEEE, vol. 108, no. 9, pp. 1656–1676, Sep. 2020. [Online]. Available: https://ieeexplore.ieee.org/document/9091534/ [3] X. Feng, J. Yin, C. Li, V. Wilson, B. She, Q. Zhang, J. Zhao, C.-f. Chen, K. Tomsovic, X. Fang, H. Cui, R. Bo, and F. F. Li, “Grid resilience, extreme weather events, and clean energy development: Understanding their interactions in modern power systems,” Nature Reviews Clean Technology, 2026, invited paper. [4] T. K. F. Chiu, H. Meng, C.-S. Chai, I. King, S. Wong, and Y. Yam, “Creation and evaluation of a pretertiary artificial intelligence (AI) curriculum,” IEEE Transactions on Education, vol. 65, no. 1, pp. 30–39, Feb. 2022. [Online]. Available: https://ieeexplore.ieee.org/ document/9455898 [5] A. T. Neumann, Y. Yin, S. Sowe, S. Decker, and M. Jarke, “An LLM-driven chatbot in higher education for databases and information systems,” IEEE Transactions on Education, vol. 68, no. 1, pp. 103–116, Feb. 2025. [Online]. Available: https://ieeexplore.ieee.org/document/ 10706931/ [6] Y. Hao, Y. Liu, B. Liu, G. Amarantidis, and R. Ghannam, “Integrating AI in engineering education: A comprehensive review and studentinformed module design for U.K. students,” IEEE Transactions on Education, vol. 68, no. 2, pp. 173–185, Apr. 2025. [Online]. Available: https://ieeexplore.ieee.org/document/10924443/ [7] S. Shailendra, R. Kadel, and A. Sharma, “Framework for adoption of generative artificial intelligence (GenAI) in education,” IEEE Transactions on Education, vol. 67, no. 5, pp. 777–785, Oct. 2024. [Online]. Available: https://ieeexplore.ieee.org/document/10629211/ [8] D. Wang and G. Chen, “Making AI accessible for STEM teachers: Using explainable AI for unpacking classroom discourse analysis,” IEEE Transactions on Education, vol. 67, no. 6, pp. 907–918, Dec. 2024. [Online]. Available: https://ieeexplore.ieee.org/document/10605115/ [9] P. Guedes, E. Abranches Silva Lopes, P. F. Ribeiro, and A. C. Zambroni De Souza, “The impact of artificial intelligence on learning and teaching of engineering,” IEEE Transactions on Education, vol. 68, no. 5, pp. 417–425, Oct. 2025. [Online]. Available: https://ieeexplore.ieee.org/document/11105060/ [10] U. Pandey, A. Pathak, A. Kumar, and S. Mondal, “Applications of artificial intelligence in power system operation, control and planning: a review,” Clean Energy, vol. 7, no. 6, pp. 1199–1218, Dec. 2023. [Online]. Available: https://academic.oup.com/ce/article/7/6/1199/ 7425141 [11] B. She, F. Li, H. Cui, J. Zhang, and R. Bo, “Fusion of microgrid control with model-free reinforcement learning: Review and vision,” IEEE Transactions on Smart Grid, vol. 14, no. 4, pp. 3232–3245, 2022. [12] S. Zhao, F. Blaabjerg, and H. Wang, “An overview of artificial intelligence applications for power electronics,” IEEE Transactions on Power Electronics, vol. 36, no. 4, pp. 4633–4658, Apr. 2021. [Online]. Available: https://ieeexplore.ieee.org/document/9200511/ [13] M. Chen, H. Cui, F. Blaabjerg, L. Lorenz, R. Hellinger, T. Gray, O. Fink, and K. Hermanns, “Power for AI and AI for power: The infinite entanglement between artificial intelligence and power electronics systems,” IEEE Power Electronics Magazine, vol. 12, no. 1, pp. 37–43, Mar. 2025. [Online]. Available: https://ieeexplore.ieee.org/ document/10906734/ [14] F. Li and J. Zhao, “Review and vision of AI in power system applications,” Denver, CO, Jul. 2022. [Online]. Available: https://cmte.ieee.org/pes-mlps/wp-content/uploads/sites/91/ 2025/01/IEEE-PES-GM22 AI-Supersession 1-Fran-Li.pdf [15] A. Ali, J. Yin, F. F. Li, and H. Cui, “Pathway toward an open source ecosystem in power systems: A blueprint for collaborative innovation and software sustainability,” IEEE Electrification Magazine, vol. 13, no. 2, pp. 58–67, Jun. 2025. [Online]. Available: https: //ieeexplore.ieee.org/document/11023239/ [16] H. Haugdal and K. Uhlen, “An open source power system simulator in python for efficient prototyping of WAMPAC applications,” Jan. 2021, arXiv:2101.02937 [eess]. [Online]. Available: http://arxiv.org/abs/2101. 02937
10
[17] J. Montalvo, U. Agwan, P. Moutis, and E. Liang, “AI for optimal power flow.” [Online]. Available: https://colab.research.google.com/github/climatechange-ai-tutorials/ optimal-power-flow/blob/main/AI for Optimal Power Flow.ipynb [18] S. Fahad, B. She, J. Yin, F. Li, H. Cui, and R. Bo, “A data-driven adaptive control approach for enhancing the dynamic response of VSGs in varying grid conditions,” IEEE Transactions on Power Delivery, pp. 1–13, 2025. [Online]. Available: https: //ieeexplore.ieee.org/document/10950127 [19] F. Li and R. Bo, “Small test systems for power system economic studies,” in IEEE PES General Meeting, Jul. 2010, pp. 1–4, iSSN: 1944-9925. [Online]. Available: https://ieeexplore.ieee.org/document/ 5589973/authors [20] J. Yin and X. Feng, “Do AI agents know when a task is simple? Toward complexity-aware reasoning and execution,” arXiv preprint arXiv:2607.13034, 2026. [21] F. Li, “AI for power and energy systems: Applications, challenges, and opportunities,” 2026. [Online]. Available: https://xplorestaging.ieee.org/ courses/details/EDP818 [22] F. Li, “AI for power system applications: Hands-on examples, selected applications, and perspectives,” IEEE Power & Energy Society (PES) Webinar, Part I, Jun. 2026, video recording. [Online]. Available: https://resourcecenter.ieee-pes.org/education/webinars/pes ed web aip1 061026 [23] F. Li, “AI for power system applications: Hands-on examples, selected applications, and perspectives,” IEEE Power & Energy Society (PES) Webinar, Part I, Jun. 2026, slides. [Online]. Available: https://resourcecenter.ieee-pes.org/education/webinars/pes ed web aip1 061026 sld [24] J. Yin, B. She, and F. Li, “AI for power and energy systems: Handson examples,” GitHub repository, Sep. 2025. [Online]. Available: https://github.com/enliten/IEEE-course AI-for-Power-Energy-Systems [25] B. She, F. Li, H. Cui, J. Zhang, and R. Bo, “Fusion of microgrid control with model-free reinforcement learning: Review and vision,” IEEE Transactions on Smart Grid, vol. 14, no. 4, pp. 3232–3245, Jul. 2023. [26] M. Raissi, P. Perdikaris, and G. E. Karniadakis, “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations,” Journal of Computational Physics, vol. 378, pp. 686–707, 2019. [27] G. S. Misyris, A. Venzke, and S. Chatzivasileiadis, “Physics-informed neural networks for power systems,” in 2020 IEEE Power & Energy Society General Meeting (PESGM), 2020, pp. 1–5. [Online]. Available: https://arxiv.org/abs/1911.03737 [28] J. Yin, B. She, J. Wang, and F. Li, “Encoding frequency dynamics into economic operation of IBR-penetrated power systems: Quantification, integration, and validation,” IEEE Transactions on Smart Grid, 2026. [29] B. She, F. Li, H. Cui, J. Wang, Q. Zhang, and R. Bo, “Virtual inertia scheduling (VIS) for real-time economic dispatch of IBR-penetrated power systems,” IEEE Transactions on Sustainable Energy, vol. 15, no. 2, pp. 938–951, 2023.
Related documents
- A Lean and Spec-Driven AI-Assisted Software Development Lifecycle for Applied AI Education: The AI-SDLC Approach#1050527
- A Lean and Spec-Driven AI-Assisted Software Development Lifecycle for Applied AI Education: The AI-SDLC Approach#1028765
- Cyber-Physical Systems Improving Building Energy Management: Digital Twin and Artificial Intelligence#686429
- AI-based energy edge platform, systems, and methods having automated and … — Strong Force Ee Portfolio 2022, Llc (US12298726B2)#607545
- Skill-Based AI Agents for Power-System Studies#1154533
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive