Anti-interference electric leakage protection device and method

By converting analog signals into digital signals and calculating leakage current values ​​using filtering and neural network technology, the problem of leakage protectors being susceptible to electromagnetic interference is solved, the accuracy and stability of detection are improved, and the error detection and error contact is reduced. occur.

CN119134218AActive Publication Date: 2024-12-13HANGZHOU SEMISTRON MICROELECTRONICS CO LTD

Patent Information

Application Number
CN202411633512.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2024-12-13
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

Existing leakage protectors are susceptible to electromagnetic interference, resulting in false detection and false touch tripping, affecting the power consumption experience.

Method used

An anti-interference leakage protection device is designed, including induction module, amplification module, rectifier module, analog-to-digital conversion module, processing module and relay module. By converting analog signals into digital signals and using filtering and neural network technology, Calculate the leakage current value to reduce the occurrence of false detection and false contact.

Benefits of technology

It effectively avoids electromagnetic interference from detection of leakage protection devices, reduces the occurrence of false detection and false contacts, and improves the safety and stability of electricity use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119134218A_ABST
    Figure CN119134218A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of electric leakage protection, and discloses an anti-interference electric leakage protection device and method, and the device comprises an induction module, an amplification module, a rectification module, an analog-to-digital conversion module, a processing module, and a relay module. The amplification module is used for receiving and amplifying the electric leakage signal of the induction module to obtain an amplified signal; the rectifier module is used for receiving the amplified signal and rectifying the amplified signal to obtain a direct current signal; the analog-to-digital conversion module is used for receiving the direct-current signal and converting the direct-current signal into a digital signal; the processing module is used for filtering the received digital signal and calculating a leakage current value based on the digital signal; when the leakage current value is greater than a preset circuit break threshold value, a tripping signal is sent to the relay module; and the relay module is used for executing circuit cut-off operation when receiving the tripping signal. According to the invention, the situation of false detection and false triggering of tripping caused by electromagnetic interference received by detection of the leakage protection device can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of leakage protection, and in particular to an anti-interference leakage protection device and method. Background Art

[0002] Existing leakage protectors usually amplify and rectify the leakage current signal after receiving it, and then compare the value of the DC signal with the threshold to determine whether there is leakage. After determining leakage, they send a trip signal to trigger the tripping action to ensure power safety. In order to improve the stability of detection, some manufacturers will also add a pulse generator to the leakage protector to achieve the widening of the tripping signal and ensure the stable triggering of the tripping action.

[0003] However, electromagnetic induction between circuits or devices may affect the shape and parameters of the induced current generated by the induction coil, causing false detection of the leakage protector and false tripping of the switch, affecting the power consumption experience. Summary of the invention

[0004] The present application provides an interference-resistant leakage protection device and method, which can prevent the leakage protection device from being subject to electromagnetic interference, leading to false detection, false triggering and tripping.

[0005] In a first aspect, an embodiment of the present application provides an anti-interference leakage protection device, comprising: a sensing module, an amplifying module, a rectifying module, an analog-to-digital conversion module, a processing module, and a relay module connected in sequence; The amplification module is used to receive the leakage signal of the sensing module and amplify it to obtain an amplified signal; The rectifier module is used to receive the amplified signal and rectify the amplified signal to obtain a DC signal; The analog-to-digital conversion module is used to receive a DC signal and convert the DC signal into a digital signal; The processing module is used to filter the received digital signal and calculate the leakage current value based on the digital signal; when the leakage current value is greater than the preset circuit breaker threshold, a trip signal is sent to the relay module; The relay module is used to perform a circuit cutting operation when receiving a trip signal.

[0006] Furthermore, the processing module is specifically used to obtain the range value of the sensing module, the gain value of the amplification module and the number of bits of the analog-to-digital conversion module; and calculate the leakage current value based on the range value, gain value, number of bits and digital signal.

[0007] Further, the analog-to-digital conversion module includes a first analog-to-digital conversion unit, a second analog-to-digital conversion unit and a judgment unit; The first analog-to-digital conversion unit is used to convert the DC signal into a first current signal; The second analog-to-digital conversion unit is used to convert the DC signal into a second current signal; The judgment unit is used to calculate the difference between the first current signal and the second current signal; when the difference is less than a preset calibration threshold, the average value of the first current signal and the second current signal is used as the digital signal.

[0008] Furthermore, the judgment unit is further configured to perform parameter calibration on the first analog-to-digital conversion unit and the second analog-to-digital conversion unit according to the difference when the difference is greater than a preset calibration threshold.

[0009] Furthermore, the processing module is specifically used to filter the digital signal using a median filter algorithm or a Kalman filter.

[0010] Furthermore, the processing module is also used to extract the current current characteristics of the digital signal; calculate the similarity between the current current characteristics and the historical leakage current characteristics; when the similarity is greater than a preset similarity threshold, calculate the leakage current value based on the digital signal.

[0011] Furthermore, the processing module is also used for: Input the historical leakage current signal into the trained generative adversarial network to obtain a set of leakage current signals; The leakage current signal set and the normal current signal set are used to train the hole convolutional neural network to obtain the current recognition model; Input the digital signal into the current identification model to obtain the identification result; When the identification result is true, the leakage current value is calculated based on the digital signal.

[0012] Furthermore, the device also includes a sensor module; The sensor module is used to obtain the working environment parameters of the leakage protection device; The processing module is also used to process the current characteristics of the digital signal based on the gain value of the amplification module to obtain the actual current characteristics; and send the working environment parameters, the actual current characteristics and the leakage current value to the mobile terminal through wireless communication.

[0013] Furthermore, the processing module is also used for: Obtain historical leakage current signals and initialize network parameters of the generated adversarial network; Extract historical leakage current characteristics of historical leakage current signals and working environment parameters of leakage protection devices; Instructing the generator to generate a false leakage current signal based on historical leakage current characteristics and working environment parameters; Inputting the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal; Determine whether the first discriminant probability is equal to the second discriminant probability; If not, the network parameters of the generator and the discriminator are updated according to the first discriminant probability and the second discriminant probability.

