A fire water supply monitoring method and system

By arranging multiple pressure sensors in the fire water supply system and training the automatic water leakage recognition model, combined with the Transformer and ResNet network layers, the problems of low fault diagnosis efficiency and low accuracy in the existing technology are solved, and the detection of water supply pipe leakage is realized. Accurate judgment and system optimization.

CN118557932BActive Publication Date: 2024-10-08青岛峻海物联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045232.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-08
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The fault diagnosis of the existing fire water supply system relies on human experience, which is inefficient and inaccurate. It is difficult to accurately determine the leakage of water supply pipes with traditional threshold settings, resulting in a waste of data resources.

Method used

Multiple pressure sensors are arranged along the water supply pipe to collect pressure data and train an automatic water leakage identification model. The model is optimized through the Transformer and ResNet network layers to determine whether there is water leakage in the water supply pipe, and the model is automatically optimized based on on-site inspection results.

Benefits of technology

It achieves accurate assessment and judgment of the overall pressure data of the water supply pipe, improves the safety, reliability and intelligence of fire water supply monitoring, and solves the problem of being unable to accurately judge water leakage with single or multiple threshold settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118557932B_ABST
    Figure CN118557932B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of fire water supply monitoring scheme design, and specifically to a fire water supply monitoring method and system. The present invention collects pressure data by using a plurality of pressure sensors arranged at preset intervals along the pipeline of a water supply pipe, and trains an automatic recognition model for water supply pipe leakage, thereby judging whether there is a water leakage in the water supply pipe. If there is, the on-site staff conducts an on-site inspection of the water supply pipe and uploads the inspection results. According to the inspection results, the automatic recognition model for water supply pipe leakage can be automatically retrained, thereby automatically optimizing the automatic recognition model for water supply pipe leakage, realizing an overall evaluation and judgment of the overall pressure data of the water supply pipe over a period of time, and more accurately judging whether the overall pressure data of the water supply pipe over a period of time is in a leaking state, thereby greatly improving the safety, reliability and intelligence of fire water supply monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fire water supply monitoring scheme design, and in particular to a fire water supply monitoring method and system. Background Art

[0002] Building fire water supply systems tend to be more complex. However, fire supervisors and maintenance personnel usually detect the operating conditions of building fire water supply systems based on experience, and the judgment of problems such as pipe network leakage, under / overpressure, water discharge, blockage, valve opening / closing errors, and equipment failures depends entirely on manpower. The traditional fault diagnosis model relies heavily on the technical level and experience accumulation of supervisors / maintenance personnel. On the one hand, the technical threshold is high, and on the other hand, it may work for simple fire water supply systems, but for the current increasingly complex fire water supply systems, the traditional model is not only inefficient, but also inaccurate.

[0003] At present, the urban fire remote monitoring system has realized the remote real-time monitoring and alarm of the building fire water supply system, and has also promoted the daily management of the fire water supply system. However, the urban fire remote monitoring system is used to provide water pressure, water level and alarm data of the monitoring points. A large amount of IoT device perception data has not been processed and applied in a timely and effective manner, and the faults of the fire water supply system cannot be qualitatively and quantitatively analyzed, resulting in a waste of data resources.

[0004] In the prior art, water pipe leakage is often monitored by setting a single or multiple thresholds of multiple sensors. However, since the thresholds are obtained through manual experience, there are large errors. That is, the setting of a single or multiple thresholds cannot accurately determine whether the water pipe is leaking, and it is easy to be misjudged by the system. It is difficult to conduct an overall evaluation and judgment of the overall pressure data of the water pipe over a period of time, that is, it is difficult to accurately judge whether the overall pressure data of the water pipe over a period of time is in a leaking state.

[0005] Therefore, the prior art needs to be further developed. Summary of the invention

[0006] The purpose of the present invention is to overcome the above technical deficiencies and provide a fire water supply monitoring method and system to solve the problems existing in the prior art.

[0007] To achieve the above technical objectives, according to a first aspect of the present invention, the present invention provides a fire water supply monitoring method, the method comprising:

[0008] S100, after the water supply pipe is installed and before it is put into use, a plurality of pressure sensors are arranged along the water supply pipe at preset intervals, wherein the plurality of pressure sensors are used to obtain the water pressure in the water supply pipe;

[0009] S200, within a first preset time, record the pressure data of multiple pressure sensors collected at the same time point as a first pressure data set, obtain multiple first pressure data sets collected at multiple time points according to a preset time interval, divide the multiple first pressure data sets into a training data set and a verification data set according to a first preset ratio, and use the training data set to train the automatic recognition model for water pipe leakage; use the verification data set to optimize the trained automatic recognition model for water pipe leakage, optimize the model parameters, and complete the training of the automatic recognition model for water pipe leakage;

