Nothing Special   »   [go: up one dir, main page]

CN109555979B - Water supply pipe network leakage monitoring method - Google Patents

Water supply pipe network leakage monitoring method Download PDF

Info

Publication number
CN109555979B
CN109555979B CN201811507342.7A CN201811507342A CN109555979B CN 109555979 B CN109555979 B CN 109555979B CN 201811507342 A CN201811507342 A CN 201811507342A CN 109555979 B CN109555979 B CN 109555979B
Authority
CN
China
Prior art keywords
leakage
data
water supply
layer
classifier
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.)
Active
Application number
CN201811507342.7A
Other languages
Chinese (zh)
Other versions
CN109555979A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201811507342.7A priority Critical patent/CN109555979B/en
Publication of CN109555979A publication Critical patent/CN109555979A/en
Application granted granted Critical
Publication of CN109555979B publication Critical patent/CN109555979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

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

Abstract

本公开提供了一种供水管网漏损监测方法,包括以下步骤:S1,获取供水管网数据;S2,建立基于深度神经网络的异构双分类器漏损识别模型;以及S3,利用所述供水管网数据和所述异构双分类器漏损识别模型进行供水管网漏损识别。本公开供水管网漏损监测方法有效提高了管道漏损检测、定位的计算效率,扩大了管道漏损检测方法的适用范围,能够在复杂工况条件下进行高精度的漏点检测、定位。

Figure 201811507342

The present disclosure provides a leakage monitoring method for a water supply pipe network, comprising the following steps: S1, acquiring water supply pipe network data; S2, establishing a leakage identification model based on a deep neural network with a heterogeneous double classifier; and S3, using the The water supply pipe network data and the heterogeneous dual-classifier leakage identification model are used to identify the leakage of the water supply pipe network. The leakage monitoring method of the water supply pipe network disclosed in the present disclosure effectively improves the calculation efficiency of pipeline leakage detection and positioning, expands the applicable scope of the pipeline leakage detection method, and can perform high-precision leakage detection and positioning under complex working conditions.

Figure 201811507342

Description

一种供水管网漏损监测方法A method for monitoring leakage of water supply pipe network

技术领域technical field

本公开属于城市供水管网探漏领域,具体涉及一种供水管网漏损监测方法。The disclosure belongs to the field of leakage detection of urban water supply pipe networks, and in particular relates to a method for monitoring leakage of water supply pipe networks.

背景技术Background technique

水资源是人类生存和发展的基础,我国水资源总量存储丰富,位列全球第四位,但人均水资源拥有量仅为2300立方米,相当于世界平均水平的1/4左右,因此,我国又是一个水资源短缺的国家。城市供水管网系统是城市基础设施建设的重要领域,被称为“生命线工程”。然而,供水管网的漏损问题一直困扰着全国各大自来水公司,不仅造成了资源和能源的浪费,还会造成地面沉降等次生灾害,影响城市安全。建设部调查资料显示,我国大多数城市的供水管网漏失率在15%~35%之间,而在日本、美国和欧洲等发达国家的漏失率在上个世纪末就已经普遍控制在10%左右,甚至是更低的水平,可见我国管网漏损的控制管理急需加强。Water resources are the foundation of human survival and development. my country's total water resources are abundant, ranking fourth in the world, but the per capita water resources are only 2,300 cubic meters, which is equivalent to about 1/4 of the world's average level. Therefore, my country is also a water shortage country. The urban water supply pipe network system is an important area of urban infrastructure construction, which is called "lifeline project". However, the leakage of the water supply pipe network has always plagued major water companies in the country, which not only causes waste of resources and energy, but also causes secondary disasters such as land subsidence, which affects urban security. According to the survey data of the Ministry of Construction, the leakage rate of water supply network in most cities in my country is between 15% and 35%, while the leakage rate in developed countries such as Japan, the United States and Europe has been generally controlled at about 10% at the end of the last century. , or even a lower level, it can be seen that the control and management of pipeline network leakage in my country urgently needs to be strengthened.

目前供水管网漏损检测的方法有被动检测法、区域装表法、地表雷达捡漏法、示踪剂检测法、声学检测法、光纤传感技术法、负压波法、实时瞬态模型法等,上述的众多管道漏损检测方法,大多数方法由于其使用条件苛刻、操作复杂、捡漏成本高等缺点,实际的运用效果并不理想。而声学检测法简单可靠、检测效率高、适用范围广等优点被广泛用于管道漏损检测和定位中。然而,由于对供水管网漏损声信号产生机理和特征的认识不足,对实际中复杂的供水管网拓扑结构考虑不足,使目前已有的管道漏损检测方法在实际运用中受限,管道漏损识别准确率低,误报率高,尤其是在检测现场存在多种固定干扰噪声、漏点泄漏量较小或者管网结构复杂、部分管线信息未知的情况下。At present, the leakage detection methods of water supply pipe network include passive detection method, regional metering method, surface radar leakage detection method, tracer detection method, acoustic detection method, optical fiber sensing technology method, negative pressure wave method, and real-time transient model method. Etc., many of the above-mentioned pipeline leakage detection methods, most of the methods are not ideal due to their harsh use conditions, complex operations, and high leakage detection costs. The acoustic detection method is widely used in pipeline leakage detection and location due to its advantages of simple and reliable, high detection efficiency and wide application range. However, due to insufficient understanding of the generation mechanism and characteristics of the leakage acoustic signal of the water supply pipe network, and insufficient consideration of the complex topology structure of the water supply pipe network in practice, the existing pipeline leakage detection methods are limited in practical application. The leakage identification accuracy is low, and the false alarm rate is high, especially when there are various fixed interference noises on the detection site, the leakage at the leakage point is small, or the pipeline network structure is complex, and some pipeline information is unknown.

所以,立足于我国城市供水管网的现状和未来发展趋势,将声波传输理论、深度神经网络模型、局部搜索定位模型用于管道结构性缺陷及内外腐蚀等原因造成的管道漏损检测,建立有效的供水管网漏损识别与定位的技术方法,为管网结构维护、维修与管理决策提供依据和指导,降低管网漏损率,保障供水管网安全运行。Therefore, based on the current situation and future development trend of my country's urban water supply pipeline network, the acoustic wave transmission theory, deep neural network model, and local search and positioning model are used to detect pipeline leakage caused by structural defects of pipelines and internal and external corrosion. The technical method of identifying and locating the leakage of the water supply pipe network provides the basis and guidance for the maintenance, repair and management of the pipe network, reducing the leakage rate of the pipe network and ensuring the safe operation of the water supply pipe network.

发明内容SUMMARY OF THE INVENTION

(一)要解决的技术问题(1) Technical problems to be solved

鉴于上述问题,本公开的主要目的在于提供一种供水管网漏损监测方法,以便解决上述问题的至少之一。In view of the above problems, the main purpose of the present disclosure is to provide a leakage monitoring method for a water supply pipe network, so as to solve at least one of the above problems.

(二)技术方案(2) Technical solutions

为了达到上述目的,作为本公开的一个方面,提供了一种供水管网漏损监测方法,包括以下步骤:In order to achieve the above purpose, as an aspect of the present disclosure, a method for monitoring leakage of a water supply pipe network is provided, comprising the following steps:

S1,获取供水管网数据;S1, obtain water supply pipe network data;

S2,建立基于深度神经网络的异构双分类器漏损识别模型;以及S2, establish a heterogeneous dual classifier leakage recognition model based on deep neural network; and

S3,利用所述供水管网数据和所述异构双分类器漏损识别模型进行供水管网漏损识别;其中,所述供水管网数据包括沿水介质传播的漏损声信号数据、供水管内流量数据、供水管内压力数据、管材数据和管径数据。S3, using the water supply pipe network data and the heterogeneous dual-classifier leakage identification model to identify water supply pipe network leakage; wherein the water supply pipe network data includes leakage sound signal data propagating along the water medium, water supply Pipe flow data, water supply pipe pressure data, pipe material data and pipe diameter data.

