Electric leakage alarm method, device and equipment for resident end and medium
By performing low-pass filtering on the leakage current signal and dynamic threshold calculation of environmental parameters, combined with hierarchical event judgment and remote monitoring, the problem of false alarms and missed alarms in traditional leakage protection devices in residential power consumption scenarios has been solved, and the level of intelligence of leakage monitoring has been improved.
Patent Information
- Application Number
- CN202511126164.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-11-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional leakage current protection devices cannot dynamically adjust alarm thresholds based on environmental parameters in residential power consumption scenarios, leading to frequent false alarms or missed alarms. Furthermore, they lack remote monitoring capabilities and cannot meet the needs of modern smart grids.
By acquiring the leakage current signal and performing low-pass filtering on the finite-length unit impulse response, the alarm threshold is dynamically calculated in combination with environmental parameters, and graded event judgment is performed to generate alarm trigger flags, drive audible and visual alarms, and upload them to the monitoring platform.
It improves the accuracy and environmental adaptability of leakage current detection, enables precise differentiation of leakage events of different severity, meets the needs of remote monitoring, and reduces the risk of electrical equipment failure and fire accidents.
Smart Images

Figure CN120908712A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of power system safety monitoring and intelligent control, and particularly relates to a leakage alarm method, device and equipment for a resident end and a medium. BACKGROUND
[0002] In a power system, leakage is an important safety hazard that leads to electrical equipment failure and fire accidents. In a resident electricity scene, traditional leakage protection devices face many deficiencies due to the large variety of electrical equipment, high frequency of use and complex environment. Illustratively, the existing resident end leakage protection scheme usually relies on a traditional leakage protector, which can only make a leakage judgment based on a fixed threshold and cannot dynamically adjust the alarm threshold according to environmental parameters such as humidity and temperature, resulting in false alarms or missed alarms in humid and high-temperature environments. Moreover, the alarm response form is single, usually only having a basic sound and light alarm function, lacking real-time data interaction capability with a monitoring platform, and being difficult to meet the remote monitoring needs of modern smart grids for leakage safety. SUMMARY
[0003] Therefore, it is necessary to provide a leakage alarm method, device, equipment and medium for a resident end to improve the accuracy and environmental adaptability of leakage detection in a resident electricity scene and improve the intelligent level of resident electricity safety monitoring.
[0004] In a first aspect, the application provides a leakage alarm method for a resident end, comprising:
[0005] obtaining a leakage current signal, performing finite-length unit impulse response low-pass filtering processing on the leakage current signal to generate a filtered signal, and calculating a leakage current effective value of the filtered signal;
[0006] obtaining environmental parameter information, the environmental parameter information including an environmental humidity value and an environmental temperature value, and dynamically calculating an alarm threshold according to the environmental parameter information;
[0007] comparing the leakage current effective value with the alarm threshold, and performing hierarchical event determination according to a comparison result and a waveform feature parameter of the leakage current signal to generate an alarm trigger flag, the alarm trigger flag including an event level;
[0008] generating an alarm instruction according to the alarm trigger flag, the alarm instruction being used to perform at least one of the following response actions:
[0009] driving a piezoelectric buzzer to generate a sound alarm signal and controlling an LED to generate a light alarm signal;
[0010] generating alarm information according to the alarm trigger flag and uploading the alarm information to a monitoring platform.
[0011] In one of the embodiments, the leakage current signal is acquired, the leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing, a filtered signal is generated, and the leakage current effective value is calculated from the filtered signal, comprising:
[0012] The differential current between the phase line and the zero line is acquired through the zero sequence current transformer deployed at the outlet side of the electric energy meter to generate an analog leakage current signal;
[0013] The analog leakage current signal is subjected to amplification and anti-aliasing filtering processing, and then is subjected to digital conversion through an analog-to-digital converter to generate a leakage current signal;
[0014] The leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing, a preset window function type and a preset order are adopted, and a filtered signal is generated;
[0015] The full-cycle root mean square value of the filtered signal is calculated to generate the leakage current effective value.
[0016] In one of the embodiments, the hierarchical event determination is performed according to the comparison result and the waveform characteristic parameters of the leakage current signal to generate an alarm triggering flag, comprising:
[0017] When the comparison result is that there is a warning, the waveform steepness, the zero-crossing interval stability coefficient and the high-frequency energy proportion are calculated based on the leakage current signal to obtain the waveform characteristic parameters;
[0018] The event hierarchy is determined according to the waveform characteristic parameters and the leakage current effective value through the following steps to obtain the leakage level, comprising:
[0019] According to the waveform characteristic parameters, when the leakage current effective value is less than a first threshold value, the waveform steepness is greater than a preset threshold value, and the high-frequency energy proportion is less than 5%, the leakage level is a first-level insulation deterioration early warning level;
[0020] When the leakage current effective value exceeds the first threshold value and is less than a second threshold value, and the zero-crossing interval stability coefficient is greater than a preset coefficient, if the high-frequency energy proportion is less than 20%, the leakage level is a second-level conductor contact poor alarm flag, and if the high-frequency energy proportion exceeds 20%, the leakage level is a second-level arc fault alarm flag;
[0021] When the leakage current effective value exceeds the second threshold value, the leakage level is a third-level forced power-off instruction flag;
[0022] The alarm triggering flag is generated in combination with the leakage level, the comparison result and the leakage current effective value.
[0023] In one of the embodiments, the alarm information is generated according to the alarm triggering flag, and the alarm information is uploaded to a monitoring platform, comprising:
[0024] According to the alarm trigger flag, the time stamp of the real-time clock chip is read, and a device unique identifier is obtained;
[0025] The alarm information is obtained in combination with the device unique identifier, the time stamp, the leakage current effective value, the leakage level and the environmental humidity data, and the alarm information is packaged into a structured data packet;
[0026] The structured data packet is uploaded to the monitoring platform through the wireless communication module.
[0027] In one of the embodiments, the leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing, a preset window function type and a preset order are adopted to generate a filtered signal, including:
[0028] When the environmental temperature value is higher than a preset temperature threshold, a rectangular window function selection operation is performed, otherwise a Kaiser window function selection operation is performed, to obtain the preset window function type;
[0029] According to a preset humidity-order mapping relationship table, a corresponding order value is matched according to the environmental humidity value, to obtain the preset order;
[0030] According to the preset window function type and the preset order, a finite-length unit impulse response low-pass filter is constructed;
[0031] The leakage current signal is filtered by the finite-length unit impulse response low-pass filter to generate a filtered signal.
[0032] In one of the embodiments, the method further includes:
[0033] The threshold adjustment instruction sent by the user end is obtained, and the threshold adjustment instruction includes a digital signature and a new alarm threshold parameter;
[0034] The digital signature is verified according to the pre-stored user public key, when the digital signature verification is passed, the new alarm threshold parameter is compared with the alarm threshold, when the new alarm threshold parameter meets the preset condition, the alarm threshold is updated to the new alarm threshold parameter, to generate an updated alarm threshold.
[0035] In one of the embodiments, the environmental parameter information is obtained, the environmental parameter information includes an environmental humidity value, and the alarm threshold is dynamically calculated according to the environmental parameter information, including:
[0036] Based on the environmental humidity value and the environmental temperature value, a first difference and a second difference with a preset reference humidity value and a preset reference temperature value are respectively calculated;
[0037] The alarm threshold is calculated by a preset threshold formula according to the first difference and the second difference.
[0038] Secondly, the present application also provides a leakage alarm device for a resident end, including:
[0039] The signal acquisition and processing module is configured to acquire the leakage current signal, perform finite-length unit impulse response low-pass filtering on the leakage current signal, generate a filtered signal, and calculate the effective value of the leakage current based on the filtered signal;
[0040] The alarm threshold setting module is configured to acquire environmental parameter information, the environmental parameter information including an environmental humidity value and an environmental temperature value, and dynamically calculate the alarm threshold based on the environmental parameter information;
[0041] The leakage event determination module is configured to compare the effective value of the leakage current with the alarm threshold, and perform hierarchical event determination based on a comparison result and waveform characteristic parameters of the leakage current signal, to generate an alarm trigger flag, the alarm trigger flag including an event level;
[0042] The alarm execution module is configured to generate an alarm instruction based on the alarm trigger flag, the alarm instruction being used to perform at least one of the following response actions:
[0043] driving the piezoelectric buzzer to generate an acoustic alarm signal and controlling the LED to generate a light alarm signal;
[0044] generating alarm information based on the alarm trigger flag, and uploading the alarm information to a monitoring platform.
[0045] In a third aspect, the present application further provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps in the first aspect when executing the computer program.
[0046] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps in the first aspect.
[0047] The above-mentioned leakage alarm method, device, equipment and medium for the resident end can effectively filter out high-frequency noise by performing low-pass filtering on the leakage current signal, improve the accuracy of leakage current effective value calculation, and provide reliable data basis for subsequent leakage determination. Secondly, the alarm threshold is dynamically calculated by the environmental humidity value and the environmental temperature value, fully considering the influence of environmental parameters on the leakage characteristics, effectively solving the problem of false alarm or missed alarm of the traditional fixed threshold in humid, high temperature and other environments. Further, based on the leakage current effective value and the waveform feature parameter of the leakage current signal, the graded event determination is performed, and the accurate differentiation of different severity of leakage events is realized, providing decision basis for differentiated emergency response. Finally, the alarm instruction can be generated according to the alarm trigger flag, not only the sound and light alarm can be realized by driving the piezoelectric buzzer and LED to realize the real-time warning on the spot, but also the corresponding alarm information can be uploaded to the monitoring platform, meeting the remote monitoring demand of the modern smart grid for leakage safety, improving the intelligent level of leakage monitoring of residential electricity, and reducing the risk of electrical equipment failure and fire accidents. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0049] Figure 1 A leakage alarm method flow chart for a resident end is provided for an exemplary embodiment of the present application.
[0050] Figure 2 A leakage alarm device structure schematic diagram for a resident end is provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0052] In one embodiment, as shown in Figure 1 , a leakage alarm method for a resident end is provided, and the present embodiment takes the method applied to a system including a terminal and a server as an example, and the method can be realized by the interaction of the terminal and the server. In the present embodiment, the method includes the following steps:
[0053] S101: Obtain a leakage current signal, perform finite-length unit impulse response low-pass filtering on the leakage current signal to generate a filtered signal, and calculate the effective value of the leakage current based on the filtered signal.
[0054] Specifically, the leakage current signal can be collected by a current sensor. This sensor can monitor the leakage current in the circuit in real time and convert it into a digital signal. Moreover, the leakage current signal contains the size and change of the leakage current in the circuit, but may be mixed with various noise interference, such as high-frequency interference signals. These noises will interfere with the accurate judgment of the leakage current. Therefore, a finite-length unit impulse response low-pass filter can be used to filter the leakage current signal. The finite-length unit impulse response low-pass filter is a linear phase filter, and its unit impulse response is of finite length, which can effectively filter out high-frequency signals above the cutoff frequency while retaining low-frequency signals. Illustratively, the appropriate cutoff frequency can be determined according to the characteristics of the leakage current signal and actual needs, so that the filtered signal can accurately reflect the true situation of the leakage current and remove unnecessary noise interference. The filtered signal is smoother and more stable, and can provide a reliable data basis for subsequent leakage current effective value calculation. Further, the leakage current effective value is an important parameter for measuring the size of the leakage current, which can represent the average power of the leakage current in a period and more accurately reflect the actual harm degree of the leakage current. Illustratively, the effective value of the leakage current can be obtained by squaring, integrating and square-rooting the filtered signal.
[0055] S102: Obtain environmental parameter information, including environmental humidity value and environmental temperature value, and dynamically calculate the alarm threshold based on the environmental parameter information.
[0056] Specifically, changes in environmental humidity and temperature can affect the insulation performance of the circuit and the size of the leakage current. For example, in a high-humidity environment, the moisture in the air can increase the risk of leakage in the circuit, while in a high-temperature environment, the insulation performance of the circuit components may decrease, leading to an increase in leakage current. Therefore, the alarm threshold can be dynamically calculated based on the environmental parameters to further determine whether the leakage current is abnormal. The process of dynamically calculating the alarm threshold based on the environmental parameter information can be performed through a pre-established mathematical model. Illustratively, the model can obtain the relationship between environmental humidity and temperature and leakage current through a large amount of experimental data and theoretical analysis. According to the obtained environmental humidity and temperature values, the corresponding alarm threshold can be calculated by substituting the values into the model, so that the alarm threshold can be adjusted in real time according to the changes in environmental conditions, thereby improving the accuracy and reliability of the leakage alarm.
[0057] S103: Compare the leakage current effective value with the alarm threshold, and perform hierarchical event determination based on the comparison result and the waveform characteristic parameters of the leakage current signal to generate an alarm trigger flag, including an event level.
[0058] Specifically, by comparing the effective value of the leakage current with the alarm threshold, it can be determined whether the leakage current exceeds the normal range. If the effective value of the leakage current exceeds the alarm threshold, it can be indicated that there may be a leakage situation, which needs to be further determined by the hierarchical event. Illustratively, the waveform characteristic parameters include the amplitude, frequency, waveform shape, etc. of the leakage current signal, which can reflect the characteristics and changes of the leakage current. The process of hierarchical event determination can be realized by setting a series of rules and thresholds in combination with the waveform characteristic parameters of the leakage current signal. Finally, according to the result of the hierarchical event determination, an alarm trigger flag including the event level can be generated. The alarm trigger flag is a signal for indicating the occurrence of the leakage event and its severity, which can be used as the basis for subsequent alarm actions.
[0059] S104: According to the alarm trigger flag, an alarm instruction is generated, which is used to execute at least one of the following response actions: driving the piezoelectric buzzer to produce an acoustic alarm signal and controlling the LED to produce a light alarm signal; according to the alarm trigger flag, an alarm information is generated and uploaded to the monitoring platform.
[0060] Specifically, the alarm instruction is used to execute a series of response actions to remind residents to pay attention to the leakage situation and report the leakage information to the monitoring platform. Illustratively, the piezoelectric buzzer is a device that can convert electrical signals into acoustic signals. Based on the alarm instruction, different frequencies and intensities of sound can be emitted by controlling the driving signal of the piezoelectric buzzer to attract the attention of residents. Moreover, the alarm instruction can also control the LED to produce a light alarm signal. LED is a semiconductor device that can convert electrical signals into light signals. By controlling the driving signal of the LED, different colors and intensities of light can be emitted to represent the severity of the leakage event. For example, a red LED can represent a serious leakage, a yellow LED can represent a moderate leakage, and a green LED can represent a slight leakage. The light alarm signal not only attracts the attention of residents, but also visually represents the level of the leakage event through different colors. In addition, the alarm instruction can also generate an alarm information according to the alarm trigger flag and upload the alarm information to the monitoring platform. The alarm information can include detailed information such as the occurrence time, location, event level, etc. of the leakage event, which is then sent to the monitoring platform through the communication module. The monitoring platform can be a remote server or management system that can receive and process alarm information from various resident ends in real time, and centrally monitor and manage the leakage situation. By uploading the alarm information to the monitoring platform, the management personnel can timely understand the leakage situation and take appropriate handling measures, such as notifying maintenance personnel for inspection and repair, etc.
[0061] In the above method, by acquiring and performing low-pass filtering processing on the leakage current signal, high-frequency noise interference in the signal can be effectively removed, making the filtered signal smoother and more stable. Moreover, acquiring and dynamically calculating the alarm threshold according to the environmental parameters can fully consider the normal fluctuation range of the leakage current under different environmental conditions, making the alarm threshold more reasonable and accurate, avoiding false positives or false negatives caused by environmental factors. In addition, comparing the leakage current effective value with the alarm threshold and combining the waveform characteristic parameters of the leakage current signal to determine the graded events, and generating an alarm trigger flag containing the event level, not only can accurately determine whether the leakage event occurs, but also can be graded according to the severity of the leakage, providing a clear basis for taking appropriate measures. Finally, according to the alarm trigger flag, an alarm instruction is generated to drive the piezoelectric buzzer to produce an acoustic alarm signal and control the LED to produce a light alarm signal, which can timely and intuitively remind residents to pay attention to the leakage situation, and the alarm information can also be uploaded to the monitoring platform, facilitating remote monitoring and subsequent processing by relevant management personnel, realizing real-time and accurate monitoring and alarm of the leakage situation at the resident end, effectively ensuring the safety of residents' electricity use.
[0062] In one embodiment, the leakage current signal is acquired, the leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing to generate a filtered signal, and the leakage current effective value is calculated based on the filtered signal, including:
[0063] A differential current between the phase line and the zero line is acquired by deploying a zero sequence current transformer at the outlet side of the electric energy meter to generate an analog leakage current signal;
[0064] The analog leakage current signal is subjected to amplification and anti-aliasing filtering processing, and then is subjected to digital conversion by an analog-to-digital converter to generate a leakage current signal;
[0065] The leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing, a preset window function type and a preset order are adopted, and a filtered signal is generated;
[0066] The filtered signal is subjected to full-cycle root mean square value calculation to generate a leakage current effective value.
[0067] Specifically, in the residential power supply scenario, the leakage current can be detected by a zero sequence current transformer deployed at the outlet side of the electric energy meter. Illustratively, a mounting bracket can be installed to facilitate the user to fix the device including the zero sequence current transformer at the outlet side of the electric energy meter. Moreover, the device can adopt a protective shell made of weather-resistant material, which has good waterproof and dustproof performance, ensuring that the device can work stably in various environments. The zero sequence current transformer is a sensor specially used for detecting leakage current, which can detect the differential current between the phase line and the zero line, i.e., the leakage current. When leakage occurs in the circuit, the current between the phase line and the zero line is no longer balanced, and the imbalance can be detected by the zero sequence current transformer and converted into an analog leakage current signal.
[0068] Since the obtained analog leakage current signal is usually weak and may be mixed with part of high-frequency noise, a low-noise amplifier can be used to amplify the analog leakage current signal to obtain an amplified signal. Then, the amplified signal can be subjected to anti-aliasing filtering to remove frequency components higher than half of the sampling frequency of the analog-to-digital converter to prevent aliasing. Illustratively, the aliasing phenomenon can cause high-frequency signals to be mistaken for low-frequency signals, thereby affecting the accuracy and reliability of the signal. Finally, the obtained analog leakage current signal is digitized by the analog-to-digital converter to convert the continuous analog signal into a discrete digital signal, and the leakage current signal can be obtained.
[0069] Further, a finite-length unit impulse response low-pass filter can also be used to process the leakage current signal to further improve the quality of the signal. The type of window function, such as Hanning window, Hamming window, Blackman window, etc., and the filter order determine the characteristics of the filter, such as the cutoff frequency, transition bandwidth, and sidelobe attenuation. Therefore, an appropriate preset window function type and preset order can be obtained by experiment to filter and generate a filtered signal. The filtered signal is smoother and more stable, which can provide a reliable data basis for subsequent leakage current effective value calculation. Finally, by squaring, integrating, and square-rooting the filtered signal, the full-cycle root mean square value of the signal can be calculated, and the effective value of the leakage current can be obtained.
[0070] In one embodiment, environmental parameter information is obtained, the environmental parameter information including an environmental humidity value, and an alarm threshold is dynamically calculated according to the environmental parameter information, including:
[0071] Based on the environmental humidity value and the environmental temperature value, a first difference and a second difference with a preset reference humidity value and a preset reference temperature value are calculated, respectively.
[0072] The alarm threshold is calculated by a preset threshold formula according to the first difference and the second difference.
[0073] Specifically, the ambient humidity and temperature have an important influence on the normal range of the leakage current. The preset reference humidity value and the preset reference temperature value can be set according to the average value under normal environmental conditions, and used as a reference standard. By calculating the real-time obtained ambient humidity value and the ambient temperature value with the preset reference humidity value and the preset reference temperature value respectively, the first difference value and the second difference value can be obtained. The preset threshold formula is established based on experimental data and theoretical analysis, and can reflect the influence relationship of the ambient humidity and the temperature on the leakage current. The first difference value and the second difference value are substituted into the preset threshold formula, and the corresponding adjustment coefficient is weighted and summed to obtain the alarm threshold.
[0074] In one embodiment, according to the comparison result and the waveform characteristic parameters of the leakage current signal, a graded event determination is performed to generate an alarm trigger flag, including:
[0075] When the comparison result is that there is a warning, based on the leakage current signal, the waveform steepness, the zero-crossing interval stability coefficient and the high-frequency energy proportion are calculated to obtain the waveform characteristic parameters;
[0076] According to the waveform characteristic parameters and the leakage current effective value, the event grading is performed by the following steps to obtain the leakage level, including:
[0077] According to the waveform characteristic parameters, when the leakage current effective value is less than the first threshold value, the waveform steepness is greater than the preset threshold value, and the high-frequency energy proportion is less than 5%, the leakage level is a first-grade insulation deterioration early warning level;
[0078] When the leakage current effective value exceeds the first threshold value and is less than the second threshold value, and the zero-crossing interval stability coefficient is greater than the preset coefficient, if the high-frequency energy proportion is less than 20%, the leakage level is a second-grade conductor contact poor alarm flag, and if the high-frequency energy proportion exceeds 20%, the leakage level is a second-grade arc fault alarm flag;
[0079] When the leakage current effective value exceeds the second threshold value, the leakage level is a third-grade forced power-off instruction flag;
[0080] The alarm trigger flag is generated in combination with the leakage level, the comparison result and the leakage current effective value.
[0081] Specifically, when the leakage current effective value is detected to exceed the dynamically calculated alarm threshold, it can be determined that there is a warning. Subsequently, the waveform characteristic parameters of the leakage current signal can be further analyzed to determine the specific type and severity of the leakage. The waveform characteristic parameters can include waveform steepness, zero-crossing interval stability coefficient and high-frequency energy proportion. Among them, the waveform steepness can be obtained by taking the first derivative of the leakage current signal and calculating the average value of its absolute value. The waveform steepness refers to the rate of change of the leakage current signal per unit time, which reflects the degree of signal mutation. The greater the waveform steepness, the more intense the change of the leakage current signal, indicating that there may be local damage to the insulation material or poor contact. And by detecting the zero-crossing point of the leakage current signal, and calculating the ratio of the standard deviation to the average value of the time interval of adjacent zero-crossing points, the zero-crossing interval stability coefficient can be obtained. The zero-crossing interval stability coefficient refers to the stability of the time interval of the zero-crossing point of the leakage current signal, and the smaller the value, the more stable the time interval of the zero-crossing point of the leakage current signal, indicating that the leakage is relatively stable rather than a sudden failure. The high-frequency energy proportion refers to the proportion of the energy of the high-frequency component in the total energy of the leakage current signal. Illustratively, the leakage current signal can be subjected to Fourier transform to obtain its frequency spectrum distribution, and then the ratio of the high-frequency energy to the total energy is calculated to obtain the high-frequency energy proportion. The higher the high-frequency energy proportion, the more high-frequency components in the leakage current signal, indicating that there may be arc failure or other high-frequency interference.
[0082] Further, when the leakage current effective value is less than the first threshold, the waveform steepness is greater than the preset threshold, and the high-frequency energy proportion is less than 5%, it can be determined as a first-level insulation deterioration early warning level. The first-level insulation deterioration early warning level indicates that the leakage is relatively mild, which may be caused by aging or local damage of the insulation material. However, when the leakage current effective value exceeds the first threshold and is less than the second threshold, the zero-crossing interval stability coefficient is greater than the preset coefficient, and the high-frequency energy proportion is less than 20%, it can be determined as a second-level conductor contact poor alarm symbol, indicating that the leakage is relatively serious, which may be caused by poor conductor contact. When the leakage current effective value exceeds the first threshold and is less than the second threshold, the zero-crossing interval stability coefficient is greater than the preset coefficient, and the high-frequency energy proportion exceeds 20%, it can be determined as a second-level arc failure alarm symbol, indicating that it may be caused by arc failure and the leakage is relatively serious. In addition, when the leakage current effective value exceeds the second threshold, the waveform characteristic parameters can be ignored, and all are determined as a third-level forced power-off instruction symbol, indicating that the leakage is very serious and a forced power-off instruction needs to be issued immediately to cut off the power supply to prevent safety accidents such as fire. After the event classification is completed, the alarm trigger symbol can be generated by combining the leakage level, the comparison result and the leakage current effective value. The alarm trigger symbol is a comprehensive signal indicating the occurrence and severity of the leakage event.
[0083] In one embodiment, according to the alarm trigger flag, alarm information is generated and uploaded to the monitoring platform, including:
[0084] According to the alarm trigger flag, the timestamp of the real-time clock chip is read, and the device unique identifier is obtained;
[0085] Combined with the device unique identifier, the timestamp, the leakage current effective value, the leakage level and the environmental humidity data, the alarm information is obtained, and the alarm information is packaged as a structured data packet;
[0086] The structured data packet is uploaded to the monitoring platform through the wireless communication module.
[0087] Specifically, the real-time clock chip is a hardware component that can provide accurate time information. When generating the alarm trigger flag, the current timestamp can be obtained by communicating with the interface of the real-time clock chip. And the device unique identifier of the current leakage device can be obtained, which is used to distinguish different devices. The device unique identifier can be the serial number of the device. Subsequently, the device unique identifier, the timestamp, the leakage current effective value, the leakage level and the environmental humidity data can be packaged as a structured data packet in JSON or XML format, and uploaded to the monitoring platform through the wireless communication module. Illustratively, the wireless communication module is used to establish and maintain a communication link with the monitoring platform, and to ensure reliable transmission of data. Therefore, the module can convert the packaged data packet into a signal format suitable for wireless transmission, and send it to the monitoring platform through a wireless network.
[0088] In one embodiment, the leakage current signal is subjected to finite-length unit impulse response low-pass filtering processing, a preset window function type and a preset order are adopted, and a filtered signal is generated, including:
[0089] When the environmental temperature value is higher than the preset temperature threshold, the rectangular window function selection operation is performed, otherwise the Kaiser window function selection operation is performed, to obtain the preset window function type;
[0090] According to the preset humidity-order mapping relationship table, the corresponding order value is matched according to the environmental humidity value, to obtain the preset order;
[0091] According to the preset window function type and the preset order, a finite-length unit impulse response low-pass filter is constructed;
[0092] The leakage current signal is filtered by the finite-length unit impulse response low-pass filter to generate a filtered signal.
[0093] Specifically, the preset temperature threshold is used as a reference standard for judging whether the ambient temperature is abnormal. When the ambient temperature value is higher than the preset temperature threshold, the rectangular window function can be selected. The rectangular window function has the narrowest main lobe width and can provide the maximum transition band roll-off rate, which is suitable for the leakage detection scene of high-frequency noise energy concentration in high-temperature environment. Otherwise, the Kaiser window function can be selected. The Kaiser window function can balance the main lobe width and the sidelobe attenuation through the preset parameter, and can better suppress the sidelobe interference and reduce the spectrum leakage in the normal temperature environment. Further, the preset humidity-order mapping table is used to match the corresponding filter order according to the ambient humidity value. And the table reflects the influence relationship of the ambient humidity on the filter order. According to the current ambient humidity value, the corresponding order value can be found in the preset humidity-order mapping table. For example, in a low-humidity environment, the insulation material is dry, and the leakage current signal noise energy is low, a lower order can be used. In a high-humidity environment, a water film may be formed on the insulation surface, resulting in more high-frequency interference mixed in the leakage current signal, and then the order can be increased. Subsequently, the coefficients of the finite-length unit impulse response low-pass filter can be calculated according to the selected window function type and the filter order. Finally, the leakage current signal is convolved by the filter to obtain the filtered signal.
[0094] In one embodiment, the method further comprises:
[0095] Obtaining a threshold adjustment instruction sent by the user end, the threshold adjustment instruction comprising a digital signature and a new alarm threshold parameter;
[0096] Verifying the digital signature according to a pre-stored user public key, when the digital signature is verified, comparing the new alarm threshold parameter with the alarm threshold, when the new alarm threshold parameter meets a preset condition, updating the alarm threshold to the new alarm threshold parameter, and generating an updated alarm threshold.
[0097] Specifically, the digital signature can be used to verify the identity of the sender and ensure the integrity of the data. Illustratively, the user terminal can use its private key to sign the threshold adjustment instruction to generate a digital signature. Through the digital signature, it is ensured that the instruction is sent by the authorized user and has not been tampered with during transmission. The new alarm threshold parameter is the specific value of the alarm threshold that the user wants to update. After receiving the threshold adjustment instruction, it can be verified by the pre-stored public key of the user. If the verification is passed, it means that the instruction is sent by the authorized user and has not been tampered with during transmission. If the verification fails, the instruction will be rejected and recorded as a security event. After the digital signature verification is passed, the new alarm threshold parameter can be compared with the current alarm threshold to ensure that the new parameter meets the preset condition. The preset condition is used to ensure that the new alarm threshold parameter is within a reasonable range. For example, the new alarm threshold cannot be lower than the safety minimum value, nor can it be higher than the safety maximum value, thereby ensuring that the update of the alarm threshold will not cause the leakage detection performance to decrease or the safety risk to increase. If the new alarm threshold parameter meets the preset condition, the current alarm threshold can be updated to the new alarm threshold parameter for subsequent leakage detection and alarm judgment.
[0098] Illustratively, the user terminal can set the new alarm threshold parameter, view alarm history records and other information through a user interface including a display screen, buttons and other components.
[0099] As shown in Figure 2 Based on the same inventive concept, the embodiments of the present application also provide a leakage alarm device for a user terminal 200 for implementing the above-mentioned method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more leakage alarm device embodiments for a user terminal provided below can refer to the limitations of the leakage alarm method for a user terminal in the above, which will not be described here. The device includes:
[0100] The signal acquisition and processing module 201 is configured to acquire a leakage current signal, perform finite-length unit impulse response low-pass filtering processing on the leakage current signal, generate a filtered signal, and calculate a leakage current effective value of the filtered signal.
[0101] The alarm threshold setting module 202 is configured to acquire environmental parameter information, the environmental parameter information including an environmental humidity value and an environmental temperature value, and dynamically calculate an alarm threshold according to the environmental parameter information.
[0102] The leakage event determination module 203 is configured to compare the leakage current effective value with the alarm threshold, and perform hierarchical event determination according to a comparison result and a waveform feature parameter of the leakage current signal, to generate an alarm trigger flag, the alarm trigger flag including an event level.
[0103] The alarm execution module 204 is used for generating an alarm instruction according to the alarm trigger flag, and the alarm instruction is used for executing at least one of the following response actions:
[0104] The piezoelectric buzzer is driven to generate a sound alarm signal, and the LED is controlled to generate a light alarm signal.
[0105] According to the alarm trigger flag, alarm information is generated and uploaded to the monitoring platform.
[0106] In the above device, the signal acquisition and processing module 201 can effectively filter out high-frequency noise interference and improve the accuracy of subsequent leakage current effective value calculation by acquiring the leakage current signal and performing low-pass filtering processing. The alarm threshold setting module 202 dynamically calculates the alarm threshold by acquiring the environmental humidity value and the environmental temperature value, fully considers the influence of environmental parameters on the leakage characteristics, effectively solves the problem of false alarm or missed alarm of the traditional fixed threshold in complex environment, and enhances the adaptability of the alarm device to the residential power supply scene. The leakage event determination module 203 determines the event based on the leakage current effective value and the waveform feature parameter of the leakage current signal, which can accurately distinguish leakage events of different severity and provide a scientific decision basis for subsequent alarm response. The alarm execution module 204 generates an alarm instruction according to the alarm trigger flag, and then realizes real-time warning on the spot through sound and light alarm, and can upload the alarm information to the monitoring platform, which meets the remote monitoring demand of the modern smart grid for leakage safety and improves the intelligent level of residential power leakage monitoring.
[0107] Illustratively, the device can further include a power module and a data storage module. The power module is used to provide power supply for the entire device, which can include a built-in battery and an external power adapter. The data storage module can be used to save historical alarm information and device running state, which is convenient for subsequent analysis and troubleshooting.
[0108] In one exemplary embodiment, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method for residential end leakage alarm when executing the computer program. Preferably, a multi-core processor is used to improve the parallel processing capability of the system. The memory provides sufficient temporary storage space to support program execution and data processing. The memory capacity should be large enough to accommodate a large amount of supply information and computing tasks.
[0109] In one exemplary embodiment, the present application also provides a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the method for residential end leakage alarm.
[0110] The above-described embodiments only express several implementation manners of the application, the description is more specific and detailed, but it cannot be understood as the limitation of the patent scope of the application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the application, several modifications and improvements can be made, which are within the protection scope of the application.
Claims
1. A method for electric leakage alarm for a resident end, characterized in that, The method comprises: Obtaining a leakage current signal, performing finite-length unit impulse response low-pass filtering processing on the leakage current signal to generate a filtered signal, and calculating a leakage current effective value of the filtered signal; Obtaining environmental parameter information, the environmental parameter information including an environmental humidity value and an environmental temperature value, and dynamically calculating an alarm threshold according to the environmental parameter information; Comparing the leakage current effective value with the alarm threshold, and performing hierarchical event determination according to a comparison result and waveform characteristic parameters of the leakage current signal to generate an alarm trigger flag, the alarm trigger flag including an event level; Generating an alarm instruction according to the alarm trigger flag, the alarm instruction being used to perform at least one of the following response actions: Driving a piezoelectric buzzer to generate an acoustic alarm signal and controlling an LED to generate a light alarm signal; Generating an alarm information according to the alarm trigger flag, and uploading the alarm information to a monitoring platform.
2. The method of claim 1, wherein, The method of obtaining a leakage current signal, performing finite-length unit impulse response low-pass filtering processing on the leakage current signal to generate a filtered signal, and calculating a leakage current effective value of the filtered signal comprises: Obtaining a differential current between a phase line and a zero line through a zero sequence current transformer deployed at an outlet side of an electric energy meter to generate an analog leakage current signal; Performing amplification and anti-aliasing filtering processing on the analog leakage current signal, and then performing digital conversion through an analog-to-digital converter to generate the leakage current signal; Performing finite-length unit impulse response low-pass filtering processing on the leakage current signal, using a preset window function type and a preset order to generate the filtered signal; Performing full-cycle root mean square value calculation on the filtered signal to generate the leakage current effective value.
3. The method of claim 1, wherein, The method of generating an alarm trigger flag according to a comparison result and waveform characteristic parameters of the leakage current signal comprises: When the comparison result is that there is a warning, calculating waveform steepness, zero-crossing interval stability coefficient and high-frequency energy proportion based on the leakage current signal to obtain the waveform characteristic parameters; Performing event grading according to the waveform characteristic parameters and the leakage current effective value through the following steps to obtain a leakage level, comprising: When the leakage current effective value is less than a first threshold, the waveform steepness is greater than a preset threshold, and the high-frequency energy proportion is less than 5%, according to the waveform characteristic parameters, the leakage level is a first-level insulation deterioration early warning level; When the leakage current effective value is greater than the first threshold and less than a second threshold, and the zero-crossing interval stability coefficient is greater than a preset coefficient, if the high-frequency energy proportion is less than 20%, the leakage level is a second-level conductor contact poor alarm flag, and if the high-frequency energy proportion is greater than 20%, the leakage level is a second-level arc fault alarm flag; When the leakage current effective value is greater than the second threshold, the leakage level is a third-level forced power-off instruction flag; Generating the alarm trigger flag in combination with the leakage level, the comparison result and the leakage current effective value.
4. The method of claim 3, wherein, The method of generating an alarm information according to the alarm trigger flag, and uploading the alarm information to a monitoring platform comprises: According to the alarm trigger flag, a timestamp of a real-time clock chip is read, and a device unique identifier is obtained; Combined with the device unique identifier, the timestamp, the leakage current effective value, the leakage current level and the environmental humidity data, the alarm information is obtained, and the alarm information is packaged as a structured data packet; The structured data packet is uploaded to the monitoring platform through a wireless communication module.
5. The method of claim 2, wherein, The leakage current signal is filtered by the finite-length unit impulse response low-pass filter, and the preset window function type and the preset order are used to generate the filtered signal, including: When the environmental temperature value is higher than a preset temperature threshold, a rectangular window function selection operation is performed, otherwise a Kaiser window function selection operation is performed, to obtain the preset window function type; According to the environmental humidity value, a corresponding order value is matched through a preset humidity-order mapping relationship table, to obtain the preset order; According to the preset window function type and the preset order, a finite-length unit impulse response low-pass filter is constructed; The leakage current signal is filtered by the finite-length unit impulse response low-pass filter, and the filtered signal is generated.
6. The method of claim 1, wherein, The method further includes: A threshold adjustment instruction sent by a user terminal is obtained, and the threshold adjustment instruction includes a digital signature and a new alarm threshold parameter; The digital signature is verified according to a pre-stored user public key, when the digital signature is verified, the new alarm threshold parameter is compared with the alarm threshold, when the new alarm threshold parameter meets a preset condition, the alarm threshold is updated to the new alarm threshold parameter, and an updated alarm threshold is generated.
7. The method of claim 1, wherein, The environmental parameter information includes an environmental humidity value, and the alarm threshold is dynamically calculated according to the environmental parameter information, including: Based on the environmental humidity value and the environmental temperature value, a first difference and a second difference with a preset reference humidity value and a preset reference temperature value are respectively calculated; The alarm threshold is calculated through a preset threshold formula according to the first difference and the second difference.
8. A leakage alarm device for a resident end, characterized by, The device includes: A signal acquisition and processing module is configured to obtain a leakage current signal, perform finite-length unit impulse response low-pass filtering on the leakage current signal to generate a filtered signal, and calculate a leakage current effective value of the filtered signal; An alarm threshold setting module is configured to obtain environmental parameter information including an environmental humidity value and an environmental temperature value, and dynamically calculate an alarm threshold according to the environmental parameter information; A leakage event determination module is configured to compare the leakage current effective value with the alarm threshold, and perform hierarchical event determination according to a comparison result and a waveform feature parameter of the leakage current signal to generate an alarm trigger flag, the alarm trigger flag including an event level; An alarm execution module is configured to generate an alarm instruction according to the alarm trigger flag, the alarm instruction being used to perform at least one of the following response actions: Drive a piezoelectric buzzer to generate an acoustic alarm signal, and control an LED to generate a light alarm signal; Generate alarm information according to the alarm trigger flag, and upload the alarm information to a monitoring platform. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 7.
Citation Information
Cited By
Multifunctional power equipment monitor with monitoring and alarming functions
CN121253962A