Leakage protection method and system for wading area

By pre-processing and waveform matching of residual current signal in the leakage protection system in the hiding area, and adjusting the power supply circuit in combination with the electric shock detection model, the problem of erroneous or refusal of leakage protectors in the prior art is solved, and the reliability and safety of the equipment are improved.

CN120497841APending Publication Date: 2025-08-15FOSHAN POWER SUPPLY BUREAU GUANGDONG POWER GRID
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510612634.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The setting value of the operating current of the existing leakage protector in the wading area is not related to the electric shock current of the biological body, resulting in frequent occurrence of malfunction or refusal, reducing the reliability of the electrical equipment.

Method used

By obtaining the remaining current signals on both sides of the hiking area to be monitored, performing signal preprocessing, waveform matching, calculate the current similarity value, and using a pre-trained electric shock detection model to detect the electric shock type, adjust the power supply circuit according to the electric shock type.

Benefits of technology

It reduces the false alarm rate of leakage monitoring, reduces the risk of personal electric shock, and improves the operating reliability of power equipment in water-bearing areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120497841A_ABST
    Figure CN120497841A_ABST
Patent Text Reader

Abstract

The invention discloses an electric leakage protection method and system for a wading area, and relates to the technical field of electric leakage protection, and the method comprises the steps: obtaining residual current signals at two sides of a to-be-monitored wading area, carrying out the signal preprocessing of each residual current signal, obtaining two target current waveforms, carrying out the waveform matching of the two target current waveforms, and obtaining an electric leakage protection result; a current similarity value is obtained, when the current similarity value is larger than a preset similarity threshold value, a pre-trained electric shock detection model is adopted to conduct electric shock detection on the two target current waveforms, an electric shock type corresponding to the to-be-monitored wading area is obtained, and a power supply loop on the to-be-monitored wading area is adjusted according to the electric shock type. The technical problems that an existing leakage protector takes the effective value of the residual current as the unique action criterion, maloperation or operation refusal phenomena are easily caused, and the operation reliability of electric equipment in a wading area is reduced are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of leakage protection, and in particular to a leakage protection method and system for water-related areas. Background Art

[0002] With the widespread use of electrical equipment, electrical safety issues are becoming increasingly prominent in areas involving water, such as aquaculture farms, swimming pools, and other water-related industrial sites. Due to the conductivity of water, the risk of electrical leakage accidents in these areas is significantly increased, potentially leading to serious consequences such as electric shock, equipment damage, and even fire. Therefore, implementing leakage protection in areas involving water is crucial.

[0003] At present, the existing technology mainly provides leakage protection for water-related areas by adding leakage protectors to the power supply equipment in water-related areas. However, the setting value of the operating current of the leakage protector has nothing to do with the electric shock current of the biological body. Instead, the effective value of the residual current is used as the only action criterion, which can easily lead to false operation or refusal to operate, reducing the reliability of the operation of electrical equipment in water-related areas. Summary of the Invention

[0004] The present invention provides a leakage protection method and system for water-related areas, which solves the technical problem that the existing technology mainly performs leakage protection for water-related areas by adding a leakage protector to the power supply equipment in the water-related areas, but the setting value of the action current of the leakage protector is not related to the electric shock current of the biological body, but uses the effective value of the residual current as the only action criterion, which easily leads to the occurrence of false operation or refusal to operate, thereby reducing the reliability of the operation of electrical equipment in the water-related areas.

[0005] A first aspect of the present invention provides a leakage protection method for a water-related area, comprising:

[0006] Obtaining residual current signals on both sides of the water-wading area to be monitored, and performing signal preprocessing on each residual current signal to obtain two target current waveforms;

[0007] Performing waveform matching on the two target current waveforms to obtain a current similarity value;

[0008] When the current similarity value is greater than a preset similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored;

[0009] The power supply circuit on the water-related area to be monitored is adjusted according to the type of electric shock.

