+

CN108488638A - Line leakage system and method based on sound wave suction wave hybrid monitoring - Google Patents

Line leakage system and method based on sound wave suction wave hybrid monitoring Download PDF

Info

Publication number
CN108488638A
CN108488638A CN201810260988.3A CN201810260988A CN108488638A CN 108488638 A CN108488638 A CN 108488638A CN 201810260988 A CN201810260988 A CN 201810260988A CN 108488638 A CN108488638 A CN 108488638A
Authority
CN
China
Prior art keywords
data
signal
pressure
sound wave
pipeline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810260988.3A
Other languages
Chinese (zh)
Other versions
CN108488638B (en
Inventor
马大中
张化光
冯健
汪刚
刘金海
于洋
刘富聪
关勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northeastern University China
Original Assignee
Northeastern University China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northeastern University China filed Critical Northeastern University China
Priority to CN201810260988.3A priority Critical patent/CN108488638B/en
Publication of CN108488638A publication Critical patent/CN108488638A/en
Application granted granted Critical
Publication of CN108488638B publication Critical patent/CN108488638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D5/00Protection or supervision of installations
    • F17D5/02Preventing, monitoring, or locating loss
    • F17D5/06Preventing, monitoring, or locating loss using electric or acoustic means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/04Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point
    • G01M3/24Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using infrasonic, sonic, or ultrasonic vibrations
    • G01M3/243Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using infrasonic, sonic, or ultrasonic vibrations for pipes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/26Investigating fluid-tightness of structures by using fluid or vacuum by measuring rate of loss or gain of fluid, e.g. by pressure-responsive devices, by flow detectors
    • G01M3/28Investigating fluid-tightness of structures by using fluid or vacuum by measuring rate of loss or gain of fluid, e.g. by pressure-responsive devices, by flow detectors for pipes, cables or tubes; for pipe joints or seals; for valves ; for welds
    • G01M3/2807Investigating fluid-tightness of structures by using fluid or vacuum by measuring rate of loss or gain of fluid, e.g. by pressure-responsive devices, by flow detectors for pipes, cables or tubes; for pipe joints or seals; for valves ; for welds for pipes
    • G01M3/2815Investigating fluid-tightness of structures by using fluid or vacuum by measuring rate of loss or gain of fluid, e.g. by pressure-responsive devices, by flow detectors for pipes, cables or tubes; for pipe joints or seals; for valves ; for welds for pipes using pressure measurements

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

本发明提供一种基于声波负压波混合监测的管道泄漏监测系统及方法,涉及管道风险预测技术领域。该系统包括位于管道首端和末端的压力传感器、声波传感器、下位机、交换机和上位机,下位机控制压力传感器和声波传感器采集压力及声波数据,进行预处理后通过交换机发送给上位机,上位机执行其中的泄露监测程序,分别通过压力与声波数据整合存储模块接收并解析下位机传送来的压力及声波数据,通过数据处理模块对获取数据进行二次滤波、无量纲化处理和半监督费舍尔判别处理,通过管道泄漏监测模块判断管道是否发生泄漏并进行压力信号和声波信号混合定位。本发明能更好屏蔽噪声干扰,确保在信号源改变时,滤波后还原信号的准确性,对泄漏点定位更准确。The invention provides a pipeline leakage monitoring system and method based on acoustic negative pressure wave mixed monitoring, and relates to the technical field of pipeline risk prediction. The system includes pressure sensors, acoustic wave sensors, lower computer, switch and upper computer located at the beginning and end of the pipeline. The lower computer controls the pressure sensor and the acoustic wave sensor to collect pressure and sound wave data, and sends them to the upper computer through the switch after preprocessing. The computer executes the leakage monitoring program, receives and analyzes the pressure and sound wave data transmitted by the lower computer through the pressure and sound wave data integration storage module, and performs secondary filtering, dimensionless processing and semi-supervision fees on the acquired data through the data processing module Scheer discriminant processing, through the pipeline leakage monitoring module to determine whether the pipeline leaks and perform mixed positioning of pressure signals and acoustic signals. The invention can better shield noise interference, ensure the accuracy of the restored signal after filtering when the signal source changes, and more accurately locate the leakage point.

Description

基于声波负压波混合监测的管道泄漏监测系统及方法Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring

技术领域technical field

本发明涉及管道风险预测技术领域,尤其涉及一种基于声波负压波混合监测的管道泄漏监测系统及方法。The invention relates to the technical field of pipeline risk prediction, in particular to a pipeline leakage monitoring system and method based on acoustic negative pressure wave hybrid monitoring.

背景技术Background technique

管道运输在经济发展中的所扮演的角色越来与重要,如城市自来水管道、陆地原油管道、海底油气管道等,石油的运输大部分以成品油的形式在管道中运输。随着管网的逐年扩建,管道运输己经成为陆上油气运输的主要方式。但是管道的老化、锈蚀、突发性自然灾害及人为破坏等都会造成成品油管道的泄漏乃至破裂,如不及时发现并加以制止,不仅造成能源浪费、经济损失、环境污染,而且会危及人身安全,甚至造成灾难性事故。因此,对油气管道进行实时在线监测,对泄漏事故进行准确及时的报警,并准确估计出泄漏点的位置具有重要的意义。The role of pipeline transportation in economic development is becoming more and more important, such as urban water pipelines, land crude oil pipelines, submarine oil and gas pipelines, etc. Most of the oil transportation is transported in the pipeline in the form of refined oil. With the expansion of the pipeline network year by year, pipeline transportation has become the main mode of land oil and gas transportation. However, the aging, corrosion, sudden natural disasters and man-made damage of the pipeline will all cause the leakage or even rupture of the refined oil pipeline. If it is not discovered and stopped in time, it will not only cause energy waste, economic loss, environmental pollution, but also endanger personal safety. , and even cause catastrophic accidents. Therefore, it is of great significance to carry out real-time online monitoring of oil and gas pipelines, accurately and timely alarm for leakage accidents, and accurately estimate the location of leakage points.

现今的管道泄漏检测方法有很多种,如光纤测漏法、声波检测法、压力梯度法、负压波法等等。其中,负压波法是近年来国际上应用最广的管道泄漏检测方法,该方法具有反应时间短、可检测泄漏量范围广等特点,但是对于缓慢且流量较小的泄漏,由于其单位时间内压力变化缓慢,负压波法对其敏感度较低,容易产生漏报,而且由于管道输送系统的复杂工况调整,一些常见的操作如主输泵的启停、阀门的开关、调节阀开度的变化等都会引起负压波,且与泄漏引发的负压波具有很高的相似度,降低了负压波法的检测精度。There are many kinds of pipeline leak detection methods today, such as optical fiber leak detection method, acoustic wave detection method, pressure gradient method, negative pressure wave method and so on. Among them, the negative pressure wave method is the most widely used pipeline leakage detection method in the world in recent years. This method has the characteristics of short reaction time and wide range of detectable leakage. The internal pressure changes slowly, and the negative pressure wave method is less sensitive to it, which is prone to false positives. Moreover, due to the complex working condition adjustment of the pipeline transportation system, some common operations such as the start and stop of the main pump, the opening and closing of the valve, and the regulating valve Changes in the opening will cause negative pressure waves, which are highly similar to negative pressure waves caused by leakage, which reduces the detection accuracy of the negative pressure wave method.

声波检测法泄漏检测对于缓慢且流量较小的泄漏有较好的监测精度,但是其对易将泄漏和人为或环境因素造成的声波异常相混淆,并且这种方法不能探测同时发生的多点泄漏。Acoustic detection method leak detection has good monitoring accuracy for slow and small flow leakage, but it is easy to confuse the leakage with the abnormal sound wave caused by human or environmental factors, and this method cannot detect simultaneous multi-point leakage .

发明内容Contents of the invention

本发明要解决的技术问题是针对上述现有技术的不足,提供一种基于声波负压波混合监测的管道泄漏监测系统及方法,能更好地屏蔽噪声干扰,并能确保在信号源改变时,滤波后还原信号的准确性,最大限度的减少误报,对小流量的泄漏有更准确的判断,对泄漏点的定位更加准确。The technical problem to be solved by the present invention is to provide a pipeline leakage monitoring system and method based on acoustic negative pressure wave hybrid monitoring, which can better shield noise interference and ensure that when the signal source changes , The accuracy of the signal is restored after filtering, the false alarm is minimized, the leakage of small flow is more accurately judged, and the location of the leakage point is more accurate.

为解决上述技术问题,本发明所采取的技术方案是:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is:

一方面,本发明提供一种基于声波负压波混合监测的管道泄漏监测系统,包括压力传感器、声波传感器、下位机、交换机和上位机;On the one hand, the present invention provides a pipeline leakage monitoring system based on acoustic negative pressure wave hybrid monitoring, including a pressure sensor, an acoustic wave sensor, a lower computer, a switch and an upper computer;

所述压力传感器在管道的首端和末端各安置一个,并与输送介质接触,用于实时采集反映管道压力的高精度数据;所述声波传感器在管道的首端和末端各安置两个,并置于首端和末端的压力传感器两侧,用于实时采集反映管道声波的高速数据;首端或末端的两个声波传感器的距离不小于20Tv,T为声波的周期,v为声波在管道中的传播速度;The pressure sensors are arranged one at the head end and the end of the pipeline respectively, and are in contact with the conveying medium for real-time collection of high-precision data reflecting the pressure of the pipeline; two acoustic wave sensors are respectively arranged at the head end and the end of the pipeline, and Placed on both sides of the pressure sensor at the head end and the end, it is used to collect high-speed data reflecting the sound wave of the pipeline in real time; the distance between the two sound wave sensors at the head end or the end is not less than 20Tv, T is the period of the sound wave, and v is the sound wave in the pipeline speed of propagation;

所述下位机、交换机和上位机在管道的首端和末端各设有一组,所述压力传感器、所述声波传感器均与相应一端的所述下位机连接,所述下位机通过网线、交换机与相应一端的所述上位机连接;The lower computer, the switch and the upper computer are respectively provided with a group at the head end and the end of the pipeline, and the pressure sensor and the acoustic wave sensor are all connected to the lower computer at the corresponding end, and the lower computer is connected to the The host computer at the corresponding end is connected;

所述下位机被编程以便执行如下步骤:控制相应一端的压力传感器和声波传感器采集压力及声波数据,并对采集数据进行预处理,包括滤波、根据GPS采集时间进行加以时间戳;将预处理后的数据打包后通过交换机发送给上位机,同时存入下位机的SD卡中进行备份;The lower computer is programmed to perform the following steps: control the pressure sensor and the acoustic wave sensor at the corresponding end to collect pressure and acoustic wave data, and preprocess the collected data, including filtering and time stamping according to the GPS collection time; After the data is packaged, it is sent to the upper computer through the switch, and stored in the SD card of the lower computer for backup;

所述上位机中包括有计算机可执行的泄露监测程序,具体包括:压力与声波数据整合存储模块、数据处理模块、管道泄漏监测模块;The host computer includes a computer-executable leakage monitoring program, which specifically includes: a pressure and sound wave data integration storage module, a data processing module, and a pipeline leakage monitoring module;

压力与声波数据整合存储模块,用于接收并解析下位机传送来的压力及声波数据,并按照数据检测时间进行存储,并将每个管线一端的一组压力数据及两组声波数据组合为一个三阶矩阵;The integrated storage module of pressure and acoustic wave data is used to receive and analyze the pressure and acoustic wave data transmitted by the lower computer, store them according to the data detection time, and combine a set of pressure data and two sets of acoustic wave data at one end of each pipeline into one third-order matrix;

数据处理模块,用于从压力与声波数据整合存储模块中获取数据进行处理与计算,包括数据的二次滤波、无量纲化处理、半监督费舍尔判别处理,得到数据处理与计算结果;其中,在数据的二次滤波处理中,采用改进的完备总体经验模态分解ICEEMD对声波及负压波信号进行分解,根据计算其分解后的各分量的近似熵,滤除声波及负压波信号中的噪声,并去除声波干扰信号,得到最终滤波后的信号;对二次滤波后的数据进行无量纲化处理中,通过采集的历史压力及声波数据,训练半监督费舍尔判别,分别得到属于正常工况信号、大泄漏信号、小泄露信号和工况调整信号这四种工况情况的数据库;The data processing module is used to obtain data from the pressure and acoustic wave data integration storage module for processing and calculation, including secondary filtering of data, dimensionless processing, and semi-supervised Fisher discriminant processing to obtain data processing and calculation results; , in the secondary filtering process of the data, the sound wave and negative pressure wave signals are decomposed by the improved complete overall empirical mode decomposition ICEEMD, and the sound wave and negative pressure wave signals are filtered out according to the approximate entropy of each decomposed component after calculation The noise in the medium, and remove the acoustic interference signal, to obtain the final filtered signal; in the dimensionless processing of the data after the secondary filtering, the semi-supervised Fisher discriminant is trained through the collected historical pressure and acoustic data, and respectively obtained A database belonging to four working conditions: normal working condition signal, large leakage signal, small leakage signal and working condition adjustment signal;

管道泄漏监测模块,用于利用压力及声波的实时数据,根据压力与声波数据整合模块和数据处理模块的数据处理与计算结果判断管道是否发生泄漏,当判定为大泄漏或小泄漏信号时,通过压力信号和声波信号混合计算泄漏距离,对管道泄漏点进行定位。The pipeline leakage monitoring module is used to use the real-time data of pressure and sound wave to judge whether the pipeline leaks according to the data processing and calculation results of the pressure and sound wave data integration module and the data processing module. When it is judged as a large or small leakage signal, pass The pressure signal and the sound wave signal are mixed to calculate the leakage distance and locate the pipeline leakage point.

另一方面,本发明还提供一种基于声波负压波混合监测的管道泄漏监测方法,采用上述的监测系统实现,该方法包括以下步骤:On the other hand, the present invention also provides a pipeline leakage monitoring method based on acoustic negative pressure wave hybrid monitoring, which is realized by the above-mentioned monitoring system, and the method includes the following steps:

步骤1:管道的首端和末端下位机控制相应的压力传感器和声波传感器采集管道压力及声波数据,包括压力数据和声波数据并对采集数据进行滤波得到滤波后的压力信号X1、X2及声波信号Y11、Y12、Y21、Y22;下位机每秒通过GPS采集的时间数据对滤波后的压力及声波信号加以时间戳;Step 1: The lower computer at the beginning and end of the pipeline controls the corresponding pressure sensor and acoustic wave sensor to collect pipeline pressure and acoustic wave data, including pressure data and sonic data And filter the collected data to get the filtered pressure signals X 1 , X 2 and acoustic wave signals Y 11 , Y 12 , Y 21 , Y 22 ; time stamp;

步骤2:下位机将滤波并加时间戳的压力及声波实时信号打包发送给上位机,同时存入下位机的SD卡中进行备份;Step 2: The lower computer packs and sends the filtered and time-stamped pressure and real-time acoustic signals to the upper computer, and stores them in the SD card of the lower computer for backup;

步骤3:上位机接收下位机发送来的数据,通过识别数据包的包头与包尾来确定所需要的数据包,之后解析数据包中的数据类型和数据值,最后储存到上位机的数据库中;Step 3: The upper computer receives the data sent by the lower computer, determines the required data packet by identifying the header and tail of the data packet, then analyzes the data type and data value in the data packet, and finally stores it in the database of the upper computer ;

步骤4:上位机对接收到的数据进行二次滤波处理,包括以下步骤:Step 4: The upper computer performs secondary filtering on the received data, including the following steps:

步骤4.1:采用改进的完备总体经验模态分解,即ICEEMD,对声波及负压波信号进行分解,得到分解后的各本征模态函数分量;Step 4.1: Decompose the sound wave and negative pressure wave signals by using the improved complete overall empirical mode decomposition, namely ICEEMD, to obtain the decomposed eigenmode function components;

步骤4.2:计算各本征模态函数分量的近似熵,根据各分量的近似熵判别压力信号X1、X2及声波信号Y11、Y12、Y21、Y22中的噪声信号并滤除;Step 4.2: Calculate the approximate entropy of each eigenmode function component, and judge the noise signals in the pressure signals X 1 , X 2 and the acoustic wave signals Y 11 , Y 12 , Y 21 , and Y 22 according to the approximate entropy of each component and filter them out ;

步骤4.3:去除声波信号中来自上游站及下游站站内的声波干扰,得到二次滤波后的信号;Step 4.3: remove the acoustic wave interference from the upstream station and the downstream station in the acoustic wave signal, and obtain the signal after secondary filtering;

步骤5:对二次滤波后的信号进行标准差法无量纲化处理,通过采集的历史压力及声波数据,训练半监督费舍尔判别,分别得到属于正常工况信号、大泄漏信号、小泄露信号和工况调整信号这四种工况情况的数据库;Step 5: Carry out standard deviation method dimensionless processing on the signal after secondary filtering, and train semi-supervised Fisher discrimination through the collected historical pressure and acoustic wave data, and obtain signals belonging to normal working conditions, large leak signals, and small leaks respectively The database of the four working conditions of the signal and the working condition adjustment signal;

步骤6:实时采集管道压力及声波数据,通过预处理及步骤4所述的二次滤波方法进行二次滤波后,以秒为单位,送入步骤5训练得到的半监督费舍尔判别模型,根据得到的特征向量与建立的四种工况情况的数据库进行比对,计算两者之间的相似程度;Step 6: Collect pipeline pressure and acoustic wave data in real time, perform secondary filtering through preprocessing and the secondary filtering method described in step 4, and send it to the semi-supervised Fisher discriminant model obtained in step 5 training in seconds, Comparing the obtained eigenvectors with the established database of four working conditions, and calculating the degree of similarity between the two;

步骤7:根据相似程度确定实时数据的故障类型,若判定为大泄漏信号或小泄漏信号时,则通过压力信号和声波信号混合计算泄漏点位置,对管道泄漏进行定位,否则返回步骤6,继续实时监测。Step 7: Determine the fault type of the real-time data according to the degree of similarity. If it is determined to be a large leak signal or a small leak signal, calculate the position of the leak point by mixing the pressure signal and the acoustic wave signal, and locate the pipeline leak. Otherwise, return to step 6 and continue real-time monitoring.

所述步骤4.1中采用改进的完备总体经验模态分解对声波及负压波信号进行分解的具体过程为:In the step 4.1, the specific process of decomposing the sound wave and the negative pressure wave signal by using the improved complete overall empirical mode decomposition is as follows:

步骤4.1.1:对信号X(t)加入I组高斯白噪声生成I个新的信号,第i个新的信号为Xi(t)=X(t)+βkwi;其中,X(t)为原声波或负压波信号;wi为第i组高斯白噪声变量,i=1、2、…、I;βk=εkstd(rk),rk为第k个余项,εk=0.2;Step 4.1.1: Add I group of Gaussian white noise to the signal X(t) to generate I new signals, the i-th new signal is Xi (t)=X(t)+β k w i ; where, X (t) is the original sound wave or negative pressure wave signal; w i is the i-th group of Gaussian white noise variables, i=1, 2, ..., I; β kk std(r k ), r k is the k-th Remainder, ε k = 0.2;

步骤4.1.2:初始化循环参数,令i=1;Step 4.1.2: Initialize cycle parameters, let i=1;

步骤4.1.3:确定信号Xi(t)上的所有极值点,包括局部极大值点与局部极小值点;拟合极值点得到上包络线和下包络线使Xi(t)满足:Step 4.1.3: Determine all extreme points on the signal X i (t), including local maximum points and local minimum points; fit the extreme points to obtain the upper envelope and the lower envelope Let X i (t) satisfy:

步骤4.1.4:计算Xi(t)上下两条包络线的平均值,记为m(t),Step 4.1.4: Calculate the average value of the upper and lower envelopes of Xi(t), denoted as m(t),

步骤4.1.5:用原始Xi(t)信号数据减去平均值m(t)得到函数hi(t),即hi(t)=Xi(t)-m(t);Step 4.1.5: Subtract the average value m(t) from the original Xi (t) signal data to obtain the function hi (t), that is, hi (t)= Xi (t)-m(t);

步骤4.1.6:令Xi(t)=hi(t),判断hi(t)是否满足本征模态函数IMF的两个条件:Step 4.1.6: Set X i (t) = h i (t), and judge whether h i (t) satisfies the two conditions of the intrinsic mode function IMF:

条件1:在任何时间点上,IMF的局部最大值和局部最小值定义的包络的均值必须为零,即对任意的t,有 Condition 1: At any point in time, the mean value of the envelope defined by the local maximum and local minimum of the IMF must be zero, that is, for any t, we have

条件2:在整个数据序列中,极值点的数量和过零点的数量相等或最多相差不多于一个;Condition 2: In the entire data sequence, the number of extreme points and the number of zero-crossing points are equal or at most equal to one;

若满足,则执行步骤4.1.7,否则,返回步骤步骤4.1.3;If satisfied, execute step 4.1.7, otherwise, return to step 4.1.3;

步骤4.1.7:将hi(t)从X(t)信号中分离出来,即为IMFi分量,得到一个去除高频分量的差值的函数ri(t),即余项ri(t)=X(t)-IMFiStep 4.1.7: Separate hi (t) from the X(t) signal, which is the IMF i component, and obtain a function r i (t) that removes the difference of the high-frequency component, that is, the remainder r i ( t)=X(t)-IMF i ;

步骤4.1.8:判断残余信号ri(t)是否为单调函数的信号,若是,则X(t)不能再分解出IMF分量,完成分解过程,得到各IMF分量,记为IMF1~IMFn,n=i,并得到最后的残余信号为rn(t)=rnn-1(t)-hn(t),信号X(t)为n个本征模态函数分量和一个残余项的和,即否则,令X(t)=ri为新的信号,再令i=i+1,返回步骤4.1.3,进行下一次分解。Step 4.1.8: Judging whether the residual signal r i (t) is a signal of a monotone function, if so, then X(t) can no longer be decomposed into IMF components, and the decomposition process is completed to obtain each IMF component, which is recorded as IMF 1 ~ IMFn, n=i, and the final residual signal is r n (t)=r nn - 1 (t)-h n (t), and the signal X(t) is n eigenmode function components and a residual term and, namely Otherwise, let X(t)=r i be a new signal, and let i=i+1, return to step 4.1.3, and perform the next decomposition.

所述步骤4.2中计算各本征模态函数分量的近似熵的具体过程为:The specific process of calculating the approximate entropy of each eigenmode function component in the described step 4.2 is:

步骤4.2.1:将第j个本征模态函数中的数据看作有y个点的时间序列,记为{Zj}={Zj1、Zj2、…、Zjy};对于给定阈值a和模式维数g,计算n*n的二值距离矩阵B:Step 4.2.1: Consider the data in the jth eigenmode function as a time series with y points, recorded as {Z j }={Z j1 , Z j2 ,..., Z jy }; for a given Threshold a and pattern dimension g, Calculate the n*n binary distance matrix B:

其中, in,

步骤4.2.2:利用矩阵B的元素brj分别计算小于a的元素数量与距离总数n-g+1和n-g+2的比值,分别记为如下两式所示:Step 4.2.2: Use the elements b rj of matrix B to calculate the ratios of the number of elements less than a to the total number of distances n-g+1 and n-g+2, respectively recorded as and As shown in the following two formulas:

步骤4.2.3:根据计算得到如下两式所示,Step 4.2.3: According to and calculated and As shown in the following two formulas,

则第j个本征模态函数的近似熵Aj表示为: Then the approximate entropy A j of the jth eigenmode function is expressed as:

步骤4.2.4:将得到的近似熵值由大到小排列,对应的近似熵值大于1的IMF分量视为噪声信号进行滤除,对声波信号近似熵为0.486~0.490之间的IMF分量为声波与压力信号的耦合信号,作为干扰信号进行滤除。Step 4.2.4: Arrange the obtained approximate entropy values from large to small, and the corresponding IMF components with approximate entropy values greater than 1 are regarded as noise signals to be filtered out. The IMF components with the approximate entropy of the acoustic wave signal between 0.486 and 0.490 are The coupling signal of the sound wave and the pressure signal is filtered out as an interference signal.

所述步骤4.3中去除声波信号中来自上游站及下游站站内的声波干扰的具体过程为:In the step 4.3, the specific process of removing the acoustic interference from the upstream station and the downstream station in the acoustic signal is as follows:

步骤4.3.1:通过步骤4.2得到的二次滤波后的声波信号,判断其各IMF分量到各声波传感器的时间;Step 4.3.1: judge the time from each IMF component to each acoustic wave sensor through the second-filtered acoustic wave signal obtained in step 4.2;

步骤4.3.2:管道首端的外侧声波传感器接受到的时间早于内侧声波传感器接受到的时间的本征模态函数和管道末端的外侧声波传感器接受到的时间早于内侧声波传感器的接受到的时间的本征模态函数为来自上游站及下游站站内的声波干扰,去除这些本征模态函数;Step 4.3.2: The eigenmode function of the time received by the outer acoustic wave sensor at the beginning of the pipe before the time received by the inner acoustic wave sensor and the time received by the outer acoustic wave sensor at the end of the pipe is earlier than that received by the inner acoustic wave sensor The eigenmode function of time is the acoustic wave interference from the upstream station and the downstream station, and these eigenmode functions are removed;

步骤4.3.3:将声波信号对应的剩余的本征模态函数相加得到滤除来自站内噪声的声源信号,即为上游站和下游站的声波传感器的声波信号Y1、Y2Step 4.3.3: Add the remaining eigenmode functions corresponding to the acoustic signals to obtain the acoustic source signals from which the noise in the station is filtered out, which are the acoustic signals Y 1 and Y 2 of the acoustic sensors of the upstream and downstream stations.

所述步骤5的具体过程为:The concrete process of described step 5 is:

步骤5.1:将步骤4二次滤波后的数据进行标准差法无量纲化处理,组合为测量矩阵XL;在每个压力信号之间插入m个数值等于上一个时间点的压力数据值的点, 四舍五入的整数即为m,其中:f1为声波信号的频率,f2为压力信号的频率;Step 5.1: The data after the secondary filtering in step 4 is subjected to dimensionless processing by the standard deviation method, and combined into a measurement matrix X L ; m points whose value is equal to the pressure data value at the previous time point are inserted between each pressure signal , The rounded integer is m, where: f 1 is the frequency of the sound wave signal, and f 2 is the frequency of the pressure signal;

步骤5.2:测量矩阵XL=[x1,x2,x3,…xN],其中包括正常输油信号、小泄漏信号、大泄漏信号和工况干扰信号,第k种类别中包含nk个样本,k=1,2,3,4;n1+n2+n3+n4=N;Step 5.2: Measurement matrix X L =[x 1 , x 2 , x 3 ,...x N ], which includes normal oil delivery signal, small leakage signal, large leakage signal and working condition interference signal, and the kth category contains n k samples, k=1, 2, 3, 4; n 1 +n 2 +n 3 +n 4 =N;

定义Sb为类间散度矩阵,Sw为类内散度矩阵,分别如下两式所示:Define S b as the between-class scatter matrix and S w as the intra-class scatter matrix, as shown in the following two formulas:

其中,权值矩阵W(b)与W(w)分别定义为:Among them, the weight matrix W (b) and W (w) are defined as:

其中,Ck表示类别数k的集合,Ck={1,2,3,4};Among them, C k represents the set of category number k, C k = {1, 2, 3, 4};

定义St为全局散度矩阵,其中, Define S t as the global scatter matrix, in,

步骤5.3:令其中I为单位对角矩阵,则半监督费舍尔优化判别向量通过下式得出:Step 5.3: Order Where I is the unit diagonal matrix, the semi-supervised Fisher optimization discriminant vector is obtained by the following formula:

其中,J为最大评分参量,p为不等于0的任意常数,P为负载矩阵;Among them, J is the maximum scoring parameter, p is any constant not equal to 0, and P is the load matrix;

上式等价为Srbq=λSrwq,其中λ是广义特征值,q是对应的广义特征向量;The above formula is equivalent to S rb q=λS rw q, where λ is the generalized eigenvalue, and q is the corresponding generalized eigenvector;

将所求得的广义特征值降序排列为λ1≥λ2≥…≥λN,相应广义特征向量为q1,q2,…,qN,向量q1,q2,…,qN即为半监督费舍尔优化判别向量,其分类能力也依次减弱;Arrange the obtained generalized eigenvalues in descending order as λ 1 ≥λ 2 ≥…≥λ N , the corresponding generalized eigenvectors are q 1 , q 2 ,…,q N , and the vectors q 1 , q 2 ,…,q N are Optimize the discriminant vector for semi-supervised Fisher, and its classification ability is also weakened in turn;

假设样本属于每一类的先验概率相等,为K为类别总数,则标签样本的条件概率密度函数如下式所示:Assuming that the prior probability of the sample belonging to each class is equal, it is K is the total number of categories, then the label sample The conditional probability density function of is as follows:

其中,Qr=[q1,q2,…,qr]为前r个费舍尔判别特征向量,Qr所张成的空间为r维的半监督费舍尔判别子空间,是Ck类样本的均值向量;Among them, Q r =[q 1 , q 2 ,...,q r ] are the first r Fisher discriminant feature vectors, and the space formed by Q r is r-dimensional semi-supervised Fisher discriminant subspace, is the mean vector of samples of class C k ;

根据贝叶斯准则,属于第i类型的后验概率计算公式为:According to Bayesian rule, The formula for calculating the posterior probability of belonging to the i-th type is:

半督费舍尔判别函数的定义为The half-doctor Fisher discriminant function is defined as

表示测试数据集中任意样本属于训练集中第k个分类的判别函数值; Represents any sample in the test data set The value of the discriminant function belonging to the kth category in the training set;

依据下式所示的泄漏分类准则,预测测试集中的每一个测试样本为正常输油信号、大泄漏信号、小泄漏信号或工况干扰信号:Predict each test sample in the test set according to the leakage classification criterion shown in the following formula For normal oil delivery signal, large leakage signal, small leakage signal or working condition interference signal:

步骤5.4:利用历史数据中的正常工况信号、大泄漏信号、小泄露信号和工况干扰信号分别训练步骤5.3得到的数学模型,得到正常工况信号、大泄漏信号、小泄露信号和工况干扰信号对应的建立管道泄漏检测的数据库。Step 5.4: Use the normal working condition signal, large leakage signal, small leakage signal and working condition interference signal in the historical data to train the mathematical model obtained in step 5.3 respectively, and obtain the normal working condition signal, large leakage signal, small leakage signal and working condition Corresponding to the interference signal Build a database for pipeline leak detection.

所述步骤6中相似程度的计算公式如下所示:The formula for calculating the degree of similarity in step 6 is as follows:

式中,Sk为相似度,C(x)new为新采集的数据,为第k种类型的测试样本,为k类样本的一个集合,为所有测试样本的一个集合;In the formula, S k is the similarity, C(x) new is the newly collected data, is the test sample of the kth type, is a set of k samples, is a set of all test samples;

若Si≥0.85,则当前数据为第k类数据;否则,结合现场状况的实际分析及人为诊断确定故障的类型,并将其收入管道泄漏检测的数据库中。If S i ≥ 0.85, the current data is the kth type of data; otherwise, combine the actual analysis of the site conditions and human diagnosis to determine the type of fault, and store it in the database of pipeline leakage detection.

所述步骤7中对管道泄露进行定位的具体过程为:The specific process of locating the pipeline leakage in the step 7 is:

步骤7.1:根据上游站和下游站压力传感器的时间差值计算泄漏点,如下式所示,Step 7.1: Calculate the leak point according to the time difference of the pressure sensors of the upstream station and the downstream station, as shown in the following formula,

式中,Z1为泄漏点到上游站压力传感器的距离;l1为管线上下游站压力传感器之间的距离;τ1为负压波传到上下游压力传感器的时差;v1为负压波在管线内的传播速度;In the formula, Z 1 is the distance from the leakage point to the pressure sensor of the upstream station; l 1 is the distance between the pressure sensors of the upstream and downstream stations on the pipeline; τ 1 is the time difference between the negative pressure wave and the upstream and downstream pressure sensors; v 1 is the negative pressure The propagation velocity of the wave in the pipeline;

步骤7.2:在泄漏点的上游站及下游站各选取泄漏发生点前30秒的压力数据均值和泄漏点后15秒的压力数据均值,计算上下游站压力变化比,分别如下两式所示,Step 7.2: Select the average value of the pressure data 30 seconds before the leakage point and the average value of the pressure data 15 seconds after the leakage point at the upstream station and the downstream station of the leakage point, and calculate the pressure change ratio of the upstream and downstream stations, as shown in the following two formulas respectively,

其中:δ1、δ2分别为上游站和下游站的压力变化比;X1+、X2+分别为泄漏发生点前30秒上游站和下游站的压力数据均值;X1-、X2-分别为泄漏发生点后15秒上游站和下游站的压力数据均值;Among them: δ 1 , δ 2 are the pressure change ratios of the upstream station and the downstream station respectively; X 1+ , X 2+ are the average pressure data values of the upstream station and the downstream station 30 seconds before the leakage occurs; X 1- , X 2 - mean values of the pressure data of the upstream station and downstream station 15 seconds after the leak occurred;

则管道泄漏时总压力变化比δp为:其中,μ为由现场管道长度和正常输送管道压力大小确定的参数;Then the total pressure change ratio δ p when the pipeline leaks is: Among them, μ is a parameter determined by the length of the on-site pipeline and the pressure of the normal delivery pipeline;

步骤7.3:对声波的特征值在上游站及下游站的时间差值,计算泄漏点。如下式所示,Step 7.3: Calculate the leakage point for the time difference between the characteristic value of the sound wave at the upstream station and the downstream station. As shown in the following formula,

式中,Z2为泄漏点到上游站声波传感器的距离;l2为管线上下游站声波传感器之间的距离;τ2为声波传到上下游声波传感器的时差;v2为声波在管线内的传播速度;In the formula, Z 2 is the distance from the leak point to the acoustic wave sensor of the upstream station; l 2 is the distance between the acoustic wave sensors of the upstream and downstream stations on the pipeline; τ 2 is the time difference between the sound wave transmitted to the upstream and downstream acoustic wave sensors; speed of propagation;

步骤7.4:在泄漏点的上游站及下游站各选取泄漏发生点前5秒的声波数据均值和泄漏点后3秒的声波数据均值,计算上下游站声波变化比,分别如下两式所示,Step 7.4: At the upstream station and downstream station of the leakage point, select the average value of the acoustic wave data 5 seconds before the leakage point and the average value of the acoustic wave data 3 seconds after the leakage point, and calculate the acoustic wave change ratio of the upstream and downstream stations, respectively, as shown in the following two formulas,

其中,δ3、δ4分别为上游站和下游站的声波变化比;Y1+、Y2+分别为泄漏发生点前5秒上游站和下游站的声波数据均值;Y1-、Y2-分别为泄漏发生点后3秒上游站和下游站的声波数据均值;Among them, δ 3 , δ 4 are the acoustic wave change ratios of the upstream station and the downstream station respectively; Y 1+ , Y 2+ are the mean values of the acoustic wave data of the upstream station and the downstream station 5 seconds before the leakage point; Y 1- , Y 2 - mean values of the acoustic wave data of the upstream station and downstream station 3 seconds after the leak occurred;

则管道泄漏时总声波变化比δs为: Then the total acoustic wave change ratio δ s when the pipeline leaks is:

步骤7.5:根据泄漏点到上游站压力传感器的最终距离为Step 7.5: According to the final distance from the leak point to the pressure sensor of the upstream station is

其中,T为声波的周期。Among them, T is the period of the sound wave.

采用上述技术方案所产生的有益效果在于:本发明提供的一种基于声波负压波混合监测的管道泄漏监测方法,与现有系统相比较有以下优势:The beneficial effect produced by adopting the above technical solution is that the pipeline leakage monitoring method based on acoustic negative pressure wave hybrid monitoring provided by the present invention has the following advantages compared with the existing system:

(1)本发明使用的下位机成本更低;(1) the lower computer cost that the present invention uses is lower;

(2)采用多重滤波包括对声波和压力信号的单独硬件及软件滤波,更好的屏蔽了噪声的干扰;(2) Multiple filtering including separate hardware and software filtering for sound waves and pressure signals, better shielding from noise interference;

(3)在数据预处理阶段,通过ICEEMD对信号进行分解,并通过近似熵选择其源信号对应的本征模态函数,确保了在信号源改变时,滤波后还原信号的准确性;(3) In the data preprocessing stage, the signal is decomposed by ICEEMD, and the intrinsic mode function corresponding to the source signal is selected by approximate entropy, which ensures the accuracy of the restored signal after filtering when the signal source changes;

(4)通过设置双声波传感器可屏蔽来自站内的声波干扰;(4) The acoustic interference from the station can be shielded by setting dual acoustic sensors;

(5)采用费舍尔判别分析的方法综合分析了压力和声波信号,确保了泄漏的特征值的准确性,最大限度的减少了误报,对小流量的泄漏有了更准确的判断;(5) The method of Fisher's discriminant analysis is used to comprehensively analyze the pressure and acoustic wave signals, which ensures the accuracy of the characteristic value of the leakage, minimizes false alarms, and has a more accurate judgment on the leakage of small flow;

(6)综合利用声波和压力信号判断泄漏点,针对负压波法对小泄漏量和声波法对大泄漏量的定位不精确的问题,设立阀值对泄漏点的定位更加准确。(6) Comprehensively use sound waves and pressure signals to judge the leak point. In view of the inaccurate positioning of small leaks by the negative pressure wave method and large leaks by the sonic wave method, it is more accurate to set a threshold to locate the leak point.

附图说明Description of drawings

图1为本发明实施例提供的基于声波负压波混合监测的管道泄漏监测系统结构示意图;Fig. 1 is a schematic structural diagram of a pipeline leakage monitoring system based on acoustic negative pressure wave hybrid monitoring provided by an embodiment of the present invention;

图2为本发明实施例提供的基于声波负压波混合监测的管道泄漏监测方法的总体算法流程图;Fig. 2 is the overall algorithm flow chart of the pipeline leakage monitoring method based on the acoustic negative pressure wave hybrid monitoring provided by the embodiment of the present invention;

图3为本发明实施例提供的基于声波负压波混合监测的管道泄漏监测方法的实施流程图;Fig. 3 is the implementation flowchart of the pipeline leakage monitoring method based on the acoustic negative pressure wave hybrid monitoring provided by the embodiment of the present invention;

图4为本发明实施例提供的二次滤波方法流程图;FIG. 4 is a flowchart of a secondary filtering method provided by an embodiment of the present invention;

图5为本发明实施例提供的正常工况负压波的ICEEMD分解结果图;Fig. 5 is the ICEEMD decomposition result diagram of the negative pressure wave under normal operating conditions provided by the embodiment of the present invention;

图6为本发明实施例提供的泄漏时负压波的ICEEMD分解结果图;Fig. 6 is the ICEEMD decomposition result diagram of the negative pressure wave during leakage provided by the embodiment of the present invention;

图7为本发明实施例提供的压力信号滤波后的还原信号示意图;Fig. 7 is a schematic diagram of the restored signal after filtering the pressure signal provided by the embodiment of the present invention;

图8为本发明实施例提供的正常工况时声波信号的ICEEMD分解结果图;Fig. 8 is the ICEEMD decomposition result diagram of the acoustic wave signal during the normal working condition provided by the embodiment of the present invention;

图9为本发明实施例提供的泄漏时声波信号的ICEEMD分解结果图;Fig. 9 is the ICEEMD decomposition result diagram of the acoustic wave signal during the leakage provided by the embodiment of the present invention;

图10为本发明实施例提供的声波信号滤波后的还原信号示意图。FIG. 10 is a schematic diagram of a restored signal after the acoustic wave signal is filtered according to an embodiment of the present invention.

图中:1、管道首端压力传感器;2、管道末端压力传感器;3、管道首端的外侧声波传感器;4、管道首端的内侧声波传感器;5、管道末端的内侧声波传感器;6、管道末端的外侧声波传感器;7、下位机;8、交换机;9、上位机;10、进站阀;11、泵。In the figure: 1. The pressure sensor at the beginning of the pipeline; 2. The pressure sensor at the end of the pipeline; 3. The outer acoustic wave sensor at the beginning of the pipeline; 4. The inner acoustic wave sensor at the beginning of the pipeline; 5. The inner acoustic wave sensor at the end of the pipeline; External acoustic wave sensor; 7. Lower computer; 8. Switch; 9. Upper computer; 10. Entry valve; 11. Pump.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

一种基于声波负压波混合监测的管道泄漏监测系统,如图1所示,包括压力传感器、声波传感器、下位机7、交换机8和上位机9。A pipeline leakage monitoring system based on acoustic negative pressure wave hybrid monitoring, as shown in FIG. 1 , includes a pressure sensor, an acoustic wave sensor, a lower computer 7 , a switch 8 and an upper computer 9 .

压力传感器在管道的首端和末端各安置一个,并与输送介质接触,用于实时采集反映管道压力的高精度数据。管道首端和末端的压力传感器分别如图1中的1和2。A pressure sensor is installed at the beginning and end of the pipeline, and is in contact with the conveying medium, and is used to collect high-precision data reflecting the pipeline pressure in real time. The pressure sensors at the beginning and end of the pipeline are 1 and 2 in Figure 1, respectively.

本实施例中,罗斯蒙特3051s压力变送器,其主要参数如下:In this embodiment, the main parameters of the Rosemount 3051s pressure transmitter are as follows:

(1)压力变送器的测量压力范围为0~8MPa;(1) The measuring pressure range of the pressure transmitter is 0~8MPa;

(2)信号分辨率0.015%,准确度±0.075%,更新速率50Hz;(2) The signal resolution is 0.015%, the accuracy is ±0.075%, and the update rate is 50Hz;

(3)输出信号为4~20mADC(二线制),带负载能力不小于700Ω,供电电源为24VDC;(3) The output signal is 4~20mADC (two-wire system), the load capacity is not less than 700Ω, and the power supply is 24VDC;

(4)具有承受最大量程的1.5倍的过载能力;(4) It has the overload capacity of 1.5 times of the maximum measuring range;

(5)环境温度每变化50°F(28℃)的影响优于:±(0.025%量程上限+0.125%量程);(5) The influence of every 50°F (28°C) change in the ambient temperature is better than: ±(0.025% of the upper limit of the range + 0.125% of the range);

(6)静压每变化1000psi(6.9MPa)的影响优于:±0.1%量程上限。(6) The effect of every 1000psi (6.9MPa) change in static pressure is better than: ±0.1% of the upper limit of the range.

声波传感器在管道的首端和末端各安置两个,并置于首端和末端的压力传感器两侧,用于实时采集反映管道声波的高速数据。管道首端的两个声波传感器分别如图1中的3和4,道末端的两个声波传感器分别如图1中的5和6,其中,3和6为外侧,4和5为内侧。首端或末端的两个声波传感器的距离不小于20Tv,T为声波的周期,v为声波在管道中的传播速度。Two acoustic wave sensors are installed at the head end and the end of the pipeline, and placed on both sides of the pressure sensor at the head end and the end, for real-time collection of high-speed data reflecting the sound waves of the pipeline. The two acoustic wave sensors at the head end of the pipeline are respectively 3 and 4 in Fig. 1, and the two acoustic wave sensors at the end of the pipeline are respectively 5 and 6 in Fig. 1, where 3 and 6 are outside, and 4 and 5 are inside. The distance between the two acoustic wave sensors at the head end or the end is not less than 20Tv, T is the period of the sound wave, and v is the propagation speed of the sound wave in the pipeline.

本实施例中,声波传感器采用CT1000系列,具有以下的技术指标:In this embodiment, the acoustic wave sensor adopts CT1000 series, which has the following technical indicators:

(1)电压灵敏度:947.47mv/g;(1) Voltage sensitivity: 947.47mv/g;

(2)测量频率范围:0.2~1200Hz;(2) Measurement frequency range: 0.2~1200Hz;

(3)量程:5g;(3) Range: 5g;

(4)线性度:≤1%;(4) Linearity: ≤1%;

(5)工作温度:-20~120℃;(5) Working temperature: -20~120℃;

(6)抗冲击:10g;(6) Shock resistance: 10g;

(7)输出方式:顶端M5;(7) Output mode: top M5;

(8)激励电流:2~10mA,激励电压:10-24VDC。(8) Excitation current: 2~10mA, excitation voltage: 10-24VDC.

下位机7、交换机8和上位机9在管道的首端和末端各设有一组,压力传感器、声波传感器均与相应一端的下位机7连接,下位机7通过网线、交换机8与相应一端的上位机9连接。The lower computer 7, the switch 8 and the upper computer 9 are respectively provided with a group at the head end and the end of the pipeline. The pressure sensor and the acoustic wave sensor are all connected to the lower computer 7 at the corresponding end. The lower computer 7 is connected to the upper computer at the corresponding end through the network cable and the switch 8 Machine 9 is connected.

下位机7被编程以便执行如下步骤:控制相应一端的压力传感器和声波传感器采集压力及声波数据,并对采集数据进行预处理,包括滤波、根据GPS采集时间进行加以时间戳;将预处理后的数据打包后通过交换机8发送给上位机9,同时存入下位机7的SD卡中进行备份。The lower computer 7 is programmed to perform the following steps: control the pressure sensor and the acoustic wave sensor at the corresponding end to collect pressure and acoustic wave data, and perform preprocessing on the collected data, including filtering and time stamping according to the GPS collection time; After the data is packaged, it is sent to the upper computer 9 through the switch 8, and is stored in the SD card of the lower computer 7 for backup.

本实施例中的技术指标要求如下:The technical index requirements in the present embodiment are as follows:

(1)采样频率范围:0-1.2KHz;(1) Sampling frequency range: 0-1.2KHz;

(2)驱动信号:3.3V及5V;(2) Drive signal: 3.3V and 5V;

(3)采样信号的通道数:至少4路;(3) Number of sampling signal channels: at least 4 channels;

(4)采样精度:之0.001;(4) Sampling accuracy: 0.001;

(5)通信方式:以太网通信;(5) Communication method: Ethernet communication;

(6)供电方式:24V直流供电。(6) Power supply mode: 24V DC power supply.

本实施例中,对压力信号采样频率选取为50Hz,对声波信号的采样频率甚至为1200Hz。In this embodiment, the sampling frequency of the pressure signal is selected as 50 Hz, and the sampling frequency of the acoustic wave signal is even 1200 Hz.

上位机9中包括有计算机可执行的泄露监测程序,具体包括:压力与声波数据整合存储模块,数据处理模块、管道泄漏监测模块。The upper computer 9 includes a computer-executable leakage monitoring program, specifically including: a pressure and sound wave data integration storage module, a data processing module, and a pipeline leakage monitoring module.

压力与声波数据整合存储模块,用于接收并解析下位机7传送来的压力及声波数据,并按照数据检测时间进行存储,并将每个管线一端的一组压力数据及两组声波数据组合为一个三阶矩阵;The pressure and sound wave data integration storage module is used to receive and analyze the pressure and sound wave data transmitted by the lower computer 7, store them according to the data detection time, and combine a set of pressure data and two sets of sound wave data at one end of each pipeline into a third-order matrix;

数据处理模块,用于从压力与声波数据整合存储模块中获取数据进行处理与计算,包括数据的二次滤波、无量纲化处理、费舍尔判别处理,得到数据处理与计算结果;其中,在数据的二次滤波处理中,采用改进的完备总体经验模态分解ICEEMD对声波及负压波信号进行分解,根据计算其分解后的各分量的近似熵,滤除声波及负压波信号中的噪声,并去除声波干扰信号,得到最终滤波后的信号;对二次滤波后的数据进行无量纲化处理中,通过采集的历史压力及声波数据,训练半监督费舍尔判别,分别得到属于正常工况信号、大泄漏信号、小泄露信号和工况调整信号这四种工况情况的数据库;The data processing module is used to obtain data from the pressure and acoustic wave data integration storage module for processing and calculation, including secondary filtering of data, dimensionless processing, and Fisher discriminant processing to obtain data processing and calculation results; among them, in In the secondary filtering process of the data, the improved complete overall empirical mode decomposition ICEEMD is used to decompose the sound wave and negative pressure wave signals, and according to the calculation of the approximate entropy of each decomposed component, the sound wave and negative pressure wave signals are filtered out. noise, and remove the acoustic interference signal to obtain the final filtered signal; in the dimensionless processing of the data after the secondary filtering, the semi-supervised Fisher discriminant is trained through the collected historical pressure and acoustic data, and the normal A database of four working conditions: working condition signal, large leakage signal, small leakage signal and working condition adjustment signal;

管道泄漏监测模块,用于利用压力及声波的实时数据,根据压力与声波数据整合模块和数据处理模块的数据处理与计算结果判断管道是否发生泄漏,当判定为大泄漏或小泄漏信号时,通过压力信号和声波信号混合计算泄漏距离,对管道泄漏点进行定位。The pipeline leakage monitoring module is used to use the real-time data of pressure and sound wave to judge whether the pipeline leaks according to the data processing and calculation results of the pressure and sound wave data integration module and the data processing module. When it is judged as a large or small leakage signal, pass The pressure signal and the sound wave signal are mixed to calculate the leakage distance and locate the pipeline leakage point.

采用上述的监测系统实现基于声波负压波混合监测的管道泄漏监测方法,其总体算法如图2所示,具体实施流程图如图3所示,具体方法如下所述。Using the above-mentioned monitoring system to realize the pipeline leakage monitoring method based on acoustic negative pressure wave mixed monitoring, the overall algorithm is shown in Figure 2, and the specific implementation flow chart is shown in Figure 3, and the specific method is as follows.

步骤1:管道的首端和末端下位机控制相应的压力传感器和声波传感器采集管道压力及声波数据,包括压力数据和声波数据并对采集数据进行滤波得到滤波后的压力信号X1、X2及声波信号Y11、Y12、Y21、Y22Step 1: The lower computer at the beginning and end of the pipeline controls the corresponding pressure sensor and acoustic wave sensor to collect pipeline pressure and acoustic wave data, including pressure data and sonic data The collected data is filtered to obtain filtered pressure signals X 1 , X 2 and acoustic wave signals Y 11 , Y 12 , Y 21 , and Y 22 .

由于管道传输距离远,管道泄漏产生的高频噪声在管道中衰减速度快,故下位机采集到声波信号的高频部分可视为噪声信号,故采用低通滤波滤除频率大于200Hz的声波信号。滤除下位机压力信号中的粗大误差、高频噪声等干扰。Due to the long transmission distance of the pipeline, the high-frequency noise generated by the pipeline leakage attenuates quickly in the pipeline, so the high-frequency part of the acoustic signal collected by the lower computer can be regarded as a noise signal, so low-pass filtering is used to filter out the acoustic signal with a frequency greater than 200Hz . Filter out gross errors, high-frequency noise and other interference in the pressure signal of the lower computer.

下位机每秒通过GPS采集的时间数据对滤波后的压力及声波信号加以时间戳。The lower computer time stamps the filtered pressure and sound wave signals through the time data collected by GPS every second.

步骤2:下位机将滤波并加时间戳的压力及声波实时信号打包发送给上位机,同时存入下位机的SD卡中进行备份。Step 2: The lower computer packs and sends the filtered and time-stamped pressure and real-time acoustic signals to the upper computer, and stores them in the SD card of the lower computer for backup.

SD卡中存储最近60分钟以内的数据。当上位机因网络延时等原因未接受到某一时间段的数据包时,向下位机发送请求,下一秒时下位机会将当前时间的数据包连同上位机缺失的数据一同发送给上位机。The data within the last 60 minutes is stored in the SD card. When the upper computer does not receive the data packet of a certain period of time due to network delay and other reasons, it sends a request to the lower computer, and the next second, the lower computer will send the data packet of the current time together with the missing data of the upper computer to the upper computer. .

步骤3:上位机接收下位机发送来的数据,通过识别数据包的包头与包尾来确定所需要的数据包,之后解析数据包中的数据类型和数据值,最后储存到上位机的数据库中。Step 3: The upper computer receives the data sent by the lower computer, determines the required data packet by identifying the header and tail of the data packet, then analyzes the data type and data value in the data packet, and finally stores it in the database of the upper computer .

根据对声波与负压波的管道泄漏信号的产生及传播机理分析可知,在泄露时声波信号和负压波信号在频率域上会有小幅波动,传统的应用在管道泄漏检测中的算法并未对其进行优化,会对后续的泄漏定位产生干扰,影响其定位精准度。本实施例采用ICEEMD对声波及负压波信号进行分解,根据计算其分解后的各分量的近似熵,选取最终滤波后的信号,具体步骤如下。According to the analysis of the generation and propagation mechanism of the pipeline leakage signal of acoustic wave and negative pressure wave, it can be known that the acoustic wave signal and negative pressure wave signal will have small fluctuations in the frequency domain during leakage, and the traditional algorithm used in pipeline leakage detection has not Optimizing it will interfere with the subsequent leak location and affect its location accuracy. In this embodiment, ICEEMD is used to decompose the sound wave and the negative pressure wave signal, and the final filtered signal is selected according to the calculation of the approximate entropy of each decomposed component. The specific steps are as follows.

步骤4:上位机对接收到的数据进行二次滤波处理,如图4所示,包括以下步骤:Step 4: The host computer performs secondary filtering on the received data, as shown in Figure 4, including the following steps:

步骤4.1:采用改进的完备总体经验模态分解,即ICEEMD,对声波及负压波信号进行分解,得到分解后的各本征模态函数分量;具体过程为:Step 4.1: Use the improved complete overall empirical mode decomposition, namely ICEEMD, to decompose the acoustic wave and negative pressure wave signals, and obtain the decomposed eigenmode function components; the specific process is as follows:

步骤4.1.1:对信号X(t)加入I组高斯白噪声生成I个新的信号,第i个新的信号为Xi(t)=X(t)+βkwi;其中,X(t)为原声波或负压波信号;wi为第i组高斯白噪声变量,i=1、2、…、I;βk=εkstd(rk),rk为第k个余项,εk=0.2;Step 4.1.1: Add I group of Gaussian white noise to the signal X(t) to generate I new signals, the i-th new signal is Xi (t)=X(t)+β k w i ; where, X (t) is the original sound wave or negative pressure wave signal; w i is the i-th group of Gaussian white noise variables, i=1, 2, ..., I; β kk std(r k ), r k is the k-th Remainder, ε k = 0.2;

本实施例中,根据对ICEEMD及IMF近似熵的分析,对实验采集的声波及压力信号进行数据处理,加入200组信噪比为5的高斯噪声,EMD的最大迭代次数选则为500次。In this embodiment, according to the analysis of the approximate entropy of ICEEMD and IMF, data processing is performed on the sound waves and pressure signals collected in the experiment, 200 groups of Gaussian noise with a signal-to-noise ratio of 5 are added, and the maximum number of iterations of EMD is selected as 500 times.

步骤4.1.2:初始化循环参数,令i=1;Step 4.1.2: Initialize cycle parameters, let i=1;

步骤4.1.3:确定信号Xi(t)上的所有极值点,包括局部极大值点与局部极小值点;拟合极值点得到上包络线和下包络线使Xi(t)满足:Step 4.1.3: Determine all extreme points on the signal X i (t), including local maximum points and local minimum points; fit the extreme points to obtain the upper envelope and the lower envelope Let X i (t) satisfy:

步骤4.1.4:计算Xi(t)上下两条包络线的平均值,记为m(t),Step 4.1.4: Calculate the average value of the upper and lower envelopes of Xi (t), denoted as m(t),

步骤4.1.5:用原始Xi(t)信号数据减去平均值m(t)得到函数hi(t),即hi(t)=Xi(t)-m(t);Step 4.1.5: Subtract the average value m(t) from the original Xi (t) signal data to obtain the function hi (t), that is, hi (t)= Xi (t)-m(t);

步骤4.1.6:令Xi(t)=hi(t),判断hi(t)是否满足本征模态函数IMF的两个条件:Step 4.1.6: Set X i (t) = h i (t), and judge whether h i (t) satisfies the two conditions of the intrinsic mode function IMF:

条件1:在任何时间点上,IMF的局部最大值和局部最小值定义的包络的均值必须为零,即对任意的t,有 Condition 1: At any point in time, the mean value of the envelope defined by the local maximum and local minimum of the IMF must be zero, that is, for any t, we have

条件2:在整个数据序列中,极值点的数量和过零点的数量相等或最多相差不多于一个;Condition 2: In the entire data sequence, the number of extreme points and the number of zero-crossing points are equal or at most equal to one;

若满足,则执行步骤4.1.7,否则,返回步骤步骤4.1.3;If satisfied, execute step 4.1.7, otherwise, return to step 4.1.3;

第一个限制条件是保证波形局部对称,第二个限制条件是近似传统的平稳高斯过程的关于窄带的定义;The first constraint is to ensure the local symmetry of the waveform, and the second constraint is to approximate the definition of the narrow band of the traditional stationary Gaussian process;

步骤4.1.7:将hi(t)从X(t)信号中分离出来,即为IMFi分量,得到一个去除高频分量的差值的函数ri(t),即余项ri(t)=X(t)-IMFiStep 4.1.7: Separate hi (t) from the X(t) signal, which is the IMF i component, and obtain a function r i (t) that removes the difference of the high-frequency component, that is, the remainder r i ( t)=X(t)-IMF i ;

第一个从Xi(t)中获得的IMF分量即h1(t),记为IMFi1,i=1、2、…、I,对所有的IMFi1取均值得到IMF1,此时余项为r1=X(t)-IMF1The first IMF component obtained from Xi (t), i.e. h 1 (t), is denoted as IMF i1 , i=1, 2, ..., I, and the mean value of all IMF i1 is obtained to obtain IMF 1 . The term is r 1 =X(t)-IMF 1 ;

步骤4.1.8:判断残余信号ri(t)是否为单调函数的信号,若是,则X(t)不能再分解出IMF分量,完成分解过程,得到各IMF分量,记为IMF1~IMFn,n=i,并得到最后的残余信号为rn(t)=rn-1(t)-hn(t),信号X(t)为n个本征模态函数分量和一个残余项的和,即否则,令X(t)=ri为新的信号,再令i=i+1,返回步骤4.1.3,进行下一次分解。Step 4.1.8: Judging whether the residual signal r i (t) is a signal of a monotone function, if so, then X(t) can no longer be decomposed into IMF components, and the decomposition process is completed to obtain each IMF component, which is recorded as IMF 1 ~ IMF n , n=i, and the final residual signal is r n (t)=rn -1 (t)-h n (t), and the signal X(t) is n eigenmode function components and a residual term the sum of Otherwise, let X(t)=r i be a new signal, and let i=i+1, return to step 4.1.3, and perform the next decomposition.

步骤4.2:计算各本征模态函数分量IMF1~IMFn的近似熵,根据各分量的近似熵判别压力信号X1、X2及声波信号Y11、Y12、Y21、Y22中的噪声信号并滤除,具体过程为:Step 4.2: Calculate the approximate entropy of each eigenmode function component IMF 1 to IMF n , and judge the pressure signals X 1 , X 2 and acoustic wave signals Y 11 , Y 12 , Y 21 , and Y 22 according to the approximate entropy of each component. The noise signal is filtered out, the specific process is:

步骤4.2.1:将第j个本征模态函数中的数据看作有y个点的时间序列,记为{Zj}={Zj1、Zj2、…、Zjy};对于给定阈值a和模式维数g,计算n*n的二值距离矩阵B:Step 4.2.1: Consider the data in the jth eigenmode function as a time series with y points, recorded as {Z j }={Z j1 , Z j2 ,..., Z jy }; for a given Threshold a and pattern dimension g, Calculate the n*n binary distance matrix B:

其中, in,

本实施例中,a取0.1~0.2,g取2。In this embodiment, a is 0.1-0.2, and g is 2.

步骤4.2.2:利用矩阵B的元素brj分别计算小于a的元素数量与距离总数n-g+1和n-g+2的比值,分别记为如下两式所示:Step 4.2.2: Use the elements b rj of matrix B to calculate the ratios of the number of elements less than a to the total number of distances n-g+1 and n-g+2, respectively recorded as and As shown in the following two formulas:

步骤4.2.3:根据计算得到(对Cr取自然对数,再求所有r的平均值),如下两式所示,Step 4.2.3: According to and calculated and ( Take the natural logarithm for C r , and then find the average value of all r), as shown in the following two formulas,

则第j个本征模态函数的近似熵Aj表示为: Then the approximate entropy A j of the jth eigenmode function is expressed as:

步骤4.2.4:将步骤4.2.3得到的近似熵值由大到小排列,对应的近似熵值大于1的IMF分量视为噪声信号进行滤除,对声波信号近似熵为0.486~0.490之间的IMF分量为声波与压力信号的耦合信号,作为干扰信号进行滤除。Step 4.2.4: Arrange the approximate entropy values obtained in step 4.2.3 from large to small, and the corresponding IMF components with approximate entropy values greater than 1 are regarded as noise signals for filtering, and the approximate entropy of the acoustic wave signal is between 0.486 and 0.490 The IMF component is the coupling signal of the sound wave and the pressure signal, which is filtered out as an interference signal.

步骤4.3:去除声波信号中来自上游站及下游站站内的声波干扰,得到二次滤波后的信号,具体过程为:Step 4.3: Remove the acoustic wave interference from the upstream station and downstream station in the acoustic wave signal, and obtain the signal after secondary filtering. The specific process is:

步骤4.3.1:通过步骤4.2得到的二次滤波后的声波信号,判断其各IMF分量到各声波传感器的时间;Step 4.3.1: judge the time from each IMF component to each acoustic wave sensor through the second-filtered acoustic wave signal obtained in step 4.2;

步骤4.3.2:管道首端的外侧声波传感器接受到的时间早于内侧声波传感器接受到的时间的本征模态函数和管道末端的外侧声波传感器接受到的时间早于内侧声波传感器的接受到的时间的本征模态函数为来自上游站及下游站站内的声波干扰,去除这些本征模态函数;Step 4.3.2: The eigenmode function of the time received by the outer acoustic wave sensor at the beginning of the pipe before the time received by the inner acoustic wave sensor and the time received by the outer acoustic wave sensor at the end of the pipe is earlier than that received by the inner acoustic wave sensor The eigenmode function of time is the acoustic wave interference from the upstream station and the downstream station, and these eigenmode functions are removed;

步骤4.3.3:将声波信号对应的剩余的本征模态函数相加得到滤除来自站内噪声的声源信号,即为上游站和下游站的声波传感器的声波信号Y1、Y2Step 4.3.3: Add the remaining eigenmode functions corresponding to the acoustic signals to obtain the acoustic source signals from which the noise in the station is filtered out, which are the acoustic signals Y 1 and Y 2 of the acoustic sensors of the upstream and downstream stations.

本实施例中,正常工况负压波的ICEEMD分解如图5所示,其各IMF分量对应的近似熵如表1所示。由图5和表1可知,在正常工况下,压力信号的IMF1的近似熵为1.2854,而r对信号影响很小且波动幅度很小,因此压力信号可由IMF2-IMF10信号还原,可去除高频噪声及对信号特征提取无用的极低频信号。In this embodiment, the ICEEMD decomposition of the negative pressure wave under normal working conditions is shown in Figure 5, and the approximate entropy corresponding to each IMF component is shown in Table 1. It can be seen from Figure 5 and Table 1 that under normal working conditions, the approximate entropy of IMF1 of the pressure signal is 1.2854, and r has little influence on the signal and the fluctuation range is small, so the pressure signal can be restored by the IMF2-IMF10 signal, and the high High-frequency noise and extremely low-frequency signals that are useless for signal feature extraction.

表1正常工况负压波的IMF函数的近似熵Table 1 Approximate entropy of IMF function of negative pressure wave under normal working conditions

分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy IMF1IMF1 1.28541.2854 IMF5IMF5 0.25620.2562 IMF9IMF9 0.00520.0052 IMF2IMF2 0.85440.8544 IMF6IMF6 0.12750.1275 IMF10IMF10 0.00370.0037 IMF3IMF3 0.62540.6254 IMF7IMF7 0.04260.0426 rr 6.3882*e-4 6.3882*e -4 IMF4IMF4 0.57470.5747 IMF8IMF8 0.02140.0214 -- --

泄漏时负压波的ICEEMD分解如图6所示,其各IMF分量对应的近似熵如表2所示。由图6和表2可知,在泄漏工况下压力信号的IMF1的近似熵为1.7260,IMF2的近似熵为1.1563,这两个分量可以视为高频噪声信号。而IMF11、IMF12和r这三个分量对信号的影响很小,因此压力信号可由IMF3-IMF10信号还原,可去除高频噪声及对信号特征提取无用的极低频信号。压力信号滤波还原后的信号如图7所示,其中,图a为正常工况时压力信号的还原信号,图b为泄漏时压力信号的还原信号。The ICEEMD decomposition of the negative pressure wave during leakage is shown in Figure 6, and the approximate entropy corresponding to each IMF component is shown in Table 2. It can be seen from Figure 6 and Table 2 that the approximate entropy of IMF1 and IMF2 of the pressure signal under leakage conditions is 1.7260 and 1.1563, and these two components can be regarded as high-frequency noise signals. The three components of IMF11, IMF12 and r have little influence on the signal, so the pressure signal can be restored by the IMF3-IMF10 signal, which can remove high-frequency noise and extremely low-frequency signals that are useless for signal feature extraction. The signal after the pressure signal is filtered and restored is shown in Figure 7, where Figure a is the restored signal of the pressure signal under normal working conditions, and Figure b is the restored signal of the pressure signal during leakage.

表2泄漏时负压波的IMF函数的近似熵Table 2 Approximate entropy of IMF function of negative pressure wave during leakage

分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy IMF1IMF1 1.72601.7260 IMF6IMF6 0.07060.0706 IMF11IMF11 0.00040.0004 IMF2IMF2 1.15631.1563 IMF7IMF7 0.04200.0420 IMF12IMF12 7.6097*e-4 7.6097*e -4 IMF3IMF3 0.55790.5579 IMF8IMF8 0.02090.0209 rr 2.3579*e-4 2.3579*e -4 IMF4IMF4 0.28890.2889 IMF9IMF9 0.00180.0018 -- -- IMF5IMF5 0.06220.0622 IMF10IMF10 0.00100.0010 -- --

正常工况时声波信号的ICEEMD分解如图8所示,其各IMF分量对应的近似熵如表3所示。由图8和表3可知,正常工况时声波信号的所有IMF分量的近似熵的值均小于1,且不存在近似熵值极小的分量,因此在正常工况下声波信号可由全部IMF分量信号还原。The ICEEMD decomposition of the acoustic signal under normal working conditions is shown in Figure 8, and the approximate entropy corresponding to each IMF component is shown in Table 3. It can be seen from Fig. 8 and Table 3 that under normal working conditions, the approximate entropy values of all IMF components of the acoustic wave signal are less than 1, and there is no component with a very small approximate entropy value. Therefore, under normal working conditions, the acoustic wave signal can be composed of all IMF components Signal restoration.

表3正常工况时声波信号的IMF函数的近似熵Table 3 Approximate entropy of the IMF function of the acoustic signal under normal working conditions

分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy IMF1IMF1 0.92290.9229 IMF6IMF6 0.20070.2007 IMF11IMF11 0.00570.0057 IMF2IMF2 0.49600.4960 IMF7IMF7 0.09730.0973 IMF12IMF12 0.00140.0014 IMF3IMF3 0.32200.3220 IMF8IMF8 0.04440.0444 rr 0.00360.0036 IMF4IMF4 0.19380.1938 IMF9IMF9 0.02610.0261 -- -- IMF5IMF5 0.21330.2133 IMF10IMF10 0.02030.0203 -- --

泄漏时声波信号的ICEEMD分解如图9所示,其各IMF分量对应的近似熵如表4所示。由图9和表4可知,在泄漏时噪声大量存在,IMF1的近似熵为1.2255,IMF2的近似熵为1.0348,可知IMF1与IMF2为噪声信号,而余量r的近似熵为7.8322*e-4,其对信号的影响很小,因此信号还原时须将IMF1、IMF2和余量r滤除,因此声波信号可由IMF3-IMF11分量信号进行还原。声波信号滤波还原后的信号如图10所示,其中,图a为正常工况时声波信号的还原信号,图b为泄漏时声波信号的还原信号。The ICEEMD decomposition of the acoustic signal during leakage is shown in Figure 9, and the approximate entropy corresponding to each IMF component is shown in Table 4. It can be seen from Figure 9 and Table 4 that there is a large amount of noise during leakage, the approximate entropy of IMF1 is 1.2255, and the approximate entropy of IMF2 is 1.0348. It can be seen that IMF1 and IMF2 are noise signals, and the approximate entropy of the residual r is 7.8322*e -4 , which has little effect on the signal, so IMF1, IMF2 and the margin r must be filtered out when the signal is restored, so the acoustic signal can be restored by the IMF3-IMF11 component signal. The signal after filtering and restoring the acoustic wave signal is shown in Figure 10, where Figure a is the restored signal of the acoustic wave signal under normal working conditions, and Figure b is the restored signal of the acoustic wave signal during leakage.

表4泄漏时声波信号的IMF函数的近似熵Table 4 Approximate entropy of the IMF function of the acoustic wave signal when leaking

分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy 分量号component number 近似熵approximate entropy IMF1IMF1 1.22551.2255 IMF5IMF5 0.48630.4863 IMF9IMF9 0.02140.0214 IMF2IMF2 1.03481.0348 IMF6IMF6 0.25530.2553 IMF10IMF10 0.00680.0068 IMF3IMF3 0.67960.6796 IMF7IMF7 0.12120.1212 IMF11IMF11 0.00600.0060 IMF4IMF4 0.57230.5723 IMF8IMF8 0.04800.0480 rr 7.8322*e-4 7.8322*e -4

步骤5:对二次滤波后的信号进行标准差法无量纲化处理,通过采集的历史压力及声波数据,训练半监督费舍尔判别,分别得到属于正常工况信号、大泄漏信号、小泄露信号和工况调整信号这四种工况情况的数据库;Step 5: Carry out standard deviation method dimensionless processing on the signal after secondary filtering, and train semi-supervised Fisher discrimination through the collected historical pressure and acoustic wave data, and obtain signals belonging to normal working conditions, large leak signals, and small leaks respectively The database of the four working conditions of the signal and the working condition adjustment signal;

基于核费舍尔判别分析并依据半监督学习方法的理念,通过学习与分析历史的泄露发生时的数据库来判断今后上位机监测到波形异常时,是否是真的发生泄漏。具体过程如下:Based on the nuclear Fisher discriminant analysis and the concept of semi-supervised learning method, by learning and analyzing the database when the historical leakage occurs, it can be judged whether the leakage is really occurred when the host computer monitors the abnormal waveform in the future. The specific process is as follows:

步骤5.1:将步骤4二次滤波后的数据进行标准差法无量纲化处理,组合为测量矩阵XL;为保证声波信号和压力信号的时间一致性,需要对压力信号进行扩充,在每个压力信号之间插入m个数值等于上一个时间点的压力数据值的点, 四舍五入的整数即为m,其中:f1为声波信号的频率,f2为压力信号的频率;Step 5.1: The data after the secondary filtering in step 4 is subjected to dimensionless processing by the standard deviation method, and combined into a measurement matrix X L ; in order to ensure the time consistency of the acoustic wave signal and the pressure signal, the pressure signal needs to be expanded, and in each Insert m points whose value is equal to the pressure data value of the previous time point between the pressure signals, The rounded integer is m, where: f 1 is the frequency of the sound wave signal, and f 2 is the frequency of the pressure signal;

步骤5.2:测量矩阵XL=[x1,x2,x3,…xN],其中包括正常输油信号、小泄漏信号、大泄漏信号和工况干扰信号,第k种类别中包含nk个样本,k=1,2,3,4;n1+n2+n3+n4=N;Step 5.2: Measurement matrix X L =[x 1 , x 2 , x 3 ,...x N ], which includes normal oil delivery signal, small leakage signal, large leakage signal and working condition interference signal, and the kth category contains n k samples, k=1, 2, 3, 4; n 1 +n 2 +n 3 +n 4 =N;

定义Sb为类间散度矩阵,Sw为类内散度矩阵,分别如下两式所示:Define S b as the between-class scatter matrix and S w as the intra-class scatter matrix, as shown in the following two formulas:

其中,权值矩阵W(b)与W(w)分别定义为:Among them, the weight matrix W (b) and W (w) are defined as:

其中,Ck表示类别数k的集合,Ck={1,2,3,4};Among them, C k represents the set of category number k, C k = {1, 2, 3, 4};

定义St为全局散度矩阵,其中, Define S t as the global scatter matrix, in,

步骤5.3:令其中I为单位对角矩阵,则半监督费舍尔优化判别向量通过下式得出:Step 5.3: Order Where I is the unit diagonal matrix, the semi-supervised Fisher optimization discriminant vector is obtained by the following formula:

其中,J为最大评分参量,p为不等于0的任意常数,P为负载矩阵;Among them, J is the maximum scoring parameter, p is any constant not equal to 0, and P is the load matrix;

上式等价为Srbq=λSrwq,其中λ是广义特征值,q是对应的广义特征向量;The above formula is equivalent to S rb q=λS rw q, where λ is the generalized eigenvalue, and q is the corresponding generalized eigenvector;

将所求得的广义特征值降序排列为λ1≥λ2≥…≥λN,相应广义特征向量为q1,q2,…,qN,向量q1,q2,…,qN即为半监督费舍尔优化判别向量,其分类能力也依次减弱;本实施例中考虑到计算速度问题,只取用前四项,即N=4;Arrange the obtained generalized eigenvalues in descending order as λ 1 ≥λ 2 ≥…≥λ N , the corresponding generalized eigenvectors are q 1 , q 2 ,…,q N , and the vectors q 1 , q 2 ,…,q N are Optimizing the discriminant vector for the semi-supervised Fisher, its classification ability also weakens successively; In this embodiment, considering the calculation speed problem, only the first four items are used, i.e. N=4;

通常情况下,正常工况下的数据可假设是满足多变量高斯分布,泄漏数据也可以认为是满足高斯分布的。假设样本属于每一类的先验概率相等,为K为类别总数,则标签样本的条件概率密度函数如下式所示:Usually, the data under normal working conditions can be assumed to satisfy the multivariate Gaussian distribution, and the leakage data can also be considered to satisfy the Gaussian distribution. Assuming that the prior probability of the sample belonging to each class is equal, it is K is the total number of categories, then the label sample The conditional probability density function of is as follows:

其中,Qr=[q1,q2,…,qr]为前r个费舍尔判别特征向量,Qr所张成的空间为r维的半监督费舍尔判别子空间,是Ck类样本的均值向量;Among them, Q r =[q 1 , q 2 ,...,q r ] are the first r Fisher discriminant feature vectors, and the space formed by Q r is r-dimensional semi-supervised Fisher discriminant subspace, is the mean vector of samples of class C k ;

根据贝叶斯准则,属于第i类型的后验概率计算公式为:According to Bayesian rule, The formula for calculating the posterior probability of belonging to the i-th type is:

半督费舍尔判别函数的定义为The half-doctor Fisher discriminant function is defined as

表示测试数据集中任意样本属于训练集中第k个分类的判别函数值;那么,测试集中的每一个样本点属于第k个类别的判别值,可由上式计算得到; Represents any sample in the test data set belongs to the discriminant function value of the kth classification in the training set; then, each sample point in the test set The discriminant value belonging to the kth category can be calculated by the above formula;

依据下式所示的泄漏分类准则,预测测试集中的每一个测试样本为正常输油信号、大泄漏信号、小泄漏信号或工况干扰信号:Predict each test sample in the test set according to the leakage classification criterion shown in the following formula For normal oil delivery signal, large leakage signal, small leakage signal or working condition interference signal:

步骤5.4:利用历史数据中的正常工况信号、大泄漏信号、小泄露信号和工况干扰信号分别训练步骤5.3得到的数学模型,得到正常工况信号、大泄漏信号、小泄露信号和工况干扰信号对应的建立管道泄漏检测的数据库。Step 5.4: Use the normal working condition signal, large leakage signal, small leakage signal and working condition interference signal in the historical data to train the mathematical model obtained in step 5.3 respectively, and obtain the normal working condition signal, large leakage signal, small leakage signal and working condition Corresponding to the interference signal Build a database for pipeline leak detection.

步骤6:实时采集管道压力及声波数据,通过预处理及步骤4所述的二次滤波方法进行二次滤波后,以秒为单位,送入步骤5训练得到的半监督费舍尔判别模型,根据得到的特征向量与建立的管道泄漏检测的数据库进行比对,计算两者之间的相似程度,如下所示:Step 6: Collect pipeline pressure and acoustic wave data in real time, perform secondary filtering through preprocessing and the secondary filtering method described in step 4, and send it to the semi-supervised Fisher discriminant model obtained in step 5 training in seconds, According to the comparison between the obtained feature vector and the established pipeline leak detection database, the degree of similarity between the two is calculated, as follows:

式中,Sk为相似度,C(x)new为新采集的数据,为第k种类型的测试样本,为k类样本的一个集合,为所有测试样本的一个集合;In the formula, S k is the similarity, C(x) new is the newly collected data, is the test sample of the kth type, is a set of k samples, is a set of all test samples;

若Si≥0.85,则当前数据为第k类数据;否则,当前数据与数据库中的任一特征向量的相似度都小于该阈值0.85,则很可能是一个新的未被辨识的故障,结合现场状况的实际分析及人为诊断确定故障的类型,并将其收入管道泄漏检测的数据库中。If S i ≥ 0.85, the current data is the kth type of data; otherwise, if the similarity between the current data and any feature vector in the database is less than the threshold 0.85, it is likely to be a new unidentified fault. The actual analysis of on-site conditions and human diagnosis determine the type of fault and store it in the database of pipeline leak detection.

步骤7:根据相似程度确定实时数据的故障类型,若判定为大泄漏信号或小泄漏信号时,则通过压力信号和声波信号混合计算泄漏点位置,对管道泄漏进行定位,否则返回步骤6,继续实时监测。Step 7: Determine the fault type of the real-time data according to the degree of similarity. If it is determined to be a large leak signal or a small leak signal, calculate the position of the leak point by mixing the pressure signal and the acoustic wave signal, and locate the pipeline leak. Otherwise, return to step 6 and continue real-time monitoring.

对管道泄露进行定位的具体过程为:The specific process of locating pipeline leaks is as follows:

步骤7.1:根据上游站和下游站压力传感器的时间差值计算泄漏点,如下式所示,Step 7.1: Calculate the leak point according to the time difference of the pressure sensors of the upstream station and the downstream station, as shown in the following formula,

式中,Z1为泄漏点到上游站压力传感器的距离;l1为管线上下游站压力传感器之间的距离;τ1为负压波传到上下游压力传感器的时差;v1为负压波在管线内的传播速度;In the formula, Z 1 is the distance from the leakage point to the pressure sensor of the upstream station; l 1 is the distance between the pressure sensors of the upstream and downstream stations on the pipeline; τ 1 is the time difference between the negative pressure wave and the upstream and downstream pressure sensors; v 1 is the negative pressure The propagation velocity of the wave in the pipeline;

步骤7.2:在泄漏点的上游站及下游站各选取泄漏发生点前30秒的压力数据均值和泄漏点后15秒的压力数据均值,计算上下游站压力变化比,分别如下两式所示,Step 7.2: Select the average value of the pressure data 30 seconds before the leakage point and the average value of the pressure data 15 seconds after the leakage point at the upstream station and the downstream station of the leakage point, and calculate the pressure change ratio of the upstream and downstream stations, as shown in the following two formulas respectively,

其中:δ1、δ2分别为上游站和下游站的压力变化比;X1+、X2+分别为泄漏发生点前30秒上游站和下游站的压力数据均值;X1-、X2-分别为泄漏发生点后15秒上游站和下游站的压力数据均值;Among them: δ 1 , δ 2 are the pressure change ratios of the upstream station and the downstream station respectively; X 1+ , X 2+ are the average pressure data values of the upstream station and the downstream station 30 seconds before the leakage occurs; X 1- , X 2 - mean values of the pressure data of the upstream station and downstream station 15 seconds after the leak occurred;

则管道泄漏时总压力变化比δp为:其中,μ为由现场管道长度和正常输送管道压力大小确定的参数;Then the total pressure change ratio δ p when the pipeline leaks is: Among them, μ is a parameter determined by the length of the on-site pipeline and the pressure of the normal delivery pipeline;

步骤7.3:对声波的特征值在上游站及下游站的时间差值,计算泄漏点。如下式所示,Step 7.3: Calculate the leakage point for the time difference between the characteristic value of the sound wave at the upstream station and the downstream station. As shown in the following formula,

式中,Z2为泄漏点到上游站声波传感器的距离;l2为管线上下游站声波传感器之间的距离;τ2为声波传到上下游声波传感器的时差;v2为声波在管线内的传播速度;In the formula, Z 2 is the distance from the leak point to the acoustic wave sensor of the upstream station; l 2 is the distance between the acoustic wave sensors of the upstream and downstream stations on the pipeline; τ 2 is the time difference between the sound wave transmitted to the upstream and downstream acoustic wave sensors; v2 is the time difference of the sound wave in the pipeline transmission speed;

步骤7.4:在泄漏点的上游站及下游站各选取泄漏发生点前5秒的声波数据均值和泄漏点后3秒的声波数据均值,计算上下游站声波变化比,分别如下两式所示,Step 7.4: At the upstream station and downstream station of the leakage point, select the average value of the acoustic wave data 5 seconds before the leakage point and the average value of the acoustic wave data 3 seconds after the leakage point, and calculate the acoustic wave change ratio of the upstream and downstream stations, respectively, as shown in the following two formulas,

其中,δ3、δ4分别为上游站和下游站的声波变化比;Y1+、Y2+分别为泄漏发生点前5秒上游站和下游站的声波数据均值;Y1-、Y2-分别为泄漏发生点后3秒上游站和下游站的声波数据均值;Among them, δ 3 , δ 4 are the acoustic wave change ratios of the upstream station and the downstream station respectively; Y 1+ , Y 2+ are the average values of the acoustic wave data of the upstream station and the downstream station 5 seconds before the leakage point; Y 1- , Y 2 - mean values of the acoustic wave data of the upstream station and downstream station 3 seconds after the leak occurred;

则管道泄漏时总声波变化比δs为: Then the total acoustic wave change ratio δ s when the pipeline leaks is:

步骤7.5:为屏蔽大泄漏时声波定位精度差,小泄漏时负压波定位精度差的问题,根据泄漏点到上游站压力传感器的最终距离为Step 7.5: In order to shield the problem of poor positioning accuracy of acoustic waves during large leaks and poor positioning accuracy of negative pressure waves during small leaks, the final distance from the leak point to the pressure sensor of the upstream station is

其中,T为声波的周期。Among them, T is the period of the sound wave.

一个用压力波判断与计算泄漏点,一个用声波判断与计算泄漏点,两种波混合判断得出的结果更准确。One uses pressure waves to judge and calculate leak points, and the other uses sound waves to judge and calculate leak points. The results obtained by mixing the two waves are more accurate.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求所限定的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope defined by the claims of the present invention.

Claims (8)

1. The utility model provides a pipeline leakage monitoring system based on mixed monitoring of sound wave negative pressure wave which characterized in that: the system comprises a pressure sensor, an acoustic wave sensor, a lower computer, a switch and an upper computer;
the pressure sensors are respectively arranged at the head end and the tail end of the pipeline and are in contact with a conveying medium, and the pressure sensors are used for acquiring high-precision data reflecting the pressure of the pipeline in real time; the sound wave sensors are respectively arranged at the head end and the tail end of the pipeline, are arranged at two sides of the pressure sensors at the head end and the tail end and are used for acquiring high-speed data reflecting sound waves of the pipeline in real time; the distance between the two sound wave sensors at the head end or the tail end is not less than 20Tv, T is the period of the sound wave, and v is the propagation speed of the sound wave in the pipeline;
the lower computer, the exchanger and the upper computer are respectively provided with a group at the head end and the tail end of the pipeline, the pressure sensor and the sound wave sensor are both connected with the lower computer at the corresponding end, and the lower computer is connected with the upper computer at the corresponding end through a network cable and the exchanger;
the lower computer is programmed to perform the steps of: controlling a pressure sensor and an acoustic wave sensor at a corresponding end to acquire pressure and acoustic wave data, and preprocessing the acquired data, including filtering and timestamp according to GPS acquisition time; packaging the preprocessed data, sending the data to an upper computer through a switch, and storing the data into an SD card of a lower computer for backup;
the upper computer comprises a leakage monitoring program executable by a computer, and specifically comprises: the device comprises a pressure and sound wave data integration storage module, a data processing module and a pipeline leakage monitoring module;
the pressure and sound wave data integration storage module is used for receiving and analyzing pressure and sound wave data transmitted by the lower computer, storing the pressure and sound wave data according to data detection time, and combining one group of pressure data and two groups of sound wave data at one end of each pipeline into a third-order matrix;
the data processing module is used for acquiring data from the pressure and sound wave data integration storage module for processing and calculating, including secondary filtering, dimensionless processing and semi-supervised Fisher discrimination processing of the data, so as to obtain a data processing and calculating result; in the secondary filtering processing of data, decomposing the sound wave and negative pressure wave signals by adopting an improved complete ensemble empirical mode decomposition ICEEMD, filtering noise in the sound wave and negative pressure wave signals according to the approximate entropy of each decomposed component, and removing sound wave interference signals to obtain final filtered signals; training semi-supervised Fisher discrimination through collected historical pressure and sound wave data in the non-dimensionalization processing of the secondarily filtered data to respectively obtain databases belonging to four working condition conditions of a normal working condition signal, a large leakage signal, a small leakage signal and a working condition adjusting signal;
and the pipeline leakage monitoring module is used for judging whether the pipeline leaks according to the data processing and calculating results of the pressure and sound wave data integration module and the data processing module by utilizing real-time data of pressure and sound waves, and calculating the leakage distance by mixing a pressure signal and a sound wave signal when a large leakage signal or a small leakage signal is judged, so as to position a pipeline leakage point.
2. A pipeline leakage monitoring method based on sound wave negative pressure wave hybrid monitoring is realized by adopting the pipeline leakage monitoring system based on sound wave negative pressure wave hybrid monitoring as claimed in claim 1, and is characterized in that: the method comprises the following steps:
step 1: the head end and tail end lower computers of the pipeline control corresponding pressure sensors and sound wave sensors to acquire pipeline pressure and sound wave data, including pressure dataAnd acoustic dataAnd filtering the collected data to obtain a filtered pressure signal X1、X2And acoustic signal Y11、Y12、Y21、Y22(ii) a The lower computer carries out time stamping on the filtered pressure and sound wave signals through time data acquired by a GPS (global positioning system) every second;
step 2: the lower computer packs and sends the filtered and time-stamped pressure and sound wave real-time signals to the upper computer, and simultaneously stores the signals into an SD card of the lower computer for backup;
and step 3: the upper computer receives data sent by the lower computer, determines a required data packet by identifying a packet head and a packet tail of the data packet, analyzes a data type and a data value in the data packet, and finally stores the data type and the data value in a database of the upper computer;
and 4, step 4: the upper computer carries out secondary filtering processing on the received data, and the method comprises the following steps:
step 4.1: decomposing the sound wave and negative pressure wave signals by adopting Improved Complete Ensemble Empirical Mode Decomposition (ICEEMD) to obtain each decomposed intrinsic mode function component;
step 4.2: calculating the approximate entropy of each intrinsic mode function component, and judging the pressure signal X according to the approximate entropy of each component1、X2And acoustic signal Y11、Y12、Y21、Y22Filtering out the noise signal;
step 4.3: removing sound wave interference from an upstream station and a downstream station in the sound wave signals to obtain signals after secondary filtering;
and 5: carrying out standard deviation method non-dimensionalization processing on the secondarily filtered signals, training semi-supervised Fisher discrimination through collected historical pressure and sound wave data, and respectively obtaining databases belonging to four working condition conditions of normal working condition signals, large leakage signals, small leakage signals and working condition adjustment signals;
step 6: acquiring pipeline pressure and sound wave data in real time, sending the data into a semi-supervised Fisher discrimination model obtained by training in the step 5 by taking seconds as a unit after secondary filtering is carried out by a preprocessing and secondary filtering method in the step 4, comparing the obtained characteristic vector with the established database of four working condition conditions, and calculating the similarity degree between the characteristic vector and the database;
and 7: and (4) determining the fault type of the real-time data according to the similarity, if the fault type is judged to be a large leakage signal or a small leakage signal, calculating the position of a leakage point by mixing a pressure signal and a sound wave signal, positioning the pipeline leakage, and otherwise, returning to the step 6 to continue real-time monitoring.
3. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the specific process of decomposing the sound wave and the negative pressure wave signals by adopting the improved complete ensemble empirical mode decomposition in the step 4.1 is as follows:
step 4.1.1: adding I groups of white Gaussian noises to the signal X (t) to generate I new signals, wherein the ith new signal is Xi(t)=X(t)+βkwi(ii) a Wherein, X (t) is an acoustic wave or negative pressure wave signal; w is aiIs the white Gaussian noise variable of the ith group, I is 1, 2, … and I, βk=εkstd(rk),rkIs the kth remainder, εk=0.2;
Step 4.1.2: initializing cycle parameters, and enabling i to be 1;
step 4.1.3: determining a signal Xi(t) all extreme points on the surface, including local maximum points and local minimum points; fitting extreme points to obtain an upper envelope lineAnd a lower envelopeLet Xi(t) satisfies:
step 4.1.4: calculating Xi(t) the average of the upper and lower envelopes, denoted m (t),
step 4.1.5: by the original Xi(t) subtracting the mean value m (t) from the signal data to obtain a function hi(t), i.e. hi(t)=Xi(t)-m(t);
Step 4.1.6: let Xi(t)=hi(t), judgment of hi(t) whether two conditions of the intrinsic mode function IMF are satisfied:
condition 1: at any point in time, the mean of the envelopes defined by the local maxima and minima of the IMF must be zero, i.e. for any t, there is
Condition 2: the number of extreme points and the number of zero-crossing points are equal or differ by no more than one at most in the entire data sequence;
if yes, executing the step 4.1.7, otherwise, returning to the step 4.1.3;
step 4.1.7: h is to bei(t) is separated from the X (t) signal, i.e. IMFiComponent, obtaining a function r of the difference value of the removed high frequency componenti(t), i.e. remainder ri(t)=X(t)-IMFi
Step 4.1.8: determining the residual signal ri(t) whether it is a signal of monotonic function, if so, X (t) can not be decomposed again to obtain IMF components, and the decomposition process is completed to obtain each IMF component, which is marked as IMF1~IMFnN ═ i, and the final residual signal obtained is rn(t)=rn-1(t)-hn(t), the signal X (t) being the sum of n eigenmode function components and a residual term, i.e.Otherwise, let X (t) riAnd (4) returning to the step 4.1.3 for the next decomposition, wherein the new signal is i + 1.
4. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the specific process of calculating the approximate entropy of each eigenmode function component in step 4.2 is as follows:
step 4.2.1: regarding the data in the jth eigenmode function as a time sequence of y points, which is denoted as { Zj}={Zj1、Zj2、…、Zjy}; for a given threshold a and mode dimension g,calculating a binary distance matrix B of n x n:
wherein,
step 4.2.2: using the elements B of the matrix BrjRespectively calculating the ratio of the number of elements less than a to the total distance n-g +1 and n-g +2, and respectively recording the ratioAndthe following two formulas are shown:
step 4.2.3: according toAndis calculated to obtainAndas shown in the following two formulas,
the approximate entropy A of the jth eigenmode functionjExpressed as:
step 4.2.4: and arranging the obtained approximate entropy values from large to small, taking the corresponding IMF component with the approximate entropy value larger than 1 as a noise signal for filtering, and taking the IMF component with the approximate entropy of the sound wave signal between 0.486-0.490 as a coupling signal of the sound wave and the pressure signal as an interference signal for filtering.
5. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the specific process of removing the acoustic wave interference from the upstream station and the downstream station in the acoustic wave signal in the step 4.3 is as follows:
step 4.3.1: judging the time from each IMF component to each acoustic wave sensor through the acoustic wave signal obtained in the step 4.2 after secondary filtering;
step 4.3.2: the intrinsic mode functions received by the outer sound wave sensor at the head end of the pipeline earlier than the time received by the inner sound wave sensor and the intrinsic mode functions received by the outer sound wave sensor at the tail end of the pipeline earlier than the time received by the inner sound wave sensor are sound wave interference from an upstream station and a downstream station, and the intrinsic mode functions are removed;
step 4.3.3: adding the residual intrinsic mode functions corresponding to the sound wave signals to obtain sound source signals with noise from the stations filtered, namely the sound wave signals Y of the sound wave sensors of the upstream station and the downstream station1、Y2
6. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the specific process of the step 5 is as follows:
step 5.1: carrying out standard deviation method dimensionless processing on the data subjected to the secondary filtering in the step 4, and combining the data into a measurement matrix XL(ii) a The points where m values are equal to the pressure data value at the previous point in time are inserted between each pressure signal, rounded integers are m, where: f. of1Is the frequency of the acoustic signal, f2Is the frequency of the pressure signal;
step 5.2: measurement matrix XL=[x1,x2,x3,…xN]The k category includes nkSamples, k ═ 1, 2, 3, 4; n is1+n2+n3+n4=N;
Definition of SbIs an inter-class divergence matrix, SwThe matrix is an intra-class divergence matrix and is respectively shown as the following two formulas:
wherein, the weight matrix W(b)And W(w)Are respectively defined as:
wherein, CkRepresenting a set of class numbers k, Ck={1,2,3,4};
Definition of StIn the form of a global divergence matrix, the divergence matrix,wherein,
step 5.3: order toWherein I is a unit diagonal matrix, the semi-supervised Fisher optimization discrimination vector is obtained by the following formula:
wherein J is a maximum scoring parameter, P is an arbitrary constant not equal to 0, and P is a load matrix;
the above formula is equivalent to Srbq=λSrwq, where λ is the generalized eigenvalue and q is the corresponding generalized eigenvector;
arranging the obtained generalized eigenvalues in descending order as lambda1≥λ2≥…≥λNThe corresponding generalized eigenvector is q1,q2,…,qNVector q1,q2,…,qNNamely, the semi-supervised Fisher optimization discrimination vector is obtained, and the classification capability of the vector is weakened in sequence;
assuming that the prior probabilities of samples belonging to each class are equal, areK is the total number of categories, then the sample is labeledThe conditional probability density function of (a) is shown as:
wherein Q isr=[q1,q2,…,qr]Discriminating the feature vector, Q, for the first r FisherrThe spanned space is a semi-supervised fisher discrimination subspace of r dimension,is CkMean vector of class samples;
according to the Bayesian criterion, the method comprises the following steps of,the posterior probability calculation formula belonging to the i-th type is:
the half-Du Fisher discriminant function is defined as
Representing arbitrary samples in a test datasetA discriminant function value belonging to the kth class in the training set;
predicting each test sample in the test set according to a leak classification criterion as shown belowNormal oil transportation signal, large leakage signal, small leakage signal or working condition interference signal:
step 5.4: respectively training the mathematical models obtained in the step 5.3 by using the normal working condition signal, the large leakage signal, the small leakage signal and the working condition interference signal in the historical data to obtain the corresponding mathematical models of the normal working condition signal, the large leakage signal, the small leakage signal and the working condition interference signalAnd establishing a database of pipeline leakage detection.
7. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the calculation formula of the similarity degree in the step 6 is as follows:
in the formula, SkFor similarity, C (x)newIn order for the data to be newly acquired,for the test sample of the k-th type,for a set of samples of the k-class,a set of all test samples;
if SiIf 0.85, the current data is the kth class data; otherwise, the type of the fault is determined by combining the actual analysis of the field condition and the artificial diagnosis, and the fault is collected into a database for detecting the pipeline leakage.
8. The pipeline leakage monitoring method based on the acoustic wave negative pressure wave hybrid monitoring is characterized in that: the specific process of positioning the pipeline leakage in the step 7 is as follows:
step 7.1: the leak point is calculated from the difference in time between the upstream and downstream station pressure sensors, as shown,
in the formula, Z1Distance from the leak point to the upstream station pressure sensor; l1The distance between the pressure sensors of the upstream and downstream stations of the pipeline; tau is1The time difference of the negative pressure wave transmitted to the upstream and downstream pressure sensors; v. of1The propagation speed of the negative pressure wave in the pipeline;
step 7.2: the pressure data mean value 30 seconds before the leakage point and the pressure data mean value 15 seconds after the leakage point are respectively selected at the upstream station and the downstream station of the leakage point, the pressure change ratio of the upstream station and the downstream station is calculated, and the pressure change ratio is respectively shown as the following two formulas,
wherein: delta1、δ2The pressure change ratio of the upstream station and the downstream station, respectively; x1+、X2+The pressure data mean values of an upstream station and a downstream station 30 seconds before the leakage occurrence point are respectively obtained; x1-、X2-Respectively mean values of pressure data of an upstream station and a downstream station 15 seconds after a leakage occurrence point;
the total pressure change ratio delta at the time of pipeline leakagepComprises the following steps:wherein mu is a parameter determined by the length of the on-site pipeline and the pressure of the normal conveying pipeline;
step 7.3: calculating the leakage point according to the time difference between the upstream station and the downstream station of the characteristic value of the sound wave, as shown in the following formula,
in the formula, Z2The distance from the leakage point to the acoustic wave sensor of the upstream station; l2The distance between the acoustic wave sensors of the upstream and downstream stations of the pipeline; tau is2The time difference of the sound wave transmitted to the upstream and downstream sound wave sensors; v. of2The propagation speed of sound waves in the pipeline;
step 7.4: respectively selecting the mean value of sound wave data 5 seconds before the leakage point and the mean value of sound wave data 3 seconds after the leakage point at the upstream station and the downstream station of the leakage point, calculating the sound wave change ratio of the upstream station and the downstream station, respectively as shown in the following two formulas,
wherein, delta3、δ4The acoustic wave change ratios of the upstream station and the downstream station, respectively; y is1+、Y2+Respectively mean values of sound wave data of an upstream station and a downstream station 5 seconds before a leakage occurrence point; y is1-、Y2-Respectively mean values of sound wave data of an upstream station and a downstream station 3 seconds after a leakage occurrence point;
the total sound wave change ratio delta at the time of pipeline leakagesComprises the following steps:
step 7.5: based on the final distance of the leak from the upstream station pressure sensor
Where T is the period of the acoustic wave.
CN201810260988.3A 2018-03-28 2018-03-28 Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring Active CN108488638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810260988.3A CN108488638B (en) 2018-03-28 2018-03-28 Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810260988.3A CN108488638B (en) 2018-03-28 2018-03-28 Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring

Publications (2)

Publication Number Publication Date
CN108488638A true CN108488638A (en) 2018-09-04
CN108488638B CN108488638B (en) 2019-08-20

Family

ID=63316736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810260988.3A Active CN108488638B (en) 2018-03-28 2018-03-28 Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring

Country Status (1)

Country Link
CN (1) CN108488638B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109058771A (en) * 2018-10-09 2018-12-21 东北大学 Pipeline Anomaly Detection Method Based on Sample Generation and Interval Markov Features
CN109115884A (en) * 2018-09-27 2019-01-01 广州市建筑科学研究院有限公司 A kind of foundation pile integrity detection system based on sound wave transmission method
CN109506135A (en) * 2018-11-06 2019-03-22 三川智慧科技股份有限公司 Pipe leakage independent positioning method and device
CN109555977A (en) * 2018-11-23 2019-04-02 水联网技术服务中心(北京)有限公司 The equipment and recognition methods of leak noise measuring
CN109556797A (en) * 2018-11-19 2019-04-02 浙江工业大学 The pipeline leakage detection and location method with convolutional neural networks is decomposed based on spline local mean value
CN110529746A (en) * 2019-09-05 2019-12-03 北京化工大学 Detection method, device and the equipment of pipe leakage
CN111062127A (en) * 2019-12-16 2020-04-24 辽宁石油化工大学 Pipeline leak detection method and device, storage medium and terminal
CN112161755A (en) * 2020-08-12 2021-01-01 苏州聆听智能科技有限公司 Buried pipeline detection method and device, heterogeneous sensor array and storage medium
CN112483910A (en) * 2020-12-04 2021-03-12 常州大学 Gas-liquid two-phase flow pipeline leakage simulation device based on sound-pressure coupling
CN112632872A (en) * 2020-12-31 2021-04-09 浙江航天恒嘉数据科技有限公司 Method and system for calculating mass flux of leakage part of gas pipeline and storage medium
CN113188055A (en) * 2021-05-31 2021-07-30 东北大学 Pipeline leakage self-adaptive dynamic compensation positioning method based on negative pressure wave attenuation driving
CN113719764A (en) * 2021-08-04 2021-11-30 中国人民解放军陆军勤务学院 Pipeline leakage detection method
CN114877262A (en) * 2022-04-20 2022-08-09 成都千嘉科技股份有限公司 Acoustic emission detection method based on AI chip gas pipeline leakage
CN114998528A (en) * 2022-06-27 2022-09-02 西安热工研究院有限公司 Pipeline leakage detection system and method based on nano robot technology
CN115267790A (en) * 2022-07-13 2022-11-01 中交第二公路勘察设计研究院有限公司 An intelligent positioning method for gas pipeline detection based on acoustic vibration technology
CN115935241A (en) * 2023-01-09 2023-04-07 国机传感科技有限公司 Real-time positioning method and device for pipe cleaner with multi-parameter mutual fusion
CN116123461A (en) * 2022-12-21 2023-05-16 东北大学 Energy source conveying monitoring system and method based on multiple acoustic wave sensors and sparse representation
CN116357901A (en) * 2023-02-09 2023-06-30 河南省水利第一工程局集团有限公司 A water conservancy engineering pipeline leak-proof detection system and method thereof
CN117053124A (en) * 2023-09-26 2023-11-14 辽宁石油化工大学 Method and device for detecting leakage of oil-gas branch pipeline
CN117053129A (en) * 2023-10-12 2023-11-14 山西瑞赛科环保科技有限公司 Safety risk early warning platform and method for liquid chlorine, electronic equipment and medium
CN117167667A (en) * 2023-09-14 2023-12-05 河南晋控天庆煤化工有限责任公司 Protection system and protection method for automatic regulation and control of pipeline flow
CN117628417A (en) * 2024-01-25 2024-03-01 深圳市晶湖科技有限公司 Intelligent safety control system for gas field
JP2024035792A (en) * 2022-09-02 2024-03-14 Jfeスチール株式会社 Valve opening determination method, valve opening determination device, and computer program in pipeline network
CN118133053A (en) * 2024-05-08 2024-06-04 山东瑞福锂业有限公司 Industrial data collecting and processing system and method
CN118391606A (en) * 2024-04-26 2024-07-26 江西圣杰市政工程有限公司 Pipeline trenchless inspection method based on acoustic wave data
CN118502336A (en) * 2024-07-19 2024-08-16 河北道成电子科技有限公司 Load supervision system of Internet of things water management network
EP4450941A1 (en) * 2023-04-20 2024-10-23 Siemens Aktiengesellschaft System and method for detecting and locating a leak in a pipeline
CN118961900A (en) * 2024-08-20 2024-11-15 四川速聚智联科技有限公司 A monitoring system and method for infrasonic wave detection of pipeline pigging operations
CN119761946A (en) * 2025-03-06 2025-04-04 江苏胜江海运有限公司 Petrochemical logistics storage and transportation safety monitoring method and system based on Internet of things

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3992600B1 (en) * 2020-11-02 2023-02-15 Tata Consultancy Services Limited Method and system for inspecting and detecting fluid in a pipeline

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968162A (en) * 2010-09-30 2011-02-09 东北大学 Pipeline leakage positioning system and method based on collaborative detection with negative pressure wave and sound wave
CN203147291U (en) * 2013-03-27 2013-08-21 黄鹏 System capable of monitoring pipeline leakage by means of infrasonic waves, flow balance and negative pressure waves
CN103438359A (en) * 2013-08-06 2013-12-11 毛振刚 Oil pipeline leakage detection and positioning system
CN203477909U (en) * 2013-11-07 2014-03-12 李文杰 Pipeline leakage automatic monitoring positioning device based on low-frequency sound waves and negative-pressure waves
CN105156905A (en) * 2015-07-09 2015-12-16 南京声宏毅霆网络科技有限公司 Leakage monitoring system, method and device for pipeline and server
CN105840987A (en) * 2016-04-25 2016-08-10 北京宏信环科科技发展有限公司 Pipeline leakage weighted positioning method and device based on pressure waves and sound waves
CN106523928A (en) * 2016-11-24 2017-03-22 东北大学 Pipeline leakage detection device and method based on secondary screening of sound wave real-time data
CN107218518A (en) * 2017-04-17 2017-09-29 昆明理工大学 A kind of detection method of detection means for drain line blockage failure

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968162A (en) * 2010-09-30 2011-02-09 东北大学 Pipeline leakage positioning system and method based on collaborative detection with negative pressure wave and sound wave
CN203147291U (en) * 2013-03-27 2013-08-21 黄鹏 System capable of monitoring pipeline leakage by means of infrasonic waves, flow balance and negative pressure waves
CN103438359A (en) * 2013-08-06 2013-12-11 毛振刚 Oil pipeline leakage detection and positioning system
CN203477909U (en) * 2013-11-07 2014-03-12 李文杰 Pipeline leakage automatic monitoring positioning device based on low-frequency sound waves and negative-pressure waves
CN105156905A (en) * 2015-07-09 2015-12-16 南京声宏毅霆网络科技有限公司 Leakage monitoring system, method and device for pipeline and server
CN105840987A (en) * 2016-04-25 2016-08-10 北京宏信环科科技发展有限公司 Pipeline leakage weighted positioning method and device based on pressure waves and sound waves
CN106523928A (en) * 2016-11-24 2017-03-22 东北大学 Pipeline leakage detection device and method based on secondary screening of sound wave real-time data
CN107218518A (en) * 2017-04-17 2017-09-29 昆明理工大学 A kind of detection method of detection means for drain line blockage failure

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
任娇等: "基于负压波和音波的成品油管道泄漏定位综合分析", 《当代化工》 *
李文杰: "基于低频声波和负压波的管道泄漏监测系统", 《油气田地面工程》 *
马大中等: "一种基于多传感器信息融合的故障诊断方法", 《智能系统学报》 *

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109115884A (en) * 2018-09-27 2019-01-01 广州市建筑科学研究院有限公司 A kind of foundation pile integrity detection system based on sound wave transmission method
CN109058771A (en) * 2018-10-09 2018-12-21 东北大学 Pipeline Anomaly Detection Method Based on Sample Generation and Interval Markov Features
CN109506135A (en) * 2018-11-06 2019-03-22 三川智慧科技股份有限公司 Pipe leakage independent positioning method and device
CN109556797A (en) * 2018-11-19 2019-04-02 浙江工业大学 The pipeline leakage detection and location method with convolutional neural networks is decomposed based on spline local mean value
CN109555977A (en) * 2018-11-23 2019-04-02 水联网技术服务中心(北京)有限公司 The equipment and recognition methods of leak noise measuring
CN110529746A (en) * 2019-09-05 2019-12-03 北京化工大学 Detection method, device and the equipment of pipe leakage
CN111062127A (en) * 2019-12-16 2020-04-24 辽宁石油化工大学 Pipeline leak detection method and device, storage medium and terminal
CN111062127B (en) * 2019-12-16 2023-08-04 辽宁石油化工大学 Pipeline leakage point detection method and device, storage medium and terminal
CN112161755A (en) * 2020-08-12 2021-01-01 苏州聆听智能科技有限公司 Buried pipeline detection method and device, heterogeneous sensor array and storage medium
CN112483910A (en) * 2020-12-04 2021-03-12 常州大学 Gas-liquid two-phase flow pipeline leakage simulation device based on sound-pressure coupling
CN112632872A (en) * 2020-12-31 2021-04-09 浙江航天恒嘉数据科技有限公司 Method and system for calculating mass flux of leakage part of gas pipeline and storage medium
CN113188055A (en) * 2021-05-31 2021-07-30 东北大学 Pipeline leakage self-adaptive dynamic compensation positioning method based on negative pressure wave attenuation driving
CN113188055B (en) * 2021-05-31 2022-11-25 东北大学 Pipeline leakage self-adaptive dynamic compensation positioning method based on negative pressure wave attenuation driving
CN113719764A (en) * 2021-08-04 2021-11-30 中国人民解放军陆军勤务学院 Pipeline leakage detection method
CN114877262A (en) * 2022-04-20 2022-08-09 成都千嘉科技股份有限公司 Acoustic emission detection method based on AI chip gas pipeline leakage
CN114998528A (en) * 2022-06-27 2022-09-02 西安热工研究院有限公司 Pipeline leakage detection system and method based on nano robot technology
CN115267790A (en) * 2022-07-13 2022-11-01 中交第二公路勘察设计研究院有限公司 An intelligent positioning method for gas pipeline detection based on acoustic vibration technology
JP7655352B2 (en) 2022-09-02 2025-04-02 Jfeスチール株式会社 Method and device for determining valve opening in a pipeline network, and computer program
JP2024035792A (en) * 2022-09-02 2024-03-14 Jfeスチール株式会社 Valve opening determination method, valve opening determination device, and computer program in pipeline network
CN116123461A (en) * 2022-12-21 2023-05-16 东北大学 Energy source conveying monitoring system and method based on multiple acoustic wave sensors and sparse representation
CN115935241A (en) * 2023-01-09 2023-04-07 国机传感科技有限公司 Real-time positioning method and device for pipe cleaner with multi-parameter mutual fusion
CN115935241B (en) * 2023-01-09 2023-05-12 国机传感科技有限公司 Multi-parameter mutually-fused pipe cleaner real-time positioning method and device
CN116357901A (en) * 2023-02-09 2023-06-30 河南省水利第一工程局集团有限公司 A water conservancy engineering pipeline leak-proof detection system and method thereof
EP4450941A1 (en) * 2023-04-20 2024-10-23 Siemens Aktiengesellschaft System and method for detecting and locating a leak in a pipeline
WO2024217994A1 (en) * 2023-04-20 2024-10-24 Siemens Aktiengesellschaft System and method for detecting and locating a leak in a pipeline
CN117167667A (en) * 2023-09-14 2023-12-05 河南晋控天庆煤化工有限责任公司 Protection system and protection method for automatic regulation and control of pipeline flow
CN117053124A (en) * 2023-09-26 2023-11-14 辽宁石油化工大学 Method and device for detecting leakage of oil-gas branch pipeline
CN117053124B (en) * 2023-09-26 2025-08-05 辽宁石油化工大学 Oil and gas branch pipeline leakage detection method and device
CN117053129B (en) * 2023-10-12 2023-12-15 山西瑞赛科环保科技有限公司 Safety risk early warning platform and method for liquid chlorine, electronic equipment and medium
CN117053129A (en) * 2023-10-12 2023-11-14 山西瑞赛科环保科技有限公司 Safety risk early warning platform and method for liquid chlorine, electronic equipment and medium
CN117628417B (en) * 2024-01-25 2024-03-26 深圳市晶湖科技有限公司 Intelligent safety control system for gas field
CN117628417A (en) * 2024-01-25 2024-03-01 深圳市晶湖科技有限公司 Intelligent safety control system for gas field
CN118391606A (en) * 2024-04-26 2024-07-26 江西圣杰市政工程有限公司 Pipeline trenchless inspection method based on acoustic wave data
CN118133053A (en) * 2024-05-08 2024-06-04 山东瑞福锂业有限公司 Industrial data collecting and processing system and method
CN118502336A (en) * 2024-07-19 2024-08-16 河北道成电子科技有限公司 Load supervision system of Internet of things water management network
CN118502336B (en) * 2024-07-19 2024-09-13 河北道成电子科技有限公司 Load supervision system of Internet of things water management network
CN118961900A (en) * 2024-08-20 2024-11-15 四川速聚智联科技有限公司 A monitoring system and method for infrasonic wave detection of pipeline pigging operations
CN119761946A (en) * 2025-03-06 2025-04-04 江苏胜江海运有限公司 Petrochemical logistics storage and transportation safety monitoring method and system based on Internet of things
CN119761946B (en) * 2025-03-06 2025-05-09 江苏胜江海运有限公司 Petrochemical logistics storage and transportation safety monitoring method and system based on Internet of Things

Also Published As

Publication number Publication date
CN108488638B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN108488638B (en) Pipeline Leakage Monitoring System and Method Based on Acoustic Negative Pressure Wave Hybrid Monitoring
Liu et al. A leak detection method for oil pipeline based on Markov feature and two-stage decision scheme
CN109164343B (en) Transformer fault diagnosis method based on characteristic information quantization and weighted KNN
CN109766583A (en) Aero-engine life prediction method based on unlabeled, unbalanced and uncertain initial value data
CN110879377B (en) Metering device fault tracing method based on deep belief network
CN108492043A (en) A kind of power consumer load prediction method based on clustering algorithm
CN106053066A (en) Antifriction bearing performance degradation assessment method based on empirical mode decomposition and logistic regression
CN109254219B (en) A Fault Diagnosis Method of Distribution Transformer Transfer Learning Considering the Situation Evolution of Multiple Factors
CN116610998A (en) Switch cabinet fault diagnosis method and system based on multi-mode data fusion
CN116011158A (en) Topology identification method, system and device for low-voltage transformer area
CN117708720B (en) Equipment fault diagnosis system based on knowledge graph
CN104809473A (en) Online collected electric power data classifying method
CN116204825A (en) A data-driven fault detection method for production line equipment
CN113325357A (en) Voltage transformer error evaluation method and system based on output time series difference
Zhou et al. Real-time anomaly detection in distribution grids using long short term memory network
Li et al. Intelligent fault diagnosis of aeroengine sensors using improved pattern gradient spectrum entropy
CN117407677A (en) Charging equipment fault early warning method, system and medium based on word embedding model
Yan et al. Confident learning-based Gaussian mixture model for leakage detection in water distribution networks
CN114358160A (en) Data anomaly detection method in power system
CN119357731A (en) Transformer oil chromatographic analysis method based on improved fuzzy clustering algorithm and LSTM algorithm
CN118423620A (en) A method and system for detecting leakage of underground water supply pipe network based on audio signal
CN118733714A (en) A semantic large model optimization method and system for power scenarios
CN110046651A (en) A kind of pipeline conditions recognition methods based on monitoring data multi-attribute feature fusion
CN118606653A (en) Fuel consumption analysis method based on ship driving conditions
Chen et al. Boruta-XGBoost electricity theft detection based on features of electric energy parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载