[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104373820B - The method for reducing line leakage rate of false alarm - Google Patents

The method for reducing line leakage rate of false alarm Download PDF

Info

Publication number
CN104373820B
CN104373820B CN201410484122.2A CN201410484122A CN104373820B CN 104373820 B CN104373820 B CN 104373820B CN 201410484122 A CN201410484122 A CN 201410484122A CN 104373820 B CN104373820 B CN 104373820B
Authority
CN
China
Prior art keywords
signal
abnormal signal
peak
station
terminal
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.)
Expired - Fee Related
Application number
CN201410484122.2A
Other languages
Chinese (zh)
Other versions
CN104373820A (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.)
CHANGSHA TULING TECHNOLOGY DEVELOPMENT Co Ltd
PLA 63960 ARMY
Beijing University of Chemical Technology
Original Assignee
CHANGSHA TULING TECHNOLOGY DEVELOPMENT Co Ltd
PLA 63960 ARMY
Beijing University of Chemical Technology
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 CHANGSHA TULING TECHNOLOGY DEVELOPMENT Co Ltd, PLA 63960 ARMY, Beijing University of Chemical Technology filed Critical CHANGSHA TULING TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201410484122.2A priority Critical patent/CN104373820B/en
Publication of CN104373820A publication Critical patent/CN104373820A/en
Application granted granted Critical
Publication of CN104373820B publication Critical patent/CN104373820B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Examining Or Testing Airtightness (AREA)

Abstract

本发明公开了一种降低管道泄漏监测误报率的方法。该方法包括以下步骤:通过设置在管道首站的第一声波监测仪和管道末站的第二声波监测仪分别实时、连续地监测管道内部的首站声波信号和末站声波信号;当监测到首末站同时存在异常信号时,分别计算出首站声波信号中的异常信号峰值和末站声波信号中的异常信号峰值;判断首站异常信号峰值和末站异常信号峰值之间的峰值比是否在预设范围内,若是,则首末站异常信号为同源信号,发出泄漏报警;若否,则首末站异常信号为非同源信号,不发出泄漏报警。其能够在判断出不是同源信号时阻止系统发出错误报警,能够有效降低现有管道泄漏监测的误报率,提高泄漏监测的可靠性,且此方法具有较好的鲁棒性。

The invention discloses a method for reducing the false alarm rate of pipeline leakage monitoring. The method comprises the following steps: respectively real-time and continuously monitoring the acoustic wave signal of the first station and the acoustic wave signal of the last station inside the pipeline through the first acoustic wave monitor arranged at the first station of the pipeline and the second acoustic wave monitor at the last station of the pipeline; When there are abnormal signals at the first and last stations, calculate the peak value of the abnormal signal in the acoustic signal of the first station and the peak value of the abnormal signal in the acoustic signal of the last station; judge the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station Whether it is within the preset range, if yes, the abnormal signal of the first and last stations is a signal of the same source, and a leak alarm is issued; if not, the abnormal signal of the first and last station is a non-homologous signal, and a leak alarm is not issued. It can prevent the system from issuing false alarms when it is judged that the signal is not of the same source, can effectively reduce the false alarm rate of existing pipeline leakage monitoring, and improve the reliability of leakage monitoring, and this method has good robustness.

Description

降低管道泄漏监测误报率的方法Method for reducing the false alarm rate of pipeline leakage monitoring

技术领域technical field

本发明涉及管道泄漏监测领域,尤其涉及一种降低管道泄漏监测误报率的方法。The invention relates to the field of pipeline leakage monitoring, in particular to a method for reducing the false alarm rate of pipeline leakage monitoring.

背景技术Background technique

在油气、危险化学品等管道输送中,管道铺设距离长、线路复杂,常发生由于腐蚀老化、工程施工、人为破坏等造成的管道泄漏,造成易燃物泄漏爆炸、环境污染、人员伤亡等重大损失。In the pipeline transportation of oil and gas, hazardous chemicals, etc., the pipeline laying distance is long and the line is complicated, and pipeline leakage due to corrosion and aging, engineering construction, and man-made damage often occurs, causing major leakage and explosion of flammable materials, environmental pollution, and casualties. loss.

目前,针对管道泄漏监测的主要监测方法有:声波法、光纤法、负压波法等。其中基于声波的管道泄漏监测方法成本较低,容易实现,具有较高的泄漏监测灵敏度和定位精度,近年来受到很多的关注。声波法使用的传感器类型包括:声波传感器、加速度传感器、拾音器和压电式压力传感器等。但是,无论选择何种传感器实施管道泄漏监测,由于声波传感器灵敏度较高不可避免地会造成误报警,尤其当上下游监测站点如果分别监测到不同的干扰信号时,则不可避免造成误报。At present, the main monitoring methods for pipeline leakage monitoring are: acoustic wave method, optical fiber method, negative pressure wave method, etc. Among them, the pipeline leakage monitoring method based on acoustic waves is low in cost, easy to implement, and has high leakage monitoring sensitivity and positioning accuracy, and has received a lot of attention in recent years. The types of sensors used in the acoustic wave method include: acoustic wave sensors, acceleration sensors, pickups, and piezoelectric pressure sensors. However, no matter which sensor is selected for pipeline leakage monitoring, false alarms will inevitably be caused due to the high sensitivity of the acoustic sensor, especially when the upstream and downstream monitoring stations monitor different interference signals respectively, it will inevitably cause false alarms.

因此,探索一种可靠的依据声波信号传播衰减模型的异常信号同源性识别方法,对降低误报率、提高泄漏监测系统的可靠性有重大意义。Therefore, it is of great significance to explore a reliable identification method of abnormal signal homology based on the acoustic signal propagation attenuation model to reduce the false alarm rate and improve the reliability of the leakage monitoring system.

发明内容Contents of the invention

基于此,为实现本发明目的提供的一种降低管道泄漏监测误报率的方法,包括以下步骤:Based on this, in order to realize the object of the present invention, a method for reducing the false alarm rate of pipeline leakage monitoring comprises the following steps:

通过设置在管道首站的第一声波监测仪和管道末站的第二声波监测仪分别实时、连续地监测管道内部的首站声波信号和末站声波信号;The acoustic wave signal of the first station and the acoustic wave signal of the last station inside the pipeline are respectively monitored in real time and continuously by the first acoustic wave monitor installed at the first station of the pipeline and the second acoustic wave monitor at the last station of the pipeline;

当监测到首站和末站同时存在异常信号时,分别计算出首站声波信号中的首站异常信号峰值和末站声波信号中的末站异常信号峰值;When abnormal signals are detected at both the first station and the last station, the peak value of the first station abnormal signal in the first station sound wave signal and the last station abnormal signal peak value in the last station sound wave signal are calculated respectively;

判断所述首站异常信号峰值和末站异常信号峰值之间的峰值比是否在预设范围内,若是,则所述管道发生泄漏;若否,则所述管道未发生泄漏。Judging whether the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is within a preset range, if yes, the pipeline leaks; if not, the pipeline does not leak.

作为一种降低管道泄漏监测误报率的方法的可实施方式,所述通过设置在管道首站的第一声波监测仪和管道末站的第二声波监测仪分别实时、连续地监测管道内部的首站声波信号和末站声波信号,包括以下步骤:As a possible implementation of the method for reducing the false alarm rate of pipeline leakage monitoring, the first acoustic wave monitor installed at the first station of the pipeline and the second acoustic wave monitor at the end station of the pipeline respectively monitor the interior of the pipeline in real time and continuously The sound wave signal of the first station and the sound wave signal of the last station include the following steps:

以采样周期T分别采样所述第一声波监测仪和所述第二声波监测仪输出的所述首站声波信号和所述末站声波信号两路信号,在整分钟时刻对采集的两路信号分别打上时间标签;Sampling the two-way signals of the first-station sound wave signal and the last-station sound wave signal output by the first sound wave monitor and the second sound wave monitor respectively with a sampling period T, and the collected two-way The signals are time-stamped respectively;

分别提取连续两分钟所述首站声波信号和所述末站声波信号,其中前一分钟信号为历史数据,后一分钟信号为实时数据,所述历史数据和所述实时数据构成一帧完整的待处理的首站声波信号和末站声波信号;respectively extracting the acoustic wave signal of the first station and the acoustic signal of the last station for two consecutive minutes, wherein the signal of the previous minute is historical data, and the signal of the next minute is real-time data, and the historical data and the real-time data constitute a complete frame The first-station acoustic signal and the last-station acoustic signal to be processed;

其中,T为大于0的正数。Wherein, T is a positive number greater than 0.

作为一种降低管道泄漏监测误报率的方法的可实施方式,还包括确定所述首站异常信号峰值和末站异常信号峰值之间的比值的预设范围的步骤,该步骤具体包括以下步骤:As an implementable method of reducing the false alarm rate of pipeline leakage monitoring, it also includes the step of determining the preset range of the ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station. This step specifically includes the following steps :