[0010] Optionally, the step of performing signal preprocessing on each of the residual current signals to obtain two target current waveforms includes:

[0011] Using a moving average filtering method to filter each of the residual current signals respectively to obtain two filtered current signals;

[0012] Normalizing each of the filtered current signals to obtain two target current signals;

[0013] Each target current signal is subjected to waveform conversion processing to obtain two target current waveforms.

[0014] Optionally, the step of performing waveform matching on the two target current waveforms to obtain a current similarity value includes:

[0015] Each target current waveform is parameterized to obtain two current point sequences;

[0016] The Frechet distance method is used to calculate the similarity between the two current point sequences to obtain a current similarity value.

[0017] Optionally, the electric shock detection model includes a backbone network and a detection network, and the step of using a pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored includes:

[0018] Performing time domain feature extraction on the two target current waveforms to obtain first current feature data;

[0019] Performing frequency domain feature extraction on the two target current waveforms to obtain second current feature data;

[0020] Extracting features of the two target current waveforms through the backbone network to obtain third current feature data;

[0021] The electric shock detection is performed on the first current characteristic data, the second current characteristic data and the third current characteristic data through the detection network to obtain the electric shock type corresponding to the water-wading area to be monitored.

[0022] Optionally, the step of adjusting the power supply circuit on the water-related area to be monitored according to the type of electric shock includes:

[0023] When the electric shock type is non-biological electric shock, an early warning is broadcast to the power supply circuit on the water-related area to be monitored;

[0024] When the electric shock type is biological electric shock, the circuit breaker of the power supply circuit is disconnected, and an early warning is broadcast to the power supply circuit.

[0025] Optionally, it also includes:

[0026] When the current similarity value is less than or equal to the similarity threshold, the process jumps to executing the step of obtaining the residual current signals on both sides of the water-wading area to be monitored.

[0027] A second aspect of the present invention provides a leakage protection system for water-related areas, comprising:

[0028] An acquisition module is used to obtain residual current signals on both sides of the water-wading area to be monitored, and perform signal preprocessing on each residual current signal to obtain two target current waveforms;

[0029] a matching module, configured to perform waveform matching on the two target current waveforms to obtain a current similarity value;

[0030] An electric shock detection module is configured to, when the current similarity value is greater than a preset similarity threshold, use a pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored;

[0031] The control module is used to adjust the power supply circuit on the water-related area to be monitored according to the type of electric shock.

[0032] A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the leakage protection method for water-related areas as described in any one of the above items.

[0033] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the leakage protection method for water-related areas as described in any one of the above items.

[0034] A fifth aspect of the present invention provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the leakage protection method for water-related areas as described in any one of the above items.

[0035] It can be seen from the above technical solutions that the present invention has the following advantages:

[0036] The present invention performs waveform matching on two target current waveforms to obtain a current similarity value. When the current similarity value is greater than a preset similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-related area to be monitored, and the power supply circuit associated with the water-related area to be monitored is adjusted according to the electric shock type. This overcomes the technical problem that existing leakage protectors use the effective value of the residual current as the only action criterion, which easily leads to false operation or refusal to operate, thereby reducing the reliability of electrical equipment in water-related areas. Compared with traditional leakage protectors, the present invention uses a pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms when the current similarity value is greater than a preset similarity threshold to obtain the corresponding electric shock type. The power supply circuit associated with the water-related area to be monitored is then adjusted according to the electric shock type, reducing the false alarm rate of leakage monitoring in water-related areas. At the same time, the power supply circuit is adjusted according to the electric shock type, reducing the risk of personal electric shock and improving the reliability of electrical equipment in water-related areas. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0038] Figure 1 A flowchart of a leakage protection method for water-related areas provided in the first embodiment of the present invention;

[0039] Figure 2 A flowchart of a leakage protection method for water-related areas provided in the second embodiment of the present invention;

[0040] Figure 3 A schematic structural diagram of an electric shock protection device provided in a second embodiment of the present invention;