[0010] S300. After the water supply pipe is put into use, within a first preset time, the pressure data of multiple pressure sensors collected at the same time point are recorded as a second pressure data set, and multiple second pressure data sets collected at multiple time points are obtained at preset time intervals. The multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, and the recognition result is output to determine whether there is a leakage in the water supply pipe. According to the judgment result, it is determined whether to output an alarm signal regarding the leakage in the water supply pipe. If so, the on-site staff will conduct an on-site inspection of the water supply pipe to confirm whether there is actually a leakage in the water supply pipe, and use the cloud server to record and transmit the on-site inspection result data, obtain the on-site inspection result data, and determine whether to combine the multiple second pressure data sets as a new training data set based on the on-site inspection result data to retrain the automatic recognition model for water pipe leakage, thereby automatically optimizing the automatic recognition model for water pipe leakage.

[0011] Specifically, the method includes:

[0012] After the water supply pipe is installed and before it is put into use, it is necessary to inspect the installed water supply pipe to ensure that there is no leakage problem in the installed water supply pipe.

[0013] Specifically, the arrangement of a plurality of pressure sensors along the water supply pipe at preset intervals includes:

[0014] The number of pressure sensors is calculated according to the ratio of the height of the water supply pipe to a preset height, where the preset height is the floor height of the target building.

[0015] Specifically, the method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model includes:

[0016] The training data set is input into the preset network layer in batches for training, and the preset network layer includes a Transformer network layer. The Transformer network layer is used to predict the pressure data set at the next time point based on the pressure data set collected at the current time point by forward propagation, and then obtain the predicted loss value; the loss value of the preset network layer is calculated and input into the optimizer for optimization to determine the direction in which the parameter gradient of the automatic water pipe leakage identification model decreases fastest; the automatic water pipe leakage identification model performs back propagation according to the loss value and the parameter gradient of the model to optimize the parameters of the automatic water pipe leakage identification model.

[0017] Specifically, the method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model, further includes:

[0018] After each training, the verification data set is input into the preset network layer of the previous training in batches for model parameter verification, and cyclic training is performed, with the total number of training rounds set to the first preset round; the loss value of the preset network layer is recorded, and it is determined whether the loss value meets the first preset condition, and whether to end the training and output the model parameters based on the judgment result.

[0019] Specifically, the determining whether the loss value satisfies the first preset condition, and determining whether to end the training and output the model parameters according to the determination result, includes:

[0020] If the loss value meets the first preset condition, the training is terminated and the parameters of the current water pipe leakage automatic identification model are output; if the loss value does not meet the first preset condition, the training is continued;

[0021] The first preset condition is that after the second preset round of training, the loss values ​​obtained in the next round of training are greater than or equal to the loss values ​​that occurred during the second preset round of training.

[0022] Specifically, the recognition result is whether there is a water leakage or not, the multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, the recognition result is output, and then it is determined whether there is a water leakage in the water pipe, and whether to output an alarm signal about the water leakage in the water pipe according to the judgment result, including:

[0023] If the output result is that there is a water leakage, it is determined that an alarm signal about the water leakage in the water supply pipe is output;

[0024] If the output result is that there is no water leakage, a prompt signal indicating that there is no water leakage in the water supply pipe is output.

[0025] Specifically, the field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the multiple second pressure data sets as a new training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes:

[0026] If the field inspection result data shows that there is actually no water leakage, the multiple second pressure data sets and the training result that there is no water leakage are used as new training data sets to retrain the automatic water pipe leakage identification model, thereby automatically optimizing the water pipe leakage automatic identification model.

[0027] Specifically, the field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the multiple second pressure data sets as a new training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes:

[0028] If the actual inspection result data shows that there is an actual water leakage, the multiple second pressure data sets and the training result that there is no water leakage will not be used as new training data sets, the automatic water pipe leakage identification model will not be retrained, and the automatic water pipe leakage identification model will not be automatically optimized.

[0029] According to a second aspect of the present invention, there is provided a fire water supply monitoring system, comprising:

[0030] An acquisition module, comprising a plurality of pressure sensors arranged at preset intervals along the water supply pipe, for acquiring the water pressure in the water supply pipe;