获取多组首站声波信号和末站声波信号并进行滤波、去噪及去均值处理,得到去噪后的信号;Obtain multiple sets of first-station acoustic signals and last-station acoustic signals and perform filtering, denoising and de-averaging processing to obtain denoised signals;

对去噪后的信号通过相关计算得到首站异常信号和末站异常信号的相关系数的峰值位置,记作CorrPos,并根据公式:The peak position of the correlation coefficient of the abnormal signal at the first station and the abnormal signal at the last station is obtained by correlation calculation on the denoised signal, which is denoted as CorrPos, and according to the formula:

确定异常信号发生位置距首站的距离,其中,l为异常信号发生位置距首站的距离,L为管道总长度,Vdn与Vup分别为从首站到末站和从末站到首站的声波信号传播速度;Determine the distance from the location of the abnormal signal to the first station, where l is the distance from the location of the abnormal signal to the first station, L is the total length of the pipeline, V dn and V up are from the first station to the last station and from the last station to the first station, respectively. Acoustic signal propagation speed of the station;

经过预设时间的监测后,获取定位位置为首站的首站异常信号和同源的末站异常信号,以及定位位置为末站的首站异常信号和同源的末站异常信号,并获取第一预设数量的首站正常信号和末站正常信号;After monitoring for a preset time, the abnormal signal of the first station with the positioning position as the first station and the abnormal signal of the last station with the same source, as well as the abnormal signal of the first station with the positioning position as the last station and the abnormal signal of the last station with the same source are obtained, and the second A preset number of normal signals of the first station and normal signals of the last station;

对所述去噪后的信号进行离散傅里叶变换,得到去噪后的信号的频谱;performing discrete Fourier transform on the denoised signal to obtain the frequency spectrum of the denoised signal;

比对正常信号和异常信号的频谱,截取所述异常信号的频谱;comparing the frequency spectrum of the normal signal and the abnormal signal, and intercepting the frequency spectrum of the abnormal signal;

对截取后的所述异常信号的频谱进行傅里叶反变换,得到所述异常信号的时域重构后的信号;performing an inverse Fourier transform on the intercepted frequency spectrum of the abnormal signal to obtain a time-domain reconstructed signal of the abnormal signal;

根据时域重构后的信号的幅值确定首站异常信号的峰值与同源的末站异常信号的峰值的峰值比;Determine the peak value ratio of the peak value of the abnormal signal at the first station to the peak value of the abnormal signal at the end station of the same source according to the amplitude of the reconstructed signal in the time domain;

根据声波沿管道的传播衰减公式:According to the propagation attenuation formula of sound wave along the pipeline:

其中,Peak0为异常声波发生点声波信号的初始幅值,Peak为传播衰减后的信号幅值,l为异常信号发生位置距首站的距离,L为管道总长度,α为声波传播衰减系数,首站产生的声波信号顺流传播到末站,和末站产生声波信号逆流传播到首站时,其分别满足:Among them, Peak 0 is the initial amplitude of the sound wave signal at the point where the abnormal sound wave occurs, Peak is the signal amplitude after propagation attenuation, l is the distance from the location of the abnormal signal to the first station, L is the total length of the pipeline, and α is the sound wave propagation attenuation coefficient , when the acoustic signal generated by the first station propagates downstream to the last station, and when the acoustic signal generated by the last station propagates countercurrently to the first station, they respectively satisfy:

Peakup为首站采集到的异常信号幅值,Peakdn为末站采集到的同源的异常信号幅值,αs与αn分别为顺流与逆流传播时的传播衰减系数;Peak up is the amplitude of the abnormal signal collected by the first station, Peak dn is the amplitude of the abnormal signal of the same source collected by the last station, α s and α n are the propagation attenuation coefficients when propagating downstream and upstream respectively;

进一步计算可得声波信号顺流传播衰减系数αs和逆流传播衰减系数αn为:Further calculation can obtain the attenuation coefficient α s and the attenuation coefficient α n of the acoustic wave signal in the downstream propagation as follows:

根据所述首站异常信号与末站同源的异常信号的峰值比得到αs和αn的值;Obtain the values of α s and α n according to the peak ratio of the abnormal signal of the first station and the homologous abnormal signal of the last station;

结合第二预设数量的成对首站异常信号和同源的末站异常信号的峰值比确定声波信号顺流传播衰减系数αs和逆流传播衰减系数αn的范围为:Combined with the peak ratio of the second preset number of pairs of abnormal signals at the first station and the abnormal signals at the end station of the same source, the ranges of the attenuation coefficient α s for the downstream propagation of the acoustic wave signal and the attenuation coefficient α n for the upstream propagation of the acoustic wave signal are:

αsmin≤αs≤αsmax α smin ≤ α s ≤ α smax

αnmin≤αn≤αnmaxα nmin ≤ α n ≤ α nmax ;

对于发生在距首站l距离的泄漏声波信号,其首站异常信号和同源的末站异常信号的峰值比r满足以下关系:For the leakage acoustic wave signal that occurs at a distance l from the first station, the peak ratio r of the abnormal signal at the first station and the abnormal signal at the end station of the same source satisfies the following relationship:

将声波传播衰减系数组成四组[αsminnmin],[αsminnmax],[αsmaxnmin],[αsmaxnmax],得到四个r值,并将最大值记为rmax,最小值记为rmin,则首站异常信号和同源的末站异常信号的峰值比的取值范围为:The sound wave propagation attenuation coefficients are divided into four groups [α sminnmin ],[α sminnmax ],[α smaxnmin ],[α smaxnmax ], and four r values are obtained, and the maximum It is recorded as r max and the minimum value is recorded as r min , then the value range of the peak ratio of the abnormal signal at the first station and the abnormal signal at the end station of the same source is:

作为一种降低管道泄漏监测误报率的方法的可实施方式,判断所述首站异常信号峰值和末站异常信号峰值之间的峰值比是否在预设范围内,若是,则所述管道发生泄漏;若否,则所述管道未发生泄漏,包括以下步骤:As an implementable method for reducing the false alarm rate of pipeline leakage monitoring, it is judged whether the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is within a preset range, and if so, the pipeline leakage Leak; if no, then the pipeline does not leak, including the following steps:

计算所述首站异常信号峰值和所述末站异常信号峰值之间的峰值比;calculating the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station;

根据公式及αs与αn的值计算所述峰值比的预设范围;According to the formula and the value of α s and α n to calculate the preset range of the peak ratio;

判断所述峰值比是否在所计算出的所述预设范围内;judging whether the peak ratio is within the calculated preset range;

若是,则首末站异常信号为同源信号,发出泄漏报警;If so, the abnormal signal of the first and last station is a signal of the same source, and a leak alarm is issued;

若否,则首末站异常信号为非同源信号,不发出泄漏报警。If not, the abnormal signal of the first and last station is a non-homologous signal, and no leakage alarm will be issued.

作为一种降低管道泄漏监测误报率的方法的可实施方式,所述根据时域重构后的信号的幅值确定首站异常信号的峰值与末站异常信号的峰值的峰值比,包括以下步骤:As a method for reducing the false alarm rate of pipeline leakage monitoring, the determination of the peak value ratio of the peak value of the abnormal signal at the first station to the peak value of the abnormal signal at the last station according to the amplitude of the reconstructed signal in the time domain includes the following step:

根据所述幅值的极性划分正负区间,并且求出各个区间的峰值记为Peak[i],正区间取最大值,负区间取最小值,其中,1≤i≤NPeak,NPeak为一帧完整的待处理的首站声波信号或末站声波信号中的区间总数;According to the polarity of the amplitude, the positive and negative intervals are divided, and the peak value of each interval is calculated as Peak[i], the maximum value is taken in the positive interval, and the minimum value is taken in the negative interval, wherein, 1≤i≤N Peak , N Peak is the total number of intervals in a complete frame of the first-station acoustic signal or the last-station acoustic signal to be processed;

计算正峰值与负峰值的均值,分别记为meanVP和meanVN,并将正信号峰值中大于meanVP的峰值根据如下公式计算归一化峰值突出程度指标LP,且当正峰值小于meanVP时令LP为0,Calculate the mean value of the positive peak value and the negative peak value, which are respectively recorded as meanVP and meanVN, and calculate the normalized peak prominence index L P for the peak value greater than meanVP in the positive signal peak value according to the following formula, and when the positive peak value is smaller than meanVP, let L P be 0,

将负峰值中幅值大于meanVN的峰值根据如下公式计算归一化峰值突出程度指标LN,且当负峰值大于meanVN时令LN为0,Calculate the normalized peak prominence index L N of the negative peak with an amplitude greater than meanVN according to the following formula, and set L N to 0 when the negative peak is greater than meanVN,

将所述归一化峰值突出程度指标低于预设阈值的信号区间的信号清为0,确定所述归一化峰值突出程度指标高于预设阈值的峰值所在区间及发生时刻LeakPos;Clearing the signals of the signal intervals in which the normalized peak prominence index is lower than the preset threshold to 0, and determining the peak interval and occurrence time LeakPos of the normalized peak prominence index higher than the preset threshold;