[0041] Figure 4 A schematic structural diagram of an optical alarm module provided in the second embodiment of the present invention;

[0042] Figure 5 This is a schematic diagram of the structure of the ADC conversion module provided in the second embodiment of the present invention;

[0043] Figure 6 A schematic structural diagram of a small magnification module provided in the second embodiment of the present invention;

[0044] Figure 7 A schematic structural diagram of a sound alarm module provided in the second embodiment of the present invention;

[0045] Figure 8 This is a structural block diagram of a leakage protection system for water-related areas provided in the third embodiment of the present invention;

[0046] Figure 9 This is a structural block diagram of a computer device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0047] An embodiment of the present invention provides a leakage protection method and system for water-related areas, which is used to solve the technical problem that the existing technology mainly performs leakage protection on the water-related areas by adding a leakage protector to the power supply equipment in the water-related areas, but the setting value of the action current of the leakage protector is not related to the electric shock current of the biological body, but uses the effective value of the residual current as the only action criterion, which easily leads to the occurrence of false operation or refusal to operate, thereby reducing the reliability of the operation of electrical equipment in the water-related areas.

[0048] In order to make the purpose, features, and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0049] See also Figure 1 , Figure 1 This is a flowchart of the steps of a leakage protection method for water-related areas provided in Example 1 of the present invention.

[0050] The present invention provides a leakage protection method for water-related areas, comprising:

[0051] Step 101: Obtain residual current signals on both sides of the water-wading area to be monitored, perform signal preprocessing on each residual current signal, and obtain two target current waveforms;

[0052] In an embodiment of the present invention, residual current signals on both sides of the water-wading area to be monitored are obtained by setting residual current transformers on both sides of the water-wading area to be monitored, and signal preprocessing is performed on each residual current signal to obtain two target current waveforms.

[0053] Step 102: Perform waveform matching on the two target current waveforms to obtain a current similarity value;

[0054] In an embodiment of the present invention, the Fréchet distance algorithm is used to calculate the similarity between two target current waveforms to obtain a current similarity value.

[0055] Step 103: When the current similarity value is greater than a preset similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored;

[0056] In an embodiment of the present invention, it is determined whether the current similarity value is greater than a preset similarity threshold. If the current similarity value is greater than the similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored. If the current similarity value is less than or equal to the similarity threshold, the process jumps to step 101.

[0057] It should be noted that when a fault leakage occurs in the water-wading area, the target current waveforms on both sides of the water-wading area no longer overlap, and the similarity between the two target current waveforms decreases as the fault leakage in the water-wading area increases.

[0058] Step 104: Adjust the power supply circuit on the water-related area to be monitored according to the type of electric shock.

[0059] In this embodiment of the present invention, the type of electric shock is determined to be biological. If the electric shock type is biological, the power supply circuit in the water-related area is disconnected and an alarm is broadcasted for the power supply circuit. If the electric shock type is not biological, it indicates a non-biological leakage fault, and an alarm is broadcasted for the power supply circuit in the water-related area.

[0060] In an embodiment of the present invention, two target current waveforms are matched to obtain a current similarity value. When the current similarity value exceeds a preset similarity threshold, a pre-trained electric shock detection model is used to detect electric shocks on the two target current waveforms. The electric shock type corresponding to the monitored water-related area is determined, and the power supply circuit associated with the monitored water-related area is adjusted based on the electric shock type. This overcomes the technical problem that existing leakage protectors use the effective value of the residual current as the sole action criterion, which can easily lead to false operation or refusal to operate, thereby reducing the reliability of electrical equipment in water-related areas. Compared with traditional leakage protectors, the present invention uses a pre-trained electric shock detection model to detect electric shocks on the two target current waveforms when the current similarity value exceeds a preset similarity threshold. The corresponding electric shock type is then determined, and the power supply circuit associated with the monitored water-related area is adjusted based on the electric shock type, thereby reducing the false alarm rate of leakage monitoring in water-related areas. At the same time, the power supply circuit is adjusted based on the electric shock type, reducing the risk of electric shock to personnel and improving the reliability of electrical equipment in water-related areas.

