Abstract
Under-frequency load shedding (UFLS) serves as the very last resort for preventing total blackouts and cascading events. Fluctuating operating conditions and weak resilience of the future grid require UFLS adapt to various operating conditions and non-envisioned faults. This paper develops a novel data-enabled Koopman-based load shedding (KLS) to achieve the optimal one-shot load shedding for power system frequency safety. The KLS yields a network that facilitates a coordinate transformation from the delay-embedded space to a new space, wherein the dynamics can be expressed in a linear manner. The network is specifically tailored to effectively track parameter variations in the dynamic model of the power system. Linear dynamics support the development of a real-time decided load shedding strategy, while parameter tracking enables the adaptability of the KLS to non-envisioned operating conditions and faults. To address approximation inaccuracies and the discrete nature of load shedding, a safety margin tuning scheme is integrated into the KLS framework, ensuring that the system frequency trajectory remains within the safety range. Simulation results show the adaptability, prediction capability, and control effect of the proposed KLS.
CONTINUOUS penetration of new energy generation has posed a threat to frequency safety. In modern power systems, the declining system inertia leads to a low frequency nadir under sudden large active power deficits, which causes serious consequences.
Under-frequency load shedding (UFLS) serves as the very last resort for preventing total blackouts and cascading events. Traditional UFLS typically falls into one of two categories: offline decision-making real-time matching method [
Therefore, it is necessary to develop UFLS that adapts to non-envisioned operating conditions and events, and decide the one-shot optimal load shedding amount to promise the hard limits on the frequency trajectories. Specifically, the one-shot strategy is designed to prevent delayed control initiation, avoiding lower frequency nadirs and potential cascading outages from line overloads due to shifted power flows [
In this paper, the UFLS is designed for emergency frequency control, which is a real-time decided and data-enabled strategy. This strategy does not depend on anticipated operating conditions and faults, thus preventing the possibility of under- or over-shedding that may occur with prescheduled UFLS. With the frequency prediction capability under non-envisioned operating conditions and power imbalances, this strategy leverages the online input/output measurements to achieve safe and optimal online control with minimal one-shot load shedding, instead of shedding loads at multi-stages, thereby speeding up the recovery of system frequency.
To realize real-time decided UFLS, a challenge is to obtain load shedding amount, which ensures power system frequency safety for the current operating conditions and faults. In recent years, with the application of wide-area measurement systems in the power grid, data-driven control methods have rapidly developed, to some extent, addressing the modeling challenges and poor timeliness associated with traditional prescheduled UFLS. Data-driven control aims to extract valuable information from system responses, potentially enabling control measures to adapt to various operating conditions and disturbances.
Currently, there are no data-driven emergency control methods implemented in power systems. The emergency control methods implemented in power systems are primarily contingency-based control measures, which are event-based methods. However, some research has been conducted on data-driven emergency control for actual power system, such as the research work presented in [
To ensure that control strategies effectively maintain system frequency within a safety range while optimizing cost-efficiency, a general solution is the formulation of an optimal control problem. This problem aims to minimize control costs and encompasses a variety of constraints such as operational constraints, control quantity limitations, and restrictions related to power system stability. Among these, the most complex and crucial aspect is the constraint pertaining to the dynamic characteristics of the system.
A standard solution is utilizing classical representations of system dynamics, such as the swing equation and the first-order primary frequency response (PFR) dynamics. These methods require prior knowledge of system parameters [
As power systems are becoming more complex and data are becoming more readily available, it is in favor to develop data-driven methods that use only input/output data measured from the unknown system [
Fluctuating operating conditions and weak resilience of the future power grid require frequency control strategies to adapt to various operating conditions and non-envisioned faults. Consequently, data-driven control should possess the capability to accommodate various operating conditions and non-envisioned faults. However, for state-of-the-art data-driven UFLS, system responses are collected offline before the online control operation begins. These responses are used to estimate a model that matches the observed data in an appropriate sense. Nevertheless, offline observations are unable to cover all potential operating conditions and faults. Moreover, there is no guarantee that a system model trained for specific predetermined scenarios will generalize to the data outside of the distribution of the training set [
Given that nonlinear system dynamics render the optimal control problem intractable, it is desirable that the learned system model is linear. The Koopman-based control framework [
Compared with the purely physics-informed learning method, which may utilize classical representations of power systems like the system frequency response (SFR) model and rely on the data for parameter identification, the data-driven Koopman-based method increases flexibility within a predefined model structure [
Moreover, for the state-of-the-art Koopman-based methods, representation errors of Koopman operators are inevitable [
In most load shedding strategy, it is often assumed that the load shedding amount at each bus can be a continuous value [
Although the optimal control problem can be formulated as an mixed-integer linear programming (MILP) problem to decide whether to shed a feeder or not [
According to the literature review, to address the frequency stability issue in modern power systems with high penetration of renewable energy sources, we face three main challenges: ① identifying the system for optimal control under unanticipated operating conditions and power imbalance; ② analyzing the system performance when applying control policies computed from an inaccurate Koopman linear representations; and ③ designing a control strategy that works with feasible discrete load shedding values.
In response to the aforementioned research gaps, the main contributions of this paper are outlined as follows.
1) We introduce a novel data-enabled predictive control, referred to as Koopman-based load shedding (KLS), that achieves optimal one-shot load shedding amount for power system frequency safety. The proposed KLS demonstrates the adaptability to non-envisioned operating conditions under frequency events, allowing for precise load shedding strategies.
2) We investigate how approximation inaccuracies in the Koopman linear representations influence the control strategies and controlled frequency trajectories.
3) By formulating a safety margin tuning scheme within the KLS framework, we ensure that the system frequency trajectory remains within the prescribed hard limits when approximation inaccuracies exist and the feasible amount of load shedding is restricted to discrete values.
The rest of this paper is organized as follows. Section II presents the design of EFC. Section III provides error estimation and safety margin design. In Section IV, a case study is presented. Section V provides the conclusion.
In this section, we design a deep neural network to learn a coordinate transformation from the delay-embedded measurement space into a new space where it is possible to represent the frequency dynamics linearly. An optimal control problem is then formulated to obtain the one-shot load shedding amount.
Let an autonomous nonlinear dynamic system be governed by:
(1) |
where , and is the prediction horizon; is the state; is the algebraic variable; and is a nonlinear function. Considering the computational inefficiency of calculating optimal control for high-dimensional nonlinear dynamical functions, Koopman theory [
However, the estimation of the Koopman operator relies exclusively on data, either numerical or experimental. In the context of power systems, it is a common practice to rely on numerical data acquired from simulations. When the dataset is collected, it is necessary to preset the operating conditions and emergency events to trigger the system dynamics. Diverse operational conditions lead to variations in the parameters of the state space model of the grid given in (1), as well as the Koopman linear representations [
Although it is feasible to incorporate a wide range of operating conditions and events within the training set, it is impractical to exhaustively account for every scenario. The linear representation should possess the ability to generalize. This ensures that the linear dynamic model of the system, trained for specific predetermined scenarios, can extend its prediction capability. Such generalization allows the model to perform effectively for systems operating under non-predefined conditions and faults that are not included in the sample set.
In order to explicitly represent the variations of operating conditions and the complexity of emergency events in the state space model of (1), we utilize a vector of variables m to represent a subset of uncertain model parameters that are challenging to obtain online. To incorporate the uncertainty of these parameters into the system model, a modified model is evaluated as:
(2) |
Compared with (1), (2) provides a more general form of a deterministic power system model, which accounts for uncertainties. can be defined as pseudo-state variables. The augmented model was first introduced in [
Since m is hard to measure, which constitutes hidden or latent variables that are not directly measured but are dynamically important. Thus, the challenge of adapting the linear representations to accommodate the parameter variations transforms into that of accounting for the hidden variables in the model.
Time-delay embedding provides an method to augment these hidden variables. Under certain conditions, given by Takens’ embedding theorem [
The deep neural network is illustrated in Supplementary Material A. The dataset collected for training the network is described as follows. For a given power system, a specific anticipated operating condition is considered, and a representative fault is introduced, where denotes a predefined set of typical operating conditions; and denotes a predefined set of typical faults. Additionally, load shedding amount is defined at each load node , where (in per unit, and the load level at bus is the base value for ) is a uniformly distributed random number between 0 and 1; and is a predefined set of load shedding trajectories in training sets. Subsequently, time-series data of the inertia center frequency of the power system (referred to as the system frequency hereafter) in (3) are collected at time points , resulting in a sequence of data and . The obtained and are utilized as training data for the linear prediction model.
(3) |
Details for the network architecture and the loss function are given in Supplementary Material A. The latent extraction layers in the network are specifically designed to monitor variations in the parameters of the state-space model.
Based on Koopman theory, we assume that the frequency dynamics of the system are governed by the linear dynamic system equation represented in (4).
(4) |
(5) |
where is the deviation of frequency from its nominal value (in per unit) at time ; and are the time series of system frequency (state variable) and voltage (algebraic variable), respectively; denotes a neural network with a prescribed activation function and connectivity structure; is a set of finite Koopman observables, which forms a subspace of the infinite dimensional Koopman observables; and A and B are the matrices in the Koopman linear representation. With the loss function and the algorithm provided in Supplementary Material A, it is feasible to approximate the parameters of , along with the matrices A and B.
After the parameters of , A, and B are approximated from data, we can utilize (4) to predict the future trajectory of the system frequency variation, providing the control sequence , which is a time series of and . Herein, we refer to the dynamic system described by (4) as a Koopman linear system.
Remark 1 The time intervals among the time points may not be consistent with the time intervals among .
The selection of time intervals is based on the observation that the system in the case study takes about 60 s to stabilize its frequency following a power deficit. As a result, the dynamics that change within 1 s are relatively slow. To reduce the number of steps in neural network prediction and thus lower training complexity, a 1 s time interval is chosen. The setting of 1 ms is based on practical engineering considerations, where the sampling frequency for transient data in power grids is generally above 1000 Hz.
Combined with the Koopman model predictive control proposed in [
(6) |
where is a diagonal weight matrix representing load criticality, with larger diagonal entries for more critical loads; is the system frequency at time predicted by Koopman linear system; is the minimal allowed system frequency; and is the minimum allowed steady-state frequency. Here, we assume that the prediction horizon is sufficiently long for the system frequency to reach a steady state by . Note that the symbol indicates the variables with discrimination or prediction errors. The optimal control problem (6) is a quadratic programming problem with being a positive definite matrix. This problem can be solved in polynomial time.
Remark 2 The values of and can be adjusted based on the interplay between data-driven load shedding and the traditional UFLS. The traditional UFLS, as it initiates load shedding after a certain deviation in system frequency occurs (e.g., when the system frequency drops to 49 Hz), may lead to unexpected severe consequences due to the delayed timing of load shedding, such as greater power deficits and consequently higher load losses. If the objective of data-driven load shedding is to avoid triggering the traditional UFLS, can be set to be 49 Hz. On the other hand, if the data-driven load shedding aims to fully replace the traditional UFLS and ensure that the minimum frequency of the system remains above the minimum operating frequency of synchronous generators (e.g., 47 Hz), can be set to be 47 Hz. In this paper, we choose as 49 Hz as an illustrative example to show the effectiveness of the proposed KLS.
In practice, continuous adjustment of load shedding amount is difficult to achieve, and it is often necessary to choose whether or not to shed a load on a particular feeder line, resulting in a series of discrete values for the actual load shedding. Let the optimal load shedding amount obtained by solving the optimal control problem (6) be denoted as , the actual load shedding amount would be given as:
(7) |
where is the quantization interval, which physically refers to the load shedding amount on a single feeder line; is a positive integer; is an operator to round the optimal load shedding amount to the nearest feasible value; and is the actual load shedding amount at each load node when the discrete interval is . Solving the optimal control problem in (6) and rounding the resulting solution as described in (7) are referred to as KLS.
Remark 3 An alternative method is to round the computed control quantity to the nearest larger value, as outlined below.
(8) |
However, the strategy in (8) results in over-shedding. With the same system linear representation, the strategy presented in (8) with a larger load shedding amount compared with (7) is more likely to ensure that the system frequency does not violate safety constraints. Nevertheless, when implementing the strategy described in (7), it is also possible to ensure the safety of the system frequency by tuning a safety margin in the constraints of (6). The design of the safety margin in KLS will be presented in this paper. By employing the load shedding amount given in (7) along with the safety margin, we achieve a reduced level of load shedding amount compared with the strategy in (8).
In Section II, we employ constraints in the optimal control problem to ensure that the frequency predicted by the Koopman prediction model remains above the acceptable minimum values. However, in actual power systems, the optimal load shedding amount obtained from (6) may cause the system frequency to violate the prescribed hard limits. The main reasons are as follows.
First, the training of g, A, and B terminates when the loss function is less than a specified tolerance. Therefore, potential inadequate training leads to representation errors in g, A, and B. Denote the finite Koopman observables and Koopman system matrix identified from data as , and , respectively. The representation errors manifest as minor prediction errors . Second, the actual load shedding amount may deviate from the optimal load shedding amount obtained since it should be rounded to a feasible value.
Hence, to ensure that the frequency remains above the acceptable minimum values, we propose adding a safety margin to the frequency limits in the constraints of (6). Firstly, we present in Section III-A the theoretical basis for ensuring power system frequency safety with a finite safety margin. Secondly, an explicit method is introduced for calculating the safety margin in Section III-B.
This subsection aims to determine whether even slight deviations between the learnt and the accurate Koopman linear dynamics can compromise the desired system properties, potentially violating the imposed hard limits.
In Section II-B, the formulation of optimal control problem (6) is based on the assumption that the identification of A, B, and g is accurate. However, in real applications, due to the training error, only , and can be identified from data.
When solving the optimal control problem in (6), we can only employ , and identified from data, assuming that the equality in the following equation holds.
(9) |
With , and , we utilize (9) to predict the future trajectory of Koopman observables with and . We denote the trajectory of Koopman observables predicted by (9) as .
In order to analyze how Koopman linear representation errors influence the control strategy, we assume that and can be expressed as (10) and (11), and and are bounded in terms of the induced norm as shown in (12).
(10) |
(11) |
(12) |
where ; ; and and are the preset upper bounds of the representation error of and , respectively.
can be expressed as:
(13) |
where is the discrepancy to the accurate observables , and we assume that is very small compared with for .
Combining (13), dynamics in (9) can be transformed into coordinates as:
(14) |
Define (15) and satisfies (16).
(15) |
(16) |
where denotes the disturbance.
Since and are small, we assume the disturbance is norm-bounded by:
(17) |
For dynamics in (2) and a fixed , we define , , and as the stacked states, inputs, and disturbances up to time as (18)-(20), respectively. Note that we embed as the first component of the disturbance process.
(18) |
(19) |
(20) |
Based on system level synthesis (SLS) [
(21) |
where and are two block-lower triangular matrices representing system responses.
It has been proved in [
(22) |
where is formed by diagonally concatenating instances of A along with a zero matrix, expressed as ; is constructed through diagonal concatenation of instances of B and a zero matrix, expressed as ; and is the block-downshift operator, i.e., a matrix with the identity matrix on the first subdiagonal block and zeros elsewhere.
Based on the definition above, we further examine the effect of inaccurate Koopman linear representations and on the controlled system dynamics and provide an estimation of the upper error bound given as (23)-(29).
For the identified model and , the block-lower triangular matrices satisfy:
(23) |
By rewriting (23), we can obtain:
(24) |
where and are the block diagonal matrices satisfying and , respectively. The response of with the controller is given by:
(25) |
We decompose , and as follows to separate the effects of the known initial condition of from the unknown future disturbances:
(26) |
where is the first block column of ; the symbol indicates portions of that matrix or vector; and is the first block row of . Then, we have:
(27) |
(28) |
(29) |
(30) |
Therefore, it can be concluded that when and converge to 0, converges to 0. In other words, the error of the open-loop dynamics is limited by the representation errors of Koopman eigenpairs. Consequently, by incorporating a finite safety margin into the frequency safety constraints, we can ensure the frequency safety despite the presence of errors in the frequency dynamic characteristics in (4).
In Section III-A, we examine the errors in frequency trajectory prediction, and the optimal control measures that stem from inaccuracies in Koopman linear representations. Given these considerations, it is important to incorporate a finite safety margin within the frequency safety constraints in (6) to ensure that the system frequency trajectory remains within the prescribed hard limits.
Although (30) provides the upper bound of errors in frequency trajectory and control measures caused by Koopman linear representation error, the acquisition of and is challenging. Hence, this subsection proposes an analytical method for calculating the safety margin to prevent both the Koopman linear representation error and the rounded optimal control strategy from causing the system frequency to exceed the prescribed hard limits.
Proposition 1 By replacing the frequency limits in (6) with (31), it ensures that the optimal control strategy obtained from KLS, when rounded to the nearest larger value, does not violate the prescribed hard limits on the system frequency.
(31) |
(32) |
where is the safety margin; and is an observation matrix with the first element equal to 1 and the remaining elements equal to 0.
Remark 4 The values of can be obtained through power system simulation experiments, while the values of can be calculated using the linear prediction system (4). Since , and are in the training set for (4), the last term on the right hand side of (32) is the largest prediction error of (4) on the frequency trajectories in the training set. Hence, the last term on the right hand side of (32) is acquired upon the completion of the training process for (4).
Proof The constraints in the optimal control problem (6) guarantee that the minimum value of is no less than , and the steady-state value is no less than . Thus, it is crucial to find an upper bound on the difference between and in order to determine the value of . The estimation of this upper bound is given as:
(33) |
where denotes the optimal load shedding solution obtained by solving (6); denotes the actual load shedding amounts at each load node ; denotes the predicted frequency of the linear prediction system at time when the load shedding amount is ; and and denote the actual and predicted system frequencies at time , when the load shedding amount is , respectively. The values of can be obtained through power system simulation, while the values of can be calculated using the linear prediction system (4).
In (33), the first inequality is based on the triangle inequality of the induced norm. The third inequality utilizes the largest prediction error from the training set to estimate the upper limit of the prediction error in the testing set. The proof for the second inequality in (33) is given as:
(34) |
is expected to ensure that the KLS guarantees the system frequency to remain within the safety range under anticipated operating conditions and faults .
Therefore, when the inequality (31) holds, it ensures that the frequency trajectory of the actual power system is within the safety range, under the load shedding amount .
Remark 5 Manual adjustment of is possible, which entails the following steps. First, simulating the system frequency by rounding the optimal control strategy to the nearest feasible value for each operating condition and fault in the training set. Then, instances where the system frequency fails to meet the hard limits are selected. is then increased and the system frequency is simulated under the new . This step is repeated until the system frequency complies with the limits. By contrast, our method avoids the extensive simulation required to find suitable values of . Instead, it relies on in (4), and the prediction error already computed during the training of the encoder, thus enhancing the efficiency of safety margin design.
Here, we further discuss when the equality holds in the inequality (33).
In the deviation of the upper bound for , the first inequality in (33) and the last inequality in (34) are based on the sub-multiplicative inequality and the triangle inequality of the induced norm, respectively. For any two arrays and , equality for the triangle inequality holds when the two arrays are linearly dependent, while the equality for the sub-multiplicative inequality holds if and only if each row of and each column of are linearly dependent.
is often strictly lower than the upper bound derived in (33). The reason is the equality conditions of the triangle inequality and the sub-multiplicative inequality in (33) and (34) are hard to satisfy. The gap between and its upper bound will be further illustrated in the simulation results in Section IV.
In this section, the prediction capability and control effectiveness of KLS are illustrated using simulation data through a case study on the CloudPSS platform [
To validate the effectiveness of the proposed KLS, we conducted simulation experiments on the CEPRI-FS test system. The electromechanical transient model for this case study is available for access at [
Based on the model of synchronous generator, system inertia is an important parameter that affects frequency safety. The influence of operating conditions on frequency dynamics can be attributed, in part, to the variations in system inertia caused by changes under operating conditions. Therefore, in this subsection, we assume a certain level of randomness in system inertia to capture unanticipated operating conditions.
The training and testing sets are generated as follows. In CEPRI-LF test system, synchronous generators in a region are represented as an equivalent single unit. Variations in system operating conditions may result in changes in the unit commitment, potentially leading to variations in the system inertia of the equivalent unit. Therefore, to represent variations under the operating conditions, we obtain a set of possible system inertia by enumerating different commitment of the generating units. When obtaining different system trajectories, different inertia values are employed. We assume that at bus is a uniformly distributed random number between 0 and 1. The fault set of the system is generated by traversing , , and generator trippings. For simulating each trajectory, each fault in the fault set is chosen at the same probability.
The training set consists of 600 frequency trajectories, while the testing set consists of 300 frequency trajectories. Each frequency trajectory has a length of 1 min. The time intervals in is set to be 1 s, while in , is set to be 1 ms. When generating a frequency trajectory, and faults are randomly generated according to their respective distributions. When tuning the hyperparameters of the neural network, the training data are further split into a training set and a validation set in an ratio.
Frequency trajectories from the testing set are used to assess the prediction accuracy of KLS. Furthermore, 300 test scenarios are created, with the same operating conditions and faults as in the 300 frequency trajectories. In the 300 test scenarios, the control effect of different load shedding strategies is compared.
The frequency nadir and steady-state frequency values SSV in various power imbalance scenarios are presented in

Fig. 1 Frequency nadir and SSV in various power imbalance scenarios.
It is important to note that system inertia is not the sole critical factor influencing frequency dynamics. Other significant elements, such as governors, also play a role. This subsection uses system inertia as an example to demonstrate that the introduction of time-delay embedding enables the identification of hidden variables, which is not directly measured, corresponding to unexpected operating conditions and faults.

Fig. 2 Correlation between system inertia and outputs of latent extractor and between power imbalance and outputs of latent extractor. (a) System inertia. (b) Power imbalance.
The strong nonlinearity of dynamics makes the local linearization method hard to fit the model accurately in global horizon, and the piecewise linearization has difficulty in remaining a balance between accuracy and simplicity. Therefore, only Koopman-based methods are compared. As the benchmark of the learning algorithm, the dynamic mode decomposition (DMD) and extended dynamic mode decomposition (EDMD) are implemented with 100 radial basis functions (RBFs) as observables. To illustrate the effectiveness of incorporating time delay embedding, KLS without time delay embedding (KLS-WTDE), i.e., when in (5), is also tested as a benchmark. In subsequent discussions, we refer to KLS-WTDE, DMD, and EDMD as the state-of-the-art methods (SOTAMs) for brevity and clarity.
To illustrate the capability of the proposed KLS to learn the dynamics of system frequency from the online measurement, the frequency measurement of 1 min after a fault occurs is used to fit the linear model in (4) for the system with different system inertia, control inputs, and faults.

Fig. 3 Comparison between true frequency trajectory and predicted frequency trajectory during future 60 s with proposed KLS, KLS-WTDE, EDMD, and DMD. (a) True and predicted frequency trajectories under random control inputs. (b) Mean average error (MAE) of prediction errors.
Based on the frequency sequence observed within 300 ms after the generator tripping at 40 s, the proposed KLS demonstrates accurate prediction of the evolving frequency for the subsequent 60 s under different control inputs. This highlights the effectiveness of the latent extractor combined with time-delayed measurements in capturing the dynamics of the system frequency. In contrast, DMD and EDMD exhibit poorer performance, which can be attributed to their limited capability in incorporating time-delay information and harnessing the powerful non-linear representation offered by deep learning techniques.
The prediction accuracy of the proposed KLS and SOTAMs on the training and testing sets is illustrated, as shown in

Fig. 4 Prediction accuracy of proposed KLS and SOTAMs on training and testing sets. (a) MAE. (b) MAE decrement.
In this subsection, we focus on investigating the impact of prediction accuracy on control effectiveness.
It is assumed that a continuous adjustment of load shedding can be achieved, and is set to be zero. The effectiveness of the proposed KLS and SOTAMs is evaluated by assessing the power system frequency safety after the implementation of these control strategies. Furthermore, to demonstrate the adaptability of the proposed KLS to unanticipated operating conditions and faults, all results in this subsection are computed using the test dataset. The normalized safety metric is calculated as:
(35) |
where the superscripts and S denote the frequency nadir and steady-state frequency, respectively.
In (35), when the frequency nadir is no less than and the steady-state frequency is no less than , is assigned a value of 1; when the frequency nadir is less than and the steady-state frequency is less than , is assigned a value of 0. The weights for measuring the safety indicators of nadir and steady-state value are represented by and , respectively. In this paper, the values of and are set to be 9.0 Hz and 49.5 Hz, respectively, which are equal to and . and are set to be 48.5 Hz and 49.0 Hz, respectively. In
The average control safety metrics of proposed KLS, KLS-WTDE, EDMD, and DMD on the test scenarios are shown in

Fig. 5 and average control safety metric of proposed KLS, KLS-WTDE, EDMD, and DMD on test scenarios. (a) . (b) Average control safety metric.
In

Fig. 6 Comparison between proposed KLS and SOTAMs on a scenario in testing set. (a) Control effectiveness. (b) True and predicted frequency trajectories under optimal control inputs calculated by proposed KLS.
This subsection analyzes the control effectiveness after the introduction of a safety margin in Section III-B. The evaluation of control measures is based on two indicators: the power system frequency safety and the control cost. Increasing the amount of load shedding typically results in a higher system frequency. If the system frequency remains within the safety range (i.e., ), the greater the deviation of the nadir and the steady-state value of the system frequency from the specified hard limits are, the higher the associated control cost becomes. Hence, a normalized economic metric , ranging from 0 to 1, is introduced in (36) as an indicator to measure the control cost. Hz and Hz indicate that when the nadir is equal to 49.0 Hz and the SSV is equal to 49.5 Hz, the of load shedding measures is assigned a value of 1. Similarly, and Hz indicate that when the nadir is no less than 49.5 Hz and the SSV is no less than 50.0 Hz, the of load shedding measures is assigned a value of 0.
(36) |

Fig. 7 Safety improvement when incorporating safety margin. (a) . (b) Safety improvement.
For the sake of clarity, we will refer to the method in (8) as the ceiled KLS (KLS-C). The of KLS-C and the proposed KLS is demonstrated in

Fig. 8 of KLS-C and proposed KLS. (a) . (b) Economy improvement.
Frequency thresholds and load shedding proportions at each stage for traditional UFLS are determined according to [

Fig. 9 Comparison between traditional UFLS and proposed KLS in an envisioned scenario and a non-envisioned scenario. (a) Envisioned scenario. (b) Non-envisioned scenario.
The comparison between traditional UFLS and proposed KLS in 300 test scenarios (non-envisioned) is presented in

Fig. 10 Comparison between traditional UFLS and proposed KLS in 300 test scenarios. (a) . (b) Average control safety metric.
In this paper, the proposed KLS, which adapts to diverse operating conditions and under frequency events, is introduced to achieve the optimal one-shot load shedding for power system frequency safety. To address approximation inaccuracies and the restriction of load shedding to discrete values, a safety margin tuning scheme is incorporated within KLS framework. Simulation results demonstrate that the proposed KLS effectively captures latent variables strongly correlated with the system inertia and power imbalance within a 300 ms time window after a fault occurs. The proposed KLS exhibits high prediction accuracy on both the training and testing sets, indicating its generalizability beyond the training set. Furthermore, the safety margin tuning scheme enhances the power system frequency safety.
References
L. Sigrist, I. Egido, and L. Rouco, “A method for the design of UFLS schemes of small isolated power systems,” IEEE Transactions on Power Systems, vol. 27, no. 2, pp. 951-958, May 2012. [Baidu Scholar]
Y.-Y. Hong and C.-Y. Hsiao, “Under-frequency load shedding in a standalone power system with wind-turbine generators using fuzzy PSO,” IEEE Transactions on Power Delivery, vol. 37, no. 2, pp. 1140-1150, May 2022. [Baidu Scholar]
S. S. Banijamali and T. Amraee, “Semi-adaptive setting of under frequency load shedding relays considering credible generation outage scenarios,” IEEE Transactions on Power Delivery, vol. 34, no. 3, pp. 1098-1108, Nov. 2018. [Baidu Scholar]
Y. Chen and Y. Xue, “On-line refreshing emergency decision table by using EEAC and expert system techniques,” Power System Technology, vol. 20, no. 1, pp. 7-9, Dec. 1996. [Baidu Scholar]
Y. Tofis, S. Timotheou, and E. Kyriakides, “Minimal load shedding using the swing equation,” IEEE Transactions on Power Systems, vol. 32, no. 3, pp. 2466-2467, Oct. 2016. [Baidu Scholar]
S. Xu, P. Wu, B. Zhao et al., “Coordinated control strategy of interconnected grid integrated with UHVDC transmission line from Hami to Zhengzhou,” Power System Technology, vol. 39, no. 7, pp. 1174-1178, Jul. 2015. [Baidu Scholar]
T. Amraee, M. G. Darebaghi, A. Soroudi et al., “Probabilistic under frequency load shedding considering RoCoF relays of distributed generators,” IEEE Transactions on Power Systems, vol. 33, no. 4, pp. 3587-3598, Dec. 2017. [Baidu Scholar]
F. Ceja-Gomez, S. S. Qadri, and F. D. Galiana, “Under-frequency load shedding via integer programming,” IEEE Transactions on Power Systems, vol. 27, no. 3, pp. 1387-1394, Mar. 2012. [Baidu Scholar]
X. Chen, G. Qu, Y. Tang et al., “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, Feb. 2022. [Baidu Scholar]
H. Golpira, H. Bevrani, A. R. Messina et al., “A data-driven under frequency load shedding scheme in power systems,” IEEE Transactions on Power Systems, vol. 38, no. 2, pp. 1138-1150, May 2022. [Baidu Scholar]
Q. Shi, F. Li, and H. Cui, “Analytical method to aggregate multi-machine SFR model with applications in power system dynamic studies,” IEEE Transactions on Power Systems, vol. 33, no. 6, pp. 6355-6367, Apr. 2018. [Baidu Scholar]
Z. Hou and Z. Wang, “From model-based control to data-driven control: survey, classification and perspective,” Information Sciences, vol. 235, pp. 3-35, Jun. 2013. [Baidu Scholar]
J. Xie and W. Sun, “Distributional deep reinforcement learning-based emergency frequency control,” IEEE Transactions on Power Systems, vol. 37, no. 4, pp. 2720-2730, Nov. 2021. [Baidu Scholar]
W. Cui, Y. Jiang, and B. Zhang, “Reinforcement learning for optimal primary frequency control: a Lyapunov approach,” IEEE Transactions on Power Systems, vol. 38, no. 2, pp. 1676-1688, Dec. 2021. [Baidu Scholar]
K. Champion, B. Lusch, J. N. Kutz et al., “Data-driven discovery of coordinates and governing equations,” Proceedings of the National Academy of Sciences, vol. 116, no. 45, pp. 22445-22451, Oct. 2019. [Baidu Scholar]
S. L. Brunton, M. Budišić, E. Kaiser et al., “Modern Koopman theory for dynamical systems,” SIAM Review, vol. 64, no. 2, pp. 229-340, Feb. 2021. [Baidu Scholar]
Z. Ma, Z. Wang, and R. Cheng, “Analytical large-signal modeling of inverter-based microgrids with Koopman operator theory for autonomous control,” IEEE Transactions on Smart Grid, vol. 15, no. 2, pp. 1376-1387, Sept. 2023. [Baidu Scholar]
X. Gong, X. Wang, and G. Joos, “An online data-driven method for microgrid secondary voltage and frequency control with ensemble koopman modeling,” IEEE Transactions on Smart Grid, vol. 14, no. 1, pp. 68-81, Jul. 2022. [Baidu Scholar]
M. Korda, Y. Susuki, and I. Mezic, “Power grid transient stabilization using Koopman model predictive control,” IFAC-PapersOnLine, vol. 51, no. 28, pp. 1-10, Mar. 2018. [Baidu Scholar]
F. Raak, Y. Susuki, and T. Hikihara, “Data-driven partitioning of power networks via koopman mode analysis,” IEEE Transactions on Power Systems, vol. 31, no. 4, pp. 2799-2808, Sept. 2015. [Baidu Scholar]
M. Netto and L. Mili, “A robust data-driven Koopman Kalman filter for power systems dynamic state estimation,” IEEE Transactions on Power Systems, vol. 33, no. 6, pp. 7228-7237, Jun. 2018. [Baidu Scholar]
Z. Ping, Z. Yin, X. Li et al., “Deep Koopman model predictive control for enhancing transient stability in power grids,” International Journal of Robust and Nonlinear Control, vol. 31, no. 6, pp. 1964-1978, Jun. 2020. [Baidu Scholar]
X. Li, J. De La Ree, and C. Mishra, “Frequency control of decoupled synchronous machine using Koopman operator based model predictive,” in Proceedings of 2019 IEEE PES General Meeting (PESGM), Atlanta, USA, Aug. 2019, pp. 1-5. [Baidu Scholar]
M. Quade, M. Abel, J. N. Kutz et al., “Sparse identification of nonlinear dynamics for rapid model recovery,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 28, no. 6, pp. 1-8, Jun. 2018. [Baidu Scholar]
Y. Susuki, T. Shimomura, Y. Ota et al. (2022, Jan.). Online Koopman mode decomposition for power system synchrophasor data. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2405896322003950 [Baidu Scholar]
E. Kaiser, J. N. Kutz, and S. L. Brunton, “Data-driven discovery of Koopman eigenfunctions for control,” Machine Learning: Science and Technology, vol. 2, p. 35023, Jun. 2021. [Baidu Scholar]
Q. Cao, C. Shen, and Y. Liu, “Data-driven emergency frequency control for multi-infeed hybrid AC-DC system,” IEEE Transactions on Power Systems, vol. 39, no. 2, pp. 3880-3894, May 2023. [Baidu Scholar]
C. Shen, Q. Cao, M. Jia et al., “Concepts, characteristics and prospects of application of digital twin in power system,” Proceedings of the CSEE, vol. 42, no. 2, pp. 487-498, Nov. 2021. [Baidu Scholar]
A. A. Zadeh, A. Sheikhi, and W. Sun, “A novel probabilistic method for under frequency load shedding setting considering wind turbine response,” IEEE Transactions on Power Delivery, vol. 37, no. 4, pp. 2640-2649, Sept. 2021. [Baidu Scholar]
D. Q. Mayne, “Model predictive control: recent developments and future promise,” Automatica, vol. 50, no. 12, pp. 2967-2986, Dec. 2014. [Baidu Scholar]
S. Azuma and T. Sugie, “Optimal dynamic quantizers for discrete-valued input control,” Automatica, vol. 44, no. 2, pp. 396-406, Feb. 2008. [Baidu Scholar]
R. Larson, “Optimum quantization in dynamic systems,” IEEE Transactions on Automatic Control, vol. 12, no. 2, pp. 162-168, Apr. 1967. [Baidu Scholar]
B. O. Koopman, “Hamiltonian systems and transformation in hilbert space,” Proceedings of the National Academy of Sciences, vol. 17, no. 5, pp. 315-318, May 1931. [Baidu Scholar]
Y. Xu, M. Netto, and L. Mili, “Propagating parameter uncertainty in power system nonlinear dynamic simulations using a Koopman operator-based surrogate model,” IEEE Transactions on Power Systems, vol. 37, no. 4, pp. 3157-3160, Apr. 2022. [Baidu Scholar]
F. Takens, “Detecting strange attractors in turbulence,” Lecture Notes in Mathematics, vol. 898, pp. 366-381, Oct. 1981. [Baidu Scholar]
J. Bakarji, K. Champion, J. N. Kutz et al., “Discovering governing equations from partial measurements with deep delay autoencoders,” Proceedings of the Royal Society, vol. 479, p. 20230422, Aug. 2022. [Baidu Scholar]
M. Korda and I. Mezic, “Linear predictors for nonlinear dynamical systems: Koopman operator meets model predictive control,” Automatica, vol. 93, pp. 149-160, Jul. 2018. [Baidu Scholar]
S. Chen, V. M. Preciado, M. Morari et al., “Robust model predictive control with polytopic model uncertainty through system level synthesis,” Automatica, vol. 162, p. 111431, Apr. 2024. [Baidu Scholar]
J. Anderson, J. C. Doyle, S. H. Low et al., “System level synthesis,” Annual Reviews in Control, vol. 47, pp. 364-393, Jun. 2019. [Baidu Scholar]
Y. Song, Y. Chen, Z. Yu et al., “Cloudpss: a high-performance power system simulator based on cloud computing,” Energy Reports, vol. 6, pp. 1611-1618, Jan. 2020. [Baidu Scholar]
CloudPSS. (2022, Jun.). MS windows NT kernel description. [Online]. Available: https://www.cloudpss.net/ [Baidu Scholar]
China Electric Power Research Institute Co., Ltd. (2024, Jan.). Electromechanical transient model–CSEE benchmark. [Online]. Available: https://github.com/lbl-hub/CSEE-Benchmark. [Baidu Scholar]
Y. Liu and Y. Song, “Modeling and simulation of hybrid AC-DC system on a cloud computing based simulation platform-cloudpss,” in Proceedings of 2018 2nd IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, China, Oct. 2018, pp. 1-6. [Baidu Scholar]
Western Power. (2024, Jan.). Under frequency load shedding (UFLS) scheme connection guidelines. [Online]. Available: https://www.westernpower.com.au/siteassets/documents/under-frequency-load-shedding-UFLS-scheme-connection-guidelines.pdf [Baidu Scholar]