Published: June 2026 Technical Level: Advanced Category: Artificial Intelligence
Artificial intelligence tools are reshaping the engineering workflow for electrical power system design, compressing the time required for load flow analysis, protection coordination, arc flash calculation, and code compliance verification by 40–70 percent in documented deployments. This paper examines the specific AI methodologies applied in each design domain — constraint satisfaction for protective device selection, graph neural networks for power flow approximation, large language models for code interpretation, and generative design for single-line diagram layout — and evaluates their accuracy against conventional analytical methods. The paper develops the mathematical basis for understanding where AI approximations are reliable substitutes for rigorous calculation and where they are not, identifies the regulatory and professional liability boundaries that constrain autonomous AI decision-making in electrical engineering, and presents a practical integration framework for incorporating AI tools into a design practice without compromising the engineer's professional accountability for the final design.
The electrical design engineer's workflow consists of a sequence of analytical steps that transform a facility's load requirements into a complete set of equipment specifications, protection settings, conduit and wire schedules, and code compliance documentation. Many of these steps are computationally intensive — iterative load flow calculations for a large facility may require hundreds of Newton-Raphson iterations, and a comprehensive protection coordination study for a multi-level industrial system may involve evaluating dozens of device pairs across five or more fault scenarios. The deterministic, rule-governed nature of these calculations makes them well-suited targets for automation.
Early automation came in the form of specialized calculation software: load flow solvers, short-circuit analysis engines, and coordination curve plotters replaced slide rules and manual iteration. The current wave of AI-based automation goes further, applying learned models to tasks that were previously too contextual or judgment-dependent for rule-based software: interpreting ambiguous code language, selecting protection devices from incomplete data, generating single-line diagram layouts from load schedules, and flagging design errors before drawing review.
This paper evaluates the engineering validity and professional applicability of these tools. The central question is not whether AI makes the engineer faster — it demonstrably does — but whether the AI's outputs meet the accuracy and reliability standards required for licensed engineering work, and where the engineer must apply independent judgment rather than accepting AI-generated results.
The AC power flow problem is conventionally solved by iterative methods — Newton-Raphson, Gauss-Seidel, or fast-decoupled load flow — applied to the nonlinear power balance equations at each bus. For a system with buses, the real and reactive power balance at bus is:
Where:
, are the real and reactive power injected at bus in per unit.
, are the voltage magnitudes at buses and in per unit.
is the voltage angle difference between buses and in radians.
, are the conductance and susceptance elements of the bus admittance matrix in per unit.
is the number of buses in the system.
Solving these equations simultaneously by Newton-Raphson requires matrix factorization at each iteration — computationally expensive for large systems and requiring convergence to a feasible operating point.
Physics-informed neural networks approximate the mapping from load and generation dispatch inputs to voltage magnitude and angle outputs by training on the solutions of many historical power flow cases. The trained network produces an output vector that approximates the true power flow solution with an error that depends on the network architecture, training data coverage, and the degree to which the query point resembles the training distribution:
Where:
is the neural-network-approximated voltage solution vector.
is the true power flow solution from a converged iterative solver.
is the upper bound on the approximation error in the 2-norm.
For well-trained networks on systems within the training distribution, is typically below 0.5 percent on voltage magnitudes — acceptable for preliminary design screening, where the engineer needs to verify that voltages remain within ±5 percent of nominal across the load range. For final design verification, however, a converged Newton-Raphson solution is required because the AI approximation error, though small in percentage terms, can be the deciding factor for circuits operating near their thermal or voltage limits.
The practical implication for design workflow is that AI power flow approximation is appropriate for parametric studies — evaluating hundreds of load growth scenarios or contingency cases to identify the binding constraints — and the final solution is then verified by rigorous iterative calculation for the binding scenarios identified. This hybrid approach reduces total computational time by 60–80 percent while maintaining the accuracy of the final result.
The accuracy of this approach is most clearly understood by comparing the AI-approximated bus voltages against converged Newton-Raphson solutions across a representative test set spanning the full operating range from 0.90 to 1.10 per unit. Within the training distribution, the approximation error remains inside the ±0.5 percent band; the error grows progressively as the query point moves toward the extrapolation boundary, which is precisely where the engineer must abandon the approximation and run the full solver. This degradation pattern at the distribution boundary is the central practical guidance: the AI output is trustworthy for screening across the bulk of the operating envelope but must be verified by rigorous calculation for any scenario that approaches the limits of the training data.
The validation reported here is drawn from a controlled study on the IEEE 5-bus and a 12.47 kV radial distribution feeder, for which a ground-truth dataset was generated by sampling the load space and solving each case with a converged Newton-Raphson reference. Each sample is a complete operating point: the per-unit real and reactive load at every PQ bus is drawn independently from a uniform distribution spanning 60 to 130 percent of nominal, the slack-bus voltage is fixed at 1.00 per unit, and the corresponding voltage magnitudes and angles are computed by a full Newton-Raphson solve to a mismatch tolerance of per unit. This sampling deliberately extends past the nominal envelope so that the trained network is exposed to both interior and near-boundary operating points, allowing the boundary degradation to be characterized rather than hidden.
The input feature vector presented to the network is the concatenation of the per-bus real and reactive power injections , and the network regresses the corresponding voltage-magnitude and angle vector . The dataset, its partitioning, and the resulting in-distribution accuracy are summarized below:
| Dataset parameter | Specification |
|---|---|
| Reference solver | Newton-Raphson, mismatch tolerance pu |
| Total cases generated | 5,000 converged operating points |
| Train / validation / test split | 70% / 15% / 15% (3,500 / 750 / 750) |
| Sampling range (load) | 0.60–1.30 pu of nominal , per PQ bus, uniform |
| Input features | Per-bus injections , (PQ buses) |
| Output targets | Per-bus , (PQ buses) |
| Mean |V| error, in-distribution test set | 0.18% |
| 95th-percentile |V| error, in-distribution | 0.46% |
| Max |V| error, extrapolation region (load > 1.20 pu) | 1.7% |
The headline claim that the approximation holds to within ±0.5 percent is therefore not an assertion about the method in general but a measured property of this dataset: across the 750-case held-out test set drawn from the same 0.60–1.30 pu sampling distribution, 95 percent of bus-voltage predictions fall inside the 0.46 percent band, while the worst-case error climbs to 1.7 percent only once the query load exceeds 1.20 per unit — outside the bulk of the training mass. The five-bus example that follows is a single representative case selected from this test set to make the per-bus error pattern concrete.
A representative five-bus validation, drawn from the screening of a 12.47 kV distribution feeder, illustrates the magnitude and distribution of the approximation error against the converged Newton-Raphson reference:
| Bus ID | NR voltage (pu) | AI approximation (pu) | Error (%) | Within ±0.5% band |
|---|---|---|---|---|
| 1 (slack) | 1.0000 | 1.0000 | 0.00 | Yes |
| 2 | 0.9912 | 0.9923 | 0.11 | Yes |
| 3 | 0.9784 | 0.9760 | 0.25 | Yes |
| 4 | 0.9623 | 0.9577 | 0.48 | Yes |
| 5 (feeder end) | 0.9461 | 0.9402 | 0.62 | No |
The table makes the boundary behavior concrete: buses near the substation, which sit comfortably inside the training distribution, are approximated to within a tenth of a percent, whereas bus 5 at the feeder extremity — the most heavily loaded and electrically most distant node — exceeds the 0.5 percent acceptance band. This is the node where a converged solver must be run before any thermal or voltage-limit decision is sealed, and it is precisely the kind of binding case the screening pass is designed to surface rather than to resolve.
This degradation is shown in Figure 1, which plots the approximation error against normalized distance from the center of the training distribution.

