Next Article in Journal
In-Flight Electromagnetic Compatibility of Airborne Vertical VLF Antennas
Previous Article in Journal
Characteristics of Channel Eigenvalues and Mutual Coupling Effects for Holographic Reconfigurable Intelligent Surfaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Leakages in District Heating Networks—Model-Based Data Set Quality Assessment and Localization

1
Institute for Information Engineering, Ostfalia University of Applied Sciences, Salzdahlumer Str. 46/48, 38302 Wolfenbuttel, Germany
2
SWM Services GmbH, Emmy-Noether-Str. 2, 80992 Munchen, Germany
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(14), 5300; https://doi.org/10.3390/s22145300
Submission received: 5 June 2022 / Revised: 12 July 2022 / Accepted: 13 July 2022 / Published: 15 July 2022
(This article belongs to the Section Remote Sensors)

Abstract

:
Large spontaneous leakages in district heating networks (DHNs) require a separation of the affected network part, as interruption of the heat supply is imminent. Measurement data of 22 real events was analyzed for localization, but suitable results were not always achieved. In this paper, the reasons are investigated and a model for data evaluation (MoFoDatEv) is developed for further insights. This contains prior knowledge and a simplified physical model for the reaction of the DHN in the case of a large spontaneous leakage. A model like this does not exist so far. It determines the time point and the duration of the pressure drop of the pressure wave which is caused by such leakages. Both parameters and the evaluation time frame are optimized for each event separately. The quality assessment leads to a categorization of the events based on several parameters, and correlations between the pressure and the refill mass flow are found. A minimum leakage size is deduced for successful evaluation. Furthermore, MoFoDatEv can also be used for leakage localization directly, combining two steps from previous publications. Therefore, more data contribute to the result. The application is conducted with artificial data to prove the model concept, and also with real measurement data.

1. Introduction

The energy transition can only succeed if the change to renewable energies is also pursued for the supply of heat. District heating networks (DHNs) have a potentially important role for the green transition [1]. During the whole year, DHNs are used to supply customers with energy. An uninterrupted energy supply is required. However, there is a risk of leakages because the hot fluid medium is transported under high levels of pressure [2]. In Figure 1, a schematic representation of a DHN is shown.
DHNs, as a special form of thermo-hydraulic network, are used to supply customers with energy. The whole system is closed, pressurized, and operated with deionized water (a special, treated form of water) as a medium. Supply pipes and mass flow are drawn in red and return in blue. With a heat exchanger, the consumers obtain the energy from the network. The pressure difference between supply and return drives the mass flow through the heat exchanger, and the supply temperature is reduced to the return temperature. To this end, the network operator has to ensure a minimal pressure difference and supply temperature, and the customer has to cool down the medium to a maximal allowed return temperature. The pressure difference is regulated by the circulation pump. If it is too low, the circulation pump power is increased, and if it is too high, pump power is decreased. The pressure maintenance pump ensures a certain pressure level throughout the whole network. At the supply site, the cooled-down medium is heated up again by a heat exchanger. Typical temperatures for the supply and the return are 120 °C and 70 °C, respectively. This leads to a temperature difference of 50 °C. Typical pressures at the power plant are around 18 bar in the supply and around 5 bar in the return. Several heat sources are possible. A power plant is depicted in Figure 1. When transporting the medium from the power plant to the consumer, no medium should be lost in order to ensure an uninterrupted supply. However, leakages can occur within the pipes. In the case of a large, spontaneous leakage, loss of the transport medium can be compensated only for a certain period of time. The replenishment is performed via the refill mass flow (green), but the available quantity for this is limited. The refill is necessary to maintain the prevailing pressure in the entire network and to keep the medium liquid due to the high supply temperature [3]. However, if the loss of medium is too large, it may be necessary to stop network operation. Then, a fast localization of the leakage is an important task to enable further network operation. Network shutdown can be prevented by taking appropriate countermeasures, such as disconnecting the damaged network section using exclusion areas (EA). To be able to use these measures in a targeted manner, the leakage must be assigned to one of the EAs as quickly and accurately as possible.
Generally, a distinction is made between small creeping and large spontaneous leakages. All small leakages which are present will be replenished continuously as long as the summed-up refill mass flow is not too large. They do not have any impact on the consumer and the heat generation of the supplier. Nevertheless, heat and water losses are present. Small leakages are hard to detect and localize as their impact on measurement values is very small. On the other hand, there are large, spontaneous leakages, which can only be replenished for a very short time of about 15 min to 3 h. During this time, leakage localization and separation of the affected network part has to be performed. To this end, it is beneficial that these leakages are clearly reflected in the measurement data and a pressure wave is likely to be present. Only large spontaneous leakages are in the scope of this paper. If it is not possible to refill the medium anymore, the pressure in the system drops to zero and the hot medium evaporates. Thus, circulation stops. The pipes in the heat generator of the supplier cannot be cooled anymore and will be destroyed. The consumers cannot be further supplied with heat. At the damaged spot, the exiting medium endangers people and environment.
Previous publications picked up the evaluation chain from detection to separation with a focus on a framework employing test leakages (TL) and a performance criterion (PC) as a measure when evaluating the negative pressure wave caused by the leakage. Attribution of one large spontaneous leakage to EAs works reasonably well if the pressure drop time points (PDTP) can be determined precisely enough. The minimum number and optimal placement of sensors was examined. Subsequently, different algorithms for extraction of the PDTPs were assessed employing 22 real data sets. The overall best time frames T 1 , T 2 for practical application for each algorithm were determined. During this assessment, the findings showed, data sets can be evaluated with different PC values ranging from 100.0% (best) to 3.6% (worst), where 100% means the EA affected by the leakage was ranked first and 3.6% means it was ranked last. A proposal was given to look more deeply into data set quality to gain an understanding of what leads to this difference in the quality of the results when evaluating the pressure waves within the different data sets.
The aim of this paper is the development and application of a model for data evaluation (MoFoDatEv) to evaluate data sets of several real events. Prior knowledge is used for the development of the model. MoFoDatEv employs a simplified physical model for the reaction of the DHN in the case of a large spontaneous leakage. It is assumed that the pressure drop occurring at the damaged spot propagates through the network without attenuation due to network size. The pressure curve is modelled as a piecewise-defined function with constant start and end values and a linear decrease in between at all sensors. Pressure wave travel times due to the position of leakage and sensors are taken into account. The model will be applied to each event and the values of the time point for the start of the pressure drop t 1 and the duration of the pressure drop Δ p , t will be determined. After a rough determination of these values, they will also be optimized to find the best suitable values. The best suitable values are found if the model fits the real data with the smallest possible deviation. After the evaluation, the model is also used to localize leakages directly within the network. In prior publications, there were two steps necessary: the determination of the PDTP [3] and the attribution to EA to separate the damaged network part [4]. With MoFoDatEv, both steps will be combined as a novelty and first results for artificial and real data will be shown.
The paper is divided into six sections. After the introduction, Section 2 presents related work. In Section 3, the background and motivation are given. MoFoDatEv is described in detail in Section 4. Then, the results of the data evaluation are presented as well as a new method for leakage localization in Section 5, before Section 6 briefly concludes.

2. Related Work