当存在有多个异常信号时,依次计算首站一异常信号与末站各异常信号的LeakPos的差:When there are multiple abnormal signals, calculate the LeakPos difference between the abnormal signal at the first station and the abnormal signals at the last station in turn:

DT=LeakPosup(i)-LeakPosdn(j)DT=LeakPos up (i)-LeakPos dn (j)

当差值DT与所述CorrPos最接近时,确定此组信号分别为首站异常信号和对应的末站异常信号,此时区间序号分别记为Rangeup与RangednWhen the difference DT is the closest to the CorrPos, it is determined that this group of signals is respectively the abnormal signal of the first station and the abnormal signal of the corresponding last station. At this time, the interval sequence numbers are respectively recorded as Range up and Range dn ;

进而得到首站异常信号的峰值Peak(Rangeup)和末站异常信号的峰值Peak(Rangedn),并进一步得到所述首站异常信号的峰值与所述末站异常信号的峰值比。Further, the peak value Peak(Range up ) of the abnormal signal at the first station and the peak value Peak(Range dn ) of the abnormal signal at the last station are obtained, and the peak value ratio of the abnormal signal at the first station to the peak value of the abnormal signal at the last station is further obtained.

作为一种降低管道泄漏监测误报率的方法的可实施方式,使用管道首站的第一声波监测仪和管道末站的第二声波监测仪监测管道内部的首站声波信号和末站声波信号时,利用全球定位系统进行精确授时。As a method for reducing the false alarm rate of pipeline leakage monitoring, the first acoustic wave monitor at the first station of the pipeline and the second acoustic wave monitor at the last station of the pipeline are used to monitor the acoustic signal of the first station and the sound wave of the last station inside the pipeline Signal time, using the global positioning system for precise timing.

本发明的有益效果包括:The beneficial effects of the present invention include:

本发明提供的一种降低管道泄漏监测误报率的方法,其通过建立管道内声波传播衰减模型,判断首末站的声波监测仪接收到的异常信号的峰值比是否在预设范围内来判断所接收到的异常信号到底是不是同源信号。并在判断出不是同源信号时阻止系统发出错误报警。能够有效降低现有管道泄漏监测的误报率,提高泄漏监测的可靠性,且此方法具有较好的鲁棒性。The invention provides a method for reducing the false alarm rate of pipeline leakage monitoring. It judges whether the peak ratio of the abnormal signal received by the acoustic wave monitor at the first and last stations is within the preset range by establishing a sound wave propagation attenuation model in the pipeline. Whether the received abnormal signal is a homologous signal. And prevent the system from sending a false alarm when it is judged that it is not a homologous signal. The false alarm rate of existing pipeline leakage monitoring can be effectively reduced, and the reliability of leakage monitoring can be improved, and the method has good robustness.

附图说明Description of drawings

图1为本发明一种降低管道泄漏监测误报率的方法的一具体实施例的流程图;Fig. 1 is a flow chart of a specific embodiment of a method for reducing the false alarm rate of pipeline leakage monitoring in the present invention;

图2为本发明一种降低管道泄漏监测误报率的方法的另一具体实施例的流程图;Fig. 2 is a flow chart of another specific embodiment of the method for reducing the false alarm rate of pipeline leakage monitoring in the present invention;

图3为本发明一种降低管道泄漏监测误报率方法的一具体实例的样本1首末站信号去噪及去均值处理结果示意图;Fig. 3 is a schematic diagram of the signal denoising and de-average processing results of the first and last stations of sample 1 of a specific example of a method for reducing the false alarm rate of pipeline leakage monitoring in the present invention;

图4为本发明一种降低管道泄漏监测误报率方法的一具体实例的样本2首末站信号去噪及去均值处理结果示意图;Fig. 4 is a schematic diagram of the signal denoising and de-average processing results of sample 2 at the first and last stations of a specific example of a method for reducing the false alarm rate of pipeline leakage monitoring in the present invention;

图5为本发明一种降低管道泄漏监测误报率方法的一具体实例的样本1首末站信号经过频谱截取后傅里叶反变换结果示意图;Fig. 5 is a schematic diagram of the inverse Fourier transform result of sample 1 first and last station signals of a specific example of the method for reducing pipeline leakage monitoring false alarm rate after spectrum interception in the present invention;

图6为本发明一种降低管道泄漏监测误报率方法的一具体实例的样本2首末站信号经过频谱截取后傅里叶反变换结果示意图。Fig. 6 is a schematic diagram of the inverse Fourier transform results of the first and last station signals of sample 2 after spectrum interception in a specific example of a method for reducing the false alarm rate of pipeline leakage monitoring according to the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图对本发明的降低管道泄漏监测误报率的方法的具体实施方式进行说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solution and advantages of the present invention clearer, the specific implementation of the method for reducing the false alarm rate of pipeline leakage monitoring according to the present invention will be described below with reference to the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明一实施例的降低管道泄漏监测误报率的方法,如图1所示,包括以下步骤:The method for reducing the false alarm rate of pipeline leakage monitoring according to an embodiment of the present invention, as shown in Figure 1, comprises the following steps:

S100,通过设置在管道首站的第一声波监测仪和管道末站的第二声波监测仪分别实时、连续地监测管道内部的首站声波信号和末站声波信号。S100, respectively, real-time and continuous monitoring of the acoustic wave signal of the first station and the acoustic wave signal of the last station inside the pipeline through the first acoustic wave monitor installed at the first station of the pipeline and the second acoustic wave monitor at the last station of the pipeline.

S200,当监测到异常信号时,通过计算信号相关系数确定异常信号的定位位置,分别计算出首站声波信号中的异常信号峰值和末站声波信号中的异常信号峰值。S200. When an abnormal signal is detected, determine the positioning position of the abnormal signal by calculating the signal correlation coefficient, and respectively calculate the abnormal signal peak value in the sound wave signal of the first station and the abnormal signal peak value in the sound wave signal of the last station.

此处需要说明的是,声波监测仪(包括第一声波监测仪和第二声波监测仪)是持续监测声波信号的,一般当管道没有泄漏时,接收到的信号较为平缓,没有明显的波动。但是,如果所监测的管道有泄漏或者较强烈的干扰信号(如调泵、调阀等)时,声波监测仪接收到的信号会有明显的波动,则此时说声波监测仪监测到了异常信号。且对于异常信号的判断可结合现有技术实现,此处不再一一详细说明。What needs to be explained here is that the acoustic wave monitor (including the first acoustic wave monitor and the second acoustic wave monitor) continuously monitors the acoustic wave signal. Generally, when there is no leakage in the pipeline, the received signal is relatively gentle without obvious fluctuations. . However, if there is a leak in the monitored pipeline or a strong interference signal (such as pump adjustment, valve adjustment, etc.), the signal received by the acoustic wave monitor will fluctuate significantly, then it is said that the acoustic wave monitor has detected an abnormal signal. . Moreover, the judgment of the abnormal signal can be implemented in combination with the existing technology, and will not be described in detail here.

S300,判断所述首站异常信号峰值和末站异常信号峰值之间的峰值比是否在预设范围内,若是,则首末站异常信号为同源信号,发出泄漏报警;若否,则首末站异常信号为非同源信号,不发出泄漏报警。S300. Determine whether the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is within a preset range. The abnormal signal of the last station is a non-homologous signal, and no leakage alarm is issued.

对于任何一个确定的输送管道,在出现同源异常信号时,其设置在首站和设置在末站的声波监测仪监测到的异常信号的峰值之间的峰值比都是在一定范围内的,因此,可通过判断首末站的声波监测仪接收到的异常信号的峰值比是否在预设范围内来判断所接收到的异常信号到底是不是同源信号。并在判断出不是同源信号时阻止系统发出错误报警。能够有效降低现有管道泄漏监测的误报率,提高泄漏监测的可靠性。For any certain transmission pipeline, when homologous abnormal signals appear, the peak ratio between the peak values of the abnormal signals monitored by the acoustic wave monitors set at the first station and at the last station is within a certain range, Therefore, it can be judged whether the received abnormal signal is a homologous signal by judging whether the peak ratio of the abnormal signal received by the acoustic wave monitor at the first and last station is within a preset range. And prevent the system from sending a false alarm when it is judged that it is not a homologous signal. The false alarm rate of existing pipeline leakage monitoring can be effectively reduced, and the reliability of leakage monitoring can be improved.

还需要说明的是,此处的首站是指输送管道内部输送物流动的初始位置并在此处设置了监测点。末站是输送管道内部输送物流动的终点位置并在此处设置了监测点。首站和末站之间的距离基本为输送管路的长度。当然参考本发明的方法也可在管道上选择两个接近首末站并相距固定长度的点进行监测。It should also be noted that the first station here refers to the initial position where the conveyed material flows inside the conveying pipeline and a monitoring point is set here. The end station is the terminal position of the flow of the conveyed material inside the conveying pipeline and a monitoring point is set here. The distance between the first station and the last station is basically the length of the conveying pipeline. Of course, with reference to the method of the present invention, two points close to the first and last stations and with a fixed distance apart can be selected for monitoring on the pipeline.

