Distributed photovoltaic power metering method and system based on signal analysis strategy selection
By constructing a fusion feature vector and intelligent decision-making model, and dynamically selecting the optimal signal processing and analysis strategy, the problem of power metering error fluctuation in distributed photovoltaic power generation systems is solved, thereby improving the accuracy and adaptability of power metering.
Patent Information
- Application Number
- CN202611383935.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, fixed single signal processing and analysis methods are difficult to adapt to the non-stationary fluctuation characteristics of voltage and current signals in distributed photovoltaic power generation systems, resulting in significant fluctuations in power metering errors as operating conditions change.
By constructing a fusion feature vector and intelligent decision-making model, the optimal signal processing analysis strategy is dynamically selected, including Fast Fourier Transform, Wavelet Transform and Hilbert-Huang Transform, to optimize the power metering method and adjust the analysis strategy in real time to adapt to signal fluctuations and distortions.
It improves the accuracy and adaptability of electricity metering and reduces the degree of fluctuation in electricity metering error as operating conditions change.
Smart Images

Figure CN123158455A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power metering technology, and more specifically to a distributed photovoltaic power metering method and system based on signal analysis strategy selection. Background Technology
[0002] Electricity metering typically requires sampling and analyzing electrical quantities such as voltage and current, and calculating the corresponding energy value based on the sampled signals. Therefore, the accuracy of the voltage and current sampling signal analysis directly affects the accuracy of the electricity metering results. Among existing electricity metering and power quality analysis methods, Fast Fourier Transform (FFT), Wavelet Transform (WFT), and Hilbert-Huang Transform (HFT) are widely used. However, different signal processing and analysis methods have different applicable conditions and analytical characteristics. FFT has good frequency resolution in the analysis of steady-state or relatively stable spectral characteristics, but its local time-frequency analysis capability is limited for signals with significant abrupt changes and transient characteristics. While WFT can effectively describe the local abrupt changes in signals, its analysis results are related to factors such as wavelet basis functions and decomposition scale. HFT has strong adaptive analysis capabilities, but in practical applications, it also suffers from computational complexity and mode aliasing issues.
[0003] In the actual operation of distributed photovoltaic (PV) power generation systems, voltage and current signals are easily affected by factors such as load changes, inverter operating status, grid disturbances, and harmonics, resulting in varying degrees of fluctuation, distortion, and non-stationarity. Using a fixed, single signal processing and analysis method makes it difficult to consistently achieve optimal energy metering results. Therefore, it is necessary to propose an energy metering method suitable for distributed PV power generation systems. This method should adaptively select from multiple signal processing and analysis strategies based on the different signal characteristics of the three-phase voltage and current synchronous sampling data to improve the accuracy and adaptability of energy metering under different operating conditions. Summary of the Invention
[0004] This invention provides a distributed photovoltaic power metering method and system based on signal analysis strategy selection, which solves the technical problem that fixed single signal processing and analysis methods cannot adapt to the non-stationary fluctuation characteristics of voltage and current signals in distributed photovoltaic power generation systems, resulting in significant fluctuations in power metering errors as operating conditions change.
[0005] This invention is achieved through the following technical solution:
[0006] In a first aspect, this application provides a distributed photovoltaic power metering method based on signal analysis strategy selection, including:
[0007] Acquire several sets of three-phase voltage and current synchronous sampling data and the corresponding standard energy metering value for each set of three-phase voltage and current synchronous sampling data as training samples;
[0008] Extract the feature parameters of three-phase voltage and current from each training sample and construct a fused feature vector.
[0009] Multiple candidate signal processing analysis strategies are determined, including time-frequency analysis using one of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, and time-frequency analysis using at least two of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform in sequence.
[0010] For each group of training samples, each candidate signal processing analysis strategy is used to calculate the energy metering, and the energy metering value corresponding to each candidate signal processing analysis strategy is obtained. The energy metering error corresponding to each candidate signal processing analysis strategy is determined based on the energy metering value corresponding to each candidate signal processing analysis strategy and the standard energy metering value. The candidate signal processing analysis strategy with the smallest energy metering error is taken as the optimal analysis strategy label for that group of training samples.
[0011] Using the fused feature vector as input and the optimal analysis strategy label as output, the intelligent decision-making model is trained to obtain the trained intelligent decision-making model;
[0012] Real-time acquisition of three-phase voltage and current synchronous sampling data; construction of real-time fusion feature vector in the same way as the construction of the fusion feature vector; input of the real-time fusion feature vector into the trained intelligent decision model; output of recommended signal processing and analysis strategy; and completion of power metering based on the recommended signal processing and analysis strategy.
[0013] A further optimization scheme is that the multiple candidate signal processing analysis strategies consist of a single signal processing analysis strategy and a combined signal processing analysis strategy;
[0014] The single signal processing analysis strategy is to use one of the following for time-frequency analysis: Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform.
[0015] The combined signal processing analysis strategy includes a first combined strategy of Fast Fourier Transform and Wavelet Transform, a second combined strategy of Fast Fourier Transform and Hilbert-Huang Transform, a third combined strategy of Wavelet Transform and Hilbert-Huang Transform, and a fourth combined strategy of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform performed sequentially.
[0016] In the combined signal processing analysis strategy, between two adjacent transformations, the output signal of the previous transformation is used as the input signal of the next transformation. The Fast Fourier Transform is used for fundamental and major harmonic frequency identification, the Wavelet Transform is used for local denoising and transient refinement, and the Hilbert-Huang Transform is used for mode decomposition and extraction of instantaneous frequency and instantaneous energy.
[0017] A further optimization scheme is as follows: the energy metering error corresponding to each candidate signal processing and analysis strategy is calculated using the following formula:
[0018] ;
[0019] In the formula, Let be the power metering error corresponding to the i-th candidate signal processing and analysis strategy. The power metering value is calculated for the i-th candidate signal processing analysis strategy, where Wref is the standard power metering value and i is the sequence number of the candidate signal processing analysis strategy.
[0020] The optimal analysis strategy label is determined by the following formula:
[0021] ;
[0022] In the formula, The optimal analysis strategy is labeled.
[0023] A further optimized approach involves extracting the characteristic parameters of the three-phase voltage and current in each training sample group, including:
[0024] The time-domain feature parameters, frequency-domain feature parameters, and time-frequency feature parameters of each phase voltage and current in each training sample are extracted respectively. The time-domain feature parameters include variance and peak factor. The frequency-domain feature parameters include total harmonic distortion, spectral centroid and frequency offset. The time-frequency feature parameters include wavelet energy entropy and spectral entropy.
[0025] The system characteristic parameters of three-phase voltage and current in each training sample group are extracted respectively. The system characteristic parameters include the three-phase voltage imbalance and the three-phase current imbalance.
[0026] The basic feature vector is composed of the time-domain feature parameters, the frequency-domain feature parameters, the time-frequency feature parameters, and the system feature parameters.
[0027] A further optimization scheme is that the construction of the fused feature vector includes:
[0028] Let the basic feature vector be denoted as For the basic feature vector Normalization is performed to obtain normalized feature vectors. :
[0029] ;
[0030] The normalized feature vector Each parameter in the matrix is assigned a weight, resulting in a weight matrix. The fused feature vector is denoted as :
[0031] .
[0032] A further optimization scheme includes, before extracting the characteristic parameters of the three-phase voltage and current in each training sample, the following:
[0033] The three-phase voltage and current synchronous sampling data of each training sample are preprocessed, including outlier removal, noise filtering, time synchronization, and phase correction.
[0034] A further optimization scheme is that the intelligent decision-making model is a random forest classification model, which consists of multiple decision trees. During the training process, each decision tree uses randomly selected training samples and randomly selected feature subsets to divide nodes. The division of classification nodes uses the Gini index as the division criterion.
[0035] A further optimized solution is that the several sets of three-phase voltage and current synchronous sampling data are derived from at least one of the following: long-term historical data of actual power grid operation, data collected by laboratory simulation platform, and simulation data of typical operating conditions, and cover different voltage levels, different load types, and different power grid operating states.
[0036] Further optimizations include:
[0037] Real-time recording of three-phase voltage and current synchronous sampling data, the recommended signal processing and analysis strategy, and power metering values are used as new samples;
[0038] When the number of new samples reaches a preset number, or when a significant change is detected in the signal characteristic distribution of the power grid operation status, load type, or voltage level relative to the training samples, the new samples are added to the training samples to retrain the intelligent decision-making model.
[0039] Secondly, this application provides a distributed photovoltaic power metering system based on signal analysis strategy selection, comprising:
[0040] The training sample acquisition module is used to acquire several sets of three-phase voltage and current synchronous sampling data and the standard energy metering value corresponding to each set of three-phase voltage and current synchronous sampling data as training samples.
[0041] The feature extraction module is used to extract the feature parameters of three-phase voltage and current in each training sample and construct a fused feature vector.
[0042] The strategy labeling module is used to determine multiple candidate signal processing analysis strategies. For each group of training samples, each candidate signal processing analysis strategy is used to perform power metering calculations to obtain the power metering value corresponding to each candidate signal processing analysis strategy. The power metering error corresponding to each candidate signal processing analysis strategy is determined based on the power metering value corresponding to each candidate signal processing analysis strategy and the standard power metering value. The candidate signal processing analysis strategy with the smallest power metering error is used as the optimal analysis strategy label for that group of training samples.
[0043] The model training module is used to train the intelligent decision-making model with the fused feature vector as input and the optimal analysis strategy label as output, so as to obtain the trained intelligent decision-making model.
[0044] The real-time metering module is used to collect synchronous sampling data of three-phase voltage and current in real time, construct a real-time fusion feature vector in the same way as the fusion feature vector, input the real-time fusion feature vector into the trained intelligent decision model, output a recommended signal processing and analysis strategy, and complete the power metering according to the recommended signal processing and analysis strategy.
[0045] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0046] Training samples are constructed using synchronous sampling data of three-phase voltage and current and their standard energy metering values. A fusion feature vector is extracted to uniformly represent the signal characteristics under different operating conditions. Then, the optimal analysis strategy label is determined based on the energy metering error of each candidate signal processing analysis strategy. The intelligent decision model is trained using the fusion feature vector as input to establish a mapping relationship between signal characteristics and analysis strategies. Finally, in real-time metering, the model outputs the recommended signal processing analysis strategy and completes energy metering accordingly. This allows the adopted analysis strategy to be adjusted accordingly with changes in signal fluctuations, distortions, and non-stationary characteristics, reducing the degree of fluctuation in energy metering error with changes in operating conditions. Attached Figure Description
[0047] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:
[0048] Figure 1 A flowchart illustrating the distributed photovoltaic power metering method based on signal analysis strategy selection provided in this application embodiment;
[0049] Figure 2A schematic diagram of a distributed photovoltaic power metering system based on signal analysis strategy selection provided in an embodiment of this application. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.
[0051] First, some of the technical terms used in this application will be explained to help those skilled in the art understand this application.
[0052] Candidate signal processing analysis strategy refers to the processing method of performing time-frequency analysis on synchronous sampling data of three-phase voltage and current to determine the signal characteristics on which power metering is based. It includes a single signal processing analysis strategy that uses only one transformation, and a combined signal processing analysis strategy that uses at least two transformations in series in sequence.
[0053] The fused feature vector is a one-dimensional vector obtained by normalizing and weighting the basic feature parameters of the three-phase voltage and current synchronous sampling data, and is used as the model input of the intelligent decision-making model.
[0054] The optimal analysis strategy label refers to the label number corresponding to the candidate signal processing analysis strategy with the smallest power metering error among all candidate signal processing analysis strategies, which is used as the model output of the intelligent decision model.
[0055] Firstly, such as Figure 1 As shown, this application provides a distributed photovoltaic power metering method based on signal analysis strategy selection, including the following steps:
[0056] Step S1: Obtain several sets of three-phase voltage and current synchronous sampling data and the standard energy metering value corresponding to each set of three-phase voltage and current synchronous sampling data as training samples;
[0057] Step S2: Extract the feature parameters of three-phase voltage and current in each training sample and construct a fused feature vector;
[0058] Step S3: Determine multiple candidate signal processing analysis strategies, including time-frequency analysis using one of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, and time-frequency analysis using at least two of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform in sequence;
[0059] Step S4: For each group of training samples, each candidate signal processing analysis strategy is used to perform power metering calculation to obtain the power metering value corresponding to each candidate signal processing analysis strategy. The power metering error corresponding to each candidate signal processing analysis strategy is determined based on the power metering value corresponding to each candidate signal processing analysis strategy and the standard power metering value. The candidate signal processing analysis strategy with the smallest power metering error is taken as the optimal analysis strategy label for that group of training samples.
[0060] Step S5: Using the fused feature vector as input and the optimal analysis strategy label as output, train the intelligent decision-making model to obtain the trained intelligent decision-making model;
[0061] Step S6: Real-time acquisition of three-phase voltage and current synchronous sampling data, construction of real-time fusion feature vector in the same way as the construction of the fusion feature vector, input of the real-time fusion feature vector into the trained intelligent decision model, output of recommended signal processing and analysis strategy, and completion of power metering based on the recommended signal processing and analysis strategy;
[0062] This embodiment constructs training samples using synchronous sampling data of three-phase voltage and current and their standard energy metering values, and extracts fused feature vectors to uniformly represent signal characteristics under different operating conditions. Then, based on the energy metering error of each candidate signal processing and analysis strategy, it determines the optimal analysis strategy label, and uses the fused feature vector as input to train an intelligent decision-making model to establish a mapping relationship between signal characteristics and analysis strategies. Finally, in real-time metering, the model outputs the recommended signal processing and analysis strategy and completes energy metering accordingly, so that the adopted analysis strategy is adjusted accordingly with changes in signal fluctuations, distortions, and non-stationary characteristics, reducing the degree of fluctuation in energy metering error with changes in operating conditions.
[0063] In one embodiment, step S1: acquiring several sets of three-phase voltage and current synchronous sampling data and the corresponding standard energy metering value for each set of three-phase voltage and current synchronous sampling data as training samples, specifically includes the following steps:
[0064] Step S11: Using historical data from long-term operation of the actual power grid, data collected from laboratory simulation platforms, and simulation data of typical operating conditions as data sources, a set of synchronous sampling data of three-phase voltage and current to be screened is obtained.
[0065] Among them, the actual long-term operation history data of the power grid is the data continuously recorded during the long-term operation of the distributed photovoltaic power generation system after it is connected to the power grid; the data collected by the laboratory simulation platform is the data formed by simulating different operating conditions under controllable conditions; and the typical operating condition simulation data is the data formed by simulating the power grid operation model. The above three data sources can be used as data sources individually or in any combination to serve as data sources, thereby avoiding the signal characteristics of the three-phase voltage and current synchronous sampling data from being homogeneous due to a single data source.
[0066] Step S12: Based on voltage level, load type and power grid operating status, classify the data in the three-phase voltage and current synchronous sampling data set to be screened to obtain three-phase voltage and current synchronous sampling data covering multiple power grid operating conditions.
[0067] Among them, the three-phase voltage and current synchronous sampling data under different grid operating conditions include data containing harmonics, data with fluctuations and distortions, and data collected during inverter operating status changes and load surges.
[0068] Step S13: Match the corresponding standard energy metering value to each group of three-phase voltage and current synchronous sampling data to form a sample entry consisting of the three-phase voltage and current synchronous sampling data and the standard energy metering value.
[0069] Among them, the standard energy metering value is the energy reference value corresponding to the synchronous sampling data of the three-phase voltage and current of the group. The two are in one-to-one correspondence according to the group, and are used as a reference benchmark when calculating the energy metering error of each candidate signal processing and analysis strategy.
[0070] Step S14: Register each sample item by group as a unit to establish a training sample library.
[0071] The training sample library contains at least 200 sets of training samples, covering different voltage levels, different load types, and different power grid operating states, so that the synchronous sampling data of three-phase voltage and current with obvious operating conditions can be fully learned in the subsequent training process of the intelligent decision model.
[0072] This embodiment gathers synchronous sampling data of three-phase voltage and current from long-term historical data of actual power grid operation, data collected from laboratory simulation platforms, and simulation data of typical operating conditions. After classifying the data according to voltage level, load type, and power grid operating status, it establishes a training sample library by matching standard energy metering values group by group. This ensures that the training samples cover a variety of power grid operating conditions and have a unified energy reference benchmark. This provides a data foundation for the subsequent construction of fusion feature vectors and the determination of optimal analysis strategy labels, and reduces the degree of deviation in strategy selection of the trained intelligent decision-making model under non-training conditions caused by the single operating conditions or homogeneous signal characteristics of the training samples.
[0073] In one embodiment, step S2: extracting the feature parameters of three-phase voltage and current in each group of training samples and constructing a fused feature vector, specifically includes the following steps:
[0074] Step S21: Perform outlier removal, noise filtering, time synchronization, and phase correction on the three-phase voltage and current synchronous sampling data of each group of training samples in the training sample library to obtain a unified data input sequence.
[0075] Among them, outlier removal is used to remove outlier data caused by abnormal acquisition, noise filtering is used to suppress noise mixed in the data, time synchronization is used to align the data of each channel in the same training sample in time, and phase correction is used to eliminate phase deviation between channels caused by differences in the acquisition process.
[0076] Step S22: Separate the voltage and current data of the same group of training samples by phase to obtain the voltage and current data of each phase corresponding to each group of training samples.
[0077] The voltage data for each phase includes phase a, phase b, and phase c voltage data, and the current data for each phase includes phase a, phase b, and phase c current data. Furthermore, the voltage data and current data for each phase obtained from the same set of training samples are synchronized in time.
[0078] Step S23: Calculate the dispersion and peak impact of each phase voltage data and each phase current data during the sampling period to obtain the time-domain characteristic parameters of each phase voltage data and each phase current data.
[0079] Among them, the time-domain characteristic parameters include variance and peak factor. Variance is used to characterize the degree of dispersion of each phase voltage data and each phase current data relative to their mean, and peak factor is used to characterize the peak impact of each phase voltage data and each phase current data.
[0080] Step S24: Perform frequency domain transformation on the voltage data and current data of each phase and statistically analyze the distribution of each frequency component to obtain the frequency domain characteristic parameters of the voltage data and current data of each phase.
[0081] Among them, the frequency domain characteristic parameters include total harmonic distortion (THD), spectral centroid, and frequency offset. THD is used to characterize the proportion of harmonic components relative to the fundamental component in each phase voltage and current data. Spectral centroid is used to characterize the energy concentration position of each phase voltage and current data in the frequency domain. Frequency offset is used to characterize the degree of deviation of the measured fundamental frequency from the system's rated frequency.
[0082] Step S25: Perform wavelet multi-scale decomposition on the phase voltage data and phase current data, and statistically analyze the distribution of energy and power spectrum at each scale to obtain the time-frequency characteristic parameters of the phase voltage data and phase current data.
[0083] Among them, the time-frequency characteristic parameters include wavelet energy entropy and spectral entropy. Wavelet energy entropy is used to characterize the uniformity of energy distribution of each phase voltage data and each phase current data at each wavelet scale, and spectral entropy is used to characterize the complexity of power spectrum distribution of each phase voltage data and each phase current data.
[0084] Step S26: Taking the three-phase voltage and current of each group of training samples as the overall object of study, measure the degree of asymmetry between the three-phase voltages and between the three-phase currents to obtain the system characteristic parameters of each group of training samples.
[0085] Among them, the system characteristic parameters include three-phase voltage unbalance and three-phase current unbalance. Three-phase voltage unbalance is used to characterize the degree of asymmetry of the three-phase voltage, and three-phase current unbalance is used to characterize the degree of asymmetry of the three-phase current.
[0086] Step S27: Combine the time-domain feature parameters, frequency-domain feature parameters, time-frequency feature parameters, and system feature parameters corresponding to each group of training samples into a one-dimensional vector according to the set arrangement order to obtain the basic feature vector of each group of training samples.
[0087] Wherein, the basic feature vector is denoted as Its dimension is determined by the number of types of feature parameters, the number of phases, and the number of system feature parameters. Each feature parameter is in the basic feature vector. Arranged according to the set sorting order.
[0088] Step S28: Process the basic feature vectors Each component in the vector is normalized to eliminate dimensional differences, resulting in a normalized eigenvector. :
[0089] ;
[0090] The normalization process is used to transform the basic feature vectors. Each component in the vector is mapped to the same value range, and the feature vector is normalized. The components and the fundamental eigenvectors Each component in the text corresponds one-to-one.
[0091] Step S29: Normalize the feature vector Each parameter in the matrix is assigned a weight, and the weights are combined to form a weight matrix. The weight matrix W and the normalized eigenvectors are then compared. After multiplication, the vectors are fused into a one-dimensional vector, resulting in the fused feature vector. :
[0092] ;
[0093] Among them, the weight matrix Each weight in the table reflects its corresponding normalized eigenvector. The contribution of the parameters in determining the optimal analysis strategy, and the weight matrix Dimensions and normalized feature vectors The dimensions are adapted to the model; the fused feature vector F is used as the model input for the subsequent intelligent decision-making model.
[0094] This embodiment performs outlier removal, noise filtering, time synchronization, and phase correction on the synchronously sampled three-phase voltage and current data to ensure that the data used for feature extraction remains consistent in time and phase. Based on this, feature parameters of each phase voltage and current data are extracted from the time domain, frequency domain, and time-frequency domain, respectively. The asymmetry of the three-phase voltage and current is measured to obtain system feature parameters, enabling a multi-dimensional characterization of features reflecting signal fluctuations, distortions, and non-stationarity in the training samples. After normalization to eliminate dimensional differences, the parameters are weighted and fused according to their contribution, allowing feature parameters of different magnitudes and sources to be collaboratively represented on the same scale. This provides a sufficiently discriminative model input for the intelligent decision-making model to differentiate the applicability of various candidate signal processing and analysis strategies.
[0095] In one embodiment, step S3: determining multiple candidate signal processing analysis strategies, the multiple candidate signal processing analysis strategies including time-frequency analysis using one of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, and time-frequency analysis using at least two of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform sequentially, specifically including the following steps:
[0096] Step S31: Based on the analytical characteristics of the Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, classify the signal characteristics to which each of the three types of transforms is applicable.
[0097] Among them, the Fast Fourier Transform (FFT) is mainly suitable for signals with relatively stable periodicity and obvious spectral characteristics, and is used to identify the fundamental frequency and major harmonic frequencies and analyze the steady-state frequency domain characteristics of the signal; the Wavelet Transform has multi-scale time-frequency localization analysis capability and is suitable for signals containing non-stationary characteristics such as abrupt changes, transient disturbances, local noise, or harmonic frequency band changes; the Hilbert-Huang Transform is suitable for nonlinear and non-stationary signals whose frequency and amplitude change significantly with time, and obtains different intrinsic mode functions through empirical mode decomposition, and further extracts features such as instantaneous frequency and instantaneous energy.
[0098] Since the signal characteristics applicable to the above three types of transformations are different and complementary in terms of applicable conditions, the steady-state frequency domain resolution capability of the Fast Fourier Transform, the local mutation characterization capability of the Wavelet Transform, and the nonlinear nonstationary adaptive analysis capability of the Hilbert-Huang Transform correspond to the signal characteristics presented by the distributed photovoltaic power generation system under different operating conditions, so that there are time-frequency analysis methods that are suitable for different signal characteristics.
[0099] Step S32: Using only one of the following methods—Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform—as the time-frequency analysis method for the synchronous sampling data of three-phase voltage and current, establish a single signal processing analysis strategy with label numbers 1, 2, and 3, namely:
[0100] Tag number 1: Time-frequency analysis of three-phase voltage and current synchronous sampling data using Fast Fourier Transform to obtain signal characteristics;
[0101] Tag number 2: Time-frequency analysis of three-phase voltage and current synchronous sampling data using wavelet transform to obtain signal characteristics;
[0102] Tag number 3: Use Hilbert-Huang transform to perform time-frequency analysis on three-phase voltage and current synchronous sampling data to obtain signal characteristics.
[0103] Step S33: Using at least two of the following—Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform—continuously connected in sequence as time-frequency analysis methods for the synchronous sampling data of three-phase voltage and current, establish a combined signal processing analysis strategy with tag numbers 4, 5, 6, and 7, namely:
[0104] Tag number 4: Use Fast Fourier Transform to identify the fundamental frequency and main harmonic frequencies, and use wavelet transform to perform local denoising and transient refinement on the main frequency bands identified by Fast Fourier Transform;
[0105] Tag number 5: Use Fast Fourier Transform to extract the fundamental frequency and major harmonic components, and use Hilbert-Huang Transform to analyze the parts of the frequency that change rapidly or the harmonics that change over time identified by Fast Fourier Transform.
[0106] Tag number 6: Use wavelet transform for multi-scale noise reduction and transient feature extraction, and use Hilbert-Huang transform to perform mode decomposition on the wavelet transform-processed signal to extract instantaneous frequency and instantaneous energy;
[0107] Tag number 7: Use Fast Fourier Transform to identify the fundamental and main harmonic frequencies, use wavelet transform to perform local denoising and transient refinement on the main frequency bands identified by Fast Fourier Transform, and use Hilbert-Huang transform to perform mode decomposition on the wavelet-transformed signal to extract instantaneous frequency and instantaneous energy information.
[0108] In the combined signal processing analysis strategy, the output signal of the previous transformation is used as the input signal of the next transformation between two adjacent transformations. Each transformation undertakes a different time-frequency analysis task in the same combined signal processing analysis strategy. That is, the Fast Fourier Transform is used for the identification of the fundamental and major harmonic frequencies, the Wavelet Transform is used for local denoising and transient refinement, and the Hilbert-Huang Transform is used for mode decomposition and extraction of instantaneous frequency and instantaneous energy. The signal characteristics are obtained from the output of the last transformation.
[0109] Step S34: Summarize the single signal processing analysis strategies with label numbers 1, 2, and 3 and the combined signal processing analysis strategies with label numbers 4, 5, 6, and 7 to establish a candidate signal processing analysis strategy set.
[0110] The total number of candidate signal processing analysis strategies in the candidate signal processing analysis strategy set is 7, including 3 single signal processing analysis strategies and 4 combined signal processing analysis strategies.
[0111] Preferably, the candidate signal processing analysis strategies in the candidate signal processing analysis strategy set are called sequentially in ascending order of label number, that is, the single signal processing analysis strategy is called first, and then the combined signal processing analysis strategy is called, so that the energy metering error of the single transformation and the combined transformation on the same set of training samples can be compared sequentially.
[0112] This embodiment first divides the signal characteristics applicable to each of the Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, and places this division before establishing the candidate signal processing analysis strategy. This allows the steady-state frequency domain resolution, local mutation characterization, and nonlinear non-stationary adaptive analysis capabilities of the three types of transforms to complement each other, providing a clear adaptation basis for the selection of candidate signal processing analysis strategies. Based on this, single signal processing analysis strategies and combined signal processing analysis strategies are established respectively. In the combined signal processing analysis strategy, the output signal of the previous transform is used as the input signal of the next transform, and each transform undertakes different time-frequency analysis tasks. This allows the candidate signal processing analysis strategy to cover various signal characteristics such as steady-state periodicity, abrupt transients, and frequency and amplitude changes over time. This provides a strategic basis for subsequently using the candidate signal processing analysis strategy with the smallest power metering error as the optimal analysis strategy label.
[0113] In one embodiment, step S4: For each group of training samples, each candidate signal processing analysis strategy is used to perform power metering calculations to obtain the power metering value corresponding to each candidate signal processing analysis strategy. Based on the power metering value corresponding to each candidate signal processing analysis strategy and the standard power metering value, the power metering error corresponding to each candidate signal processing analysis strategy is determined. The candidate signal processing analysis strategy with the smallest power metering error is taken as the optimal analysis strategy label for that group of training samples. This specifically includes the following steps:
[0114] Step S41: Apply each candidate signal processing analysis strategy in the candidate signal processing analysis strategy set to the three-phase voltage and current synchronous sampling data contained in the same group of training samples in turn, obtain signal characteristics from the time-frequency analysis results and complete the accumulation of electrical energy, and obtain the electrical energy metering value of the group of training samples under each candidate signal processing analysis strategy.
[0115] Among them, the three-phase voltage and current synchronous sampling data contained in the same set of training samples remain unchanged when called under each candidate signal processing and analysis strategy, so that the power metering values obtained by each candidate signal processing and analysis strategy are comparable on the same data basis.
[0116] Step S42: Subtract the energy metering value of each group of training samples under each candidate signal processing analysis strategy from the standard energy metering value corresponding to that group of training samples, and take the absolute value of the difference to obtain the energy metering error of each group of training samples under each candidate signal processing analysis strategy:
[0117] ;
[0118] In the formula, Let be the power metering error corresponding to the i-th candidate signal processing and analysis strategy. The energy metering value is calculated using the i-th candidate signal processing and analysis strategy. The standard energy metering value is denoted by , and ... It reflects the degree to which the energy metering value calculated by the i-th candidate signal processing analysis strategy deviates from the standard energy metering value. The smaller the value, the higher the degree of fit between the candidate signal processing analysis strategy and the signal characteristics presented by the training samples.
[0119] Step S43: Traverse each group of training samples in the training sample library according to the group, and repeat steps S41 to S42 to obtain the power metering error of each group of training samples under each candidate signal processing analysis strategy.
[0120] Among them, the power metering errors of the same group of training samples under each candidate signal processing analysis strategy are arranged in ascending order of label number, and their number is consistent with the total number of candidate signal processing analysis strategies in the candidate signal processing analysis strategy set.
[0121] Step S44: The label number corresponding to the smallest energy metering error among all candidate signal processing analysis strategies for each group of training samples is taken as the optimal analysis strategy label S for that group of training samples.
[0122]
[0123] In the formula, S is the optimal analysis strategy label. Let represent the energy metering error corresponding to the i-th candidate signal processing analysis strategy. In this embodiment, each candidate signal processing analysis strategy is sequentially applied to the synchronously sampled three-phase voltage and current data within the same training sample set, ensuring the comparability of energy metering values obtained by each strategy based on the same data. Then, using the standard energy metering value as a reference, the absolute value of the difference between each strategy is taken, transforming the qualitative judgment of the fit between each candidate signal processing analysis strategy and the signal characteristics into a quantifiable numerical comparison. Finally, the label number corresponding to the smallest energy metering error is taken as the optimal analysis strategy label for that training sample set, ensuring that each training sample set obtains a labeling result corresponding to its presented signal characteristics. This provides clearly labeled training data for subsequent training of the intelligent decision-making model using the fused feature vector as input and the optimal analysis strategy label as output.
[0124] In one embodiment, step S5: using the fused feature vector as input and the optimal analysis strategy label as output, train the intelligent decision-making model to obtain the trained intelligent decision-making model, specifically including the following steps:
[0125] Step S51: Combine the fusion feature vector F of each group of training samples with its optimal analysis strategy label S into a training data set to obtain the training dataset for training the intelligent decision model.
[0126] In this model, the fused feature vector F is used as the input to the intelligent decision-making model, the energy metering error E corresponding to the signal processing analysis strategy is used as the objective function, and the optimal analysis strategy label S is used as the output of the intelligent decision-making model. The optimal analysis strategy label S has a value range of 1, 2, 3, 4, 5, 6, and 7. The energy metering error E is used to reflect the differences in energy metering error among the candidate signal processing analysis strategies during the training process of the intelligent decision-making model, so that the trained intelligent decision-making model tends to output the candidate signal processing analysis strategy with smaller energy metering error during real-time metering.
[0127] Step S52: Using the random forest classification model as the intelligent decision model to be trained, configure the number of decision trees in the random forest classification model.
[0128] Specifically, the number of decision trees is set to 200, so that the random forest classification model achieves a relatively balanced configuration between classification stability and training cost.
[0129] Step S53: Using the training dataset as the sampling population, randomly select training samples for each decision tree to form the training subset used by that decision tree, and randomly select a feature subset from the feature parameters contained in the fused feature vector for the decision tree to perform node partitioning, thereby obtaining the training subset and feature subset corresponding to each decision tree.
[0130] In this model, the feature subset selected by each decision tree when splitting nodes is a part of the feature parameters corresponding to each component in the fused feature vector, so that the splitting criteria of each decision tree are different from each other, thereby improving the diversity among decision trees in the random forest classification model.
[0131] Step S54: Based on the training subset and feature subset corresponding to each decision tree, recursively divide the training data in the training subset into different categories according to the optimal analysis strategy label layer by layer until the preset stopping condition is met, and obtain each decision tree that has been trained.
[0132] In this process, the Gini index is used as the partitioning criterion for classification nodes. The feature parameter that minimizes the weighted Gini index and its partitioning position are selected as the partitioning scheme for that node. The value of the optimal analysis strategy label is the category of the training data. The total number of categories is consistent with the total number of candidate signal processing analysis strategies in the candidate signal processing analysis strategy set, which is 7 in total. During the recursive partitioning process, when all the optimal analysis strategy labels of the training data contained in the training subset at a certain node are the same, the partitioning of that node is stopped, and the optimal analysis strategy label with the largest proportion in the training subset at that node is taken as the classification result of that node.
[0133] Step S55: Using the classification results output by each decision tree as the summary object, count the number of votes obtained by each candidate signal processing and analysis strategy, and take the one with the most votes as the classification output of the random forest classification model to obtain the trained intelligent decision model.
[0134] The recommended analysis strategy label output by the random forest classification model is the label number corresponding to the candidate signal processing analysis strategy with the most votes in the classification results output by each decision tree. The trained intelligent decision model takes the fused feature vector corresponding to the signal processing analysis strategy to be recommended as the model input and the recommended analysis strategy label as the model output, so that the corresponding candidate signal processing analysis strategy can be called according to the recommended analysis strategy label to complete the power metering in subsequent real-time metering.
[0135] Step S56: Deploy the trained intelligent decision-making model to the electricity metering device.
[0136] The intelligent decision-making model deployed to the electricity metering device takes the fused feature vector corresponding to the real-time collected three-phase voltage and current synchronous sampling data as the model input, and outputs the recommended signal processing and analysis strategy and completes the electricity metering in step S6.
[0137] This embodiment combines the fused feature vectors of training samples from each group with their optimal analysis strategy labels to form training data. It uses electricity metering error as the objective function and the optimal analysis strategy label as the output, directly linking the supervisory signal used in the training process with the electricity metering error. Based on this, a random forest classification model is used as the intelligent decision-making model to be trained. Training and feature subsets are randomly selected for each decision tree, ensuring that the partitioning criteria for each decision tree differ. The partitioning of classification nodes uses the Gini index as the partitioning criterion, recursively partitioning nodes layer by layer to gradually aggregate training data according to the optimal analysis strategy label. Then, the recommended analysis strategy label is obtained by summing the votes from each decision tree, ensuring that the classification result is jointly determined by multiple decision trees. Finally, the trained intelligent decision-making model is deployed to the electricity metering device, providing a model basis for adjusting the analysis strategy according to changes in signal characteristics under different operating conditions.
[0138] In one embodiment, step S6: Real-time acquisition of three-phase voltage and current synchronous sampling data, construction of a real-time fusion feature vector in the same manner as constructing the fusion feature vector, input of the real-time fusion feature vector into the trained intelligent decision model, output of a recommended signal processing and analysis strategy, and completion of power metering based on the recommended signal processing and analysis strategy, specifically including the following steps:
[0139] Step S61: Taking the electrical quantities at the grid connection point of the distributed photovoltaic power generation system during the period to be measured as the data collection object, continuously collect three-phase voltage data and three-phase current data in the same sampling method as the three-phase voltage and current synchronous sampling data in the training sample library to obtain real-time three-phase voltage and current synchronous sampling data.
[0140] Among them, the real-time three-phase voltage and current synchronous sampling data are consistent with the three-phase voltage and current synchronous sampling data in the training sample library in terms of the corresponding relationship between the sampling objects, phase composition and channels; the voltage data of each phase and the current data of each phase are synchronized in time, and their synchronization relationship is consistent with the synchronization relationship of the three-phase voltage and current synchronous sampling data in the training sample library.
[0141] Step S62: Using real-time three-phase voltage and current synchronous sampling data as the processing object, complete the preprocessing, basic feature vector construction and fusion feature vector calculation in the same way as in step S2 to obtain the real-time fusion feature vector.
[0142] The preprocessing includes outlier removal, noise filtering, time synchronization, and phase correction.
[0143] The basic feature vector is constructed by separating the phase voltage data and phase current data according to phase, extracting the time domain feature parameters, frequency domain feature parameters and time-frequency feature parameters of each phase voltage data and each phase current data respectively, measuring the degree of asymmetry between the three-phase voltages and between the three-phase currents to obtain the system feature parameters, and then combining them into a one-dimensional vector according to the set arrangement order.
[0144] The fusion feature vector calculation involves normalizing each component in the basic feature vector to obtain a normalized feature vector, assigning weights to each parameter in the normalized feature vector to form a weight matrix, and then multiplying the weight matrix with the normalized feature vector to fuse them into a one-dimensional vector.
[0145] The types and order of feature parameters contained in the real-time fused feature vector are consistent with the types and order of feature parameters contained in the basic feature vectors of each group of training samples in the training sample library. This makes the real-time fused feature vector and the fused feature vector of the training samples lie in the same feature space, so that the trained intelligent decision model can directly classify the real-time fused feature vector.
[0146] Preferably, the processing parameters used in preprocessing, basic feature vector construction, and fusion feature vector calculation are consistent with those in step S2, including the value range of each component used in normalization and the value of each weight in the weight matrix, so as to avoid the feature space of the real-time stage and the training stage from shifting, which would cause the output of the trained intelligent decision model to mismatch with the correspondence learned during training.
[0147] Step S63: Using the real-time fused feature vector as the model input, feed it into the trained intelligent decision model obtained in step S5. Each decision tree in the trained intelligent decision model outputs the classification results and summarizes them according to the number of votes to obtain the recommended signal processing analysis strategy.
[0148] The recommended signal processing analysis strategy is the candidate signal processing analysis strategy with the corresponding tag number in the candidate signal processing analysis strategy set. The recommended analysis strategy tag is one of the tag numbers 1, 2, 3, 4, 5, 6, and 7. When the signal characteristics reflected by the real-time fused feature vector are similar to the fused feature vector corresponding to a certain type of working condition in the training sample library, the trained intelligent decision model outputs the tag number of the candidate signal processing analysis strategy with smaller power metering error under that working condition. This allows the recommended signal processing analysis strategy to be adjusted accordingly based on the changes in the fluctuation, distortion, and non-stationary characteristics of the real-time collected three-phase voltage and current synchronous sampling data.
[0149] Step S64: Based on the recommended signal processing analysis strategy, call the candidate signal processing analysis strategy corresponding to the recommended analysis strategy tag in the candidate signal processing analysis strategy set, perform time-frequency analysis included in the candidate signal processing analysis strategy on the real-time three-phase voltage and current synchronous sampling data, and complete the accumulation of electrical energy to obtain the electrical energy metering value within the metering cycle.
[0150] When the recommended analysis strategy label is 1, 2, or 3, the candidate signal processing analysis strategy called is a single signal processing analysis strategy. It applies the Fast Fourier Transform, Wavelet Transform, or Hilbert-Huang Transform separately to the real-time three-phase voltage and current synchronous sampling data and then directly performs time-frequency analysis. The signal characteristics are obtained from the time-frequency analysis results and the electrical energy is accumulated.
[0151] When the recommended analysis strategy label is 4, 5, 6, or 7, the candidate signal processing analysis strategy called is a combined signal processing analysis strategy, which calls at least two transformations in sequence. The output signal of the previous transformation is used as the input signal of the next transformation. The signal characteristics are obtained from the output result of the last transformation and the electrical energy accumulation is completed.
[0152] In the combined signal processing analysis strategy, each transformation performs the same time-frequency analysis function as in step S33 during real-time measurement. That is, the Fast Fourier Transform is used for fundamental and major harmonic frequency identification, the Wavelet Transform is used for local denoising and transient refinement, and the Hilbert-Huang Transform is used for mode decomposition and extraction of instantaneous frequency and instantaneous energy. This ensures that the analysis process used in real-time measurement is consistent with the analysis process used when determining the optimal analysis strategy label during the training phase.
[0153] This embodiment acquires real-time three-phase voltage and current synchronous sampling data using the same sampling method as the training sample library. It then obtains a real-time fused feature vector using the same preprocessing, basic feature parameter extraction, and fused feature vector construction methods as in step S2. This ensures that the real-time fused feature vector and the fused feature vector of the training samples are in the same feature space, allowing the trained intelligent decision model to directly classify the real-time data. Based on this, each decision tree outputs its classification results, which are then aggregated according to votes to obtain a recommended signal processing analysis strategy. This ensures that the adopted analysis strategy is adjusted accordingly to the fluctuations, distortions, and non-stationary characteristics of the real-time signal, rather than using a fixed transformation. Furthermore, the time-frequency analysis division of the combined signal processing analysis strategy in real-time metering is consistent with the training phase, mitigating the degree to which the intelligent decision model's output strategy deviates from actual adaptation requirements due to inconsistencies in signal feature representation methods between the real-time and training phases.
[0154] In one embodiment, this application provides a distributed photovoltaic power metering method based on signal analysis strategy selection, which further includes the following steps:
[0155] Step S7: Real-time recording of three-phase voltage and current synchronous sampling data, recommended signal processing and analysis strategies, and power metering values as new samples. When the preset conditions are met, the new samples are added to the training sample library to retrain the intelligent decision-making model.
[0156] Further, step S7 includes the following steps:
[0157] Step S71: Using the real-time collected three-phase voltage and current synchronous sampling data, the recommended signal processing and analysis strategy, and the power metering value as the registration objects, record them one by one according to the metering cycle to obtain new samples for use when updating the intelligent decision model.
[0158] Each new sample consists of real-time three-phase voltage and current synchronous sampling data collected within a metering cycle, the recommended signal processing and analysis strategy output by the intelligent decision-making model trained within that metering cycle, and the energy metering value calculated based on the recommended signal processing and analysis strategy within that metering cycle; the above new samples are accumulated in chronological order of the metering cycles.
[0159] Step S72: Using the cumulative situation of newly added samples as the monitoring object, determine whether the conditions for updating the intelligent decision-making model are met, and obtain the determination result of whether the conditions for updating the intelligent decision-making model are met.
[0160] The conditions for updating the intelligent decision-making model include the following two scenarios:
[0161] One is that the number of new samples reaches the preset number, which is 100 groups;
[0162] Secondly, the signal feature distribution that detects the power grid operating status, load type, or voltage level has changed significantly relative to the training samples;
[0163] The intelligent decision-making model will be updated if either of the above two conditions is met.
[0164] Step S73: Using the newly added samples as the expansion object, add the newly added samples to the training sample library, and re-execute feature extraction, feature vector fusion construction, optimal analysis strategy labeling, and intelligent decision model training to obtain the updated intelligent decision model.
[0165] The updated intelligent decision-making model replaces the original trained intelligent decision-making model and is deployed to the electricity metering device for subsequent real-time metering, thereby realizing the continuous optimization and adaptive updating of the intelligent decision-making model.
[0166] This embodiment records real-time three-phase voltage and current synchronous sampling data, recommended signal processing and analysis strategies, and electricity metering values according to the metering cycle to form new samples. This ensures that the data used to update the intelligent decision-making model comes from the actual operation of the distributed photovoltaic power generation system. Based on this, the update is triggered by whether the number of new samples reaches a preset number of 100 sets, and whether there are significant changes in the signal characteristic distribution of the grid operating status, load type, or voltage level. This allows the retraining of the intelligent decision-making model to be performed periodically after accumulating sufficient samples, and also promptly when the operating conditions change significantly. The new samples are then added to the training sample library, and feature extraction, feature vector fusion construction, optimal analysis strategy labeling, and intelligent decision-making model training are completed again. This ensures that the updated intelligent decision-making model can reflect the correspondence between signal characteristics and analysis strategies under the latest operating conditions, reducing the extent to which the intelligent decision-making model continues to use the original strategy selection results after the operating conditions change due to the lack of updates to the training samples over a long period.
[0167] Secondly, such as Figure 2 As shown, this application provides a distributed photovoltaic power metering system based on signal analysis strategy selection, including a training sample acquisition module 100, a feature extraction module 200, a strategy labeling module 300, a model training module 400, and a real-time metering module 500.
[0168] The training sample acquisition module 100 is used to acquire several sets of three-phase voltage and current synchronous sampling data and the standard energy metering value corresponding to each set of three-phase voltage and current synchronous sampling data as training samples.
[0169] The feature extraction module 200 is used to extract the feature parameters of the three-phase voltage and current in each training sample and construct a fused feature vector;
[0170] The strategy labeling module 300 is used to determine multiple candidate signal processing analysis strategies. For each group of training samples, each candidate signal processing analysis strategy is used to perform power metering calculation to obtain the power metering value corresponding to each candidate signal processing analysis strategy. The power metering error corresponding to each candidate signal processing analysis strategy is determined based on the power metering value corresponding to each candidate signal processing analysis strategy and the standard power metering value. The candidate signal processing analysis strategy with the smallest power metering error is used as the optimal analysis strategy label for the group of training samples.
[0171] The model training module 400 is used to train the intelligent decision-making model with the fused feature vector as input and the optimal analysis strategy label as output, so as to obtain the trained intelligent decision-making model.
[0172] The real-time metering module 500 is used to collect three-phase voltage and current synchronous sampling data in real time, construct a real-time fusion feature vector in the same way as constructing the fusion feature vector, input the real-time fusion feature vector into the trained intelligent decision model, output a recommended signal processing and analysis strategy, and complete the power metering according to the recommended signal processing and analysis strategy.
[0173] The functions of each module in the distributed photovoltaic power metering device based on signal analysis strategy selection correspond to the steps in the embodiment of the distributed photovoltaic power metering method based on signal analysis strategy selection. Their functions and implementation processes will not be described in detail here.
[0174] Thirdly, embodiments of this application provide a distributed photovoltaic power metering device selected based on a signal analysis strategy. The distributed photovoltaic power metering device selected based on a signal analysis strategy can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0175] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0176] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces. These interfaces enable interconnection of internal devices within the distributed photovoltaic (PV) energy metering equipment, which uses signal analysis strategies for selection. They also enable interconnection between the distributed PV energy metering equipment and other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0177] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0178] The processor can be a general-purpose processor, which can call a distributed photovoltaic power metering program based on signal analysis strategy selection stored in memory and execute the distributed photovoltaic power metering method based on signal analysis strategy selection provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the distributed photovoltaic power metering program based on signal analysis strategy selection is called can be referred to the various embodiments of the distributed photovoltaic power metering method based on signal analysis strategy selection in this application, and will not be repeated here.
[0179] Fourthly, embodiments of this application also provide a readable storage medium.
[0180] This application stores a distributed photovoltaic power metering program based on signal analysis strategy selection on a readable storage medium, wherein when the distributed photovoltaic power metering program based on signal analysis strategy selection is executed by a processor, it implements the steps of the distributed photovoltaic power metering method based on signal analysis strategy selection as described above.
[0181] The method implemented when the distributed photovoltaic power metering program based on signal analysis strategy selection is executed can be referred to in various embodiments of the distributed photovoltaic power metering method based on signal analysis strategy selection in this application, and will not be repeated here.
[0182] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0183] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A distributed photovoltaic power metering method based on signal analysis strategy selection, characterized in that, Includes the following steps: Acquire several sets of three-phase voltage and current synchronous sampling data and the corresponding standard energy metering value for each set of three-phase voltage and current synchronous sampling data as training samples; Extract the feature parameters of three-phase voltage and current from each training sample and construct a fused feature vector. Multiple candidate signal processing analysis strategies are determined, including time-frequency analysis using one of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform, and time-frequency analysis using at least two of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform in sequence. For each group of training samples, each candidate signal processing analysis strategy is used to calculate the energy metering, and the energy metering value corresponding to each candidate signal processing analysis strategy is obtained. The energy metering error corresponding to each candidate signal processing analysis strategy is determined based on the energy metering value corresponding to each candidate signal processing analysis strategy and the standard energy metering value. The candidate signal processing analysis strategy with the smallest energy metering error is taken as the optimal analysis strategy label for that group of training samples. Using the fused feature vector as input and the optimal analysis strategy label as output, the intelligent decision-making model is trained to obtain the trained intelligent decision-making model; Real-time acquisition of three-phase voltage and current synchronous sampling data; construction of real-time fusion feature vector in the same way as the construction of the fusion feature vector; input of the real-time fusion feature vector into the trained intelligent decision model; output of recommended signal processing and analysis strategy; and completion of power metering based on the recommended signal processing and analysis strategy.
2. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, The multiple candidate signal processing analysis strategies consist of single signal processing analysis strategies and combined signal processing analysis strategies; The single signal processing analysis strategy is to use one of the following for time-frequency analysis: Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform. The combined signal processing analysis strategy includes a first combined strategy of Fast Fourier Transform and Wavelet Transform, a second combined strategy of Fast Fourier Transform and Hilbert-Huang Transform, a third combined strategy of Wavelet Transform and Hilbert-Huang Transform, and a fourth combined strategy of Fast Fourier Transform, Wavelet Transform, and Hilbert-Huang Transform performed sequentially. In the combined signal processing analysis strategy, between two adjacent transformations, the output signal of the previous transformation is used as the input signal of the next transformation. The Fast Fourier Transform is used for fundamental and major harmonic frequency identification, the Wavelet Transform is used for local denoising and transient refinement, and the Hilbert-Huang Transform is used for mode decomposition and extraction of instantaneous frequency and instantaneous energy.
3. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, The energy metering error corresponding to each candidate signal processing and analysis strategy is calculated using the following formula: ; In the formula, Let be the power metering error corresponding to the i-th candidate signal processing and analysis strategy. The power metering value is calculated for the i-th candidate signal processing analysis strategy, where Wref is the standard power metering value and i is the sequence number of the candidate signal processing analysis strategy. The optimal analysis strategy label is determined by the following formula: ; In the formula, The optimal analysis strategy is labeled.
4. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, The extraction of characteristic parameters of three-phase voltage and current from each training sample includes: The time-domain feature parameters, frequency-domain feature parameters, and time-frequency feature parameters of each phase voltage and current in each training sample are extracted respectively. The time-domain feature parameters include variance and peak factor. The frequency-domain feature parameters include total harmonic distortion, spectral centroid and frequency offset. The time-frequency feature parameters include wavelet energy entropy and spectral entropy. The system characteristic parameters of three-phase voltage and current in each training sample group are extracted respectively. The system characteristic parameters include the three-phase voltage imbalance and the three-phase current imbalance. The basic feature vector is composed of the time-domain feature parameters, the frequency-domain feature parameters, the time-frequency feature parameters, and the system feature parameters.
5. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 4, characterized in that, The construction of the fused feature vector includes: Let the basic feature vector be denoted as For the basic feature vector Normalization is performed to obtain normalized feature vectors. : ; The normalized feature vector Each parameter in the matrix is assigned a weight, resulting in a weight matrix. The fused feature vector is denoted as : 。 6. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, Before extracting the characteristic parameters of the three-phase voltage and current in each training sample, the following steps are also included: The three-phase voltage and current synchronous sampling data of each training sample are preprocessed, including outlier removal, noise filtering, time synchronization, and phase correction.
7. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, The intelligent decision-making model is a random forest classification model, which consists of multiple decision trees. During the training process, each decision tree uses randomly selected training samples and randomly selected feature subsets to divide nodes. The division of classification nodes uses the Gini index as the division criterion.
8. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, The aforementioned sets of three-phase voltage and current synchronous sampling data are derived from at least one of the following: long-term historical data of actual power grid operation, data collected by laboratory simulation platform, and simulation data of typical operating conditions, and cover different voltage levels, different load types, and different power grid operating states.
9. The distributed photovoltaic power metering method based on signal analysis strategy selection according to claim 1, characterized in that, Also includes: Real-time recording of three-phase voltage and current synchronous sampling data, the recommended signal processing and analysis strategy, and power metering values are used as new samples; When the number of new samples reaches a preset number, or when a significant change is detected in the signal characteristic distribution of the power grid operation status, load type, or voltage level relative to the training samples, the new samples are added to the training samples to retrain the intelligent decision-making model.
10. A distributed photovoltaic power metering system based on signal analysis strategy selection, characterized in that, include: The training sample acquisition module is used to acquire several sets of three-phase voltage and current synchronous sampling data and the standard energy metering value corresponding to each set of three-phase voltage and current synchronous sampling data as training samples. The feature extraction module is used to extract the feature parameters of three-phase voltage and current in each training sample and construct a fused feature vector. The strategy labeling module is used to determine multiple candidate signal processing analysis strategies. For each group of training samples, each candidate signal processing analysis strategy is used to perform power metering calculations to obtain the power metering value corresponding to each candidate signal processing analysis strategy. The power metering error corresponding to each candidate signal processing analysis strategy is determined based on the power metering value corresponding to each candidate signal processing analysis strategy and the standard power metering value. The candidate signal processing analysis strategy with the smallest power metering error is used as the optimal analysis strategy label for that group of training samples. The model training module is used to train the intelligent decision-making model with the fused feature vector as input and the optimal analysis strategy label as output, so as to obtain the trained intelligent decision-making model. The real-time metering module is used to collect synchronous sampling data of three-phase voltage and current in real time, construct a real-time fusion feature vector in the same way as the fusion feature vector, input the real-time fusion feature vector into the trained intelligent decision model, output a recommended signal processing and analysis strategy, and complete the power metering according to the recommended signal processing and analysis strategy.