For the evaluation of pressure data within a DHN, no literature is available to our knowledge. Nevertheless, we provide a brief overview on some literature that could be relevant within other contexts and we apply some ideas from them to our problem. Some literature about the data quality assessment of various sensors is available, which is presented briefly to classify our model. About leakage localization within a DHN, there is varied literature available, which will be presented. Based on these ideas, our method will use an improved approach for the leakage localization.
In Iantovics’ paper [5], a method for data quality assessment of synthetic industrial data is presented. Synthetic data are necessary because sometimes it is difficult to obtain real data from sensors or machines and use them in another context. However, the simulated data are limited in usage, based on their poor quality. An approach is proposed for a mathematically grounded data quality assessment to analyze the predictive power of the variables. Assumptions are made which have to be passed by the synthetic data. Furthermore, various indicators for assessing the quality such as e.g., sensitivity, specificity, and accuracy are introduced.
In Smith’s paper [6], the sensor data quality is assessed by an automated online Bayesian framework. This is necessary because the assessment of the determination of a sensor’s quality is critical for usage in real-time applications. A framework is proposed to represent the causes and the quality state of individual sensor errors. Using this approach, a probabilistic quality assessment is established to show the uncertainty of sequentially correlated sensor readings.
In Timm’s paper [7], an automated data quality assessment of marine sensors is presented. The automated data collection led to an increase in the amount of available data. Due to the demand of real-time applications, an automated quality assessment of the data is necessary. This ensures that the data are fit for purpose. A method is proposed to evaluate the data on a quality scale and not, as is often the case, only to make a binary classification between good and bad data. The method is tested on data from marine sensors in a real-time platform.
In Garcia’s paper [8], quality sensors are used to ensure compliance with quality standards in a water distribution system. The sensors have to be maintained frequently in order to work correctly and reliably. During maintenance, the health status of the sensors should also be taken into account. In addition, the collected data should be validated before starting the prognosis of the sensors. Therefore, a method is presented that uses data analysis to detect water quality sensor failures and water quality events. By means of a prognosis system, it is also possible to evaluate the sensors. For this purpose, the time series of the collected data by the quality sensors are analyzed within the system.
In Rahman’s paper [9], the quality assessment of sensor data is performed by a novel machine learning approach. The quality of sensor data is indicated by discrete flags to indicate the degree of associated uncertainty. However, the degree of uncertainty varies because the flags are mainly used by experts. Due to the increasing amount of sensor data, manual assignment is not possible without error. Data with poor quality will lead to an imbalance in data classification. Therefore, a cluster-oriented sampling approach is presented to solve the imbalance. It can also be used to train multiple classifiers to improve the overall classification accuracy. Marin sensor data are used to test the ensemble classification framework. The results show that the framework agrees with the expert estimation with high accuracy.
In Vahldiek’s paper [3], the data of several real events in cases of leakage within a DHN are evaluated. For each event, different algorithms are applied to detect the PDTP. The optimal algorithms are found. Furthermore, the overall best time frames, where the algorithms deliver the best results, are also investigated. With the correct detection of the PDTP, the attribution to the EA can be performed to localize the leakage. For further real events, an optimal algorithm, with its overall best time frame to evaluate the pressure data, is suggested.
In Vahldiek’s paper [4], a framework is developed and presented to perform the attribution to EA: This attribution is calculated based on the existing PDTPs extracted from measurement data. For assessment of the quality of the leakage localization, a performance criterion is introduced. The framework can be used for optimal sensor placement and also for the investigation of noise. For up to five sensors, an optimal sensor placement is presented. In addition, the influence of the noise of the pressure drop time points is evaluated. For different numbers of optimally placed sensors, acceptable noise levels are investigated to allow sufficient leakage localization quality. The results are presented and discussed.
In Rüger’s paper [10], an online prototype was developed and presented to localize leakages in a DHN by evaluating the resulting pressure wave. The localization is performed in two steps. First, the PDTP is estimated for each sensor. With the time information of the detection the pressure wave at each sensor, the attribution to the EA is applied. For the detection of the PDTP, an implemented algorithm is used. The affected EA can be separated from the rest of the network after the attribution to EA. The prototype can localize leakages and, for a first real event, plausible results are achieved.
In Vahldiek’s paper [11], real measurement data are evaluated with three different model- and data-driven approaches. The first approach evaluates the pressure wave in the case of a leakage which propagates throughout the entire network. The second and third approaches are purely data driven. Machine learning models are used within the second approach to localize leakages. The third approach uses available measurement data for numerical computation to determine the network state and the leakage localization. Two real events are evaluated to demonstrate the applicability of the approaches. All three methods are well suited for leakage localization, but the approaches have specific advantages and disadvantages for each event.
In Pierl’s paper [12], three different model- and data-driven approaches evaluate artificial measurement data in a DHN for leakage localization. Two methods can only be used within a new steady state after leakage occurrence whereas the third approach evaluates the resulting pressure wave. The first two methods, a model-based numeric–analytical and a machine learning model, use multiple measurement data like pressure, flow rate, and temperature. The third method is applied on pressure data for detection of the pressure wave. Each approach is presented and applied to the simulated measurement data. Furthermore, for each approach, the influence of random measurement noise is investigated and plausible results are achieved.
In Yuan’s paper [13], an analysis and evaluation of the operation data in a district heating substation for a consumption prediction model is performed. For building the prediction model, the steps of data cleaning, model establishment, and effect evaluation are necessary. Therefore, the problem of missing values is addressed and a solution is suggested. The model used for evaluating the data is based on the calculation of the error between the actual and predicted value. If the actual value is not on the same level as the on-demand value, the method cannot accurately evaluate. This leads to a limited applicability of the prediction model to the existing data.
In Zhou’s paper [14], a comparison of different methods for leakage localization in a DHN is performed. A distinction is made between data-driven, physical-model-based, and unmanned airborne infrared thermography methods. The advantages and disadvantages of the application are discussed. If a sufficient database is available, the data-driven methods can easily be applied to other networks.
In Valinčius’ paper [15], a method for leakage localization in a DHN is presented. The basis is the pressure data from the different sensors within the network. In the case of a leakage, the negative pressure wave is evaluated to localize the correct location. In addition, the optimal data record time for the sensors is presented.
In addition, other, different approaches for leakage localization in DHNs are available. A data-driven method is presented in Xue’s paper [16]. There is the training of a decision-tree-based machine learning algorithm which uses generated data based on a physical model. The collected data from pressure and flow sensors within the investigated DHN are used to detect the leakage. However, this method depends on the availability of pressure sensors in the network. In contrast, different approaches for pipelines are developed and compared in Zaman’s paper [17]. Model-based and data-driven methods are used within an algorithm to detect leakages. In Liu’s paper [18], a physical-model-based algorithm for the detection is utilized.
The literature review has shown that there are some useful components in every presented publication, which are also taken up in this paper. From [5,6,7], the idea of an indicator to classify good and bad data is used. In this paper, a quality measure will be introduced to compare the different data sets. The collected data from [8] are used to identify sensor failures and water quality events. This is comparable to the application of this paper, where leakages are the events which have to be identified by evaluating the sensor data. The accuracy is based on the quality of the data, which is why an assessment is necessary. The machine learning approach from [9] classified the different data sets, and this is also included in our proposed method. In [13], the evaluation of the data is also applied as in this paper. Furthermore, the model used calculated the error between the actual and predicted value of the heat consumption. For our model, there will be also an error calculated between the measurement data and the fitted data. In [14,15], useful methods for leakage localization are applied likewise as in [16] but with a different aspect of the application of a machine learning algorithm. Ideas from [17,18] for leakage detection in pipelines are considered here but pipelines are not directly comparable with a DHN because a DHN is a closed system. The negative pressure wave is evaluated, which is also the basis for MoFoDatEv for the leakage localization. In [10,11,12], the presented evaluation of the pressure wave is divided into two steps: The determination of the PDTPs and the attribution to the EAs. The best suitable algorithm for the PDTP detection is presented in [3] and the required framework in [4]. In this paper, we borrow from these ideas, but an approach is proposed to combine these two steps.

3. Basics and Motivation