[0031] The control module is used to record the pressure data of multiple pressure sensors collected at the same time point within a first preset time as a first pressure data set, obtain multiple first pressure data sets collected at multiple time points according to preset time intervals, divide the multiple first pressure data sets into training data sets and verification data sets according to first preset ratios, and use the training data sets to train the automatic recognition model for water pipe leakage; use the verification data set to optimize the trained automatic recognition model for water pipe leakage, optimize model parameters, and complete the training of the automatic recognition model for water pipe leakage; and after the water pipe is put into use, within the first preset time, record the pressure data of multiple pressure sensors collected at the same time point as a second pressure data set, Acquire multiple second pressure data sets collected at multiple time points at preset time intervals, input the multiple second pressure data sets into the automatic recognition model for water pipe leakage, output the recognition result, and then determine whether there is a leakage in the water pipe, and determine whether to output an alarm signal regarding the water pipe leakage based on the determination result; if so, conduct an on-site inspection of the water pipe by on-site staff to confirm whether there is actually a leakage in the water pipe, and use a cloud server to record and transmit the on-site inspection result data, obtain the on-site inspection result data, and determine whether to combine the multiple second pressure data sets as a new training data set based on the on-site inspection result data to retrain the automatic recognition model for water pipe leakage, thereby automatically optimizing the automatic recognition model for water pipe leakage.

[0032] Beneficial effects:

[0033] The present invention utilizes multiple pressure sensors arranged at preset intervals along the water supply pipe to collect pressure data and train an automatic water supply pipe leakage recognition model to determine whether there is a water leakage in the water supply pipe. If so, on-site staff will conduct an on-site inspection of the water supply pipe and upload the inspection results. The automatic water supply pipe leakage recognition model can be automatically retrained based on the inspection results, and then the automatic water supply pipe leakage recognition model can be automatically optimized, thereby achieving an overall evaluation and judgment of the overall pressure data of the water supply pipe over a period of time, and more accurately judging whether the overall pressure data of the water supply pipe over a period of time is in a leakage state. This greatly improves the safety, reliability and intelligence of fire water supply monitoring, and solves the problem that the setting of a single or multiple thresholds cannot accurately determine whether a water pipe is leaking. This greatly improves the intelligence and usability of the present invention and greatly expands the application scenarios of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a flow chart of a fire water supply monitoring method provided in a specific embodiment of the present invention;

[0035] Figure 2Schematic diagram of the system composition of the fire water supply monitoring system provided in a specific embodiment of the present invention;

[0036] Figure 3 It is a structural schematic diagram of a water pipe leakage automatic identification model provided in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.

[0038] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.

[0039] See also Figure 1 The present invention provides a fire water supply monitoring method, comprising:

[0040] S100: After the water supply pipe is installed and before it is put into use, a plurality of pressure sensors are arranged along the water supply pipe at preset intervals, and the plurality of pressure sensors are used to obtain the water pressure in the water supply pipe.

[0041] It should be noted that the steps before step S100 include:

[0042] A first preset time, a preset time interval, a first preset ratio, a first preset round, a second preset round, a preset interval, and a preset height are preset in the control module.

[0043] It can be understood that the first preset time, preset time interval, first preset ratio, first preset round, second preset round, preset interval, and preset height can be specifically set according to the actual needs of the user of the present invention. The present invention does not limit the specific values ​​of the above parameters, and there is no regularity in setting the specific values ​​of the above parameters, as long as it is applicable to the fire water supply monitoring method proposed in the present invention.

[0044] Preferably, the present invention sets the first preset time to 120 seconds, the present invention sets the preset time interval to 2 seconds, the present invention sets the first preset ratio to 8:2, the present invention sets the first preset round to 20,000 times, and the present invention sets the second preset round to 200. The above settings can further improve the performance of the model and the efficiency of model training, and greatly improve the accuracy and reliability of the prediction of the automatic identification model of water pipe leakage of the present invention.

[0045] It is understandable that when the water supply pipe is in a normal state, there is a certain regularity between the water pressures at various points in the water supply pipe. For example, there is a certain dynamic balance relationship between the water pressure at each point and the height of each point and the pressure of the water pump in the water supply pipe. When there is a leak in the water supply pipe, this balance relationship will be broken. The present invention designs and trains an automatic recognition model for water pipe leaks based on this.

[0046] Specifically, the method includes:

[0047] After the water supply pipe is installed and before it is put into use, it is necessary to inspect the installed water supply pipe to ensure that there is no leakage problem in the installed water supply pipe.

[0048] It is understandable that how to ensure that the installed water supply pipe does not have a leakage problem can be checked by relevant staff according to industry standards, and the present invention will not go into details here.

[0049] Specifically, the arrangement of a plurality of pressure sensors along the water supply pipe at preset intervals includes:

[0050] The number of pressure sensors is calculated according to the ratio of the height of the water supply pipe to the preset height, where the preset height is the floor height of the target building. At this time, the preset interval is the preset height, and the floor height of the target building can be obtained according to the CAD planning data of the target building.

