A method and system for urban safety risk assessment based on data fusion

Through the data fusion method, the average first-order difference of the water pressure sequence and the variance of the frequency set are calculated, combined with the similarity of the flow sequence, the degree of leakage is corrected, and the neural network is used for risk assessment, which solves the problem of water pressure fluctuation in the existing technology. It improves the accuracy of safety assessment of urban water supply network by solving the problem of leakage warning accuracy under the influence of water leakage.

CN118365140BActive Publication Date: 2024-09-17SUN YAT SEN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780551.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-17
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider the fluctuation of water pressure in the safety risk assessment of urban water supply pipe networks, resulting in low accuracy of leakage warning and urban safety risk assessment.

Method used

Using a method based on data fusion, by calculating the average first-order difference of the water pressure sequence and the sum of the variances of the frequency set, combined with the similarity of the flow sequence, the leakage degree is corrected, and the neural network is used for risk assessment to improve the accuracy of the leakage rate. sex.

Benefits of technology

It improves the accuracy of the safety assessment of the urban water supply network, reduces the impact of water pressure fluctuations on the correction value of the leakage degree, and ensures the safety of the urban water supply network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365140B
    Figure CN118365140B
Patent Text Reader

Abstract

The present invention relates to the field of water supply pipe network, and more specifically, to a method and system for urban safety risk assessment based on data fusion. The method comprises: constructing a water pressure sequence, calculating the leakage degree of the target sequence; calculating the first correction factor of the target sequence; calculating the second correction factor of the target sequence; calculating the leakage degree correction value of the target sequence; using the leakage degree correction value to update the preset initial period, obtain the final period, input the water pressure sequence corresponding to the final period into a preset neural network, obtain the leakage probability, and complete the risk assessment. Through the technical solution of the present invention, the accuracy of urban safety risk assessment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of water supply pipe networks. More specifically, the present invention relates to a method and system for evaluating urban safety risks based on data fusion. Background Art

[0002] The water supply network in the city will face many challenges, including irregular water use and large fluctuations in water pressure. These problems may lead to serious accidents such as pipe bursts, posing a threat to the safety of urban water supply. Therefore, it is urgent to achieve systematic monitoring, analysis and timely warning of water pressure in the water supply network. In order to meet this challenge, it is necessary to conduct dynamic online monitoring of the water supply network at all times, grasp water pressure data information in real time, conduct risk assessment on the water pressure change trend of the water supply network in the short term in the future, and immediately start the water pressure control plan once an abnormality is found to reduce the risk of pipe burst in the water supply network in urban safety.

[0003] The existing Chinese patent application document with publication number CN113887907A discloses a water supply network leakage point statistics system. Through the integrated analysis of the leakage rates of various cities, cities with abnormal leakage rates are screened out, and the cities in abnormal conditions are arranged so that personnel can give priority to planning inspections and maintenance of cities with high leakage rates, thereby playing an early warning role in water supply network leakage.

[0004] In the urban water supply network safety risk scenario, obtaining accurate water pressure data is a significant challenge. The water pressure fluctuates with the changes in the city's water use situation. This volatility will directly affect the leakage rate of the network. However, the above-mentioned document did not take into account the volatility of water pressure in the early warning of water supply network leakage, which affected the accuracy of the leakage warning and also reduced the accuracy of the city's safety risk assessment. Summary of the invention

[0005] In order to solve the problem of low accuracy in urban safety risk assessment, the present invention proposes an urban safety risk assessment method and system based on data fusion.

[0006] In a first aspect, the present invention discloses a method for assessing urban safety risks based on data fusion, including: constructing water pressure data obtained on the same sampling day into a water pressure sequence, taking the water pressure sequence obtained on any sampling day as a target sequence, and taking the sum of the normalized average first-order difference of the target sequence and the normalized variance of the constructed frequency set as the leakage degree of the target sequence; taking the average of the water pressure mean of the target sequence and the water pressure mean of multiple consecutive historical sampling days as the first correction factor; synchronously acquiring the flow sequence according to the sampling interval of the target sequence, and taking the similarity between the flow sequence and the target sequence as the second correction factor; and calculating the leakage degree correction value of the target sequence. ,in, Indicates the leakage degree correction value, Indicates the degree of leakage. represents the first correction factor, represents the second correction factor, represents a normalized function; the preset initial period is updated using the leakage degree correction value to obtain the final period, the water pressure sequence corresponding to the final period is input into the preset neural network to obtain the leakage probability and complete the risk assessment.