[0014] Furthermore, the processing module is also used for: After sending the trip signal, user feedback information is received; if the user feedback information is the preset reset information, the digital signal is placed in the leakage current signal set, otherwise it is placed in the normal current signal set.

[0015] Furthermore, the processing module is also used to record the leakage protection response time starting from the moment of receiving the digital signal and ending with the moment of sending the trip signal; and send the leakage protection response time to the mobile terminal via wireless communication.

[0016] In a second aspect, an embodiment of the present application provides an anti-interference leakage protection method, including: The amplification module amplifies the received leakage signal to obtain an amplified signal; The rectifier module rectifies the amplified signal to obtain a DC signal; The analog-to-digital conversion module converts the DC signal into a digital signal; The processing module filters the received digital signal; calculates the leakage current value based on the digital signal; determines whether the leakage current value is greater than a preset circuit breaker threshold, and if so, sends a trip signal to the relay module; When the relay module receives the trip signal, it performs a circuit cutting operation.

[0017] Furthermore, the above-mentioned calculation of the leakage current value based on the digital signal includes: Obtain the range value of the sensing module, the gain value of the amplification module, and the number of bits of the analog-to-digital conversion module; Calculates the exponential with base 2 raised to the power of the number of digits; Subtract 1 from the exponent and multiply it by the gain value to get the first product; Multiply the digital signal by the range value to obtain a second product; Divide the second product by the first product to obtain the leakage current value.

[0018] Furthermore, the method also includes: The processing module extracts the current characteristics of the digital signal; Calculate the similarity between the current current characteristics and the historical leakage current characteristics; When the similarity is greater than a preset similarity threshold, the leakage current value is calculated based on the digital signal.

[0019] Furthermore, the method also includes: The processing module inputs the historical leakage current signal into the trained generative adversarial network to obtain a set of leakage current signals; The leakage current signal set and the normal current signal set are used to train the hole convolutional neural network to obtain the current recognition model; Input the digital signal into the current identification model to obtain the identification result; When the identification result is true, the leakage current value is calculated based on the digital signal.

[0020] Furthermore, the method also includes: The processing module obtains the historical leakage current signal and initializes the network parameters of the generated adversarial network; Extract historical leakage current characteristics of historical leakage current signals and working environment parameters of leakage protection devices; Instructing the generator to generate a false leakage current signal based on historical leakage current characteristics and working environment parameters; Inputting the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal; Determine whether the first discriminant probability is equal to the second discriminant probability; If not, the network parameters of the generator and the discriminator are updated according to the first discriminant probability and the second discriminant probability.

[0021] Furthermore, the generator generates a false leakage current signal based on historical leakage current characteristics and working environment parameters, including: The generator calculates the environmental adjustment factor based on the preset variation threshold and working environment parameters; Multiply the environmental adjustment factor and random noise to obtain a noise vector; Multiply the historical leakage current feature and the preset extraction weight to obtain a feature vector; Add the noise vector and the eigenvector to obtain false current data; The false current data is subjected to inverse Fourier transform to obtain a false leakage current signal.

[0022] Furthermore, the above updating the network parameters of the generator and the discriminator according to the first discriminant probability and the second discriminant probability includes: Calculate the binary cross entropy loss function of the first discriminant probability and the second discriminant probability respectively; Add the two binary cross entropy loss functions to get the discriminant loss function; Calculate the updated network parameters of the discriminator based on the discriminative loss function and the discriminative update gradient; The updated network parameters of the generator are calculated based on the binary cross entropy loss function of the first discriminant probability and the generated update gradient.

[0023] Furthermore, the method also includes: The processing module receives user feedback information after sending the trip signal; If the user feedback information is the preset reset information, the digital signal is placed in the leakage current signal set, otherwise the digital signal is placed in the normal current signal set; The current identification model is trained again based on the leakage current signal set and the normal current signal set.

[0024] Furthermore, the method also includes: The processing module records the leakage protection response time starting from the moment of receiving the digital signal and ending with the moment of sending the trip signal; and sends the leakage protection response time to the mobile terminal through wireless communication.

[0025] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects: An interference-resistant leakage protection device provided in an embodiment of the present application is different from a conventional leakage protector that directly judges the leakage current signal of an analog signal. The present application adds an analog-to-digital conversion module behind the rectifier module to convert the DC signal of the analog signal into a digital signal, and then uses the processing module to filter the digital signal and calculate the leakage current value. It fully utilizes the advantages of digital signals having high stability during transmission and being not susceptible to electromagnetic interference, thereby avoiding the situation where the detection of the leakage protection device is subject to electromagnetic interference, resulting in false detection and false triggering and tripping. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A structural diagram of an anti-interference leakage protection device provided as an exemplary embodiment of the present application.

[0027] Figure 2 An internal structural diagram of an analog-to-digital conversion module provided for an exemplary embodiment of the present application.

[0028] Figure 3 A structural diagram of an interference-resistant leakage protection device provided for yet another exemplary embodiment of the present application.

[0029] Figure 4 A flow chart of an anti-interference leakage protection method provided for an exemplary embodiment of the present application.

[0030] Figure 5 A flowchart of the steps of generating adversarial network training is provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0032] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.

[0033] See also Figure 1 The embodiment of the present application provides an anti-interference leakage protection device, including: a sensing module, an amplifying module, a rectifying module, an analog-to-digital conversion module, a processing module and a relay module connected in sequence.

[0034] Among them, the sensing module usually uses a zero-sequence current transformer, which surrounds the neutral line and the live line in the circuit and is used to detect the leakage current in the circuit. When the circuit is working normally, the current vector sum of the neutral line and the live line is zero, and the zero-sequence current transformer does not generate an induced electromotive force; when leakage occurs, the current vector sum is not zero, and the secondary coil of the zero-sequence current transformer generates an induced electromotive force, sending a leakage signal to the amplification module.