In the case of a large, spontaneous leakage where a network shutdown is imminent, Figure 2 shows three very generic but still relevant steps with detection, localization, and separation. To secure safe network operation, the damaged network part has to be separated as fast as possible [3]. Two of these steps are already established in practice. The first step, leakage detection, has been realized reliably by monitoring the refill mass flow in real time, as described in [10,19]. A fast separation of the damaged network part is possible due to the installed EAs. However, the step of localization of the leakage is the crucial one to separate the right EA from the rest of the network.
In the case of a large spontaneous leakage where a network shutdown is imminent, Figure 2 shows the three main steps. The detection of the leakage can be realized reliably by monitoring the refill mass flow in real time like described in [10,19]. Then the leakage detection time point (LDTP) can be estimated. Based on the installed EAs, a fast separation of the damaged network part is possible. The localization is divided into two more sub-steps.
Localizing the leakage position in the network is a demanding task. The localization is performed by evaluating the negative pressure wave. In the case of a leakage, the pressure drops at the leakage position and a negative pressure wave propagates through the entire network and reaches every sensor at a different time point. In the first sub-step for localization, the PDTPs for each sensor are estimated with an algorithm, when the pressure wave is registered by the sensor as described in [3]. In the second step, these PDTPs are used to attribute the leakage location to the EAs [4]. Both steps are already implemented in a prototype application in [10] which runs 24/7 without human interference. A challenge is the improvement of localization results.
Several real events are evaluated in [3]. Different algorithms to detect the PDTPs are investigated and applied to these events. Furthermore, different time frames for the application of the algorithms are examined. Based on a PC, the different algorithms are compared. Within each optimal time frame for the combination of event and algorithm, the leakage will be localized correctly in most of the cases. However, even for one algorithm, the optimal time frame differs depending on the events. For practical application, it is not admissible to use different time frames. A single time frame has to be chosen for each algorithm prior to evaluation of new data sets. Based on the individual time frames of each algorithm, the overall best time frame is selected. Within this overall best time frame, several events were evaluated again with different algorithms. The Bayesian single change point (BCP) algorithm delivered the best localization results and is implemented in the aforementioned prototype in the next step. The division of the pressure curve into multiple blocks and the use of Bayesian methods to estimate the change point as the required PDTP is an advantage of this algorithm [20]. Larger differences within the pressure curves can be better determined with these blocks. Therefore, the PDTPs are very well determinable and the attribution to EA also performs very well. However, the rating of the algorithms might change if further data becomes available or insight into data quality issues is gained. Further, it was recommended to look deeply into data set quality in [3].
In this paper, data set quality of the events is a main scope. To this end, an idealized model for the pressure curves is created and employed. In general, pressure curves belonging to one event are similar and shifted temporarily at every sensor but unique in shape for each event. Nevertheless, a generalized model should be determined. This is because the pressure wave is registered by the respective sensor at a different time point depending on the location of the leakage. As described in [21], the shape of the pressure wave is influenced by superpositions of the reflected portions of the pressure wave and the portions travelling along different ways in a complex network. This constitutes an additional challenge to finding a generalized model. The main idea is to find the right generalized model for the trend of the pressure data in the case of a leakage, which is a demanding task. Additionally, which evaluation time frame should be selected to evaluate the pressure data is also an important aspect. For practical application, a concrete time frame has to be chosen prior to data evaluation. Within this time frame, a possible generalized model can be applied to localize the leakage. However, before or after the LDTP, there could also be other processes in the DHN which have an influence on the pressure curves. Altogether, data evaluation and therefore leakage localization based on the pressure curves is a challenging task. Several real events were already evaluated. Measurement data of the necessary quality to be able to perform evaluations such as in this paper has been recorded since 2017. The last known large spontaneous leakages occurred in 2003 and 2010. Hence, data for refill processes is used because those events are assumed to act like a large spontaneous leakage on the entire network. The normal pressure difference between medium and environment is 5–18 bar. In the case of a leakage, the pressure difference is very large, so that a fast and drastic damage process is most likely. Hence, the temporal course of the mass flow through the damaged spot or through the valve in the case of a refill process is assumed to be equal. This assumption is supported by a smaller real leakage with properties which match very well to the events considered here ( Δ m = 34.1 m 3 / h , g m = 81.2 m 3 / h / min ; this data set was not examined as the pressure wave evaluation failed). In this case, a compensation pipe burst and the leakage rate was limited due to a casing pipe. In this paper, 22 real events are considered and the locations in the network are presented in Figure 3. For now, no further events are available.
The figure shows that most of the real events are in the EAs line 2 No. 6, with five events. In addition, EA line 1 No. 5 and No. 6 contains four events each. Sometimes, it is the same refill process at one location which is divided into several events (e.g., events 1–4). This is due to the valve opening, which is performed stepwise with waiting times in between. Each step causes a pressure wave which can be evaluated. The other events are distributed around the network. In Table 1, the 22 real events from Figure 1 are presented in detail, and they will be evaluated in the following.
With this current paper, more insights about the data quality should be given for the unique events. The PC value is different for each event when the BCP algorithm from [20] and used in [3] is applied within its overall best time frame T 1 ,   T 2 = 100 ,   30 . A high PC value indicates that the affected EA is one of the first places within the ranking. A lower PC value shows a worse ranking. For the events 5, 9, 11, and 13, the affected EA is ranked in the first place. Furthermore, the BCP algorithm ranked the affected EA for nine events (5, 9, 11, 12, 13, 14, 19, 20, 22) in the first three places. However, some events have a worse PC of only 35.7%, which indicates a worse place in the ranking. Further investigation should be focused on the different results and the reasons for that. One reason could be the data quality of the different events. Therefore, the data are evaluated in more detail. The peculiarity of the pressure wave and the change in pressure around the LDTP is investigated. The degree and gradient of pressure level difference are determined. All of this is addressed with the generalized model.

4. Model for Data Evaluation (MoFoDatEv)

The basis of the developed model for quality assessment and leakage localization uses a model concept involving the physical process in case of a leakage. The developed model is called MoFoDatEv and is implemented in the open source software R [22]. The following two subsections define the basics and the development of MoFoDatEv to assess the quality of real events and also for leakage localization.

4.1. Definition of Quality Measures

For the data evaluation of several real events, MoFoDatEv uses the pressure data of each sensor. The model is based on assumptions:
  • Before and after the pressure drop, the measured pressures are (approximately) constant.
  • The pressure wave reaches each sensor with a temporal shift depending on the sensor’s position.
  • The level of the pressure drop and its gradient are (approximately) constant.
The assumptions lead to a simplified model. Pressure wave attenuation and superpositions of the reflected pressure wave portions are neglected. The leakage leads to a local pressure drop that spreads through the whole network. Based on its position in the network, the pressure wave reaches each sensor at a different time point. Because the network has a small spatial extension, the attenuation should be zero. As mentioned before, the pressure drops in the case of a leakage. Therefore, the pressure value drops from a higher start value to a lower end value. Thus, negative gradients are prohibited and end values higher than the start values are not allowed. MoFoDatEv is developed to check the fitting of the generalized model to the measurement data of each event. Additionally, three quality criterions were introduced to quantify the result of the model with the measurement data.
  • Quality measure (QM) to assess the evaluability.
  • Time range to apply the model.
  • Temporal correlation between the PDTP and the refill mass flow.