在一些实施例中,在所述步骤S3之后还包括:In some embodiments, after the step S3, it further includes:

S4,建立基于供水管网拓扑结构的局部搜索定位模型;以及S4, establishing a local search and positioning model based on the topology of the water supply pipe network; and

S5,利用所述供水管网漏损识别结果和所述局部搜索定位模型进行漏损定位。S5, using the water supply pipe network leakage identification result and the local search and positioning model to locate leakage.

在一些实施例中,所述基于深度神经网络的异构双分类器漏损识别模型包括卷积层、最大池化层、长短时神经网络层、第一全连接层、融合层、第二全连接层、支持向量机分类器、逻辑回归分类器、和异构双分类器。In some embodiments, the deep neural network-based heterogeneous dual classifier leakage identification model includes a convolutional layer, a max pooling layer, a long and short-term neural network layer, a first fully connected layer, a fusion layer, a second full Connection layers, support vector machine classifiers, logistic regression classifiers, and heterogeneous dual classifiers.

在一些实施例中,所述步骤S3包括:In some embodiments, the step S3 includes:

卷积层接收漏损声信号数据;The convolutional layer receives the leaked acoustic signal data;

最大池化层将所述卷积层的输出划分为m个子区域,提取每个所述子区域的最大值组成输出,m为正整数;The maximum pooling layer divides the output of the convolutional layer into m sub-regions, and extracts the maximum value of each of the sub-regions to form an output, where m is a positive integer;

长短时神经网络层对所述最大池化层的输出进行非线性数据处理;The long and short-term neural network layer performs nonlinear data processing on the output of the maximum pooling layer;

第一全连接层接收流量数据、压力数据、管材数据和管径数据;The first fully connected layer receives flow data, pressure data, pipe material data and pipe diameter data;

融合层接收所述长短时神经网络层和第一全连接层的输出;The fusion layer receives the output of the long and short-term neural network layer and the first fully connected layer;

第二全连接层接收所述融合层的输出;The second fully connected layer receives the output of the fusion layer;

第二全连接层分别与支持向量机分类器和逻辑回归分类器连接;The second fully connected layer is connected with the support vector machine classifier and the logistic regression classifier respectively;

支持向量机分类器接收所述第二全连接层的输出,对供水管网漏损事件进行分类识别,输出分类向量Y1;逻辑回归分类器接收所述第二全连接层的输出,对供水管网漏损事件进行分类识别,输出分类向量Y2,所述分类向量Y1和分类向量Y2为对于每种漏损识别结果出现的概率值;The support vector machine classifier receives the output of the second fully connected layer, classifies and identifies the leakage events of the water supply pipe network, and outputs a classification vector Y1; the logistic regression classifier receives the output of the second fully connected layer, and analyzes the water supply pipe network. The network leakage event is classified and identified, and a classification vector Y2 is output, and the classification vector Y1 and the classification vector Y2 are the probability values for each leakage identification result;

异构双分类器根据上述分类向量Y1和分类向量Y2,根据式(1)计算得到漏损识别结果Y,The heterogeneous double classifier calculates the leakage identification result Y according to the above-mentioned classification vector Y1 and classification vector Y2 according to formula (1),

Y=β1*Y1+β2*Y2 式(1)Y=β1*Y1+β2*Y2 Formula (1)

其中,β1+β2=1,0<β1<1,0<β2<1。Among them, β1+β2=1, 0<β1<1, 0<β2<1.

在一些实施例中,利用水听器传感器获取所述漏损声信号数据、利用流量计传感器获取流量数据、利用压力计传感器获取压力数据。In some embodiments, the leakage acoustic signal data is obtained using a hydrophone sensor, the flow data is obtained using a flow meter sensor, and the pressure data is obtained using a pressure gauge sensor.

在一些实施例中,通过漏损识别模型确定发生漏损事件时所对应的传感器Sk,在所对应的传感器的个数大于或等于2时进行所述漏损定位。In some embodiments, a leakage identification model is used to determine the corresponding sensor Sk when a leakage event occurs, and the leakage localization is performed when the number of the corresponding sensors is greater than or equal to 2.

在一些实施例中,所述步骤S5包括:In some embodiments, the step S5 includes:

以所述传感器Sk为基点,以最短路径在管网图上形成一个闭合回路,所述闭合回路包括i个管道节点,对应的管道节点编号为ri;j根管道,对应的管道编号为lj;k个传感器,对应的传感器编号为Sk,i、j、k均为正整数,所述最短路径是指经过传感器Sk的闭合回路的最短周长;Taking the sensor Sk as a base point, a closed loop is formed on the pipe network diagram with the shortest path, and the closed loop includes i pipeline nodes, and the corresponding pipeline node numbers are r i ; j pipelines, the corresponding pipeline numbers are l j ; k sensors, the corresponding sensor numbers are S k , i, j, and k are all positive integers, and the shortest path refers to the shortest perimeter of the closed loop passing through the sensor S k ;

利用目标函数fi在闭合回路中搜索离漏损点最近的管道节点,依次计算i个管道节点的fi值,选取最小的fi值所对应的管道节点c作为离漏损点最近的虚拟漏点vcUse the objective function f i to search for the pipeline node closest to the leak point in the closed loop, calculate the f i values of i pipeline nodes in turn, and select the pipeline node c corresponding to the smallest f i value as the virtual closest to the leak point. leak point v c ;

以虚拟漏点vc为中心,搜索路径为与虚拟漏点vc相连接的管线,每隔z米设置1个虚拟漏点vg(g=1...n),共n个,依次计算这n个虚拟漏点的fi值,选取最小的fi值所对应的虚拟漏点作为最终的漏损定位点。Taking the virtual leak point v c as the center, the search path is the pipeline connected to the virtual leak point v c , and a virtual leak point v g (g=1...n) is set every z meters, a total of n, in order Calculate the f i values of the n virtual leak points, and select the virtual leak point corresponding to the smallest f i value as the final leak location point.

在一些实施例中,所述目标函数如式(2)所示,In some embodiments, the objective function is shown in formula (2),

fi=∑a≠b(|ta-tb|-|ωiaib|)2 式(2)f i =∑ a≠b (|t a -t b |-|ω iaib |) 2 Equation (2)

式(2)中,fi表示第i个节点处的漏损声信号到达不同传感器的时间差的误差平方值,ta表示漏损声信号到达传感器a所需要的时间,tb表示漏损声信号到达传感器b所需要的时间,ωia表示漏损声信号从节点i到达传感器a所需要的时间,ωib表示漏损声信号从节点i到达传感器b所需要的时间,节点i可以是管道节点或虚拟漏点。In formula (2), f i represents the squared error value of the time difference between the acoustic leakage signal at the i-th node reaching different sensors, t a represents the time it takes for the acoustic leakage signal to reach sensor a, and t b represents the acoustic leakage The time it takes for the signal to reach sensor b, ω ia is the time it takes for the acoustic leakage signal to reach sensor a from node i, ω ib is the time it takes for the acoustic leak signal to reach sensor b from node i, and node i can be a pipe Nodes or virtual leaks.

在一些实施例中,所述步骤S2包括:In some embodiments, the step S2 includes:

获取单个传感器的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t),并对其进行归一化处理;Acquire the leakage acoustic signal data sequence S(t), flow data sequence Q(t), and pressure data sequence P(t) of a single sensor, and normalize them;

获取管径和管材数据D(t),对其进行独热编码处理,将管径、管材数据转换为只包含数字“0”和“1”的序列;Obtain the pipe diameter and pipe material data D(t), perform one-hot encoding processing on it, and convert the pipe diameter and pipe material data into a sequence containing only numbers "0" and "1";

将经所述归一化处理后的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t),及对应的管径和管材数据D(t)随机分为训练集和测试集;Randomize the normalized sound leakage signal data sequence S(t), flow data sequence Q(t), pressure data sequence P(t), and corresponding pipe diameter and pipe material data D(t) Divided into training set and test set;

