Indexed in
SCI
EI
Scopus
Supervisory by: Global Energy Interconnection Development and Cooperation Organization
Sponsored by: Global Energy Interconnection Group Limited

Contents

Figure(0)

    Tables(0)

      Global Energy Interconnection

      Volume 9, Issue 5, Oct 2026, Pages 932-943
      Ref.

      Real-time electricity carbon flow computation based on physics-informed neural network☆

      Pei Zhanga,b,* ,Yu Suna,b ,Xiang Wanga,b ,Xiaobo Yana,b ,Jiajia Yangc ,Glauco AP Caurind ,Katia C. Almeidae ,ZhaoYang Dongf
      ( a School of Electrical and-Information Engineering, Tianjin University, Tianjin 300072, PR China , b State Key Laboratory of Smart Power Distribution Equipment and System, Tianjin University 300072, PR China , c College of Science and Engineering, James Cook University, Townsville, QLD 4810, Australia , d Saõ Carlos School of Engineering (EESC), University of Saõ Paulo (USP), Saõ Carlos, Saõ Paulo, CEP 13566-590, Brazil , e Department of Electrical and Electronic Engineering, Federal University of Santa Catarina, Florianópolis, Santa Catarina, CEP 88040-900, Brazil , f Department of Electrical Engineering, City University of Hong Kong, Hong Kong 999077, PR China )

      Abstract

      Abstract Accurate and efficient electricity carbon flow computation is crucial for electricity carbon emission tracing, low-carbon dispatch and responsibility allocation. However, analytical electricity carbon flow computation methods rely on explicit power flow computation, leading to high computational cost, whereas purely data-driven computation methods may violate physical constraints. To overcome these limitations, this paper proposes a Physics-Informed Neural Network (PINN)-based electricity carbon flow computation method, which embeds both power balance and carbon balance equations into the training objective function, enabling physically consistent and computationally efficient electricity carbon flow estimation. First, the nodal electricity carbon flow balance equations are derived under the carbon flow theory.Second,a PINN model is proposed with composite physical loss and data loss functions.The physical loss is based on the nodal electricity carbon flow balance and the nodal power balance. Finally, case studies on the IEEE 9-bus and IEEE 118-bus systems demonstrate that the proposed method achieves millisecond-level computation, enabling efficient real-time electricity carbon low analysis.

      0 Intr oduction

      The Paris Agreement seeks to peak global greenhouse gas emis sions as soon as possible, thereby strengthening the global response to climate change [1]. The electricity sector contributes more than 40% of global energyrelated CO2 emissions [2], primarily due to fossil-fuelbased power generation[3]. Accurate quantification of carbon emissions within power systems enables transparent emission tracing and equitable responsibility allocation.Accurate carbon emis sion tracing in power systemsis essential for transparent emission accounting and lowcarbon dispatch.

      Conventional electricity carbon accounting methods rely on life-cycle analysis (LCA) and production-based emission inventories to estimate system-level emissions[4,5]. While macro-statistical approaches aggregate fossilfuel consumption with emission factors [4], they neglect the technical characteristics and spatial propagation of power within the grid, and depend heavily on long-term fuel statistics.LCA methods extend the accounting boundary to the entire life cycle of products or services[6,7], but they still cannot capture the network-level transfer mechanisms of carbon. A more detailed life-cy cle carbon flow computation incorporating carbon emission flow (CEF)has been proposed [5], enabling regional carbon emission estimates that support electricity market analysis [8].

      To reflect carbon propagation driven by physical power flows, Reference [9] has introduced the electricity carbon emission flow (CEF) concept, which models emissions as avirtual flow coupled with power flow equations. Early CEF studies, however, remain largely conceptual and lacked practical system-level validation.

      To improve the practical applicability of early CEF formulations, several analytical electricity carbon flow methods have been developed [10-14]. Matrix-based mappings between generators and carbon flow rates have been derived using power flow distribution matrices to ensure physical interpretability and loss modeling [10], while complex-power tracing further enhances accuracy by capturing active-reactive coupling [11]. On the application side, CEF-based traceability frameworks have been implemented in distribution networks [11] and extended to dynamic operating conditions such as electric vehicle charging, hybrid power transactions, and storageintegrated carbon flow tracking [12,13].

      Nevertheless, model-based computation methods still require explicit physical equations and repeat ed numerical calculations, which become burdensome for large networks. Recursive schemes [14] and iterative algorithms with convergence analysis [15] accelerate computation compared to direct matrix-based methods, but their cost and memory usage still scale rapidly with system size,limiting applicability in large or high-frequency online scenarios.

      Despite their physical interpretability, analytical CEF models are computationally intensive and difficult to scale tolarge systems and high-frequency applications. Consequently, data-driven methods have been proposed to estimate nodal electricity carbon intensities directly from historical data, including deep learning models [16], Bayesian regression [17], and data-driven marginal carbon emission analysis [18,19]. Although these approaches achieve significant computational acceleration, they treat carbon flow as a black-box mapping and do not explicitly enforce power flow equations or carbon conservation,limiting their physical feasibility and out-of-sample reliability.

      In this context, hybrid learning frameworks that combine physical insig hts with data-driven models have also been explored.Reference[20] proposes a graph neural solver that exploits netw ork topology to implicitly capture power flow propagat ion mechanisms, while Reference[21] embeds linearized power flow relationships into graph convolutional architectures to enhance robustness against uncerta in injections and topology variations. In addition,Reference [22] incorporates physics-inspired features into data-driven electricity carbon intensity forecasting while addressing privacy-preserving requirements.

      While purely data-driven models lack physical consistency, physics-informed learning embeds governing equations into neural networks. PINNs were first applied to power systems using differential-algebraic equations [23],and subsequent studies enforced power balance constraints for fast, phy sically consistent AC power flow computation [24,25]. However, these methods address only electrical states and omit carbon balance. In contrast,our method integrates nodal carbon balance with power flow constraints,enabling simultaneous,physically consistent inference of electrical states and carbon potentials.

      The physics-informed loss penalizes both power imbalance and carbon flow violations, enabli ng multi-physics coupling absent in prior studies. Distributed frameworks with regional partitioning[26] accelerate carbon flow computation, but embedding physical constraints to maintain internal consistency remains a challenge. Beyond power flow, PINNs have been applie d to parameter and state estimation, dynamic stability, inverter control, and fault detection[27,28], demonstrating accurate, robust, and effi-cient solutions suitable for real-time, large-scale power systems.

      However, electricity carbon flow computation poses a fundamental challenge: it requires strict enforcement of both power flow equations and carbon flow conservation,while simultaneously achieving computational efficiency for real-time applications. Existing analytical methods ensure physical consistency but suffer from high computational cost, whereas purely data-driven approaches offer fast inference at the expense of violating physica l constraints. To address this trade-off, this paper proposes a PINN-based electricity carbon flow computation method that explicitly embeds both power flow equations and carbon balance constraints into the learning objective,enabling physically consistent and data-efficient carbon flow estimation across diverse operating scenarios.

      The main contributions are summ arized as follows:

      1)physics-data integrated electricity carbon flow computation framework is established by explicitly embedding nodal power balance equations and carbon conservation constraints into the neural network architecture. This method unifies the interpretability ofphysics-based modeling with the flexibility of data-driven learning.

      2)Adata-enhanced electricity carbon flow inference strategy is developed based on historical operating data. By learning the implicit nonlinear mapping between system state variables and electricity carbon flow variables, the proposed PINN enables fast electricity carbon flow evaluation without repeatedly solving conventional power flow and carbon transmission equations, improving the computational efficiency.

      3) The physical consistency and engineering validityof the model outputs are strictly guaranteed through physics-informed residual loss functions constructed from both power balance equations and carbon conservation laws. By enforcing these constraints during training procedure, the proposed method effectively avoids physically infeasible solutions that may arise in purely data-driven approaches,thereby enhancing the reliability and applicability of the computed electricity carbon flow results.

      The remainder of this paper is organized as follows:Section 1 formulates the electricity carbon flow problem and presents the governing equations; Section 2 details the proposed PINN architecture, loss design, and training procedure; Section 3 reports case studies and discus ses results; and Section 4 concludes the paper and out lines future work.

      1 Problem formula tion

      Electricity carbon flow computation is built upon power flow calculation. Similar to active power, carbon emissions associated with electricity generation canbe traced and allocated through the power network according to the power flow distribution. Therefore, the AC power flow constraints are first introduced to determine the electrical operating state,including bus voltages,phase angles,and branch power flows,which provides the physical basis for subsequent carbon flow modeling.

      On this basis, generator-side carbon emission intensities are propagated through the network along active power flows, forming nodal carbon potentials after mixingat buses.Section 1.1 presents the AC power flow constraints,Section 1.2 formulates the electricity carbon flow model,and Section 1.3 clarifies the coupling between power flow and carbon flow. This structure provides the physical foundation for constructing the joint power-balance and carbon-balance residuals in the proposed PINN framework.

      1.1 AC power flow constraints

      In an alternating current (AC) power system, nodal active and reactive power injections must satisfy the nonlinear power flow balance equations. For each bus k, the active and reactive power balance equations are given by

      These equations enforce power balance at each node and couple nodal voltages, phase angles, and power injections , forming the physical basis for both power flow and electricity carbon flow computation.

      1.2 Electricity carbon flow model

      Electricity carbon flow in power systems refers to the transmission of carbon emissions along with electric power through power network. The key objectives of electricity carbon flow computation are to determine the branch carbon flow rate R (tCO2/h) and node carbon potentiale(tCO2/MWh). In this paper, a clear distinction is made between carbon emission intensity and carbon potential.Carbon emission intensity refers to the generator-side attribute that quantifies the amount of CO2 emitted per unit of electrical energy produced and is determined by fuel type,efficiency,and operating conditions.By contrast,carbon potential is a network-level state variable that characterizes the carbon attribute carried by electricity ata given node,which emerges from the propagation and mixing of upstream emissions through power flow paths.While carbon emission intensity serves as the source input of electricity carbon flow,carbon potential is the key quantity to be inferred in electricity carbon flow computation.

      Carbon emissions in power systems primarily arise from the electricity production process and are commonly characterized by the carbon emission intensity. Emission intensities differ across fuel types. For hydropower and renewable (wind and solar) power, the emissions intensities are zeros. The emission intensity of thermal units depends on technology maturity,fuel quality,and operating conditions,and can be obtained using online measuring devices.

      Although generator-side carbon intensity provides the source information for carbon emission modelling, the subsequent computation of how these emissions propagate through the network remains nontrivial. Electricity carbon flow depends not only on local emission rates but also on the nonlinear power flow distribution,increasing the computational difficulty.

      The carbon flow rate from bus i to bus j is given by:

      For any bus k, the electricity carbon flow balance equatio n can be expressed as:

      Equation (5) describes carbon flow conservation at bus k.The upstream branches are defined as branches with active power flowing into bus k, whereas the downstream branches are those with active power flowing out of bus k.Since carbon flow is coupled with active power flow,the upstream and downstream branch sets are determined bythe actual direction of branch power flow. The upstream carbon inflow and the local generator-side carbon contribution are mixed at bus k and then allocated todownstream branches according to the outgoing active power. Therefore, Eq. (5) provides the physical basis for constructing the nodal carbon balance residual used in the proposed PINN.

      1.3 Coupling between power flow and carbon flow

      As shown in Fig. 1, carbon emissions are injected at the generation side and propagate through the network as a virtual flow attached to physical power flows. Power flow determines the transmission paths, while carbon emissions are mixed at network buses to form nodal carbon potentials, whi ch are subsequently allocated to downstream residential and industrial loads according to their electricity consumption. This establishes a strong coupling between power flow and carbon flow in the power system.

      In practice, enforcing AC power balance and electricity carbon flow conservation simultaneously is challenging.The two sets of equations are tightly intertwined through branch power flows, such that small errors in voltage prediction can direct ly propagate to carbon flow estimates.This strong coupling renders traditional numerical solvers computationally inefficient and limits the reliability of purely data-driven models outside the training domain.

      These challenges motivate the development of a physics-informed learning framework that embeds both power flow equations and carbon balance constraints directly into the computational model, as presented in Section 3.

      Fig. 1. Carbon responsibility allocation on IEEE9.

      2 M ethodology

      This section presents the proposed PINN framework for electricity carbon flow computation in power systems.Itfirst introduces the mathematical formulation of electricitycarbon flow and its relat ionship to power flow, followed by the design of the PINN model architecture with embedded physical constraints and training procedure.

      2.1 PINN model construction and physical constraint embedding

      A feed-forward neural network consists of an input layer, multiple hidden layers with nonlinear activation functions, and an output layer. Between layers, weight matrix W and biases b are applied. During training, these parameters are optimized to minimize an objective function that penalizes the discrepancy between predictions and referen ce values. Neural networks are universal function approximators as they can, in theory, learn any unknown function between some inputs and outputs.Therefore, neural networks can be used to directly learn the nonlinear mapping between the inputs and the outputs ofdifferential equations [23].

      For the electricity carbon flow computation problem, a PINN is constructed, which includes an input layer, three hidden layers, and an output layer, as shown in Fig. 2.

      The system consists of PQ buses, PV buses, and a slack bus. At PQ buses, active and reactive power injections are known, and voltage magnitudes and phase angles are solved. At PV buses, active power injections and voltage magnitudes are known, while reactive powers and phase angles are solved. The slack bus provides the reference voltage and phase angle and balances system power mismatch.

      Fig. 2. PINN architecture.

      The above describes the output layer design for simple systems, which minimizes the output layer dimension.However, for more complex power systems (e.g., a system where some buses have both generator injection power and load consumption power), the bus carbon potential in the output layer should not only include that of non-generator buses but also that of all buses. In such cases, the output layer is extended to include the carbon potentials of all buses in the system, resulting in an output dimensionof 3n, where n denotes the number of buses in the system.

      The forward propagation process of the neural network is as follows: the input vector x is passed through each hidden layer, where each layer performs a linear transformation followed by a nonlinear activation function.For each hidden layer l, the output is computed as:

      whereandare the weight matrix and bias vector of the l-th layer, respectively, and σdenotes the activation function.

      The output layer produces the final predictions without activation for regression tasks.

      The corresponding nodal power balance residuals are:

      From Eq. (5), the nodal carbon balance residual is then:

      The physics loss combines power and carbon balance terms:

      The physics loss combines both power balance and carbon flow balance residuals, as defined in (13)-(15). This formulation reflects the coupled physical nature of electricity carbon flow: carbon propagation is governed by power transmission, and physically meaningful carbon potential estimation requires electrical feasibility as well as carbon flow co nservation. Enforcing only power flow constraints cannot guarantee valid carbon allocation, while carbon balance alone is insufficient without consistent power flow solutions. Therefore, the joint physics loss ensures crossdomain physical consistency between electrical states and carbon flow variables.

      A supervised data term is included only for the selected output subset y:

      Finally, the overall loss function integrates both physical and data driven terms as:

      2.2 Training and testing procedure

      The proposed PINN-based electricity carbon flow computation is trained using a composite object ive that couples data fitting with power flow and carbon balance residuals.

      Table 1 illustrates the training workflow of the proposed PINN-based electricity carbon flow computation framework. The PINN first produces predictions of the electrical states and nodal carbon potentials through a forward pass. Based on these predictions, the power flow balance residuals and the carbon flow balance residuals are constructed in parallel using the corresponding physical conservation equations, without explicitly solving power flow or carbon flow equations. The resulting physicsbased residuals are combined with the supervised data loss toform the overall training objective, which is minimized via backpropagation to update the network parameters.Through this residual driven learning process, the PINN istrained to generate physically consistent electricity carbon flow results.

      The training procedure is summarized in Table 2. For both the 9-bus and 118-bus systems, the dataset is split into training, validation, and test sets using fixed random seeds to ensure reproducibility. The network is trained using the Adam optimizer with an initial learning rate ofand standard batch sizes as listed.

      The physics-informed loss is introduced progressively in acurriculum-learning scheme: the network first fits the data, and physical constraints—both power flow and carbon flow—are gradually incorporated. For the 9-bus system, a simple two-stage progression is used, whereas for the 118-bus system, a three-stage progression with adaptive weighting based on validation set performance isemployed. This strategy ensures stable training while en forci ng both electrical and carbon constraints.

      Table 1 W orkflow for the PINN method.

      Inp Ou ut: Initial values of state variables x tput: Predicted values of state variables y 1 G ini enerate training samples and datasets, where each sample contains tial conditions:x PPQ QPQ PPV V PV EG PV V slack θslack EG slack y V PQ θPQ QPV θPV Pslack Qslack E i 2 Initialize PINN network parameters 3 for epoch = i, do Calculate loss function L total λdataLdata λpowerLpower λcarbonLcarbo nLdata 1 n n k 1 V k V k 2 θk θk 2 ek ek 2 Lpower n k 1 rP k 1 n Lcarbon 12 rQ k 2 n k 1 rCk n 2 Backpropagation, update network parameters 4 end for 5 Save and load the trained network parameters 6 C co ompare the predicted state trajectories with those obtained from nventional numerical simulation methods.

      3 Case studi es

      3.1 Simulation environment and data preparation

      The proposed electricity carbon-flow computation framework is implemented in Python using the PyTorch deep learning library. Power system simulations and optimal power flow calculations are performed based on standard IEEE benchmark models using PYPOWER, while numerical operations are supported by NumPy.All experiments are conducted on a single computing platform under a Windows operating system, with model training performed on a CPU.

      3.2 IEEE 9-bus and 118-bus system validation

      Validation and performance evaluation were first conducted on the IEEE 9-bus system in Fig. 1 to assess the effectiveness of the proposed PINN under a standard benchmark setting. Accor ding to the bus-type-dependent input-output construction described in Section 2-A, the PINN input and output dimensions were instantiated based on the numbers of PQ, PV, and slack buses in the system. As a result, the IEEE 9-bus case leads to fixed input and output dimensions of 21 and 24, respectively.This configuration enables the network to jointly infer electrical state variables and nodal carbon potentials while satisfying the embedded physical constraints. The experimental results on the IEEE 9-bus system demonstrate that the proposed PINN achieves accurate carbon potential estimation with low inference latency, providing a reliable baseline for subsequent large-scale validation.

      To further evaluate the scalability and generalization capability of the proposed approach, extens ive experiments were performed on the IEEE 118-bus system in Fig. 3, which represents a substantially larger and more realistic transmission network. Unlike the 9-bus case, the IEEE 118-bus system contains buses with both generation and load, such that nodal carbon potentials are not solely determined by local emission sources but instead emerge from system-wide power flow interactions. Accordingly,following the output-layer design strategy introduced in Section 2-A, the PINN output was extended to include the carbon potentials of all buses, thereby ensuri ng physically consistent estimation of network-level carbon flow.

      Based on the same input-output construction principles, the IEEE 118-bus system yields fixed-dimensional inputs and outputs of 290 and 354, respectively. To accommodate the increased system scale and the higher complexityof network-level interactions, a deeper network architecture was adopted for the IEEE 118-bus system.Specifically, the PINN for the 118-bus case employs more hidden layers than that used for the 9-bus system,with thehidden-layer width scaled proportionally to the input dimension, whereas a fixed hidden-layer width was retained for the 9-bus case. For both systems, ReLU activation functions were employed due to their effectiveness in modeling nonlinear relationships in power system applications.

      Table 2 Training settings.

      Item 9-Bus System 118-Bus System Dataset split 7000/880/880 7000/880/880 Batch size 128 64 re Network structu 4 layers, 64 neurons per layer 5 layers, width scaled with input size Optimizer Adam Adam Learning rate 1 10 3 1 10 3 Total epochs 600 1500 Physics loss strategy Two-stage curriculum: data-only →ramp-up physics loss Three-stage curriculum with adaptive weighting: data-only → power flow →carbon flow

      For both systems, the same composite loss function described in Section 2-A was employ ed.

      3.3 Results and analysis

      Fig. 4 illustrates the evolution of the physics-based loss components during training for the IEEE 9-bus and IEEE 118-bus systems, where the total physics loss is decomposed into the power-balance loss and the carbonbalance loss.

      For the IEEE 9-bus system, both power- and carbonbalance losses remain large and nearly constant when the physics loss is disabled (phys_scale = 0), since these residuals are not included in backpropagation under purely data-driven training and thus are not directly optimized.Consequently, the indirect effect of data supervision on physical consistency is limited in this small-scale system.By contrast, for the IEEE 118-bus system, the physicsbased losses decreas e even before the physics loss terms are explicitly activated. This is because the physical residuals are derived from the predicted electrical states and carbon potentials,and their magnitudes naturally decrease as supervised learning improves prediction accuracy. In this case, the physics loss serves as an auxiliary indicator reflecting enhanced physical consistency, even when itis not directly enforced.

      These results highlight the dual role of physics-based losses in PINN training: when included in the objective function, they explicitly enforce physical consistency; when excluded, they still provide an informative measure of the physical feasibility of the learned solut ions. The contrasting behaviors observed in the two benchmark systems further illustrate how system scale and model complexity influence the interaction between data-driven learning and physical consistency.

      Table 3 presents a quantitative comparison of prediction accuracy and computational efficiency among the proposed PINN, the purely data-driven MLP, and the conventional model-based analyt ical method on the IEEE 9-bus and IEEE 118-bus systems.

      For the IEEE 9-bus system, the proposed PINN consistently outperforms the MLP baseline across all four error metrics, while both learning-based methods achieve submillisecond inference latency. In contrast, the conventional analytical method requires a substantially longer computation time, on the order of tens of milliseconds. These results indicate that, for small-scale systems, the PINN can simultaneously deliver higher prediction accuracy and comparable computational efficiency relative to purely data-driven approaches, while significantly accelerating carbon flow computation compared with model-based methods.

      For the IEEE 118-bus system, the computational advantage of learning-based methods becomes more pronounced. The analytical method exhibits a dramatic increase in computation time as system size grows, whereas both the PINN and the MLP maintain millisecond-level inference latency. Due to the presence of buses with zero carbon poten tial in the large-scale system, the MAPE becomes ill-conditioned and is therefore not considereda reliable metric in this case.Under the remaining error metrics,the PINN exhibits moderately larger prediction errors than the MLP;however,these errors remain within acceptable engineering tolerances.

      Table 4 summarizes the robustness performance of the proposed PINN and the purely data-driven MLP on the IEEE 9-bus and IEEE 118-bus systems under additive measurement noise. To ensure comparability across different input variables and system scales, noise perturbations are injected in the normalized input space. Specifically,the system inputs are first standardized, and zero-mean Gaussian noise with unit variance is added, scaled bya noise level coefficient.

      Accordingly, noise levels of 0, 0.02, 0.05, 0.1, and 0.2 correspond to noise-free inputs and approximately 2%,5%, 10%, and 20% standard-deviation perturbations in the normalized feature space, respectively, emulating increasing degrees of measurement uncertainty commonly encountered in practical power system monitoring. The‘‘Equivalent SNR” column in the table corresp onds di rectly to these noise levels.

      Fig. 3. Topology of the IEEE118-bus system.

      where σis the noise level used in the normalized input sp ace

      To quantitatively characterize robustness, the table reports an MAE sensitivity index, defined as the increase inthe MAE of nodal carbon potential estimation relative tothe noise-free baseline, normalized by the noise level.Specifically, for each noise level σ, the sensitivity is computed as the MAE increment induced by noise divided byσ, such that larger values indicate stronger amplification of output error under input perturbations.

      The results show that the proposed PINN exhibits consistently low MAE sensitivity across all noise levels for both benchmark systems, indicating that its prediction accuracy is largely invariant to measurement noise.In contrast,the MLP displays substantially higher sensitivity values, with error increments growing rapidly as noise intensity increases, particularly in the IEEE 118-bus system.

      Fig. 4. Physics-loss evolution during training on IEEE benchmark systems.

      Overall, the robustness results reveal that embedding physical constraints into the learning process significantly suppresses error amplification under noisy conditions.Although data-driven models may perform competitively under ideal, noise-free settings, their prediction accuracy degrades as perturbations intensify. By contrast, the PINN maintains stable performance across a wide range of noise levels, demonstrating superior robustness and reliability for practical power system applications where measurement uncertainties are unavoidable. To systematically assess the extrapolation and generalization capabilityof the proposed PINN in comparison with the purely datadriven multilayer perceptron (MLP), a load-domainbased extrapolation test is designed. This evaluation framework examines model performance under operating conditions that deviate from those observed during training.

      Specifically, the total active load of the system is computed for each sample and normalized to the interval[0,1] to provide a unified characterization of operating conditions. To investigate the generalization capabilityof the learning-based models, the 70th percentile of the normalized load levels is used as a threshold to partition the dataset into an in-dom ain region(moderate loading conditions used for training) and an out-of-domain region(higher load levels reserved for evaluating extrapolation performance). Only in-domain samples are used to train the models, while the out-of-domain region providesa benchmark for assessing model extrapolation.

      The trained models are then evaluated on the complete test dataset spanning the full load range, including both indomain and out-of-domain operating conditions. The extrapolation performance on the IEEE 9-bus systemis illustrated in Fig. 5, where Fig. 5(a) reports the prediction errors of the two models across different load levels, and Fig. 5(b) shows the corresponding distribution of test samples with respect to the normalized load. The results for the IEEE 118-bus system are presented in Fig. 6, with Fig. 6(a) depicting the prediction errors and Fig. 6(b) illustrating the load-level distribut ion of the test samples.

      This load-domain partitioning strategy provides a clear and interpretable assessment of extrapolation behavior,highlighting the ability of physics-informed models to maintain stable and reliable predictions under unseen operating conditions.

      Table 3 Result comparison of 9-bus and 118-bus system.

      System Method Wh)Time/IEEE 9-bus PINN 3.013e-06 1.322e-03 0.30% 0.30% 0.129 9 MLP 1.149e-05 2.363e-03 0.493% 0.494% 0.111 8 ed MSE/(tCO2/M Wh)MAE/(tCO2/M MAPE sMAPE ms Model-bas 14.420 bus IEEE 118- PINN 3.725e-03 3.737e-02 23.59% 0.911 4 MLP 2.892e-05 3.047e-03 15.73% 0.164 2 Model-based 354.514

      Note: The reported time denotes the average online testing/inference time per sample. For the PINN and MLP, it corresponds to the forward-pass inference time of the trained neural network. For the model-based method, it corresponds to the analytical electricity carbon flow computation time for each test sample,including power flow calculation and subsequent carbon flow tracing.Offline data generation and model training time are not includedin this online computation time.

      Table 4 Robustness comparison of PINN and MLP under additive noise on IEEE 9-bus and 118-bus systems.

      Noise level Equivalent signal to noise ratio/SNR IE PI EE9-NN IE M EE9 LP IE PI EE118 NN IE M EE118 -LP 0.00 0.02 33.98 dB 0 1.31E-3 0 1.17E-3 0.05 26.02 dB 0 2.06E-3 0 3.01E-3 0.10 20.00 dB 0 4.54E-3 0 6.90E-3 0.20 13.98 dB 0 6.79E-3 0 17.39E-3 0 0 0 0 0

      3.4 Discussion

      The case studies on the IEEE 9-bus and IEEE 118-bus systems provide a systematic evaluation of the proposed PINN-based electricity carbon flow computation method across different system scales and operating conditions.

      From the perspective of computational efficiency, the proposed PINN demonstrates a clear advantage over the conventional analytical method. While the computation time of the analytical approach increases rapidly with system size, the PINN maintains millisecond-level inference latency in both benchmark systems, compared with the purely data-driven MLP, the PINN achieves comparable inference speed.Its main advantage lies in improved physical consistency, robustness against measurement noise,and more stable extrapolation performance under out-ofdomain loading conditions.

      The robustness analysis further highlights the benefit of embedding physical constraints into the learning process.As shown in Table 3, the MLP exhibits increasing prediction errors as noise levels rise, particularly in the largescale IEEE 118-bus system. In contrast, the PINN maintains nearly constant error levels under increasing noise perturbations. This behavior suggests that the physicsinformed formulation effectively regularizes the model and improves its resistance to measurement noise and disturbances.

      The extrapolation results in Fig. 4 show that, although both models perform well within the training domain, the MLP suffers from a pronounced degradation in accuracy under high-load, out-of-domain operating conditions.The PINN, guided by physical conservation constraints,preserves relatively stable prediction performance beyond the training data distribution. Over all, the case studies indicate that the proposed PINN provides a favorable balance between efficiency,stable prediction accuracy,robustness, and extrapolation capability for practical electricity carbon flow analysis.

      4 Conc lusion

      Fig. 5. Generalization and extrapolation capability analysis between PINN and MLP on IEEE 9.

      Fig. 6. Generalization and extrapolation capability analysis between PINN and MLP on IEEE 118.

      ca This paper proposes a PINN framework for electricity rbon-flow computation in power systems. By explicitly embedding AC power-flow equations and nodal carbonflo w conservation constraints into the learning process,the proposed method bridges physical modeling and datadriven learning, enabling fast and physically consistent estimation of nodal carbon potentials under time-varying operating conditions. Numerical results demonstrate that the PINN achieves millisecond-level inference latency while maintaining high prediction accuracy, offering a substantial computational advantage over conventional model-based analytical methods. Moreover, compared with a purely data-driven MLP, the PINN exhibits markedly improved robustness against measurement noise and superior extrapolation capability under high-loading conditions, highlighting the benefit of incorporating physical constraints for enhancing model reliability and generalization.

      Beyond performance improvements, the proposed framework provides a physically interpretable and dataefficient solution for real-time electricity carbon-flow assessment, which is particularly relevant for low-carbon dispatch, carbon-aware system operation, and large-scale power network analysis. Future work will focus on extending the framework to more complex system configurations,incorporating topology variations and renewable uncertainty, investigating transfer-learning strategies for rapid adaptation to different networks, and exploring real-time deployment in practical power system operation environments. From an engineering perspective, the proposed framework can support real-time carbon emission tracing,carbon-aware dispatch, low-carbon operation assessment,and carbon responsibility allocation, and its millisecondlevel inference enables integration with online monitoring and EMS/SCADA systems for operational decision support.

      CRediT authorship contribution statement

      Pei Zhang: Writing - review & editing, Validation,Supervision. Yu Sun: Writing - review & editing, Writing- original draft, Validation, Software, Methodology, Data curation. Xiang Wang: Writing - original draft, Validation, Data curation. Xiaobo Yan: Resources, Methodology. Jiajia Yang: Writing - review & editing. Glauco AP Caurin: Writing - review & editing. Katia C. Almeida:Writing - review & editing. ZhaoYang Dong: Writingreview & editing.

      Declaration of competing interest

      The authors declare that they have no known competing financial interests or personal relationshi ps that could have appeared to influence the work reported in this paper.

      References

      1. [1]

        United Nations Framework Convention on Climate Change(UNFCCC), Paris Agreement, United Nations Framework Convention on Climate Change (UNFCCC), Dec. 2015. [百度学术]

      2. [2]

        E.E. Michaelides, Decarbonization of the electricity generation sector and its effects on sustainability goals, Sustain. Energy Res.10 (1) (2023) 1-11. [百度学术]

      3. [3]

        J. Sun, F. Dong, Decomposition of carbon emission reduction efficiency and potential for clean energy power: evidence from58 countries, J. Clean. Prod. 363 (2022) 132312. [百度学术]

      4. [4]

        Intergovernmental Panel on Climate Change, Revised 1996 IPCC guidelines for National Greenhouse Gas Inventories, Paris,Organisation for Economic Co-operation and Development,France, 1996. [百度学术]

      5. [5]

        G. Chen, B. Chen, H. Zhou, et al.,Life cycle carbon emission flow analysis for electricity supply system: a case study of China,Energy Policy 61 (2013) 1276-1284. [百度学术]

      6. [6]

        M. Lenzen, J. Munksgaard, Energy and CO2 life-cycle analysesof wind turbines—review and applications, Renew. Energy 26 (3)(2002) 339-362. [百度学术]

      7. [7]

        P. Stenzel, A. Schreiber, J. Marx, et al., Renewable e nergies for Graciosa Island, Azores - Life Cycle Assessment of e lectricity generation, Energy Procedia 135 (2017) 62-74. [百度学术]

      8. [8]

        B.Tranberg, O. Corradi, B. Lajoie, et al., Real-time carbon accounting method for the European electricity markets, Energy Strateg. Rev. 26 (2019) 100367. [百度学术]

      9. [9]

        C. Kang, T. Zhou, Q. Chen, et al., Carbon emission flow in networks, Sci. Rep. 26 (2019) 100367. [百度学术]

      10. [10]

        J. Hu, K. Qin, R. Ma, et al., A study on carbon emission flow tracking for new type power systems, Int. J. Electr. Power Energy Syst. 165 (2025) 110455. [百度学术]

      11. [11]

        H. Sun, T. Li, C. Yang, et al.,Research on carbon flow traceability system for distribution network based on blockchain and power flow calculation, Front. Energy Res. 11 (2023). [百度学术]

      12. [12]

        X. Zhu, Z. Liu, R. Shen, et al., Research on an improved carbon emission flow model considering electric vehicle charging fluctuation and hybrid power transaction, Energies 16 (19) (2023)6835. [百度学术]

      13. [13]

        R. Wang, J. Chen, S. Li, et al., Dynamic carbon emission flow tracking with a new optimal storage schedule for power grids, JAI(2025), https://doi.org/10.1016/j.jai.2025.11.001. [百度学术]

      14. [14]

        C. Kang, Y. Cheng, Y. Sun, et al., recursive algorithm for carbon emission flow in power systems, Autom. Electr.Power Syst.41(18)(2017) 10-16. [百度学术]

      15. [15]

        Y. Li, Y. Li, Y. Liu, et al., distributed carbon meter system based oniterative calculation of carbon emission flow (i): theoretical method and analysis, Power Syst. Technol. 47 (6) (2023) 2165-2174. [百度学术]

      16. [16]

        L. Zhong, F. Pan, Y. Yang, et al., Nodal carbon emission factor prediction for power systems based on MDBO-CNN-LSTM,Energies 18 (13) (2025) 3491. [百度学术]

      17. [17]

        Y. Wang, J. Qiu, Y. Tao, optimal power scheduling using datadriven carbon emission flow modelling for carbon intensity control,IEEE Trans. Power Syst. 37 (4) (2022) 2894-2905. [百度学术]

      18. [18]

        B. Fang, J. Zhang, S. Chen, et al., A data-driven method for deriving the dynamic characteristics of marginal carbon emissions forpower systems, Energies 18 (13) (2025) 3297. [百度学术]

      19. [19]

        Y. Zhang, L. Wang, SSA-CNN-LSTM-based power system node carbon emission factor prediction, in: 2024 IEEE 5th International Conference on Advanced Electrical and Energy Systems (AEES),China, 2024, pp. 562-566. [百度学术]

      20. [20]

        B. Donon, B. Donnot, I. Guyon, et al., Graph neural solver for power systems, in: 2019 International Joint Conference on Neural Networks (IJCNN), Hungary, Jul. 2019, pp. 1-8. [百度学术]

      21. [21]

        M. Gao, J. Yu, Z. Yang, et al., Physics embedded graph convolution neural network for power flow calculation considering uncertain injections and topology, IEEE Trans.Neural Netw. Learning Syst. 35 (11) (2024) 15467-15478. [百度学术]

      22. [22]

        R. Yao, Z. Wang, Y. Yan, et al., Privacy-preserving short-term carbon intensity forecasting in power systems, Int.J.Electr.Power Energy Syst. 173 (2025) 111413. [百度学术]

      23. [23]

        G. S. Misyris, A. Venzke, S. Chatzivasileiadis, Physics-informed neural networks for power systems, in: 2020 IEEE Power&Energy Society General Meeting(PESGM),IEEE,Canada,2020,pp.1-5. [百度学术]

      24. [24]

        B. Jiang, C. Qin, Q. Wang, An unsupervised physics-informed neural network method for AC power flow calculations, IEEE Trans. Power Syst. 40 (5) (2025) 4407-4410. [百度学术]

      25. [25]

        H. Yang, K. Zheng, W. Su, et al., Physically Jacobian-informed encoder-decoder ANNs for nonlinear power flow regression,IEEE Trans. Ind. Appl. 61 (2) (Mar. 2025) 2353-2362. [百度学术]

      26. [26]

        X. Wu, W. Yang, N. Zhang, et al., A distributed computing algorithm for electricity carbon emission flow and carbon emission intensity, Prot. Control Mod. Power Syst. 9 (2) (2024) 138-146. [百度学术]

      27. [27]

        I. De Cominges Guerra, W. Li, R. Wang, A comprehensive analysis of PINNs for power system transient stability,Electronics 13(2) (2024) 391. [百度学术]

      28. [28]

        E.A. Mahdouri, S. Al-Abri, H. Yousef, et al., Physics-informed neural networks in grid-connected inverters: a review, Energies 18(20) (2025) 5441. [百度学术]

      29. [29]

        T. Zhou, C. Kang, Q. Xu, et al., Preliminary study on the calculation method of carbon emission flow in power systems,Autom. Electr. Power Syst. 36 (11) (2012) 44-49. [百度学术]

      Fund Information

      Author

      • Pei Zhang

        (Fellow, IEEE) received his PhD from Imperial College of Science, Technology and Medicine, United Kingdom. He is a Professor at Tianjin University. His research focuses on power system planning and operation including reliability assessment, stability and control, system restoration, risk assessment. His current research interests are application of AI technologies into power system.

      Publish Info

      Received:

      Accepted:

      Pubulished:2026-10-16

      Reference: Pei Zhang,Yu Sun,Xiang Wang,et al.(2026) Real-time electricity carbon flow computation based on physics-informed neural network☆.Global Energy Interconnection,9(5):932-943.

      Share to WeChat friends or circle of friends

      Use the WeChat “Scan” function to share this article with
      your WeChat friends or circle of friends