[0061] See also Figure 2 , Figure 2 This is a flowchart of the steps of a leakage protection method for water-related areas provided in the second embodiment of the present invention.

[0062] The present invention provides a leakage protection method for water-related areas, comprising:

[0063] Step 201: Obtain residual current signals on both sides of the water-wading area to be monitored, perform signal preprocessing on each residual current signal, and obtain two target current waveforms;

[0064] It should be noted that, when the residual current signals on both sides of the water-wading area to be monitored are not obtained, the process jumps to step 201 , thereby performing real-time monitoring of the water-wading area to be monitored.

[0065] Furthermore, step 201 includes the following sub-steps:

[0066] S11, using a moving average filtering method to filter each residual current signal to obtain two filtered current signals;

[0067] In the embodiment of the present invention, a moving average filtering method is used to smooth each residual current signal to obtain two filtered current signals.

[0068] It should be noted that the moving average filter method is used to smooth time series data, remove noise and random fluctuations, while retaining the main trend of the signal. It achieves the filtering effect by calculating the average value of the data points within a certain window. The specific processing process of the moving average filter method is as follows: A1. Given a signal sequence containing N samples, where n is the index of the sample (from 0 to N-1). A2. The moving average filter performs filtering by sliding a window of fixed length M across the signal sequence and calculating the average value of the samples within the window. For each position k in the sliding window, the filtered output y[k] is expressed as:

[0069]

[0070] in, is the smoothed data value (i.e. the moving average at the kth moment), is the measurement value at time k in the original data sequence, is the measurement value at time k-1 in the original data sequence, is the measurement value at time k-2 in the original data sequence, is the measurement value at time k-M+1 in the original data sequence.

[0071] S12, normalizing each filtered current signal to obtain two target current signals;

[0072] In the embodiment of the present invention, normalization operations are performed on each filtered current signal to obtain two target current signals.

[0073] S13. Perform waveform conversion processing on each target current signal to obtain two target current waveforms.

[0074] In an embodiment of the present invention, a drawing tool (such as Matplotlib) is used to combine each target current signal with a time axis to obtain two target current waveforms.

[0075] Step 202: Parameterize each target current waveform to obtain two current point sequences;