在其中一个实施例中,步骤S100,通过设置在管道首站的第一声波监测仪和管道末站的第二声波监测仪分别实时、连续地监测管道内部的首站声波信号和末站声波信号,包括以下步骤:In one of the embodiments, in step S100, the acoustic wave signal of the first station and the sound wave of the last station inside the pipeline are respectively monitored in real time and continuously by the first acoustic wave monitor installed at the first station of the pipeline and the second acoustic wave monitor installed at the last station of the pipeline. signal, including the following steps:

S110,以采样周期T分别采样所述第一声波监测仪和所述第二声波监测仪输出的所述首站声波信号和所述末站声波信号两路信号,在整分钟时刻对采集的两路信号分别打上时间标签。S110: Sampling the two signals of the first station sound wave signal and the last station sound wave signal output by the first sound wave monitor and the second sound wave monitor respectively with a sampling period T, and performing the collected signals at every minute The two signals are time-stamped respectively.

其中,对于首站和末站的声波监测仪的监测时间可通过用GPS(GlobalPositioning System,全球定位系统)精确授时下进行,从而可确保首站声波信号和末站声波信号采集的同步。提高监测的精度。Among them, the monitoring time of the acoustic wave monitors at the first station and the last station can be accurately timed by GPS (Global Positioning System, Global Positioning System), so as to ensure the synchronization of the acquisition of the acoustic wave signals of the first station and the last station. Improve the accuracy of monitoring.

S120,设每分钟的采集信号长度为N/2点,分别提取连续两分钟所述首站声波信号和所述末站声波信号,其中前一分钟信号为历史数据,后一分钟信号为实时数据,所述历史数据和所述实时数据构成一帧完整的待处理的首站声波信号和末站声波信号。其中,T为大于0的正数,N为正整数。S120, assuming that the length of the collected signal per minute is N/2 points, respectively extracting the acoustic wave signal of the first station and the acoustic wave signal of the last station for two consecutive minutes, wherein the signal of the previous minute is historical data, and the signal of the next minute is real-time data , the historical data and the real-time data constitute a complete frame of the first-station acoustic signal and the last-station acoustic signal to be processed. Wherein, T is a positive number greater than 0, and N is a positive integer.

具体的,对于首站异常信号峰值和末站异常信号峰值之间的比值的预设范围本发明中是通过构建管道内声波传播衰减模型实现的。其对采集到的信号进行异常信号诊断与定位,并且筛选获得其中首站顺传到末站的异常信号与末站逆传到首站的异常信号。利用上述顺传与逆传的异常信号并选取一些正常信号,去噪去均值后进行离散傅里叶变换,得到各信号的频谱,将异常信号与正常信号的频谱进行对比,确定有别于正常信号的异常信号频带范围。将上述异常信号的频谱按确定的频带范围进行频域滤波,利用傅里叶反变换得到频域滤波后的时域重构信号。将重构后的信号进行正负区间划分,在突出信号所在区间内找到峰值,计算首末站峰值的比值。根据声波传播衰减公式计算衰减系数,建立对应管道内的声波传播衰减模型。Specifically, the preset range of the ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is realized by constructing an acoustic wave propagation attenuation model in the pipeline in the present invention. It diagnoses and locates the abnormal signals of the collected signals, and screens and obtains the abnormal signals forwarded from the first station to the last station and the abnormal signals transmitted backwards from the last station to the first station. Utilize the abnormal signals of the forward and backward transmission mentioned above and select some normal signals, perform discrete Fourier transform after denoising and de-averaging to obtain the spectrum of each signal, compare the spectrum of the abnormal signal with the normal signal, and determine that it is different from the normal signal The abnormal signal band range of the signal. The frequency spectrum of the abnormal signal is filtered in the frequency domain according to the determined frequency band range, and the reconstructed signal in the time domain after the frequency domain filtering is obtained by inverse Fourier transform. The reconstructed signal is divided into positive and negative intervals, the peak value is found in the interval where the prominent signal is located, and the ratio of the peak value of the first and last station is calculated. The attenuation coefficient is calculated according to the sound wave propagation attenuation formula, and the sound wave propagation attenuation model in the corresponding pipeline is established.

具体的,S010,确定所述首站异常信号峰值和末站异常信号峰值之间的比值的预设范围的步骤包括以下步骤:Specifically, S010, the step of determining the preset range of the ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station includes the following steps:

S011,获取多组首站声波信号和末站声波信号并进行滤波、去噪及去均值处理,得到去噪后的信号。S011. Obtain multiple groups of first-station sound wave signals and last-station sound wave signals, and perform filtering, denoising, and de-averaging processing to obtain denoised signals.

S012,对去噪后的信号通过相关计算得到首站异常信号和末站异常信号的相关系数的峰值位置,记作CorrPos。根据公式:S012. Obtain the peak position of the correlation coefficient between the abnormal signal at the first station and the abnormal signal at the last station through correlation calculation on the denoised signal, which is denoted as CorrPos. According to the formula:

计算出异常信号发生位置,其中,L为管道总长度,Vdn与Vup分别为从首站到末站和从末站到首站的声波信号传播速度。获取定位位置为首站的首站异常信号和同源的末站异常信号,以及定位位置为末站的首站异常信号和同源的末站异常信号,并获取一定数量(第一预设数量)的首站正常信号和末站正常信号。Calculate the location where the abnormal signal occurs, where L is the total length of the pipeline, Vdn and Vup are the propagation speeds of the acoustic signal from the first station to the last station and from the last station to the first station, respectively. Obtain the abnormal signal of the first station whose positioning position is the first station and the abnormal signal of the last station of the same source, as well as the abnormal signal of the first station and the abnormal signal of the last station of the same source whose positioning position is the last station, and obtain a certain number (the first preset number) The normal signal of the first station and the normal signal of the last station.

此处需要说明的是,所述预设时间是根据实际需求来确定的,本发明在确定预设范围的过程中需要多组首站异常信号和同源的末站异常信号。因此,此处的预设时间可根据实际想要达到的精度结合运算的复杂度进行确定。同样,正常信号主要是起参考作用,其具体数量也可根据实际情况进行选取。It should be noted here that the preset time is determined according to actual needs, and the present invention requires multiple sets of first station abnormal signals and end station abnormal signals of the same source during the process of determining the preset range. Therefore, the preset time here can be determined according to the actual desired precision combined with the complexity of the operation. Similarly, the normal signal is mainly used as a reference, and its specific number can also be selected according to the actual situation.

S013,对所述去噪后的信号进行离散傅里叶变换,得到去噪后的信号的频谱。经过离散傅里叶变换后得到信号的频谱X(k):S013. Perform discrete Fourier transform on the denoised signal to obtain a frequency spectrum of the denoised signal. After discrete Fourier transform, the spectrum X(k) of the signal is obtained:

X(k)=DFT[x(n)]0≤k≤N-1 (2)X(k)=DFT[x(n)]0≤k≤N-1 (2)

式中x(n)为时域信号,N为离散傅里叶变换点数,亦为信号总点数。In the formula, x(n) is the time-domain signal, and N is the number of discrete Fourier transform points, which is also the total number of signal points.

S014,比对正常信号和异常信号的频谱,截取所述异常信号的频谱。具体为:画出异常信号与正常信号的频谱图,观察统计各异常信号与正常信号所属的频带范围,将异常信号所在的有别于正常信号的一段较窄的频带在频谱中的起始与结束序号分别记为fst与fend,将该频带的频谱保留其余的做清零处理。从而可以得到准确的异常信号所对应的较窄的频带。其中调整后的频谱为:S014. Compare the frequency spectrum of the normal signal and the abnormal signal, and intercept the frequency spectrum of the abnormal signal. Specifically: draw the frequency spectrum diagram of abnormal signals and normal signals, observe and count the frequency band ranges of each abnormal signal and normal signal, and compare the start and The end sequence numbers are recorded as fst and fend respectively, and the spectrum of this frequency band is reserved for the rest to be cleared. Therefore, a narrower frequency band corresponding to an accurate abnormal signal can be obtained. where the adjusted spectrum is:

此处所说的正常信号包括首站正常信号和末站正常信号,异常信号包括首站异常信号和末站异常信号。The normal signal mentioned here includes the normal signal of the first station and the normal signal of the last station, and the abnormal signal includes the abnormal signal of the first station and the abnormal signal of the last station.

S015,对所述截取后的异常信号的频谱进行傅里叶反变换,得到所述异常信号的时域重构后的信号。S015. Perform an inverse Fourier transform on the frequency spectrum of the intercepted abnormal signal to obtain a time-domain reconstructed signal of the abnormal signal.