[0051] S200. Within a first preset time, the pressure data of multiple pressure sensors collected at the same time point are recorded as a first pressure data set, and multiple first pressure data sets collected at multiple time points are obtained at preset time intervals, and the multiple first pressure data sets are divided into training data sets and verification data sets according to first preset ratios, and the training data sets are used to train the automatic water pipe leakage recognition model; the verification data sets are used to optimize the trained automatic water pipe leakage recognition model, optimize the model parameters, and complete the training of the automatic water pipe leakage recognition model.

[0052] Specifically, the method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model includes:

[0053] The training data set is input into the preset network layer in batches for training, and the preset network layer includes a Transformer network layer. The Transformer network layer is used to predict the pressure data set at the next time point based on the pressure data set collected at the current time point by forward propagation, and then obtain the predicted loss value; the loss value of the preset network layer is calculated and input into the optimizer for optimization to determine the direction in which the parameter gradient of the automatic water pipe leakage identification model decreases fastest; the automatic water pipe leakage identification model performs back propagation according to the loss value and the parameter gradient of the model to optimize the parameters of the automatic water pipe leakage identification model.

[0054] It can be understood that Transformer is a deep learning model based on the self-attention mechanism, which consists of a multi-head attention mechanism and a feedforward neural network. It can process sequence data and capture long-distance dependencies. The Transformer model does not contain traditional convolutional layers, but processes each element in the input sequence through an attention layer. The typical structure of Transformer includes an encoder and a decoder, wherein the encoder is composed of multiple identical layers stacked together, and the decoder adds a self-attention layer on the basis of the encoder to process sequence generation tasks. The present invention uses Transformer to supplement global context information, enhances the model's capabilities in feature extraction and global understanding, greatly improves the performance of the model, and greatly reduces the computational cost.

[0055] Specifically, the preset network layer also includes a ResNet network layer, and the ResNet network layer is used to classify and predict the output results according to the collected pressure data set, and the classification results include whether there is a water leakage in the water supply pipe or whether there is no water leakage in the water supply pipe.

[0056] It should be noted here that ResNet is a deep convolutional neural network that solves the gradient vanishing problem in deep network training by introducing residual connections. The core component of ResNet is the residual block, which usually contains two or three convolutional layers and a jump connection, which allows the gradient to bypass these convolutional layers directly. The network structure of ResNet can be very deep. These networks extract the features of pressure data by stacking multiple residual blocks, and classify and predict the output results through global average pooling and fully connected layers. The classification results include whether there is a water leak in the water pipe or whether there is no water leak in the water pipe.

[0057] See also Figure 3The present invention combines the ResNet network layer and the Transformer network layer. ResNet is good at extracting local features of pressure data in the training data set, while Transformer can supplement global context information. This combination can enhance the model's capabilities in feature extraction and global understanding, greatly improve the performance of the model, and greatly reduce the computational cost.

[0058] It can be understood that the ResNet network layer is used to classify and predict the output results through the pressure data collected in the training data set and the verification data set. The specific steps are:

[0059] (1) First, the training data set is put into the Backbones network layer of the model. Backbone refers to a series of convolutional layers that constitute the skeleton of the neural network. The main function of these layers is to extract the features of the input data. The Backbone network is usually composed of multiple convolutional layers, pooling layers, and activation functions. It can extract meaningful feature representations from the original data. Backbones is composed of multiple Backbones, and the core network layer in Backbone is the Resnet network layer. After the data set is input into the model, the first pressure data set will be input into Backbones for training;

[0060] (2) Position encoding and Resnet network layers were added when constructing Backbone. After the training data set was input, Resnet began to train layer by layer to extract features from the pressure data set and assist Transformer in predicting whether there was a water leak in the water pipe. The extracted features were used with the help of position encoding to obtain the position information of the multiple pressure sensors, that is, the height information of the multiple pressure sensors.

[0061] Specifically, the method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model, further includes:

[0062] After each training, the verification data set is input into the preset network layer of the previous training in batches for model parameter verification, and cyclic training is performed, with the total number of training rounds set to the first preset round; the loss value of the preset network layer is recorded, and it is determined whether the loss value meets the first preset condition, and whether to end the training and output the model parameters based on the judgment result.

[0063] Specifically, after each training, the verification data set is input into the preset network layer of the previous training in batches to verify the model parameters, and the cyclic training is performed, including the following methods:

[0064] When the number of training times is not enough and the model needs to be optimized, the training can only be performed from the beginning. Therefore, the present invention develops a method for continuing the following training based on the previously trained model parameter file;

[0065] (1) Provide custom parameters, which can be set according to user needs to continue training based on any training parameters;

