Arc fault detection method and device, electronic equipment and storage medium

By acquiring and processing the time domain and frequency domain characteristics of the current signal, combined with the entropy weight method and the random forest model, the accuracy of arc fault detection is improved, the problem of low detection accuracy in the existing technology is solved, and the detection of arc faults is enhanced. recognition ability.

CN118731598APending Publication Date: 2024-10-01GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410727635.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing arc fault detection methods have low accuracy and cannot identify arc faults in time, which may spread to adjacent circuits, causing damage or fire accidents.

Method used

By obtaining the time domain and frequency domain characteristics of the current signal to be identified, determining its weight, and comprehensively processing it to determine whether the current signal is a fault arc, the entropy weight method and the random forest model are used to improve detection accuracy.

Benefits of technology

It improves the accuracy of arc fault detection, avoids the instability of single time domain characteristics, enhances the ability to identify fault arcs, reduces the amount of calculation, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118731598A_ABST
    Figure CN118731598A_ABST
Patent Text Reader

Abstract

The invention discloses an arc fault detection method and device, electronic equipment and a storage medium, and relates to the technical field of arc fault detection. The method comprises the following steps: acquiring a to-be-identified current signal, and determining at least two time domain features and at least one frequency domain feature of the to-be-identified current signal; determining the weight of each time domain feature, and determining a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature; and according to the comprehensive time domain feature and the at least one frequency domain feature, determining whether the current signal to be identified is a fault arc current under the target load type. According to the scheme, the comprehensive time domain weight is determined according to the multiple time domain features and the corresponding weights, and instability of a single time domain feature is avoided; meanwhile, arc fault detection is carried out based on the comprehensive time domain characteristics and the frequency domain characteristics, so that the accuracy of arc fault detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of arc fault detection, and in particular to an arc fault detection method, device, electronic equipment and storage medium. Background Art

[0002] In the power supply system, arc faults occur when insulation is damaged, metal joints are loose, and components are aged. For AC arcs, when an arc fault occurs, the current will pass through zero, resulting in a "zero-interest" phenomenon. Once an arc occurs, if it is not detected in time, the fault may spread to adjacent circuits, causing damage to photovoltaic modules, transmission lines, and control systems. In severe cases, continuous arc burning may lead to fire accidents. Therefore, the study of arc detection methods is of great practical significance.

[0003] Currently, a single current feature is mainly used for arc fault detection, but the accuracy of this arc fault detection method is relatively low, so a new arc fault detection method is urgently needed. Summary of the invention

[0004] The invention provides an arc fault detection method, device, electronic equipment and storage medium.

[0005] According to another aspect of the present invention, there is provided an arc fault detection method, comprising:

[0006] Acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified;

[0007] Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature;

[0008] According to the comprehensive time domain feature and at least one frequency domain feature, it is determined whether the current signal to be identified is a fault arc current under a target load type.

[0009] According to another aspect of the present invention, there is provided an arc fault detection device, the device comprising:

[0010] A feature acquisition module, used to acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified;

[0011] A feature processing module, used to determine the weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature;

[0012] The arc detection module is used to determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the arc fault detection method described in the embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the arc fault detection method described in the embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention determines the comprehensive time domain weight according to multiple time domain features and their corresponding weights, thereby avoiding the instability of a single time domain feature; and simultaneously performs arc fault detection based on the comprehensive time domain features and frequency domain features, thereby improving the accuracy of arc fault detection.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of an arc fault detection method provided according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of an arc fault detection method provided according to an embodiment of the present invention;

[0023] Figure 3a is a flow chart of an arc fault detection method provided according to an embodiment of the present invention;

[0024] Figure 3b is a schematic diagram of a fault arc generation platform provided according to an embodiment of the present invention;

[0025] Figure 3c is a schematic diagram of a normal current spectrum under a single load provided according to an embodiment of the present invention;

[0026] Figure 3d is a schematic diagram of a fault arc spectrum under a single load provided according to an embodiment of the present invention;