[0007] Beneficial effects: The change of water pressure data is not static. By calculating the first correction factor, it is possible to analyze whether there is a similarity between the fluctuation of water pressure data on the current sampling day and the fluctuation of water pressure data on adjacent historical sampling days. On the contrary, if the first correction factor is not calculated, only the fluctuation of water pressure data on the current sampling day is obtained, which lacks comparison and is relatively one-sided. By calculating the second correction factor, the credibility of water pressure data can be increased from other dimensional data on the same sampling day, thereby improving the accuracy of subsequent correction of leakage rate. Then, by correcting the calculated leakage rate through the first correction factor and the second correction factor, a more accurate leakage rate correction value can be obtained, thereby improving the accuracy of urban safety risk assessment.

[0008] Preferably, the constructed frequency set includes: calculating the frequencies corresponding to the water pressure data in the target sequence using discrete Fourier transform, and constructing the frequency set according to the sampling order of the water pressure data.

[0009] Beneficial effects: Discrete Fourier transform can be used for frequency domain compression of signals. Since the energy of many signals is concentrated in a few frequency components, by removing high-frequency, low-energy frequency components, the signal can be effectively compressed without significantly affecting the signal quality, thereby more accurately reflecting the periodicity of water pressure data.

[0010] Preferably, the plurality of consecutive historical sampling days are based on the sampling day where the target sequence is located as a starting point, and traverse forward in chronological order to the plurality of consecutive historical sampling days.

[0011] Preferably, the second correction factor satisfies the relationship:

[0012] ,in, represents the second correction factor, represents the target sequence, represents the flow sequence, is the Pearson correlation coefficient, is a hyperparameter.

[0013] Beneficial effect: Obtaining the flow sequence according to the sampling interval of the target sequence can avoid the errors caused by one-dimensional data. The credibility of the water pressure data can be increased by calculating the similarity. On the contrary, if only one-dimensional data is obtained, the accuracy of the calculation result will depend on the accuracy of the data at the current moment. If there are more interference data in the one-dimensional data, the reliability of a series of data calculated subsequently will be reduced.

[0014] Preferably, the method of obtaining the final time period includes the steps of: taking a preset initial time period as the starting point, calculating the leakage degree correction value; taking the product of a preset step size and the number of iterations and the sum of a preset initial time period as the update time period; recording the real-time iteration as the later iteration, recording the previous iteration of the real-time iteration as the previous iteration in chronological order, calculating the difference between the leakage degree correction value corresponding to the previous iteration and the leakage degree correction value corresponding to the later iteration, and normalizing the difference; when the normalized difference is less than or equal to the preset difference threshold, continuing the iteration, and when the normalized difference is greater than the preset difference threshold, stopping the iteration, and taking the update time period corresponding to the previous iteration as the final time period.

[0015] Beneficial effect: By calculating the leakage correction value of each iteration, and then calculating the difference between the leakage correction values ​​of two adjacent iterations, the most suitable sampling time is found, avoiding large data volume due to too long sampling time or inaccurate prediction results due to too short sampling time.

[0016] Preferably, the preset neural network is a BP neural network, which includes an input layer, a hidden layer and an output layer; the input layer is used to receive the input of the water pressure sequence corresponding to the final time period, and after the hidden layer extracts the features of the input information, the extracted features are input to the output layer to output the leakage probability; the loss function of the preset neural network uses a cross entropy loss function, and the preset neural network is trained using a gradient descent algorithm to iteratively update the network parameters of the preset neural network; when the preset neural network reaches the set maximum number of training times or the loss value is less than the set loss value, the update is stopped to obtain a trained preset neural network.

