Mechanism-guided data-driven new energy fault ride-through modeling method and system
By using a mechanism-guided, data-driven approach, deterministic mathematical functions are generated using the control strategies of new energy equipment manufacturers, and a synthetic dataset is used to train a neural network. Fine-tuning is then performed using a small amount of real-world data. This approach solves the problems of low efficiency in cross-manufacturer modeling and insufficient generalization ability of data-driven methods, and achieves high-precision fault-crossing modeling.
Patent Information
- Application Number
- CN202611337579.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, fault ride-through modeling methods for new energy power generation units suffer from low efficiency in cross-manufacturer modeling and insufficient generalization ability of data-driven methods, resulting in high modeling costs and low accuracy.
By adopting a mechanism-guided and data-driven approach, the fault ride-through control strategies of new energy equipment manufacturers are obtained, transformed into deterministic mathematical functions, and a synthetic dataset is generated to train a neural network. Fine-tuning is then performed using a small amount of measured data to achieve unified modeling across manufacturers.
It achieves unified high-precision fault ride-through modeling across manufacturers, reduces dependence on hardware-in-the-loop test data, and improves the model's generalization ability and simulation accuracy.
Smart Images

Figure CN123159098A_ABST
Abstract
Description
Technical Field
[0001] This invention mainly relates to the field of new energy technology, specifically to a mechanism-guided and data-driven new energy fault ride-through modeling method and system. Background Technology
[0002] In power system transient simulation, the Fault Ride-Through (FRT) characteristic model of new energy generation units is the foundation for power grid security and stability analysis. Currently, widely used power system simulation software employs a modeling path of "manual control option selection + parameter identification" for FRT models. Taking the mainstream domestic simulation software PSASP as an example, its FRT model control options cover 5 active power control options, 3 reactive power control options, and 4 recovery control options for low-voltage ride-through, resulting in over 60 combinations. The control strategies of different new energy equipment manufacturers vary significantly, specifically in: different fault ride-through entry / exit thresholds, different active and reactive current calculation formulas, different asymmetrical fault handling methods, and different recovery logic after fault clearance. Each time a new manufacturer or model is added, control option selection and parameter identification must be performed from scratch, resulting in a large amount of repetitive work and low modeling efficiency.
[0003] Another approach uses purely data-driven neural networks to directly fit measured data. This method requires a large amount of hardware-in-the-loop (HIL) test or field experimental data covering various fault conditions and operating point combinations, resulting in extremely high data acquisition costs. Furthermore, the trained model is only effective within the range of conditions covered by the training data; its accuracy drops significantly when extrapolated to unseen conditions, indicating insufficient generalization ability.
[0004] In summary, the existing technologies have the following shortcomings: (1) Pure mechanism methods face the problem of heterogeneity in control strategies. Different manufacturers have significantly different strategy structures. The manual selection + parameter identification path cannot be transferred. The entire process needs to be repeated for each new manufacturer. (2) Pure data-driven methods have a huge demand for measured data. The generalization ability of the model is limited by the working conditions covered by the training data. It cannot guarantee the simulation accuracy under unseen working conditions. Summary of the Invention
[0005] To address the technical problems existing in the prior art, this invention provides a mechanism-guided, data-driven fault ride-through modeling method and system for new energy, which achieves cross-manufacturer unified, low data dependency, high precision, and generalizable fault ride-through modeling.
[0006] To solve the above-mentioned technical problems, the technical solution proposed by this invention is as follows: A mechanism-guided, data-driven method for fault ride-through modeling of new energy sources, comprising the following steps: S1. Obtain the fault ride-through control strategy specification document from the new energy equipment manufacturer, and extract the logic rules and parameters of fault ride-through control from the specification document; S2, transforming logical rules and parameters into deterministic mathematical functions; the deterministic mathematical functions are deterministic mappings with all parameters known, and do not contain parameters to be identified; S3: Generate multiple virtual operating conditions by uniformly sampling in the input space; for each virtual operating condition, generate a corresponding synthetic dataset through a deterministic mathematical function; train a neural network based on the synthetic dataset to obtain a pre-trained model; S4. Obtain measured data from hardware-in-the-loop testing or field experiments; use the parameters of the pre-trained model as initial values, take the measured data as the main optimization target, and use the mechanism label generated from the measured data based on deterministic mathematical functions as a regularization constraint to fine-tune the neural network and obtain the fine-tuned model. S5 embeds the fine-tuned model into the fault ride-through sub-model interface of the power system simulation software; in each integral step of the simulation operation, the relevant state quantities at the current moment are input into the fine-tuned model, and the fine-tuned model outputs the active current reference value and reactive current reference value at the current moment, so as to replace the traditional control option selection and parameter identification process.
[0007] Preferably, the logic rules and parameters of fault ride-through control extracted in step S1 include: entry and exit thresholds for low voltage ride-through (LVRT) and high voltage ride-through (HVRT), calculation formulas for reference values of active and reactive currents during the fault period and their corresponding coefficients, handling rules for asymmetrical faults, and active and reactive power recovery logic after fault clearance.
[0008] Preferably, in step S2, the deterministic mathematical function includes a current command calculation function and a running state machine function; The inputs to the current command calculation function include the terminal voltage, the power before the fault, and the fault type, and the outputs include active current reference values and reactive current reference values. The operating state machine function switches between five operating states—normal operation, low voltage ride-through, low voltage ride-through recovery, high voltage ride-through, and high voltage ride-through recovery—based on the comparison between the terminal voltage amplitude and the threshold and the determination of the power recovery degree. It also automatically marks the operating state flag and the cumulative recovery phase time at each moment.
[0009] Preferably, in step S3, the input space includes the terminal voltage amplitude, the active power before the fault, and the fault type; For each virtual operating condition, a time-domain voltage profile is constructed, comprising three stages: the pre-fault steady-state stage, the fault duration stage, and the post-fault recovery stage. Each moment in the time-domain voltage profile is processed by the running state machine function and current command calculation function in step S2 to generate corresponding input features and current labels, forming the synthetic dataset.
[0010] Preferably, in step S3, the neural network is a shallow feedforward neural network, including an input layer, a first hidden layer, a second hidden layer, and an output layer; the first hidden layer is a fully connected layer with 32 nodes, the second hidden layer is a fully connected layer with 16 nodes, and the activation function of both hidden layers is a linear rectification function with leakage; the output layer is a fully connected layer with 2 nodes, which outputs active current reference values and reactive current reference values respectively; the output layer is followed by a physical limiting layer to constrain the output to within the hardware capacity boundary of the device.
[0011] Preferably, in step S3, the input feature is a 10-dimensional feature vector, including: the current terminal voltage, the active power before the fault, the reactive power before the fault, the active current before the fault, the reactive current before the fault, the current operating status flag, the recovery phase timer, the fault type, the active current value at the previous moment, and the reactive current value at the previous moment; wherein, by introducing the active current value and reactive current value at the previous moment, the shallow feedforward neural network fits the differential equation of the current increment rather than the absolute current trajectory, so as to achieve cross-operating condition generalization.
[0012] Preferably, in step S4, the composite loss function used in the fine-tuning training is:
[0013] in, The mean square error between the output of the fine-tuned model and the measured current data is... The mean square error between the output of the fine-tuned model and the mechanism label is... The regularization coefficient is... A two-stage adaptive strategy is adopted: in the initial stage, a small value within the range of 0.05 to 0.5 is used to allow for model fitting of hardware bias; in subsequent stages, the value is adjusted according to... and The actual ratio is automatically adjusted to balance the two losses on the gradient.
[0014] Preferably, in step S4, differentiated learning rates are applied to different layers of the shallow feedforward neural network: the learning rate of the feature extraction layer closest to the input is multiplied by a scaling factor of 0.1, the learning rate of the intermediate hidden layers is multiplied by a scaling factor of 0.5, and the output layer uses a baseline learning rate; the baseline learning rate is... The learning rate is lower than that used in the pre-training phase of step S3. .
[0015] Preferably, in step S5, the fine-tuned model is embedded into the power system simulation software in the form of a dynamic link library or an interface function; the relevant state quantities input to the fine-tuned model in each integration step include: the current terminal voltage, the steady-state value before the fault, the operating status flag, the recovery timer, and the fault type; the active current reference value and reactive current reference value output by the fine-tuned model directly replace the original control option selection and parameter identification process in the power system simulation software.
[0016] The present invention also discloses a mechanism-guided, data-driven new energy fault ride-through modeling system, comprising an interconnected memory and a processor, wherein the memory stores a computer program, and the computer program executes the steps of the method described above when run by the processor.
[0017] Compared with the prior art, the advantages of the present invention are as follows: (1) The traditional control option selection and parameter identification steps are replaced by the control strategy specifications published by the manufacturers, eliminating the manual selection process. The differences in control strategies between different manufacturers are only reflected in the differences in deterministic mathematical rules. There is no need to redesign and select the control structure for each manufacturer, thus realizing a unified modeling framework across manufacturers.
[0018] (2) The cascaded training strategy, which combines pre-training with synthetic data with fine-tuning using a small amount of real-world data, significantly reduces the reliance on hardware-in-the-loop test data. Synthetic data can uniformly cover all operating conditions in the input space, ensuring basic generalization ability; during the fine-tuning stage, only a small amount of real-world data is needed to correct hardware deviations, and the amount of real-world data required is far lower than that of pure data-driven methods.
[0019] (3) In the fine-tuning stage, a composite loss function is adopted, with the measured data as the main loss term and the mechanism label as the regularization constraint term. This balances the fitting of the actual behavior of the hardware with respect for the manufacturer's design behavior, and avoids overfitting of noise and outliers in the hardware-in-the-loop data.
[0020] (4) Taking a certain type of photovoltaic inverter as an example, the root mean square error of the pre-trained model on the validation set is 0.0056 pu. After fine-tuning with HIL measured data, the error with the real hardware is only 0.0128 pu, which verifies the feasibility and high precision of the method of the present invention. Attached Figure Description
[0021] Figure 1 This is a flowchart of the mechanism-guided, data-driven new energy fault ride-through modeling method according to an embodiment of the present invention.
[0022] Figure 2The following is a schematic diagram of input feature space sampling and synthetic data generation in an embodiment of the present invention; (a) is a scatter plot of uniform sampling of input space; (b) is an example voltage profile; and (c) is a current label plot generated by deterministic mathematical rules.
[0023] Figure 3 This is a flowchart of the two-stage training process for the model of this invention. Detailed Implementation
[0024] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0025] like Figure 1 As shown, the mechanism-guided, data-driven new energy fault ride-through modeling method provided in this embodiment of the invention includes the following steps: Step S1: Obtain the manufacturer's control strategy description The logical descriptions of fault ride-through control strategies were extracted from publicly available technical documents of new energy equipment manufacturers. These included: entry / exit thresholds for low-voltage ride-through (LVRT) and high-voltage ride-through (HVRT); calculation formulas and parameters for active and reactive current reference values during faults; rules for handling asymmetrical faults; and logic for restoring active and reactive power after fault clearance. New energy equipment included, but not limited to, photovoltaic inverters, doubly-fed asynchronous wind turbines, and direct-drive permanent magnet wind turbines. The control strategies extracted in step S1 include: the low-voltage ride-through reactive current calculation formula. ,in The reactive current coefficient is... The low-voltage ride-through threshold is set. Rated current, The reactive current before the fault (all electrical quantities in this embodiment are per-unit values); the active current maintains the power before the fault under capacity constraints, with a minimum limit of 0.1. After the fault is cleared, the reactive current immediately returns to zero, and the active current recovers to the pre-fault level at a constant rate.
[0026] Step S2: Transform the control strategy into deterministic mathematical rules The logical description extracted in step S1 is written as a deterministic mathematical function, including: Current command calculation function: The inputs are terminal voltage, power before the fault, and fault type; the outputs are reference values for active and reactive current. The operating state machine function switches between five operating states—normal operation, low-voltage ride-through, low-voltage ride-through recovery, high-voltage ride-through, and high-voltage ride-through recovery—based on a comparison of the terminal voltage amplitude with the threshold and a determination of the power recovery level. It automatically labels each moment with an operating state flag and the cumulative recovery time. The deterministic mathematical function is a deterministic mapping with all parameters known, and does not contain parameters to be identified.
[0027] Step S3: Synthetic Data Generation and Pre-training This step includes two sub-stages: data synthesis and model prediction. like Figure 2 As shown, during the data synthesis phase, a large number of virtual operating conditions are uniformly sampled in the input space (terminal voltage amplitude, active power before the fault, and fault type) to generate. For each virtual operating condition, a time-domain voltage profile is constructed, comprising three stages: the steady-state stage before the fault, the fault duration stage, and the recovery stage after the fault is cleared. The corresponding active and reactive current label values are calculated time-by-time using the deterministic mathematical rules in step S2, forming a synthetic dataset of "input features - current labels".
[0028] The input features of the synthetic dataset include: current terminal voltage, active power before the fault, reactive power before the fault, active current before the fault, reactive current before the fault, current operating status flag, recovery phase timer, and fault type. Input features also include the active current value and reactive current value from the previous time step. When the recovery logic of the deterministic mathematical function contains time-dependent components, the current value from the previous time step is used to enable a shallow feedforward neural network to fit the differential equation of the current increment rather than the absolute current trajectory, achieving cross-operating condition generalization.
[0029] like Figure 3 As shown, a shallow feedforward neural network is trained using this synthetic dataset as a pre-trained model, making the neural network output approximate the design behavior of the manufacturer's control strategy. The shallow feedforward neural network contains two hidden fully connected layers with 32 and 16 nodes respectively, and the activation function is a linear rectified function with leakage; the output layer is a fully connected layer with 2 nodes, which outputs active current reference values and reactive current reference values respectively; the output is constrained to the device hardware capacity boundary by a physical limiting layer.
[0030] When the recovery logic of a deterministic mathematical function contains a time-dependent component, the active current value and reactive current value of the previous moment are further added to the input features, so that the neural network fits the differential equation of the current increment.
[0031] Step S4: Fine-tuning of hardware-in-the-loop measured data Obtain a small amount of measured data from hardware-in-the-loop testing or field experiments. The measured data includes terminal voltage, active power, reactive power, active current, and reactive current time-domain waveforms under different fault types, different voltage drop depths, and different power levels.
[0032] The deterministic mathematical function in step S2 is used to generate corresponding mechanism labels for the measured data; the pre-trained model parameters in step S3 are used as initial values, the measured current data is used as the main optimization target, and the mechanism labels are used as regularization constraints. The neural network is fine-tuned using a composite loss function so that the model output corrects hardware deviations while maintaining consistency with the manufacturer's design behavior.
[0033] The composite loss function used in the fine-tuning training in step S4 is: ,in The mean square error between the neural network output and the measured current data. The mean squared error between the neural network output and the mechanism label is given. Regularization coefficient; Regularization coefficient A two-stage adaptive strategy is adopted: in the initial stage, a small value within the range of 0.05 to 0.5 is used to allow for hardware bias in the fit; in subsequent stages, the value is adjusted according to... and The actual ratio is automatically adjusted to balance the two losses on the gradient.
[0034] Fine-tuning training employs differentiated learning rates for different layers of the neural network: the learning rate for feature extraction layers closer to the input is multiplied by a scaling factor of 0.1, the learning rate for intermediate hidden layers is multiplied by 0.5, and the output layer uses the baseline learning rate; the baseline learning rate is 1×10. -4 This is lower than the learning rate of 1×10⁻⁶ during pre-training in step S3. - ³.
[0035] Step S5: Embed the model into the simulation software The finely tuned neural network model is embedded into the fault ride-through sub-model interface of the power system simulation software. During simulation, at each integration step, the current terminal voltage, pre-fault steady-state value, operating status flag, recovery timer, and fault type are input into the neural network. The neural network outputs the current active and reactive current reference values, replacing the traditional control option selection and parameter identification process.
[0036] Compared with the prior art, the present invention has the following beneficial effects: (1) The traditional control option selection and parameter identification steps are replaced by the control strategy specifications published by the manufacturers, eliminating the manual selection process. The differences in control strategies between different manufacturers are only reflected in the differences in deterministic mathematical rules. There is no need to redesign and select the control structure for each manufacturer, thus realizing a unified modeling framework across manufacturers.
[0037] (2) The cascaded training strategy, which combines pre-training with synthetic data with fine-tuning using a small amount of real-world data, significantly reduces the reliance on hardware-in-the-loop test data. Synthetic data can uniformly cover all operating conditions in the input space, ensuring basic generalization ability; during the fine-tuning stage, only a small amount of real-world data is needed to correct hardware deviations, and the amount of real-world data required is far lower than that of pure data-driven methods.
[0038] (3) In the fine-tuning stage, a composite loss function is adopted, with the measured data as the main loss term and the mechanism label as the regularization constraint term. This balances the fitting of the actual behavior of the hardware with respect for the manufacturer's design behavior, and avoids overfitting of noise and outliers in the hardware-in-the-loop data.
[0039] (4) Taking a certain type of photovoltaic inverter as an example, the root mean square error of the pre-trained model on the validation set is 0.0056 pu. After fine-tuning with HIL measured data, the error with the real hardware is only 0.0128 pu, which verifies the feasibility and high precision of the method of the present invention.
[0040] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0041] This embodiment takes a certain type of photovoltaic inverter as the object and implements it according to steps S1-S5 in the above overall process as follows.
[0042] (1) Obtain the manufacturer's control strategy The control strategy was extracted from the manufacturer's technical documentation. The low-voltage ride-through entry condition is a positive-sequence voltage at the generator terminals below 0.90 pu, and the exit condition is a voltage above 0.95 pu. The high-voltage ride-through entry condition is a positive-sequence voltage at the generator terminals above 1.10 pu, and the exit condition is a voltage below 1.05 pu. The formula for calculating the reactive current reference value during low-voltage ride-through is as follows: ,in The reactive current coefficient is... Rated current, This represents the reactive current before the fault. The upper limit of reactive current during an asymmetrical fault is... Active current has lower priority than reactive current, and apparent current should not exceed 1.05. The minimum active current limit is 0.1. After the fault is cleared, the reactive current immediately returns to zero, and the active current ramps back to pre-fault levels at a rate of 0.5 pu / s. The reference value for reactive current during high-speed operation is... The active power maintains the power before the fault, and the high-voltage recovery is completed instantaneously.
[0043] (2) Transformation of deterministic mathematical rules The above strategy is written as a deterministic mathematical function. The function input is the terminal voltage amplitude. Active power before the fault reactive power before the fault Active current before the fault reactive current before the fault Fault type (symmetric or asymmetric), cumulative recovery time The function outputs a Boolean flag indicating whether the system is in the recovery phase, along with the previous active current Ip_prev, reactive current Iq_prev, and simulation step size ts. The function outputs the current reference values for active current Ip and reactive current Iq. The state machine defines five states: Normal (flag=0), Undervoltage (flag=-2), Undervoltage Recovery (flag=-1), Undervoltage (flag=2), and Undervoltage Recovery (flag=1). State transitions are determined by comparing the voltage amplitude with a threshold value and assessing the degree of power recovery.
[0044] (3) Synthetic data generation and pre-training 382 virtual operating conditions were generated in the input space (terminal voltage Ut: 0.20 to 0.85 pu and 1.15 to 1.30 pu, pre-fault active power P0: 0.1 to 1.0 pu, fault types including symmetrical and asymmetrical). A time-domain voltage profile was constructed for each condition: the first 0.5s was the normal voltage of 1.0 pu, 0.5s to 1.5s was the fault voltage (dropping to or rising to the test value), and after 1.5s it recovered to 1.0 pu, with a total simulation duration of 4.5s and a step size of 1ms. A state machine and current command function were run at each time step to generate a synthetic dataset containing 10-dimensional input features and 2-dimensional output labels, totaling 1,413,400 samples. A shallow feedforward neural network was constructed: an input layer of 10 nodes, hidden layers of 32 and 16 nodes (activation function LeakyReLU, slope 0.01), and an output layer of 2 nodes. The pre-trained model was trained for 500 epochs using the mean squared error (MSE) as the loss function, the Adam optimizer, a learning rate of 0.001 (halving every 200 epochs), and a batch size of 1024. The MSE of the pre-trained model on the validation set was 0.0056 pu.
[0045] (4) Fine-tuning of hardware-in-the-loop measured data Thirty-six sets of hardware-in-the-loop test data for this type of equipment were acquired, covering eight operating condition combinations: three-phase and two-phase faults, low power (approximately 0.2 pu) and high power (approximately 0.9 pu), voltage drop depth of 0.0 to 0.9 pu, and voltage rise of 1.2 to 1.3 pu. The 36 sets of data were evenly divided into 28 training sets and 8 validation sets according to the operating conditions.
[0046] Mechanism labels are generated time-by-time from the measured data using the deterministic mathematical rules of step (2). Fine-tuning is performed using the pre-trained model parameters from step (3) as initial values. The composite loss function is... ,in The mean square error between the neural network output and the measured current is given. The mean squared error between the neural network output and the mechanism label is given. For adaptive regularization coefficients: initial stage Subsequent stages according to and The learning rate is automatically adjusted. A layer-specific learning rate is used (0.1x for feature extraction layers, 0.5x for intermediate hidden layers, and 1.0x for the output layer), with a base learning rate of 1e-4. Training is conducted for 200 epochs with an early stopping strategy. After fine-tuning, the model's root mean square error (PU) on the validation set compared to the measured data is 0.0128 PU, a 15.8% improvement over the pre-trained model (0.0152 PU) and a 66.4% improvement over the pure mechanism label model (0.0381 PU).
[0047] (5) Model embedding simulation software The finely tuned neural network model is embedded into the power system simulation software as a dynamic link library or interface function. During simulation, at each integration step, the current terminal voltage, pre-fault steady-state value, operating status flag, recovery timer, and fault type are input into the neural network. The neural network outputs the current active and reactive current reference values, directly replacing the original control option selection and parameter identification modules in simulation software such as PSASP.
[0048] To address the dual bottlenecks of existing technologies, such as the inability of pure mechanistic methods to be transferred across manufacturers and the high demand for measured data in pure data-driven methods, this invention replaces traditional selection and identification with manufacturer-disclosed control strategy descriptions, significantly reduces the demand for measured data by using synthetic data pre-training, and balances accuracy and generalization by using composite loss fine-tuning. Thus, it achieves cross-manufacturer unified, low data dependency, high accuracy, and generalizable fault traversal modeling with only manufacturer-disclosed strategy descriptions and a small amount of hardware-in-the-loop measured data.
[0049] This invention also discloses a mechanism-guided, data-driven new energy fault ride-through modeling system, comprising an interconnected memory and a processor. The memory stores a computer program, which, when run by the processor, executes the steps of the method described above. The system of this invention corresponds to the method described above and also possesses the advantages described therein.
[0050] The present invention can implement all or part of the processes in the methods of the above embodiments, or it can be implemented by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium includes: any entity or device capable of carrying computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. The memory is used to store computer programs and / or modules. The processor implements various functions by running or executing the computer programs and / or modules stored in the memory, and by calling data stored in the memory. The memory may include high-speed random access memory, as well as non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital (SD) cards, flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0051] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should be considered within the scope of protection of the present invention.
Claims
1. A mechanism-guided, data-driven method for fault ride-through modeling of new energy sources, characterized in that, Including the following steps: S1. Obtain the fault ride-through control strategy specification document from the new energy equipment manufacturer, and extract the logic rules and parameters of fault ride-through control from the specification document; S2, transforming logical rules and parameters into deterministic mathematical functions; the deterministic mathematical functions are deterministic mappings with all parameters known, and do not contain parameters to be identified; S3: Generate multiple virtual operating conditions by uniformly sampling in the input space; for each virtual operating condition, generate a corresponding synthetic dataset through a deterministic mathematical function; train a neural network based on the synthetic dataset to obtain a pre-trained model; S4. Obtain measured data from hardware-in-the-loop testing or field experiments; use the parameters of the pre-trained model as initial values, take the measured data as the main optimization target, and use the mechanism label generated from the measured data based on deterministic mathematical functions as a regularization constraint to fine-tune the neural network and obtain the fine-tuned model. S5, embed the fine-tuned model into the fault ride-through sub-model interface of the power system simulation software; In each integral step of the simulation run, the relevant state variables at the current moment are input into the fine-tuned model, and the fine-tuned model outputs the active current reference value and reactive current reference value at the current moment, in order to replace the traditional control option selection and parameter identification process.
2. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 1, characterized in that, The logic rules and parameters for fault ride-through control extracted in step S1 include: entry and exit thresholds for low voltage ride-through (LVRT) and high voltage ride-through (HVRT), calculation formulas for reference values of active and reactive current during the fault period and their corresponding coefficients, handling rules for asymmetrical faults, and active and reactive power recovery logic after fault clearance.
3. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 2, characterized in that, In step S2, the deterministic mathematical function includes a current command calculation function and a running state machine function; The inputs to the current command calculation function include the terminal voltage, the power before the fault, and the fault type, and the outputs include active current reference values and reactive current reference values. The operating state machine function switches between five operating states—normal operation, low voltage ride-through, low voltage ride-through recovery, high voltage ride-through, and high voltage ride-through recovery—based on the comparison between the terminal voltage amplitude and the threshold and the determination of the power recovery degree. It also automatically marks the operating state flag and the cumulative recovery phase time at each moment.
4. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 3, characterized in that, In step S3, the input space includes the terminal voltage amplitude, the active power before the fault, and the fault type; For each virtual operating condition, a time-domain voltage profile is constructed, comprising three stages: the pre-fault steady-state stage, the fault duration stage, and the post-fault recovery stage. Each moment in the time-domain voltage profile is processed by the running state machine function and current command calculation function in step S2 to generate corresponding input features and current labels, forming a synthetic dataset.
5. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 4, characterized in that, In step S3, the neural network is a shallow feedforward neural network, including an input layer, a first hidden layer, a second hidden layer, and an output layer; the first hidden layer is a fully connected layer with 32 nodes, the second hidden layer is a fully connected layer with 16 nodes, and the activation function of both hidden layers is a linear rectification function with leakage; the output layer is a fully connected layer with 2 nodes, which outputs active current reference values and reactive current reference values respectively; the output layer is followed by a physical limiting layer to constrain the output to within the hardware capacity boundary of the device.
6. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 5, characterized in that, In step S3, the input features are 10-dimensional feature vectors, including: current terminal voltage, active power before the fault, reactive power before the fault, active current before the fault, reactive current before the fault, current operating status flag, recovery phase timer, fault type, active current value at the previous moment, and reactive current value at the previous moment; wherein, by introducing the active current value and reactive current value at the previous moment, the shallow feedforward neural network fits the differential equation of the current increment rather than the absolute current trajectory, so as to achieve cross-operating condition generalization.
7. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 6, characterized in that, In step S4, the composite loss function used in the fine-tuning training is: in, The mean square error between the output of the fine-tuned model and the measured current data is... The mean square error between the output of the fine-tuned model and the mechanism label is... The regularization coefficient is... A two-stage adaptive strategy is adopted: in the initial stage, a small value within the range of 0.05 to 0.5 is used to allow for model fitting of hardware bias; in subsequent stages, the value is adjusted according to... and The actual ratio is automatically adjusted to balance the two losses on the gradient.
8. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 7, characterized in that, In step S4, differentiated learning rates are applied to different layers of the shallow feedforward neural network: the learning rate of the feature extraction layer closest to the input is multiplied by a scaling factor of 0.1, the learning rate of the intermediate hidden layers is multiplied by a scaling factor of 0.5, and the output layer uses the baseline learning rate; the baseline learning rate is... The learning rate is lower than that used in the pre-training phase of step S3. .
9. The mechanism-guided, data-driven new energy fault ride-through modeling method according to claim 8, characterized in that, In step S5, the fine-tuned model is embedded into the power system simulation software in the form of a dynamic link library or an interface function. The relevant state quantities input into the fine-tuned model in each integration step include: the terminal voltage at the current moment, the steady-state value before the fault, the operating status flag, the recovery timer, and the fault type; After fine-tuning, the active current reference values and reactive current reference values output by the model directly replace the original control option selection and parameter identification process in the power system simulation software.
10. A mechanism-guided, data-driven new energy fault ride-through modeling system, comprising an interconnected memory and a processor, wherein the memory stores a computer program, characterized in that, The computer program, when run by a processor, performs the steps of the method as described in any one of claims 1-9.