[0035] The amplifying module is used to receive the leakage signal of the sensing module and amplify it to obtain an amplified signal.

[0036] Among them, the amplification module consists of a switched capacitor amplifier and an IA amplifier connected to each other. The switched capacitor amplifier uses a combination of switches and capacitors to achieve signal sampling, holding and amplification, while the instrumentation (IA) amplifier is an amplifier with differential input and single-ended output, and has the characteristics of high input impedance, low noise and high common mode rejection ratio (CMRR).

[0037] In a switched capacitor amplifier, the leakage signal is first sampled and held through a switched capacitor network, and then the signal is amplified by the periodic operation of the switch. The gain of this amplifier is determined by the ratio of the capacitors and the switching frequency. A key advantage of switched capacitor amplifiers is that they can achieve high gain and wide bandwidth amplification on integrated circuits while having low power consumption and high integration. IA amplifiers are usually composed of three operational amplifiers, two of which are used as differential input stages to provide high input impedance, and the third is used as a gain stage. The gain of the IA amplifier can be adjusted by external resistors or internal settings.

[0038] The present application combines the switched capacitor amplifier and the IA amplifier, and can use the high gain and wide bandwidth characteristics of the switched capacitor amplifier for preliminary amplification, and then further accurately amplify and improve the common-mode suppression capability of the signal through the IA amplifier. This combined amplification module can provide high-precision, low-noise and high-stability signal amplification.

[0039] The rectifier module is used to receive the amplified signal and rectify the amplified signal to obtain a DC signal.

[0040] Rectifier modules are usually composed of semiconductor devices such as rectifier diodes or thyristors, which are responsible for converting alternating current (AC) into direct current (DC). Rectifier modules mainly include the following types: 1) Half-wave rectification: A simple rectification circuit consisting of a diode, which only uses the positive half-cycle or negative half-cycle of the alternating current for rectification, outputs pulsating direct current, and has a low current utilization rate, making it suitable for high voltage and low current applications.

[0041] 2) Full-wave rectification: It is composed of two diodes and a transformer secondary coil with a center tap. It can use the positive and negative half-cycles of the alternating current for rectification, output a relatively smooth direct current, and improve the utilization rate of the current.

[0042] 3) Bridge rectification: Using four diodes to form a bridge structure can also achieve the effect of full-wave rectification.

[0043] 4) Synchronous rectification: Synchronous rectification technology is used to control the switching timing of the rectifier devices to achieve synchronization of voltage and current waveforms during the rectification process, reduce switching losses, and improve rectification efficiency.

[0044] The analog-to-digital conversion module is used to receive a DC signal and convert the DC signal into a digital signal.

[0045] Specifically, the analog-to-digital conversion module can be implemented using an ADC (Analog-to-Digital Converter). The working principle of the ADC includes the following steps: 1) Obtain discrete samples of an analog signal (in this application, a DC signal) at certain time intervals.

[0046] 2) Between two samples, the sample value is kept unchanged for quantization and encoding.

[0047] 3) Convert the sampled analog signal into discrete digital values.

[0048] 4) Represent the quantized sample value as binary data to obtain a digital signal.

[0049] The processing module is used to filter the received digital signal and calculate the leakage current value based on the digital signal; when the leakage current value is greater than the preset circuit breaker threshold, a trip signal is sent to the relay module.

[0050] The relay module is used to perform a circuit cutting operation when receiving a trip signal.

[0051] Among them, the relay module can be implemented by a relay. When the relay receives a trip signal, the coil of the relay generates magnetic force according to the trip signal. This magnetic force drives the switch to trip, thereby cutting off the circuit.

[0052] The above-mentioned embodiment provides an interference-resistant leakage protection device, which is different from the conventional leakage protector that directly judges the leakage current signal of the analog signal. The present application adds an analog-to-digital conversion module behind the rectifier module to convert the DC signal of the analog signal into a digital signal, and then uses the processing module to filter the digital signal and calculate the leakage current value. It fully utilizes the advantages of digital signals having high stability during transmission and not being easily susceptible to electromagnetic interference, thereby avoiding the situation where the detection of the leakage protection device is subject to electromagnetic interference, resulting in false detection and false triggering and tripping.

[0053] In some embodiments, the processing module is specifically used to obtain the range value of the sensing module, the gain value of the amplification module and the number of bits of the analog-to-digital conversion module; and calculate the leakage current value based on the range value, gain value, number of bits and digital signal.

[0054] Specifically, the leakage current value of the digital signal can be calculated based on the following formula: Where I is the calculated leakage current value, is a digital signal, G is the gain value of the amplifier module, B is the number of bits of the ADC, and A is the current range that the current transformer can monitor. If the full scale is 50A, then A is 50.

[0055] For example, there is a 12-bit ADC whose input voltage range is 0 to 5 volts (i.e. 5V corresponds to the maximum value of the 12-bit ADC), and the full scale of the current transformer is 5 amperes, and the gain value is 1 (i.e. the output 1V corresponds to 1A actual current). Then, for each digital value D read by the ADC, the corresponding leakage current value I can be calculated by the following formula: The above embodiment calculates the leakage current value based on the parameters of the analog-to-digital conversion module, the amplification module and the sensing module, which can restore the actual situation of the leakage signal before amplification and ensure the authenticity and accuracy of the leakage judgment.

[0056] See also Figure 2 In some embodiments, the analog-to-digital conversion module includes a first analog-to-digital conversion unit, a second analog-to-digital conversion unit and a judgment unit; the first analog-to-digital conversion unit is used to convert a DC signal into a first current signal.

[0057] The second analog-to-digital conversion unit is used to convert the DC signal into a second current signal.