[0017] Preferably, the risk assessment includes: when the leakage probability is less than a preset leakage threshold, it is considered that there is no abnormality in the current urban water supply network, and the water pressure data continues to be predicted; when the leakage probability is equal to the preset leakage threshold, the water pressure data is regarded as suspected abnormal data, and when the suspected abnormal data appears consecutively for more than a preset number of times, it is considered that there is an abnormality in the current urban water supply network; when the leakage probability is greater than the preset leakage threshold, it is considered that there is an abnormality in the current urban water supply network.

[0018] Beneficial effect: For the predicted leakage probability, there will be a situation where it is equal to the preset leakage threshold, and the current water consumption will be at a valley value, which will increase the impact of the leakage. Therefore, it needs to be marked as suspected abnormal data. If multiple suspected abnormal data appear continuously, the actual leakage has exceeded the threshold and the water supply network has an abnormality.

[0019] In a second aspect, the present invention discloses a city safety risk assessment system based on data fusion, comprising: a processor; and a memory, wherein the memory stores computer instructions, and when the computer instructions are executed by the processor, the device executes the above-mentioned city safety risk assessment method based on data fusion.

[0020] Beneficial effects of the present invention:

[0021] 1. The present invention improves the accuracy of safety assessment of urban water supply pipe networks and ensures the safety of urban water supply pipe network operation.

[0022] 2. The present invention calculates the difference in water pressure data between multiple adjacent sampling days and compares the difference in periodicity of the water pressure data with the periodicity of the water pressure data of the target sequence, thereby reducing the influence of the volatility of water pressure on the accuracy of calculating the leakage degree correction value.

[0023] 3. The present invention obtains the final time period through iteration and can obtain an appropriate amount of water pressure data, avoiding the situation where the water consumption increases in the current sampling day but less water pressure data is obtained, thereby amplifying the impact of the leakage degree. It will not be unable to capture sufficient feature information due to too little data, nor will it be affected by noise due to too much data. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0025] Figure 1 It is a flow chart of a method for urban safety risk assessment based on data fusion according to an embodiment of the present invention.

[0026] Figure 2 It is a schematic diagram of a city safety risk assessment system based on data fusion according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.

[0029] The present invention provides a method for evaluating urban safety risks based on data fusion. Figure 1 As shown, a method for evaluating urban safety risks based on data fusion includes steps S1 to S5, which are described in detail below.

[0030] S1, the water pressure data obtained on the same sampling day are constructed into a water pressure sequence, the water pressure sequence obtained on any sampling day is taken as the target sequence, and the sum of the normalized average first-order difference of the target sequence and the normalized variance of the constructed frequency set is taken as the leakage degree of the target sequence.

[0031] In one embodiment, sampling is performed at a preset sampling interval in a preset initial period to obtain multiple sampling moments, thereby obtaining water pressure data at a preset position at each sampling moment, and all water pressure data on the same sampling day are constructed into a water pressure sequence. Exemplarily, the preset initial period is 1 hour, the preset sampling interval is 1 minute, and 60 sampling moments are obtained. The pressure sensor is used to detect water pressure data at each sampling moment, and 60 water pressure data can be obtained. The 60 water pressure data are constructed into a water pressure sequence, wherein the specific time can be set by those skilled in the art according to actual conditions.

[0032] The water pressure sequence obtained on any sampling day is taken as the target sequence, and the frequency corresponding to each water pressure data in the target sequence is calculated using discrete Fourier transform, and then a frequency set is constructed. Discrete Fourier transform is a mathematical transformation used to analyze the frequency components of a signal. It converts a time domain (time domain) signal into a frequency domain (frequency domain) signal. This conversion helps to understand the frequency characteristics of the signal and the intensity distribution of the signal at different frequencies, that is, it can characterize the periodicity of the water pressure data in the target sequence. Discrete Fourier transform is an existing technology and will not be elaborated on here.