[0027] Figure 4 is a structural schematic diagram of an arc fault detection device provided according to an embodiment of the present invention;

[0028] Figure 5 It is a structural schematic diagram of an electronic device for implementing the arc fault detection method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] Embodiment 1

[0031] Figure 1 A flow chart of an arc fault detection method provided in an embodiment of the present invention. This embodiment can be applied to the scenario of detecting fault arcs in a certain power system. The method can be executed by an arc fault detection device. The arc fault detection device can be implemented in the form of hardware and / or software. The arc fault detection device can be configured in an electronic device.

[0032] like Figure 1 As shown, the arc fault detection method includes:

[0033] S101, obtaining a current signal to be identified, and determining at least two time domain features and at least one frequency domain feature of the current signal to be identified.

[0034] In an embodiment of the present invention, the current signal to be identified can be optionally collected from the power system by a current sampling device according to a preset sampling frequency, and the power system includes a circuit in which loads such as resistors, capacitors and inductors are connected in series. Since the collected current signal to be identified is a time domain signal, the time domain analysis can be directly performed on the current signal to be identified to obtain at least two time domain features of the current signal to be identified. In order to determine at least one frequency domain feature of the current signal to be identified, it is necessary to perform a short-time Fourier transform on the collected current signal to be identified so as to convert the current signal to be identified into a current spectrum in the frequency domain, and then determine at least one frequency domain feature based on the converted current spectrum in the frequency domain.

[0035] In an embodiment of the present invention, the time domain features include at least two of the peak-to-peak value, mean value, and standard deviation. The peak-to-peak value is a physical quantity that can reflect signal fluctuations. The larger the peak-to-peak value, the greater the degree of data fluctuation. When calculating, the peak-to-peak value refers to the difference between the highest value and the lowest value of the current signal, that is, the difference between the maximum positive value and the maximum negative value on the waveform. For example, the peak-to-peak value x ff It can be calculated according to the following formula: ff =max(x)-min(x); where x is a signal point in the current signal to be identified, max(x) is the maximum value of the current signal to be identified, and min(x) is the minimum value of the current signal. Represents the current component of the signal, and the mean value is calculated as follows: Where N represents the number of signal points in the current signal to be identified; x(i) represents the data value of the i-th signal point. The standard deviation can reflect the dispersion of the current signal to be identified and can be used to measure the magnitude of the fluctuation of the current signal to be identified. The data values ​​of different signal points in the current signal to be identified are determined as follows: x(1), x(2)...x(n), and the standard deviation is calculated as follows: Among them, x st is the standard deviation, x st is the mean, N is the number of signal points in the current signal to be identified, and x(i) is the signal data value of the i-th signal point in the current signal to be identified.

[0036] In the embodiment of the present invention, considering whether the circuit in the power system is working normally or the signal has a certain randomness when an arc fault occurs, the frequency domain features analyzed by the present invention are mainly based on statistical significance, and the frequency domain features are exemplarily selected from at least one of the spectrum mean and the spectrum standard deviation. Optionally, after the current signal to be identified is converted to the frequency domain through Fourier transform, the spectrum mean is determined according to the following formula based on the converted frequency domain current signal Where N is the number of sampling frequencies in the current spectrum; x i Represents the current data value at the i-th sampling frequency. The spectrum standard deviation xst The formula is as follows: in, is the spectrum mean, N is the number of sampling frequencies in the current spectrum; x i Represents the current data value at the i-th sampling frequency.

[0037] S102: Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature.

[0038] In the embodiment of the present invention, the weight of the time domain feature is used to measure the importance of the time domain feature in the subsequent prediction of the fault arc current. When calculating the weight of each time domain feature, any one of the following methods can be used: Entropy Weight Method, Normalization Method, Information Condensation Methods, AHP Hierarchy Process, CRITIC Weight Method, Model-Based Weight Calculation.