[0058] The judgment unit is used to calculate the difference between the first current signal and the second current signal; when the difference is less than a preset calibration threshold, the average value of the first current signal and the second current signal is used as the digital signal.

[0059] Specifically, during actual use, the analog-to-digital converter may produce some nonlinearity and errors due to the increase in usage time, resulting in a deterioration in the conversion accuracy of the digital signal, affecting the calculation and detection accuracy of the digital signal by the processing module. Therefore, the present application adopts two independent analog-to-digital conversion units, that is, two independent analog-to-digital converters to quantize the same DC signal, and the judgment unit calculates the difference between the two output current signals to determine whether the current analog-to-digital conversion module has errors and nonlinearity. If it is less than the preset calibration threshold, it means that the two analog-to-digital converters are very stable. At this time, the average value of the two output current signals is taken as the digital signal to improve the accuracy of the digital signal.

[0060] Furthermore, the judgment unit is further configured to perform parameter calibration on the first analog-to-digital conversion unit and the second analog-to-digital conversion unit according to the difference when the difference is greater than a preset calibration threshold.

[0061] Specifically, since the analog-to-digital conversion module usually has errors and nonlinearities during use, in order to ensure that the operation of the leakage protection device is not affected, the analog-to-digital conversion module can use a background calibration algorithm, such as the LMS (least mean square) algorithm for calibration when errors and nonlinearities occur. This calibration method will not affect the analog-to-digital converter's conversion of DC signals, but is performed silently in the background, and calibration is achieved by iteratively adjusting the weight coefficients until the outputs of the two ADCs match (that is, the difference in the output signals is less than the preset calibration threshold).

[0062] The background calibration algorithm in the above embodiment can perform parameter calibration in real time without interrupting the normal operation of the ADC, thereby improving the accuracy and robustness of analog-to-digital conversion and avoiding false leakage detection due to ADC errors.

[0063] In one embodiment, the processing module is specifically configured to filter the digital signal using a median filter algorithm or a Kalman filter.

[0064] Among them, median filtering is a nonlinear digital filtering technology, which is usually used to remove noise in signals, especially salt-and-pepper noise, while keeping the edge information from being greatly affected.

[0065] The Kalman filter is an efficient recursive filter that can estimate the working environment state of the leakage protection device from noisy measurements. Its core idea is to use dynamic models and combined with measurement data to perform state estimation in a recursive manner. The Kalman filter is particularly suitable for environments with noise and uncertainty.

[0066] Specifically, in the Kalman filter, the state estimate and the error covariance matrix Initialize.

[0067] Then perform state prediction and error covariance prediction: Finally calculate the Kalman gain , update the state estimate and error covariance: Where A is the state transfer matrix, B is the control matrix, u is the control vector, Q is the process noise covariance matrix, H is the measurement matrix, R is the measurement noise covariance matrix, z is the measurement value, K is the Kalman gain, and I is the identity matrix.

[0068] In some embodiments, the processing module is also used to extract the current current characteristics of the digital signal; calculate the similarity between the current current characteristics and the historical leakage current characteristics; when the similarity is greater than a preset similarity threshold, calculate the leakage current value based on the digital signal.

[0069] Among them, the current current characteristics and the historical leakage current characteristics can be obtained by Fourier algorithm analysis.

[0070] Specifically, power supply voltage fluctuations and the like may cause an instantaneous current difference between the live wire current and the neutral wire current, thereby generating an induced current; although the filtering processing in the analog-to-digital conversion module and the processing module of the present application can prevent the leakage protection device from being affected by electromagnetic interference and causing false detection, the recognition accuracy of leakage signals caused by power supply fluctuations and circulating currents is not high. This is because electromagnetic interference is usually caused by the start-up of high-power electrical appliances or the presence of industrial control electronic equipment such as inverters and soft starters near the leakage protection device, which may generate an interfering magnetic field, thereby affecting the waveform and parameters of the leakage signal.

[0071] However, the impact of power supply fluctuations and circulating currents is not directly added to the real leakage signal, but causes the sensing module to directly generate a "leakage signal" from scratch. None of the components in this "leakage signal" is a real leakage signal. Therefore, it cannot be accurately identified only through analog-to-digital conversion, filtering and other operations, resulting in malfunction of the relay module.

[0072] Therefore, after filtering, the processing module of this application determines whether the denoised signal is a real leakage signal rather than a signal caused by other reasons by calculating the similarity with the real historical leakage current characteristics. If the similarity is high enough, it means that it is a real leakage signal, and then the leakage current value is calculated to further reduce the probability of false detection.

[0073] In some embodiments, the processing module is further configured to: The historical leakage current signal is input into the trained generative adversarial network to obtain a leakage current signal set; the leakage current signal set and the normal current signal set are used to train the void convolutional neural network to obtain a current recognition model; the digital signal is input into the current recognition model to obtain a recognition result; when the recognition result is true, the leakage current value is calculated based on the digital signal.

[0074] Among them, the signal types of the historical leakage current signal, the leakage current signal set and the normal current signal set are all digital types, and a recognition result of true indicates that the model recognizes that the input digital signal is a leakage current.

[0075] Specifically, although the feature similarity calculation method can filter out some non-leakage signals, in the actual operation of the circuit, the leakage situation is not static. Judging only based on a certain real historical leakage current feature may be too one-sided. While reducing the probability of false detection, it may increase the probability of missed detection, that is, the recognition accuracy is weak.

[0076] Therefore, the present application first uses a trained generative adversarial network to generate a leakage current signal set from real historical leakage current signals, and the leakage current signal set includes a variety of different real leakage current signals.

[0077] Then, a data-rich set of leakage current signals and a set of normal current signals (normal current signals are extremely easy to obtain, so there is no need to use a generative adversarial network) are used to train a void convolutional neural network to obtain a current recognition model.

[0078] Finally, the current identification model is used to determine whether the currently received digital signal is a real leakage signal.