[0033] It should be noted that the more stable or periodic the water pressure data in the water pressure sequence is, the lower the leakage is. Therefore, the stability and periodicity of the water pressure data in the water pressure sequence can be used to calculate the leakage. The stability of the water pressure data can be expressed by the average first-order difference of the water pressure sequence. The smaller the average first-order difference, the slower the change between the water pressure data and the higher the stability. The periodicity of the water pressure data can be expressed by the variance of the frequency of each water pressure data in the water pressure sequence calculated by discrete Fourier transform. The smaller the variance, the more consistent the frequency of the water pressure data and the better the periodicity.

[0034] In one embodiment, the leakage degree of the target sequence is calculated based on the average first-order difference of the target sequence and the variance of the frequency set, and the leakage degree satisfies the relationship:

[0035] ,in, Indicates the degree of leakage. Represents the total number of water pressure data in the target sequence, Indicates the first Water pressure data, Indicates the first Water pressure data, It means to find the variance of the frequency set, Indicates the frequency corresponding to the first water pressure data in the target sequence, Indicates the frequency corresponding to the second water pressure data in the target sequence, Indicates the first The frequency corresponding to the water pressure data is Indicates the serial number of water pressure data. Represents the normalization function. It represents the average first-order difference, and its negative exponential power is used to represent the stationarity of the target sequence.

[0036] S2, the average of the water pressure mean of the target sequence and the water pressure mean of multiple consecutive historical sampling days is taken as the first correction factor.

[0037] It should be noted that the water pressure data of the water supply network may contain noise during the collection process due to environmental factors, sensor accuracy and other issues, which may lead to deviations in the calculated leakage results. Therefore, the leakage degree needs to be corrected.

[0038] In one embodiment, the plurality of consecutive historical sampling days may be arbitrarily selected historical sampling days.

[0039] In another embodiment, in order to avoid the situation where the arbitrarily selected historical sampling day is far away from the current sampling day, thereby reducing the credibility of the selection result, this embodiment takes the sampling day where the target sequence is located as the starting point and traverses multiple consecutive historical sampling days in chronological order.

[0040] Calculate the mean water pressure of the target sequence; traverse multiple consecutive historical sampling days in chronological order, obtain the mean water pressure corresponding to each historical sampling day, and construct the mean water pressure corresponding to all historical sampling days into a historical mean sequence; calculate the first correction factor based on the historical mean sequence, and the first correction factor satisfies the relationship:

[0041] ,in, represents the first correction factor, represents the total number of water pressure means in the historical mean sequence, Indicates the historical mean sequence The average water pressure, represents the mean water pressure of the target sequence, A serial number indicating the mean water pressure.

[0042] It should be noted that in urban water use, irregular water use in a small area will not affect the overall water use pattern. Therefore, the periodicity of water pressure data changes in the water pressure sequence on historical sampling days can be used to obtain the first correction factor for the degree of leakage.

[0043] S3, synchronously acquiring the traffic sequence according to the sampling interval of the target sequence, and taking the similarity between the traffic sequence and the target sequence as the second correction factor.

[0044] In one embodiment, the similarity may adopt any algorithm for calculating similarity, and exemplary ones may be cosine similarity, Manhattan distance, and Jaccard Similarity Coefficient.

[0045] In another embodiment, for a water supply network, flow rate and water pressure are usually positively correlated. If water pressure data and flow rate data are collected at the same time, there will be an obvious linear relationship. The Pearson correlation coefficient focuses on measuring the linear relationship between two variables. When such a relationship exists, it can quantify this relationship very accurately, and the Pearson correlation coefficient is not affected by scale, which means that it can be used to compare the relationship between variables with different dimensions or units. Therefore, the Pearson correlation coefficient can better measure the relationship between water pressure data and flow rate data, and obtain a more accurate second correction factor.

[0046] The traffic sequence is synchronously acquired according to the sampling interval of the target sequence; the second correction factor is calculated by the similarity between the traffic sequence and the target sequence, and the second correction factor satisfies the relationship:

[0047] ,in, represents the second correction factor, represents the target sequence, represents the flow sequence, is the Pearson correlation coefficient, is a hyperparameter to prevent the denominator from being 0. For example, B is set to 0.00001.

[0048] S4, calculating the leakage degree correction value of the target sequence.