选择交叉熵损失函数作为模型的分类目标,使用训练集对所述基于深度神经网络的异构双分类器漏损识别模型进行训练,直至交叉熵损失函数值不变时,停止训练;Select the cross-entropy loss function as the classification target of the model, and use the training set to train the deep neural network-based heterogeneous dual classifier leakage recognition model, until the cross-entropy loss function value remains unchanged, stop training;

使用测试集对训练好的模型进行测试,采用混淆矩阵评估模型效果。Use the test set to test the trained model, and use the confusion matrix to evaluate the model effect.

(三)有益效果(3) Beneficial effects

从上述技术方案可以看出,本公开一种供水管网漏损监测(包括漏损识别与定位)的技术方法至少具有以下有益效果其中之:It can be seen from the above technical solutions that a technical method for leakage monitoring (including leakage identification and location) of a water supply pipe network disclosed in the present disclosure has at least one of the following beneficial effects:

(1)本公开提出了基于深度神经网络的异构双分类器漏损识别模型用于识别漏损事故,将深度神经网络与异构双分类器结合,克服了单一分类器识别精度低的问题,有效提高了在实际过程中管道漏损检测的效果,尤其是在周围复杂环境干扰下的识别,本公开能够识别出微小漏损事件。同时,本公开的识别结果还可以判断漏损量的大小,为下一步处理提供基础。(1) The present disclosure proposes a heterogeneous dual-classifier leakage recognition model based on a deep neural network to identify leakage accidents. The deep neural network is combined with a heterogeneous dual-classifier to overcome the problem of low recognition accuracy of a single classifier. , effectively improving the effect of pipeline leakage detection in the actual process, especially the identification under the interference of the surrounding complex environment, the present disclosure can identify small leakage events. At the same time, the identification result of the present disclosure can also determine the size of the leakage, which provides a basis for the next processing.

(2)本公开提出了基于供水管网拓扑结构的局部搜索定位模型用于漏损点定位,采用基于管网拓扑结构的局部搜索算法,提高了漏损定位的计算效率;选取节点到达不同传感器时间差的误差平方值作为目标函数,提高了模型的灵敏度;充分考虑了在实际中的管网拓扑结构,扩大了管道漏损检测、识别的适用范围,使其能够在复杂工况条件下进行高精度的漏点定位。(2) The present disclosure proposes a local search and localization model based on the topology of the water supply pipe network for the location of leakage points, and the local search algorithm based on the topology of the pipe network is used to improve the calculation efficiency of the location of leakage; select nodes to reach different sensors The square value of the error of the time difference is used as the objective function, which improves the sensitivity of the model; fully considers the topology of the pipeline network in practice, expands the scope of application of pipeline leakage detection and identification, and enables it to perform high-efficiency testing under complex working conditions. Accurate leak location.

(3)本公开使用传感器采集数据,包括漏损声信号数据、流量数据、压力数据、管径和管材数据,并通过深度神经网络实现了多维数据的融合与挖掘,进一步提高了本公开在实际中的运用效果。(3) The present disclosure uses sensors to collect data, including leakage sound signal data, flow data, pressure data, pipe diameter and pipe material data, and realizes the fusion and mining of multi-dimensional data through a deep neural network, further improving the practical application of the present disclosure. effect in use.

(4)本公开将深度神经网络技术和局部搜索定位技术相结合,提出一完整的管道漏损识别与定位方法,该方法明显提高了漏损事件的识别准确率和漏点的定位精度,扩大了该方法在实际复杂管网拓扑结构中的运用范围,以便日常管理者能够及时发现管网漏损并及时维修,减少经济损失,节约水资源,辅助自来水公司做出科学合理的决策。(4) The present disclosure combines deep neural network technology and local search and positioning technology to propose a complete pipeline leakage identification and positioning method, which significantly improves the identification accuracy of leakage events and the positioning accuracy of leakage points. The application scope of this method in the actual complex pipe network topology structure is discussed, so that the daily manager can find the leakage of the pipe network and repair it in time, reduce economic losses, save water resources, and assist the water company to make scientific and reasonable decisions.

附图说明Description of drawings

图1为本公开供水管网漏损识别方法流程图。FIG. 1 is a flow chart of a method for identifying leakage of a water supply pipe network of the present disclosure.

图2为本公开供水管网漏损识别与定位方法示意图。FIG. 2 is a schematic diagram of a method for identifying and locating leakage of a water supply pipe network according to the present disclosure.

图3为本公开基于深度神经网络的异构双分类器的漏损识别模型结构图。FIG. 3 is a structural diagram of a leakage identification model of a heterogeneous dual classifier based on a deep neural network of the present disclosure.

图4为本公开实施例中某区域的供水管网拓扑结构图。FIG. 4 is a topological structure diagram of a water supply pipe network in a certain area in an embodiment of the present disclosure.

具体实施方式Detailed ways

为更好的理解和实施本公开,下面将结合附图和具体实施例对本公开进行详细阐述。应当理解的是,虽然对本公开的实施方式进行了说明,但是显然,本公开不限定于上述实施方式,可以在不脱离其主旨的范围内进行各种变形。For better understanding and implementation of the present disclosure, the present disclosure will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that although the embodiments of the present disclosure have been described, it is obvious that the present disclosure is not limited to the above-described embodiments, and various modifications can be made without departing from the gist of the present disclosure.

本公开为了解决现有技术的不足,将声波传输理论、深度神经网络模型、局部搜索定位模型相结合,旨在提供一种城市供水管网漏损识别、定位的监测方法。该方法能够提高供水管网漏损识别的准确率,降低误报率,以便日常管理者能够及时发现管网漏损并及时维修,减少经济损失,节约水资源,辅助自来水公司做出科学合理的决策。In order to solve the deficiencies of the prior art, the present disclosure combines the acoustic wave transmission theory, the deep neural network model, and the local search and positioning model, and aims to provide a monitoring method for identifying and locating the leakage of the urban water supply pipe network. The method can improve the accuracy rate of leakage identification of the water supply pipe network and reduce the false alarm rate, so that the daily manager can timely find the leakage of the pipe network and repair it in time, reduce economic losses, save water resources, and assist the water company to make scientific and reasonable measures. decision making.

如图1所示,本公开供水管网漏损监测方法(漏损识别),包括以下步骤:As shown in FIG. 1 , the leakage monitoring method (leakage identification) of the water supply pipe network of the present disclosure includes the following steps:

S1,获取供水管网数据;S1, obtain water supply pipe network data;

S2,建立基于深度神经网络的异构双分类器漏损识别模型;以及S2, establish a heterogeneous dual classifier leakage recognition model based on deep neural network; and

S3,利用所述供水管网数据和所述异构双分类器漏损识别模型进行供水管网漏损识别。S3, using the water supply pipe network data and the heterogeneous dual-classifier leakage identification model to identify the leakage of the water supply pipe network.

其中,所述供水管网数据包括沿水介质传播的漏损声信号数据、供水管内流量数据、供水管内压力数据、管材数据和管径数据。Wherein, the water supply pipe network data includes leakage sound signal data propagating along the water medium, flow data in the water supply pipe, pressure data in the water supply pipe, pipe material data and pipe diameter data.

进一步的,本公开供水管网漏损监测方法(漏损定位)在所述步骤S3之后还包括:Further, after the step S3, the method for monitoring leakage of a water supply pipe network (leakage location) of the present disclosure further includes:

S4,建立基于供水管网拓扑结构的局部搜索定位模型;以及S4, establishing a local search and positioning model based on the topology of the water supply pipe network; and

S5,利用所述供水管网漏损识别结果和所述局部搜索定位模型进行漏损定位。S5, using the water supply pipe network leakage identification result and the local search and positioning model to locate leakage.

总体而言,本公开方法主要包括三部分,依次为数据采集,建立漏损识别模型,建立漏点定位模型,如图2所示。In general, the method of the present disclosure mainly includes three parts, which are data collection, establishment of a leak identification model, and establishment of a leak location model, as shown in FIG. 2 .

