Water leakage positioning method and system based on synchronous audio sampling and slice analysis
By synchronously obtaining audio signals at both ends of the pipeline and performing slice analysis, the existing leak detection methods are solved, and fast and accurate positioning of leak points is achieved, which is suitable for pipeline system detection in complex environments.
Patent Information
- Application Number
- CN202510516326.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-07-25
AI Technical Summary
The existing leak detection methods have low detection efficiency and insufficient positioning of the leak point is not accurate enough, especially in complex environments, it is difficult to quickly and comprehensively check the water leakage in large-area pipeline systems.
By synchronously obtaining equal-duration audio signals at both ends of the target pipeline, performing slice cleaning processing, calculating the mutual correlation coefficient of the audio segment group, estimating the distance difference between the leakage point and the two ends of the pipeline based on the sound wave propagation speed, and determining the leakage position through clustering analysis and audio amplitude comparison.
It realizes rapid and accurate positioning of leaking points, improves detection efficiency, reduces skill requirements for operators, shortens detection time, and improves the accuracy of leaking points positioning.
Smart Images

Figure CN120368228A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of pipeline maintenance, and particularly relates to a leakage location method and system based on synchronous audio sampling and slice analysis. Background Art
[0002] The statements in this part only provide background technical information related to the present invention and do not necessarily constitute prior art.
[0003] In pipeline maintenance work, traditional leakage detection equipment usually requires professional operation, with high requirements for the skills of operators. Some detection instruments are large in size and heavy in weight, which is not conducive to rapid on-site mobile operation. And some equipment requires complex parameter configuration before use, with time-consuming detection methods and limited coverage, making it difficult to quickly and comprehensively check for leakage in a large-area pipe network system. Moreover, existing detection means are often interfered by various factors in complex environments, resulting in inaccurate leakage point positioning and increasing the difficulty of repair work.
[0004] In summary, the current leakage detection methods have problems of low detection efficiency and poor accuracy in leakage point positioning. Summary of the Invention
[0005] To solve the above technical problems, the present invention provides a leakage location method and system based on synchronous audio sampling and slice analysis, which can accurately calculate the location of the leakage point by analyzing the subtle differences between the sound signals recorded at two different positions through a simplified operation process.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] The first aspect of the present invention provides a leakage location method based on synchronous audio sampling and slice analysis.
[0008] In one or more embodiments, a leakage location method based on synchronous audio sampling and slice analysis is provided, including:
[0009] Synchronously obtaining equal-duration audio signals at both ends of the target pipeline; the equal-duration audio signals contain complete leakage signals;
[0010] Performing slice cleaning processing on the synchronously obtained equal-duration audio signals, taking the absolute value operation on each group of cleaned audio segments respectively, and then calculating the cross-correlation coefficient of the two groups of audio segments, so as to determine the central position and the number of effective audio segments of each group of audio segments;
[0011] Based on the central position and the number of valid audio segments of each audio segment group, determine the search window for each audio segment group, calculate the delay time of each audio segment in the corresponding group, and then, in combination with the propagation speed of sound waves in the medium, estimate the distance difference between all leakage points in each group and both ends of the target pipeline;
[0012] For each audio segment group, determine the effective distance difference according to the sign of the distance difference and the sampling interval, and perform clustering on the effective distance difference to obtain the possible leakage positions and the corresponding occurrence times and / or variances;
[0013] Judge the distance bias of the leakage position based on the comparison of the audio amplitudes of two audio segment groups, and finally determine the leakage position based on the occurrence times and / or variances of the possible leakage positions.
[0014] As an implementation manner, the equal-duration audio signals are obtained by synchronously collecting the signals of the microphones by an audio collector; wherein, the audio collector is pre-laid at both ends of the target pipeline, and the microphones are evenly laid on the target pipeline.
[0015] As an implementation manner, for each audio segment group, retain the distance difference between the leakage points that are positive and less than or equal to the sampling interval and perform clustering.
[0016] As an implementation manner, adopt an adaptive sampling mechanism to dynamically adjust the recording time according to the characteristics of the real-time recording signal to ensure that complete leakage signals are collected.
[0017] As an implementation manner, the process of slicing and cleaning the synchronously obtained equal-duration audio signals is as follows:
[0018] Synchronously obtain the equal-duration audio signals at both ends of the target pipeline, and respectively cut them into two audio segment groups with the same number and the same length along the time axis at the same time interval;
[0019] Dynamically set the cleaning threshold adaptively according to the amplitude of each audio segment group, and based on the comparison result between the average amplitude of each audio segment in each audio segment group and the corresponding cleaning threshold, eliminate the abnormal audio segments to obtain two cleaned audio segment groups.
[0020] As an implementation manner, the central position of each audio segment group is: wherein, len(R 12 ) represents the length of the cross-correlation coefficient calculation function array, represents the floor operation;
[0021] Set half of the length of the search window to n1, wherein, v represents the speed of sound, spacing represents the sampling interval, and sr1 represents the sampling rate.
[0022] The second aspect of the present invention provides a water leakage positioning system based on synchronous audio sampling and slice analysis.
[0023] In one or more embodiments, a water leakage positioning system based on synchronous audio sampling and slice analysis includes:
[0024] A signal synchronization acquisition module, which is used to synchronously acquire equal-duration audio signals at both ends of the target pipeline; the equal-duration audio signals contain complete water leakage signals;
[0025] A cross-correlation calculation module, which is used to perform slice cleaning processing on the synchronously acquired equal-duration audio signals, perform an absolute value operation on each group of cleaned audio segments respectively, and then calculate the cross-correlation coefficient of the two groups of audio segments, so as to determine the central position and the number of valid audio segments of each group of audio segments;
[0026] A distance difference estimation module, which is used to determine the search window of each group of audio segments and calculate the delay time of each audio segment in the corresponding group according to the central position and the number of valid audio segments of each group of audio segments, and then estimate the distance difference between all water leakage points in each group and both ends of the target pipeline in combination with the propagation speed of sound waves in the medium;
[0027] A possible water leakage position judgment module, which is used to determine the effective distance difference for each group of audio segments according to the sign of the distance difference and the sampling interval, and cluster the effective distance differences to obtain the possible water leakage positions and the corresponding occurrence times or / and variances;
[0028] A water leakage position result determination module, which is used to judge the distance bias of the water leakage position according to the comparison of the audio amplitudes of the two groups of audio segments, and finally determine the water leakage position based on the occurrence times or / and variances of the possible water leakage positions.
[0029] The third aspect of the present invention provides a computer-readable storage medium.
[0030] A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the steps in the water leakage positioning method based on synchronous audio sampling and slice analysis as described above.
[0031] The fourth aspect of the present invention provides a computer program product.
[0032] A computer program product includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps in the water leakage positioning method based on synchronous audio sampling and slice analysis as described above.
[0033] The fifth aspect of the present invention provides an electronic device.
[0034] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps in the above-mentioned leak location method based on synchronous audio sampling and slice analysis.
[0035] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0036] (1) The present invention performs slice cleaning processing on the equal-duration audio signals synchronously acquired at both ends of the target pipeline, then calculates the cross-correlation coefficient of the two audio segment groups, and further determines the central position and the number of valid audio segments of each audio segment group. Then, in combination with the propagation speed of sound waves in the medium, the distance differences from each leak point in each group to both ends of the target pipeline are estimated. Finally, the leak location is accurately determined through clustering analysis. The method of the present invention is applicable to shallow-buried pipelines or underground pipelines, significantly improving the efficiency and quality of pipeline maintenance work. Especially in complex urban water supply networks, accurately and quickly locating leak points is crucial for reducing water resource waste, lowering maintenance costs, and improving the reliability of the water supply system.
[0037] (2) The present invention greatly reduces the professional skill requirements for operators by pre-deploying audio collectors at both ends of the target pipeline and evenly deploying microphones on the target pipeline, enabling non-professionals to quickly get started, improving the detection efficiency, and shortening the detection time. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The specification drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention.
[0039] Figure 1 is a flowchart of the leak location method based on synchronous audio sampling and slice analysis according to an embodiment of the present invention;
[0040] Figure 2 is the calculation process of the propagation speed of sound waves in the medium according to an embodiment of the present invention:
[0041] Figure 3 is a schematic structural diagram of the leak location system based on synchronous audio sampling and slice analysis according to an embodiment of the present invention;
[0042] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present invention;
[0043] Figure 5 is the process of performing slice cleaning processing on the equal-duration audio signals synchronously acquired according to an embodiment of the present invention;
[0044] Figure 6 is the process of calculating the cross - correlation coefficient of two groups of audio segments in an embodiment of the present invention;
[0045] Figure 7 is a schematic diagram of converting the cross - correlation function to the distance at both ends in an embodiment of the present invention;
[0046] Figure 8 is the process of clustering the effective distance differences in an embodiment of the present invention;
[0047] Figure 9 is the average amplitude of the three groups selected in an embodiment of the present invention;
[0048] Figure 10 is the calculation result of the remaining slices after removing the abnormal slices in an embodiment of the present invention;
[0049] Figure 11 is the result obtained by the cluster analysis in an embodiment of the present invention. Detailed implementation manners
[0050] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0051] It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0052] It should be noted that the terms used herein are only for describing the specific implementation manners and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular forms are also intended to include the plural forms. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0053] Figure 1 is a schematic flowchart of a water leakage location method based on synchronous audio sampling and slice analysis in an embodiment of the present invention. As Figure 1 shown, the water leakage location method based on synchronous audio sampling and slice analysis in this embodiment may include:
[0054] S101, synchronously acquire equal - duration audio signals at both ends of the target pipeline; the equal - duration audio signals contain complete water leakage signals.
[0055] In the specific implementation process, the equal - duration audio signals are obtained by synchronously collecting the signals of the microphones by the audio collector; wherein, the audio collector is pre - deployed at both ends of the target pipeline, and the microphones are evenly deployed on the target pipeline.
[0056] Specifically, an adaptive sampling mechanism is adopted to dynamically adjust the recording time according to the characteristics of the real-time recording signal (such as amplitude stability, noise level, etc.) to ensure that a complete water leakage signal is collected.
[0057] Utilize real-time signal processing technology to dynamically determine the sampling end time during the recording process. Shorten the sampling time for stable signals and extend the recording time for complex signals to improve data quality.
[0058] S102. Perform slicing and cleaning on the synchronously acquired equal-duration audio signals. Take the absolute value operation on each cleaned audio segment group respectively, and then calculate the cross-correlation coefficient between the two audio segment groups, as Figure 6 shown, and then determine the central position and the number of valid audio segments of each audio segment group.
[0059] The water leakage sound is a continuous signal. In the embodiment of the present invention, the slicing method is adopted to clean the burst noise in the audio signal.
[0060] Specifically, as Figure 5 shown, the process of performing slicing and cleaning on the synchronously acquired equal-duration audio signals is as follows:
[0061] S1021. Synchronously acquire equal-duration audio signals at both ends of the target pipeline and cut them into two audio segment groups with the same number and the same length along the time axis at equal time intervals respectively.
[0062] Among them, the length of the divided segments is determined according to the overall recording amplitude stability, with a minimum of 0.1 second; if the signal is stable and the noise is small, the segment is long, otherwise the segment is short.
[0063] S1022. Dynamically set the cleaning threshold adaptively according to the amplitude of each audio segment group. Based on the comparison result between the average amplitude of each audio segment in each audio segment group and the corresponding cleaning threshold, eliminate the abnormal audio segments to obtain two cleaned audio segment groups.
[0064] Calculate the average amplitude of each segment. Based on the average amplitude of all segments, calculate the standard deviation of the entire audio segment group, and determine the set cleaning threshold with reference to this standard deviation. Introduce a machine learning algorithm to dynamically adjust the cleaning threshold and optimize the cleaning strategy in real time according to characteristics such as the pipeline environment and background noise. Use historical data to train a classification model (such as SVM or random forest) to judge whether a signal segment is abnormal. Adjust the threshold parameters in real time to make the cleaning strategy adapt to different background environments.
[0065] For segments with amplitude fluctuations greater than the set cleaning threshold, they are marked as abnormal and considered likely to be caused by external noise or non-leakage water sources. Perform spectral analysis on the abnormal segments to separate the noise and leakage signals, and use noise reduction algorithms (such as wavelet transform or autoencoder) to repair the audio.
[0066] Wavelet decomposition denoising: Retain the low-frequency components of the leakage signal and filter out sudden high-frequency noise.
[0067] Autoencoder signal reconstruction: Restore the leakage characteristics covered by noise through a neural network. If it cannot be restored to normal after noise reduction, remove all segments marked as abnormal from the dataset.
[0068] For each segment group, the embodiments of the present invention perform an absolute value operation on it to eliminate the phase difference between signals.
[0069] Among them, the central position of each audio segment group is: Among them, len(R 12 ) represents the length of the cross-correlation coefficient calculation function array, represents the floor operation;
[0070] Set half of the length of the search window to n1, Among them, v represents the speed of sound, spacing represents the sampling interval, and sr1 represents the sampling rate.
[0071] S103. According to the central position and the number of valid audio segments of each audio segment group, determine the search window of each audio segment group and calculate the delay time of each audio segment in the corresponding group. Then, combined with the propagation speed of sound waves in the medium, estimate the distance difference between all leakage points in each group and the two ends of the target pipeline.
[0072] According to the central position and the number of valid audio segments of each audio segment group, determine the search window of each audio segment group as: x = [Center - n1, Center + n1].
[0073] Then calculate the delay time delayTime for each index x: The delay time calculated from the x corresponding to the highest point of the ordinate of the cross-correlation function is the delay time of this slice.
[0074] Based on the propagation speed v of sound waves in the medium, the distance difference d between the leakage point and the two recording devices at both ends can be estimated through the formula d = v×Δt. The cross-correlation function is reflected on the distance between the two ends. As Figure 7 shown, the x-axis position corresponding to the highest point of the ordinate is the leakage distance.
[0075] In the specific implementation process, the calculation process of the sound wave propagation speed v in the medium can be calculated by the method as Figure 2 shown.
[0076] S104. For each audio segment group, determine the effective distance difference according to the sign of the distance difference and the sampling interval, and cluster the effective distance differences to obtain the possible water leakage positions and the corresponding occurrence times or / and variances, as Figure 8 shown.
[0077] Among them, for each audio segment group, retain the distance differences between the water leakage points that are positive and less than or equal to the sampling interval from both ends of the target pipeline and perform clustering.
[0078] If the calculated d is negative or exceeds the distance spacing between two sampling points (i.e., microphones), this data is regarded as abnormal and not recorded.
[0079] Perform clustering analysis on the water leakage distances obtained from all effective slices to obtain 1-3 possible water leakage positions that are relatively concentrated, and count the result quantities and variances at these positions.
[0080] S105. Judge the distance bias of the water leakage position according to the comparison of the audio amplitudes of two audio segment groups, and finally determine the water leakage position based on the occurrence times or / and variances of the possible water leakage positions.
[0081] Compare the average amplitudes of two audio signals in the same group. According to the principle of "the greater the sound intensity, the closer the distance", it can be inferred that the water leakage point is closer to the end with the larger average amplitude. By comparing all slices, it can be judged whether the water leakage position is closer to one end or in the middle. Therefore, those result groups that point to the other end closer can be excluded, thereby narrowing the range of suspected water leakage points.
[0082] Analyze the remaining possible positions. If a certain water leakage position has an absolute advantage in the number of groups (for example: the number of times this distance appears is more than twice the number of times the other distances appear), then this group can be judged as the final result. If no group has an absolute advantage, select the group with the smaller variance as the final result.
[0083] For example, first slice two audio segments, calculate the average amplitude, and get the following results. From the data obtained, the average amplitude of device A in each slice group is greater than that of device B, and it is judged that the water leakage point is close to device A.
[0084] Calculate the standard deviation of the average amplitude of each device. If the average amplitudes of the three selected groups fall outside 1.5 standard deviations, then exclude these three slice data, as Figure 9 shown.
[0085] Calculate the remaining slices to obtain the following results, as Figure 10As shown, the distance between A and B is 37 meters, and all the obtained results are within a reasonable range (if there are negative results or results exceeding 37 meters here, this group of data will be excluded).
[0086] Performing cluster analysis on the above results, we get:
[0087] The first group: The leakage location is 16.9 meters away from A. There are 5 groups of data at this location, and the variance is 1.48;
[0088] The second group: The leakage location is 20.5 meters away from A. There are 8 groups of data at this location, and the variance is 1.33;
[0089] In the first step, it is obtained that the leakage point is closer to A, so the second group of data is excluded. Then the leakage location is near 16.9 meters away from equipment A, as Figure 11 shown.
[0090] The leakage location method based on synchronous audio sampling and slice analysis in the embodiment of the present invention has the following advantages:
[0091] Shorten the detection time: Since the equipment is easy to carry and move quickly, it can quickly cover a large-area pipe network system for detection, reducing the time required for troubleshooting.
[0092] Reduce the preliminary preparation: There is no need for complex parameter configuration or large-scale equipment deployment, further improving the speed of on-site operations.
[0093] High accuracy: Through the acoustic signal analysis algorithm, the positioning error of the leakage point is controlled within 5 meters, higher than the accuracy level of the existing methods, quickly and accurately finding and repairing the leakage point, reducing water resource waste.
[0094] Figure 3 It is a schematic structural diagram of a leakage location system based on synchronous audio sampling and slice analysis in the embodiment of the present invention. This embodiment corresponds to the Figure 1 leakage location method based on synchronous audio sampling and slice analysis, as Figure 3 shown. The leakage location system based on synchronous audio sampling and slice analysis in this embodiment may include:
[0095] A signal synchronization acquisition module 301, which is used to synchronously acquire equal-duration audio signals at both ends of the target pipeline; the equal-duration audio signals contain complete leakage signals;
[0096] A cross-correlation calculation module 302, which is used to perform slice cleaning processing on the synchronously acquired equal-duration audio signals, perform an absolute value operation on each group of cleaned audio segments respectively, and then calculate the cross-correlation coefficient of the two groups of audio segments, thereby determining the central position and the number of valid audio segments of each group of audio segments;
[0097] The distance difference estimation module 303 is configured to determine a search window for each audio segment group according to the central position and the number of valid audio segments of each audio segment group, calculate the delay time of each audio segment in the corresponding group, and then estimate the distance difference from each water leakage point in each group to both ends of the target pipeline in combination with the propagation speed of sound waves in the medium;
[0098] The possible water leakage position judgment module 304 is configured to, for each audio segment group, determine a valid distance difference according to the sign of the distance difference and the sampling interval, and cluster the valid distance differences to obtain possible water leakage positions and corresponding occurrence times and / or variances;
[0099] The water leakage position result determination module 305 is configured to judge the distance bias of the water leakage position according to the comparison of the audio amplitudes of two audio segment groups, and finally determine the water leakage position based on the occurrence times and / or variances of the possible water leakage positions.
[0100] It should be noted here that Figure 3 each module in the water leakage positioning system based on synchronous audio sampling and slice analysis in Figure 1 corresponds to each step in the water leakage positioning method based on synchronous audio sampling and slice analysis in
[0101] and the specific implementation processes are the same, so they will not be described in detail here. Figure 4 Refer to Figure 4 for a schematic diagram of an electronic device. It should be noted that
[0102] As Figure 4 shown, the electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage section 408 into the random access memory (RAM) 403. In the RAM 403, various programs and data required for system operation are also stored. The central processing unit 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.
[0103] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. as well as a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a local area network (LAN) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read from it can be installed into the storage section 408 as needed.
[0104] When the central processing unit 401 in the electronic device of this embodiment executes the program, the steps in the water leakage positioning method based on synchronous audio sampling and slice analysis as Figure 1 shown are implemented.
[0105] Specifically, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for executing Figure 1 the method shown. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit 401, various functions defined in the device of the present application are executed.
[0106] Wherein, Figure 1 the computer program instructions corresponding to the method shown can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or Figure 1 one block or multiple blocks.
[0107] Those of ordinary skill in the art can understand that to implement all or part of the processes in the above method embodiments, it can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0108] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A water leakage location method based on synchronous audio sampling and slice analysis, characterized in that, Including: Synchronously acquire equal-duration audio signals at both ends of the target pipeline; The equal-duration audio signals contain complete leakage signals; Perform slicing and cleaning processing on the synchronously acquired equal-duration audio signals, take the absolute value operation on each cleaned audio segment group respectively, then calculate the cross-correlation coefficient of the two audio segment groups, and further determine the central position and the number of valid audio segments of each audio segment group; According to the central position and the number of valid audio segments of each audio segment group, determine the search window of each audio segment group and calculate the delay time of each audio segment in the corresponding group, and then combine the propagation speed of sound waves in the medium to estimate the distance difference from each leakage point in each group to both ends of the target pipeline; For each audio segment group, determine the effective distance difference according to the sign of the distance difference and the sampling interval, and cluster the effective distance difference to obtain the possible leakage positions and the corresponding occurrence times and / or variances; Judge the distance bias of the leakage position according to the comparison of the audio amplitudes of the two audio segment groups, and finally determine the leakage position based on the occurrence times and / or variances of the possible leakage positions; 2. The water leakage location method based on synchronous audio sampling and slice analysis according to claim 1, characterized in that, The equal-duration audio signals are obtained by synchronously collecting the signals of the microphones by the audio collectors; wherein, the audio collectors are pre-laid at both ends of the target pipeline, and the microphones are evenly laid on the target pipeline; 3. The water leakage location method based on synchronous audio sampling and slice analysis according to claim 1, wherein, For each audio segment group, retain the distance difference from the leakage point that is positive and less than or equal to the sampling interval and perform clustering; 4. The water leakage location method based on synchronous audio sampling and slice analysis according to claim 1, characterized in that, Adopt an adaptive sampling mechanism to dynamically adjust the recording time according to the characteristics of the real-time recording signal to ensure that complete leakage signals are collected; 5. The water leakage positioning method based on synchronous audio sampling and slice analysis according to claim 1, characterized in that The process of performing slicing and cleaning processing on the synchronously acquired equal-duration audio signals is as follows: Cut the equal-duration audio signals synchronously acquired at both ends of the target pipeline into two audio segment groups with the same number and the same length at equal time intervals along the time axis respectively; Adaptive dynamically set the cleaning threshold according to the amplitude of each audio segment group, and based on the comparison result of the average amplitude of each audio segment in each audio segment group and the corresponding cleaning threshold, eliminate the abnormal audio segments to obtain two cleaned audio segment groups; 6. The method for leak location based on synchronous audio sampling and slice analysis according to claim 1, wherein The central position of each audio segment group is: where len(R 12 ) represents the length of the cross-correlation coefficient calculation function array, represents the floor operation; The length of half of the search window is set to n1, where v represents the speed of sound, spacing represents the sampling interval, and sr1 represents the sampling rate.
7. A water leakage location system based on synchronous audio sampling and slice analysis, characterized in that, Including: A signal synchronous acquisition module, which is used to synchronously acquire equal-duration audio signals at both ends of the target pipeline; the equal-duration audio signals contain complete leakage signals; A cross-correlation calculation module, which is used to perform slicing and cleaning processing on the synchronously acquired equal-duration audio signals, take the absolute value operation on each cleaned audio segment group respectively, then calculate the cross-correlation coefficient of the two audio segment groups, and further determine the central position and the number of valid audio segments of each audio segment group; A distance difference estimation module, which is used to determine the search window of each audio segment group and calculate the delay time of each audio segment in the corresponding group according to the central position and the number of valid audio segments of each audio segment group, and then combine the propagation speed of sound waves in the medium to estimate the distance difference from each leakage point in each group to both ends of the target pipeline; A water leakage possible location determination module, which is used for each group of audio segments, to determine an effective distance difference according to the sign of the distance difference and the sampling interval, and cluster the effective distance differences to obtain possible water leakage locations and corresponding occurrence times or / and variances; A water leakage location result determination module, which is used to judge the distance bias of the water leakage location according to the comparison of the audio amplitudes of two groups of audio segments, and finally determine the water leakage location based on the occurrence times or / and variances of the possible water leakage locations.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the steps in the water leakage location method based on synchronous audio sampling and slice analysis according to any one of claims 1-6.
9. A computer program, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the water leakage location method based on synchronous audio sampling and slice analysis according to any one of claims 1-6.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the water leakage location method based on synchronous audio sampling and slice analysis according to any one of claims 1-6.