[0049] In one embodiment, the leakage degree correction value is calculated based on the first correction factor, the second correction factor and the leakage degree, and the leakage degree correction value satisfies the relationship:

[0050] ,in, Indicates the leakage degree correction value, Indicates the degree of leakage. represents the first correction factor, represents the second correction factor, Represents the normalization function.

[0051] It should be noted that the higher the periodicity, the higher the credibility of the water pressure data in the target sequence, the smaller the first correction factor, the more accurate the leakage degree, the larger the product of the leakage degree and the first correction factor, and the closer it is to the original leakage degree. The higher the similarity, the higher the credibility of the water pressure data in the water pressure sequence, the smaller the second correction factor, the more accurate the leakage degree, the larger the product of the leakage degree and the second correction factor, and the closer it is to the original leakage degree.

[0052] S5, using the leakage degree correction value to update the preset initial period, obtain the final period, input the water pressure sequence corresponding to the final period into the preset neural network, obtain the leakage probability, and complete the risk assessment.

[0053] In one embodiment, a leakage degree correction value is calculated with a preset initial time period as a starting point; an update time period is obtained, the preset initial time period is updated, and a final time period is obtained: the update time period is the product of a preset step size and the number of iterations plus the preset initial time period; the real-time iteration is recorded as a later iteration, and the previous iteration of the real-time iteration is recorded as a previous iteration in chronological order, and the difference between the leakage degree correction value corresponding to the previous iteration and the leakage degree correction value corresponding to the later iteration is calculated, and the difference is normalized; when the normalized difference is less than or equal to the preset difference threshold, the iteration is continued, and when the normalized difference is greater than the preset difference threshold, the iteration is stopped, and the update time period corresponding to the previous iteration is taken as the final time period. Exemplarily, the preset initial time period set in step S1 is 1 hour, and the preset step size is set to 10 minutes. If the later iteration is the 5th iteration, then the update time period of the later iteration is 1 hour and 50 minutes. The previous iteration is the 4th iteration, and the update time period of the previous iteration is 1 hour and 40 minutes. The difference between the leakage degree correction value corresponding to the previous iteration and the leakage degree correction value corresponding to the later iteration is calculated respectively, and the difference is normalized. When the difference is less than or equal to the preset difference threshold, the iteration continues. When the difference is greater than the preset difference threshold, the iteration stops. The final time period is 1 hour and 40 minutes, wherein the preset difference threshold can be set by a person skilled in the art. The present invention sets the preset difference threshold to 0.15.

[0054] The water pressure sequence corresponding to the final period is input into the preset neural network. Exemplarily, the preset neural network can be RNN (Recurrent Neural Network), LSTM (Long-Short Term Memory), TCN (Temporal Convolutional Network) and GRU (Gate Recurrent Unit), etc. The preset neural network of the present invention adopts BP neural network.

[0055] The BP neural network includes an input layer, a hidden layer and an output layer; the input layer is used to receive the input of the water pressure sequence corresponding to the final time period, and after the hidden layer extracts the features of the input information, the extracted features are input to the output layer to output the leakage probability; the loss function of the preset neural network uses the cross entropy loss function, and the preset neural network is trained using the gradient descent algorithm to iteratively update the network parameters of the preset neural network; when the preset neural network reaches the set maximum number of training times or the loss value is less than the set loss value, the update is stopped to obtain a trained preset neural network.

[0056] When the leakage probability is less than the preset leakage threshold, it is considered that the current urban water supply network has no abnormality, and the water pressure data continues to be predicted; when the leakage probability is equal to the preset leakage threshold, the water pressure data is regarded as suspected abnormal data. When the suspected abnormal data appears more than the preset number of times in a row, it is considered that the current urban water supply network has an abnormality; when the leakage probability is greater than the preset leakage threshold, it is considered that the current urban water supply network has an abnormality. Exemplarily, the preset leakage threshold is set to 0.6.

[0057] When an abnormality occurs in the urban water supply network, it is necessary to activate the water pressure control plan and notify relevant staff to handle the abnormality to reduce the safety risks of the water supply network and ensure the safety of urban water supply.