The first quality criterion indicates that, if QM is equal to zero, then the measurement data and the model match perfectly. The larger QM becomes, the worse the data set and the model match to each other. The second criterion is the usage of the time range in which the data set corresponds to the model. Ideally, this applies to the entire evaluation time frame of 300 s around the LDTP. The third criterion is the temporal correlation between the PDTP and the refill mass flow. Due to the network size and the speed of sound, there should be only a small difference. Figure 4 gives an overview of the application of MoFoDatEv and all relevant parameters.
The figure shows the application of MoFoDatEv to the sensor i of the data set from one event. Some prior knowledge and assumptions are used for the model. It is assumed that the pressure drop can be modelled as a piecewise-defined function with constant start and end values and a linear decrease in the pressure in between. The fit function of the model needs the LDTP to be at time point 0 and the data are presented within 300 s around this LDTP. In Figure 4, the evaluation time frame is defined by T 1 and T 2 , with T 1 = 120 and T 2 = 90 . Within this time frame, the fit function (red lines) is determined. The pressure drops in between t 1 , i and t 2 , i . The first model assumption is used in Formulas (1) and (2), where the start values a i and end values e i are the mean values of all data points p i t within the time frame T 1 , t 1 , i and t 2 , i , T 2 , respectively (green lines).
a i = p i t ¯   in   [ T 1 ,   t 1 , i ]
e i = p i t ¯   in   [ t 2 , i ,   T 2 ]
For the second model assumption, it is defined that the pressure wave originating from the leakage reaches each sensor with a time delay of Δ i , L . The sensor located next to the leakage position has a time difference of Δ i , L = 0 by definition. All other sensors are normalized to that sensor. Therefore, the values for t 1 , i and t 2 , i are calculated with Formulas (3) and (4). The time difference between these two points is defined as Δ p , t .
t 1 , i = t 1 + Δ i , L
t 2 , i = t 1 , i + Δ p , t = t 1 + Δ i , L + Δ p , t
In Figure 4, the values are t 1 = 10.27 and t 2 = 36.06 . The last model assumption indicates that the level of the pressure drop is constant for all sensors within an event. The pressure level difference of each sensor is defined by Δ p , i , with the difference of a i and e i . Furthermore, the pressure level difference for the whole event and the number of sensors N is denoted by Δ p ¯ according to Formulas (5) and (6). For one event, only sensors which have at least 15 data points per 60 s in the evaluation time frame T 1 , T 2 are considered.
Δ p , i = a i e i
Δ p ¯ = i = 1 N Δ p , i N
As Δ p ¯ is set to be equal to all sensors i , the fitted curve does not match a i and e i . The decision was made to distribute the difference Δ d , i equally.
Δ d , i = Δ p , i Δ p ¯ / 2
With the pressure level difference Δ p ¯ and the duration of the pressure drop Δ p , t , the gradient g p can be estimated with Formula (8).
g p = Δ p ¯ Δ p , t
With the application of MoFoDatEv, the introduced QM is used to assess the measurement data and the fitted data with the model. For each data point of sensor i , the mean squared error between the measurement p i t (black circles) and the fitted q i t data points (red line) is calculated. Then, for each sensor i , having d p i data points, Q L , i is determined according to Formula (9). With this, the quality of the data of the sensor i corresponding to the model was evaluated.
Q L , i = p i t q i t 2 d p i
For all sensors used for each event, the Q L , i were also weighted with the overall evaluated data points d p a l l for the evaluation to define the Q L in Formula (10). This leads to an indication of the general quality of the fit for the whole dataset and the model.
Q L = Q L , i d p i d p a l l
MoFoDatEv is applied to each event with different values for the values T 1 , t 1 , t 2 = t 1 + Δ p , t and T 2 . The values of T 1 are in the range of T 1 120 , 110 , , 20 , and for T 2 , in T 2 20 , 30 , , 120 . For each sensor, the start of the pressure drop is determined with the choice of t 1 in a grid of t 1 T 1 0.95 , , 10 with steps of 10. For the time difference Δ p , t , the grid is defined by Δ p , t 0.25 , , T 2 0.95 t 1 0.25 . Within these ranges, parameters are searched for which lead to the best concordance between MoFoDatEv and the data set. In general, the larger the evaluation time frame defined by T 1 and T 2 , the better the model assumptions are applicable. However, these parameters are not as important as the other two defined in MoFoDatEv. For a given evaluation time frame T 1 ,   T 2 , t 1 and Δ p , t (and thus t 2 ) have to be determined to achieve an optimized minimal value for Q M a l l . This means that the start of the pressure drop t 1 and its duration Δ p , t have to be extracted from the data set.
The first level of the procedure is to generate a rough map for each value combination of T 1 and T 2 with the corresponding combination of t 1 and Δ p , t . The second level is also the generation of a rough map for the parameters t 1 and Δ p , t . Out of these two start value searches, the best combination of t 1 and Δ p , t , with the smallest Q L , are the starting values for the optimization. For the optimization, the algorithm of Nelder and Mead is used [23]. The algorithm uses a simplex method for function minimization, which is very robust. Then, for each combination of T 1 and T 2 , optimized values for the parameters t 1 and Δ p , t are available and the best combination is selected with the best fitting results to the measurement data. After this selection and the fitting of MoFoDatEv to the measurement data, not only T 1 ,   T 2 and their optimized parameters t 1 and Δ p , t are available for interpretation, but also further parameters such as Δ p ¯ are considered.

4.2. Application for Leakage Localization

After the basics and the development of MoFoDatEv for quality assessment, some more information is needed to localize leakages. The same model with the same model assumptions and quality criterions is used for leakage localization. Previous publications have shown that two steps are necessary for the localization [4,10,11,12,21]. The first step is the determination of the PDTP [3]. Within the second step, this information is used to identify the EA most likely to contain the damaged network part [4]. The presented approach in this paper is novel in the sense that both steps are combined within MoFoDatEv. Therefore, it is a powerful tool to evaluate data sets and also to localize leakages. In the case of the determination of the PDTP, all information on each pressure curve is densified to only one value. With MoFoDatEv, all information on each pressure curve remains for leakage localization as no densification to PDTP values is necessary. Therefore, MoFoDatEv can be used to determine the PDTP and to identify the affected EA. This is possible because knowledge of the leakage position is included and the time delays for all sensors are calculated with Δ i , L during the quality assessment. In the case of an unknown leakage position, test leakages (TL) j can be placed over the whole DHN to determine the time delays Δ i , j . For each TL j , a Q j is determined and the TL j with the lowest Q j corresponds best to the model conception. This TL j is then chosen to be closest with respect to the leakage position. With this information, a ranking of the EAs can be generated if at least one TL j is placed in every EA. The network investigated here has a total trench length of around 90 km and 8250 pipes. In [4,12,21], TLs are placed in a 10 m grid with at least one TL per pipe. Therefore, 24,368 TLs j were placed throughout the network. In this work, calculation time is critical, as Q j has to be calculated for every TL j . The computing time was decreased as much as possible by using only one TL j in the middle of each EA in a supply pipe. Because the network is divided into 28 different EAs, there are 28 TLs placed in the whole network. Thus, MoFoDatEv has the advantage that both necessary steps, the determination of the PDTP and the attribution to EA, can be combined. This enables the use of all measurement data for localization directly and can lead to improvement of the quality of the results. MoFoDatEv is applied to real measurement data as well as artificial generated data.

5. Results and Discussion

The real events presented in Table 1 are evaluated with MoFoDatEv. The model is applied to each event separately. In Section 5.1, the quality of the data sets is assessed. To this end, a minimal Q L is searched for, as it shows how well the model fits the measurement data. For this purpose, the best combination of T 1 and T 2 , selected from a given grid, is determined for each data set. For this combination, optimized values for t 1 and Δ p , t are calculated. This evaluation is the basis for the classification of the datasets. For the classification of the data sets, further available parameters are included such as Δ p ¯ , for example. In Section 5.2, MoFoDatEv is applied for leakage localization directly.

5.1. Quality Assessment of Several Real Events