具体的,所述数据采集过程如下:将传感器布置在供水管网上进行数据采集,传感器包括:水听器、流量计、压力计。水听器接收沿水介质传播的声信号,流量计测量管道内流量,压力计测量管内压力。传感器将采集到的数据通过无线传输至控制中心,并且存储于计算机中。同时,从城市供水管网数据库中获取管线的基本信息,包括管材数据和管径数据。Specifically, the data collection process is as follows: sensors are arranged on the water supply pipe network for data collection, and the sensors include: a hydrophone, a flow meter, and a pressure gauge. The hydrophone receives the acoustic signal propagating along the water medium, the flow meter measures the flow in the pipe, and the pressure gauge measures the pressure in the pipe. The sensor transmits the collected data wirelessly to the control center and stores it in the computer. At the same time, basic information of pipelines, including pipe material data and pipe diameter data, is obtained from the urban water supply network database.

所述漏损识别模型建立过程如下:建立基于深度神经网络的异构双分类器漏损识别模型,如图3所示,具体步骤包括:The process of establishing the leakage identification model is as follows: establish a heterogeneous dual-classifier leakage identification model based on a deep neural network, as shown in Figure 3, and the specific steps include:

卷积层用于接收漏损声信号数据,所述卷积层属于卷积神经网络,用于提取漏损声信号的特征;The convolution layer is used to receive the leaked acoustic signal data, and the convolutional layer belongs to the convolutional neural network and is used to extract the characteristics of the leaked acoustic signal;

最大池化层和上述卷积层连接,所述最大池化层把上述卷积层的输出划分为m个子区域,提取每个子区域的最大值组成输出,m为正整数;The maximum pooling layer is connected to the above-mentioned convolutional layer. The maximum pooling layer divides the output of the above-mentioned convolutional layer into m sub-regions, and extracts the maximum value of each sub-region to form an output, where m is a positive integer;

长短时神经网络层连接上述最大池化层,所述长短时神经网络层属于循环神经网络的一个变种,有较强的处理非线性数据的能力;The long-short-term neural network layer is connected to the above-mentioned maximum pooling layer, and the long-short-term neural network layer belongs to a variant of the recurrent neural network and has a strong ability to process nonlinear data;

第一全连接层用于接收流量数据、压力数据、管材和管径数据,与上述长短时神经网络层均以张量串联的方式连接到融合层;The first fully connected layer is used to receive flow data, pressure data, pipe material and pipe diameter data, and is connected to the fusion layer in a tensor series connection with the above-mentioned long and short-term neural network layer;

所述融合层以张量串联的方式连接到第二全连接层;The fusion layer is connected to the second fully connected layer in a tensor series;

第二全连接层分别与支持向量机分类器和逻辑回归分类器连接;The second fully connected layer is connected with the support vector machine classifier and the logistic regression classifier respectively;

所述支持向量机分类器对管道漏损事件进行分类识别,输出分类向量Y1;The support vector machine classifier classifies and identifies pipeline leakage events, and outputs a classification vector Y1;

所述逻辑回归分类器对管道漏损事件进行分类识别,输出分类向量Y2;The logistic regression classifier classifies and identifies pipeline leakage events, and outputs a classification vector Y2;

所述分类向量Y1=(p1,…,p8)和分类向量Y2=(q1,…,q8)为对于每种漏损识别结果出现的概率值,如表1所示;The classification vector Y1=(p1,...,p8) and the classification vector Y2=(q1,...,q8) are the probability values for each leakage identification result, as shown in Table 1;

所述异构双分类器根据上述分类向量Y1和分类向量Y2,根据式(1)计算得到漏损识别结果Y,如表1所示。The heterogeneous dual classifier calculates the leakage identification result Y according to the above-mentioned classification vector Y1 and the classification vector Y2 according to the formula (1), as shown in Table 1.

Y=β1*Y1+β2*Y2 式(1)Y=β1*Y1+β2*Y2 Formula (1)

其中,β1+β2=1,0<β1<1,0<β2<1。Among them, β1+β2=1, 0<β1<1, 0<β2<1.

利用上述基于深度神经网络的异构双分类器漏损识别模型对管道漏损事件进行建模,模型输入为漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t)、对应的管径和管材数据D(t),支持向量机分类器的分类结果Y1,逻辑回归分类器的分类结果Y2,模型输出为漏损识别结果Y,所述的模型输出Y1、Y2、Y按漏损量的大小划分为8类,每一类都对应一个概率值,如表1所示。The pipeline leakage event is modeled by the above-mentioned heterogeneous double classifier leakage identification model based on deep neural network. The model input is the leakage sound signal data sequence S(t), the flow data sequence Q(t), the pressure data sequence P(t), the corresponding pipe diameter and pipe material data D(t), the classification result Y1 of the support vector machine classifier, the classification result Y2 of the logistic regression classifier, the model output is the leakage identification result Y, the model output Y1, Y2, and Y are divided into 8 categories according to the size of leakage, and each category corresponds to a probability value, as shown in Table 1.

利用漏损识别模型分别对每个传感器进行分析,将传感器采集到的数据输入漏损识别模型,当漏损识别模型输出的识别结果Y中的最大概率值所对应的漏损识别分类为2~8时,确定管网发生了漏损事件,相应的传感器为发生漏损事件时所对应的传感器。Use the leakage identification model to analyze each sensor separately, input the data collected by the sensor into the leakage identification model, and classify the leakage identification corresponding to the maximum probability value in the identification result Y output by the leakage identification model as 2~ At 8:00, it is determined that a leakage event has occurred in the pipeline network, and the corresponding sensor is the sensor corresponding to the leakage event.

表1漏损识别结果输出Table 1 Leakage identification result output

Figure BDA0001898590800000071
Figure BDA0001898590800000071

对于每个传感器都采用上述基于深度神经网络的异构双分类器漏损识别模型进行建模,具体步骤如下:For each sensor, the above-mentioned deep neural network-based heterogeneous dual-classifier leakage identification model is used for modeling. The specific steps are as follows:

1)获取单个传感器的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t),对其进行归一化处理,所述归一化处理包括,将原始数据的数值转化到[0,1]范围内,归一化处理的公式如式(2)所示,1) Acquire the leakage acoustic signal data sequence S(t), the flow data sequence Q(t), and the pressure data sequence P(t) of a single sensor, and perform normalization processing on them. The normalization processing includes: The value of the original data is converted into the range of [0, 1], and the formula for normalization is shown in formula (2),

Figure BDA0001898590800000081
Figure BDA0001898590800000081

式(2)中,y代表归一化处理后的数据,x代表输入的原始数据,xmax和xmin分别代表输入数据的最大值和最小值。In formula (2), y represents the normalized data, x represents the input original data, and x max and x min represent the maximum and minimum values of the input data, respectively.

获取对应的管径和管材数据D(t),对其进行独热编码处理,把管径、管材等离散变量转换为只包含数字“0”和“1”的序列。Obtain the corresponding pipe diameter and pipe material data D(t), perform one-hot encoding processing on it, and convert discrete variables such as pipe diameter and pipe material into a sequence containing only numbers "0" and "1".

将上述归一化处理后的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t),及对应的管径和管材数据D(t)随机分为训练集和测试集。The above normalized leakage acoustic signal data sequence S(t), flow data sequence Q(t), pressure data sequence P(t), and the corresponding pipe diameter and pipe material data D(t) are randomly divided into training set and test set.

2)使用训练集对上述基于深度神经网络的异构双分类器漏损识别模型进行训练,选择交叉熵损失函数作为模型的分类目标,所述交叉熵损失函数的公式如式(3)所示,2) Use the training set to train the above-mentioned deep neural network-based heterogeneous dual classifier leakage recognition model, and select the cross-entropy loss function as the classification target of the model. The formula of the cross-entropy loss function is shown in formula (3). ,

Figure BDA0001898590800000082
Figure BDA0001898590800000082