[0066] (2) Load the parameters of the custom model file;

[0067] (3) Put the verification data set into the custom parameter network layer for verification, obtain the loss value and record the model parameters of the model corresponding to the minimum loss value during the training process;

[0068] (4) Based on this set of model parameters, forward propagation training and back propagation are performed, and the optimizer optimizes the parameters to obtain a new set of data;

[0069] (5) Put the verification data into the new data network layer for inference to obtain the loss value;

[0070] (6) Perform cyclic training to obtain the best model and complete model optimization.

[0071] It is understandable that the training method adopted by the present invention is batch training, which means that each time the model parameters are updated, only a part of the samples in the validation data set is used, which is called a batch. The advantages of batch training are that it can reduce memory consumption, speed up training, increase randomness, and facilitate the generalization of the model.

[0072] It should be noted here that, in the present invention, batch_size=2, and the batch_size is the batch size. For example, when batch_size=2, it means that two first pressure data sets are selected from the verification data set each time and put into the model for verification.

[0073] Specifically, the determining whether the loss value satisfies the first preset condition, and determining whether to end the training and output the model parameters according to the determination result, includes:

[0074] If the loss value meets the first preset condition, the training is terminated and the parameters of the current water pipe leakage automatic identification model are output; if the loss value does not meet the first preset condition, the training is continued;

[0075] The first preset condition is that after the second preset round of training, the loss values ​​obtained in the next round of training are greater than or equal to the loss values ​​that occurred during the second preset round of training.

[0076] It can be understood that the present invention preferably sets the maximum round of cyclic training to 20,000 times, which can effectively ensure the accuracy of the model prediction of the present invention and record the loss value of the model training. The present invention sets the second preset round to 200, that is, when the loss value of the training no longer decreases within 200 rounds of training, the round with the smallest loss value in the 200 rounds of training is saved as the best verification round parameter to generate the best model file. The above setting makes the training rounds no longer rely on manual judgment, but uses the deep learning model for automatic training, which improves the accuracy of the model prediction, and automatically ends the training when the accuracy meets the requirements, which greatly saves the training time, and can also effectively prevent overfitting, which greatly improves the intelligence level of the present invention and the efficiency of model training.

[0077] Furthermore, the specific process of the water pipe leakage automatic identification model of the present invention is as follows:

[0078] (1) Obtain the potential vector mean mu and logarithmic variance logvar in the forward propagation process of the water pipe leakage automatic identification model;

[0079] (2) Calculate a reasonable loss value representing the training effect:

[0080] Calculate the divergence: k1=-0.5*(1+logvar-mu^2-(e^logvar));

[0081] Calculate the loss between the pressure data and the predicted value in the validation dataset:

[0082] loss=L1+k1*k1_weight;

[0083] Among them, loss is the loss value, k1 is the divergence, k1_weight is the proportion of k1, the value is 10, L1 is the absolute difference between the predicted value and the true value, and the calculation formula of L1 is as follows:

[0084] ;

[0085] Among them, A is the L1 loss in pytorch, which calculates the average or sum of the absolute differences between two tensors; A has a shape of N*C*H*W, which indicates that it is a four-dimensional tensor, N represents the number of samples (Batch Size), indicating that there are N data points, C represents the number of channels (Channels), H and W represent the height and width respectively, which are usually the two-dimensional spatial dimensions of the input features; P represents the padding value, which is a Boolean type, and the shape of P is c*h*w*1. The dimensions of P are the same as those of A in terms of channel, height, and width, but there is no sample number N, which means that P is a mask or padding information for a feature map of each sample, and the Boolean value of P may be used to mark whether the elements in A are filled (True) or valid (False).

[0086] (3) The loss value when using the validation data set to validate the current model network;

[0087] (4) If the validation loss of this round is less than that of the previous round, the best model parameters are replaced with the training model of this round;

[0088] (5) Put the rounds and loss values ​​into the dictionary one by one;

[0089] (6) Compare the loss value of the current round with the loss values ​​of the 200 rounds before this round (parameters are provided and can be set according to actual needs, the default is 200), that is, traverse the loss values ​​from epoch-200 to epoch-1 (epoch is the training round, and the comparison is performed when the epoch is greater than 200). If the loss values ​​of the current round of epoch are all greater than the loss values ​​from (epoch-200) to (epoch-1), then stop training.

[0090] (7) Save the best model parameters in the cyclic verification as a ckpt model file.