[0039] In the embodiment of the present invention, the entropy weight method is optionally used to determine the weight of each time domain feature. Among them, the entropy weight method is an objective weight method. In the specific use process, according to the data discreteness of each indicator (such as the time domain feature in the present invention), the entropy weight of each indicator is calculated using information entropy, and then the entropy weight is corrected to a certain extent according to each indicator, so as to obtain a relatively objective weight of the indicator. The principle of calculating the weight of the entropy weight method is as follows: First, the data of each indicator is normalized. Since positive indicators are used (here, time domain features such as peak-to-peak value, mean and standard deviation, the higher the value of positive indicators, the better), the formula used is as follows: Among them, x j is the jth index value, x ij is the jth index value of the i-th observation object, x' ij is the normalized value of the jth indicator of the ith observation object. Further, the proportion of the jth indicator of the ith observation object is calculated: Among them, P ij is the ratio of each indicator to the total indicator. m is the number of the jth indicator of the i-th observation object. Further, the information entropy of the jth indicator is calculated: e j (0≤e j ≤1) is the entropy value of the jth indicator; is the information entropy coefficient. Further, calculate the weight of the jth indicator:

[0040] In an embodiment of the present invention, after determining the weight of each time domain feature based on the entropy weight method, feature weighted summation processing can be performed on at least two time domain features to obtain the comprehensive time domain feature. Exemplarily, X is determined as the peak-to-peak value, Y is the mean, and Z is the standard deviation. The weights determined by the entropy weight method are a, b, and c, respectively, then the comprehensive time domain feature G=aX+bY+cZ.

[0041] It should be noted that, at present, neural network algorithms often use a single time domain feature as input in time domain feature selection, with a single detection index, low accuracy, and instability. Taking these defects into consideration, the present invention creatively uses the entropy weight method to solve the weight of the time domain feature to form a comprehensive time domain feature, so that the fault arc current can be accurately detected based on the comprehensive time domain feature.

[0042] S103. Determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature.

[0043] In the embodiment of the present invention, the target load type includes a single load consisting of a single resistor R, a single inductor L or a single capacitor C and having a typical load value, a mixed load consisting of a resistor R and an inductor L in series and having a typical load value, a mixed load consisting of a resistor R and a capacitor C in parallel and having a typical load value, and a mixed load consisting of a resistor R and an inductor L in series and in parallel with a capacitor C and having a typical load value. Exemplarily, the target load type can be seen in Table 1.

[0044] Table 1

[0045]

[0046]

[0047] Among them, load types A, B, and C are single loads with typical load values; load types D, E, and F are mixed loads consisting of a resistor R and an inductor L in series and having typical load values; load types G, H, and I are mixed loads consisting of a resistor R and a capacitor C in parallel and having typical load values; load type J is a mixed load consisting of a resistor R and an inductor L in series and a capacitor C in parallel and having a typical load value.

[0048] In an embodiment of the present invention, the comprehensive time domain characteristics and frequency domain characteristics of the fault arc current under different target load types can be predetermined, and then after obtaining the comprehensive time domain characteristics and frequency domain characteristics of the current signal to be identified, the comprehensive time domain characteristics and frequency domain characteristics of the current signal to be identified are compared with the comprehensive time domain characteristics and frequency domain characteristics of the fault arc current under different target load types in turn, and according to the degree of similarity, it is determined whether the current signal to be identified is the fault arc current under the target load type. Exemplarily, if the similarity between the comprehensive time domain characteristics and frequency domain characteristics of the current signal to be identified and the comprehensive time domain characteristics and frequency domain characteristics of the fault arc current under a certain target load type exceeds a preset maximum threshold (for example, 90%), then the current signal to be identified is considered to be the fault arc current under the target load type. In addition, if the similarity between the comprehensive time domain characteristics and frequency domain characteristics of the current signal to be identified and the comprehensive time domain characteristics and frequency domain characteristics of the fault arc current under each target load type is less than a preset minimum threshold, then it is considered that the current signal to be identified is not a fault arc current signal, that is, the current signal to be identified is a normal current signal.