式(3)中,L表示交叉熵损失函数值,N表示样本量,hpq表示样本p属于类别q的概率值,ypq表示模型对样本p预测为属于类别q的概率值。In formula (3), L represents the value of the cross-entropy loss function, N represents the sample size, h pq represents the probability value of the sample p belonging to the category q, and y pq represents the probability value that the model predicts the sample p to belong to the category q.

当上述交叉熵损失函数值L不再发生改变时,模型停止训练。When the above cross entropy loss function value L no longer changes, the model stops training.

3)使用测试集对上述已经训练好的模型进行测试,采用混淆矩阵评估模型效果,所述混淆矩阵如表2所示。3) Use the test set to test the above trained model, and use the confusion matrix to evaluate the effect of the model, and the confusion matrix is shown in Table 2.

表2混淆矩阵Table 2 Confusion matrix

正常事件normal event 漏损事件leakage event 模型识别为正常事件Model identified as normal event TPTP FPFP 模型识别为漏损事件Model identified as leakage event FNFN TNTN

表2中,TP值表示实际中的正常事件,模型识别结果也为正常事件;FP值表示实际中的漏损事件,模型识别结果为正常事件;FN值表示实际中的正常事件,模型识别结果为漏损事件;TN值表示实际中的漏损事件,模型识别结果也为漏损事件。In Table 2, the TP value represents a normal event in practice, and the model recognition result is also a normal event; FP value represents a leakage event in practice, and the model recognition result is a normal event; FN value represents a normal event in practice, and the model recognition result is a leakage event; the TN value represents the actual leakage event, and the model identification result is also a leakage event.

根据上述4个值,计算模型的识别准确率=TN/(FP+TN)与误报率=FN/(TP+FN),准确率越高,误报率越低,模型效果越好。According to the above four values, the recognition accuracy rate of the calculation model = TN/(FP+TN) and the false alarm rate = FN/(TP+FN). The higher the accuracy rate, the lower the false alarm rate, and the better the model effect.

所述漏点定位模型建立过程如下:建立基于管网拓扑结构的局部搜索定位模型用于漏点定位,具体步骤如下:The process of establishing the leak location model is as follows: establishing a local search location model based on the topology of the pipe network for leak location, and the specific steps are as follows:

1)每个传感器采集到的数据都会建立漏损识别模型进行分析,但只有漏损识别结果为发生漏损事件的传感器才会建立漏损定位模型进行分析。当漏损识别模型输出的识别结果Y中的最大概率值所对应的漏损识别分类为2~8时,确定管网发生了漏损事件。通过漏损识别模型确定发生漏损事件时所对应的传感器Sk,被确定为发生漏损事件的传感器的个数大于等于2时建立漏损定位模型进行分析,以这些传感器Sk为基点,以最短路径在管网图上形成一个闭合回路。所述闭合回路包括i个管道节点,对应的管道节点编号为ri;j根管道,对应的管道编号为lj;k个传感器,对应的传感器编号为Sk,i、j、k均为正整数。所述最短路径是指经过传感器Sk的闭合回路的最短周长。1) The data collected by each sensor will establish a leakage identification model for analysis, but only the sensor whose leakage identification result is a leakage event will establish a leakage localization model for analysis. When the leakage identification classification corresponding to the maximum probability value in the identification result Y output by the leakage identification model is 2 to 8, it is determined that a leakage event has occurred in the pipeline network. The leakage identification model is used to determine the corresponding sensors Sk when leakage events occur. When the number of sensors that are determined to have leakage events is greater than or equal to 2, a leakage localization model is established for analysis. Taking these sensors Sk as the base point, Forms a closed loop on the pipe network diagram with the shortest path. The closed loop includes i pipeline nodes, and the corresponding pipeline nodes are numbered r i ; j pipelines, the corresponding pipeline numbers are l j ; k sensors, the corresponding sensor numbers are S k , i, j, and k are all positive integer. The shortest path refers to the shortest perimeter of the closed loop passing through the sensor Sk .

2)建立基于管网拓扑结构的局部搜索算法,目标函数如式(4)所不,2) Establish a local search algorithm based on the topology of the pipe network, the objective function is as shown in formula (4),

fi=∑a≠b(|ta-tb|-|ωiaib|)2 式(4)f i =∑ a≠b (|t a -t b |-|ω iaib |) 2 Equation (4)

式(4)中,fi表示第i个节点处的漏损声信号到达不同传感器的时间差的误差平方值,ta表示漏损声信号到达传感器a所需要的时间,tb表示漏损声信号到达传感器b所需要的时间,ωia表示漏损声信号从节点i到达传感器a所需要的时间,ωib表示漏损声信号从节点i到达传感器b所需要的时间,节点i可以是管道节点或虚拟漏点;In formula (4), f i represents the error square value of the time difference between the acoustic leakage signal at the i-th node reaching different sensors, t a represents the time it takes for the acoustic leakage signal to reach sensor a, and t b represents the acoustic leakage The time it takes for the signal to reach sensor b, ω ia is the time it takes for the acoustic leakage signal to reach sensor a from node i, ω ib is the time it takes for the acoustic leak signal to reach sensor b from node i, and node i can be a pipe Nodes or virtual leaks;

3)在闭合回路中搜索离漏损点最近的管道节点,根据式(4)计算这i个管道节点的fi值,选取最小的fi值所对应的管道节点c作为离漏损点最近的虚拟漏点vc3) Search the pipeline node closest to the leakage point in the closed loop, calculate the f i value of the i pipeline nodes according to formula (4), and select the pipeline node c corresponding to the smallest f i value as the nearest leakage point. the virtual leak point v c ;

4)以虚拟漏点vc为中心,搜索路径为与虚拟漏点vc相连接的管线,每隔z米设置1个虚拟漏点vg(g=1...n),共n个,根据式(4)计算这n个虚拟漏点的fi值,选取最小的fi值所对应的虚拟漏点作为最终的漏损定位点。4) Taking the virtual leak point v c as the center, the search path is the pipeline connected to the virtual leak point v c , and a virtual leak point v g (g=1...n) is set every z meters, a total of n , calculate the f i value of the n virtual leakage points according to formula (4), and select the virtual leakage point corresponding to the smallest f i value as the final leakage location point.

图4所示为某区域的供水管网拓扑结构图,在管道节点处或消火栓处安装传感器,该管网共有6个传感器S1…S6,6个管道节点r1…r6,16根管道,对应的管道编号为l1…l16,真实漏点b1Figure 4 shows the topological structure of the water supply pipe network in a certain area. Sensors are installed at the pipe nodes or fire hydrants. The pipe network has 6 sensors S 1 ... S 6 , 6 pipe nodes r 1 ... r 6 , 16 sensors Pipes, the corresponding pipe numbers are l 1 . . . l 16 , the real leak point b 1 .

将传感器布置在供水管网上进行数据采集,每个多传感器包括:水听器、流量计、压力计。水听器接收沿水介质传播的声信号,流量计测量管道内流量,压力计测量管内压力。传感器将采集到的数据通过无线传输至控制中心,并且存储于计算机中。同时,从城市供水管网数据库中获取管线的基本信息,包括管材和管径数据。Arrange sensors on the water supply network for data collection, each multi-sensor includes: hydrophone, flowmeter, and pressure gauge. The hydrophone receives the acoustic signal propagating along the water medium, the flow meter measures the flow in the pipe, and the pressure gauge measures the pressure in the pipe. The sensor transmits the collected data wirelessly to the control center and stores it in the computer. At the same time, basic information of pipelines, including pipe material and pipe diameter data, is obtained from the urban water supply network database.

针对本实施例建立基于深度神经网络的异构双分类器漏损识别模型,包括:For this embodiment, a deep neural network-based heterogeneous dual-classifier leakage identification model is established, including:

1个卷积层用于接收漏损声信号数据,所述卷积层属于卷积神经网络,用于提取漏损声信号的特征;One convolution layer is used to receive the leaked acoustic signal data, the convolutional layer belongs to the convolutional neural network and is used to extract the characteristics of the leaked acoustic signal;

1个最大池化层和上述卷积层连接,所述最大池化层把上述卷积层的输出划分为20个子区域,提取每个子区域的最大值组成输出;A maximum pooling layer is connected to the above-mentioned convolutional layer, and the maximum pooling layer divides the output of the above-mentioned convolutional layer into 20 sub-regions, and extracts the maximum value of each sub-region to form an output;

1个长短时神经网络层连接上述最大池化层,所述长短时神经网络层属于循环神经网络的一个变种,有较强的处理非线性数据的能力;A long-short-term neural network layer is connected to the above-mentioned maximum pooling layer, and the long-short-term neural network layer belongs to a variant of the recurrent neural network and has a strong ability to process nonlinear data;

第一全连接层用于接收流量数据、压力数据、管材和管径数据,与上述长短时神经网络层均以张量串联的方式连接到1个融合层;The first fully-connected layer is used to receive flow data, pressure data, pipe material and pipe diameter data, and is connected to one fusion layer in a tensor series connection with the above-mentioned long-short-term neural network layer;

所述融合层以张量串联的方式连接到第二全连接层;The fusion layer is connected to the second fully connected layer in a tensor series;

第二全连接层分别与支持向量机分类器和逻辑回归分类器连接;The second fully connected layer is connected with the support vector machine classifier and the logistic regression classifier respectively;

所述支持向量机分类器对管道漏损事件进行分类识别,输出分类向量Y1;The support vector machine classifier classifies and identifies pipeline leakage events, and outputs a classification vector Y1;

所述逻辑回归分类器对管道漏损事件进行分类识别,输出分类向量Y2;The logistic regression classifier classifies and identifies pipeline leakage events, and outputs a classification vector Y2;

所述分类向量Y1=(p1,…,p8)和分类向量Y2=(q1,…,q8)为对于每种漏损识别结果出现的概率值,如表1所示;The classification vector Y1=(p1,...,p8) and the classification vector Y2=(q1,...,q8) are the probability values for each leakage identification result, as shown in Table 1;

所述异构双分类器根据上述分类向量Y1和分类向量Y2,根据式(1)计算得到漏损识别结果Y=β1*Y1+β2*Y2,其中β1=0.4,β2=0.6。The heterogeneous dual classifier calculates the leakage identification result Y=β1*Y1+β2*Y2 according to the above-mentioned classification vector Y1 and classification vector Y2 according to formula (1), where β1=0.4 and β2=0.6.

利用上述基于深度神经网络的异构双分类器漏损识别模型对管道漏损事件进行建模,模型输入为漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t)、对应的管径和管材数据D(t),支持向量机分类器的分类结果Y1,逻辑回归分类器的分类结果Y2,模型输出为漏损识别结果Y,所述的模型输出Y1、Y2、Y按漏损量的大小划分为8类,每一类都对应一个概率值,如表1所示。The pipeline leakage event is modeled by the above-mentioned heterogeneous double classifier leakage identification model based on deep neural network. The model input is the leakage sound signal data sequence S(t), the flow data sequence Q(t), the pressure data sequence P(t), the corresponding pipe diameter and pipe material data D(t), the classification result Y1 of the support vector machine classifier, the classification result Y2 of the logistic regression classifier, the model output is the leakage identification result Y, the model output Y1, Y2, and Y are divided into 8 categories according to the size of leakage, and each category corresponds to a probability value, as shown in Table 1.

对于6个传感器都采用上述基于深度神经网络的异构双分类器漏损识别模型进行建模,此处以传感器1为实施例,具体步骤如下:For the six sensors, the above-mentioned deep neural network-based heterogeneous dual-classifier leakage identification model is used for modeling. Here, sensor 1 is used as an example, and the specific steps are as follows:

1)获取传感器1中的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t),根据式(2)对其进行归一化处理。1) Acquire the leakage acoustic signal data sequence S(t), the flow data sequence Q(t), and the pressure data sequence P(t) in the sensor 1, and normalize them according to formula (2).

获取对应的管径和管材数据D(t),对其进行独热编码处理,把管径、管材等离散变量转换为只包含数字“0”和“1”的序列。Obtain the corresponding pipe diameter and pipe material data D(t), perform one-hot encoding processing on it, and convert discrete variables such as pipe diameter and pipe material into a sequence containing only numbers "0" and "1".

将上述的漏损声信号数据序列S(t)、流量数据序列Q(t)、压力数据序列P(t)、管径和管材数据D(t)随机分为训练集和测试集,其中训练集有32000个样本,测试集有8000个样本。The above-mentioned leakage acoustic signal data sequence S(t), flow data sequence Q(t), pressure data sequence P(t), pipe diameter and pipe material data D(t) are randomly divided into training set and test set. The set has 32000 samples and the test set has 8000 samples.

2)使用训练集对上述基于深度神经网络的异构双分类器漏损识别模型进行训练,当上述交叉熵损失函数值L不再发生改变时,模型停止训练。2) Use the training set to train the above-mentioned deep neural network-based heterogeneous dual-classifier leakage recognition model. When the above-mentioned cross-entropy loss function value L no longer changes, the model stops training.

3)使用测试集8000个样本对上述已经训练好的模型进行测试,采用混淆矩阵评估模型效果,所述混淆矩阵如表3所示,3) Use the 8000 samples of the test set to test the above-mentioned trained model, and use the confusion matrix to evaluate the model effect, and the confusion matrix is shown in Table 3,

表3混淆矩阵Table 3 Confusion Matrix

正常事件normal event 漏损事件leakage event 模型识别为正常事件Model identified as normal event 7870个7870 5个5 模型识别为漏损事件Model identified as leakage event 30个30 95个95

所以,模型的识别准确率为95/(95+5)=95%,误报率为30/(7870+30)=0.38%,模型效果较好。Therefore, the recognition accuracy of the model is 95/(95+5)=95%, the false alarm rate is 30/(7870+30)=0.38%, and the model effect is good.

建立基于管网拓扑结构的局部搜索定位模型,具体步骤如下:To establish a local search and positioning model based on the topology of the pipe network, the specific steps are as follows:

1)通过上述漏损识别模型确定发生漏损事件时所对应的传感器为S1、S2、S3,然后以传感器S1、S2、S3为基点,以最短路径在管网图上形成一个闭合回路,所述闭合回路包括传感器S1、S2、S3,管道节点r1、r2、r3,管道l1、l2、l3、l4、l5、l6,表4所示为该区域管网的基本数据。1) According to the above leakage identification model, it is determined that the corresponding sensors when leakage events occur are S 1 , S 2 , and S 3 , and then take the sensors S 1 , S 2 , and S 3 as the base points, and take the shortest path on the pipe network diagram. forming a closed loop comprising sensors S 1 , S 2 , S 3 , pipeline nodes r 1 , r 2 , r 3 , pipelines l 1 , l 2 , l 3 , l 4 , l 5 , l 6 , Table 4 shows the basic data of the pipeline network in this area.

表4某区域管网的基本数据Table 4 Basic data of the pipeline network in a certain area

管道编号pipe number 管长(米)Tube length (m) 管道编号pipe number 管长(米)Tube length (m) 管道编号pipe number 管长(米)Tube length (m) l<sub>1</sub>l<sub>1</sub> 120120 l<sub>7</sub>l<sub>7</sub> 6767 l<sub>13</sub>l<sub>13</sub> 6666 l<sub>2</sub>l<sub>2</sub> 140140 l<sub>8</sub>l<sub>8</sub> 6565 l<sub>14</sub>l<sub>14</sub> 100100 l<sub>3</sub>l<sub>3</sub> 6060 l<sub>9</sub>l<sub>9</sub> 8383 l<sub>15</sub>l<sub>15</sub> 9595 l<sub>4</sub>l<sub>4</sub> 5555 l<sub>10</sub>l<sub>10</sub> 7979 l<sub>16</sub>l<sub>16</sub> 107107 l<sub>5</sub>l<sub>5</sub> 6868 l<sub>11</sub>l<sub>11</sub> 6262 l<sub>6</sub>l<sub>6</sub> 6363 l<sub>12</sub>l<sub>12</sub> 4949