S016,根据时域重构后的信号的幅值确定首站异常信号的峰值与末站异常信号的峰值的峰值比。S016. Determine the peak value ratio of the peak value of the abnormal signal at the first station to the peak value of the abnormal signal at the last station according to the amplitude of the reconstructed signal in the time domain.

S017,根据声波沿管道的传播衰减公式:S017, according to the propagation and attenuation formula of sound waves along the pipeline:

其中,Peak0为泄漏发生点声波信号的初始幅值,Peak为传播衰减后的信号幅值,l为信号发生位置距首站的距离,L为管道总长度,α为声波传播衰减系数。得到首站产生的声波信号顺流传播到末站,或末站产生声波信号逆流传播到首站时,其分别满足:Among them, Peak 0 is the initial amplitude of the acoustic signal at the leakage point, Peak is the signal amplitude after propagation attenuation, l is the distance between the signal occurrence location and the first station, L is the total length of the pipeline, and α is the acoustic wave propagation attenuation coefficient. It is obtained that when the acoustic signal generated by the first station propagates downstream to the last station, or when the acoustic signal generated by the last station propagates countercurrently to the first station, they respectively satisfy:

式中,声波信号的传播距离均为L,Peakup为首站采集到的异常信号幅值,Peakdn为末站采集到同源的异常信号幅值,αs与αn分别为顺流与逆流传播时的传播衰减系数。In the formula, the propagation distance of the acoustic signal is L, Peak up is the amplitude of the abnormal signal collected by the first station, Peak dn is the amplitude of the abnormal signal of the same source collected by the last station, α s and α n are the downstream and upstream channels respectively The propagation attenuation coefficient when propagating.

S018,进一步计算可得声波信号顺流传播衰减系数αs和逆流传播衰减系数αn为:S018, further calculation can obtain the attenuation coefficient α s and the attenuation coefficient α n of the downstream propagation of the acoustic wave signal as follows:

S019,根据步骤S016确定出的首站异常信号与同源的末站异常信号的峰值比得到αs和αn的具体值。S019. Obtain specific values of α s and α n according to the peak ratio of the abnormal signal at the first station determined in step S016 to the abnormal signal at the end station of the same source.

S020,结合第二预设数量的成对首站异常信号和同源的末站异常信号的峰值比确定声波信号顺流传播衰减系数αs和逆流传播衰减系数αn的范围为:S020, combining the peak ratios of the second preset number of pairs of abnormal signals at the first station and the abnormal signals at the end station of the same source to determine the ranges of the downstream propagation attenuation coefficient α s and the upstream propagation attenuation coefficient α n of the acoustic wave signal as follows:

作为一种可实施方式,所述第二预设数量可选取10或者12。当然,根据实际精度的要求,也可以选择更多的数量。As an implementable manner, the second preset number may be 10 or 12. Of course, more numbers can also be selected according to the requirements of actual precision.

确定了顺流和逆流的衰减系数之后,继续执行下一步骤,S021,对于发生在距首站l距离的泄漏声波信号,其首站异常信号和同源的末站异常信号的峰值比r满足以下关系:After determining the attenuation coefficients of forward flow and reverse flow, proceed to the next step, S021, for the leakage acoustic wave signal that occurs at a distance l from the first station, the peak ratio r of the abnormal signal at the first station and the abnormal signal at the end station of the same source satisfies The following relationship:

将声波传播衰减系数组成四组[αsminnmin],[αsminnmax],[αsmaxnmin],[αsmaxnmax],得到四个r值,并将最大值记为rmax,最小值记为rmin,则首站异常信号和末站异常信号的峰值比的取值范围为:The sound wave propagation attenuation coefficients are divided into four groups [α sminnmin ],[α sminnmax ],[α smaxnmin ],[α smaxnmax ], and four r values are obtained, and the maximum It is recorded as r max and the minimum value is recorded as r min , then the value range of the peak value ratio of the abnormal signal at the first station and the abnormal signal at the last station is:

最终确定首站异常信号峰值和末站异常信号峰值之间的比值在rmin和rmax之间,上式也即为构建的管道内声波信号传播衰减模型。Finally, it is determined that the ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is between r min and r max , and the above formula is also the acoustic signal propagation attenuation model in the pipeline constructed.

如上述可知,在确定所述首站的异常信号峰值和所述末站确定的所述异常信号峰值之比值是否在预设范围内时,还需要根据初步确定的假定的异常信号的发生位置确定预设范围的具体值。相应的,步骤S300,判断所述首站异常信号峰值和末站异常信号峰值之间的峰值比是否在预设范围内,若是,则首末站异常信号为同源信号,发出泄漏报警;若否,则首末站异常信号为非同源信号,不发出泄漏报警,包括以下步骤:As can be seen above, when determining whether the ratio of the abnormal signal peak value determined by the first station to the abnormal signal peak value determined by the last station is within a preset range, it is also necessary to determine Specific values for preset ranges. Correspondingly, in step S300, it is judged whether the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station is within the preset range, if so, the abnormal signal at the first and last station is a homologous signal, and a leak alarm is issued; if No, the abnormal signal of the first and last station is a non-homologous signal, and no leakage alarm is issued, including the following steps:

S310,计算首站异常信号峰值和末站异常信号峰值之间的峰值比。S310. Calculate the peak ratio between the peak value of the abnormal signal at the first station and the peak value of the abnormal signal at the last station.

S320,根据公式(10)及l、αs与αn的值计算所述峰值比的预设范围。S320. Calculate the preset range of the peak ratio according to formula (10) and values of 1, α s and α n .

S330,判断所述峰值比是否在所计算出的所述预设范围内;若是,则首末站异常信号为同源信号,发出泄漏报警;若否,则首末站异常信号为非同源信号,不发出泄漏报警。S330, judging whether the peak ratio is within the calculated preset range; if yes, the abnormal signal of the first and last stations is a signal of the same source, and a leak alarm is issued; if not, the abnormal signal of the first and last station is a non-homologous signal signal, no leak alarm.

具体的,步骤S310,计算首站异常信号峰值和末站异常信号峰值之间的峰值比与步骤S016,根据时域重构后的信号的幅值确定首站异常信号的峰值与末站异常信号的峰值的峰值比,方法相同,包括以下步骤:Specifically, in step S310, calculate the peak ratio between the peak value of the abnormal signal peak value at the first station and the peak value value of the abnormal signal signal at the last station; The peak-to-peak ratio of the peak, the method is the same, including the following steps:

S311,根据所述幅值的极性划分正负区间,并且求出各个区间的峰值记为Peak[i],正区间取最大值,负区间取最小值,其中,1≤i≤NPeak,NPeak为一帧完整的待处理的首站声波信号或末站声波信号中的区间总数;S311, divide the positive and negative intervals according to the polarity of the amplitude, and obtain the peak value of each interval as Peak[i], take the maximum value in the positive interval, and take the minimum value in the negative interval, wherein, 1≤i≤N Peak , N Peak is the total number of intervals in a complete frame of the first-station acoustic signal or the last-station acoustic signal to be processed;

S312,计算正峰值与负峰值的均值,分别记为meanVP和meanVN,并将正信号峰值中大于meanVP的峰值根据如下公式计算归一化峰值突出程度指标LP,,当正峰值小于meanVP时令LP为0,S312. Calculate the mean value of the positive peak value and the negative peak value, which are recorded as meanVP and meanVN respectively, and calculate the normalized peak prominence index L P for the peak value greater than meanVP in the positive signal peak value according to the following formula. When the positive peak value is less than meanVP, let LP is 0,

将负峰值中幅值大于meanVN的峰值根据如下公式计算归一化峰值突出程度指标LN,当负峰值大于meanVN时令LN为0,Calculate the normalized peak prominence index L N of the negative peak with an amplitude greater than meanVN according to the following formula. When the negative peak is greater than meanVN, set LN to 0,

将所述归一化峰值突出程度指标低于预设阈值的信号区间的信号清为0,确定所述归一化峰值突出程度指标高于预设阈值的峰值所在区间,并确定其信号发生时刻LeakPos。Clearing the signals of the signal intervals in which the normalized peak prominence index is lower than a preset threshold value to 0, determining the peak interval in which the normalized peak prominence index is higher than a preset threshold value, and determining the time when the signal occurs LeakPos.