[0049] In another optional implementation, the method of determining whether the current signal to be identified is a fault arc current under the target load type according to the comprehensive time domain features and at least one frequency domain feature comprises: determining whether the current signal to be identified is a fault arc current under the target load type according to the comprehensive time domain features and at least one frequency domain feature, combined with a pre-trained arc fault prediction model; wherein the arc fault prediction model is a random forest model, which is an integrated learning algorithm based on a decision tree, and its core idea is to construct multiple decision tree models and vote or average their prediction results to obtain the final prediction result. That is, an arc fault prediction model can be pre-trained, and during detection, the comprehensive time domain features and at least one frequency domain feature of the current signal to be identified are used as model inputs, and whether the current signal to be identified is a fault arc current under the target load type is determined according to the model output.

[0050] In the scheme of the present invention, a comprehensive time domain weight is determined based on multiple time domain features and their corresponding weights to avoid the instability of a single time domain feature; and arc fault detection is performed based on the comprehensive time domain features and frequency domain features at the same time, thereby improving the accuracy of arc fault detection.

[0051] Embodiment 2

[0052] Figure 2 The present invention provides a flow chart of an arc fault detection method. The present invention describes the process of obtaining a current signal to be identified and determining at least two time domain features and at least one frequency domain feature of the current signal to be identified. Figure 2 , the method comprises the following steps:

[0053] S201 , obtaining a current signal to be identified that is collected at a preset sampling frequency, and extracting a target current signal within a target sampling frequency range from the current signal to be identified.

[0054] In the embodiment of the present invention, when an arc fault occurs, the fault arc current signal is compared with the normal current signal, and only the current signals of some frequency bands are greatly different. Therefore, it is only necessary to identify the signal of the frequency band with large difference, and it is not necessary to use the full amount of the current signal to be identified. In this way, a target sampling frequency range can be determined in advance by comparing the normal current signal and the fault arc current signal, and the difference between the fault arc current signal and the normal current signal is the largest within the target sampling frequency range.

[0055] In the embodiment of the present invention, the preset sampling frequency can be selected as 1 MHz, and the target sampling frequency range can be selected as 0-30 KHz. Thus, after obtaining the current signal to be identified, only the current signal of 0-30 KHz needs to be intercepted as the target current signal.

[0056] S202. Determine the at least two time domain features and at least one frequency domain feature based on the target current signal.

[0057] Optionally, the time domain feature includes at least two of a peak-to-peak value, a mean value, and a standard deviation; and the frequency domain feature includes at least one of a spectrum mean value and a spectrum standard deviation. The specific process of determining the time domain feature and the frequency domain feature can refer to the above embodiment and will not be repeated here.

[0058] S203: Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature.

[0059] Optionally, the weight of each time domain feature is determined based on an entropy weight method, and the weighted sum of the at least two time domain features is performed to obtain the comprehensive time domain feature. The specific implementation process can be referred to the above embodiment, which will not be described in detail here.

[0060] S204. Determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature.

[0061] Optionally, based on the comprehensive time domain features and at least one frequency domain feature, combined with a pre-trained arc fault prediction model, it is determined whether the current signal to be identified is a fault arc current under the target load type; wherein the arc fault prediction model is a random forest model; the target load type includes a single load composed of a single resistor, a single inductor or a single capacitor and having a typical load value, a mixed load composed of a resistor and an inductor in series and having a typical load value, a mixed load composed of a resistor and a capacitor in parallel and having a typical load value, and a mixed load composed of a resistor and an inductor in series and in parallel with a capacitor and having a typical load value.

[0062] In the embodiment of the present invention, when performing arc fault detection, only partial frequency band current signals need to be used instead of full current signals, which can reduce the amount of calculation and improve the efficiency of arc fault detection.

[0063] Embodiment 3

[0064] Figure 3a The present invention provides a flowchart of an arc fault detection method. This embodiment details the process of training the arc fault prediction model, see Figure 3a , the method comprises the following steps:

[0065] S301. In response to a fault arc generating platform being configured with a load of any target load type, a fault arc current signal generated by the fault arc platform is acquired according to a preset sampling frequency, and the fault arc current signal is used as a training sample.

[0066] In the embodiment of the present invention, in order to generate training samples required for model training, a fault arc generation platform is first constructed. For example, the schematic diagram of the constructed fault arc generation platform is shown in Figure 3b The fault arc generation platform mainly includes a power supply, a load, an arc generator, a current signal acquisition device, and a switch; wherein the current signal acquisition device may include a current sensor and an oscilloscope, and the sampling frequency of the oscilloscope may be set to 1MHz; the arc generator is mainly composed of fixed and movable electrodes, an electrode driver, a stepper motor, a shield, and the like.

[0067] In the embodiment of the present invention, if different loads are connected to the fault arc generation platform, it may have a great impact on the arc current. The connection circuits of different loads will produce large differences in the arc current. Therefore, in order to ensure the accuracy and versatility of the sample and the reliability of arc fault detection, it is necessary to collect the circuit of the typical load. The typical load can be any load under the target load type; wherein the target load type includes a single load composed of a single resistor, a single inductor or a single capacitor and having a typical load value, a mixed load composed of a resistor and an inductor in series and having a typical load value, a mixed load composed of a resistor and a capacitor in parallel and having a typical load value, and a mixed load composed of a resistor and an inductor in series and in parallel with a capacitor and having a typical load value. To collect the fault arc current under any target load type as a training sample, it is only necessary to connect the load of the target load type to the fault arc generation platform. After the circuit is energized, an arc is generated by controlling the arc generator. In this way, the oscilloscope collects the fault arc current, which can be used as a training sample. In this way, multiple training samples (i.e., fault arc current signals) can be obtained for each load type.

[0068] In an embodiment of the present invention, in addition to generating fault arc current, the fault arc generating platform can also collect normal current signals when the arc generator does not generate an arc. Specifically, in the case where the arc generator does not generate an arc, in response to the fault arc generating platform being configured with a load of any of the target load types, the normal current signal generated by the fault arc platform is acquired at a preset sampling frequency; the normal current signal and the fault arc current signal are subjected to frequency domain comparison and analysis to determine a target sampling frequency range; wherein, within the target sampling frequency range, the difference between the normal current signal and the fault arc current signal is the largest. Exemplarily, the normal current signal and the fault current signal are subjected to Fourier transform to obtain corresponding normal current spectrum and fault arc current spectrum, and the normal current spectrum and the fault arc current spectrum are subjected to frequency domain analysis. See. Figure 3c , which shows a schematic diagram of a normal current spectrum under a single load (eg, R=40Ω); Figure 3d A schematic diagram of the fault arc current spectrum under a single load (for example, R=40Ω) is shown. It is understandable that the fault arc current spectra under other load types can also be added for comparative analysis. Through analysis, it is found that in the fault arc current spectrum, the current value in the range of 0-30KHz is significantly higher than the normal current value, so 0-30KHz is used as the target sampling frequency range, that is, the frequency band of 0-30KHz is selected as the characteristic frequency band. When determining the training sample, the fault current signal within the target sampling frequency range is used as the training sample. In this way, the sample can be streamlined to avoid too much invalid data in the sample.

[0069] S302: Based on the training samples, the pre-built random forest model is trained using the MPI parallel acceleration algorithm to obtain the arc fault prediction model.

[0070] In the embodiment of the present invention, Random Forest (RF) is a statistical learning theory that uses a bootstrap resampling method to extract multiple samples from the original sample, builds a decision tree model for each bootstrap sample, and then combines the prediction results of multiple decision trees to obtain the final prediction result through voting. Voting means that in the random forest, each decision tree will classify a new input sample and give its own classification result. After obtaining the classification results of all decision trees, the random forest will count these results and select the category with the most votes as the final classification result. This method can usually improve the accuracy and robustness of classification. The basic idea of ​​random forest classification is: (1) Use bootstrap sampling to extract k samples from the original training set, and the size of each sample is the same as that of the original training set; (2) Build k decision tree models for k samples to obtain k different classification results; (3) Vote on the k classification results to determine the final classification of each record.