The application of MoFoDatEv leads to optimal results for t 1 and Δ p , t for each event. These parameters are optimized for the best time frame, based on T 1 and T 2 , out of a given grid. To classify the different real events, Table 2 was created with the parameters T 1 ,   T 2 for the optimal time frame selected from all combinations and t 1 for the start and t 2 for the end of the pressure drop. Furthermore, Δ p ¯ for the pressure level difference of the whole event and Δ p , t for the time difference are presented.
Table 2 shows the events with the above-mentioned parameters. The table is sorted in ascending order with respect to t 1 . In the first step, all events were neglected which have t 1 < 15   s or t 1 > 15   s . Larger absolute values mean that the pressure drop is extremely early before or after the LDTP and the difference between t 1 and the LDTP is too large considering the speed of sound and the network size. Therefore, the third criterion from Section 4.1 is not fulfilled and the PDTP and LDTP seem not to match in a physical sense. Furthermore, events with a negative value of Δ p ¯ are winnowed. Negative values lead to a pressure rise, not to a pressure drop. Based on all 22 events, only 16 events remain. For these 16 events, a comparison is performed between Δ p ¯ and Δ m . The results are shown in Figure 5.
The figure shows the pressure level difference Δ p ¯ found by MoFoDatEv with respect to the refill mass flow level difference Δ m for each event. A strong correlation is visible, which is indicated by the black dashed line. The pressure level difference is linearly related to the refill mass flow level difference. Experience shows that leakage localization is very hard below a change in the refill mass flow of 50 m 3 / h . It was assumed that pressure waves are not distinct enough in these cases. This matches well to the small pressure level differences extracted by MoFoDatEv in the case of these events. However, the greater the pressure level difference, the better the data set can be evaluated. Therefore, seven data sets (red, orange, yellow, and black) with Δ p ¯ < 0.1   bar (red horizontal line) were considered in more detail. Figure 4 shows an example of sensor data within each of the seven data sets to get an impression of the pressure curves. As a result, the point for event 14 was shifted (light green dotted circle in Figure 5).
For the further analysis, these seven data sets are divided into four categories, which are presented in Table 3.
The table indicates how well the data sets correspond to MoFoDatEv. The color red means a low consistency with the model and a low evaluability whereas orange and yellow show middle and high consistency with the model, respectively, but also low evaluability. At the end, the color green leads to a middle consistency with the model and a high evaluability. For each of these seven data sets, the different pressure curves were evaluated in detail.
Figure 6 shows the pressure curves for one selected sensor for each of the seven data sets where MoFoDatEv found a small pressure level difference Δ p ¯ . MoFoDatEv can evaluate events with suitable results if the pressure level difference before and after the LDTP is large enough and if the change takes place reasonable fast. The seven events in Figure 4 are sorted from left to right and top to bottom in ascending order of their value of Δ p ¯ . The pressure curves are evaluated to find the start of the pressure drop. To this end, evaluation is easier for pressure curves with larger Δ p ¯ values.
The first pressure curve is for sensor 1 from event 7 (top left, red). The data set does not match the model assumptions used in MoFoDatEv, hence the results of MoFoDatEv are not reliable. In contrast to t 1 = 0.07 and Δ p , t = 0.38 found by MoFoDatEv, the pressure in fact declines in between −50 and +20 s, which is a rather long period of time. As mentioned previously, the PDTP and LDTP do not match in this case and the data set is not taken into account for further considerations. Altogether, this event is colored red (cp. Table 3) because the consistency with the model and the evaluability are low.
The next three events are number 10, 5, and 11, with selected sensors 35, 10, and 43 (top right and upper middle row, orange), respectively. Those three events present a middle consistency with the model but also a low evaluability. The refill process seems to be superposed by other processes in the DHN to a large extent. Furthermore, there are some large oscillations which lead to conspicuous pressure drops. Therefore, the pressure wave of the real event cannot be evaluated exactly. For event 11, the pressure values seem to be on the same level the whole time with only one exception around the LDTP. However, this is not interpretable because it does not correspond to the model conception with higher start than end values.
The following events, 9 and 8, with selected sensors 45 and 4 (lower middle row, yellow), respectively, show a high consistency with the model but a low evaluability. The pressure level difference is not very much larger than the noise of the pressure data. Furthermore, the data rate is low. Event 9 shows three plateaus and the pressure decreases slowly. A clear pressure drop is not visible which could be evaluated. Event 8 also shows no clear pressure drop. In the end, it seems that the pressure will further decrease.
The last dataset to be considered was event 14. The measurement data have a middle consistency with the model and a high evaluability. A clear pressure drop around the LDTP is recognizable. The pressure level difference found by MoFoDatEv is the largest here, with Δ p ¯ = 0.076 . However, it is clearly visible that MoFoDatEv underestimates the real change in pressure by a factor of almost two.
Based on this analysis, for the further evaluation, the six events 5, 7, 8, 9, 10, and 11 are excluded. However, event 14 will be further considered. This event is also light green in Figure 6. Therefore, only 10 data sets are remaining. These 10 data sets are now compared with respect to the duration of the pressure drop Δ p , t and the duration of the refill mass flow rise Δ m , t . In Figure 5, the results are presented.
Figure 7 shows the duration of the pressure drop Δ p , t with respect to the duration of the refill mass flow rise Δ m , t . Both durations seem to show a correlation but take place on two totally different time scales. The duration of the refill mass flow rise is constituted in minutes and the duration of the pressure drop in seconds. For the duration of the pressure drop Δ p , t , the results were determined with MoFoDatEv. A strong correlation for the remaining ten data sets is visible. Large parts of the events are refill processes, which act like a real leakage on the entire network. The increase in the replenishment quantity during a refill process depends strongly on how the corresponding motor-driven or manually operated valve is moved. This can be opened quickly; hard and abruptly; or rather slowly, gently, and smoothly. In practice, both operations are possible because the management of leakages relies on the experience of the operators. The effects of a leakage are highly dependent on its position in the network [24]. In the case of a real leakage, a fast pressure change in a short time period is expected.
These differences can be seen exemplarily in events 20 and 22. In event 20, the duration of the refill mass flow rise (35 s) and the duration of the pressure drop (10 s) are very small. However, the replenished quantity is 100.5 m 3 / h , which seems to be a larger leakage based on the refill mass flow (cp. Table 1). In contrast, for event 22, the duration of the refill mass flow rise is about 3 min and the duration of the pressure drop is 28 s, which is very long. The green event 14 (cp. Figure 6) is an outlier because MoFoDatEv extracts the values of Δ p ¯ and Δ p , t inexactly. If better values are extracted manually, the point also shifts upward by a factor of two (light green). During this event, the duration of the refill mass flow rise is very long, at 6:41 min, whereas the duration of the pressure drop covers only a short time period of 10 s. This leads to the fact that the consistency with the model is middle but, in contrast, the evaluability is high, as shown in Table 3. Based on the detailed evaluation steps, all 22 events are classified in three different groups. The groups are presented in Table 4.
The table shows the 22 events divided into three different groups. Each group is sorted based on their values of Δ p ¯ , in descending order. Additionally, the table contains the values for Δ p ¯ , g p , Q L , T 1 , T 2 , and the length of the time window. The first group contains all events which have a high consistency with the model conception and also still have high evaluability. These were the remaining 10 best events. Each event has its own optimal time frame T 1 , T 2 with different time lengths. The average length is 121 s and T 1 = 70   s and T 2 = 51   s on average. Moreover, in the first group, all events have a high value of Δ p ¯ , which indicates a high pressure difference between the start and end pressure values. Therefore, the pressure drop is expected to be better analyzable and these events can be well evaluated according to a small Q L . The second group contains all events which have a worse consistency with the model and a low evaluability. In addition, the whole time frame starts later with T 1 = 40   s but ends with T 2 = 55   s a bit later. These events have a low/middle/high consistency with the model conception and low evaluability (cp. Figure 6). This is also reflected by the smaller values of Δ p ¯ . The third group contains all events which are neglected based on Table 2. For these events, the third quality criterion from Section 4.1 is not fulfilled and the PDTP and LDTP seem not to match in a physical sense. Furthermore, the events 6 and 21, with a negative value of Δ p ¯ , are neglected. The value of g p is then also negative, which indicates a pressure rise instead of a pressure drop. This is not admissible. The evaluability with MoFoDatEv of these events is also not successful because the values of Q L are very high.
With the development of MoFoDatEv, it was possible to evaluate all 22 real events. Each event represents a leakage in the network. Most of them were refill processes, which act like a leakage on the network. Based on the different analysis steps, the events can be classified into three groups. Events which have a middle or high consistency with the model and also events which do not correspond to the model concept. MoFoDatEv cannot only be used to evaluate the events, but also to localize the leakages directly. The application is presented with artificial and real data in the following section.

5.2. Leakage Localization with MoFoDatEv