此处需要说明的是,当峰值突出程度指标越接近于1或-1时信号越突出;当突出程度指标接近于0时表示信号不突出。根据峰值突出程度指标及预设阈值确定突出信号峰值所在区间并确定突出信号发生时刻。根据公式d[i]=x[i]-x[i+w]计算每个区间内的信号差分,差分的步长为w,x为去噪后的时域信号。在突出信号的信号差分d中找到最大值位置记为当前区间信号的发生时刻LeakPos,首站异常信号发生时刻记为LeakPosup(i),末站异常信号发生时刻记为LeakPosdn(j),i、j为正整数,且都小于等于所属信号的区间总数。首末站信号中所有突出程度指标低于预设阈值的信号区间中都清为0。What needs to be explained here is that when the peak prominence index is closer to 1 or -1, the signal is more prominent; when the prominence index is close to 0, it means that the signal is not prominent. According to the peak prominence degree index and the preset threshold value, the interval of the peak value of the protruding signal is determined, and the time when the protruding signal occurs is determined. The signal difference in each interval is calculated according to the formula d[i]=x[i]-x[i+w]. The step size of the difference is w, and x is the time-domain signal after denoising. Find the maximum value position in the signal difference d of the outstanding signal and record it as the occurrence time of the current interval signal LeakPos, record the time when the abnormal signal at the first station occurs as LeakPos up (i), and record the time when the abnormal signal at the last station occurs as LeakPos dn (j), i and j are positive integers, and both are less than or equal to the total number of intervals of the signal they belong to. All the prominence indicators in the signal of the first and last stations are cleared to 0 in the signal intervals that are lower than the preset threshold.

S313,当存在有多个异常信号时,依次计算首站一异常信号与末站各异常信号的LeakPos的差:S313, when there are a plurality of abnormal signals, calculate the difference of the LeakPos of one abnormal signal of the first station and each abnormal signal of the last station in turn:

DT=LeakPosup(i)-LeakPosdn(j) (14)DT=LeakPos up (i)-LeakPos dn (j) (14)

当差值DT与前述S012中的CorrPos最接近时,确定此组信号分别为首站异常信号和对应的末站异常信号;When the difference DT is the closest to the CorrPos in the aforementioned S012, it is determined that this group of signals is the abnormal signal of the first station and the corresponding abnormal signal of the last station;

S314,得到首站异常信号的峰值Peak(Rangeup)和末站异常信号的峰值Peak(Rangedn),并进一步得到所述首站异常信号的峰值与所述末站异常信号的峰值比。S314. Obtain the peak value Peak(Range up ) of the abnormal signal at the first station and the peak value Peak(Range dn ) of the abnormal signal at the last station, and further obtain the peak value ratio of the abnormal signal at the first station to the peak value of the abnormal signal at the last station.

此处需要说明的是,确定首站异常信号峰值与末站异常信号峰值比的预设范围之后才实际对异常信号的同源性进行监测。在监测过程中,如图2所示,监测到异常信号后,也要执行步骤S011~S015对信号进行处理并计算出异常信号定位位置为距首站距离l、相关系数峰值位置CorrPos。并继续执行步骤S311~S314。如图2所示,得到时域重构信号后,继续按信号幅值的极性划分正负区间(S311),根据定位结果结合差分计算找出异常信号发生时刻,得到异常信号峰值,根据归一化峰值突出程度确定异常信号所在区间(S312~S313),之后执行步骤S314计算首站异常信号的峰值与所述末站异常信号的峰值比,最后根据预设范围进行判断管道是否发生泄漏,若是则发出泄漏报警,若否,则判定为非同源信号,不报警。What needs to be explained here is that the homology of the abnormal signal is actually monitored after the preset range of the ratio of the peak value of the abnormal signal at the first station to the peak value of the abnormal signal at the last station is determined. During the monitoring process, as shown in Figure 2, after monitoring the abnormal signal, steps S011-S015 are also performed to process the signal and calculate the location of the abnormal signal as the distance l from the first station and the peak position of the correlation coefficient CorrPos. And continue to execute steps S311-S314. As shown in Figure 2, after obtaining the time-domain reconstructed signal, continue to divide the positive and negative intervals according to the polarity of the signal amplitude (S311), find out the time when the abnormal signal occurs according to the positioning result combined with the difference calculation, and obtain the peak value of the abnormal signal. Determine the interval of the abnormal signal according to the peak prominence degree (S312-S313), then perform step S314 to calculate the peak value ratio of the abnormal signal at the first station to the peak value of the abnormal signal at the last station, and finally judge whether the pipeline leaks according to the preset range, If so, a leak alarm will be issued, if not, it will be judged as a non-homologous signal, and no alarm will be issued.

下面举一个具体的实例对本发明的方法的应用进行说明。A specific example is given below to illustrate the application of the method of the present invention.

选取两个异常信号样本进行识别,样本1为干扰信号、样本2为泄漏信号,两个样本均为一帧完整的信号。算法流程如图2所示,且本发明的方法可以用任何语言编程实现,并在电脑上运行。Two abnormal signal samples are selected for identification, sample 1 is an interference signal, sample 2 is a leakage signal, and both samples are a complete signal of one frame. The algorithm flow is shown in Figure 2, and the method of the present invention can be implemented by programming in any language and run on a computer.

步骤1.通过对一定量的待测管道的异常信号和正常信号的频谱图进行统计、比对,异常信号频带范围为频谱中第5到第45根谱线与第5967到5997根谱线(傅里叶变换频谱的对称性)。根据历史数据建立的衰减模型中αsmax=-0.2785,αsmin=-0.4884,αnmax=1.9640,αnmin=1.5746。通过异常信号诊断方法,诊断出此两帧信号中均存在异常信号,信号长度为N=6000点,采样率为50Hz,管道总长度L=12.409km。Step 1. By making statistics and comparing the spectrum diagrams of the abnormal signals and normal signals of a certain amount of pipelines to be tested, the abnormal signal frequency range is the 5th to 45th spectral lines and the 5967th to 5997th spectral lines in the spectrum ( Symmetry of the Fourier transform spectrum). In the attenuation model established according to historical data, α smax =-0.2785, α smin =-0.4884, α nmax =1.9640, α nmin =1.5746. Through the abnormal signal diagnosis method, it is diagnosed that there are abnormal signals in the two frames of signals, the signal length is N=6000 points, the sampling rate is 50Hz, and the total length of the pipeline is L=12.409km.

步骤2.采用滑动平均滤波去噪,尺度为100;经过滑动平均滤波去噪和去均值,得到双极性的首末站信号。其中图3为处理后的样本1首末站信号,图4为样本2首末站信号。两个图中上部的图为首站信号示意图,下部的图为末站的信号示意图。Step 2. Use moving average filtering to denoise, and the scale is 100; after moving average filtering and de-averaging, a bipolar signal of the first and last stations is obtained. Figure 3 shows the signal of the first and last station of sample 1 after processing, and Figure 4 shows the signal of the first and last station of sample 2. The upper part of the two figures is the signal diagram of the first station, and the lower part is the signal diagram of the last station.

步骤3.计算样本1与样本2的相关系数峰值,并计算得到样本1的异常信号定位位置为l1=8.6161km,样本2的异常信号定位位置为l2=0.6006kmStep 3. Calculate the peak value of the correlation coefficient between sample 1 and sample 2, and calculate the location of the abnormal signal of sample 1 as l 1 =8.6161km, and the location of the abnormal signal of sample 2 as l 2 =0.6006km

步骤4.将首末站信号的频谱中除步骤1中所述异常信号所在频带范围之外的谱线都清为0。Step 4. In the frequency spectrum of the first and last station signals, all the spectral lines except the frequency band of the abnormal signal mentioned in step 1 are cleared to 0.

步骤5.将上述频域滤波后的频谱通过傅里叶反变换得到时域重构波形,样本1的时域重构波形如图5所示,样本2的时域重构波形如图6所示。Step 5. Inverse Fourier transform the above frequency domain filtered spectrum to obtain the time domain reconstruction waveform, the time domain reconstruction waveform of sample 1 is shown in Figure 5, and the time domain reconstruction waveform of sample 2 is shown in Figure 6 Show.

步骤6.根据信号幅值的极性,将首末站的信号分为若干正负区间。此例中样本1首站信号区间个数为46个,末站信号区间个数为49个;样本2首站信号区间个数为37个,末站信号区间个数为55个。Step 6. According to the polarity of the signal amplitude, the signals of the first and last stations are divided into several positive and negative intervals. In this example, sample 1 has 46 first-station signal intervals and 49 last-station signal intervals; sample 2 has 37 first-station signal intervals and 55 last-station signal intervals.

步骤7.样本1首站异常信号位于第37个区间,末站异常信号位于第34个区间,将区间内信号做延时尺度为50的差分计算,首站信号差分后极值点位置为x1(4248)、末站为y1(3908),首站异常信号峰值Peakup1=227.3970、末站异常信号峰值Peakdn1=581.4869,幅值比为r1=Peakup1/Peakdn1=0.3911。Step 7. The abnormal signal of the first station of sample 1 is located in the 37th interval, and the abnormal signal of the last station is located in the 34th interval. The signal in the interval is calculated as a difference with a delay scale of 50. The position of the extreme point after the signal difference of the first station is x 1 (4248), the last station is y 1 (3908), the abnormal signal peak value of the first station Peak up1 =227.3970, the abnormal signal peak value of the last station Peak dn1 = 581.4869, and the amplitude ratio is r 1 =Peak up1 /Peak dn1 =0.3911.