[0071] In an embodiment of the present invention, in order to reduce the time of model training and improve the performance of the present invention, it is proposed to use the MPI parallel acceleration algorithm for model training. MPI (Message Passing Interface) is a standardized message passing library and programming model for writing parallel programs. It is widely used in high-performance computing environments and allows communication and collaboration between multiple processing units in distributed memory systems. Using the MPI parallel computing framework to parallelize the random forest algorithm can bring many advantages. First, MPI allows parallel computing in distributed memory systems, so that the algorithm can make full use of multiple processing units in large-scale clusters. By assigning each decision tree of the random forest to a different processing unit, the execution speed of the entire algorithm can be significantly accelerated. Secondly, the message passing model of MPI allows direct communication between the processing units, avoiding bottlenecks in data transmission and synchronization. This is particularly important for the random forest classification calculation steps, because these steps involve a large amount of data exchange and collaborative operations. The high flexibility of MPI can optimize the communication mode to adapt to parallel computing requirements. In addition, the cross-platform nature of MPI enables the random forest algorithm to run on different hardware architectures and operating systems, improving the portability of the algorithm. Such characteristics are crucial for deploying and executing the random forest algorithm in different computing environments. The MPI parallel computing framework provides the random forest algorithm with powerful computing power and flexibility, enabling it to more efficiently cope with the challenges of large-scale data processing.

[0072] The MPI parallel process includes: (1) MPI initialization: When the program starts executing, each processing unit needs to call the MPI initialization function. This step is used to initialize the MPI environment and prepare for subsequent parallel computing. (2) Obtaining process information: By calling the function, each processing unit can obtain its own process identifier (rank) and the total number of processes (size). (3) Allocating tasks: Divide the data and determine the tasks of each processing unit. (4) Data distribution and communication: Use the transfer function provided by MPI to transfer data between processing units. (5) Parallel computing and synchronization: Execute parallel computing tasks on each processing unit. And ensure that all processing units have completed the work of the current stage before entering the next stage. (6) MPI termination: At the end of the program, terminate the MPI environment and release resources.

[0073] On the basis of the above, the process of training the random forest model is as follows: first, feature engineering is performed, such as randomly obtaining a preset number of training samples, and for any training sample, obtaining at least two time domain features and at least one frequency domain feature of the training; wherein the preset number is equal to the number of decision trees in the random forest model; the decision trees in the random forest model are deployed in different computing units of the distributed computing system; the weight of each time domain feature is determined, and the comprehensive time domain feature is determined based on the at least two time domain features and the weight of each time domain feature; the specific process of calculating the weight based on the entropy weight method can be referred to the above embodiment, which will not be repeated here; further, after the MPI parallel computing framework completes the initialization and the process information is obtained, the comprehensive time domain features and at least one frequency domain feature corresponding to each training sample are distributed in parallel to the decision trees of different computing units for classification, that is, the decision trees in multiple computing units are trained concurrently; the final classification result is determined based on the classification result output by each decision tree, and the parameters of the random forest model are adjusted according to the final classification result. In this way, the final arc fault prediction model can be obtained through multiple iterative training. For example, when the decision tree depth in the final arc fault prediction model is 9 and 250 decision trees are selected, the calculation accuracy is high and the calculation speed is fast. Furthermore, the obtained arc fault model can be verified using sample data, and after verification, it can be deployed so that arc fault detection can be performed according to steps S303-S305 based on the deployed arc fault prediction model.

[0074] S303: Acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified.

[0075] S304: Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature.

[0076] S305. Determine whether the current signal to be identified is a fault arc current under a target load type based on the comprehensive time domain feature and at least one frequency domain feature and a pre-trained arc fault prediction model.

[0077] The process of steps S303 - S305 can refer to the above embodiment and will not be described in detail here.

[0078] In order to verify that the scheme of the present invention can improve the arc fault detection accuracy, the arc fault detection results based on single time domain features are compared with the arc fault detection results based on comprehensive time domain features. The comparison results are shown in Table 2.

[0079] Table 2

[0080]

[0081] By observing the results in Table 2, it can be intuitively seen that the final accuracy result of the comprehensive time domain features has been improved. Therefore, the random forest algorithm can accurately identify the arc fault characteristics and improve the recognition accuracy.

