Pressure pipeline leakage monitoring method based on transfer learning, electronic equipment and storage medium
By using a method based on transfer learning and using public pipeline data to train neural network models, the problem of scarcity of leakage detection data in new pipelines is solved, efficient and accurate leakage monitoring is achieved, data requirements are reduced, and detection accuracy and real-time are improved. properties, reducing water loss.
Patent Information
- Application Number
- CN202410608982.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing data-driven pipeline leak detection methods have room for improvement in terms of detection accuracy and data requirements. Especially when leakage sound data in new pipelines are scarce, direct training of leakage monitoring neural networks is expensive and difficult to implement.
Using a method based on transfer learning, a public pipeline leakage sound database is used to collect and preprocess data, a leakage sound feature vector data set is constructed, a neural network model is trained through transfer learning, and it is applied to the leakage monitoring of new pipelines. Reduce data requirements and model complexity.
It achieves efficient and accurate judgment of leakage in new pipelines to be detected, reduces data requirements by about 50%, improves detection accuracy and real-time performance, reduces water loss, and provides support for water supply network maintenance.
Smart Images

Figure CN118548447A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of water supply and drainage pipeline leakage detection, and specifically relates to a pressurized pipeline leakage monitoring method based on transfer learning, electronic equipment and storage medium. Background Art
[0002] Water is the source of life and an indispensable resource in daily life. However, once a water pipe leaks, it will not only waste water resources, but also bring many inconveniences to life. The most widely used software-based method is the transient flow analysis method. However, transient flow analysis is more dependent on the prior information of the target pipeline system or model, and this kind of information is difficult to obtain in full, which limits the practical application of this method. With the improvement of computing power and the rapid development of deep learning technology, data-driven pipeline leakage detection and positioning algorithms have been widely studied and applied, becoming the main technical trend for solving leakage detection problems. However, data-driven pipeline leakage detection currently still has a lot of room for improvement in terms of detection accuracy.
[0003] Data-driven neural networks can better identify leakage sounds and avoid manual experience judgment; however, the marking and acquisition of leakage sounds in new pipelines is very expensive and difficult; the idea of transfer learning is to use existing source domain knowledge to help learn new target domain knowledge. The core is to find the similarities between the learned source domain knowledge and target domain knowledge. It is usually too costly to directly learn the target domain from scratch. For example, there is only a small amount of leakage sound data in the new pipeline. In this low-resource situation, it is usually not feasible to directly train a leakage monitoring neural network. Summary of the invention
[0004] The problem to be solved by the present invention is to effectively monitor pipeline leakage, and a pressurized pipeline leakage monitoring method, electronic equipment and storage medium based on transfer learning are proposed.
[0005] To achieve the above object, the present invention is implemented through the following technical solutions:
[0006] A method for monitoring leakage of a pressurized pipeline based on transfer learning comprises the following steps:
[0007] S1. Based on the public pipeline leakage sound database, collect pipeline leakage data, including leakage flow and corresponding leakage sound;
[0008] S2. Preprocessing the leakage sound collected in step S1, and then extracting the leakage sound signal features to construct a leakage sound feature vector data set;
[0009] S3. Divide the leakage sound feature vector data set obtained in step S2 into a training set and a validation set;
[0010] S4. Construct a neural network model for monitoring leakage of a pressurized pipeline based on transfer learning, and train the neural network model for monitoring leakage of a pressurized pipeline based on transfer learning using the training set constructed in step S3 to obtain a trained neural network model for monitoring leakage of a pressurized pipeline based on transfer learning;
[0011] S5. Collect pipeline leakage data under different leakage conditions in the new pipeline seepage detection project, and process the pipeline leakage data using the method of step S2 to obtain a new leakage sound feature vector;
[0012] S6. Transfer the neural network parameters of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, and then input the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning.
[0013] Furthermore, the specific implementation method of step S2 includes the following steps:
[0014] S2.1. Preprocess the leakage sound collected in step S1:
[0015] S2.1.1. Normalization: Normalization is used to eliminate the influence of the intensity difference of the leakage sound collected in step S1. Set x as the original leakage sound signal, x nomalization is the normalized leakage sound signal, and the calculation expression is:
[0016]
[0017] Among them, Min is the minimum leakage sound signal, and Max is the maximum leakage sound signal;
[0018] S2.1.2. Pre-emphasize the normalized leakage sound signal in step S2.1.1. The calculation expression is:
[0019] x pre-emphasis (n) = x nomalization (n)-ax nomalization (n-1)
[0020] Among them, x pre-emphasis (n) is the leakage sound signal after n-th pre-emphasis, x nomalization (n) is the normalized leakage sound signal of the nth time, a is the pre-emphasis coefficient, which is between 0.99 and 0.95, and x nomalization (n-1) is the normalized leakage sound signal of the n-1th;
[0021] S2.1.3. The leakage sound signal after pre-emphasis in step S2.1.2 is divided into frames, and the i-th frame of the n-th leakage sound signal after the frame division is defined as x Frame_i(n);
[0022] S2.1.4. Perform windowing on the leakage sound signal after the frame processing in step S2.1.3, and set the calculation expression of the windowing coefficient w[n] to:
[0023]
[0024] Wherein, N is the length of a frame after framing;
[0025] Then we get the windowed leakage sound signal x i The expression of (n) is:
[0026] x i (n) = x Frame_i (n)×w(n), n=1~N;
[0027] S2.1.5. Perform fast Fourier transform on the windowed leakage sound signal obtained in step S2.1.4, and the expression is:
[0028] F i =FFT(x i )
[0029] Among them, F i is the leakage sound signal x i The frequency domain signal, FFT(x i ) is the leakage sound signal x i Perform a Fast Fourier Transform.
[0030] S2.2. The i-th frame leakage sound signal x obtained after the windowing process in step S2.1 is i (n) performing feature extraction;
[0031] S2.2.1. Extract the pitch period, x i (n) short-time autocorrelation function R i Defined as:
[0032]
[0033] The fundamental frequency period The calculation expression is:
[0034]
[0035] S2.2.2. Extract short-time energy and calculate the expression as follows:
[0036]
[0037] Among them, E i is the short-time energy of the i-th frame
[0038] S2.2.3. Extracting short-time energy The short-time zero-crossing rate refers to the number of times the signal crosses the horizontal axis in one frame of time. The expression for defining sgn[x] is:
[0039]
[0040] Then the i-th frame leakage sound signal x i The short-time zero-crossing rate Z of (n) i The expression is:
[0041]
[0042] S2.2.4. Extract characteristic frequency fre i , take the first 2 to 6 according to different environments, the expression is:
[0043] fre i =(f1, ..., f m ), m = 2 to 6;
[0044] Among them, f m is the mth order characteristic frequency;
[0045] S2.2.5. Extract the first-order difference of characteristic frequency diff i (m-1), the expression is:
[0046] diff i (m-1)=f m -f m-1 , m = 2 to 6;
[0047] S2.2.6. Extract statistical features, including the maximum value x max_i , minimum value x min_i , arithmetic mean x average_i , the expression is:
[0048] x max_i =max(x i )
[0049] x min_i =min(x i )
[0050] x average_i =average(x i )
[0051] Extract the relative positions of the maximum and minimum values and define the position function location[x i , x i (n)] is x i (n) is located at x i The nth position of is expressed as:
[0052] location[x i , x i (n)]=n
[0053] Then the relative position x of the maximum value max_loc_i , the relative position of the minimum value x min_loc_i The expression is:
[0054]
[0055]
[0056] Extract standard deviation σ, skewness S and kurtosis K, the expression is:
[0057]
[0058]
[0059]
[0060] Where μ is the leakage sound signal x of the i-th frame i The mean of (n);
[0061] S2.3. Based on the leakage sound signal features extracted in step S2.2, construct the leakage sound feature vector eigenvector i , we get the leakage sound feature vector data set, the expression is:
[0062]
[0063] Furthermore, in step S3, the leakage sound feature vector data set is divided into a training set and a validation set in a ratio of 8:2.
[0064] Furthermore, the specific implementation method of step S4 includes the following steps:
[0065] S4.1. Construct a neural network model for pressurized pipeline leakage monitoring based on transfer learning, which is constructed by a 6-8 layer multi-layer perceptron, where the shallowest layer is used as the input layer and the deepest layer is used as the output layer; the activation function is Sigmoid;
[0066] S4.2. The training set is trained by the ten-fold crossover method, and the error back propagation algorithm is used to iteratively train the neural network model for pressurized pipeline leakage monitoring based on transfer learning constructed in step S4.1 based on the training set to determine the parameter values of the neural network model for pressurized pipeline leakage monitoring based on transfer learning;
[0067] S4.3. The validation set is used to evaluate the performance of the neural network model for pressurized pipeline leakage monitoring based on transfer learning based on the validation set after the iterative training is completed, and to obtain the final performance evaluation result of the neural network model for pressurized pipeline leakage monitoring based on transfer learning.
[0068] Furthermore, the specific implementation method of step S6 includes the following steps:
[0069] S6.1. Freeze the first 3 to 5 layers of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, release some hidden layers and output layers, initialize 2 to 3 hidden layers, and create a new output layer. The activation function of the output layer adopts Sigmoid;
[0070] S6.2. Input the migrated neural network obtained in step S6.1 into the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning.
[0071] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of a pressurized pipeline leakage monitoring method based on transfer learning when executing the computer program.
[0072] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a pressurized pipeline leakage monitoring method based on transfer learning.
[0073] Beneficial effects of the present invention:
[0074] The present invention discloses a method for monitoring leakage of a pressurized pipeline based on transfer learning. The method can accurately determine the occurrence of pipeline leakage and detect the leakage flow rate of the pressurized pipeline.
[0075] In the method for monitoring leakage of pressurized pipelines based on transfer learning described in the present invention, the leakage sound recognition system needs to process a large amount of sound data, but in practical applications, the data set is often limited. The existing leakage sound data is used to pre-train the model, thereby improving the performance of the model and reducing the difficulty of collecting new pipeline data to be detected.
[0076] The pressurized pipeline leakage monitoring method based on transfer learning described in the present invention adopts a universal leakage sound feature extraction method to simplify the leakage sound feature extraction process, reduce the complexity of the neural network, and reduce the model's demand for data volume.
[0077] The method for monitoring leakage of pressurized pipelines based on transfer learning described in the present invention effectively enables the pipeline leakage detection model to learn and adjust according to real-time pipeline operation data, thereby better adapting to changes in pipelines and the occurrence of leakage, and improving its detection accuracy and real-time performance. Transfer learning can reduce the data demand in new pipeline seepage projects to be detected by about 50%.
[0078] The method for monitoring pressurized pipeline leakage based on transfer learning described in the present invention reduces the loss of water resources by effectively monitoring pipeline leakage; understands and grasps the leakage status of water pipelines to provide strong support for the maintenance of water supply networks; utilizes the characteristic of noise generated when pipeline leakage occurs to propose an effective leakage monitoring method for long-distance water pipelines to ensure the normal operation of water pipelines. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 It is a flow chart of a pressurized pipeline leakage monitoring method based on transfer learning according to the present invention;
[0080] Figure 2 It is a flow chart of the ten-fold cross method of the present invention;
[0081] Figure 3 It is a schematic diagram of the structure of the frozen migration network described in the present invention. DETAILED DESCRIPTION
[0082] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the specific embodiments described are only part of the embodiments of the present invention, rather than all of the specific embodiments. The components of the specific embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations, and the present invention can also have other embodiments.
[0083] Therefore, the following detailed description of the specific embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected specific embodiments of the present invention. Based on the specific embodiments of the present invention, all other specific embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0084] In order to further understand the content, features and effects of the present invention, the following specific implementation methods are given as examples, and the attached Figure 1 -Attached Figure 3 The detailed instructions are as follows: Specific implementation method one:
[0086] A method for monitoring leakage of a pressurized pipeline based on transfer learning comprises the following steps:
[0087] S1. Based on the public pipeline leakage sound database, collect pipeline leakage data, including leakage flow and corresponding leakage sound;
[0088] S2. Preprocessing the leakage sound collected in step S1, and then extracting the leakage sound signal features to construct a leakage sound feature vector data set;
[0089] Furthermore, the specific implementation method of step S2 includes the following steps:
[0090] S2.1. Preprocess the leakage sound collected in step S1:
[0091] S2.1.1. Normalization: Normalization is used to eliminate the influence of the intensity difference of the leakage sound collected in step S1. Set x as the original leakage sound signal, x nomalization is the normalized leakage sound signal, and the calculation expression is:
[0092]
[0093] Among them, Min is the minimum leakage sound signal, and Max is the maximum leakage sound signal;
[0094] Furthermore, since the leakage sound is affected by distance, environment, etc. during the recording process, the recorded sound intensity may deviate greatly. Normalization is used to eliminate the difference in reducing the sound intensity;
[0095] S2.1.2. Pre-emphasize the normalized leakage sound signal in step S2.1.1. The calculation expression is:
[0096] x pre-emphasis (n) = x nomalization (n)-ax nomalization (n-1)
[0097] Among them, x pre-emphasis (n) is the leakage sound signal after n-th pre-emphasis, x nomalization (n) is the normalized leakage sound signal of the nth time, a is the pre-emphasis coefficient, which is between 0.99 and 0.95, and x nomalization (n-1) is the normalized leakage sound signal of the n-1th;
[0098] Furthermore, since high-frequency sounds are more easily absorbed and attenuated than low-frequency sounds during transmission, pre-emphasis can compensate for this high-frequency loss and make the signal uniform.
[0099] S2.1.3. The leakage sound signal after pre-emphasis in step S2.1.2 is divided into frames, and the i-th frame of the n-th leakage sound signal after the frame division is defined as x Frame_i (n);
[0100] Furthermore, the pipeline leakage sound signal presents a relatively stable and periodic state in a short time, usually with a frame length of 10 to 30 ms, and consecutive frames need to overlap by 30% to 50% to ensure the complete retention of effective information.
[0101] S2.1.4. Perform windowing on the leakage sound signal after the frame processing in step S2.1.3, and set the calculation expression of the windowing coefficient w[n] to:
[0102]
[0103] Wherein, N is the length of a frame after framing;
[0104] Then we get the windowed leakage sound signal x i The expression of (n) is:
[0105] x i (n) = x Frame_i (n)×w(n), n=1~N;
[0106] Furthermore, the framed sound signal is multiplied by the window function to emphasize the signal data in the middle part of the frame, while satisfying the discrete Fourier transform's continuity requirement for signal expansion and extension.
[0107] S2.1.5. Perform fast Fourier transform on the windowed leakage sound signal obtained in step S2.1.4, and the expression is:
[0108] F i =FFT(x i )
[0109] Among them, F i is the leakage sound signal x i The frequency domain signal, FFT(x i ) is the leakage sound signal x i Perform a Fast Fourier Transform.
[0110] S2.2. The i-th frame leakage sound signal x obtained after the windowing process in step S2.1 is i (n) performing feature extraction;
[0111] S2.2.1. Extract the pitch period, x i (n) short-time autocorrelation function R i Defined as:
[0112]
[0113] The fundamental frequency period The calculation expression is:
[0114]
[0115] S2.2.2. Extract short-time energy. Short-time energy refers to the energy of a frame signal. The calculation expression is:
[0116]
[0117] Among them, E i is the short-time energy of the i-th frame;
[0118] S2.2.3. Extracting short-time energy The short-time zero-crossing rate refers to the number of times the signal crosses the horizontal axis in one frame of time. The expression for defining sgn[x] is:
[0119]
[0120] Then the i-th frame leakage sound signal x i The short-time zero-crossing rate Z of (n) i The expression is:
[0121]
[0122] S2.2.4. Extract characteristic frequency fre i , take the first 2 to 6 according to different environments, the expression is:
[0123] fre i =(f1, ..., f m ), m = 2 to 6;
[0124] Among them, f m is the mth order characteristic frequency;
[0125] Furthermore, the leakage sound frequency is mainly concentrated between 20 and 300 Hz, and the F i The middle characteristic frequency is between 20 and 300 Hz, and the first 2 to 6 are selected according to different environments;
[0126] S2.2.5. Extract the first-order difference of characteristic frequency diff i (m-1), the expression is:
[0127] diff i (m-1)=f m -f m-1 , m = 2 to 6;
[0128] S2.2.6. Extract statistical features, including the maximum value xmax_i , minimum value x min_i , arithmetic mean x average_i , the expression is:
[0129] x max_i =max(x i )
[0130] x min_i =min(x i )
[0131] x average_i =average(x i )
[0132] Extract the relative positions of the maximum and minimum values and define the position function location[x i , x i (n)] is x i (n) is located at x i The nth position of is expressed as:
[0133] location[x i , x i (n)]=n
[0134] Then the relative position x of the maximum value max_loc_i , the relative position of the minimum value x min_loc_i The expression is:
[0135]
[0136]
[0137] Extract standard deviation σ, skewness S and kurtosis K, the expression is:
[0138]
[0139]
[0140]
[0141] Where μ is the leakage sound signal x of the i-th frame i The mean of (n);
[0142] S2.3. Based on the leakage sound signal features extracted in step S2.2, construct the leakage sound feature vector eigenvector i , we get the leakage sound feature vector data set, the expression is:
[0143]
[0144] S3. Divide the leakage sound feature vector data set obtained in step S2 into a training set and a validation set;
[0145] Furthermore, in step S3, the leakage sound feature vector data set is divided into a training set and a validation set in a ratio of 8:2.
[0146] S4. Construct a neural network model for monitoring leakage of a pressurized pipeline based on transfer learning, and train the neural network model for monitoring leakage of a pressurized pipeline based on transfer learning using the training set constructed in step S3 to obtain a trained neural network model for monitoring leakage of a pressurized pipeline based on transfer learning;
[0147] Furthermore, the specific implementation method of step S4 includes the following steps:
[0148] S4.1. Construct a neural network model for pressurized pipeline leakage monitoring based on transfer learning, which is constructed by a 6-8 layer multi-layer perceptron, where the shallowest layer is used as the input layer and the deepest layer is used as the output layer; the activation function is Sigmoid;
[0149] S4.2. The training set is trained by the ten-fold crossover method, and the error back propagation algorithm is used to iteratively train the neural network model for pressurized pipeline leakage monitoring based on transfer learning constructed in step S4.1 based on the training set to determine the parameter values of the neural network model for pressurized pipeline leakage monitoring based on transfer learning;
[0150] S4.3. The validation set is used to evaluate the performance of the neural network model for pressurized pipeline leakage monitoring based on transfer learning based on the validation set after the iterative training is completed, and obtain the final performance evaluation result of the neural network model for pressurized pipeline leakage monitoring based on transfer learning;
[0151] S5. Collect pipeline leakage data under different leakage conditions in the new pipeline seepage detection project, and process the pipeline leakage data using the method of step S2 to obtain a new leakage sound feature vector;
[0152] S6. Transfer the neural network parameters of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, and then input the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning;
[0153] Furthermore, the specific implementation method of step S6 includes the following steps:
[0154] S6.1. Freeze the first 3 to 5 layers of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, release some hidden layers and output layers, initialize 2 to 3 hidden layers, and create a new output layer. The activation function of the output layer adopts Sigmoid;
[0155] S6.2. Input the migrated neural network obtained in step S6.1 into the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning. Specific implementation method 2:
[0157] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a pressurized pipeline leakage monitoring method based on transfer learning described in a specific implementation method 1 are implemented.
[0158] The computer device of the present invention may be a device including a processor and a memory, such as a single chip microcomputer including a central processing unit, etc. Moreover, the processor is used to implement the steps of the above-mentioned method for monitoring leakage of pressurized pipelines based on transfer learning when executing the computer program stored in the memory.
[0159] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0160] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Specific implementation method three:
[0162] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a pressurized pipeline leakage monitoring method based on transfer learning as described in a specific implementation method 1.
[0163] The computer-readable storage medium of the present invention can be any form of storage medium that can be read by a processor of a computer device, including but not limited to non-volatile memory, volatile memory, ferroelectric memory, etc. A computer program is stored on the computer-readable storage medium. When the processor of the computer device reads and executes the computer program stored in the memory, the steps of the above-mentioned method for monitoring leakage of a pressurized pipeline based on transfer learning can be implemented.
[0164] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media do not include electric carrier signals and telecommunication signals.
[0165] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0166] Although the present application has been described above with reference to specific embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present application. In particular, as long as there is no structural conflict, the various features in the specific embodiments disclosed in the present application may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A method for monitoring leakage in pressurized pipelines based on transfer learning, characterized in that: The steps include: S1. Based on the public pipeline leakage sound database, collect pipeline leakage data, including leakage flow and corresponding leakage sound; S2. Preprocessing the leakage sound collected in step S1, and then extracting the leakage sound signal features to construct a leakage sound feature vector data set; S3. Divide the leakage sound feature vector data set obtained in step S2 into a training set and a validation set; S4. Construct a neural network model for monitoring leakage of a pressurized pipeline based on transfer learning, and train the neural network model for monitoring leakage of a pressurized pipeline based on transfer learning using the training set constructed in step S3 to obtain a trained neural network model for monitoring leakage of a pressurized pipeline based on transfer learning; S5. Collect pipeline leakage data under different leakage conditions in the new pipeline seepage detection project, and process the pipeline leakage data using the method of step S2 to obtain a new leakage sound feature vector; S6. Transfer the neural network parameters of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, and then input the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning.
2. According to the method for monitoring leakage of pressurized pipelines based on transfer learning in claim 1, it is characterized in that: The specific implementation method of step S2 includes the following steps: S2.
1. Preprocess the leakage sound collected in step S1: S2.1.
1. Normalization: Normalization is used to eliminate the influence of the intensity difference of the leakage sound collected in step S1. Set x as the original leakage sound signal, x nomalization is the normalized leakage sound signal, and the calculation expression is: Among them, Min is the minimum leakage sound signal, and Max is the maximum leakage sound signal; S2.1.
2. Pre-emphasize the normalized leakage sound signal in step S2.1.
1. The calculation expression is: x pre-emphasis (n)=x nomalization (n)-ax nomalizatio (n-1) Among them, x pre-emphasis (n) is the leakage sound signal after n-th pre-emphasis, x nomalization (n) is the normalized leakage sound signal of the nth time, a is the pre-emphasis coefficient, which is between 0.99 and 0.95, and x nomalization (n-1) is the normalized leakage sound signal of the n-1th; S2.1.
3. The leakage sound signal after pre-emphasis in step S2.1.2 is divided into frames, and the i-th frame of the n-th leakage sound signal after the frame division is defined as x Frame_i (n); S2.1.
4. Perform windowing on the leakage sound signal after the frame processing in step S2.1.3, and set the calculation expression of the windowing coefficient w[n] to: Wherein, N is the length of a frame after framing; Then we get the windowed leakage sound signal x i The expression of (n) is: x i (n)=x Frame_i (n)×w(n),n=1~N; S2.1.
5. Perform fast Fourier transform on the windowed leakage sound signal obtained in step S2.1.4, and the expression is: F i =FFT(x i ) Among them, F i is the leakage sound signal x i The frequency domain signal, FFT(x i ) is the leakage sound signal x i Perform a Fast Fourier Transform. S2.
2. The i-th frame leakage sound signal x obtained after the windowing process in step S2.1 is i (n) performing feature extraction; S2.2.
1. Extract the pitch period, x i The short-time autocorrelation function R of (n) i Defined as: The fundamental frequency period The calculation expression is: S2.2.
2. Extract short-time energy and calculate the expression as follows: Among them, E i is the short-time energy of the i-th frame; S2.2.
3. Extracting short-time energy The short-time zero-crossing rate refers to the number of times the signal crosses the horizontal axis in one frame of time. The expression for defining sgn[x] is: Then the i-th frame leakage sound signal x i The short-time zero-crossing rate Z of (n) i The expression is: S2.2.
4. Extract characteristic frequency fre i , take the first 2 to 6 according to different environments, the expression is: fre i =(f1,...,f m ),m=2~6; Among them, f m is the mth order characteristic frequency; S2.2.
5. Extract the first-order difference of characteristic frequency diff i (m-1), the expression is: diff i (m-1)=f m -f m-1 ,m=2~6; S2.2.
6. Extract statistical features, including the maximum value x max_i , minimum value x min_i , arithmetic mean x average_i , the expression is: x max_i =max(x i ) x min_i =min(x i ) x average_i =average(x i ) Extract the relative positions of the maximum and minimum values and define the position function location[x i ,x i (n)] is x i (n) is located at x i The nth position of is expressed as: location[x i ,x i (n)]=n Then the relative position x of the maximum value max_loc_i , the relative position of the minimum value x min_loc_i The expression is: Extract standard deviation σ, skewness S and kurtosis K, the expression is: Where μ is the leakage sound signal x of the i-th frame i The mean of (n); S2.
3. Based on the leakage sound signal features extracted in step S2.2, construct the leakage sound feature vector eigenvector i , we get the leakage sound feature vector data set, the expression is:
3. According to the method for monitoring leakage of pressurized pipelines based on transfer learning in claim 2, it is characterized in that: Step S3: The leakage sound feature vector dataset is divided into a training set and a validation set in a ratio of 8:
2.
4. A method for monitoring leakage of pressurized pipelines based on transfer learning according to claim 3, characterized in that: The specific implementation method of step S4 includes the following steps: S4.
1. Construct a neural network model for pressurized pipeline leakage monitoring based on transfer learning, which is constructed by a 6-8 layer multi-layer perceptron, where the shallowest layer is used as the input layer and the deepest layer is used as the output layer; the activation function is Sigmoid; S4.
2. The training set is trained by the ten-fold crossover method, and the error back propagation algorithm is used to iteratively train the neural network model for pressurized pipeline leakage monitoring based on transfer learning constructed in step S4.1 based on the training set to determine the parameter values of the neural network model for pressurized pipeline leakage monitoring based on transfer learning; S4.
3. The validation set is used to evaluate the performance of the neural network model for pressurized pipeline leakage monitoring based on transfer learning based on the validation set after the iterative training is completed, and to obtain the final performance evaluation result of the neural network model for pressurized pipeline leakage monitoring based on transfer learning.
5. A method for monitoring leakage of pressurized pipelines based on transfer learning according to claim 4, characterized in that: The specific implementation method of step S6 includes the following steps: S6.
1. Freeze the first 3 to 5 layers of the neural network model for pressurized pipeline leakage monitoring based on transfer learning trained in step S4, release some hidden layers and output layers, initialize 2 to 3 hidden layers, and create a new output layer. The activation function of the output layer adopts Sigmoid; S6.
2. Input the migrated neural network obtained in step S6.1 into the new leakage sound feature vector obtained in step S5 to obtain the pressurized pipeline leakage monitoring result based on transfer learning.
6. An electronic device, characterized in that: It comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of a pressurized pipeline leakage monitoring method based on transfer learning as described in any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for monitoring leakage of a pressurized pipeline based on transfer learning as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Multi-source transfer learning method based on graph convolutional neural network
CN112085086A
Water supply network leakage detection and positioning method based on one-dimensional transfer learning convolutional neural network integration model
CN113111923A
Underwater sound preamble signal detection method and device based on preamble simulator
CN115186596A
Method for realizing a multi-channel convolutional recurrent neural network EEG emotion recognition model using transfer learning
US20230039900A1
Cited By
Pipeline leakage noise positioning analysis method based on deep learning
CN121475568A