2)建立基于管网拓扑结构的局部搜索算法,根据式(4)计算管道节点r1、r2、r3对应的fi值,其中管道节点t1对应的误差平方值f1最小,所以选择管道节点t1作为离漏损点最近的虚拟漏点vc2) Establish a local search algorithm based on the topology of the pipe network, and calculate the f i values corresponding to the pipeline nodes r 1 , r 2 , and r 3 according to formula (4), where the error square value f 1 corresponding to the pipeline node t 1 is the smallest, so Select the pipeline node t 1 as the virtual leak point vc closest to the leak point;

3)以虚拟漏点vc为中心,沿着和虚拟漏点vc相连接的管线l2和l3,每隔2米设置1个虚拟漏点vg(g=1...100),共100个虚拟漏点,根据式(4)计算这100个虚拟漏点的fi值,其中f65最小,所以虚拟漏点v65为最接近真实漏点b1的点,虚拟漏点v65与真实漏点b1相距0.88m,定位精度较高。3) With the virtual leak point vc as the center, along the pipelines l 2 and l 3 connected to the virtual leak point vc , set a virtual leak point v g every 2 meters (g=1...100) , a total of 100 virtual leakage points, according to formula (4) to calculate the f i value of these 100 virtual leakage points, among which f 65 is the smallest, so the virtual leakage point v 65 is the point closest to the real leakage point b 1 , the virtual leakage point The distance between v 65 and the real leak point b 1 is 0.88m, and the positioning accuracy is high.

以上结果说明,本公开能够较为准确的识别出供水管网的漏损事故,同时能够较为精确的进行漏点定位,并且该方法的实用性较强。本公开扩展了现有的管网漏损识别与定位方法的研究内容,为自来水公司做出科学合理的决策提供了一种新的思路。以上所述的具体实施例,对本公开的目的、技术方案和有益效果进行了进一步详细说明,应理解的是,以上所述仅为本公开的具体实施例而已,并不用于限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above results show that the present disclosure can more accurately identify the leakage accident of the water supply pipe network, and at the same time can more accurately locate the leakage point, and the method has strong practicability. The present disclosure expands the research content of the existing method for identifying and locating leakage in the pipeline network, and provides a new idea for water companies to make scientific and reasonable decisions. The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above are only specific embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included within the protection scope of the present disclosure.

Claims (7)

1. A water supply pipe network leakage monitoring method comprises the following steps:
s1, acquiring water supply network data;
s2, establishing a heterogeneous double-classifier leakage identification model based on a deep neural network; and
s3, identifying the leakage of the water supply network by using the water supply network data and the heterogeneous dual-classifier leakage identification model;
the water supply network data comprises leakage sound signal data transmitted along a water medium, flow data in the water supply pipe, pressure data in the water supply pipe, pipe data and pipe diameter data;
the heterogeneous double-classifier leakage identification model based on the deep neural network comprises a convolutional layer, a maximum pooling layer, a long-time and short-time neural network layer, a first full-connection layer, a fusion layer, a second full-connection layer, a support vector machine classifier, a logistic regression classifier and a heterogeneous double classifier;
the step S3 includes:
receiving leakage acoustic signal data by the convolution layer;
the maximum pooling layer divides the output of the convolutional layer into m sub-regions, extracts the maximum value of each sub-region to form output, and m is a positive integer;
the long-time neural network layer and the short-time neural network layer perform nonlinear data processing on the output of the maximum pooling layer;
the first full-connection layer receives flow data, pressure data, pipe data and pipe diameter data;
the fusion layer receives the outputs of the long-time and short-time neural network layer and the first full connection layer;
a second fully connected layer receives the output of the fused layer;
the second full connection layer is respectively connected with the support vector machine classifier and the logistic regression classifier;
the support vector machine classifier receives the output of the second full connection layer, classifies and identifies the leakage event of the water supply network and outputs a classification vector Y1; the logistic regression classifier receives the output of the second full connection layer, classifies and identifies the leakage event of the water supply network and outputs a classification vector Y2;
the heterogeneous double classifier utilizes the classification vector Y1 and the classification vector Y2 to calculate a leakage identification result Y according to the following formula,
Y=β1*Y1+β2*Y2
wherein β 1+ β 2 is 1, 0 < β 1 <1, 0 < β 2< 1.
2. The method of claim 1, further comprising, after said step S3:
s4, establishing a local searching and positioning model based on the topological structure of the water supply network; and
and S5, carrying out leakage positioning by using the water supply pipe network leakage identification result and the local searching and positioning model.
3. The method of claim 2, wherein sensors are arranged on the water supply network for data acquisition to obtain water supply network data, the sensors comprising hydrophones, flow meters, and pressure gauges; and acquiring the leakage acoustic signal data by using a hydrophone, acquiring flow data by using a flowmeter, and acquiring pressure data by using a pressure gauge.
4. The method of claim 3, wherein the sensor S corresponding to the occurrence of a leak event is determined by a leak recognition modelkAnd when the number of the corresponding sensors is more than or equal to 2, carrying out leakage positioning.
5. The method according to claim 4, wherein the step S5 includes:
with the sensor SkForming a closed loop on the pipe network diagram by using the shortest path as a base point, wherein the closed loop comprises i pipeline nodes, and the number of the corresponding pipeline node is ri(ii) a j tubes of pipeline with corresponding pipeline number lj(ii) a k sensors with corresponding sensor number SkI, j and k are positive integers, and the shortest path is through the sensor SkThe shortest circumference of the closed loop of (a);
using an objective function fiSearching the pipeline node closest to the leakage point in the closed loop, and sequentially calculating f of the i pipeline nodesiValue, choose the smallest fiThe pipeline node c corresponding to the value is taken as a virtual leakage point v nearest to the leakage pointc
With virtual missing points vcAs a center, search a path with a virtual leak point vcThe connected pipelines are provided with 1 virtual leakage point v every z metersg(g-1 … n), n, calculating f of the n virtual leakage points in turniValue, choose the smallest fiAnd taking the virtual leakage point corresponding to the value as a final leakage positioning point.
6. The method of claim 5, wherein the objective function is represented by the following formula,
Figure FDA0002215681610000021
wherein f isiError square value, t, representing the time difference between arrival of a leaky acoustic signal at the ith node at different sensorsaRepresenting the time, t, required for the leakage acoustic signal to reach the sensor abRepresenting the time, ω, required for the leakage acoustic signal to reach the sensor biaRepresenting the time, ω, required for the leakage acoustic signal to reach sensor a from node iibRepresenting the time required for the leaky acoustic signal to reach sensor b from node i, which may be a pipe node or a virtual leak point.
7. The method according to claim 3, wherein the step S2 includes:
acquiring a leakage sound signal data sequence S (t), a flow data sequence Q (t) and a pressure data sequence P (t) of a single sensor, and normalizing the leakage sound signal data sequence S (t), the flow data sequence Q (t) and the pressure data sequence P (t);
acquiring pipe diameter and pipe data D (t), carrying out independent thermal coding treatment on the pipe diameter and pipe data, and converting the pipe diameter and pipe data into a sequence only containing numbers of 0 and 1;
dividing the leakage sound signal data sequence S (t), the flow data sequence Q (t), the pressure data sequence P (t) and the corresponding pipe diameter and pipe data D (t) into a training set and a testing set at random;
selecting a cross entropy loss function as a classification target of the model, and training the heterogeneous dual-classifier leakage recognition model based on the deep neural network by using a training set until the cross entropy loss function value is unchanged, and stopping training;
and testing the trained model by using a test set, and evaluating the effect of the model by using a confusion matrix.
CN201811507342.7A 2018-12-10 2018-12-10 Water supply pipe network leakage monitoring method Active CN109555979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811507342.7A CN109555979B (en) 2018-12-10 2018-12-10 Water supply pipe network leakage monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811507342.7A CN109555979B (en) 2018-12-10 2018-12-10 Water supply pipe network leakage monitoring method