样本2首站异常信号位于第9个区间,末站异常信号位于第17个区间,将区间内信号做延时尺度为50的差分计算,首站异常信号差分后极值点位置为x2(957)、末站为y2(1775),首站异常信号峰值Peakup2=181.4235、末站异常信号峰值Peakdn2=294.1498,幅值比为r2=Peakup2/Peakdn2=0.6168。The abnormal signal of the first station of sample 2 is located in the 9th interval, and the abnormal signal of the last station is located in the 17th interval. The signal in the interval is calculated as a difference with a delay scale of 50, and the position of the extreme point after the difference of the abnormal signal of the first station is x 2 ( 957), the last station is y 2 (1775), the abnormal signal peak value of the first station Peak up2 =181.4235, the abnormal signal peak value of the last station Peak dn2 = 294.1498 , and the amplitude ratio is r 2 =Peak up2 /Peak dn2 = 0.6168 .

步骤8.将样本1与样本2的定位距离代入模型得出样本1幅值比取值区间为[0.2203,0.3087],样本2的幅值比取值区间为[0.5713,0.7109]。样本2的幅值比r2在取值区间内,判定为同源的泄漏信号;样本1的幅值比r1在取值区间外,判定为非同源干扰信号。Step 8. Substituting the positioning distance between sample 1 and sample 2 into the model, the value range of the amplitude ratio of sample 1 is [0.2203,0.3087], and the value range of the amplitude ratio of sample 2 is [0.5713,0.7109]. If the amplitude ratio r 2 of sample 2 is within the value interval, it is judged as a homologous leakage signal; if the amplitude ratio r 1 of sample 1 is outside the value interval, it is judged as a non-homologous interference signal.

本发明的降低管道泄漏监测误报率的方法基于声波传播衰减模型,根据管道实际信号建模,大大降低传感器灵敏度与变送器放大倍数的影响。由于干扰信号的时频特性与泄漏信号时频特性较接近,采用以往的模式识别方法很难区分,容易造成误报。而本方法能够有效、快速地实现管道泄漏干扰信号的识别,提高管道泄漏监测报警的准确性,且具有较好的鲁棒性。The method for reducing the false alarm rate of pipeline leakage monitoring in the present invention is based on the sound wave propagation attenuation model, and is modeled according to the actual signal of the pipeline, thereby greatly reducing the influence of the sensitivity of the sensor and the magnification of the transmitter. Since the time-frequency characteristics of the interference signal are close to those of the leakage signal, it is difficult to distinguish them by the previous pattern recognition method, which may easily cause false positives. However, the method can effectively and quickly realize the identification of pipeline leakage interference signals, improve the accuracy of pipeline leakage monitoring and alarm, and has better robustness.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (6)

1. it is a kind of reduce line leakage rate of false alarm method, it is characterised in that comprise the following steps:
It is real-time respectively, continuous by the second sound wave monitor for being arranged on the first sound wave monitoring instrument and pipeline terminal of pipeline initial station Initial station acoustic signals and terminal acoustic signals inside ground monitoring pipeline;
When monitoring that initial station and terminal simultaneously when there is abnormal signal, calculate the abnormal letter in initial station in the acoustic signals of initial station respectively Terminal abnormal signal peak value in number peak value and terminal acoustic signals;
The peakedness ratio between the initial station abnormal signal peak value and terminal abnormal signal peak value is judged whether in preset range, if It is that then the pipeline occurs leakage;If it is not, then there is no leakage in the pipeline;
The step of the preset range for also including determining the ratio between the initial station abnormal signal peak value and terminal abnormal signal peak value Suddenly;
Wherein, the preset range of the ratio between the initial station abnormal signal peak value and the terminal abnormal signal peak value is to pass through Build what Acoustic Wave Propagation attenuation model in the pipeline was realized.
2. it is according to claim 1 reduce line leakage rate of false alarm method, it is characterised in that it is described by arrange In real time, continuously monitored in pipeline in the second sound wave monitor of the first sound wave monitoring instrument and pipeline terminal of pipeline initial station respectively The initial station acoustic signals and terminal acoustic signals in portion, comprise the following steps:
With sampling period T sample respectively the first sound wave monitoring instrument and the second sound wave monitor output the initial station sound Ripple signal and the terminal acoustic signals two paths of signals, stamp time mark respectively at whole moment minute to the two paths of signals for gathering Sign;
The continuous two minutes initial station acoustic signals and the terminal acoustic signals are extracted respectively, wherein previous minute signal is to go through History data, one minute after signal is real time data, and the historical data and the real time data constitute complete pending of a frame Initial station acoustic signals and terminal acoustic signals;
Wherein, T is the positive number more than 0.
3. it is according to claim 2 reduce line leakage rate of false alarm method, it is characterised in that described in the determination The step of preset range of the ratio between initial station abnormal signal peak value and terminal abnormal signal peak value, specifically include following step Suddenly:
Obtain multigroup initial station acoustic signals and terminal acoustic signals and be filtered, denoising and remove average value processing, after obtaining denoising Signal;
The peak value of the coefficient correlation of initial station abnormal signal and terminal abnormal signal is obtained to the signal after denoising by correlation computations Position, is denoted as CorrPos, and according to formula:
1 = V u p ( L + CorrPosV d n ) V u p + V d n ,
Determine that abnormal signal occurs distance of the position far from initial station, wherein, l is that abnormal signal occurs distance of the position far from initial station, and L is Pipeline total length, VdnWith VupAcoustic signals spread speed respectively from initial station to terminal and from terminal to initial station;
After the monitoring of Preset Time, initial station abnormal signal and homologous terminal letter extremely that position location is initial station are obtained Number, and the initial station abnormal signal and homologous terminal abnormal signal that position location is terminal, and obtain the first predetermined number Initial station normal signal and terminal normal signal;
Discrete Fourier transform is carried out to the signal after the denoising, the frequency spectrum of the signal after denoising is obtained;
The frequency spectrum of normal signal and abnormal signal is compared, the frequency spectrum of the abnormal signal is intercepted;
The frequency spectrum of the abnormal signal after to intercepting carries out Fourier inversion, after obtaining the time domain reconstruction of the abnormal signal Signal;
The peak value of initial station abnormal signal and the peak of homologous terminal abnormal signal are determined according to the amplitude of the signal after time domain reconstruction The peakedness ratio of value;
According to sound wave along pipeline propagation attenuation formula:
P e a k = Peak 0 e - ∝ 1 L ,
Wherein, Peak0There is the initial magnitude of point acoustic signals for abnormal sound wave, Peak is the signal amplitude after propagation attenuation, l There is distance of the position far from initial station for abnormal signal, L is pipeline total length, and α is Acoustic Wave Propagation attenuation coefficient, at first stop the sound of generation Ripple signal downstream propagation is to terminal, and terminal produces acoustic signals adverse current when traveling to initial station, and which meets respectively:
Peak d n = Peak u p e - α s L L
Peak u p = Peak d n e - α n L L
PeakupFor the abnormal signal amplitude that initial station collects, PeakdnFor the homologous abnormal signal amplitude that terminal is collected, αs With αnPropagation attenuation coefficient when respectively following current is propagated with adverse current;
Acoustic signals downstream propagation attenuation coefficient α is can be calculated furthersWith adverse current propagation attenuation factor alphanFor:
α s = - ln ( Peak d n Peak u p )
α n = - l n ( Peak u p Peak d n )
α is obtained according to peakedness ratio of the initial station abnormal signal with the homologous abnormal signal of terminalsAnd αnValue;
Determine that sound wave is believed with reference to the peakedness ratio of the paired initial station abnormal signal and homologous terminal abnormal signal of the second predetermined number Number downstream propagation attenuation coefficient αsWith adverse current propagation attenuation factor alphanScope be:
αs min≤αs≤αs max
αn min≤αn≤αn max
For generation is in the leakage acoustic signals away from initial station l distances, its initial station abnormal signal and homologous terminal abnormal signal Peakedness ratio r meets following relation:
r = Peak u p Peak d n = e - α n 1 L e - α s ( L - 1 ) L ;
Acoustic Wave Propagation attenuation coefficient is constituted into four groups of [αs minn min],[αs minn max],[αs maxn min],[αs max, αn max], four r values are obtained, and maximum is designated as into rmax, minimum of a value is designated as rmin, then initial station abnormal signal and homologous terminal The span of the peakedness ratio of abnormal signal is:
4. it is according to claim 3 reduce line leakage rate of false alarm method, it is characterised in that judge the initial station Peakedness ratio between abnormal signal peak value and terminal abnormal signal peak value whether in preset range, if so, then send out by the pipeline Raw leakage;If it is not, then the pipeline does not occur leakage, comprise the following steps:
Calculate the peakedness ratio between the initial station abnormal signal peak value and the terminal abnormal signal peak value;
According to formulaAnd αsWith αnValue calculate the preset range of the peakedness ratio;
Judge the peakedness ratio whether in the preset range for being calculated;
If so, then first and last station abnormal signal is homologous signal, sends leakage alarm;
If it is not, then first and last station abnormal signal is non-homogeneous signal, leakage alarm is not sent.
5. it is according to claim 3 reduce line leakage rate of false alarm method, it is characterised in that it is described according to time domain The amplitude of the signal after reconstruct determines the peakedness ratio of the peak value of initial station abnormal signal and the peak value of terminal abnormal signal, including following Step:
Positive and negative interval is divided according to the polarity of the amplitude, and obtains each interval peak value and be designated as Peak [i], positive interval takes Maximum, takes minimum of a value between minus zone, wherein, 1≤i≤NPeak, NPeakFor the complete pending initial station acoustic signals of a frame or end The interval sum stood in acoustic signals;
The average of positive peak and negative peak is calculated, meanVP and meanVN is designated as respectively, and will be more than in positive signal peak value The peak value of meanVP calculates normalization peak value projecting degree index L according to equation belowP, and when positive peak is seasonal less than meanVP LPFor 0,
L p = P e a k [ i ] - m e a n V P P e a k [ i ] , 1 ≤ i ≤ N P e a k , P e a k [ i ] > 0 ;
Peak value of the amplitude in negative peak more than meanVN is calculated into normalization peak value projecting degree index L according to equation belowN, and When negative peak is more than meanVN season LNFor 0,
L N = P e a k &lsqb; i &rsqb; - m e a n V N P e a k &lsqb; i &rsqb; , 1 &le; i &le; N P e a k , P e a k &lsqb; i &rsqb; < 0 ;
The signal that the normalization peak value projecting degree index is less than the signal spacing of predetermined threshold value is 0 clearly, it is determined that described return One changes peak value be located interval and generation moment LeakPos of the peak value projecting degree index higher than predetermined threshold value;
When there are multiple abnormal signals, one abnormal signal of initial station and the LeakPos's of each abnormal signal of terminal are calculated successively Difference:
DT=LeakPosup(i)-LeakPosdn(j)
When difference DT and the CorrPos closest to when, determine that this group of signal is respectively initial station abnormal signal and corresponding terminal Abnormal signal, now interval sequence number be designated as Range respectivelyupWith Rangedn
And then obtain the peak value Peak (Range of initial station abnormal signalup) and terminal abnormal signal peak value Peak (Rangedn), and The peak value of the initial station abnormal signal and the peakedness ratio of the terminal abnormal signal are obtained further.
6. it is according to claim 2 reduce line leakage rate of false alarm method, it is characterised in that using pipeline initial station The first sound wave monitoring instrument and pipeline terminal the second sound wave monitor monitoring pipeline inside initial station acoustic signals and terminal sound During ripple signal, precision time service is carried out using global positioning system.
CN201410484122.2A 2014-09-19 2014-09-19 The method for reducing line leakage rate of false alarm Expired - Fee Related CN104373820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410484122.2A CN104373820B (en) 2014-09-19 2014-09-19 The method for reducing line leakage rate of false alarm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410484122.2A CN104373820B (en) 2014-09-19 2014-09-19 The method for reducing line leakage rate of false alarm