[0079] It is understandable that the current identification model can learn the characteristics of the real leakage signal during training, and can still correctly identify the leakage signal even if it is slightly affected by changes in the working environment.

[0080] The above embodiment firstly utilizes a generative adversarial network to generate abundant leakage current signals of different types as training samples, thereby improving the generalization ability and recognition accuracy of the current recognition model.

[0081] See also Figure 3, in some embodiments, the device also includes a sensing module.

[0082] The sensor module is used to obtain the working environment parameters of the leakage protection device.

[0083] Among them, the sensor module includes infrared sensor, temperature sensor, humidity sensor and so on.

[0084] Working environment parameters include infrared radiation value, temperature value, humidity value, etc.

[0085] The processing module is also used to process the current characteristics of the digital signal based on the gain value of the amplification module to obtain the actual current characteristics; and send the working environment parameters, the actual current characteristics and the leakage current value to the mobile terminal through wireless communication.

[0086] Specifically, the digital signal is obtained based on the amplified leakage signal, so it is necessary to process the current characteristics according to the gain value of the amplified signal to obtain the actual current characteristics before the leakage signal is amplified.

[0087] The present application adds a wireless communication function to the processing module, realizes remote communication with the user's mobile terminal, ensures that the user can obtain the current value and current characteristics of each actual leakage, and facilitates the user to repair and process the circuit.

[0088] In some embodiments, the processing module is further configured to: Obtain a historical leakage current signal and initialize the network parameters of a generative adversarial network; extract the historical leakage current characteristics of the historical leakage current signal and the working environment parameters of the leakage protection device; enable the generator to generate a false leakage current signal based on the historical leakage current characteristics and the working environment parameters; input the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal.

[0089] Determine whether the first discrimination probability is equal to the second discrimination probability; if not, update the network parameters of the generator and the discriminator according to the first discrimination probability and the second discrimination probability; if so, end the training and obtain a trained generative adversarial network.

[0090] Specifically, changes in the working environment of the leakage protection device are a major factor affecting the induction of leakage signals. Therefore, this application uses the working environment parameters of the leakage protection device as variables, and lets the generator generate a false leakage current signal to train the discriminator in the generative adversarial network. When the discriminator cannot distinguish between the false leakage current signal and the historical leakage current signal, that is, when it judges that the probability of these two current signals being true is the same, it means that the generator has been able to generate data close to the real leakage signal.

[0091] After the training is completed, the generator continues to generate a false leakage current signal, and the false leakage current signal generated at this time is put into the leakage current signal set together with the historical leakage current signal.

[0092] Furthermore, the processing module is also used for: After sending the trip signal, user feedback information is received; if the user feedback information is the preset reset information, the digital signal is placed in the leakage current signal set, otherwise it is placed in the normal current signal set.

[0093] Specifically, the present application also sets up a user feedback mechanism in the leakage protection device. The user can send user feedback information using the button on the leakage protection device or through remote communication of the mobile terminal. When the processing module receives the user feedback information, it first controls the relay module to restore the circuit path, and then determines whether the user feedback information is the preset reset information. The preset reset information indicates that the current leakage signal is a real leakage signal, that is, the current identification is correct. The digital signal is put into the leakage current signal set, and the training current identification model is updated to ensure the dynamic update of the current identification model.

[0094] In some embodiments, the processing module is also used to record the leakage protection response time starting from the moment the digital signal is received and ending with the moment the trip signal is sent; and send the leakage protection response time to the mobile terminal via wireless communication.

[0095] Specifically, the leakage protection response time can also be sent to the user as a part of leakage measurement for storage, so that the user can find out in time whether the response time of the leakage protection device is too long and needs to be replaced.

[0096] See also Figure 4 Another embodiment of the present application provides an anti-interference leakage protection method, comprising: Step S11: the amplifying module amplifies the received leakage signal to obtain an amplified signal.

[0097] Step S12: the rectifier module rectifies the amplified signal to obtain a DC signal.

[0098] Step S13: the analog-to-digital conversion module converts the DC signal into a digital signal.

[0099] Specifically, discrete samples of an analog signal (a DC signal in this application) are obtained within a certain time interval; between two samples, the sampled value is kept unchanged for quantization and encoding; the sampled analog signal is converted into discrete digital values; the quantized sample values ​​are represented as binary data to obtain a digital signal.

[0100] Step S14, the processing module filters the received digital signal; calculates the leakage current value based on the digital signal; determines whether the leakage current value is greater than a preset circuit breaker threshold, and if so, sends a trip signal to the relay module.

[0101] Step S15: When the relay module receives the trip signal, it performs a circuit disconnection operation.

[0102] In some embodiments, the above-mentioned calculation of the leakage current value based on the digital signal includes: Step S141, obtaining the range value of the sensing module, the gain value of the amplifying module and the number of bits of the analog-to-digital conversion module.

[0103] Step S142, calculating the exponent with 2 as the base and the number of bits as the power.

[0104] Step S143, subtract 1 from the exponent and multiply the exponent by the gain value to obtain a first product.

[0105] Step S144, multiplying the digital signal by the range value to obtain a second product.

[0106] Step S145, dividing the second product by the first product to obtain a leakage current value.

[0107] Specifically, the leakage current value of the digital signal can be calculated based on the following formula: Where I is the calculated leakage current value, is a digital signal, G is the gain value of the amplifier module, B is the number of bits of the ADC, and A is the current range that the current transformer can monitor. If the full scale is 50A, then A is 50.

[0108] For example, there is a 12-bit ADC whose input voltage range is 0 to 5 volts (i.e. 5V corresponds to the maximum value of the 12-bit ADC), and the full scale of the current transformer is 5 amperes, and the gain value is 1 (i.e. the output 1V corresponds to 1A actual current). Then, for each digital value D read by the ADC, the corresponding leakage current value I can be calculated by the following formula: The above embodiment calculates the leakage current value based on the parameters of the analog-to-digital conversion module, the amplification module and the sensing module, which can restore the actual situation of the leakage signal before amplification and ensure the authenticity and accuracy of the leakage judgment.