For the application of MoFoDatEv for leakage localization, the measurement data of event 22 are considered as well as artificial data. The overall best time frame is defined with T 1 ,   T 2 = 60 ,   60 . For the generation of the artificial data, MoFoDatEv was applied to event 22. As a result, the values of t 1 , Δ p , t , and Δ p ¯ are available. Furthermore, all a i and e i values are available. From the real data set, the time points and sensors are kept and only the pressure values are replaced with data generated by MoFoDatEv. These calculated values are then the “new real data”, the artificial data. For localizing the leakage, the aforementioned 28 TLs were placed in the whole network. For each TL j, the start value search is determined as described in Section 4.1. However, for the leakage localization, the overall best time frame is fixed and is not optimized. Therefore, only start values of t 1 and Δ p , t will be searched over with the rough map and then optimized. For both data sets, artificial and measurement, the leakage localization is performed with perfect start values as well as a rough map for the start value search. The advantages are presented in Table 5.
The table shows four levels of difficulty for the application of MoFoDatEv to localize leakages. The first case is the usage of artificial data with perfect start values to localize the leakage with MoFoDatEv. This is the easiest case and is used to check the model for the localization task. The perfect start values are exactly the same values which were used to generate the artificial data. If this execution is not possible with the artificial data, the measurement data would not be suitable either. The second case also uses artificial data, but the start values are searched for over the rough map. Then, these values are optimized and used for the localization. This is a little bit more difficult because it is not clear whether reasonable start values or the optimum can be found. More difficult is the third case, where perfect start values are used with the measurement data. If it is possible to evaluate the measurement data with perfect start values to achieve suitable results, then MoFoDatEv is robust and can work with artificial and real data. The last case, with a rough map for the start value search for the measurement data, is even more difficult. No preconditions or other information are available. The start values have to be determined directly from the measurement data over the rough map and following optimization. For all four cases, the leakage localization was performed. The results of the achieved ranking are presented in Figure 8 with a simplified network topology.
The figure shows the results of the leakage localization with MoFoDatEv with coloring of the EAs according to the ranking. For representation, the investigated DHN is shown with its simplified network topology and the right leakage of this event is located in the EA with the black lightning. The coloring indicates the ranking from Place 1 (red) to Place 28 (green) so that the leakage is in the respective EA. The color red means that this EA has the smallest Q j and the leakage will be in that EA. As the value for Q j increases, the color changes from red across orange and yellow to green. Top left presents the result of the artificial data with perfect start values for the following optimization. The EA affected by the leakage is found perfectly because it is colored red. The success of this case indicates that the model is now suitable for leakage localization and it could be continued to check the other cases. Top right shows the result of the artificial data with start value search and following optimization. For the data evaluation, the overall best time frame was determined (cp. Table 2). For this purpose, the values for of t 1 and Δ p , t of the time frame T 1 ,   T 2 = 60 ,   60 were also calculated. These values are now the start values for the optimization, which leads also to the correct localization of the leakage in the EA containing the black lightning. Therefore, reasonable start values were found over the rough map. After the investigation with the artificial data, MoFoDatEv was also applied to the measurement data of event 22. Bottom left presents the result for the measurement data with the same perfect start values for the optimization as with the artificial data. The affected EA is located as the EA with the color red, which is not the correct one but it is also next to the right EA with the black lightning (color orange). The deviation could be explained with measurement noise within the real data, which has an influence on the correct evaluability. However, a suitable result is achieved. The last result is presented at the bottom right in the figure, which shows the result of the measurement data with a start value search and following optimization. Here, the affected EA by the leakage is also located by the EA with the color red, which is the wrong EA but is also next to the right EA with the black lightning (color orange).
With artificial data, it is proven that the idea fulfils the task for the leakage localization and the application of MoFoDatEv works. For practical purposes, an optimization with perfect start values is not possible because they are unknown. However, with a start value search over a rough map, the model can be applied to real data, which leads to much more plausible results in the neighborhood of the right EA for event 22. In fact, there is no difference working with perfect start values or with ones from a start value search. Due to these plausible results, MoFoDatEv was also applied to all other events based on Table 1. For each event, their start values were searched for with the rough map and then the optimization was performed. To compare all events, the aforementioned PC from Section 1 was used. The results are presented in Table 6.
The table shows the comparison of the leakage localization performance between the best BCP algorithm applied in [3] and MoFoDatEv. The BCP algorithm was applied in the optimal time frame of T 1 ,   T 2 = 100 ,   30 , and for MoFoDatEv the time frame T 1 ,   T 2 = 60 ,   60 was selected. All 22 events were also categorized similarly to the result of Table 4. Based on the PC values, all events were evaluated differently. The range of the PC is, for the BCP algorithm, from 100.0% (first place in the ranking) to 35.7% and, for MoFoDatEv, from 100.0% to 3.6% (last place in the ranking). With an average value of 77.3% for the BCP algorithm and 74.4% for MoFoDatEv over all events, suitable leakage localization results were achieved. Therefore, this novel method is not much worse than the BCP algorithm from the literature. In five cases, the affected EA by the leakage is in the first place. In contrast, BCP ranks the affected EA in the first place only for four events. Furthermore, for ten events, the right EA is in the first three places in the ranking (PC ≥ 92.9%) with MoFoDatEv. Only nine events are in the first places in the ranking with the BCP algorithm. However, events 9 and 10 show that there could be some improvements necessary within MoFoDatEv to reach higher PC values. The three different groups are established based on the quality assessment in Section 5.1. If only the best ten events within the first group were considered, then MoFoDatEv achieved a higher average PC of 79.3% compared to 72.9% for the BCP algorithm. Only three times, for events 14, 20 and 22, did BCP reach a higher PC value. Within the second group, the BCP algorithm is, with 86.3%, on average better than MoFoDatEv, with 62.5%. For events 5, 9, and 11, the affected EA were ranked in the first place with the BCP algorithm. These three events were neglected, based on Figure 6, for the following evaluation with MoFoDatEv, because the pressure difference Δ p ¯ was not high enough. Therefore, events 9 and 10 reached only a PC value of 7.1% and 3.6%, respectively. The last group is based on the analysis of Table 1. The value of t 1 was inadmissible and the value of Δ p ¯ was negative. BCP reaches 75.6% on average in this group whereas MoFoDatEv reaches a better value of 81.5%. This illustrates that, theoretically, even these data sets can be evaluated and lead to a suitable ranking result. It could be possible that the LDTP was determined falsely. If the pressure difference is high enough, then MoFoDatEv should be used for leakage localization because more information remains and both evaluation steps for the determination of the PDTPs and the attribution to EA could be combined.

6. Conclusions

In the case of a large spontaneous leakage, fast separation of the damaged network part is necessary. Hence the pressure wave can be evaluated to decide which EA to separate. Results of the leakage localization are of different quality when evaluating 22 recorded events. For the evaluation of several real events, MoFoDatEv was developed and applied. MoFoDatEv contains prior knowledge and a simplified physical model for evaluating the pressure wave in the case of large spontaneous leakages. MoFoDatEv requires the four parameters T 1 , T 2 , t 1 , and Δ p , t to be optimized (note that Δ p ¯ cannot be optimized separately as this parameter is dependent on the time intervals). If the model fits the real data with the smallest deviation possible, the best suitable values are found.
For quality assessment, three quality criterions could be used to rate the quality of the data sets after the 22 real events were fitted with MoFoDatEv. In the first step, six events with inappropriate values for the value of t 1 were neglected. The values are supposed to be in the range of 15 < t 1 < 15 for physical reasons. In the second step, the values of the pressure Δ p ¯ and the refill mass flow level difference Δ m of 16 events were considered. A linear correlation between the pressure level difference and the refill mass flow level difference was found. Below a refill mass flow difference of 50 m 3 / h and a pressure level difference of Δ p ¯ < 0.1   bar , seven events were considered in detail, as practical experience indicates bad evaluability in these cases. Consistency with the model was checked and a further six events were neglected. Thus, a refill mass flow difference of 50 m 3 / h is set as the lower limit for evaluability for the network and data considered here. A second linear correlation between the duration of the changes of pressures and the refill mass flow is indicated by the data. The remaining ten events were categorized into three different groups based on the results of the quality assessment.
For the localization of leakages, a ranking for possible leakage localizations was determined with MoFoDatEv accordingly. The results were obtained for artificial and measurement data. MoFoDatEv is compared to the BCP algorithm from [3] for the application on the measurement data. It has to be taken into account that the best overall timeframe is not yet determined for MoFoDatEv. Over all events, the BCP leads, on average, to a higher PC value of 77.3%, compared to 74.4% for MoFoDatEv. However, the model assesses the quality of the events and, in the first group with the remaining ten best events, MoFoDatEv reached a PC of 79.3%, compared to 72.9% with the BCP algorithm. Therefore, if a pressure drop is available and the value of Δ p ¯ is large enough, MoFoDatEv leads to better results because all information is considered and there is no densification where information could be lost.
Future work will focus on an improvement of MoFoDatEv. The leakage localization especially has a great potential to reach even better results for all events. As in [3], a best overall time frame should be determined. It is perhaps possible to fit not the whole piecewise function but only the linear decrease for the pressure drop. Then, only the start point and the duration of the pressure drop will be determined and fitted to the measurement data. With this improvements, higher PC values could be possible.

Author Contributions

Conceptualization, K.V. and B.R.; Methodology, K.V.; Software, K.V.; Validation, B.R.; Formal Analysis, F.K.; Investigation, K.V.; Resources, B.R.; Data Curation, K.V.; Writing—Original Draft Preparation, K.V.; Writing—Review and Editing, B.R. and F.K.; Visualization, K.V.; Supervision, F.K.; Project Administration, B.R.; Funding Acquisition, F.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Federal Ministry of Economic Affairs and Climate Action (BMWK), grant numbers 03ET1624 B and C.Sensors 22 05300 i001

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to thank the Federal Ministry of Economic Affairs and Climate Action (BMWK) and Project Management Juelich (PtJ) for funding this research and development project as a part of the Federal Government’s 6th Energy Research Programme (funding code: 03ET1624 B and C)).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