[0091] S300. After the water supply pipe is put into use, within a first preset time, the pressure data of multiple pressure sensors collected at the same time point are recorded as a second pressure data set, and multiple second pressure data sets collected at multiple time points are obtained at preset time intervals. The multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, and the recognition result is output to determine whether there is a leakage in the water supply pipe. According to the judgment result, it is determined whether to output an alarm signal regarding the leakage in the water supply pipe. If so, the on-site staff will conduct an on-site inspection of the water supply pipe to confirm whether there is actually a leakage in the water supply pipe, and use the cloud server to record and transmit the on-site inspection result data, obtain the on-site inspection result data, and determine whether to combine the multiple second pressure data sets as a new training data set based on the on-site inspection result data to retrain the automatic recognition model for water pipe leakage, thereby automatically optimizing the automatic recognition model for water pipe leakage.

[0092] Specifically, the recognition result is whether there is a water leakage or not, the multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, the recognition result is output, and then it is determined whether there is a water leakage in the water pipe, and whether to output an alarm signal about the water leakage in the water pipe according to the judgment result, including:

[0093] If the output result is that there is a water leakage, it is determined that an alarm signal about the water leakage in the water supply pipe is output;

[0094] If the output result is that there is no water leakage, a prompt signal indicating that there is no water leakage in the water supply pipe is output.

[0095] It is understandable that the prediction result of the water supply pipe leakage automatic identification model of the present invention only includes the presence of leakage or the absence of leakage. When there is leakage, the corresponding predicted value and true value are 1, and when there is no leakage, the corresponding predicted value and true value are 0.

[0096] Specifically, the field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the multiple second pressure data sets as a new training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes:

[0097] If the field inspection result data shows that there is actually no water leakage, the multiple second pressure data sets and the training result that there is no water leakage are used as new training data sets to retrain the automatic water pipe leakage identification model, thereby automatically optimizing the water pipe leakage automatic identification model.

[0098] Specifically, the field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the multiple second pressure data sets as a new training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes:

[0099] If the actual inspection result data shows that there is an actual water leakage, the multiple second pressure data sets and the training result that there is no water leakage will not be used as new training data sets, the automatic water pipe leakage identification model will not be retrained, and the automatic water pipe leakage identification model will not be automatically optimized.

[0100] It can be understood that the present invention collects pressure data by utilizing multiple pressure sensors arranged at preset intervals along the water supply pipe, and trains an automatic water supply pipe leakage recognition model to determine whether there is a water leakage in the water supply pipe. If so, on-site staff will conduct an on-site inspection of the water supply pipe and upload the inspection results. According to the inspection results, the automatic water supply pipe leakage recognition model can be automatically retrained, and then the automatic water supply pipe leakage recognition model can be automatically optimized, thereby realizing an overall evaluation and judgment of the overall pressure data of the water supply pipe over a period of time, and more accurately judging whether the overall pressure data of the water supply pipe over a period of time is in a leakage state, thereby greatly improving the safety, reliability and intelligence of fire water supply monitoring, and solving the problem that the setting of a single or multiple thresholds cannot accurately determine whether the water supply pipe is leaking, thereby greatly improving the intelligence and usability of the present invention and greatly expanding the application scenarios of the present invention.

[0101] See also Figure 2 The present invention provides another embodiment, which provides a fire water supply monitoring system, the fire water supply monitoring system comprising:

[0102] The acquisition module 100 includes a plurality of pressure sensors arranged at preset intervals along the water supply pipe, and is used to acquire the water pressure in the water supply pipe;

[0103] The control module 200 is used to record the pressure data of multiple pressure sensors collected at the same time point within a first preset time as a first pressure data set, obtain multiple first pressure data sets collected at multiple time points according to a preset time interval, divide the multiple first pressure data sets into a training data set and a verification data set according to a first preset ratio, and use the training data set to train the automatic recognition model for water pipe leakage; use the verification data set to optimize the trained automatic recognition model for water pipe leakage, optimize the model parameters, and complete the training of the automatic recognition model for water pipe leakage; and after the water pipe is put into use, within the first preset time, record the pressure data of multiple pressure sensors collected at the same time point as a second pressure data set. Combined, multiple second pressure data sets collected at multiple time points are obtained at preset time intervals, the multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, the recognition result is output, and then it is determined whether there is a leakage in the water pipe, and based on the determination result, it is determined whether to output an alarm signal regarding the existence of a leakage in the water pipe; if so, on-site inspection of the water pipe is conducted by on-site staff to confirm whether there is actually a leakage in the water pipe, and the cloud server is used to record and transmit the on-site inspection result data, the on-site inspection result data is obtained, and based on the on-site inspection result data, it is determined whether to combine the multiple second pressure data sets as a new training data set, retrain the automatic recognition model for water pipe leakage, and then automatically optimize the automatic recognition model for water pipe leakage.