[0109] In some embodiments, the method further comprises: Step S21: the processing module extracts the current characteristics of the digital signal.

[0110] Step S22, calculating the similarity between the current current feature and the historical leakage current feature.

[0111] Step S23, when the similarity is greater than a preset similarity threshold, calculating the leakage current value based on the digital signal.

[0112] Among them, the current current characteristics and the historical leakage current characteristics can be obtained by Fourier algorithm analysis.

[0113] Specifically, although the filtering processing of the present application can prevent the leakage protection device from being affected by electromagnetic interference and causing false detection, the accuracy of identifying leakage signals caused by power supply fluctuations and circulating currents is not high. This is because electromagnetic interference is usually caused by the start-up of high-power electrical appliances or the presence of industrial control electronic equipment such as inverters and soft starters near the leakage protection device, which may generate an interfering magnetic field, thereby affecting the waveform and parameters of the leakage signal.

[0114] However, the impact of power supply fluctuations and circulating currents is not directly added to the real leakage signal, but causes the sensing module to directly generate a "leakage signal" from scratch. None of the components in this "leakage signal" are real leakage signals, so it cannot be identified only through analog-to-digital conversion, filtering and other operations, resulting in malfunction of the relay module.

[0115] Therefore, after filtering, the present application allows the processing module to determine whether the denoised signal is a real leakage signal rather than a signal caused by other reasons by calculating the similarity with the real historical leakage current characteristics. If the similarity is high enough, it means that it is a real leakage signal, and then the leakage current value is calculated to further reduce the probability of false detection.

[0116] In some embodiments, the method further comprises: In step S31, the processing module inputs the historical leakage current signal into the trained generative adversarial network to obtain a set of leakage current signals. Specifically, although the feature similarity calculation method can filter out some non-leakage signals, in the actual operation of the circuit, the leakage situation is not constant. Judging only based on a certain real historical leakage current feature may be too one-sided, which may increase the probability of missed detection while reducing the probability of false detection, that is, the recognition accuracy is weak.

[0117] Therefore, the present application first uses a trained generative adversarial network to generate a leakage current signal set from real historical leakage current signals, and the leakage current signal set includes a variety of different real leakage current signals.

[0118] Step S32, using the leakage current signal set and the normal current signal set to train the dilated convolutional neural network to obtain a current recognition model. The dilated convolutional neural network used here is one-dimensional, because the one-dimensional dilated convolutional neural network (1D-DCNN) performs well in processing sequence data.

[0119] Step S33, inputting the digital signal into the current identification model to obtain an identification result.

[0120] Step S34, when the identification result is true, calculating the leakage current value based on the digital signal.

[0121] The above embodiment firstly utilizes a generative adversarial network to generate abundant leakage current signals of different types as training samples, thereby improving the generalization ability and recognition accuracy of the current recognition model.

[0122] See also Figure 5 In some embodiments, the method further comprises: Step S41: The processing module obtains a historical leakage current signal and initializes network parameters of a generative adversarial network.

[0123] Specifically, the generative adversarial network includes a generator and a discriminator, and the network parameters are initialized to represent the weight parameters and bias parameters of the generator and the discriminator as a normal distribution of 0-0.01.

[0124] Step S42, extracting historical leakage current characteristics of the historical leakage current signal and working environment parameters of the leakage protection device.

[0125] Specifically, the historical leakage current characteristics are extracted as follows: in, is the historical leakage current characteristic, FFT is the fast Fourier transform operation, is the historical leakage current signal, is the Fourier transform weight, which can be calculated using the least squares method: in, is the signal value at time t, and N is the number of time points.

[0126] Step S43, instructing the generator to generate a false leakage current signal based on the historical leakage current characteristics and the working environment parameters.

[0127] Step S44, inputting the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal.

[0128] Step S45, determining whether the first discrimination probability is equal to the second discrimination probability.

[0129] Step S46: if not, update the network parameters of the generator and the discriminator according to the first discrimination probability and the second discrimination probability.

[0130] Specifically, changes in the working environment of the leakage protection device are a major factor affecting the induction of leakage signals. Therefore, this application uses the working environment parameters of the leakage protection device as variables, and lets the generator generate a false leakage current signal to train the discriminator in the generative adversarial network. When the discriminator cannot distinguish between the false leakage current signal and the historical leakage current signal, that is, when it judges that the probability of these two current signals being true is the same, it means that the generator has been able to generate data close to the real leakage signal.

[0131] After the training is completed, the generator continues to generate a false leakage current signal, and the false leakage current signal generated at this time is put into the leakage current signal set together with the historical leakage current signal.

[0132] In some embodiments, the command generator generates a false leakage current signal based on historical leakage current characteristics and working environment parameters, which may specifically include the following steps: Step S431: The generator calculates the environmental adjustment factor according to the preset variation threshold and the working environment parameters.

[0133] Among them, environmental moderating factors The calculation method is: in, is the preset variation threshold, D is the number of types of working environment parameters, is the value of the environmental parameter of the ith type, is the historical average value of the environmental parameter of the ith type.

[0134] Step S432: multiply the environment adjustment factor and the random noise to obtain a noise vector.

[0135] Step S433: multiply the historical leakage current feature and the preset extraction weight to obtain a feature vector.

[0136] Step S434, adding the noise vector and the characteristic vector to obtain false current data.

[0137] Specifically, the false current data The calculation formula is: in, is the preset extraction weight, and n is random noise.

[0138] Step S435, performing inverse Fourier transform on the false current data to obtain a false leakage current signal.

[0139] The above embodiment generates a false leakage current signal using the working environment parameters as variables, which enables the generator to simulate the situation in which the signal induction changes of the leakage protection device due to changes in the working environment during a specific application process, thereby improving the generalization ability of the current identification model and being able to identify leakage signals affected by the environment.