SymbolDescription
Glossary
BCPBayesian single change point algorithm
DHNDistrict Heating Network
EAExclusion Area—specific area in the network which can be separated
LDTPLeakage detection time point
PCPerformance criterion—comparison metric
PDTPPressure drop time point
QMQuality measure
TL(s)Test leakage(s)—position(s) used for leakage localization
Nomenclature
i Specific sensor
N Number of evaluated sensors per event
L Leakage
p i t Non - uniform   time - dependent   pressure   value   of   a   specific   sensor   i
q i t Fitted   non - uniform   time - dependent   pressure   value   of   a   specific   sensor   i
T 1 , T 2 Evaluation time frame with a left and right time border
t 1 Start of the pressure drop at the sensor closest to the leakage position
t 2 End of the pressure drop at the sensor closest to the leakage position
t 1 , i Start   of   the   time - shifted   pressure   drop   at   a   specific   sensor   i
t 2 , i End   of   the   time - shifted   pressure   drop   at   a   specific   sensor   i
Δ i , L Time   delay   of   a   specific   sensor   i with respect to the sensor closest to the leakage position L
a i Mean   value   for   the   start   values   of   a   specific   sensor   i
e i Mean   value   for   the   end   values   of   a   specific   sensor   i
Δ p , i Pressure   level   difference   of   a   specific   sensor   i
Δ d , i Difference   between   MoFoDatEv   and   the   measurement   data   of   a   specific   sensor   i
Δ p ¯ Pressure level difference of the pressure drop
Δ p , t Duration of the pressure drop
g p Gradient of the pressure drop
Δ m Refill mass flow level difference of the refill mass flow rise
Δ m , t Duration of the refill mass flow rise
d p i Evaluated   data   points   of   a   specific   sensor   i in the evaluation time frame
d p a l l Evaluated data points for all sensors of the whole data set in the evaluation time frame
Q L , i Quality   measure   of   the   fit   for   a   specific   sensor   i   and   MoFoDatEv   for   the   leakage   position   L
Q L Quality measure of the fit for all sensors of the whole data set and MoFoDatEv for the leakage position L
j Number of the test leakage
Δ i , j Time   delay   of   a   specific   sensor   i with respect to the sensor closest to a test leakage j
Q j Quality measure of the fit for all sensors of the whole dataset and MoFoDatEv for a test leakage j

References

  1. Lund, H.; Thorsen, J.E.; Jensen, S.S.; Madsen, F.P. Fourth-Generation District Heating and Motivation Tariffs. ASME Open J. Eng. 2022, 1. [Google Scholar] [CrossRef]
  2. Villalobos, F.; Hay, S.; Weidlich, I. Monitoring in a District Heating Pipeline System. In Energy Geotechnics; Ferrari, A., Laloui, L., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 132–139. ISBN 978-3-319-99669-1. [Google Scholar]
  3. Vahldiek, K.; Yao, Y.; Rüger, B.; Klawonn, F. Application and Optimization of Algorithms for Pressure Wave Evaluation Based on Measurement Data. Appl. Sci. 2022, 12, 4192. [Google Scholar] [CrossRef]
  4. Vahldiek, K.; Rüger, B.; Klawonn, F. Optimal sensor placement and influence of noise on pressure wave evaluation for leakage localization in a district heating network. Sustain. Energy Grids Netw. 2022, 30, 100672. [Google Scholar] [CrossRef]
  5. Iantovics, L.B.; Enăchescu, C. Method for Data Quality Assessment of Synthetic Industrial Data. Sensors 2022, 22, 1608. [Google Scholar] [CrossRef] [PubMed]
  6. Smith, D.; Timms, G.; Souza, P.d.; D’Este, C. A Bayesian framework for the automated online assessment of sensor data quality. Sensors 2012, 12, 9476–9501. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Timms, G.P.; Souza, P.A.d.; Reznik, L.; Smith, D.V. Automated data quality assessment of marine sensors. Sensors 2011, 11, 9589–9602. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Garcia, D.; Puig, V.; Quevedo, J. Prognosis of Water Quality Sensors Using Advanced Data Analytics: Application to the Barcelona Drinking Water Network. Sensors 2020, 20, 1342. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  9. Rahman, A.; Smith, D.V.; Timms, G. A Novel Machine Learning Approach Toward Quality Assessment of Sensor Data. IEEE Sens. J. 2014, 14, 1035–1047. [Google Scholar] [CrossRef]
  10. Rüger, B.; Pierl, D.; Guber, M.; Yin, J.; Baur, M.; Eberhard, H.; Klawonn, F.; Michels, K. Online Leakage Attribution to Exclusion Areas Prototype Application. Energy Procedia 2018, 149, 575–584. [Google Scholar] [CrossRef]
  11. Vahldiek, K.; Koltermann, J.; Pierl, D.; Rüger, B.; Nürnberger, A.; Michels, K.; Klawonn, F. Leakage Localization in District Heating Networks Based on Real Network and Measurement Data. Energy Rep. 2021, 7, 508–516. [Google Scholar] [CrossRef]
  12. Pierl, D.; Vahldiek, K.; Geisler, J.; Ruger, B.; Michels, K.; Klawonn, F.; Nurnberger, A. Online model- and data-based leakage localization in district heating networks—Impact of random measurement errors. In Proceedings of the 2020 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Toronto, ON, Canada, 11–14 October 2020; pp. 2331–2338, ISBN 978-1-7281-8526-2. [Google Scholar]
  13. Yuan, J.; Zhou, Z.; Huang, K.; Han, Z.; Wang, C.; Lu, S. Analysis and evaluation of the operation data for achieving an on-demand heating consumption prediction model of district heating substation. Energy 2021, 214, 118872. [Google Scholar] [CrossRef]
  14. Zhou, S.; O’Neill, Z.; O’Neill, C. A review of leakage detection methods for district heating networks. Appl. Therm. Eng. 2018, 137, 567–574. [Google Scholar] [CrossRef]
  15. Valinčius, M.; Vaišnoras, M.; Kaliatka, A. Study and demonstration of pressure wave-based leak detection in a district heating network. Struct. Infrastruct. Eng. 2018, 14, 151–162. [Google Scholar] [CrossRef]
  16. Xue, P.; Jiang, Y.; Zhou, Z.; Chen, X.; Fang, X.; Liu, J. Machine learning-based leakage fault detection for district heating networks. Energy Build. 2020, 223, 110161. [Google Scholar] [CrossRef]
  17. Zaman, D.; Tiwari, M.K.; Gupta, A.K.; Sen, D. A review of leakage detection strategies for pressurised pipeline in steady-state. Eng. Fail. Anal. 2020, 109, 104264. [Google Scholar] [CrossRef]
  18. Liu, C.; Li, Y.; Xu, M. An integrated detection and location model for leakages in liquid pipelines. J. Pet. Sci. Eng. 2019, 175, 852–867. [Google Scholar] [CrossRef]
  19. Filippini, E.; Marini, I.; Ongari, M.; Pedretti, E. District heating leakage measurement: Development of methods. Energy Procedia 2018, 149, 297–306. [Google Scholar] [CrossRef]
  20. Wang, X.; Emerson, J.W. Bayesian Change Point Analysis of Linear Models on Graphs. 2015. Available online: https://arxiv.org/pdf/1509.00817 (accessed on 25 March 2022).
  21. Vahldiek, K.; Rüger, B.; Pierl, D.; Klawonn, F. Optimal Sensor Placement for Pressure Wave Detection for Leakage Localization in a District Heating Network. Energy Rep. 2021, 7, 499–507. [Google Scholar] [CrossRef]
  22. R Core Team. R: A Language and Environment for Statistical Computing; R Core Team: Vienna, Austria, 2021. [Google Scholar]
  23. Nelder, J.A.; Mead, R. A Simplex Method for Function Minimization. Comput. J. 1965, 7, 308–313. [Google Scholar] [CrossRef]
  24. Guelpa, E.; Verda, V. Model for optimal malfunction management in extended district heating networks. Appl. Energy 2018, 230, 519–530. [Google Scholar] [CrossRef]
