Power grid phase estimation method and system based on deep learning and three-phase fusion
By employing deep learning and three-phase fusion methods, a one-dimensional convolutional neural network is used to directly regress the sine and cosine components of the power grid phase. Combined with physical constraints and confidence levels for weighted fusion, this solves the problem of insufficient anti-interference capability in existing power grid phase detection technologies and achieves high-precision and fast phase estimation.
Patent Information
- Application Number
- CN202611365695.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
Smart Images

Figure CN123176331A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power grid signal processing technology, and specifically relates to a power grid phase estimation method and system based on deep learning and three-phase fusion. Background Technology
[0002] Accurate estimation of grid phase is a core prerequisite for grid-connected power generation, power system stability control, and fault detection. In real-world complex power grid environments, due to load fluctuations, line faults, and the widespread integration of nonlinear devices, three-phase power signals are often accompanied by severe electromagnetic noise, harmonic interference, and three-phase imbalance distortions. How to rapidly and accurately extract grid phase under extremely low signal-to-noise ratio (SNR) and harsh operating conditions has always been a pressing technical challenge in this field.
[0003] Currently, existing power grid phase detection technologies largely rely on traditional signal processing, mathematical coordinate transformation, or state estimation algorithms. For example, a common industrial approach uses phase-locked loop (PLL) technology. Korean patent application KR20210047622A discloses a power grid phase detection method that converts three-phase grid voltages into two-phase rectangular coordinates and two-phase synchronous coordinates, and uses a proportional-integral (PI) controller to track the phase in a closed loop. However, this traditional PLL method, based on pure mathematical coordinate transformation and feedback regulation, often struggles to obtain accurate voltage amplitudes when the grid experiences low-voltage ride-through (LVRT) or other faults causing voltage drops, leading to a significant decrease in the dynamic response speed and accuracy of phase tracking. To compensate for this deficiency, while existing technologies attempt to assist calculations by introducing external interference observers or parameter estimation matrices, these methods are severely limited by sensor sampling noise and are prone to large phase delays and errors during sudden grid faults, failing to guarantee high-frequency real-time response.
[0004] Another representative advanced approach employs nonlinear filtering and state tracking algorithms. For example, US Patent Application No. US20120150468A1 discloses a method for estimating and tracking the frequency and phase angle of a three-phase power grid voltage signal. This method separates the three-phase signals using the Clarke transform and constructs an Extended Kalman Filter (EKF), using orthogonal sine and cosine signals as state variables for tracking. While this method effectively addresses voltage imbalance, the EKF requires pre-establishing extremely complex nonlinear state equations for the signals, including state derivations such as the Jacobian matrix and the Riccati equation. Such methods not only have extremely high computational complexity for a single iteration but also heavily rely on the accuracy of the system's mathematical model and prior assumptions about the system noise and observation noise covariance matrices. If the distribution of sudden noise in the actual power grid deviates from the pre-defined theoretical model, the convergence of the filter will be compromised, leading to phase estimation divergence.
[0005] In summary, existing phase estimation methods generally suffer from technical bottlenecks such as complex mathematical models, poor adaptability to nonlinear distortions, and insufficient anti-interference capabilities under extreme operating conditions. Furthermore, traditional methods often struggle to overcome the periodic abrupt changes at phase boundaries when dealing with phase angles. Therefore, there is an urgent need for a novel phase estimation method that does not rely on complex physical equations for modeling, can adaptively extract features directly from massive time-series waveforms, and can perfectly integrate the physical symmetry constraints of the three phases of the power grid, in order to completely solve the problem of high-precision phase tracking in complex power grid environments. Summary of the Invention
[0006] This invention provides a power grid phase estimation method and system based on deep learning and three-phase fusion. By introducing a one-dimensional convolutional neural network to directly regress the continuous sine and cosine components of the three-phase phase, and combining the unit circle physical constraint residual and the three-phase physical symmetry to perform a weighted cross-fusion estimation with confidence, this invention aims to solve the problems of poor anti-interference ability, complex mathematical modeling, and easy periodic boundary abruptness leading to model divergence in existing phase detection technologies under harsh power grid conditions such as low signal-to-noise ratio and single-phase faults, as well as the problems of model divergence caused by direct prediction of discrete phase angles.
[0007] To address the aforementioned technical problems, this invention proposes a power grid phase estimation method based on deep learning and three-phase fusion, comprising the following steps: Acquire the three-phase time-series signal of the power grid, calculate the average power of the complete time-series sampling points of each phase signal, and use the average power to normalize the three-phase time-series signal; The normalized three-phase timing signal is input into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases. The arctangent operation is performed on the sinusoidal and cosine components to restore the predicted initial phase values of the three phases. Obtain the corresponding confidence levels; The predicted values are weighted and fused with the corresponding confidence levels to obtain the final phase estimate of one phase, and the final phase estimates of the other two phases are derived based on the three-phase physical symmetry.
[0008] Preferably, the normalization processing method specifically includes: Calculate the average power of the three-phase signals of the power grid respectively. :
[0009] The three-phase signals are normalized using the following formula:
[0010] Where N is the total number of sampling points, For any phase The original signal value at the i-th sampling point for The corresponding original time-series signal vector, For normalized Phase signal vector, .
[0011] Preferably, the pre-trained neural network model is a one-dimensional convolutional neural network, and the network structure includes: The input layer is used to receive the normalized three-phase timing signal of length N, with an input dimension of (N,3). The feature extraction network consists of a first convolutional layer, a second convolutional layer, and a third convolutional layer connected in sequence, all of which use the ReLU activation function; A fully connected network, comprising a flattened layer and a first fully connected layer, a second fully connected layer, and a linear output layer connected in sequence; The first, second, and third convolutional layers have 64, 128, and 128 channels respectively, and the kernel sizes are 5, 5, and 3 respectively. The output dimensions of the first and second fully connected layers are 256 and 128 respectively, and both are configured with Dropout regularization. The linear output layer has an output dimension of 6 and is used to output the sine and cosine components corresponding to the three phases.
[0012] Preferably, the confidence level is obtained by obtaining a preset fixed constant as the corresponding confidence level.
[0013] Preferably, the method for obtaining the confidence level is as follows: Based on the corresponding sine and cosine components output by the model, the residuals deviating from the physical constraint of the unit circle are calculated, and corresponding confidence levels are generated according to the residuals. The smaller the residual, the greater the corresponding confidence level.
[0014] Preferably, the method for calculating the final phase estimate of one of the phases is as follows:
[0015] The final phase estimates for the remaining two items are calculated as follows:
[0016]
[0017] In the formula, , , These are the initial phase prediction values of phases A, B, and C obtained by arctangent operation. , , These are the confidence levels corresponding to phases A, B, and C, respectively. , , These are the final phase estimates for phases A, B, and C, respectively.
[0018] Preferably, the training dataset for the pre-trained neural network model is generated through the following steps: The initial phase is acquired at equal intervals within a preset range, and the signal-to-noise ratio is acquired within a preset decibel range, using the formula... Signal-to-noise ratio in decibels Convert to linear true ratio ; Based on the initial phase and the true ratio, a three-phase training signal with noise simulation is directly generated; The true sine and true cosine values corresponding to the initial phase are obtained as regression labels for model training, and the three-phase training signals are combined to form a labeled dataset.
[0019] A second aspect of the invention also proposes a power grid phase estimation system based on deep learning and three-phase fusion, the system being used to implement the method as described in the first aspect of the invention, comprising: The signal acquisition and preprocessing module is used to acquire the three-phase time-series signal of the power grid, calculate the average power of the complete time-series sampling points of each phase signal, and use the average power to normalize the three-phase time-series signal; The model prediction module is used to input the normalized three-phase time-series signal into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases. The phase restoration module is used to perform arctangent operation on the sinusoidal and cosine components to restore the three-phase initial phase prediction values. The confidence level acquisition module is used to acquire the corresponding confidence levels. The fusion estimation module is used to perform weighted fusion calculation by combining the predicted value with the corresponding confidence level to obtain the final phase estimate of one phase, and derive the final phase estimates of the other two phases based on the three-phase physical symmetry.
[0020] A third aspect of the present invention also provides an electronic device comprising: One or more processors; Memory, used to store one or more computer programs; One or more computer programs stored in the memory are executed by the one or more processors, causing the one or more processors to implement the phase estimation method as described in the first aspect of the invention.
[0021] In a fourth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the phase estimation method as described in the first aspect of the present invention.
[0022] Compared with the prior art, the present invention has the following technical effects: 1. The phase estimation method proposed in this invention independently predicts the three-phase components through a neural network and uses the physical symmetry of the three phases for cross-redundancy error correction. This eliminates the dependence of traditional phase-locked loops on complex mathematical models and harsh operating conditions, and achieves high-precision, low-delay, and robust phase estimation in extremely complex power grid environments such as low signal-to-noise ratio and asymmetric distortion.
[0023] 2. The phase estimation method proposed in this invention directly outputs the sine and cosine components of the three-phase phases through the neural network, rather than directly predicting the discrete phase angles. This avoids the problem of periodic abrupt changes in the phase angle at the boundary between 0 and 2π, eliminates the gradient oscillations caused by this, and ensures fast and smooth convergence of the model during training.
[0024] 3. The phase estimation method proposed in this invention utilizes the physical constraint that the sum of the squares of the true sine and cosine is 1. By calculating the residual of the output of the linear layer without activation function deviating from this physical constraint, it achieves unsupervised adaptive evaluation of single-phase confidence. When encountering strong single-phase interference or grounding faults, it can automatically and exponentially decay the distortion through fusion weights, thereby improving the fault tolerance of the system. Attached Figure Description
[0025] Figure 1 This is a schematic flowchart of the phase estimation method described in this invention; Figure 2 This is a schematic diagram of the model training and estimation process provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the network model structure provided in an embodiment of the present invention; Figure 4 This is a graph showing the decrease in loss value during the model training phase provided in this embodiment of the invention; Figure 5 These are mean square error curves for different signal-to-noise ratios provided in embodiments of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with specific embodiments of the present application and with reference to the accompanying drawings.
[0027] Example 1 This embodiment presents a power grid phase estimation method based on deep learning and three-phase fusion, such as... Figure 1 , 2 As shown, it includes the following steps one through five: Step 1: Obtain the three-phase time sequence signal of the power grid, calculate the average power of the complete time sequence sampling points of each phase signal, and use the average power to normalize the three-phase time sequence signal.
[0028] In practical implementation, the input three-phase power grid signal is first sampled at N points using a preset sampling rate f to obtain the three-phase time-series signal of the power grid. To eliminate the interference caused by drastic fluctuations in signal amplitude under different real-world power grid operating conditions on subsequent feature extraction by the deep learning model, the large-scale original signal needs to be compressed to a uniform scale suitable for neural network regression. In this step, the normalization processing method specifically includes: Calculate the average power of the three-phase signals of the power grid respectively. :
[0029] The three-phase signals are normalized using the following formula:
[0030] Where N is the total number of sampling points, For any phase The original signal value at the i-th sampling point for The corresponding original time-series signal vector, For normalized Phase signal vector, , representing the A, B, and C phases of the power grid.
[0031] Taking a set of actual power grid signals as an example, the local slice values of the unprocessed original signal vector are: Phase A original signal vector ; B-phase original signal vector ; C-phase original signal vector .
[0032] Substituting the original sampled values into the average power calculation and square root normalization formula, the specific values used for inputting into the deep neural network are correspondingly transformed as follows: Normalized A-phase signal vector ; Normalized B-phase signal vector ; Normalized C-phase signal vector .
[0033] Step 2: Input the normalized three-phase timing signal into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases.
[0034] The pre-trained neural network model is a one-dimensional convolutional neural network, and the network structure includes: The input layer is used to receive the normalized three-phase timing signal of length N, with an input dimension of (N,3). The feature extraction network consists of a first convolutional layer, a second convolutional layer, and a third convolutional layer connected in sequence, all of which use the ReLU activation function; A fully connected network, comprising a flattened layer and a first fully connected layer, a second fully connected layer, and a linear output layer connected in sequence; The first, second, and third convolutional layers have 64, 128, and 128 channels respectively, and the kernel sizes are 5, 5, and 3 respectively. The output dimensions of the first and second fully connected layers are 256 and 128 respectively, and both are configured with Dropout regularization. The linear output layer has an output dimension of 6 and is used to output the sine and cosine components corresponding to the three phases.
[0035] Reference Figure 3 In this embodiment, the normalized signal length N received by the input layer is preferably 1000, and the sampling rate f is preferably 1000Hz. The normalized three-phase timing signal vector... , , The features are combined and concatenated along the channel dimension to form a tensor input feature extraction network with a dimension of (1000, 3). The first convolutional layer (Conv1d) contains 64 channels, with a kernel size of 5 and a stride of 1, and uses the ReLU function for activation to extract shallow temporal features. The second convolutional layer (Conv1d) contains 128 channels, with a kernel size of 5, and uses the ReLU function for activation to further extract deep temporal dependencies. The third convolutional layer (Conv1d) contains 128 channels, with a kernel size of 3, and uses the ReLU function for activation. The feature map after three convolutional layers enters the flatten layer and is flattened into a one-dimensional feature vector. It is then fed into the first fully connected layer (Dense, 256-dimensional, ReLU activated, with Dropout regularization with a dropout rate of p=0.1 to prevent overfitting) and the second fully connected layer (Dense, 128-dimensional, ReLU activated, with Dropout with a dropout rate of p=0.1). Finally, a 6-dimensional linear output layer (Linear) without an activation function is connected, directly using linear regression to output the predicted sine and cosine components corresponding to phases A, B, and C. The output tensor structure is represented as follows: .
[0036] To ensure that the model can accurately capture the physical characteristics of the three-phase signal under noisy conditions, the training dataset of the pre-trained neural network model is generated through the following steps S21 to S23: S21: Obtain the initial phase at equal intervals within a preset range, and obtain the signal-to-noise ratio within a preset decibel range, using the formula... Signal-to-noise ratio in decibels Convert to linear true ratio .
[0037] In practical implementation, the initial phase is... The signal-to-noise ratio is taken at equal intervals P times within the range, e.g., P=5000. Within a preset decibel range of [-4dB, 10dB], select Q values at equal intervals. For example, if Q=8, then sequentially select -4dB, -2dB, 0dB, 2dB, 4dB, 6dB, 8dB, and 10dB. Before generating Gaussian white noise, first use the formula... Convert the logarithmic signal-to-noise ratio in decibels to the linear power ratio. This ensures that the mathematical operations are consistent with the physical meaning.
[0038] S22: Based on the initial phase and the true ratio, directly generate a three-phase training signal with noise simulation.
[0039] For each selected initial phase The ratio of linear signal-to-noise ratio An ideal three-phase sinusoidal signal is generated using the fundamental function, and based on the linear signal-to-noise ratio... Calculate the required noise power (wherein the sinusoidal signal power) This process generates a standard simulated three-phase signal containing Gaussian white noise. Since the amplitude of an ideal sine wave is strictly limited to the range [-1, 1], its numerical scale naturally matches the input range of a neural network, so no power normalization is required after generation.
[0040] S23: Obtain the true sine and true cosine values corresponding to the initial phase as regression labels for model training, and combine them with the three-phase training signals to form a labeled dataset.
[0041] To avoid directly regressing the periodic phase angle values at the boundaries (such as 0 and 1), To address the issues of gradient explosion or oscillating non-convergence that may occur at certain points, this embodiment designs the labels of the training set as a combination of the sine and cosine components corresponding to the initial phase during the labeling stage. In other words, it constructs pairs of regression labels for each group of training samples. For each phase and signal-to-noise ratio combination, the generation is repeated M times, such as M=5, to finally construct a training dataset with a size of P×Q×M labeled data. As shown in the numerical example above, the final P×Q×M=5000×8×5=200000.
[0042] During the model training phase, the constructed dataset is input into a one-dimensional convolutional neural network. Mean Squared Error (MSE) is used as the loss function, and the Adam optimizer is used for iterative training. The maximum number of iterations is set to 60, and an early stopping mechanism is implemented to monitor the validation set loss in real time. Training automatically terminates and the optimal weight model H is loaded when the validation loss no longer decreases after 8 consecutive iterations. The entire model training and inference process can run quickly on conventional hardware and software platforms such as NVIDIA RTX 1660 GPUs, demonstrating high engineering practicality.
[0043] Reference Figure 4 In the actual training process of this embodiment, the regression labels are designed as continuous sine and cosine components, which can avoid gradient oscillations caused by directly regressing periodic angle values. Figure 4As can be seen, the model's loss value exhibits a rapid and smooth decreasing trend in the early stages of training (e.g., within the first 10 epochs); in the later stages of training, the validation set loss (val_loss) closely matches and converges synchronously with the training set loss (train_loss), without any obvious overfitting. When the early stopping mechanism is triggered, the model automatically terminates training, at which point the minimum loss value has converged to a very small order of magnitude, fully demonstrating the effectiveness and trainability of the network structure and training data generation method described in this invention.
[0044] Step 3: Perform arctangent operation on the sine and cosine components to restore the predicted initial phase values of the three phases.
[0045] Since the neural network directly predicts the continuous physical quantity corresponding to the phase of the power grid in step two, this method of regression through sine and cosine effectively avoids the problem of periodic boundary mutations caused when directly predicting angle values, thus ensuring the correctness of training gradient descent.
[0046] After obtaining the 6-dimensional prediction tensor output by the linear output layer of the model. Next, this step uses the arctangent function to perform mathematical decoding operations on the sine and cosine prediction components of each phase. In specific implementation, the four-quadrant arctangent function atan2 is preferred to ensure that the restored angle can be accurately mapped to the correct quadrant interval.
[0047] Through the above calculations, the true phase angles of each phase are obtained from the regression output of the neural network, and the initial phase prediction value of phase A is obtained respectively. Predicted initial phase value of phase B and the initial phase prediction value of phase C .
[0048] Based on the specific power grid signal acquisition data in step one above, and considering the normalized three-phase time-series signal of the input model, after forward inference through a one-dimensional convolutional neural network and reconstruction via arctangent decoding, the three initial phase prediction values actually output by the model in this embodiment are as follows: Initial phase prediction value of phase A ; Predicted initial phase value of phase B ; C-phase initial phase prediction value .
[0049] Step 4: Obtain the corresponding confidence levels.
[0050] In this embodiment, the confidence level is obtained by obtaining a preset fixed constant as the corresponding confidence level.
[0051] In one implementation, to reduce system complexity, the fusion weights of each phase are pre-set to be the same, that is, the confidence levels of phases A, B, and C can all be uniformly set to a preset constant 1. = = =1, to achieve equal-weighted fusion of three-phase prediction results. This means that in a conventional power grid environment, the three-phase prediction results are assigned completely consistent weights and directly undergo proportional physical fusion.
[0052] In another implementation, a weighted mapping table can be established by statistically analyzing the correspondence between the three-phase signal quality and phase estimation error under different operating conditions based on historical power grid operation data.
[0053] In another embodiment of the present invention, the method for obtaining the confidence level is as follows: Based on the corresponding sine and cosine components output by the model, the residuals deviating from the physical constraint of the unit circle are calculated, and corresponding confidence levels are generated according to the residuals. The smaller the residual, the greater the corresponding confidence level.
[0054] The core logic of this method lies in the fact that the sinusoidal and cosine components of the actual power grid phase strictly satisfy the mathematical constraint of a unit circle whose sum of squares is 1, i.e. Since the output layer of the one-dimensional convolutional neural network used in this embodiment is a linear layer without specific activation function constraints, when the model's fitting to a strongly disturbed signal is uncertain, or the feature extraction quality is poor, the sum of squares of its directly output sine and cosine components will deviate significantly from 1. Therefore, this physical constraint residual can be used for unsupervised adaptive confidence evaluation without relying on the real phase label.
[0055] Specifically, when generating corresponding confidence levels based on the residuals, for any given phase, the dynamic confidence level of that phase is calculated using the following formula. :
[0056] in, The cosine component output by the corresponding model, The sinusoidal component output by the corresponding model, This is the preset sensitivity adjustment coefficient. It is a natural exponential function.
[0057] With this design, when a phase signal is subjected to strong interference that causes the model prediction to become distorted, the corresponding penalty term... The confidence weight W of the phase will decrease exponentially after the natural exponential function operation; conversely, the more the prediction conforms to physical common sense, the closer the weight will be to 1.
[0058] Based on the dynamic evaluation results of the prediction error output from a single run in the aforementioned embodiments, after obtaining the sine and cosine components of the network output, a set of corresponding specific confidence scores obtained through the above logical calculations are as follows: , , This set of confidence scores accurately reflects the model's level of confidence in each individual feature and is directly passed to the final fusion estimation stage.
[0059] Step 5: Combine the predicted values with the corresponding confidence levels for weighted fusion calculation to obtain the final phase estimate of one phase, and derive the final phase estimates of the other two phases based on the three-phase physical symmetry.
[0060] In complex power grid environments, due to the inherent symmetrical coupling of three-phase power signals, single-phase phase estimation is often susceptible to local noise or sudden interference. This step transforms the traditional phase-by-phase independent solution problem into a three-phase fusion problem, utilizing the strict phase difference between the three phases. Based on the physical symmetry, the independent observation results of phases B and C are converted to the A-phase reference for multi-source cross-redundancy error correction.
[0061] The method for calculating the final phase estimate of one of the phases is as follows:
[0062] The final phase estimates for the remaining two items are calculated as follows:
[0063]
[0064] In the formula, , , These are the initial phase prediction values of phases A, B, and C obtained by arctangent operation. , , These are the confidence levels corresponding to phases A, B, and C, respectively. , , These are the final phase estimates for phases A, B, and C, respectively.
[0065] To enable those skilled in the art to more clearly and completely understand the fusion calculation process of this invention and implement this solution, based on the test slice data from the actual operation in steps three and four above, the following specific numerical example is implemented: The predicted values of the three initial phases output by the model in step three are known to be: Phase A 46.0°, Phase B -73.8°, and Phase C 164.7°. The confidence levels of each phase obtained in step four are known to be: , , Substitute the predicted values and confidence levels into the fusion formula described in this step, where the unit is radians. The calculation process for the final phase estimate of phase A under the corresponding angle system of 120° is as follows: Then, substituting this into the final phase derivation formulas for the other two phases, we obtain: ; .
[0066] Therefore, although the initial predicted values for phase B and phase C both contain some random error, the final phase estimates for phases A, B, and C obtained through three-phase fusion calculation with confidence levels not only reduce the estimation bias caused by local noise but also perfectly satisfy the strict symmetry of the three-phase balanced system in terms of physical results. Even under harsh conditions with low signal-to-noise ratios, the model can still maintain a high-precision effective phase estimation capability.
[0067] Figure 5 The mean square error curves for this embodiment at different signal-to-noise ratios clearly show that as the signal-to-noise ratio increases, the phase estimation error of the deep learning model using three-phase fusion decreases; even under harsh conditions with strong noise of -4dB, the model still has effective phase estimation capability, demonstrating the algorithm's good noise robustness.
[0068] Example 2 This embodiment is a power grid phase estimation system based on deep learning and three-phase fusion. The system is used to implement the method described in Embodiment 1, including: The signal acquisition and preprocessing module is used to acquire the three-phase time-series signal of the power grid, calculate the average power of the complete time-series sampling points of each phase signal, and use the average power to normalize the three-phase time-series signal; The model prediction module is used to input the normalized three-phase time-series signal into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases. The phase restoration module is used to perform arctangent operation on the sinusoidal and cosine components to restore the three-phase initial phase prediction values. The confidence level acquisition module is used to acquire the corresponding confidence levels. The fusion estimation module is used to perform weighted fusion calculation by combining the predicted value with the corresponding confidence level to obtain the final phase estimate of one phase, and derive the final phase estimates of the other two phases based on the three-phase physical symmetry.
[0069] Example 3 This embodiment is an electronic device, including: One or more processors; Memory, used to store one or more computer programs; One or more computer programs stored in the memory are executed by the one or more processors, causing the one or more processors to implement the phase estimation method as described in Embodiment 1.
[0070] Example 4 This embodiment is a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the phase estimation method as described in Embodiment 1.
[0071] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.
Claims
1. A power grid phase estimation method based on deep learning and three-phase fusion, characterized in that, Includes the following steps: Acquire the three-phase time-series signal of the power grid, calculate the average power of the complete time-series sampling points of each phase signal, and use the average power to normalize the three-phase time-series signal; The normalized three-phase timing signal is input into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases. The arctangent operation is performed on the sinusoidal and cosine components to restore the predicted initial phase values of the three phases. Obtain the corresponding confidence levels; The predicted values are weighted and fused with the corresponding confidence levels to obtain the final phase estimate of one phase, and the final phase estimates of the other two phases are derived based on the three-phase physical symmetry.
2. The method according to claim 1, characterized in that, The normalization process is specifically as follows: Calculate the average power of the three-phase signals of the power grid respectively. : The three-phase signals are normalized using the following formula: Where N is the total number of sampling points, For any phase The original signal value at the i-th sampling point for The corresponding original time-series signal vector, For normalized Phase signal vector, .
3. The method according to claim 1, characterized in that, The pre-trained neural network model is a one-dimensional convolutional neural network, and the network structure includes: The input layer is used to receive the normalized three-phase timing signal of length N, with an input dimension of (N,3). The feature extraction network consists of a first convolutional layer, a second convolutional layer, and a third convolutional layer connected in sequence, all of which use the ReLU activation function; A fully connected network, comprising a flattened layer and a first fully connected layer, a second fully connected layer, and a linear output layer connected in sequence; The first, second, and third convolutional layers have 64, 128, and 128 channels respectively, and the kernel sizes are 5, 5, and 3 respectively. The output dimensions of the first and second fully connected layers are 256 and 128 respectively, and both are configured with Dropout regularization. The linear output layer has an output dimension of 6 and is used to output the sine and cosine components corresponding to the three phases.
4. The method according to claim 1, characterized in that, The confidence level is obtained by obtaining a preset fixed constant as the corresponding confidence level.
5. The method according to claim 1, characterized in that, The method for obtaining the confidence level is as follows: Based on the corresponding sine and cosine components output by the model, the residuals deviating from the physical constraint of the unit circle are calculated, and the corresponding confidence levels are generated according to the residuals, wherein the smaller the residuals, the greater the corresponding confidence levels.
6. The method according to claim 1, characterized in that, The method for calculating the final phase estimate of one of the phases is as follows: The final phase estimates for the remaining two items are calculated as follows: In the formula, , , These are the initial phase prediction values of phases A, B, and C obtained by arctangent operation. , , These are the confidence levels corresponding to phases A, B, and C, respectively. , , These are the final phase estimates for phases A, B, and C, respectively.
7. The method according to claim 1, characterized in that, The training dataset for the pre-trained neural network model is generated through the following steps: The initial phase is acquired at equal intervals within a preset range, and the signal-to-noise ratio is acquired within a preset decibel range, using the formula... Signal-to-noise ratio in decibels Convert to linear true ratio ; Based on the initial phase and the true ratio, a three-phase training signal with noise simulation is directly generated; The true sine and true cosine values corresponding to the initial phase are obtained as regression labels for model training, and the three-phase training signals are combined to form a labeled dataset.
8. A power grid phase estimation system based on deep learning and three-phase fusion, characterized in that, The system is used to implement the method as described in any one of claims 1-7, comprising: The signal acquisition and preprocessing module is used to acquire the three-phase time-series signal of the power grid, calculate the average power of the complete time-series sampling points of each phase signal, and use the average power to normalize the three-phase time-series signal; The model prediction module is used to input the normalized three-phase time-series signal into a pre-trained neural network model, which directly outputs the sine and cosine components corresponding to each of the three phases. The phase restoration module is used to perform arctangent operation on the sinusoidal and cosine components to restore the three-phase initial phase prediction values. The confidence level acquisition module is used to acquire the corresponding confidence levels. The fusion estimation module is used to perform weighted fusion calculation by combining the predicted value with the corresponding confidence level to obtain the final phase estimate of one phase, and derive the final phase estimates of the other two phases based on the three-phase physical symmetry.
9. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs; The feature is that one or more computer programs stored in the memory are executed by the one or more processors, causing the one or more processors to implement the phase estimation method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the phase estimation method as described in any one of claims 1-7.
Citation Information
Patent Citations
Method and System for Estimating and Tracking Frequency and Phase Angle of 3-Phase Power Grid Voltage Signals
US20120150468A1