[0140] In some embodiments, the updating of the network parameters of the generator and the discriminator according to the first discrimination probability and the second discrimination probability may specifically include the following steps: Step S461, respectively calculating the binary cross entropy loss function of the first discriminant probability and the second discriminant probability.

[0141] Step S462, adding the two binary cross entropy loss functions to obtain a discriminant loss function.

[0142] Specifically, the discriminant loss function , where x is the historical leakage current signal, is the second discriminant probability that the discriminator judges to be true; z is the data input to the generator, is the virtual leakage current signal output by the generator, is the first discriminant probability that the discriminator is true, and L is the binary cross entropy loss function.

[0143] Step S463, calculating the updated network parameters of the discriminator based on the discriminant loss function and the discriminant update gradient.

[0144] Specifically, the parameter update formula of the discriminator can be expressed as: in, are the parameters of the discriminator, Update the gradient for discrimination.

[0145] Step S464, based on the binary cross entropy loss function of the first discriminant probability and the generated update gradient, the updated network parameters of the generator are calculated. Specifically, the loss function of the generator is expressed as: The parameter update formula of the generator can be expressed as: in, are the parameters of the generator, To generate updated gradients.

[0146] In practical applications, the loss function of the generator is Also often used , because when When it is close to 1, the loss of the generator will decrease, that is, the generator hopes that the discriminator will have a higher probability of identifying the samples it generates as real.

[0147] The discriminator and the generator reach Nash equilibrium by alternately optimizing their own parameters. At this equilibrium point, the discriminator cannot distinguish between real data and generated data, and the data generated by the generator is as close to the distribution of real data as possible.

[0148] In some embodiments, the method further comprises: Step S51: After sending the trip signal, the processing module receives user feedback information.

[0149] Step S52: if the user feedback information is preset reset information, the digital signal is placed in a leakage current signal set; otherwise, the digital signal is placed in a normal current signal set.

[0150] Specifically, the present application also sets up a user feedback mechanism in the leakage protection device. The user can send user feedback information using the button on the leakage protection device or through remote communication of a mobile terminal. When the processing module receives the user feedback information, it first controls the relay module to restore the circuit path, and then determines whether the user feedback information is a preset reset information. The preset reset information indicates that the current leakage signal is a real leakage signal, that is, the current identification is correct, and the digital signal is placed in the leakage current signal set.

[0151] Step S53: training the current identification model again according to the leakage current signal set and the normal current signal set.

[0152] In some embodiments, the method further comprises: The processing module records the leakage protection response time starting from the moment of receiving the digital signal and ending with the moment of sending the trip signal; and sends the leakage protection response time to the mobile terminal through wireless communication.

[0153] Specifically, the leakage protection response time can also be sent to the user as a part of leakage measurement for storage, so that the user can find out in time whether the response time of the leakage protection device is too long and needs to be replaced.

[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0155] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An anti-interference leakage protection device, characterized in that: include: A sensing module, an amplifying module, a rectifying module, an analog-to-digital conversion module, a processing module and a relay module connected in sequence; The amplification module is used to receive the leakage signal of the sensing module and amplify it to obtain an amplified signal; The rectifier module is used to receive the amplified signal and rectify the amplified signal to obtain a DC signal; The analog-to-digital conversion module is used to receive a DC signal and convert the DC signal into a digital signal; The processing module is used to filter the received digital signal and calculate the leakage current value based on the digital signal; when the leakage current value is greater than a preset circuit breaker threshold, a trip signal is sent to the relay module; The relay module is used to perform a circuit disconnection operation when receiving a trip signal.

2. The anti-interference leakage protection device according to claim 1, characterized in that: The processing module is specifically used to obtain the range value of the sensing module, the gain value of the amplification module and the number of bits of the analog-to-digital conversion module; and calculate the leakage current value based on the range value, the gain value, the number of bits and the digital signal.

3. The anti-interference leakage protection device according to claim 2 is characterized in that: The analog-to-digital conversion module includes a first analog-to-digital conversion unit, a second analog-to-digital conversion unit and a judgment unit; The first analog-to-digital conversion unit is used to convert the DC signal into a first current signal; The second analog-to-digital conversion unit is used to convert the DC signal into a second current signal; The judgment unit is used to calculate the difference between the first current signal and the second current signal; When the difference is smaller than a preset calibration threshold, an average value of the first current signal and the second current signal is used as the digital signal.

4. The anti-interference leakage protection device according to claim 3 is characterized in that: The judgment unit is further configured to perform parameter calibration on the first analog-to-digital conversion unit and the second analog-to-digital conversion unit according to the difference when the difference is greater than a preset calibration threshold.

5. The anti-interference leakage protection device according to claim 1, characterized in that: The processing module is specifically used to filter the digital signal using a median filter algorithm or a Kalman filter.

6. The anti-interference leakage protection device according to claim 1, characterized in that: The processing module is also used to extract the current characteristics of the digital signal; The similarity between the current current feature and the historical leakage current feature is calculated; when the similarity is greater than a preset similarity threshold, the leakage current value is calculated based on the digital signal.

7. The anti-interference leakage protection device according to claim 1, characterized in that: The processing module is also used for: Input the historical leakage current signal into the trained generative adversarial network to obtain a set of leakage current signals; The leakage current signal set and the normal current signal set are used to train the hole convolutional neural network to obtain the current recognition model; Inputting the digital signal into the current identification model to obtain an identification result; When the identification result is true, a leakage current value is calculated based on the digital signal.

8. The anti-interference leakage protection device according to claim 7, characterized in that: Also includes a sensor module; The sensor module is used to obtain the working environment parameters of the leakage protection device; The processing module is further used to process the current characteristics of the digital signal based on the gain value of the amplification module to obtain the actual current characteristics; The working environment parameters, actual current characteristics and leakage current values ​​are sent to the mobile terminal via wireless communication.

