Direct-current fault arc detection method and system based on Monte Carlo simulation feature optimization
Through the combination of Monte Carlo simulation feature optimization and BP neural network model, the accuracy and anti-interference problems of DC fault arc detection in photovoltaic power generation systems are solved, and faster and more reliable fault identification is achieved.
Patent Information
- Application Number
- CN202410727096.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing DC fault arc detection methods in photovoltaic power generation systems cannot detect faults quickly, stably and reliably. In particular, the detection and identification accuracy of fault arcs at different stages is low and the anti-interference performance is insufficient.
A method based on Monte Carlo simulation feature optimization is adopted to determine the optimal eigenmode by collecting arc data at different stages of the inverter, performing Fourier transform and empirical mode decomposition, and combining the variance contribution rate and Pearson correlation coefficient. State function, train BP neural network model, and detect DC fault arc in real time.
It improves the detection and identification accuracy of fault arcs at different stages, enhances the anti-interference performance and detection speed, effectively distinguishes between normal and fault arcs, and reduces the misjudgment rate.
Smart Images

Figure CN118731597A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a direct current power system, and in particular to a direct current fault arc detection method and system based on Monte Carlo simulation feature optimization. Background Art
[0002] With the development and application of clean energy, distributed photovoltaic power generation has become one of the key trends in the process of energy transformation. Distributed photovoltaic systems are flexible and environmentally friendly, and can better adapt to the energy needs of different regions. As an important category of photovoltaic inverters, string inverters have made great contributions to the development of distributed photovoltaics, and have also become the type of inverter that photovoltaic companies focus on research and development and innovation. However, during operation, the DC side of the inverter string may have loose cable connectors, broken insulation layers, and other reasons, resulting in DC arc faults.
[0003] In some large-scale photovoltaic power stations, the power of a string inverter can reach hundreds of kilowatts. If a fault arc occurs on the DC side and cannot be detected in time and the inverter is quickly cut off, it may cause damage to the inverter and cause serious fire accidents. Compared with parallel fault arcs, when a series fault arc occurs on the DC side of the inverter, the loop current will drop rapidly, and it is difficult to detect the fault only by setting up protection devices or detection elements in the outside. Therefore, the harm of series fault arcs is greater and it is more likely to cause electrical fires.
[0004] At present, the research methods for DC fault arc detection in photovoltaic power generation systems mainly include: detection methods based on arc light, arc sound, and electromagnetic radiation characteristics; detection methods based on arc current and voltage time-frequency domain characteristics. Among them, the detection method based on arc light, arc sound, and electromagnetic radiation characteristics studies the radiation characteristics of the arc and performs fault detection based on the spectrum characteristics, but is greatly affected by the interference of the complex environment, and is restricted by the sensors and has great limitations; the detection method based on arc current and voltage time-frequency domain characteristics is currently the most commonly used detection method, but in photovoltaic power generation systems, the scenes are complex and the components are numerous. Normal switching actions and load mutations may lead to misjudgments, and the threshold cannot change adaptively with the environment. It can be said that the existing detection methods cannot detect DC fault arcs quickly, stably and reliably, especially for the detection and identification of fault arcs at different stages, there is a problem of low accuracy. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a DC fault arc detection method and system based on Monte Carlo simulation feature optimization, which can improve the detection and identification accuracy of fault arcs at different stages, improve anti-interference performance and detection speed.
[0006] The object of the present invention can be achieved by the following technical solution: A DC fault arc detection method based on Monte Carlo simulation feature optimization, comprising the following steps:
[0007] S1, collect normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system in the set time window;
[0008] S2. Perform Fourier transform on the collected arc data, compare the spectrum of the arc at different stages with the normal current spectrum, analyze the main frequency band of arc energy concentration, and determine the bandpass filter range;
[0009] S3, real-time collection of DC side electrical quantities of the grid-connected photovoltaic system inverter under normal grid-connected and simulated fault conditions, and filtering according to the bandpass filtering range;
[0010] S4, performing Fourier transform and empirical mode decomposition (EMD) on the filtered DC side electrical quantity, combining the variance contribution rate and the Pearson correlation coefficient to determine the optimal intrinsic mode function, which is used to extract the current frequency domain and time-frequency domain information;
[0011] S5. Using Monte Carlo simulation, find the optimal feature quantity in the current frequency domain and time-frequency domain to serve as the training set for the genetic algorithm to optimize the BP (Back Propagation) neural network model, and obtain the DC fault arc detection model through training;
[0012] S6. Real-time acquisition of the current signal and calculation of the corresponding frequency domain and time-frequency domain feature quantities, which are input into the DC fault arc detection model to perform real-time detection and judgment of the DC arc.
[0013] Furthermore, the specific process of step S1 is: simulating several series DC fault arc experiments, and collecting several groups of normal and different stage arc current data within a set time window through an oscilloscope; wherein the current data of the arc at different stages include: data within the set time window after the arc peak appears, and data within the set time window after the arc peak disappears.
[0014] Furthermore, the specific process of step S2 is: after filtering out the DC component from the collected arc data time domain signal, the signal is subjected to discrete Fourier transform, and the formula is as follows:
[0015]
[0016] Where X(k) is the frequency domain signal at frequency The complex form of where x(n) is the nth sample of the time domain signal, and N is the number of samples of the signal;
[0017] The amplitude information is extracted from the discrete Fourier transform result X(k), and the formula is as follows:
[0018] A(k)=|X(k)|
[0019] Where A(k) is the frequency f k The amplitude at , that is, the spectrum value of the normal and fault arc comparison;
[0020] By comparing the frequency spectra of normal and fault arcs within the set frequency value, the common concentrated frequency band where the arcs at different stages are greater than the normal spectrum is selected as the bandpass filtering range.
[0021] Furthermore, the specific process of performing empirical mode decomposition on the filtered DC side electrical quantity in step S4 is as follows:
[0022] By iteratively decomposing the time domain signal x(t), a set of intrinsic mode functions (IMFs) and a residual term r(t) are obtained as follows:
[0023]
[0024] Among them, c i (t) is the i-th eigenmode function, I is the total number of decomposition levels;
[0025] The signal maximum point is defined as: {t j ,x j}, the minimum point is: {t k ,x k}, connect the adjacent maximum and minimum points to construct the upper and lower envelopes u of the signal up (t) and u down (t);
[0026] Calculate the smoothed signal m(t), the formula is:
[0027]
[0028] Extract the first intrinsic mode function c1(t), whose formula is:
[0029] c1(t)=x(t)-m(t)
[0030] Repeat the above process and iterate c1(t) until the preset stopping condition is met to obtain all the intrinsic mode functions, where the preset stopping condition is whether the remaining term r(t) is a function that tends to be stable or noise.
[0031] Furthermore, the specific process of determining the optimal intrinsic mode function in step S4 is:
[0032] S41, calculating the variance contribution rate of normal and different stage fault arc data at the same current level;
[0033] S42, calculating the Pearson correlation coefficient of normal and different stage fault arc data at the same current level;
[0034] S43. By comparing the variance contribution rates of the various order IMF components of normal and fault arcs at different stages, several groups of IMF components with large differences are preliminarily selected, and the optimal IMF component is determined by combining the correlation coefficients of the various order IMF components based on the normal signal and the correlation coefficients of the various order IMF components based on the original signal.
[0035] Furthermore, the variance contribution rate of the arc data in step S41 is specifically:
[0036]
[0037] Among them, VCR i is the variance contribution rate, Var(S) is the variance of the original time domain signal, Var(IMF i ) is the variance of the ith IMF component, N is the number of sampling points in a period, c i (k) is the value of the i-th IMF at the k-th sampling point, and x(k) is the value of the original signal at the k-th sampling point.
[0038] Furthermore, the specific process of step S42 is as follows:
[0039] Assuming that the normal, stage 1 arc and stage 2 arc signals are X1, X2, and X3 respectively, calculate the sample covariance between normal and different stage fault arcs and
[0040]
[0041] Compute the standard deviation of the original signal:
[0042]
[0043] Calculate the Pearson correlation coefficient between normal and fault arcs at different stages:
[0044]
[0045] Among them, r1 is the Pearson correlation coefficient of normal and stage 1 fault arc data, and r2 is the Pearson correlation coefficient of normal and stage 2 fault arc data.
[0046] Furthermore, the specific process of finding the optimal characteristic quantity in step S5 is: for several groups of frequency domain and time-frequency domain information of normal and different stage arcs, based on the Monte Carlo simulation method, characteristic statistics are obtained through different frequency band combinations, and the characteristic statistics with the largest difference between normal and fault arcs are selected as frequency domain and time-frequency domain characteristic quantities. The characteristic statistics include: the mean, standard deviation, and root mean square value of different frequency band combinations in the spectrum, that is, the mean, standard deviation, and root mean square value of different frequency band combinations in the spectrum are obtained after Fourier transform of the optimal IMF component.
[0047] Furthermore, the specific process of training the DC fault arc detection model in step S5 is: obtaining several groups of frequency domain and time-frequency domain feature quantities of normal and different stage arcs as training samples of the BP neural network model. After the training is completed, the obtained model is optimized by genetic algorithm to construct a DC fault arc detection model.
[0048] A DC fault arc detection system based on Monte Carlo simulation feature optimization, comprising:
[0049] The sampling module is used to sample the filtered electrical quantity on the DC side of the actual photovoltaic system inverter in real time;
[0050] Bandpass filter module, used to filter the electrical quantity on the DC side of the actual photovoltaic system inverter;
[0051] The communication module is used to communicate with the host computer and transmit the current signal data obtained by sampling in the current cycle;
[0052] A Fourier transform and empirical mode decomposition module, used to perform Fourier transform and empirical mode decomposition on a plurality of groups of received current signal data, and extract frequency domain and time-frequency domain feature information;
[0053] A feature extraction module is used to perform Monte Carlo simulation on the frequency domain and time-frequency domain feature information of several groups of current signals to extract the frequency domain and time-frequency domain feature quantities;
[0054] A model training module is used to use the frequency domain and time-frequency domain feature quantities obtained by the feature extraction module as BP neural network model training samples, and to construct a DC fault arc detection model through model training and optimization using a genetic algorithm;
[0055] The judgment module uses the DC fault arc detection model to judge the current signal obtained by the sampling module and detect the DC fault arc in real time.
[0056] Compared with the prior art, the present invention has the following advantages:
[0057] The present invention collects normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system in a set time window; combines Fourier transform to determine the bandpass filtering range; then collects the DC side electrical quantities of the inverter of the grid-connected photovoltaic system under normal grid-connected and simulated fault conditions in real time, and performs filtering processing according to the bandpass filtering range; then Fourier transform and empirical mode decomposition are performed on the filtered DC side electrical quantities, and the variance contribution rate and Pearson correlation coefficient are combined to determine the optimal intrinsic mode function to extract the current frequency domain and time-frequency domain information; finally, the Monte Carlo simulation method is used to find the optimal feature quantity in the current frequency domain and time-frequency domain to serve as the training set of the genetic algorithm to optimize the BP neural network model, and a DC fault arc detection model is obtained through training. Therefore, in order to solve the problems that when the actual DC fault is in the stable burning stage, the characteristic quantity is not obvious and is easily confused with the fluctuation of normal current under external interference, the Monte Carlo simulation feature optimization is used to extract the frequency domain and time-frequency domain features. For the empirical mode decomposition time domain signal, the variance contribution rate and Pearson correlation coefficient are combined to determine the optimal intrinsic mode function to increase the time-frequency domain feature effect. It can effectively determine the optimal characteristic quantity for distinguishing normal and fault arcs, thereby improving the detection and identification accuracy of fault arcs at different stages, while improving the anti-interference performance and detection speed.
[0058] The present invention can effectively improve the anti-interference and universality of characteristic information to environmental noise by finding frequency domain and time-frequency domain characteristic quantities with the smallest error in normal and fault current data sets.
[0059] The present invention adopts the Monte Carlo simulation method to extract the frequency domain and time-frequency domain feature quantities of normal and fault data sets under different working conditions as samples for training the BP neural network model, and uses a genetic algorithm to optimize the BP neural network model to avoid problems such as slow convergence of BP neural network training and easy falling into local optimal solutions, thereby further improving the detection speed and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0061] Figure 2 It is a schematic diagram of the application process of the embodiment;
[0062] Figure 3 A schematic diagram of a photovoltaic system in which an oscilloscope is used to collect electrical quantities on the DC side after simulating an arcing experiment in an embodiment;
[0063] Figure 4 The oscilloscope in the embodiment collects the time domain diagram and spectrum diagram of the normal and fault arc starting stages;
[0064] Figure 5The time domain diagram and spectrum diagram of the stable burning stage of the normal and fault arcs collected by the oscilloscope in the embodiment;
[0065] Figure 6 Schematic diagram of a DC fault arc detection system in an embodiment;
[0066] Figures 7a to 7c The time domain and spectrum diagrams of electrical quantities at different stages of normal and fault conditions collected in the embodiment;
[0067] Figure 8 This is a flow chart of empirical mode decomposition of current time domain signals in an embodiment;
[0068] Fig. 9 It is a graph of IMF components of each order of the current time domain signal decomposed by empirical mode in the embodiment;
[0069] Fig.10 The Monte Carlo simulation in the embodiment is the optimization process of frequency domain characteristics of several groups of normal and different stage fault arcs;
[0070] Fig.11 This is a frequency band combination-error distribution diagram after three feature optimizations in the embodiment;
[0071] Fig.12 A comparison diagram of normal and fault frequency domain feature quantities in the embodiment;
[0072] Fig.13 This is a BP neural network model training effect diagram in the embodiment;
[0073] Fig.14 This is a diagram showing the verification effect after the genetic algorithm optimizes the BP neural network model in the embodiment. DETAILED DESCRIPTION
[0074] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0075] Example
[0076] At present, since the characteristic information of the fault arc is easily affected by the voltage, current level and the triggering arc position, the analysis of the normal and fault waveforms of the current and voltage levels under different working conditions will find that the arcing stage is very close to the normal waveform, and the arc occurrence position is random in practice. The current information of the arc is easier to analyze than the voltage. Therefore, DC fault arc detection often takes the current component on the DC side as the research object.
[0077] When a fault arc occurs, it is difficult to distinguish the waveform of the arc in the stable burning stage from the normal waveform because it is very close to the waveform in the time domain, and it is easily disturbed by the external environmental noise. However, the fault characteristic information can be found from the frequency domain to distinguish the normal waveform. Compared with the spectrum of normal current, the energy of the DC arc is mainly distributed in the (10-100) kHz frequency band, and the harmonic content of the fault arc in this frequency band is higher. The current level has a greater impact on the energy distribution of the arc in the frequency domain. When the current level is low, the energy of the fault arc is distributed below 100kHz, but when the current level increases, there is more high-frequency noise, and the arc energy is mainly concentrated in the lower frequency band. Since the frequency domain characteristics of arcs at different stages are also different, it is easy to misjudge if only the frequency domain characteristics are used as the characteristics of fault arc detection, especially in the small arc stage, the frequency domain signal has a small degree of distinction before and after the arcing. Therefore, the empirical mode decomposition (EMD) method can be considered to perform time-frequency analysis on the original signal, which is conducive to the analysis of nonlinear and non-stationary time series signals such as arcs. However, more intrinsic mode functions (IMFs) will be obtained after decomposition, and the number of IMF components after decomposition of different signals may be different. Therefore, the variance contribution rate can be selected to select the optimal IMF component, but there will be a certain stage where the variance contribution rate of the arc signal is small, which will cause errors and eventually lead to misjudgment. However, different loads, current levels and voltage levels may affect the arc, and in practice, the input voltage level of the inverter DC side may exceed 1000V. In order to reduce the false alarm rate and missed alarm rate of fault arc detection, the machine learning algorithm is introduced into arc detection. However, it has high hardware requirements and high implementation costs, and most of them remain in the theoretical research stage.
[0078] Based on the above description, refer to Figure 1 ,This scheme proposes a DC fault arc detection method based on Monte Carlo simulation feature optimization, including the following steps:
[0079] S1. Collect normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system in a set time window. Specifically, by simulating several series DC fault arc experiments, collect several groups of normal and different stages of arc current data in the set time window through an oscilloscope; wherein the arc current data at different stages include: data in the set time window after the arc peak appears, and data in the set time window after the arc peak disappears;
[0080] S2. Perform Fourier transform on the collected arc data, compare the spectrum of the arc at different stages with the normal current spectrum, analyze the main frequency band of arc energy concentration, and determine the bandpass filter range. Specifically, after filtering out the DC component of the time domain signal, perform discrete Fourier transform, and the formula is as follows:
[0081]
[0082] Where X(k) is the frequency domain signal at frequency The complex form of where x(n) is the nth sample of the time domain signal, and N is the number of samples of the signal;
[0083] Extract the amplitude information from the discrete Fourier transform result X(k), and the formula is as follows:
[0084] A(k)=|X(k)|
[0085] Where A(k) is the frequency f k The amplitude at , that is, the spectrum value of the normal and fault arc comparison;
[0086] Compare the spectrum diagrams of normal and fault arc within 100kHz, and select the common concentrated frequency bands where the arc at different stages is greater than the normal spectrum as the range of the bandpass filter circuit;
[0087] S3, real-time collection of DC side electrical quantities of the grid-connected photovoltaic system inverter under normal grid-connected and simulated fault conditions, and filtering according to the bandpass filtering range. Specifically, several groups of DC side electrical quantities under normal and fault conditions after bandpass filtering can be obtained through AD sampling, including: AC components of DC current;
[0088] S4. Perform Fourier transform and empirical mode decomposition on the filtered DC side electrical quantity, and determine the optimal intrinsic mode function by combining the variance contribution rate and Pearson correlation coefficient to extract the current frequency domain and time-frequency domain information. Specifically, for the empirical mode decomposition time domain signal, it includes:
[0089] Using the EMD method, by iteratively decomposing the time domain signal x(t), a set of intrinsic mode functions (IMFs) and a residual term r(t) are obtained, as shown below:
[0090]
[0091] Among them, c i (t) is the i-th eigenmode function, I is the total number of decomposition levels;
[0092] The signal maximum point is defined as: {t j ,x j}, the minimum point is: {t k ,x k}, connect the adjacent maximum and minimum points to construct the upper and lower envelopes u of the signal up (t) and u down (t);
[0093] Calculate the smoothed signal m(t), the formula is:
[0094]
[0095] Extract the first intrinsic mode function c1(t), whose formula is:
[0096] c1(t)=x(t)-m(t)
[0097] Repeat the above process and iterate c1(t) until the preset stop condition is met to obtain all the intrinsic mode functions, where the preset stop condition is whether the remaining term r(t) is a function that tends to be stable or noise;
[0098] For the sampled normal and fault arc time domain signals, a set of intrinsic mode functions are obtained through the above-mentioned empirical mode decomposition, and then the variance contribution rate and Pearson correlation coefficient are combined to determine the optimal intrinsic mode function, including:
[0099] The variance contribution rate of normal and different stage fault arc data under the same current level is calculated as follows:
[0100] Compute the variance of the original time-domain signal:
[0101]
[0102] Calculate the variance of each IMF component:
[0103]
[0104] Calculate the variance contribution:
[0105]
[0106] Where N is the number of sampling points in a cycle, c i (k) is the value of the i-th IMF at the k-th sampling point, and x(k) is the value of the original signal at the k-th sampling point;
[0107] Calculate the Pearson correlation coefficient of normal and different stage fault arc data at the same current level. Assuming that the normal, stage 1 arc and stage 2 arc signals are X1, X2, and X3 respectively, the formula is as follows:
[0108] Calculate the sample covariance between normal and fault arcs at different stages and as follows:
[0109]
[0110] Calculate the standard deviation of the original signal as follows:
[0111]
[0112] The Pearson correlation coefficient between normal and fault arcs at different stages is calculated as follows:
[0113]
[0114] By comparing the variance contribution rates of each order IMF components of normal and fault arcs at different stages, several groups of IMF components with large differences are preliminarily selected, and the correlation coefficients of each order IMF components based on the normal signal and the correlation coefficients of each order IMF components based on the original signal are combined to determine the optimal IMF component.
[0115] S5. Using Monte Carlo simulation, find the optimal feature quantity in the current frequency domain and time-frequency domain to serve as the training set for the genetic algorithm to optimize the BP neural network model. A DC fault arc detection model is obtained through training. Specifically, for several groups of frequency domain and time-frequency domain information of normal arcs and arcs in different stages, a method based on Monte Carlo simulation is proposed. Feature statistics are obtained through different frequency band combinations. Feature statistics with the largest difference between normal and fault arcs are selected as frequency domain and time-frequency domain feature quantities. Feature statistics include: mean, standard deviation, root mean square value, etc. of different frequency band combinations in the spectrum. The mean, standard deviation, root mean square value, etc. of different frequency band combinations in the spectrum are obtained after Fourier transformation of the optimal IMF component.
[0116] The obtained frequency domain and time-frequency domain feature quantities of normal and different-stage arcs are used as training samples of the BP neural network model. After the training, the obtained model is optimized by genetic algorithm to construct a DC fault arc detection model.
[0117] S6. Real-time acquisition of the current signal and calculation of the corresponding frequency domain and time-frequency domain feature quantities, which are input into the DC fault arc detection model to perform real-time detection and judgment of the DC arc.
[0118] This embodiment applies the above technical solution, such as Figure 2 As shown, the main ones are:
[0119] 1. Use an oscilloscope to collect normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system with a 10ms time window;
[0120] Second, perform Fourier transform on the collected current signal, compare the spectrum of the arc at different stages with the normal current spectrum, analyze the main frequency band where the arc energy is concentrated, and determine the bandpass filter range;
[0121] 3. Real-time collection of DC-side electrical quantities of the grid-connected photovoltaic system inverter under normal grid-connected and simulated fault conditions;
[0122] Fourth, perform Fourier transform and empirical mode decomposition on the sampled current signal, use the method combining variance contribution rate and Pearson correlation coefficient to determine the optimal intrinsic mode function, and extract the current frequency domain and time-frequency domain information;
[0123] 5. Use Monte Carlo simulation to find the optimal feature quantity in the current frequency domain and time-frequency domain as the training set for the genetic algorithm to optimize the BP neural network model. After the training, build a DC fault arc detection model;
[0124] 6. Real-time sampling is used to obtain current signals and calculate the frequency domain and time-frequency domain feature quantities, which are then input into the trained detection model to make real-time judgments on DC arcs.
[0125] Combination Figure 3 As shown, in step 1: simulate several DC fault arc experiments, set the oscilloscope sampling frequency f=4MHz, the time window is 10ms, the number of sampling points: N=40000, AC coupling and other parameters, and collect normal and fault arc data at different stages of the inverter grid-connected state in several groups of photovoltaic systems under three current levels.
[0126] Combination Figure 4 , Figure 5 As shown, in step 2: filter out the DC component of the collected current data and then perform Fourier transform to calculate the spectrum value of each group. Since the energy of the fault arc is mainly concentrated below 100kHz, in order to enhance the contrast of the frequency domain information, this embodiment represents the spectrum in logarithmic form with a base of 10, and observes the energy of the normal, arc starting stage and stable combustion stage. Figure 4 It can be seen that above 50kHz, the frequency domain energy of the normal and fault initiation stages will be basically confused due to factors such as environmental noise and inverter control strategy. And as the current level decreases, the distinction within [20-50]kHz will become less and less obvious. However, among the three current levels, the distinction below 20kHz is the most obvious. Figure 5 It can be seen that above 30kHz, the frequency domain energy of the arc stable burning stage is basically mixed with the normal environmental noise, and as the current level decreases, only the information below 20kHz has a good degree of distinction, but the frequency domain energy will weaken as the current level decreases. In summary, this embodiment considers the bandpass filter circuit range to be [2-20]kHz.
[0127] This embodiment also provides a DC fault arc detection system, combined with Figure 6As shown, it mainly includes a sampling module, a bandpass filtering module, a communication module, a Fourier transform and empirical mode decomposition module, a feature extraction module, a model training module and a judgment module. In step three and step four: through the sampling module, a large number of normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system are obtained, and the spectrum value of each group of data is calculated after Fourier transform, wherein a group of time domain and spectrum diagrams of normal, arc starting stage and stable combustion stage are shown in Figure 7. Compared with the normal current spectrum diagram, the arc starting and stable combustion stages have obvious energy increase below 20kHz, and the energy in the starting stage is greater than that in the combustion stage, mainly concentrated in the area below 16kHz. The current data is obtained through the sampling module and the normal and fault current data sets are constructed. Since the string inverter requires multi-channel string input, this embodiment realizes the sampling of multi-channel string access signals through a current transformer, which includes the current data of the normal operation of the inverter under various working conditions, and the data of different combinations of the number of strings and their directions in the current transformer, and the data of different strings when the fault arc experiment is performed. Only by finding the unique frequency band where the fault arc appears in the current spectrum under different working conditions and extracting the frequency domain feature quantity can the real-time fault arc detection be realized more accurately. In step 4: the current data is obtained through the sampling module, and the current signal is subjected to empirical mode decomposition. The specific decomposition process is as follows: Figure 8 As shown. Fig. 9 As shown in the figure, there are many IMF components after decomposition. If all the components are selected as time-frequency domain features, the calculation time of the arc detection circuit will be increased, resulting in an increase in arc detection time. Secondly, some unnecessary components will confuse the characteristic information of normal current and arcing stage current, reducing the accuracy of recognition. Therefore, in order to obtain the optimal IMF component, this scheme proposes an IMF component determination method based on Pearson correlation analysis in combination with the variance contribution rate of each component.
[0128] Among them, the variance contribution rate of any set of current data is shown in Table 1:
[0129] Table 1 Variance contribution rate of each order IMF component
[0130]
[0131] As shown in Table 1, under the three working conditions, the variance contribution rate of the IMF1 component is the largest, and the variance contribution rates of the remaining IMF components of each order are relatively small, indicating that the main energy distribution is concentrated in the IMF1 component. However, the difference between the variance contribution rates of IMF1 in the normal and arcing and arcing stages is the smallest, and the difference between the variance contribution rates of IMF2 and IMF3 is the largest, indicating that when a fault occurs, it will cause the energy of the IMF2 and IMF3 components to increase. In order to further determine which component between the IMF2 and IMF3 components can better reflect the characteristic information of the fault arc at different stages.
[0132] Solve the Pearson correlation coefficient under different working conditions, find the IMF component with the smallest correlation with the original signal and the largest difference with other working conditions, and perform the following steps:
[0133] Taking the IMF components of each order of the normal signal as the benchmark, the correlation coefficients of the IMF components of arcing and arcing relative to the normal are calculated as shown in Table 2. Taking the original signals of normal, arcing and arcing as the benchmark, the correlation coefficients of the IMF components of each order relative to the original signal are calculated as shown in Table 3.
[0134] Table 2 Correlation coefficients based on normal signal IMF components of various orders
[0135] Quantity normal Arc Starting Arc IMF1 1.0000 -0.6884 -0.9146 IMF2 1.0000 0.0912 0.0553 IMF3 1.0000 0.0204 0.0018 IMF4 1.0000 0.0656 0.1093 IMF5 1.0000 0.2643 0.3395 IMF6 1.0000 0.3152 -0.3632
[0136] Table 3 Correlation coefficients of IMF components of various orders based on the original signal
[0137]
[0138] From the analysis in Table 2, we can see that the correlation coefficients of the IMF2 and IMF3 components of the arcing and arcing signals are all less than 0.1 compared with the normal signals, indicating that the normal and faulty data in these two components have a certain degree of distinction. If the IMF1 component is selected, the three correlations are large, and the corresponding waveforms of the normal, arcing and arcing signals are close, which will lead to misjudgment;
[0139] From the analysis in Table 3, we can see that: taking the original signals of the three signals as the reference, the IMF2 component of the normal signal is small, and the IMF2 component of arcing and arcing is the most different from the normal one. Therefore, the IMF2 component is selected as the time-frequency domain feature information to distinguish normal and fault currents.
[0140] In step five: a large number of normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system are obtained through the sampling module; after the filtering module, the higher frequency components are filtered out to avoid interference caused by environmental noise; and then the frequency domain and time-frequency domain information of several groups of normal and fault arcs at different stages are obtained through the Fourier transform and empirical mode decomposition modules, including: the spectrum energy distribution below 20kHz and the IMF2 component with the largest difference between normal and fault arcs. Using the frequency domain and time-frequency domain information directly as the input of the model training module may lead to too long training time and easy overfitting, which will eventually affect the detection accuracy of the arc judgment module. Therefore, for the frequency domain and time-frequency domain information, feature selection and dimensionality reduction are required to select the most representative features to reduce the data dimension. This scheme proposes a method based on Monte Carlo simulation feature optimization, randomly disrupting the arrangement order of the two normal and fault data sets, selecting statistics for analysis and comparison, so as to obtain the optimal feature frequency band to distinguish the two.
[0141] Among them, the specific steps of selecting frequency domain feature quantities are as follows:
[0142] (1) Select random numbers and disrupt the order of each set of normal and fault data sets;
[0143] (2) Select statistics and make an error function for comparison. The error function is: err = (N_X>F_X) number / number of groups, where: N_X refers to the statistics of a certain frequency band. The total number of groups that are greater than the fault is the number of errors. Finally, divide it by the number of groups to get the error percentage. The statistics include the following: Assume that a cycle current collected in the arc detection circuit is: i(t), and its frequency domain contains N frequency points: x1, x2, ... x i ,…,x N .
[0144] Table 4 Characteristic statistics formula
[0145]
[0146] (3) Start traversing from the first point and solve the error function;
[0147] (4) After solving the error function once, the order of the normal and faulty data sets is disrupted, the error is solved again, and finally all the error function results are obtained.
[0148] Taking the standard deviation of the optimal frequency band in the normal and fault frequency domains as an example, 100 sets of detection cycle data are selected, including 50 sets of normal data and 50 sets of fault currents. The process of frequency domain feature optimization using Monte Carlo simulation is shown in the figure. Fig.10. Since the switching frequency 16kHz accounts for a large proportion, it may interfere with the characteristic frequency band optimization. Therefore, only the components below 16kHz are optimized for the characteristic frequency band. The frequency band points below 16kHz are divided into: 1-2, 1-3, 1-4, ..., 2-1, ..., 48-49, a total of 1176 frequency band points, each point represents the standard deviation error obtained by averaging the error results after 1000 times of scrambling. In order to avoid the randomness of the optimization result, the above process is repeated three times to obtain the frequency band error distribution diagram. Fig.11 Specifically, the optimal frequency band distribution is shown in Table 5:
[0149] Table 5 Optimal frequency band distribution table
[0150] Optimization times Frequency band combination Corresponding frequency band point Corresponding frequency band / kHz Minimum error 1 805 22:29 (7.15-9.425) 0.0083 2 806 22:30 (7.15-9.75) 0.01 3 829 23:27 (7.475-8.775) 0.009
[0151] After three Monte Carlo simulation feature optimizations, the best frequency band combinations are all distributed around 800, which shows that multiple optimizations using Monte Carlo simulations will cause certain errors, but they can always be kept within a certain deviation range. Finally, the frequency band combination 805 with the smallest error in the three optimizations was selected, that is, for the frequency domain standard deviation feature, the optimal frequency band is concentrated at (7.15-9.425) kHz, and its minimum error is 0.0083. Finally, more feature statistics are selected to use Monte Carlo simulations to optimize, and the best feature quantity for distinguishing normal and faulty in the frequency domain is obtained (see Fig.12 ), including but not limited to Fig.12 The four types of feature quantities are shown.
[0152] Among them, the specific steps of selecting frequency domain feature quantities are as follows:
[0153] (1) Calculate the IMF2 components of the normal and fault arc data sets and perform Fourier transform;
[0154] (2) Repeat the above process and finally obtain the following types of time-frequency domain feature quantities with the smallest errors:
[0155] Table 6 Summary of time-frequency domain feature quantities
[0156] Frequency domain feature Optimal frequency band / kHz Minimum error Standard Deviation (6.825-15.6) 0.0015 Mean (6.175-10.075) 0.0010 RMS value (6.5-12.350) 0.0009 Discrete Values (6.175-10.725) 0.0009
[0157] Therefore, the Monte Carlo simulation method is used to extract the frequency domain and time-frequency domain features of normal and faulty data sets under different working conditions as samples for training the artificial intelligence neural network model. The model output value of normal data is set to 0, and the model output value of faulty data is set to 1000, which is convenient for judging the calculation of the module and the subsequent adjustment of the detection threshold. The detection effects of the training set, test set and validation set are shown in Fig.13In order to avoid the problem that the neural network model is prone to fall into the local optimal solution, the genetic algorithm is used to optimize it and 23 sets of data are verified to compare the verification results. Fig.14 .
[0158] In step six, a current signal of one cycle is obtained through the sampling module, and the higher frequency components that may cause interference are filtered out through the bandpass filtering module, while the low frequency components with higher contrast are retained; the frequency domain and time-frequency domain information of the current cycle are obtained through the Fourier transform and empirical mode decomposition modules, and the optimal feature quantity is extracted through the feature extraction module. Finally, the judgment module determines whether the model output value is greater than the set detection threshold for multiple consecutive times (set number of times). If so, it is determined that an arc fault occurs, otherwise it is determined that no arc fault occurs.
[0159] In summary, this scheme studies the current data collected under various working conditions such as different current levels, line impedances, control strategies, and external sudden interference, in order to effectively determine the optimal feature quantity for distinguishing normal and fault arcs. And by finding the frequency domain and time-frequency domain feature quantities with the smallest error in the normal and fault current data sets, the anti-interference and universality of the feature information to environmental noise are finally improved. In addition, the BP neural network model is optimized using a genetic algorithm to avoid problems such as slow convergence of BP neural network training and easy to fall into local optimal solutions. This scheme can improve the accuracy of inverter DC fault arc detection in photovoltaic systems and reduce the false alarm rate during normal grid-connected operation of actual photovoltaic systems. It has the advantages of less external interference and fast detection speed.
Claims
1. A DC fault arc detection method based on Monte Carlo simulation feature optimization, characterized in that: The following steps are involved: S1, collect normal and fault arc data at different stages of the inverter grid-connected state in the photovoltaic system in the set time window; S2. Perform Fourier transform on the collected arc data, compare the spectrum of the arc at different stages with the normal current spectrum, analyze the main frequency band of arc energy concentration, and determine the bandpass filter range; S3, real-time collection of DC side electrical quantities of the grid-connected photovoltaic system inverter under normal grid-connected and simulated fault conditions, and filtering according to the bandpass filtering range; S4. Perform Fourier transform and empirical mode decomposition on the filtered DC side electrical quantity, and determine the optimal intrinsic mode function by combining the variance contribution rate and the Pearson correlation coefficient to extract the current frequency domain and time-frequency domain information; S5. Using Monte Carlo simulation, find the optimal feature quantity in the current frequency domain and time-frequency domain to serve as the training set for the genetic algorithm to optimize the BP neural network model, and obtain the DC fault arc detection model through training; S6. Real-time acquisition of the current signal and calculation of the corresponding frequency domain and time-frequency domain feature quantities, which are input into the DC fault arc detection model to perform real-time detection and judgment of the DC arc.
2. A DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 1, characterized in that: The specific process of step S1 is: simulating several series DC fault arc experiments, and collecting several groups of normal and different stage arc current data within a set time window through an oscilloscope; wherein the current data of the arc at different stages include: data within the set time window after the arc peak appears, and data within the set time window after the arc peak disappears.
3. The DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 1 is characterized in that: The specific process of step S2 is: after filtering out the DC component from the collected arc data time domain signal, the signal is subjected to discrete Fourier transform, and the formula is as follows: Where X(k) is the frequency domain signal at frequency The complex form of where x(n) is the nth sample of the time domain signal, and N is the number of samples of the signal; The amplitude information is extracted from the discrete Fourier transform result X(k), and the formula is as follows: A(k)=|X(k)| Where A(k) is the frequency f k The amplitude at , that is, the spectrum value of the normal and fault arc comparison; By comparing the frequency spectra of normal and fault arcs within the set frequency value, the common concentrated frequency band where the arcs at different stages are greater than the normal spectrum is selected as the bandpass filtering range.
4. The DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 3 is characterized in that: The specific process of performing empirical mode decomposition on the filtered DC side electrical quantity in step S4 is as follows: By iteratively decomposing the time domain signal x(t), a set of intrinsic mode functions (IMFs) and a residual term r(t) are obtained as follows: Among them, c i (t) is the i-th eigenmode function, I is the total number of decomposition levels; The signal maximum point is defined as: {t j ,x j }, the minimum point is: {t k ,x k }, connect the adjacent maximum and minimum points to construct the upper and lower envelopes u of the signal up (t) and u down (t); Calculate the smoothed signal m(t), the formula is: Extract the first intrinsic mode function c1(t), whose formula is: c1(t)=x(t)-m(t) Repeat the above process and iterate c1(t) until the preset stopping condition is met to obtain all the intrinsic mode functions, where the preset stopping condition is whether the remaining term r(t) is a function that tends to be stable or noise.
5. The DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 4 is characterized in that: The specific process of determining the optimal intrinsic mode function in step S4 is: S41, calculating the variance contribution rate of normal and different stage fault arc data at the same current level; S42, calculating the Pearson correlation coefficient of normal and different stage fault arc data at the same current level; S43. By comparing the variance contribution rates of the various order IMF components of normal and fault arcs at different stages, several groups of IMF components with large differences are preliminarily selected, and the optimal IMF component is determined by combining the correlation coefficients of the various order IMF components based on the normal signal and the correlation coefficients of the various order IMF components based on the original signal.
6. A DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 5, characterized in that: The variance contribution rate of the arc data in step S41 is specifically: Among them, VCR i is the variance contribution rate, Var(S) is the variance of the original time domain signal, Var(IMF i ) is the variance of the ith IMF component, N is the number of sampling points in a period, c i (k) is the value of the i-th IMF at the k-th sampling point, and x(k) is the value of the original signal at the k-th sampling point.
7. The DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 5 is characterized in that: The specific process of step S42 is as follows: Assuming that the normal, stage 1 arc and stage 2 arc signals are X1, X2, and X3 respectively, calculate the sample covariance between normal and different stage fault arcs and Compute the standard deviation of the original signal: Calculate the Pearson correlation coefficient between normal and fault arcs at different stages: Among them, r1 is the Pearson correlation coefficient of normal and stage 1 fault arc data, and r2 is the Pearson correlation coefficient of normal and stage 2 fault arc data.
8. The DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 5, characterized in that: The specific process of finding the optimal characteristic quantity in step S5 is: for several groups of frequency domain and time-frequency domain information of normal and different stage arcs, based on the Monte Carlo simulation method, characteristic statistics are obtained through different frequency band combinations, and the characteristic statistics with the largest difference between normal and fault arcs are selected as frequency domain and time-frequency domain characteristic quantities. The characteristic statistics include: the mean, standard deviation, and root mean square value of different frequency band combinations in the spectrum, that is, the mean, standard deviation, and root mean square value of different frequency band combinations in the spectrum are obtained after Fourier transform of the optimal IMF component.
9. A DC fault arc detection method based on Monte Carlo simulation feature optimization according to claim 8, characterized in that: The specific process of training the DC fault arc detection model in step S5 is: obtaining several groups of frequency domain and time-frequency domain feature quantities of normal and different stage arcs as training samples of the BP neural network model. After the training is completed, the obtained model is optimized by genetic algorithm to construct a DC fault arc detection model.
10. A DC fault arc detection system based on Monte Carlo simulation feature optimization, using the DC fault arc detection method based on Monte Carlo simulation feature optimization as claimed in any one of claims 1 to 9, characterized in that: include: The sampling module is used to sample the filtered electrical quantity on the DC side of the actual photovoltaic system inverter in real time; Bandpass filter module, used to filter the electrical quantity on the DC side of the actual photovoltaic system inverter; The communication module is used to communicate with the host computer and transmit the current signal data obtained by sampling in the current cycle; A Fourier transform and empirical mode decomposition module, used to perform Fourier transform and empirical mode decomposition on a plurality of groups of received current signal data, and extract frequency domain and time-frequency domain feature information; A feature extraction module is used to perform Monte Carlo simulation on the frequency domain and time-frequency domain feature information of several groups of current signals to extract the frequency domain and time-frequency domain feature quantities; A model training module is used to use the frequency domain and time-frequency domain feature quantities obtained by the feature extraction module as BP neural network model training samples, and to construct a DC fault arc detection model through model training and optimization using a genetic algorithm; The judgment module uses the DC fault arc detection model to judge the current signal obtained by the sampling module and detect the DC fault arc in real time.
Citation Information
Patent Citations
Low-voltage AC arc fault detection method based on characteristic mode component energy analysis
CN105067966A
Photovoltaic system direct current side arc fault detection apparatus and detection method
CN107294494A
Ship GMAW welding seam forming prediction method based on particle filtering
CN116842814A
Systems and methods for predictive monitoring including real-time strength and security analysis in an electrical power distribution system
US20070286089A1
Cited By
Photovoltaic DC system fault detection method and device based on line spectrum suppression
CN120103086A
Intelligent DC circuit breaker arc energy suppression system and method thereof
CN120184850A
Characteristic wave identification method and device in roadbed compaction
CN121935509A