[0104] It should be noted here that the present invention utilizes multiple pressure sensors arranged at preset intervals along the water supply pipe to collect pressure data and train an automatic water supply pipe leakage recognition model to determine whether there is a water leakage in the water supply pipe. If so, on-site staff will conduct an on-site inspection of the water supply pipe and upload the inspection results. According to the inspection results, the automatic water supply pipe leakage recognition model can be automatically retrained, and then the automatic water supply pipe leakage recognition model can be automatically optimized, thereby realizing an overall evaluation and judgment of the overall pressure data of the water supply pipe over a period of time, and more accurately judging whether the overall pressure data of the water supply pipe over a period of time is in a leakage state, thereby greatly improving the safety, reliability and intelligence of fire water supply monitoring, and solving the problem that the setting of a single or multiple thresholds cannot accurately judge whether the water supply pipe is leaking, thereby greatly improving the intelligence and usability of the present invention and greatly expanding the application scenarios of the present invention.

[0105] In a preferred embodiment, the present application further provides an electronic device, the electronic device comprising:

[0106] A memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the fire water supply monitoring method is implemented. The computer device can be broadly a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory can provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. When the computer program is executed by the processor, the steps of the method of the present invention are performed.

[0107] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.

[0108] It will be appreciated by a person skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.

[0109] It can be understood that the present invention collects pressure data by utilizing multiple pressure sensors arranged at preset intervals along the water supply pipe, and trains an automatic water supply pipe leakage recognition model to determine whether there is a water leakage in the water supply pipe. If so, on-site staff will conduct an on-site inspection of the water supply pipe and upload the inspection results. According to the inspection results, the automatic water supply pipe leakage recognition model can be automatically retrained, and then the automatic water supply pipe leakage recognition model can be automatically optimized, thereby realizing an overall evaluation and judgment of the overall pressure data of the water supply pipe over a period of time, and more accurately judging whether the overall pressure data of the water supply pipe over a period of time is in a leakage state, thereby greatly improving the safety, reliability and intelligence of fire water supply monitoring, and solving the problem that the setting of a single or multiple thresholds cannot accurately determine whether the water supply pipe is leaking, thereby greatly improving the intelligence and usability of the present invention and greatly expanding the application scenarios of the present invention.

[0110] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.

[0111] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A fire water supply monitoring method, characterized in that: The method comprises: S100, after the water supply pipe is installed and before it is put into use, a plurality of pressure sensors are arranged along the water supply pipe at preset intervals, wherein the plurality of pressure sensors are used to obtain the water pressure in the water supply pipe; S200, within a first preset time, record the pressure data of multiple pressure sensors collected at the same time point as a first pressure data set, obtain multiple first pressure data sets collected at multiple time points according to a preset time interval, divide the multiple first pressure data sets into a training data set and a verification data set according to a first preset ratio, and use the training data set to train the automatic recognition model for water pipe leakage; use the verification data set to optimize the trained automatic recognition model for water pipe leakage, optimize the model parameters, and complete the training of the automatic recognition model for water pipe leakage; S300. After the water supply pipe is put into use, within a first preset time, the pressure data of multiple pressure sensors collected at the same time point are recorded as a second pressure data set, and multiple second pressure data sets collected at multiple time points are obtained at preset time intervals. The multiple second pressure data sets are input into the automatic recognition model for water pipe leakage, and the recognition result is output to determine whether there is a leakage in the water supply pipe. According to the judgment result, it is determined whether to output an alarm signal regarding the leakage in the water supply pipe. If so, the on-site staff will conduct an on-site inspection of the water supply pipe to confirm whether there is actually a leakage in the water supply pipe, and use the cloud server to record and transmit the on-site inspection result data, obtain the on-site inspection result data, and determine whether to combine the multiple second pressure data sets as a new training data set based on the on-site inspection result data to retrain the automatic recognition model for water pipe leakage, thereby automatically optimizing the automatic recognition model for water pipe leakage.

2. The fire water supply monitoring method according to claim 1, characterized in that: The method comprises: After the water supply pipe is installed and before it is put into use, it is necessary to inspect the installed water supply pipe to ensure that there is no leakage problem in the installed water supply pipe.

3. The fire water supply monitoring method according to claim 1, characterized in that: The method of arranging a plurality of pressure sensors along the water supply pipe at preset intervals comprises: The number of pressure sensors is calculated according to the ratio of the height of the water supply pipe to a preset height, where the preset height is the floor height of the target building.