9. The anti-interference leakage protection device according to claim 8, characterized in that: The processing module is also used for: Obtain historical leakage current signals and initialize network parameters of the generated adversarial network; Extracting historical leakage current characteristics of the historical leakage current signal and working environment parameters of the leakage protection device; Instructing a generator to generate a false leakage current signal based on the historical leakage current characteristics and the working environment parameters; Inputting the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal; Determining whether the first discriminant probability is equal to the second discriminant probability; If not, the network parameters of the generator and the discriminator are updated according to the first discriminant probability and the second discriminant probability.

10. The anti-interference leakage protection device according to claim 7, characterized in that: The processing module is also used for: After sending the trip signal, receiving user feedback information; if the user feedback information is preset reset information, putting the digital signal into the leakage current signal set, otherwise putting it into the normal current signal set.

11. The anti-interference leakage protection device according to claim 8, characterized in that: The processing module is also used to record the leakage protection response time starting from the moment the digital signal is received and ending with the moment the trip signal is sent; and send the leakage protection response time to the mobile terminal via wireless communication.

12. An anti-interference leakage protection method, characterized in that: include: The amplification module amplifies the received leakage signal to obtain an amplified signal; The rectifier module rectifies the amplified signal to obtain a DC signal; The analog-to-digital conversion module converts the DC signal into a digital signal; The processing module filters the received digital signal; calculates the leakage current value based on the digital signal; determines whether the leakage current value is greater than a preset circuit breaker threshold, and if so, sends a trip signal to the relay module; When the relay module receives the trip signal, it performs a circuit cutting operation.

13. The anti-interference leakage protection method according to claim 12, characterized in that: The calculating the leakage current value based on the digital signal comprises: Obtain the range value of the sensing module, the gain value of the amplification module, and the number of bits of the analog-to-digital conversion module; Calculates the exponential with base 2 raised to the power of the number of digits; Subtract 1 from the exponent and multiply the exponent by the gain value to obtain a first product; multiplying the digital signal by the range value to obtain a second product; The second product is divided by the first product to obtain the leakage current value.

14. The anti-interference leakage protection method according to claim 12, characterized in that: Also includes: The processing module extracts the current characteristics of the digital signal; Calculating the similarity between the current current characteristic and the historical leakage current characteristic; When the similarity is greater than a preset similarity threshold, a leakage current value is calculated based on the digital signal.

15. The anti-interference leakage protection method according to claim 12, characterized in that: Also includes: The processing module inputs the historical leakage current signal into the trained generative adversarial network to obtain a set of leakage current signals; The leakage current signal set and the normal current signal set are used to train the hole convolutional neural network to obtain the current recognition model; Inputting the digital signal into the current identification model to obtain an identification result; When the identification result is true, a leakage current value is calculated based on the digital signal.

16. The anti-interference leakage protection method according to claim 15, characterized in that: Also includes: The processing module obtains the historical leakage current signal and initializes the network parameters of the generated adversarial network; Extracting historical leakage current characteristics of the historical leakage current signal and working environment parameters of the leakage protection device; Instructing a generator to generate a false leakage current signal based on the historical leakage current characteristics and the working environment parameters; Inputting the false leakage current signal and the corresponding historical leakage current signal into a discriminator to obtain a first discrimination probability corresponding to the false leakage current signal and a second discrimination probability of the historical leakage current signal; Determining whether the first discriminant probability is equal to the second discriminant probability; If not, the network parameters of the generator and the discriminator are updated according to the first discriminant probability and the second discriminant probability.

17. The anti-interference leakage protection method according to claim 16, characterized in that: The command generator generates a false leakage current signal based on the historical leakage current characteristics and the working environment parameters, including: The generator calculates the environmental adjustment factor according to the preset variation threshold and the working environment parameters; Multiplying the environmental adjustment factor and random noise to obtain a noise vector; Multiplying the historical leakage current feature and the preset extraction weight to obtain a feature vector; Adding the noise vector and the characteristic vector to obtain false current data; Performing inverse Fourier transform on the false current data to obtain the false leakage current signal.

18. The anti-interference leakage protection method according to claim 16, characterized in that: The updating of network parameters of the generator and the discriminator according to the first discriminant probability and the second discriminant probability comprises: Calculate the binary cross entropy loss function of the first discriminant probability and the second discriminant probability respectively; Add the two binary cross entropy loss functions to get the discriminant loss function; Calculate updated network parameters of the discriminator based on the discriminant loss function and the discriminant update gradient; The updated network parameters of the generator are calculated based on the binary cross entropy loss function of the first discriminant probability and the generated update gradient.

19. The anti-interference leakage protection method according to claim 15, characterized in that: Also includes: The processing module receives user feedback information after sending the trip signal; If the user feedback information is preset reset information, the digital signal is placed in the leakage current signal set; otherwise, the digital signal is placed in the normal current signal set; The current identification model is trained again according to the leakage current signal set and the normal current signal set.

20. The anti-interference leakage protection method according to claim 12, characterized in that: Also includes: The processing module records the leakage protection response time starting from the moment when the digital signal is received and ending with the moment when the trip signal is sent; The leakage protection response time is sent to the mobile terminal via wireless communication.

Citation Information

Patent Citations

  • Current detection module for tower solar thermal power generation system and current detection method

    CN109738684A

  • Algorithm for solving imbalance of leakage data of halogen conveying pipeline based on S transformation / WGAN

    CN111460367A

  • Voltage measuring instrument

    CN112051439A

  • Electromagnetic information leakage signal simulation system and method based on generative adversarial network

    CN112232129A

  • Electrical fire monitoring and early warning method based on generative adversarial network

    CN113919198A

Cited By

  • Electric leakage protection device and method for dynamically adjusting driving signal

    CN120414418A