[0082] The method based on the entropy weight method proposed in the solution of the present invention can effectively improve the accuracy of random forest discrimination, has a higher fault arc recognition accuracy, and provides a new idea for future fault arc detection.

[0083] Embodiment 4

[0084] Figure 4 The present invention provides a schematic diagram of the structure of an arc fault detection device. This embodiment can be applied to the scene of detecting arc faults, such as Figure 4 As shown, the device comprises:

[0085] The feature acquisition module 401 is used to acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified;

[0086] A feature processing module 402, configured to determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature;

[0087] The arc detection module 403 is used to determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature.

[0088] In an optional implementation, the feature acquisition module is further used to:

[0089] Acquire a current signal to be identified that is collected at a preset sampling frequency, and intercept a target current signal within a target sampling frequency range from the current signal to be identified; wherein the target sampling frequency range is determined in advance by comparing a normal current signal with a fault arc current signal;

[0090] Based on the target current signal, the at least two time domain features and at least one frequency domain feature are determined; wherein the time domain features include at least two of a peak-to-peak value, a mean value, and a standard deviation; and the frequency domain features include at least one of a spectrum mean value and a spectrum standard deviation.

[0091] In an optional implementation, the feature processing module is further used to:

[0092] The weight of each time domain feature is determined based on the entropy weight method, and feature weighted summation processing is performed on the at least two time domain features to obtain the comprehensive time domain feature.

[0093] In an optional implementation, the arc detection module is further used to:

[0094] Determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature in combination with a pre-trained arc fault prediction model;

[0095] Among them, the arc fault prediction model is a random forest model; the target load types include a single load composed of a single resistor, a single inductor or a single capacitor and having a typical load value, a mixed load composed of a resistor and an inductor in series and having a typical load value, a mixed load composed of a resistor and a capacitor in parallel and having a typical load value, and a mixed load composed of a resistor and an inductor in series and in parallel with a capacitor and having a typical load value.

[0096] In an optional implementation, a model training module for training the arc fault prediction model is further included, and the model training module includes:

[0097] A sample generating unit, configured to obtain a fault arc current signal generated by the fault arc platform according to a preset sampling frequency in response to the fault arc platform being configured with a load of any target load type, and use the fault arc current signal as a training sample; wherein the fault arc platform includes a power supply, a load, an arc generator and a current signal acquisition device;

[0098] A training unit is used to train a pre-built random forest model based on the training samples using an MPI parallel acceleration algorithm to obtain the arc fault prediction model.

[0099] In an optional implementation, the training unit is further used for:

[0100] Randomly obtain a preset number of training samples, and for any training sample, obtain at least two time domain features and at least one frequency domain feature of the training; wherein the preset number is equal to the number of decision trees in the random forest model; the decision trees in the random forest model are deployed in different computing units of the distributed computing system;

[0101] Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature;

[0102] Distribute the comprehensive time domain features and at least one frequency domain feature corresponding to different training samples in parallel to decision trees of different computing units for classification;

[0103] According to the classification results output by each decision tree, a final classification result is determined, and the parameters of the random forest model are adjusted according to the final classification result.

[0104] In an optional implementation, the method further includes:

[0105] In response to the fault arc generating platform being configured with a load of any of the target load types, a normal current signal generated by the fault arc generating platform is acquired according to a preset sampling frequency;

[0106] Performing frequency domain comparison analysis on the normal current signal and the fault arc current signal to determine a target sampling frequency range; wherein within the target sampling frequency range, the difference between the normal current signal and the fault arc current signal is the largest;

[0107] Accordingly, the fault arc current signal is used as a training sample, including:

[0108] The fault current signals within the target sampling frequency range are used as training samples.

[0109] The arc fault detection device provided in the embodiment of the present invention can execute the arc fault detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0110] Embodiment 5

[0111] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers with antenna arrays, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0112] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0113] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0114] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as executing an arc fault detection method.