4. The fire water supply monitoring method according to claim 1, characterized in that: The method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model includes: The training data set is input into the preset network layer in batches for training, and the preset network layer includes a Transformer network layer. The Transformer network layer is used to predict the pressure data set at the next time point based on the pressure data set collected at the current time point by forward propagation, and then obtain the predicted loss value; the loss value of the preset network layer is calculated and input into the optimizer for optimization to determine the direction in which the parameter gradient of the automatic water pipe leakage identification model decreases fastest; the automatic water pipe leakage identification model performs back propagation according to the loss value and the parameter gradient of the model to optimize the parameters of the automatic water pipe leakage identification model.

5. The fire water supply monitoring method according to claim 4, characterized in that: The method of using the training data set to train the automatic water pipe leakage recognition model; using the verification data set to optimize the trained automatic water pipe leakage recognition model, optimizing the model parameters, and completing the training of the automatic water pipe leakage recognition model, further includes: After each training, the verification data set is input into the preset network layer of the previous training in batches for model parameter verification, and cyclic training is performed, with the total number of training rounds set to the first preset round; the loss value of the preset network layer is recorded, and it is determined whether the loss value meets the first preset condition, and whether to end the training and output the model parameters based on the judgment result.

6. The fire water supply monitoring method according to claim 5, characterized in that: The determining whether the loss value satisfies the first preset condition, and determining whether to end the training and output the model parameters according to the determination result, includes: If the loss value meets the first preset condition, the training is terminated and the parameters of the current water pipe leakage automatic identification model are output; if the loss value does not meet the first preset condition, the training is continued; The first preset condition is that after the second preset round of training, the loss values ​​obtained in the next round of training are greater than or equal to the loss values ​​that occurred during the second preset round of training.

7. The fire water supply monitoring method according to claim 1, characterized in that: The identification result is whether there is a water leakage or not, the multiple second pressure data sets are input into the automatic identification model for water pipe leakage, the identification result is output, and then it is determined whether there is a water leakage in the water pipe, and whether to output an alarm signal about the water leakage in the water pipe according to the determination result, including: If the output result is that there is a water leakage, it is determined that an alarm signal about the water leakage in the water supply pipe is output; If the output result is that there is no water leakage, a prompt signal indicating that there is no water leakage in the water supply pipe is output.

8. The fire water supply monitoring method according to claim 1, characterized in that: The field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the plurality of second pressure data sets as a newly added training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes: If the field inspection result data shows that there is actually no water leakage, the multiple second pressure data sets and the training result that there is no water leakage are used as new training data sets to retrain the automatic water pipe leakage identification model, thereby automatically optimizing the water pipe leakage automatic identification model.

9. The fire water supply monitoring method according to claim 1, characterized in that: The field inspection result data includes whether there is actually a water leakage or not, and the determining, based on the field inspection result data, whether to combine the plurality of second pressure data sets as a newly added training data set, retrain the automatic water pipe leakage recognition model, and then automatically optimize the automatic water pipe leakage recognition model includes: If the actual inspection result data shows that there is an actual water leakage, the multiple second pressure data sets and the training result that there is no water leakage will not be used as new training data sets, the automatic water pipe leakage identification model will not be retrained, and the automatic water pipe leakage identification model will not be automatically optimized.

10. A fire water supply monitoring system, characterized in that: include: An acquisition module, comprising a plurality of pressure sensors arranged at preset intervals along the water supply pipe, for acquiring the water pressure in the water supply pipe; The control module is used to record the pressure data of multiple pressure sensors collected at the same time point within a first preset time as a first pressure data set, obtain multiple first pressure data sets collected at multiple time points according to preset time intervals, divide the multiple first pressure data sets into training data sets and verification data sets according to first preset ratios, and use the training data sets to train the automatic recognition model for water pipe leakage; use the verification data set to optimize the trained automatic recognition model for water pipe leakage, optimize model parameters, and complete the training of the automatic recognition model for water pipe leakage; and after the water pipe is put into use, within the first preset time, record the pressure data of multiple pressure sensors collected at the same time point as a second pressure data set, Acquire multiple second pressure data sets collected at multiple time points at preset time intervals, input the multiple second pressure data sets into the automatic recognition model for water pipe leakage, output the recognition result, and then determine whether there is a leakage in the water pipe, and determine whether to output an alarm signal regarding the water pipe leakage based on the determination result; if so, conduct an on-site inspection of the water pipe by on-site staff to confirm whether there is actually a leakage in the water pipe, and use a cloud server to record and transmit the on-site inspection result data, obtain the on-site inspection result data, and determine whether to combine the multiple second pressure data sets as a new training data set based on the on-site inspection result data to retrain the automatic recognition model for water pipe leakage, thereby automatically optimizing the automatic recognition model for water pipe leakage.