[0076] In the embodiment of the present invention, the two target current waveforms are converted into current time series data respectively. That is, P (P is the current time series data of the first target current waveform) and Q (Q is the current time series data of the second target current waveform), P={p1,p2,…,p m}, Q={q1,q2,…,q n The time and current value (t, I) of each point in P and Q.

[0077] Step 203: Calculate the similarity between the two current point sequences using the Frechet distance method to obtain a current similarity value.

[0078] In an embodiment of the present invention, two current point sequences are input into a preset Frechet distance function to obtain a current similarity value.

[0079] It should be noted that the Frechet distance function is specifically:

[0080]

[0081]

[0082] in, To obtain the infimum (i.e., find the parameterization that minimizes the maximum distance among all possible parameters), To consider all points at time t under given parameters and The maximum value of the distance between is the parameterization at time t and The distance between corresponding points on the lower curve, P and Q, =(α(t) / β(t)) represents the parameterization of the two curves. Each function α(t) and β(t) maps time t to a point on the curve, where both α and β must start at 0 and end at 1 to ensure that the curves go from the starting point to the end point.

[0083] Step 204: When the current similarity value is greater than a preset similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored;

[0084] Furthermore, the electric shock detection model includes a backbone network and a detection network, and step 204 includes the following sub-steps:

[0085] S21, extracting time domain features of two target current waveforms to obtain first current feature data;

[0086] In an embodiment of the present invention, time domain feature extraction is performed on two target current waveforms to obtain first current feature data, wherein the first current feature data includes but is not limited to the mean, variance, peak value, kurtosis and skewness of the target current waveforms.

[0087] S22, extracting frequency domain features of the two target current waveforms to obtain second current feature data;

[0088] In an embodiment of the present invention, second current characteristic data of two target current waveforms are extracted by Fourier transform, wherein the second current characteristic data includes but is not limited to main frequency, harmonic components, etc.

[0089] S23, extracting features of the two target current waveforms through the backbone network to obtain third current feature data;

[0090] In an embodiment of the present invention, feature extraction is performed on two target current waveforms through a backbone network to obtain third current feature data, wherein the backbone network includes but is not limited to a pre-trained convolutional neural network (CNN) or a long short-term memory network (LSTM).

[0091] S24. Perform electric shock detection on the first current characteristic data, the second current characteristic data, and the third current characteristic data through a detection network to obtain an electric shock type corresponding to the water-wading area to be monitored.

[0092] In an embodiment of the present invention, electric shock detection is performed on the first current characteristic data, the second current characteristic data and the third current characteristic data through a detection network to obtain the type of electric shock corresponding to the water-related area to be monitored, wherein the detection network includes but is not limited to a pre-trained SVM support vector machine.

[0093] Step 205: Adjust the power supply circuit on the water-related area to be monitored according to the type of electric shock.

[0094] Furthermore, step 205 includes the following sub-steps:

[0095] S31. When the electric shock type is non-biological electric shock, a warning is broadcast to the power supply circuit in the monitored water-related area;

[0096] In an embodiment of the present invention, when the type of electric shock is non-biological electric shock, an audible and visual alarm is used to broadcast an early warning to the power supply circuit in the monitored water-related area.

[0097] S32. When the electric shock type is biological electric shock, the circuit breaker of the power supply circuit is disconnected, and an early warning is broadcast for the power supply circuit.

[0098] In an embodiment of the present invention, when the type of electric shock is biological electric shock, the circuit breaker of the power supply circuit is disconnected, and an audible and visual alarm is used to broadcast an early warning to the power supply circuit.

[0099] Furthermore, it also includes:

[0100] When the current similarity value is less than or equal to the similarity threshold, the process jumps to executing the step of obtaining residual current signals on both sides of the water-wading area to be monitored.

[0101] It is worth mentioning that the method of steps 201 to 205 can be performed by an electric shock protection device to achieve leakage protection in water-related areas. Figure 3 As shown, the electric shock protection device includes two residual current transformers, two signal amplification circuits, two AC-DC conversion modules, two sub-controllers, a main controller, a circuit breaker, an LED module, and an audible alarm module. The electric shock protection device works as follows: B1. The residual current signal of the water-related area to be monitored is simultaneously detected by the two residual current transformers at a certain frequency (wherein the two residual current transformers are set on both sides of the water-related area to be monitored). B2. Figure 6 As shown, the residual current signal is amplified by the signal amplification circuit (i.e., the small magnification amplification module). Figure 5 As shown, the residual current signals after amplification on both sides are input into the AC-DC conversion module to obtain the residual current signal that can be identified and detected by the main controller and the sub-controller. B4. The sub-controller performs a moving average filter on the residual current signal to obtain the target current signal. B5. The main controller executes the method of steps 202 to 204. B6. See Figure 7 As shown in Figure 1, when the electric shock type is non-biological electric shock, the main controller controls the sound alarm module to broadcast an early warning to the power supply circuit on the monitored water-crossing area. B7. When the electric shock type is biological electric shock, the main controller controls the circuit breaker to disconnect and controls the sound alarm module to broadcast an early warning to the power supply circuit on the monitored water-crossing area. B8. Figure 4 When the current similarity value is less than or equal to the similarity threshold, the main controller controls the LED module to turn on and jumps to execute B1.

[0102] In an embodiment of the present invention, two target current waveforms are matched to obtain a current similarity value. When the current similarity value exceeds a preset similarity threshold, a pre-trained electric shock detection model is used to detect electric shocks on the two target current waveforms. The electric shock type corresponding to the monitored water-related area is determined, and the power supply circuit associated with the monitored water-related area is adjusted based on the electric shock type. This overcomes the technical problem that existing leakage protectors use the effective value of the residual current as the sole action criterion, which can easily lead to false operation or refusal to operate, thereby reducing the reliability of electrical equipment in water-related areas. Compared with traditional leakage protectors, the present invention uses a pre-trained electric shock detection model to detect electric shocks on the two target current waveforms when the current similarity value exceeds a preset similarity threshold. The corresponding electric shock type is then determined, and the power supply circuit associated with the monitored water-related area is adjusted based on the electric shock type, thereby reducing the false alarm rate of leakage monitoring in water-related areas. At the same time, the power supply circuit is adjusted based on the electric shock type, reducing the risk of electric shock to personnel and improving the reliability of electrical equipment in water-related areas.

[0103] See also Figure 8 , Figure 8 This is a structural block diagram of a leakage protection system for water-related areas provided in Example 3 of the present invention.

[0104] The present invention provides a leakage protection system for water-related areas, comprising:

[0105] The acquisition module 301 is used to obtain residual current signals on both sides of the water-wading area to be monitored, and perform signal preprocessing on each residual current signal to obtain two target current waveforms;

[0106] A matching module 302 is configured to perform waveform matching on two target current waveforms to obtain a current similarity value;

[0107] The electric shock detection module 303 is configured to use a pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms when the current similarity value is greater than a preset similarity threshold, and obtain the electric shock type corresponding to the water-worn area to be monitored;

[0108] The control module 304 is used to adjust the power supply circuit on the water-related area to be monitored according to the type of electric shock.

[0109] Furthermore, the acquisition module 301 includes:

[0110] The filtering submodule is used to filter each residual current signal using a moving average filtering method to obtain two filtered current signals;

[0111] A normalization submodule is used to perform normalization processing on each filtered current signal to obtain two target current signals;

[0112] The conversion submodule is used to perform waveform conversion processing on each target current signal to obtain two target current waveforms.

[0113] Furthermore, the matching module 302 includes:

[0114] The sequence submodule is used to parameterize each target current waveform to obtain two current point sequences;

[0115] The similarity submodule is used to calculate the similarity between two current point sequences using the Frechet distance method to obtain a current similarity value.

[0116] Furthermore, the electric shock detection model includes a backbone network and a detection network, and the electric shock detection module 303 includes:

[0117] A first extraction submodule is used to extract time domain features of two target current waveforms to obtain first current feature data;

[0118] A second extraction submodule is used to extract frequency domain features of the two target current waveforms to obtain second current feature data;

[0119] A third extraction submodule is used to extract features of the two target current waveforms through the backbone network to obtain third current feature data;

[0120] The trigger detection submodule is used to perform electric shock detection on the first current characteristic data, the second current characteristic data and the third current characteristic data through the detection network to obtain the electric shock type corresponding to the water-wading area to be monitored.

[0121] Furthermore, the control module 304 includes:

[0122] The first warning submodule is used to broadcast a warning to the power supply circuit in the monitored water-related area when the electric shock type is non-biological electric shock;

[0123] The second early warning submodule is used to disconnect the circuit breaker of the power supply circuit and broadcast an early warning to the power supply circuit when the type of electric shock is biological electric shock.

[0124] Furthermore, it also includes:

[0125] The jump module is used to jump to the step of obtaining the residual current signals on both sides of the water-wading area to be monitored when the current similarity value is less than or equal to the similarity threshold.

[0126] See also Figure 9 , Figure 9 This is a structural block diagram of a computer device provided in Example 4 of the present invention.

[0127] An electronic device according to an embodiment of the present invention includes: a memory 401 and a processor 402, wherein the memory 401 stores a computer program; when the computer program is executed by the processor 402, the processor 402 executes the leakage protection method for water-related areas as described in any of the above embodiments.

[0128] Memory 401 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Memory 401 has storage space 403 for program code 413 for executing any of the method steps described above. For example, storage space 403 for program code may include individual program codes 413 for implementing various steps in the method described above. These program codes may be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards, or floppy disks. The program codes may be compressed, for example, in a suitable format. When executed by a processing device, these codes cause the processing device to execute the various steps in the method described above. These program codes may be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards, or floppy disks. The program codes may be compressed, for example, in a suitable format. When these codes are executed by a computing and processing device, the computing and processing device is caused to execute the various steps of the above-described method for protecting water-related areas from leakage.

[0129] The fifth embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the leakage protection method for water-related areas as described in any of the above embodiments is implemented.

[0130] Embodiment 6 of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the leakage protection method for water-related areas as described in any of the above embodiments.

[0131] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0133] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0134] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0135] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0136] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A leakage protection method for water-related areas, characterized in that: include: Obtaining residual current signals on both sides of the water-wading area to be monitored, and performing signal preprocessing on each residual current signal to obtain two target current waveforms; Performing waveform matching on the two target current waveforms to obtain a current similarity value; When the current similarity value is greater than a preset similarity threshold, a pre-trained electric shock detection model is used to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored; The power supply circuit on the water-related area to be monitored is adjusted according to the type of electric shock.