[0058] The embodiment of the present invention also discloses a city safety risk assessment system based on data fusion, referring to Figure 2 , including a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a city safety risk assessment method based on data fusion according to the present invention is implemented.

[0059] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.

[0060] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module or both. Any such computer storage medium may be part of a device or accessible or connectable to a device.

[0061] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

[0062] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for urban safety risk assessment based on data fusion, characterized in that: include: The water pressure data obtained on the same sampling day are constructed into a water pressure sequence, the water pressure sequence obtained on any sampling day is taken as the target sequence, and the sum of the normalized average first-order difference of the target sequence and the normalized variance of the constructed frequency set is taken as the leakage degree of the target sequence; The constructed frequency set comprises: using discrete Fourier transform to calculate the frequencies corresponding to the water pressure data in the target sequence, and constructing the frequency set according to the sampling order of the water pressure data; The average of the water pressure of the target sequence and the water pressure of multiple consecutive historical sampling days are taken as the first correction factor. The traffic sequence is synchronously acquired according to the sampling interval of the target sequence, and the similarity between the traffic sequence and the target sequence is used as the second correction factor; Calculate the leakage correction value of the target sequence ,in, Indicates the leakage degree correction value, Indicates the degree of leakage. represents the first correction factor, represents the second correction factor, represents the normalization function; The preset initial time period is updated by using the leakage degree correction value to obtain the final time period, including the steps of: taking the preset initial time period as the starting point, calculating the leakage degree correction value; taking the product of the preset step size and the number of iterations and the sum of the preset initial time period as the update time period; recording the real-time iteration as the later iteration, recording the previous iteration of the real-time iteration as the previous iteration in chronological order, calculating the difference between the leakage degree correction value corresponding to the previous iteration and the leakage degree correction value corresponding to the later iteration, and normalizing the difference; when the normalized difference is less than or equal to the preset difference threshold, continuing to iterate, when the normalized difference is greater than the preset difference threshold, stopping the iteration, and taking the update time period corresponding to the previous iteration as the final time period; inputting the water pressure sequence corresponding to the final time period into the preset neural network, obtaining the leakage probability, and completing the risk assessment.

2. According to the method of urban safety risk assessment based on data fusion in claim 1, it is characterized in that: The multiple consecutive historical sampling days are based on the sampling day where the target sequence is located as the starting point, and traverse forward in chronological order to multiple consecutive historical sampling days.

3. The urban safety risk assessment method based on data fusion according to claim 1 is characterized in that: The second correction factor satisfies the relationship: ,in, represents the second correction factor, represents the target sequence, represents the flow sequence, is the Pearson correlation coefficient, is a hyperparameter.

4. The urban safety risk assessment method based on data fusion according to claim 1 is characterized in that: The preset neural network is a BP neural network, which includes an input layer, a hidden layer and an output layer; the input layer is used to receive the input of the water pressure sequence corresponding to the final time period, and after the hidden layer extracts the features of the input information, the extracted features are input to the output layer to output the leakage probability; the loss function of the preset neural network uses a cross entropy loss function, and the preset neural network is trained using a gradient descent algorithm to iteratively update the network parameters of the preset neural network; when the preset neural network reaches the set maximum number of training times or the loss value is less than the set loss value, the update is stopped to obtain a trained preset neural network.

5. The urban safety risk assessment method based on data fusion according to claim 1 is characterized in that: The risk assessment includes: When the leakage probability is less than the preset leakage threshold, it is considered that there is no abnormality in the current urban water supply network, and the water pressure data continues to be predicted; When the leakage probability is equal to the preset leakage threshold, the water pressure data is regarded as suspected abnormal data. When the suspected abnormal data appears more than the preset number of times in a row, it is considered that the current urban water supply network is abnormal. When the leakage probability is greater than the preset leakage threshold, it is considered that the current urban water supply network is abnormal.

6. A city safety risk assessment system based on data fusion, characterized in that: include: Processor; and A memory storing computer program instructions, which, when executed by a processor, implements a method for assessing urban safety risks based on data fusion according to any one of claims 1 to 5.