Publications (2)

Publication Number Publication Date
CN104373820A CN104373820A (en) 2015-02-25
CN104373820B true CN104373820B (en) 2017-03-29

Family

ID=52552897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410484122.2A Expired - Fee Related CN104373820B (en) 2014-09-19 2014-09-19 The method for reducing line leakage rate of false alarm

Country Status (1)

Country Link
CN (1) CN104373820B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2553681B (en) 2015-01-07 2019-06-26 Homeserve Plc Flow detection device
CN106594529B (en) * 2017-01-20 2018-08-24 合肥工业大学 Leakage signal spread speed measurement method based on short-time energy and linear fit
GB2571145B (en) * 2018-05-02 2021-05-26 Centrica Plc Flow alert system and method
CN109340585B (en) * 2018-10-26 2020-10-27 北京化工大学 A kind of pipeline leak detection and location method
CN110939875B (en) * 2019-12-17 2021-09-28 上海隧道工程股份有限公司 Pipeline leakage detection and positioning method and system based on spectral line analysis
CN111059476B (en) * 2019-12-17 2021-09-14 上海隧道工程股份有限公司 Pipeline leakage positioning method and system
CN112434561B (en) * 2020-11-03 2023-09-22 中国工程物理研究院电子工程研究所 Method for automatically judging effectiveness of shock wave signal
CN114877263B (en) * 2022-04-27 2023-04-07 华中科技大学 Pipeline micro-leakage characteristic information monitoring method, system, equipment and medium
CN114998528A (en) * 2022-06-27 2022-09-02 西安热工研究院有限公司 Pipeline leakage detection system and method based on nano robot technology
CN117911402B (en) * 2024-03-15 2024-05-31 宝鸡铭扬泵业有限公司 Water pump impeller appearance defect detection method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6389881B1 (en) * 1999-05-27 2002-05-21 Acoustic Systems, Inc. Method and apparatus for pattern match filtering for real time acoustic pipeline leak detection and location
CN101487567A (en) * 2008-01-18 2009-07-22 北京世纪华扬能源科技有限公司 Acoustic wave leakage detecting and positioning device
CN101551064A (en) * 2009-05-22 2009-10-07 重庆大学 Water supply pipe leakage detection locating signal processing method
US7607351B2 (en) * 2007-06-26 2009-10-27 General Electric Company Acoustic impact detection and monitoring system
CN102563361A (en) * 2012-01-18 2012-07-11 中国石油大学(华东) Device and method for detecting and positioning leakage of gas transmission pipeline based on conventional data and sound wave signals
CN102588745A (en) * 2012-03-05 2012-07-18 北京化工大学 Pipeline leakage positioning method
CN104048165A (en) * 2013-08-16 2014-09-17 北京化工大学 Pipeline leakage diagnosing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6389881B1 (en) * 1999-05-27 2002-05-21 Acoustic Systems, Inc. Method and apparatus for pattern match filtering for real time acoustic pipeline leak detection and location
US7607351B2 (en) * 2007-06-26 2009-10-27 General Electric Company Acoustic impact detection and monitoring system
CN101487567A (en) * 2008-01-18 2009-07-22 北京世纪华扬能源科技有限公司 Acoustic wave leakage detecting and positioning device
CN101551064A (en) * 2009-05-22 2009-10-07 重庆大学 Water supply pipe leakage detection locating signal processing method
CN102563361A (en) * 2012-01-18 2012-07-11 中国石油大学(华东) Device and method for detecting and positioning leakage of gas transmission pipeline based on conventional data and sound wave signals
CN102588745A (en) * 2012-03-05 2012-07-18 北京化工大学 Pipeline leakage positioning method
CN104048165A (en) * 2013-08-16 2014-09-17 北京化工大学 Pipeline leakage diagnosing method

Also Published As

Publication number Publication date
CN104373820A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN104373820B (en) The method for reducing line leakage rate of false alarm
CN102537670B (en) A method for diagnosing pipeline leaks
CN109357167B (en) Gas pipeline leakage point detection device and detection method
CN102588745B (en) Pipeline leakage positioning method
CN102563361A (en) Device and method for detecting and positioning leakage of gas transmission pipeline based on conventional data and sound wave signals
CN105042339B (en) One kind is based on nondimensional leakage of finished oil pipeline amount estimating system and method
CN104595730B (en) A kind of oil and gas pipeline leakage localization method based on magnitudes of acoustic waves attenuation model
CN104595729B (en) A kind of oil and gas pipeline leakage localization method based on magnitudes of acoustic waves
CN107228282B (en) Method and device for locating leakage of natural gas pipeline
CN106704834A (en) Device and method for infrasonic monitoring and pipe leakage positioning
CN103234121A (en) Acoustic signal based device and method for detecting gas pipeline leakages
CN106289121B (en) A kind of computational methods of the equivalent pipe range of reducer pipe
CN107084313A (en) Ore slurry pipeline leaks positioning alarm system and method
JPH11201859A (en) Method for detecting leak in pipe by frequency band division
CN101718396B (en) Method and device for detecting leakage of fluid conveying pipeline based on wavelet and mode identification
CN103629534B (en) Oil pipeline leakage detection and positioning method based on comprehensive signals
CN103939750B (en) The detection identification of a kind of fire water pipeline leakage and localization method
CN107218931A (en) A kind of internal wave of ocean early warning system and method based on online monitoring data
CN109708009B (en) Device and method for positioning different water leakage amounts of water supply pipeline
CN106813108A (en) A kind of leakage locating method based on speed difference
Sitaropoulos et al. Frequency-based leak signature investigation using acoustic sensors in urban water distribution networks
CN108194843B (en) A method of it is leaked using sonic detection pipeline
CN111520615A (en) Pipe network leakage identification and positioning method based on line spectrum pair and cubic interpolation search
CN105953080A (en) Sound wave leakage positioning method based on same-side sensor arrangement
CN113375875A (en) Acoustic detection system and method for chronic leakage of water supply pipeline

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170329

Termination date: 20200919

CF01 Termination of patent right due to non-payment of annual fee