[0115] In some embodiments, the arc fault detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the arc fault detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the arc fault detection method in any other appropriate manner (e.g., by means of firmware).

[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0117] The computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable arc fault detection device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0118] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0119] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0120] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0121] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting an arc fault, characterized in that: include: Acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified; Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature; According to the comprehensive time domain feature and at least one frequency domain feature, it is determined whether the current signal to be identified is a fault arc current under a target load type.

2. The method according to claim 1, characterized in that The step of acquiring the current signal to be identified and determining at least two time domain features and at least one frequency domain feature of the current signal to be identified includes: Acquire a current signal to be identified that is collected at a preset sampling frequency, and intercept a target current signal within a target sampling frequency range from the current signal to be identified; wherein the target sampling frequency range is determined in advance by comparing a normal current signal with a fault arc current signal; Based on the target current signal, the at least two time domain features and at least one frequency domain feature are determined; wherein the time domain features include at least two of a peak-to-peak value, a mean value, and a standard deviation; and the frequency domain features include at least one of a spectrum mean value and a spectrum standard deviation.

3. The method according to claim 1, characterized in that The step of determining the weight of each time domain feature and determining the comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature comprises: The weight of each time domain feature is determined based on the entropy weight method, and feature weighted summation processing is performed on the at least two time domain features to obtain the comprehensive time domain feature.

4. The method according to claim 1, characterized in that: The step of determining whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature comprises: Determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature in combination with a pre-trained arc fault prediction model; Among them, the arc fault prediction model is a random forest model; the target load types include a single load composed of a single resistor, a single inductor or a single capacitor and having a typical load value, a mixed load composed of a resistor and an inductor in series and having a typical load value, a mixed load composed of a resistor and a capacitor in parallel and having a typical load value, and a mixed load composed of a resistor and an inductor in series and in parallel with a capacitor and having a typical load value.

5. The method according to claim 4, characterized in that The process of training the arc fault prediction model includes: In response to the arc fault generating platform being configured with a load of any of the target load types, the arc fault current signal generated by the arc fault platform is acquired according to a preset sampling frequency, and the arc fault current signal is used as a training sample; wherein the arc fault generating platform includes a power supply, a load, an arc generator and a current signal acquisition device; Based on the training samples, the pre-built random forest model is trained using the MPI parallel acceleration algorithm to obtain the arc fault prediction model.

6. The method according to claim 5, characterized in that Based on the training samples, the pre-built random forest model is trained using the MPI parallel acceleration algorithm to obtain the arc fault prediction model, including: Randomly obtain a preset number of training samples, and for any training sample, obtain at least two time domain features and at least one frequency domain feature of the training; wherein the preset number is equal to the number of decision trees in the random forest model; the decision trees in the random forest model are deployed in different computing units of the distributed computing system; Determine a weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature; Distribute the comprehensive time domain features and at least one frequency domain feature corresponding to different training samples in parallel to decision trees of different computing units for classification; According to the classification results output by each decision tree, a final classification result is determined, and the parameters of the random forest model are adjusted according to the final classification result.

7. The method according to claim 5, characterized in that Also includes: In response to the fault arc generating platform being configured with a load of any of the target load types, a normal current signal generated by the fault arc generating platform is acquired according to a preset sampling frequency; Performing frequency domain comparison analysis on the normal current signal and the fault arc current signal to determine a target sampling frequency range; wherein within the target sampling frequency range, the difference between the normal current signal and the fault arc current signal is the largest; Accordingly, the fault arc current signal is used as a training sample, including: The fault current signals within the target sampling frequency range are used as training samples.

8. An arc fault detection device, characterized in that: include: A feature acquisition module, used to acquire a current signal to be identified, and determine at least two time domain features and at least one frequency domain feature of the current signal to be identified; A feature processing module, used to determine the weight of each time domain feature, and determine a comprehensive time domain feature according to the at least two time domain features and the weight of each time domain feature; The arc detection module is used to determine whether the current signal to be identified is a fault arc current under a target load type according to the comprehensive time domain feature and at least one frequency domain feature.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 7 when executed.