Publications (2)

Publication Number Publication Date
CN109555979A CN109555979A (en) 2019-04-02
CN109555979B true CN109555979B (en) 2020-03-17

Family

ID=65869450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811507342.7A Active CN109555979B (en) 2018-12-10 2018-12-10 Water supply pipe network leakage monitoring method

Country Status (1)

Country Link
CN (1) CN109555979B (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119853B (en) * 2019-05-29 2020-12-25 浙江大学 Water supply network leakage alarm threshold value selection method based on time series monitoring data analysis
CN110792928B (en) * 2019-09-24 2021-08-10 中国石油化工股份有限公司 Pipeline leakage diagnosis method based on big data combined algorithm
US11704458B2 (en) * 2019-10-10 2023-07-18 Voda, Inc. System and method for optimizing utility pipe sensors placement using artificial intelligence technology
CN110841143B (en) * 2019-10-22 2022-03-08 江苏爱朋医疗科技股份有限公司 Method and system for predicting state of infusion pipeline
US20210116076A1 (en) * 2019-10-22 2021-04-22 Eog Resources, Inc. Anomaly detection in pipelines and flowlines
CN110837933A (en) * 2019-11-11 2020-02-25 重庆远通电子技术开发有限公司 Leakage identification method, device, equipment and storage medium based on neural network
CN113405026B (en) * 2020-03-16 2022-11-11 中国港湾工程有限责任公司 Newly-added leakage judgment and leakage rate estimation method suitable for water supply pipe network in underdeveloped area
CN111520615B (en) * 2020-04-28 2021-03-16 清华大学 Pipe network leakage identification and positioning method based on line spectrum pair and cubic interpolation search
GB2595660A (en) * 2020-06-01 2021-12-08 Homeserve Plc Flow event classification
CN111881999A (en) * 2020-08-04 2020-11-03 武汉易维环境工程有限公司 Water service pipeline leakage detection method and system based on deep convolutional neural network
CN112197179A (en) * 2020-09-25 2021-01-08 湖南威铭能源科技有限公司 A system and method for locating leakage points in a pipeline network
CN112460495B (en) * 2020-11-14 2022-09-27 武汉众智鸿图科技有限公司 Monitoring point layout method and system for leakage monitoring positioning
CN112610903A (en) * 2020-12-10 2021-04-06 合肥学院 Water supply pipe network leakage positioning method based on deep neural network model
CN112833336A (en) * 2021-01-06 2021-05-25 万佳安智慧生活技术(深圳)有限公司 Method and system for monitoring leakage of water supply pipeline between buildings
CN112393127B (en) * 2021-01-19 2021-03-26 浙江和达科技股份有限公司 Urban water supply network leakage management and control system
CN113112126B (en) * 2021-03-22 2024-05-03 浙江和达科技股份有限公司 Artificial intelligence-based water supply pipe leakage early warning method and system
CN113177730B (en) * 2021-05-20 2022-09-23 中山大学 A water resource traceability management system
CN113486950B (en) * 2021-07-05 2023-06-16 华能国际电力股份有限公司上安电厂 Intelligent pipe network water leakage detection method and system
CN113567063B (en) * 2021-07-23 2024-11-12 宁波水表(集团)股份有限公司 Construction and application method of water supply network leakage noise database
CN113466424B (en) * 2021-08-12 2022-02-15 广州高得环保科技股份有限公司 Method and system for monitoring water quality of pipeline direct drinking water of intelligent Internet of things
CN113739082B (en) * 2021-09-14 2023-05-30 杭州莱宸科技有限公司 Water supply network leakage monitoring method based on multi-region joint evaluation
CN113887020B (en) * 2021-09-14 2024-11-22 长江水利委员会长江科学院 Multi-target arrangement method of leakage detection sensors in water supply network based on leakage probability
CN113970073B (en) * 2021-11-11 2023-05-19 吉林大学 A ResNet-based method for precise location of water supply network leaks
CN114542997A (en) * 2022-03-04 2022-05-27 夏泽鑫 Water supply pipe network abnormal leakage detection method based on digital twinning
CN114857504A (en) * 2022-06-06 2022-08-05 华南理工大学 Pipeline safety monitoring method based on distributed optical fiber sensors and deep learning
CN115264408B (en) * 2022-06-23 2024-07-12 大连理工大学 Pipeline leakage detection method and system based on audio processing
CN115146684A (en) * 2022-07-29 2022-10-04 上海威派格智慧水务股份有限公司 Water supply pipe network leakage detection method and device based on pipeline vibration signals
CN115654381A (en) * 2022-10-24 2023-01-31 电子科技大学 Water supply pipeline leakage detection method based on graph neural network
CN117540329B (en) * 2024-01-09 2024-03-29 北京建筑大学 Online early warning method and system for drainage pipe network defects based on machine learning

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105927863B (en) * 2016-05-07 2018-06-29 大连理工大学 DMA subregions pipeline network leak on-line checking alignment system and its detection localization method
CN107061996B (en) * 2017-03-10 2019-04-16 内蒙古大学 A kind of water supply line leakage detecting and locating method
US10657443B2 (en) * 2017-05-24 2020-05-19 Southwest Research Institute Detection of hazardous leaks from pipelines using optical imaging and neural network
CN107590489A (en) * 2017-09-28 2018-01-16 国家新闻出版广电总局广播科学研究院 Object detection method based on concatenated convolutional neutral net
CN107884475A (en) * 2017-10-18 2018-04-06 常州大学 A kind of city gas pipeline method for diagnosing faults based on deep learning neutral net
CN108596260A (en) * 2018-04-27 2018-09-28 安徽建筑大学 Water pipe network leakage positioning method and device
CN108647470B (en) * 2018-05-29 2022-05-31 杭州电子科技大学 An initial leak location method based on clustering and deep belief network

Also Published As

Publication number Publication date
CN109555979A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109555979B (en) Water supply pipe network leakage monitoring method
Hu et al. Novel leakage detection and water loss management of urban water supply network using multiscale neural networks
CN101539241B (en) Hierarchical multi-source data fusion method for pipeline linkage monitoring network
Liu et al. A leak detection method for oil pipeline based on Markov feature and two-stage decision scheme
CN115127037B (en) Water supply pipe network leakage positioning method and system
CN112377817B (en) A kind of municipal pipe network burst pipe monitoring system and method
CN113971463A (en) A risk distribution analysis method and inspection path planning system for heating pipelines
CN111520615B (en) Pipe network leakage identification and positioning method based on line spectrum pair and cubic interpolation search
CN107480705A (en) A kind of running water pipe leakage detection method
CN102235575A (en) Data processing method and system for checking pipeline leakage
CN102606890A (en) Device and method for quantifying and positioning loss of water feeding pipeline by applying transient excitation
CN110285330B (en) Water network pipe burst detection method based on local outlier factor
CN115654381A (en) Water supply pipeline leakage detection method based on graph neural network
CN113128709B (en) Water supply network leakage management system
CN113486950A (en) Intelligent pipe network water leakage detection method and system
CN108985587A (en) A kind of Shield Tunnel in Soft Soil structural health evaluation method
CN116258086A (en) A gas pipeline risk assessment method and system
CN108071941B (en) A method for identifying and locating burst pipes based on similarity analysis of time series vectors
CN118731172A (en) Baseline detection system and method for gathering and transportation pipelines based on multi-technology fusion
CN117113038A (en) Method and system for tracing the source of urban water and soil erosion yellow mud water events
CN111237646A (en) Automatic identification and positioning method for leakage of water supply pipe network
Fagiani et al. Computational Intelligence in Smart water and gas grids: An up-to-date overview
CN103574291B (en) Localization of bursted pipe method based on artificial immune system
CN118705555A (en) A method and device for monitoring water supply network leakage based on deep learning model
CN113177748A (en) Gas transmission pipeline earthquake damage evaluation method

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