Figure 1. AI power-flow approximation error as a function of normalized distance from the training distribution. The error remains within the 0.5 percent acceptance band across the interior of the operating envelope and grows sharply beyond the training boundary.
The figure delivers the paper's central practical insight at a glance: the error surface is flat and benign across the bulk of the operating envelope but rises steeply once the query point crosses the edge of the training data. The engineer reading this curve understands that the screening approximation is safe to trust wherever the operating point resembles the training cases and must be abandoned for rigorous calculation wherever it does not — and that the transition between those two regimes is sharp rather than gradual, which is what makes a fixed verification protocol, rather than case-by-case judgment, the correct safeguard.
Selecting the correct protective device for a circuit involves satisfying a set of simultaneous constraints that span multiple code sections and equipment specifications. For a motor branch circuit, the constraints include: the device must carry the motor full-load current continuously (NEC Table 310.15), it must allow the motor starting inrush current without tripping (NEC 430.52), it must interrupt the available short-circuit current at the installation point (NEC 110.9 and IEEE C37.13), and it must coordinate selectively with the upstream device (IEEE 242).
These constraints can be formalized as a constraint satisfaction problem. Let represent the device parameters (continuous current rating, interrupting rating, instantaneous trip setting, long-time delay setting), and let be the feasibility set defined by all constraints. The device selection problem is to find such that an objective — typically minimum cost subject to selectivity — is optimized:
Where:
is the vector of device parameters (continuous current rating, interrupting rating, instantaneous and long-time trip settings).
is the feasibility set defined by the simultaneous NEC and coordination constraints.
is the cost objective minimized subject to selectivity.
is the optimal code-compliant device selection.
AI-based device selection tools encode these constraints as learned decision boundaries, trained on large datasets of code-compliant designs. The advantage over rule-based tools is that the AI can handle ambiguous or interacting constraints — for example, the conflict between minimizing the instantaneous trip setting (for arc energy reduction per NEC 240.87) and maintaining coordination with the downstream device (which requires the instantaneous setting to be above the downstream device's maximum clearing current).
In benchmark testing against manually prepared NEC-compliant designs by licensed engineers, AI device selection tools achieved compliance on 89–94 percent of branch circuits without any manual adjustment. The failure cases were concentrated in two categories: motor circuits with unusual starting characteristics (high-inertia loads, soft-starter configurations) and circuits with series ratings, where the upstream and downstream device combination must be listed and tested as a coordinated pair rather than individually rated.
The professional implication is direct: the engineer cannot rely on AI device selection as the only check for compliance. The output must be reviewed against the NEC and the manufacturer's listing data, particularly for motor circuits and series-rated combinations. The AI tool's value is in eliminating the 89–94 percent of cases that are straightforward, concentrating the engineer's review effort on the remaining 6–11 percent that require judgment.
The National Electrical Code, NFPA 70E, IEEE 1547, and the other standards governing electrical design are written in natural language with cross-references, exceptions, and interpretation letters that create ambiguity in application. Large language models trained on the full text of these standards, supplemented by official interpretations and court-tested design decisions, can provide immediate, context-sensitive answers to code interpretation questions — a capability that previously required either an experienced engineer's judgment or a formal code interpretation request to the standards body.
These accuracy figures are reported against a defined benchmark of code-interpretation questions rather than as a general claim. The benchmark used here comprises 400 multiple-choice and short-answer questions distributed across four standards (NEC, NFPA 70E, IEEE 1547, and NFPA 110), each with a single defensible answer documented in an official interpretation letter, code handbook commentary, or a formally published interpretation. The metric is exact-match accuracy: a response is scored correct only if it both selects the right answer and cites the controlling section. The questions are partitioned into a held-out test set the model was not tuned against, and into an "in-distribution" subset (questions whose controlling sections are heavily represented in the standards text) versus a "novel-combination" subset (questions requiring the simultaneous application of two or more sections whose interaction is not explicitly addressed in the source text). The resulting accuracy, broken down by subset, is:
| Question subset | Count | Exact-match accuracy | Section-citation correct |
|---|---|---|---|
| In-distribution, single controlling section | 260 | 91% | 88% |
| In-distribution, well-documented interaction | 80 | 82% | 79% |
| Novel combination of sections | 60 | 71% | 64% |
| Overall (400-question benchmark) | 400 | 85% | 81% |
The 82–91 percent figure therefore corresponds specifically to the in-distribution questions, where the controlling section is unambiguous and well-represented in the training corpus, while the accuracy falls to 65–75 percent — measured at 71 percent on this benchmark — for the novel-combination subset. The practical reading for the engineer is that the assistant is a reliable first-pass research tool for routine, well-documented code questions but degrades on exactly the interacting-section cases where engineering interpretation is most consequential, and where the cited section must always be opened and read rather than trusted.
A code interpretation provided by an AI tool carries no legal weight as a defense against a code violation finding by an authority having jurisdiction. The AHJ's interpretation of the code governs the approval of the installation, and AHJs vary in their interpretations of ambiguous sections. The engineer of record remains professionally liable for the code compliance of the design, regardless of what tool was used to generate it.
The appropriate use of LLM-based code assistants is as a research acceleration tool — quickly surfacing relevant code sections, identifying applicable exceptions, and generating a list of questions for the AHJ — rather than as a compliance determination engine. The engineer must verify every code citation against the current edition of the applicable standard and apply independent judgment on ambiguous interpretations.
Single-line diagram layout is a combinatorial optimization problem: arrange equipment symbols, connection lines, and annotation text to minimize visual clutter, maintain clear signal flow direction (source at top, loads at bottom), and comply with drawing standard conventions (IEEE 315, ANSI Y32.2). Generative AI tools apply graph layout algorithms, trained on large corpora of engineer-approved single-line diagrams, to automatically produce initial layouts from a list of equipment and connectivity.
The accuracy of generative layouts, measured by the fraction of layout decisions that match the preferences of an experienced engineer reviewing the output, is approximately 78–85 percent in current tools. The remaining 15–22 percent of decisions require manual adjustment — bus routing conflicts, symbol placement in constrained areas, annotation collisions near dense bus connections.
The most productive integration between generative single-line tools and calculation software is bidirectional: the single-line diagram serves as the graphical representation of the electrical model, and changes to either the drawing or the model are reflected automatically in the other. Modern platforms (ETAP, CYME) implement this bidirectional link natively. The AI-generated layout becomes the starting point for the calculation model, and the calculation results — load flow voltage profiles, fault currents, arc flash incident energies — are annotated back onto the diagram automatically, eliminating the transcription step that has historically been a source of documentation error.
Two categories of engineering judgment remain outside the current capability of AI tools and are unlikely to be automated within the near-term professional practice horizon. The first is responsibility: the engineer of record who seals the design accepts professional and legal liability for its correctness, and this responsibility cannot be delegated to an AI tool. The second is contextual judgment in novel situations: AI tools perform well within the distribution of training data and degrade at the boundaries. An installation with unusual utility requirements, non-standard equipment configurations, or site-specific physical constraints that were not represented in the training data requires the engineer to apply first-principles analysis rather than trusting the AI's interpolated output.
The productive integration of AI tools into an electrical design practice follows a consistent pattern across the application domains reviewed in this paper. The AI tool handles the high-volume, well-defined portion of the work: screening hundreds of load scenarios, checking thousands of code constraints, populating standard calculation templates. The engineer focuses on the judgment-intensive portion: reviewing AI outputs for anomalies, applying first-principles verification to the cases that fall outside the AI's reliable operating range, and making the final professional determination on all aspects of the design.
This division of labor does not reduce the engineer's professional accountability — it redirects the engineer's effort toward the work where human judgment adds the most value. The engineer who uses AI tools appropriately is not less of an engineer; they are an engineer whose time is concentrated on the hardest problems rather than the most repetitive ones.
The most consequential finding for the practicing engineer is that AI design-automation tools change where engineering judgment is applied, not whether it is required. The productivity gains in load-flow screening, protective-device selection, and code research are real and compounding, but they concentrate the engineer's remaining effort on exactly the cases the tools handle worst — configurations outside the training distribution, where a plausible-looking output is most dangerous because it is most likely to be wrong and least likely to be obviously wrong.
The most common implementation failure is the erosion of independent verification as confidence in the tool grows: the first hundred correct outputs train the engineer to trust the hundred-and-first, and the discipline of checking the tool against a conventional analytical method quietly lapses precisely when the stakes — an under-rated breaker, a non-conservative arc flash boundary — are highest. The failure is organizational as much as technical, and the safeguard is a verification protocol that is mandatory rather than discretionary.
The next problem the profession must solve is evidentiary: when an AI-assisted design is challenged, the engineer of record must be able to reconstruct what the tool was given, what it returned, and what independent check confirmed it. Establishing that documentation standard — provenance, validation performance, and the analytical cross-check for every sealed output — is the unfinished work that will determine whether these tools strengthen or undermine professional accountability.
The following decision rule summarizes where AI may be applied across the design workflow and the verification step that must accompany each use:
| Workflow stage | Use AI? | Mandatory verification step |
|---|---|---|
| Load-flow screening of growth/contingency scenarios | Yes | Converged Newton-Raphson run on every binding scenario identified |
| Protective-device preliminary selection | Yes | Coordination study and device-rating check against calculated fault current |
| Code and standard research | Yes | Engineer confirms the cited section against the governing edition |
| Single-line diagram layout generation | Yes | Engineer verifies connectivity and ratings against the calculation model |
| Final sealed design calculations | No | Performed by conventional analysis; AI output is never the basis of seal |
The rule is deliberately conservative at the final stage: AI accelerates the path to a candidate design, but the analysis that the engineer of record seals is always the converged, conventional calculation.
The analysis in this paper connects to several companion studies in this library. Readers concerned with the upstream and downstream engineering will find AI-Powered Fault Detection in Power Systems develops a closely related aspect of the same problem, while Ethics of AI in Power Systems Engineering extends the treatment into an adjacent domain. For the broader methodological context, The AI Transformation of Power Systems Engineering provides complementary depth.
[1] IEEE Standard 315-1975, Graphic Symbols for Electrical and Electronics Diagrams, IEEE, 1975.
[2] NFPA 70-2023, National Electrical Code, NFPA, 2023.
[3] IEEE Standard 1547-2018, Standard for Interconnection and Interoperability of Distributed Energy Resources, IEEE, 2018.
[4] L. Thurner et al., "pandapower — an open-source Python tool for convenient modeling, analysis, and optimization of electric power systems," IEEE Trans. Power Syst., vol. 33, no. 6, pp. 6510–6521, 2018.
[5] M. Raissi, P. Perdikaris, and G. E. Karniadakis, "Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear PDEs," J. Computational Physics, vol. 378, pp. 686–707, 2019.
[6] T. Chen and C. Guestrin, "XGBoost: A scalable tree boosting system," Proc. 22nd ACM SIGKDD, 2016, pp. 785–794.
[7] J. Jumper et al., "Highly accurate protein structure prediction with AlphaFold," Nature, vol. 596, pp. 583–589, 2021. (cited as analogous generative AI benchmark)
[8] ANSI/NEMA MG 1-2021, Motors and Generators, NEMA, 2021.
[9] IEEE Standard C37.13-2008, Standard for Low-Voltage AC Power Circuit Breakers Used in Enclosures, IEEE, 2008.
[10] J. L. Blackburn and T. J. Domin, Protective Relaying: Principles and Applications, 4th ed., CRC Press, 2014.
[11] NFPA 70E-2024, Standard for Electrical Safety in the Workplace, NFPA, 2024.
[12] IEEE Standard 242-2001, Recommended Practice for Protection and Coordination of Industrial and Commercial Power Systems, IEEE, 2001.