2. The leakage protection method for water-related areas according to claim 1, characterized in that: The step of performing signal preprocessing on each of the residual current signals to obtain two target current waveforms includes: Using a moving average filtering method to filter each of the residual current signals respectively to obtain two filtered current signals; Normalizing each of the filtered current signals to obtain two target current signals; Each target current signal is subjected to waveform conversion processing to obtain two target current waveforms.

3. The leakage protection method for water-related areas according to claim 1, characterized in that: The step of performing waveform matching on the two target current waveforms to obtain a current similarity value includes: Each target current waveform is parameterized to obtain two current point sequences; The Frechet distance method is used to calculate the similarity between the two current point sequences to obtain a current similarity value.

4. The leakage protection method for water-related areas according to claim 1, characterized in that: The electric shock detection model includes a backbone network and a detection network. The step of using the pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored includes: Performing time domain feature extraction on the two target current waveforms to obtain first current feature data; Performing frequency domain feature extraction on the two target current waveforms to obtain second current feature data; Extracting features of the two target current waveforms through the backbone network to obtain third current feature data; The electric shock detection is performed on the first current characteristic data, the second current characteristic data and the third current characteristic data through the detection network to obtain the electric shock type corresponding to the water-wading area to be monitored.

5. The leakage protection method for water-related areas according to claim 1, characterized in that: The step of adjusting the power supply circuit on the water-worn area to be monitored according to the type of electric shock includes: When the electric shock type is non-biological electric shock, an early warning is broadcast to the power supply circuit on the water-related area to be monitored; When the electric shock type is biological electric shock, the circuit breaker of the power supply circuit is disconnected, and an early warning is broadcast to the power supply circuit.

6. The leakage protection method for water-related areas according to claim 1, characterized in that: Also includes: When the current similarity value is less than or equal to the similarity threshold, the process jumps to executing the step of obtaining the residual current signals on both sides of the water-wading area to be monitored.

7. A leakage protection system for water-related areas, characterized in that: include: An acquisition module is used to obtain residual current signals on both sides of the water-wading area to be monitored, and perform signal preprocessing on each residual current signal to obtain two target current waveforms; a matching module, configured to perform waveform matching on the two target current waveforms to obtain a current similarity value; An electric shock detection module is configured to, when the current similarity value is greater than a preset similarity threshold, use a pre-trained electric shock detection model to perform electric shock detection on the two target current waveforms to obtain the electric shock type corresponding to the water-worn area to be monitored; The control module is used to adjust the power supply circuit on the water-related area to be monitored according to the type of electric shock.

8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the leakage protection method for water-related areas as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the leakage protection method for water-related areas according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer is enabled to execute the leakage protection method for water-related areas according to any one of claims 1 to 6.