Figure 1. Schematic representation of a district heating network (Reprinted with permission from Ref. [3]. 2022, Vahldiek).
Figure 1. Schematic representation of a district heating network (Reprinted with permission from Ref. [3]. 2022, Vahldiek).
Sensors 22 05300 g001
Figure 2. Emergency management steps in the case of a large spontaneous leakage with imminent shutdown of the network (Reprinted with permission from Ref. [3]. 2022, Vahldiek).
Figure 2. Emergency management steps in the case of a large spontaneous leakage with imminent shutdown of the network (Reprinted with permission from Ref. [3]. 2022, Vahldiek).
Sensors 22 05300 g002
Figure 3. Representation of locations in the investigated network for each event.
Figure 3. Representation of locations in the investigated network for each event.
Sensors 22 05300 g003
Figure 4. Example for sensor i with MoFoDatEv for data evaluation.
Figure 4. Example for sensor i with MoFoDatEv for data evaluation.
Sensors 22 05300 g004
Figure 5. Comparison between pressure and refill mass flow level differences for each event.
Figure 5. Comparison between pressure and refill mass flow level differences for each event.
Sensors 22 05300 g005
Figure 6. Pressure curves for one exemplary sensor for events where MoFoDatEv extracted small values of Δ p ¯ .
Figure 6. Pressure curves for one exemplary sensor for events where MoFoDatEv extracted small values of Δ p ¯ .
Sensors 22 05300 g006
Figure 7. Comparison between the time for the pressure and the refill mass flow change.
Figure 7. Comparison between the time for the pressure and the refill mass flow change.
Sensors 22 05300 g007
Figure 8. Result of leakage localization with MoFoDatEv with coloring of exclusion areas according to the ranking (top left: artificial data and perfect start values for optimization; top right: artificial data and search for start values for optimization; bottom left: measurement data and perfect start values for optimization; bottom right: measurement data and search of start values for optimization).
Figure 8. Result of leakage localization with MoFoDatEv with coloring of exclusion areas according to the ranking (top left: artificial data and perfect start values for optimization; top right: artificial data and search for start values for optimization; bottom left: measurement data and perfect start values for optimization; bottom right: measurement data and search of start values for optimization).
Sensors 22 05300 g008
Table 1. Evaluation of 22 real events (Adapted with permission from Ref. [3]. 2022, Vahldiek).
Table 1. Evaluation of 22 real events (Adapted with permission from Ref. [3]. 2022, Vahldiek).
#DateBegin Quantity m 3 / h End Quantity m 3 / h Δ m m 3 / h g m m 3 / h / m i n PC   BCP [ T 1 = 100 ,   T 2 = 30 ]
127.07.201717:38:0023.517:39:3078.054.436.335.7%
227.07.201717:42:4578.017:44:30146.168.239.046.4%
327.07.201717:51:30146.117:52:15221.475.2100.385.7%
427.07.201717:54:30221.417:55:15251.930.640.857.1%
501.08.201708:23:2484.008:24:0094.010.016.7100.0%
601.08.201709:02:0046.109:09:30113.567.49.078.6%
701.08.201713:49:2683.013:49:55100.017.035.260.7%
826.06.201813:31:4629.013:32:3550.021.025.782.1%
926.06.201813:33:5450.013:35:45100.050.027.0100.0%
1026.06.201813:36:34100.013:36:55124.024.068.675.0%
1126.06.201813:37:17124.013:37:53158.034.056.7100.0%
1225.07.201806:53:2660.006:55:52140.080.032.992.9%
1309.05.202013:14:1170.813:15:13231.7160.8155.6100.0%
1403.09.202014:34:496.114:41:3076.970.910.692.9%
1517.09.202017:46:1927.117:48:53195.6168.665.785.7%
1625.09.202010:58:1321.510:59:20158.4136.9122.635.7%
1729.09.202009:45:239.409:45:30421.3411.93530.085.7%
1828.07.202116:59:2543.816:59:53122.078.1167.453.6%
1928.07.202117:02:4046.917:03:30149.9103.0123.692.9%
2028.07.202117:30:46100.517:31:21200.790.0154.392.9%
2130.09.202109:28:4790.009:28:58133.043.0234.550.0%
2207.10.202108:14:0839.808:17:12254.2214.469.996.4%
Table 2. Real events sorted by t 1 .
Table 2. Real events sorted by t 1 .
#Date T 1 t 1 Δ p , t T 2 Δ p ¯
1828.07.2021−100−60.9239.95200.0736
1309.05.2020−120−47.8871.07400.5341
1729.09.2020−90−30.6110.10200.0050
1517.09.2020−50−29.3352.62700.3178
227.07.2017−120−10.2736.06900.2652
601.08.2017−30−10.0110.2840−0.0054
501.08.2017−20−9.9111.32200.0325
1225.07.2018−30−8.9820.44200.1023
127.07.2017−120−8.5229.851100.1837
2207.10.2021−110−7.8827.88500.4028
1928.07.2021−50−7.8719.67200.3836
1625.09.2020−20−4.4818.68200.3905
427.07.2017−20−2.9214.31200.1242
327.07.2017−120−2.131.391200.1536
1403.09.2020−20−0.859.72200.0764
1026.06.2018−50−0.250.30400.0278
2028.07.2021−90−0.1910.27400.1517
701.08.2017−200.070.31200.0211
926.06.2018−800.0820.22700.0733
1126.06.2018−201.790.31600.0335
826.06.2018−505.5221.681200.0925
2130.09.2021−209.110.3580−0.1510
Table 3. Categories for data sets with a small pressure level difference.
Table 3. Categories for data sets with a small pressure level difference.
ColorConsistency with ModelEvaluability
RedLowLow
OrangeMiddleLow
YellowHighLow
GreenMiddleHigh
Table 4. Three different groups to classify all 22 events.
Table 4. Three different groups to classify all 22 events.
# Δ p ¯ g p Q L T 1 T 2 Length
220.40280.01450.0044−11050160
160.39050.02090.0064−202040
190.38360.01950.0071−502070
20.26520.00740.0019−12090210
10.18370.00620.0008−120110230
30.15360.11050.0072−120120240
200.15170.01480.0025−9040130
40.12420.00870.0012−202040
120.10230.00500.0003−302050
140.07640.00790.0008−202040
Mean −7051121
80.09250.00420.0009−50120170
90.07330.00360.0008−8070150
110.03350.10810.0012−206080
50.03250.00290.0028−202040
100.02780.09260.0008−504090
70.02110.06800.0003−202040
Mean −405595
130.53410.00750.0073−12040160
150.31780.00600.0051−5070120
180.07360.00180.0019−10020120
170.00500.00050.0023−9020110
6−0.0054−0.00050.0025−304070
21−0.1510−0.43150.0138−2080100
Mean −6845113
Table 5. Comparison for usage of the perfect start values and the start value search for the artificial and measurement data.
Table 5. Comparison for usage of the perfect start values and the start value search for the artificial and measurement data.
Perfect Start ValuesRough Map for Start Value Search
Artificial dataI: Simplest case as a prerequisite for application to measurement data.II: Possibility to find suitable start values.
Measurement dataIII: Possibility to evaluate measurement data with perfect start values.IV: No preconditions are used and start values have to be determined from measurement data.
Table 6. Comparison of the PC results for leakage localization with a BCP algorithm and MoFoDatEv.
Table 6. Comparison of the PC results for leakage localization with a BCP algorithm and MoFoDatEv.
# PC   BCP T 1 ,   T 2 = 100 ,   30 PC   MoFoDatEv T 1 ,   T 2 = 60 ,   60
2296.4%85.7%
1635.7%89.3%
1992.9%100.0%
246.4%92.9%
135.7%92.9%
385.7%92.9%
2092.9%17.9%
457.1%96.4%
1292.9%100.0%
1492.9%25.0%
Mean72.9%79.3%
882.1%96.4%
9100.0%7.1%
11100.0%89.3%
5100.0%100.0%
1075.0%3.6%
760.7%78.6%
Mean86.3%62.5%
13100.0%100.0%
1585.7%85.7%
1853.6%100.0%
1785.7%78.6%
678.6%89.3%
2150.0%35.7%
Mean75.6%81.5%
Mean overall77.3%74.4%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vahldiek, K.; Rüger, B.; Klawonn, F. Leakages in District Heating Networks—Model-Based Data Set Quality Assessment and Localization. Sensors 2022, 22, 5300. https://doi.org/10.3390/s22145300

AMA Style

Vahldiek K, Rüger B, Klawonn F. Leakages in District Heating Networks—Model-Based Data Set Quality Assessment and Localization. Sensors. 2022; 22(14):5300. https://doi.org/10.3390/s22145300

Chicago/Turabian Style

Vahldiek, Kai, Bernd Rüger, and Frank Klawonn. 2022. "Leakages in District Heating Networks—Model-Based Data Set Quality Assessment and Localization" Sensors 22, no. 14: 5300. https://doi.org/10.3390/s22145300

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop