Wind farm equivalent parameter identification method and system based on b-pinn

By using the B-PINN-based method, equivalent turbine clusters and physical breakpoint decoupling are performed using measured wind farm data. Combined with numerical rapid optimization and automatic differentiation mechanisms, a continuous-time state network is constructed for two-stage optimization. This solves the difficulty of identifying equivalent wind farm models in high-dimensional nonlinear parameter spaces and achieves efficient and accurate parameter quantification and uncertainty assessment.

CN123159086APending Publication Date: 2026-11-24SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611293594.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

Smart Images

  • Figure CN123159086A_ABST
    Figure CN123159086A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for identifying equivalent parameters of wind farms based on B-PINN, relating to the field of power system modeling and simulation technology. The method includes the following steps: acquiring measured high-frequency grid-connected operation data of the wind farm; dividing the equivalent generator group according to the high-frequency grid-connected operation data and performing physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling; numerically optimizing the independent low-dimensional subspaces using a numerical rapid optimization method to determine prior distribution anchor points; constructing a continuous-time state Bayesian physical information neural network based on an automatic differentiation mechanism; and using the Bayesian physical information neural network to perform a two-stage joint optimization of the prior distribution anchor points based on evidence lower bounds through variational inference to obtain the expected mean of the equivalent parameters with confidence intervals. This invention effectively improves the accuracy of parameter identification for complex nonlinear wind farm equivalent models and achieves efficient and scientific quantitative assessment of parameter uncertainty.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system modeling and simulation technology, and in particular to a method and system for identifying equivalent parameters of wind farms based on B-PINN. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] The frequency regulation control model of a wind turbine includes several key equivalent parameters, such as the droop control coefficient, virtual inertia coefficient, inertia time constant, filter time constant, and pitch recovery gain. These parameters directly determine the simulation fidelity of the model. Therefore, efficient and accurate identification of wind farm equivalent parameters has become a core technology in this field.

[0004] However, in the process of characterizing the dynamic behavior of wind farms, the high-dimensional nonlinear parameter space of existing wind farm equivalent models can easily lead to local optima in the identification process, which is time-consuming. Furthermore, the quantification capabilities of the uncertainty of the identification parameters vary among different models, making it difficult to meet the power system's requirements for evaluating the confidence of simulation models. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the present invention aims to provide an equivalent parameter identification method and system based on Bayesian Physics-Informed Neural Network (B-PINN), which effectively improves the accuracy of parameter identification for complex nonlinear wind farm equivalent models, eliminates discrete phase drift and integral accumulation errors, and achieves efficient and scientific quantitative evaluation of parameter uncertainty.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solution: The first aspect of this invention provides a method for identifying equivalent parameters of wind farms based on B-PINN, comprising the following steps: Obtain measured high-frequency grid-connected operation data of wind farms, divide the equivalent turbine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling; Numerical optimization of independent low-dimensional subspaces is performed using a numerical rapid optimization method to determine prior distribution anchor points. A Bayesian physical information neural network based on an automatic differentiation mechanism is constructed for continuous-time states. A two-stage joint optimization method using variational inference is employed to optimize the prior distribution anchor points based on the lower bound of evidence using a Bayesian physical information neural network. This yields the expected mean of the equivalent parameters with confidence intervals. The first stage involves deterministic inversion, where Gaussian random sampling and relative entropy penalties are temporarily masked. The network weights and physical mean parameters are guided to converge to the vicinity of the true physical boundary by minimizing the reconstruction error and ordinary differential physical residuals of the observed data. The second stage is the Bayesian variational inference stage: based on the well-anchored initial values ​​in the first stage, Gaussian reparameterized sampling and KL divergence regularization terms are comprehensively introduced for joint optimization, dynamically updating the mean and logarithmic variance of the parameter probability distribution.

[0007] Furthermore, the measured high-frequency grid-connected operation data of the wind farm includes system frequency deviation, grid-connected active power, and the actual and reference speeds of each wind turbine.

[0008] Furthermore, the specific steps for dividing the equivalent generator group based on high-frequency grid-connected operation data and performing physical breakpoint decoupling are as follows: Based on the operating conditions of the wind turbines, the wind farm is divided into multiple equivalent turbine groups, the capacity weight ratio of each group is determined, and then the active power response deviation of each equivalent turbine group is obtained. Extract intermediate-state physical breakpoint variables from the internal control system and perform dead-zone stripping on the system frequency deviation data.

[0009] Furthermore, the specific steps for numerically optimizing independent low-dimensional subspaces using the numerical rapid optimization method are as follows: For electrical control parameters, backward Euler discretization is adopted, combined with extreme value search and anchored prior. Anchored priors are calculated by reconstructing mechanical delay low-pass filtering and rate limiter for execution and mechanical parameters.

[0010] Furthermore, a Bayesian physical information neural network based on an automatic differentiation mechanism is constructed, which is a multilayer perceptron network with normalized continuous time as a single scalar input. The continuous time is directly mapped to the continuous physical hidden state output of the wind turbine at each time domain through a nonlinear hidden layer. The automatic differentiation mechanism of the deep learning framework is used to solve the exact partial derivatives of each physical hidden state with respect to the continuous time input. Combined with the continuous time physical mechanisms of the wind turbine, such as electrical underpass control, inertial delay smoothing, mechanical pitch control, and rate limiting, physical residual constraints of four ordinary differential equations in the continuous time domain are constructed. These physical residual constraints of four ordinary differential equations are defined as the forward computation graph of the physical residuals of the neural network.

[0011] Furthermore, the specific steps for a two-stage joint optimization of prior distribution anchor points using variational inference based on the lower bound of evidence using a Bayesian physical information neural network are as follows: Define an evidence lower bound loss function that includes adaptive data noise weights, ordinary differential residual loss, and a relative entropy regularization term; The expected mean and logarithmic variance of the parameters are updated by performing a two-stage joint optimization using the momentum optimization algorithm. Finally, the parameter identification set and probability density curve with confidence intervals are quantized and output.

[0012] A second aspect of the present invention provides a wind farm equivalent parameter identification system based on B-PINN, comprising: The multi-source data acquisition and decoupling module is configured to acquire measured high-frequency grid-connected operation data of wind farms, divide the equivalent machine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling. The deterministic prior anchoring module is configured to use numerical rapid optimization methods to numerically optimize independent low-dimensional subspaces and determine prior distribution anchor points. The continuous-state network and ordinary differential physical graph construction module is configured to construct a Bayesian physical information neural network with continuous-time states based on an automatic differentiation mechanism. The end-to-end collaborative inversion module based on variational inference is configured to use a Bayesian physical information neural network to perform a two-stage joint optimization of the prior distribution anchor points based on the lower bound of evidence through variational inference, obtaining the expected mean of the equivalent parameters with confidence intervals. The first stage is to perform deterministic inversion, in which Gaussian random sampling and relative entropy penalty are temporarily masked, and only the reconstruction error of the observed data and the ordinary differential physical residual are minimized to guide the network weights and physical mean parameters to converge to the vicinity of the true physical boundary. The second stage is the Bayesian variational inference stage: on the basis of the well anchored initial values ​​in the first stage, Gaussian reparameterized sampling and KL divergence regularization terms are fully introduced for joint optimization, and the mean and logarithmic variance of the parameter probability distribution are dynamically updated.

[0013] A third aspect of the present invention provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and to execute the steps of the B-PINN-based wind farm equivalent parameter identification method as described in the first aspect of the present invention.

[0014] A fourth aspect of the present invention provides a computer device comprising: A processor, adapted to execute computer programs; A computer-readable storage medium storing a computer program, which, when executed by the processor, implements the wind farm equivalent parameter identification method based on B-PINN as described in the first aspect of the present invention.

[0015] A fifth aspect of the present invention provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in the B-PINN-based wind farm equivalent parameter identification method described in the first aspect of the present invention.

[0016] The above one or more technical solutions have the following beneficial effects: This invention discloses a method and system for identifying equivalent parameters of wind farms based on B-PINN, which greatly improves the identification accuracy through continuous-time state networks and automatic differentiation mechanisms. It abandons the traditional discrete-difference step model and utilizes the automatic differentiation of a deep learning framework to directly extract the residuals of ordinary differential equations in the continuous time domain. By replacing the long-term integral of rotational speed, which easily leads to cumulative drift, with instantaneous partial differential fitting of continuous physical hidden states, it not only completely eliminates discretization truncation distortion but also, combined with a two-stage optimization strategy, achieves a leap in identification speed (reducing it from several hours to seconds), possessing extremely high value for real-time online identification in engineering.

[0017] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of the wind farm equivalent parameter identification method based on B-PINN in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the continuous-time state network architecture and the forward computation graph of the physical residual of the ordinary differential equation in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the dual-track variational inference process based on joint optimization of the lower bound of evidence in Embodiment 1 of the present invention; Figure 4 The parameters in Embodiment 1 of the present invention The distribution of the Bayesian posterior probability density function; Figure 5 The parameters in Embodiment 1 of the present invention The distribution of the Bayesian posterior probability density function; Figure 6 The parameters in Embodiment 1 of the present invention The distribution of the Bayesian posterior probability density function; Figure 7 The parameters in Embodiment 1 of the present invention The distribution of the Bayesian posterior probability density function; Figure 8 The parameters in Embodiment 1 of the present invention The distribution of the Bayesian posterior probability density function; Figure 9 The vertical control coefficient with identification confidence interval (error bar) in Embodiment 1 of the present invention A bar chart comparing the continuous expected mean with the actual physical value; Figure 10 The virtual inertia coefficient with identification confidence interval (error bar) in Embodiment 1 of the present invention A bar chart comparing the continuous expected mean with the actual physical value; Figure 11 The pitch recovery gain with identification confidence interval (error bar) in Embodiment 1 of the present invention A bar chart comparing the continuous expected mean with the actual physical value; Figure 12 The filtering time constant with identification confidence interval (error bar) in Embodiment 1 of the present invention A bar chart comparing the continuous expected mean with the actual physical value; Figure 13 The inertial delay constant with identification confidence interval (error bar) in Embodiment 1 of the present invention A bar chart comparing the continuous expected mean with the actual physical value. Detailed Implementation

[0020] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0021] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof. The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0022] Example 1: Currently, there are two major challenges in applying parameter identification technology to wind farms. First, traditional heuristic optimization algorithms (such as particle swarm optimization and genetic algorithms) or subspace identification methods are prone to getting trapped in local optima when dealing with highly nonlinear elements in wind turbine models, such as dead zones, rate limiters, and hysteresis switches. Furthermore, their computational efficiency is extremely low when faced with high-dimensional parameter coupling optimization. Second, while deep learning methods introduced in recent years (such as the conventional Physical Information Neural Network (PINN)) have strong fitting capabilities, they typically only provide deterministic point estimates of parameters and cannot quantify the uncertainties introduced by observational data noise and model structure. Simultaneously, conventional PINN is prone to gradient vanishing or gradient exploding when dealing with small constants over long time scales (such as extremely small filter time constants) and long-term integral drift of rotational speed, leading to identification results that significantly deviate from the physical truth.

[0023] To address the aforementioned deficiencies in the existing technology, Embodiment 1 of this invention provides a method for identifying equivalent parameters of wind farms based on B-PINN, comprising four major stages: wind farm clustering and equivalent partitioning, deterministic prior precise anchoring, continuous-time physical state network construction, and ordinary differential time-domain variational inference.

[0024] Specifically, this embodiment proposes a B-PINN architecture that integrates discrete dimensionality reduction anchoring and continuous-time variational inference. It accurately extracts physical ordinary differential residuals through an automatic differentiation mechanism, completely eliminating the truncation drift error caused by traditional discrete step size. This includes: extracting internal physical breakpoint variables of the equivalent wind farm cluster to achieve dimensionality reduction and decoupling of the high-dimensional parameter space, and combining this with rapid numerical optimization to obtain a deterministic optimal solution as a prior anchor point for Bayesian inference; constructing a continuous-time state neural network, using an automatic differentiation mechanism to accurately solve the time partial derivatives of the physical hidden states, and establishing a forward computation graph of the physical residuals of the ordinary differential equations in the continuous-time domain; and applying reparameterization techniques to introduce Gaussian sampling, performing a two-stage joint inversion by maximizing the lower bound of evidence including data reconstruction, physical residuals, and relative entropy. This completely eliminates traditional discrete phase shift and integral drift errors, outputting the expected mean of the equivalent parameters with confidence intervals, thus solving the core problem that existing identification methods are prone to local deadlock and lack uncertainty quantification capabilities under strong nonlinear physical constraints.

[0025] like Figure 1 As shown, the specific steps include: Step S1: Obtain measured high-frequency grid-connected operation data of the wind farm, divide the equivalent turbine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling.

[0026] Step S1.1: Obtain measured high-frequency grid-connected operation data of the wind farm.

[0027] In one specific implementation, the measured high-frequency grid-connected operation data of the wind farm in this embodiment includes system frequency deviation. Grid-connected active power and actual speed of each wind turbine With reference speed wait.

[0028] Step S1.2: Divide the equivalent machine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling.

[0029] Step S1.2.1: Extract features based on the operating conditions of the wind turbine units, divide the wind farm into multiple equivalent turbine groups, determine the capacity weight ratio of each turbine group, and then obtain the active power response deviation of each equivalent turbine group.

[0030] In one specific implementation, based on the real-time operating conditions of the wind turbines (wind speed, rotational speed, pitch angle, etc.), a Gaussian Mixture Model (GMM) is used to capture the probability distribution of the aforementioned multi-dimensional operating characteristics. This is combined with the Bayesian Information Criterion (BIC) to adaptively determine the optimal number of equivalent turbine clusters M, thus accurately clustering all wind turbines in the field into M equivalent clusters. Subsequently, the capacity weight ratio of each cluster is calculated. Sum the rated capacities of all wind turbines belonging to the m-th turbine group, divide by the total installed capacity of the entire wind farm; finally, obtain the active power response deviation sequence for each equivalent turbine group. : Sum the real-time active power of all wind turbines in the m-th turbine group, and use the capacity weight of the turbine group. By performing per-unit conversion and deducting the steady-state active power before the grid fault disturbance, a high-precision deviation sequence is obtained to characterize the external active power support characteristics of the generator group. .

[0031] It should be noted that in this embodiment... It is the final output of the entire system to the power grid. Inside the wind turbine, the total active power output of the system includes the maximum power point tracking (MPPT) part and the frequency support additional active power part. The pitch power will affect the active power output through the rotor swing equation. In subsequent steps, it was used to decouple the unmeasurable power within the wind turbine to support the target trajectory. and pitch power target trajectory This is specifically reflected in the calculation of the anchored prior in step S22 and the calculation of the reconstructed mean square error in step S41.

[0032] Among them, power supports the target trajectory Deviation of active power measured at the actual grid connection point of the wind turbine and maximum power point tracking benchmark The total active power output of the wind turbine is equal to the sum of the outputs of all its internal control modules. The physical relationship is as follows: Total active power deviation = Support power + MPPT power - 1.0.

[0033] By rearranging the terms, the true support power trajectory hidden inside the wind turbine can be deduced: .

[0034] In subsequent steps, the network will predict the support power. When calculating the mean square error, it is made To approach For the goal.

[0035] And the target trajectory of pitch power It originates from the differential of the actual rotor speed of the wind turbine and the deviation in active power. It is determined by the rotor sway equation: .

[0036] In the above formula, H represents the rotor inertia time constant; This represents the actual rotor speed deviation. The mechanical power deviation caused by the drop in the pitch control system response frequency (i.e., the target pitch mechanical power trajectory required for reconstruction) ); This represents the measured active power deviation at the grid connection point.

[0037] After shifting the terms, the hidden true pitch power trajectory can be deduced: .

[0038] Step S1.2.2: Extract the intermediate physical breakpoint variables of the internal control system and perform dead zone stripping on the system frequency deviation data.

[0039] In one specific implementation, intermediate physical breakpoint variables such as the frequency modulation command and maximum power point tracking reference value of the internal control system are extracted, and dead zone stripping is performed on the system frequency deviation data to break the strong nonlinear coupling relationship between high-dimensional physical parameters and achieve dimensionality reduction and decoupling of the multi-physical parameter space. Specifically, for each equivalent machine group, intermediate-state physical breakpoint variables are extracted from its control system, including observations of pure frequency modulation commands. Compared with the maximum power point tracking reference value Meanwhile, the system frequency deviation data... Dead zone stripping is performed to obtain the effective frequency deviation signal. : . in, This is the frequency dead zone threshold. This step effectively breaks the strong nonlinear physical coupling between high-dimensional equivalent parameters.

[0040] Step S2: Use the numerical rapid optimization method to numerically optimize the independent low-dimensional subspace and determine the prior distribution anchor point.

[0041] In one specific implementation, to overcome the drawback of variational inference easily getting trapped in local deadlock in high-dimensional nonlinear spaces, this embodiment performs rapid numerical optimization in an independent dimensionality-reduced subspace to obtain the deterministic optimal solution of each equivalent parameter, which is then used as the prior distribution anchor point of the variational Bayesian physical information neural network. Specifically, for electrical control parameters, backward Euler discretization is used combined with extreme value search to anchor the prior, and for execution and mechanical parameters, the prior is anchored by reconstructing mechanical delay low-pass filtering and rate limiter.

[0042] Specifically, the following steps are included: Step S2.1: Discretize the electrical control parameters using the backward Euler method and combine them with extreme value search to anchor the prior.

[0043] Specifically, regarding the electrical sag coefficient Virtual inertia and filter time constant By using the backward Euler method, the continuous frequency derivative is transformed into a discrete algebraic equation. With the mean square error of the pure frequency modulation command as the objective function, a high-precision prior anchor value is obtained by quickly solving the equation using a one-dimensional interval boundary extremum search algorithm (such as the Brent method). .

[0044] More specifically, for those involving filtering time constants The continuous frequency response differential equation is solved using the backward Euler method with time steps. Expanding this, we transform it into a discrete algebraic recurrence equation that depends only on the current and previous states. In setting... After finding the optimal interval, the equivalent frequency derivative sequence is reconstructed using the recursive equation. Subsequently, the goal was to minimize the difference between the predicted frequency modulation command and the pure frequency modulation command observations. The objective function is the mean square error between the two sides. Since, given... Under the premise of including electrical sag factor With virtual inertia The equation can be degenerated into a standard linear least squares problem. Therefore, through this dimensionality reduction and decoupling mechanism, the one-dimensional interval boundary extremum search algorithm only needs to be used in... By optimizing within a one-dimensional space, a high-precision prior anchor value can be quickly and uniquely calculated. and .

[0045] Step S2.2: For the execution and mechanical parameters, the anchor prior is calculated by reconstructing the mechanical delay low-pass filter and rate limiter.

[0046] Rapid anchoring of execution and mechanical parameters. Gaussian smoothing filter is used to adjust the measured fan speed. Differentiation yields the target angular acceleration trajectory; combined with the hysteresis gating sequence inside the wind turbine. Based on the rate limiter dynamics, a power support deviation and pitch mechanical power objective function are constructed. Prior anchor values ​​for the delay constant and pitch gain are obtained through extreme value optimization. and .

[0047] Specifically, firstly, Gaussian smoothing filtering is used to adjust the measured fan speed. High-frequency measurement noise is eliminated, and its derivative is used to obtain a smooth target angular acceleration trajectory. This is done for the execution delay constant. A first-order discrete-time model of inertial delay is constructed, with the objective function being to minimize the mean square error between the predicted active power after delay smoothing and the target support power. The optimal solution is found in one-dimensional space. Regarding pitch gain Combined with hysteresis switching gating sequence By constraining the rate of climb by the boundary rate limiter, a nonlinear algebraic equation including dead zone and amplitude limit is constructed. The objective function is to minimize the deviation between the reconstructed pitch mechanical power and the physical inertial power corresponding to the target angular acceleration. One-dimensional extremum optimization is then performed to obtain the prior anchoring value. .

[0048] Step S3: Construct a continuous-time Bayesian physical information neural network based on the automatic differentiation mechanism.

[0049] In one specific implementation, this embodiment constructs a continuous-time state Bayesian physical information neural network based on an automatic differentiation mechanism. This network is a multilayer perceptron network with normalized continuous time as a single scalar input. Through nonlinear hidden layers, continuous time is directly mapped to the continuous physical hidden state outputs of the wind turbine at each time domain. Utilizing the automatic differentiation mechanism of the deep learning framework, the precise partial derivatives of each physical hidden state with respect to the continuous-time input are solved. Combining this with continuous-time physical mechanisms such as electrical underpass control, inertial delay smoothing, mechanical pitch control, and rate limiting of the wind turbine, physical residual constraints of four ordinary differential equations in the continuous-time domain are constructed. These four ordinary differential equation physical residual constraints are defined as the physical residual forward computation graph of the neural network. The role of this physical residual forward computation graph is to receive the continuous hidden state outputs and calculate the physical compliance error in real time during the network's forward propagation phase, thereby using physical laws to guide the backpropagation update of the network weights.

[0050] Step S3.1: Construct a container for variational inference parameters, initialize the variational inference parameters, and apply the reparameterization technique to introduce random Gaussian noise for sampling and mapping to the physical boundary.

[0051] Specifically, five physical equivalent parameters to be identified are defined. Equivalent parameters refer to the equivalent physical model parameters used to macroscopically characterize the comprehensive dynamic response characteristics of the entire wind turbine cluster, specifically including: electrical sag coefficient. Virtual inertia Filtering time constant Inertial delay constant and pitch recovery gain The five physical isoparameters follow a Gaussian distribution, and the network can be initialized with learnable mean parameters. With log-variance parameter (The minimum value is assigned during initialization and then learned by the neural network), where the mean parameter that the network can learn is assigned the prior distribution anchor value. The initial value; on the other hand, the log-variance parameter Initialize the parameters to a preset, extremely small negative value (e.g., -3.0 or -4.0, to represent the minimal sampling variance in the initial stage). This initialization mechanism ensures that the search space of the parameters in the early stages of Gaussian sampling is strictly limited to the vicinity of the accurate prior anchor point, effectively preventing the network gradient from diverging due to excessive random variance in the early stages of training. Subsequently, standard Gaussian noise is introduced into the forward propagation for reparameterization sampling, and the parameters are mapped to strict physical upper and lower bounds through the Sigmoid activation function, ensuring the differentiability of the physical distribution.

[0052] Step S3.2: Construct in continuous time The neural network takes the input as input and outputs the physical hidden state of the wind turbine.

[0053] Specifically, such as Figure 2 As shown, a normalized continuous-time model is constructed. This is a multilayer perceptron (MLP) state network with a single scalar input. The network uses nonlinear hidden layers to store time... This is directly mapped to the four consecutive hidden state outputs of the wind turbine at this moment. These four hidden states are respectively mapped to key physical variables in the internal control loop of the wind turbine, specifically including: electrical intermediate states characterizing the frequency droop and virtual inertia control process. Characterizing the power support delay state after low-voltage ride-through and dead-zone action. Mechanical pitching state characterizing speed recovery action And the amplitude-limited intermediate state characterizing the boundary constraints of the rate limiter. .

[0054] Step S3.3: Use the automatic differentiation mechanism of the deep learning framework to obtain the accurate partial derivatives of the hidden state with respect to time, and construct the forward computation graph of the physical residuals of the ordinary differential equations in the continuous time domain based on the electrical control, delay smoothing, mechanical pitch and amplitude limiting constraints of the wind turbine.

[0055] Specifically, by leveraging the automatic differentiation mechanism of deep learning frameworks, the hidden states of the network output with respect to time are analyzed. Perform exact differentiation and calculate separately This completely eliminates the discrete phase shift error caused by traditional discretization. Specifically, based on the dynamic computation graph of neural network forward propagation and the chain rule of calculus, the hidden states of the network output with respect to time are directly and analytically calculated at the computer's underlying layer. t The exact partial derivatives are obtained respectively. The effect of this mechanism is that it perfectly replaces the traditional finite difference method, eliminating the need to construct a discrete differential grid, thereby completely eliminating the discrete phase shift error caused by traditional discretization (such as Δt step size) and the cumulative drift caused by long-term integration.

[0056] Subsequently, four continuous-time domain ordinary differential physical residual constraints are constructed. This embodiment embeds the nonlinear dynamic prior knowledge of the wind turbine into the loss function of the neural network in the form of soft constraints by constructing four continuous-time domain ordinary differential physical residual constraints. Its advantage lies in ensuring that the hidden state trajectory output by the network strictly follows the law of conservation of physical energy, providing a stable and directional physical gradient guide for subsequent back-calculation of easily divergent equivalent parameters such as electrical, delay, and mechanical pitch parameters, thereby improving the accuracy of parameter identification under strongly nonlinear conditions.

[0057] Electrical control ordinary differential residual : .

[0058] Delayed smoothing ordinary differential residual : .

[0059] Pitch inertial ordinary differential residual (The inherent mechanical delay execution constant is set to 6.0 seconds): .

[0060] Rate limiting continuous penalty residual : .

[0061] Step S4: Using a Bayesian physical information neural network based on the Evidence Lower Bound (ELBO), perform a two-stage joint optimization of the prior distribution anchor points through variational inference. In the above physical residual constraint formula: The inertial delay constant represents the active power recovery of a wind turbine. The active power of the pure frequency modulation command is calculated and predicted from the network hidden state. To restore gain for pitch control; This represents the saturation limiting function used to simulate the physical rate limiter, which constrains the upper and lower ramp rate boundaries of power variation; This represents the deviation between the actual rotor speed and the nominal speed of the wind turbine at the current moment.

[0062] The expected mean of the equivalent parameters with confidence intervals is obtained through a two-stage joint optimization. The first stage is to perform deterministic inversion. In this stage, Gaussian random sampling and relative entropy (KL divergence) penalties are temporarily masked, and the network weights and physical mean parameters are guided solely by minimizing the reconstruction error of the observed data and the ordinary differential physical residual. The system converges quickly and stably to the vicinity of the real physical boundary; the second stage is the Bayesian variational inference stage: based on the well-anchored initial values ​​in the first stage, Gaussian reparameterization sampling and KL divergence regularization terms are comprehensively introduced for joint optimization, and the mean of the parameter probability distribution is dynamically updated. With log variance This embodiment solves the gradient explosion and mode collapse problems caused by excessive initial random sampling variance when traditional Bayesian networks face strong nonlinear constraints of wind turbines through a two-stage joint optimization. While ensuring physical convergence stability, it achieves accurate quantification of parameter confidence intervals (uncertainty).

[0063] In one specific implementation, such as Figure 3As shown, in this embodiment, the loss function of the continuous-time Bayesian physical information neural network is defined as the lower bound of negative evidence, which includes the mean squared error (MSE) of the reconstruction of the observed data, the physical residual loss of the ordinary differential equation, and the regularization term of the relative entropy (KL divergence). A two-stage joint optimization is performed through a deep learning optimization algorithm. In the early stage, deterministic fine-tuning of the network weights is performed, and in the later stage, the Bayesian sampling inference capability is released to dynamically update the mean and variance of the physical parameter distribution. Finally, the expected mean and probability density distribution of the equivalent parameter identification with a clear confidence interval are output.

[0064] Step S4.1: Define an evidence lower bound loss function that includes adaptive data noise weights, ordinary differential residual loss, and relative entropy regularization term.

[0065] Specifically, in this embodiment, the loss function of continuous-time B-PINN is defined as minimizing the lower bound of negative evidence (i.e., equivalent to maximizing the true posterior probability ELBO). This loss function consists of the observation data reconstruction loss, the sum of the physical residuals of the ordinary differential equations, and the weighted relative entropy between the prior and posterior parameter distributions. The observation data reconstruction loss is calculated by taking the mean squared error (MSE) of the physical curves predicted by the network and the actual physical observation waveforms. The prior distribution originates from the deterministic optimal solution obtained in step S2 (i.e., the high-confidence prior Gaussian distribution constructed based on it), and the posterior distribution originates from the mean and variance distribution of the current parameters dynamically sampled and learned and updated during the variational inference process.

[0066] Step S4.2: Use the momentum optimization algorithm to perform a two-stage joint optimization to update the expected mean and logarithmic variance of the parameters, and finally quantize and output the parameter identification set and probability density curve with confidence interval.

[0067] Specifically, after training convergence, the posterior distribution features of each isostated parameter are extracted. The optimal expected mean of the parameters in the physical space is output. And use variance information to output standard deviation boundaries. This forms the uncertainty interval representing the confidence level of identification. ).

[0068] To better illustrate the superiority of the above method, computational power verification was conducted. Taking high-frequency disturbance recording data from a real wind farm as an example, all wind turbines in the farm were clustered into 5 equivalent turbine groups (C1~C5).

[0069] Extreme value anchoring and initialization: For a given equivalent machine group, through dimensionality reduction decoupling and one-dimensional numerical search, the optimal solution for machine-precision-level analysis in a simplified parameter space is instantly locked and assigned to... Logarithmic variance Initialize to a minimum value (e.g., -3.0) to tighten the early sampling space boundary.

[0070] Collaborative Inversion Training: Time Scalar Normalized inputs are fed into a continuous-state network, and the Adam optimization algorithm is used to simultaneously differentiate and update the network parameters and distribution parameters. The entire process eliminates the need to construct an iterative differential grid, completely avoiding the problems caused by small time constants (such as...). The computational oscillations caused by this.

[0071] Results visualization and quantitative evaluation: After model convergence, the posterior probability density function distribution curves of the five-dimensional physical parameters of each cluster are generated. Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 The Gaussian bell-shaped probability boundaries for the five parameters are shown respectively, with the peak value tightly anchored to the physical truth (dashed line). The width of the distribution quantifies the sensitivity of different parameters to the dynamic response of the system. Figure 9 , Figure 10 , Figure 11 , Figure 12 , Figure 13 The droop control coefficients for each aircraft group are displayed separately. Virtual inertia coefficient Pitch recovery gain Filtering time constant and inertial delay constant The quantitative comparison results are presented. For the identification results of each aircraft group, not only are the expected mean values ​​of parameters with extremely high accuracy (the error is basically within 1%) given, but also non-overlapping black error bars are output. The invention scientifically assessed the parameter uncertainties caused by model observation and structural errors, verifying its high academic value and engineering application potential.

[0072] This invention proposes a continuous-time domain physical inversion architecture that eliminates phase drift and accumulated errors. It breaks through the limitations of traditional discrete-difference equation iteration and time integration, constructing a continuous-state network with time as input. Utilizing the automatic differentiation mechanism of deep learning frameworks, it directly and accurately differentiates the physical state at the derivative level, replacing the traditional finite-difference method and fundamentally eliminating the errors caused by the discretization step size. Phase drift and computational drift caused by long-term integration significantly improve the identification accuracy of complex and highly nonlinear wind power systems.

[0073] This invention employs a dual-track mechanism of "mathematically anchored prior + Bayesian posterior inference" to overcome the network's convergence failure under strongly nonlinear physical constraints. The invention utilizes intermediate-state physical breakpoint variables to reduce the dimensionality of the rugged high-dimensional parameter space. In the early stages of training, a high-speed mathematical solver directly locks a deterministic optimal solution with 0.00% accuracy as the prior anchor point (MAP), which then guides the Bayesian network in variational inference. This design completely solves the industry pain point of traditional B-PINN networks, which, when facing highly nonlinear and discontinuous elements such as dead zones and rate limitations within wind turbines, suffer from local optima or convergence failure due to random Gaussian sampling interference.

[0074] This invention achieves efficient and adaptive uncertainty quantification (UQ) for wind turbine models. It employs variational inference and reparameterization sampling techniques, combined with a two-stage optimization strategy, incorporating KL divergence regularization constraints during the maximization of the lower bound of evidence. The network not only outputs highly fitted posterior mean values ​​of equivalent parameters but also adaptively learns the noise variance of the observed data, outputting a standard deviation and posterior probability density distribution (PDF) with a scientifically probabilistic interpretation. This provides reliable and robust confidence uncertainty boundary support for power system stability margin assessment and day-ahead refined scheduling.

[0075] Example 2: Embodiment 2 of the present invention provides a wind farm equivalent parameter identification system based on B-PINN, comprising: The multi-source data acquisition and decoupling module is configured to acquire measured high-frequency grid-connected operation data of wind farms, divide the equivalent machine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling. The deterministic prior anchoring module is configured to use numerical rapid optimization methods to numerically optimize independent low-dimensional subspaces and determine prior distribution anchor points. The continuous-state network and ordinary differential physical graph construction module is configured to construct a Bayesian physical information neural network with continuous-time states based on an automatic differentiation mechanism. The end-to-end collaborative inversion module based on variational inference is configured to use a Bayesian physical information neural network to perform a two-stage joint optimization of the prior distribution anchor points based on the lower bound of evidence through variational inference, obtaining the expected mean of the equivalent parameters with confidence intervals. The first stage is to perform deterministic inversion, in which Gaussian random sampling and relative entropy penalty are temporarily masked, and only the reconstruction error of the observed data and the ordinary differential physical residual are minimized to guide the network weights and physical mean parameters to converge to the vicinity of the true physical boundary. The second stage is the Bayesian variational inference stage: on the basis of the well anchored initial values ​​in the first stage, Gaussian reparameterized sampling and KL divergence regularization terms are fully introduced for joint optimization, and the mean and logarithmic variance of the parameter probability distribution are dynamically updated.

[0076] Example 3: Embodiment 3 of the present invention provides a computer-readable storage medium storing a computer program adapted for loading by a processor and executing the steps in the wind farm equivalent parameter identification method based on B-PINN as described in Embodiment 1 of the present invention.

[0077] Example 4: Embodiment 4 of the present invention provides a computer device, the device comprising: A processor, adapted to execute computer programs; A computer-readable storage medium storing a computer program, which, when executed by the processor, implements the steps in the wind farm equivalent parameter identification method based on B-PINN as described in Embodiment 1 of the present invention.

[0078] Example 5: Embodiment 5 of the present invention provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in the B-PINN-based wind farm equivalent parameter identification method described in Embodiment 1 of the present invention.

[0079] The steps and methods involved in Examples 2, 3, 4 and 5 above correspond to those in Example 1. For specific implementation methods, please refer to the relevant description section of Example 1.

[0080] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0081] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, an optical medium, or a semiconductor medium, etc.

[0082] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A B-PINN-based equivalent parameter identification method for a wind farm, characterized in that, Includes the following steps: Obtain measured high-frequency grid-connected operation data of wind farms, divide the equivalent turbine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling; Numerical optimization of independent low-dimensional subspaces is performed using a numerical rapid optimization method to determine prior distribution anchor points. A Bayesian physical information neural network based on an automatic differentiation mechanism is constructed for continuous-time states. A two-stage joint optimization method using variational inference is employed to optimize the prior distribution anchor points based on the lower bound of evidence using a Bayesian physical information neural network. This yields the expected mean of the equivalent parameters with confidence intervals. The first stage involves deterministic inversion, where Gaussian random sampling and relative entropy penalties are temporarily masked. The network weights and physical mean parameters are guided to converge to the vicinity of the true physical boundary by minimizing the reconstruction error and ordinary differential physical residuals of the observed data. The second stage is the Bayesian variational inference stage: based on the well-anchored initial values ​​in the first stage, Gaussian reparameterized sampling and KL divergence regularization terms are comprehensively introduced for joint optimization, dynamically updating the mean and logarithmic variance of the parameter probability distribution.

2. The B-PINN-based equivalent parameter identification method for a wind farm according to claim 1, wherein, The measured high-frequency grid-connected operation data of the wind farm includes system frequency deviation, grid-connected active power, and the actual and reference speeds of each wind turbine.

3. The B-PINN-based equivalent parameter identification method for a wind farm according to claim 1, wherein, The specific steps for dividing the equivalent machine group based on high-frequency grid-connected operation data and performing physical breakpoint decoupling are as follows: Based on the operating conditions of the wind turbines, the wind farm is divided into multiple equivalent turbine groups, the capacity weight ratio of each group is determined, and then the active power response deviation of each equivalent turbine group is obtained. Extract intermediate-state physical breakpoint variables from the internal control system and perform dead-zone stripping on the system frequency deviation data.

4. The B-PINN-based equivalent parameter identification method for a wind farm according to claim 1, wherein, The specific steps for numerically optimizing independent low-dimensional subspaces using the numerical rapid optimization method are as follows: For electrical control parameters, backward Euler discretization is adopted, combined with extreme value search and anchored prior. Anchored priors are calculated by reconstructing mechanical delay low-pass filtering and rate limiter for execution and mechanical parameters.

5. The B-PINN-based equivalent parameter identification method for a wind farm according to claim 1, wherein, The Bayesian physical information neural network based on the automatic differentiation mechanism is a multilayer perceptron network with normalized continuous time as a single scalar input. Through nonlinear hidden layers, continuous time is directly mapped to the continuous physical hidden state output of the wind turbine at each time domain. The automatic differentiation mechanism of the deep learning framework is used to solve the exact partial derivatives of each physical hidden state with respect to the continuous time input. Combined with the continuous time physical mechanisms of wind turbine electrical underpass control, inertial delay smoothing, mechanical pitch control and rate limiting, physical residual constraints of four ordinary differential equations in the continuous time domain are constructed. These physical residual constraints of four ordinary differential equations are defined as the forward computation graph of the physical residuals of the neural network.

6. The wind farm equivalent parameter identification method based on B-PINN as described in claim 1, characterized in that, The specific steps of using a Bayesian physical information neural network to perform a two-stage joint optimization of prior distribution anchor points based on evidence lower bounds through variational inference are as follows: Define an evidence lower bound loss function that includes adaptive data noise weights, ordinary differential residual loss, and a relative entropy regularization term; The expected mean and logarithmic variance of the parameters are updated by performing a two-stage joint optimization using the momentum optimization algorithm. Finally, the parameter identification set and probability density curve with confidence intervals are quantized and output.

7. A wind farm equivalent parameter identification system based on B-PINN, characterized in that, include: The multi-source data acquisition and decoupling module is configured to acquire measured high-frequency grid-connected operation data of wind farms, divide the equivalent machine group according to the high-frequency grid-connected operation data, and perform physical breakpoint decoupling to obtain each independent low-dimensional subspace after decoupling. The deterministic prior anchoring module is configured to use numerical rapid optimization methods to numerically optimize independent low-dimensional subspaces and determine prior distribution anchor points. The continuous-state network and ordinary differential physical graph construction module is configured to construct a Bayesian physical information neural network with continuous-time states based on an automatic differentiation mechanism. The end-to-end collaborative inversion module based on variational inference is configured to use a Bayesian physical information neural network to perform a two-stage joint optimization of the prior distribution anchor points based on the lower bound of evidence through variational inference, obtaining the expected mean of the equivalent parameters with confidence intervals. The first stage is to perform deterministic inversion, in which Gaussian random sampling and relative entropy penalty are temporarily masked, and only the reconstruction error of the observed data and the ordinary differential physical residual are minimized to guide the network weights and physical mean parameters to converge to the vicinity of the true physical boundary. The second stage is the Bayesian variational inference stage: on the basis of the well anchored initial values ​​in the first stage, Gaussian reparameterized sampling and KL divergence regularization terms are fully introduced for joint optimization, and the mean and logarithmic variance of the parameter probability distribution are dynamically updated.

8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the wind farm equivalent parameter identification method based on B-PINN as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1-6.

10. A computer device, characterized in that, include: A processor, adapted to execute computer programs; A computer-readable storage medium storing a computer program, which, when executed by the processor, implements the wind farm equivalent parameter identification method based on B-PINN as described in any one of claims 1-6.