A method, device, electronic equipment, and storage medium for early warning of urban flooding risk

By real-time monitoring and visualizing the processing of flooding risk data in historical and cultural blocks, and generating flood warning information and monitoring information, the problem of inaccurate early warning in the existing technology is solved, and the waterlogging prevention capacity and the sustainability of cultural development are improved.

CN117198003BActive Publication Date: 2024-12-31BEIJING UNIV OF CIVIL ENG & ARCHITECTURE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311213450.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2024-12-31
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

The existing flood control system cannot accurately monitor and early warning the flooding situation in historical and cultural blocks, resulting in the inability to obtain comprehensive, fine and efficient guarantees for safe operation.

Method used

By monitoring the flooding risks in historical and cultural blocks in real time, obtaining precipitation, water level and drainage flow rate data, processing and determining whether it exceeds the warning threshold, generating flooding warning information, and visually displaying it on the monitoring interface, providing flooding monitoring information and warning discount charts .

Benefits of technology

It has improved the flood prevention capacity of historical and cultural districts, protected the integrity of the landscape, reduced the negative impact of flooding on urban development, improved the sustainability of cultural development, and alleviated the lag in economic production caused by sudden rainfall.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117198003B_ABST
    Figure CN117198003B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for early warning of waterlogging risk, the early warning method comprising: obtaining hydrological data of the warning points in the target area at different time points at predetermined intervals; processing each type of hydrological data in the hydrological data to obtain the current value corresponding to the hydrological data; judging whether the current value corresponding to the hydrological data is greater than the early warning threshold corresponding to the hydrological data; if so, generating waterlogging early warning information according to the judgment result, and displaying the waterlogging early warning information on the monitoring interface. In this way, through real-time monitoring and visual early warning of waterlogging risk in historical and cultural blocks, the waterlogging prevention capacity of historical and cultural blocks is improved, and the integrity of the landscape of historical and cultural blocks is protected, so as to reduce the negative impact of waterlogging on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of waterlogging risk warning, and in particular to a waterlogging risk warning method, device, electronic equipment and storage medium. Background Art

[0002] At present, the research on flood prevention, control and early warning in historical and cultural blocks has received more and more attention. Among them, the existing waterlogging monitoring system can only realize the function of monitoring data and cannot accurately monitor and warn the waterlogging situation visually, so that the safe operation of historical and cultural blocks cannot be comprehensively, meticulously and efficiently guaranteed. Therefore, it is very important to protect historical and cultural blocks in a timely manner according to early warning information and improve their waterlogging prevention and control capabilities. Summary of the invention

[0003] In view of this, the purpose of this application is to provide an early warning method, device, electronic equipment and storage medium for urban flooding risks, so as to improve the flood prevention capacity of historical and cultural blocks and protect the integrity of the landscape of historical and cultural blocks through real-time monitoring and visual early warning of urban flooding risks in historical and cultural blocks, so as to reduce the negative impact of urban flooding on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.

[0004] The present application embodiment provides an early warning method for waterlogging risk, the early warning method comprising:

[0005] At every predetermined period, the hydrological data of the warning points in the target area at different time points are obtained; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data;

[0006] For each type of hydrological data in the hydrological data, the hydrological data is processed to obtain a current value corresponding to the hydrological data;

[0007] Determine whether the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data, and obtain a determination result;

[0008] If so, waterlogging warning information is generated according to the judgment result and displayed on the monitoring interface.

[0009] Furthermore, the early warning method also includes:

[0010] For each type of hydrological data in the hydrological data, the hydrological data is processed to obtain an initial value and a change amount corresponding to the hydrological data;

[0011] Based on the current value, initial value and change amount corresponding to the hydrological data, waterlogging monitoring information is generated and displayed on the monitoring interface.

[0012] Furthermore, the step of processing each type of hydrological data in the hydrological data to obtain a current value corresponding to the type of hydrological data includes:

[0013] The hydrological data is stored in a CSV type file;

[0014] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at a current time point in the CSV type file;

[0015] The value of the hydrological data at the current time point is determined as the current value corresponding to the hydrological data.

[0016] Furthermore, the step of processing the hydrological data to obtain the initial value and the variation corresponding to the hydrological data includes:

[0017] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at an initial time point within the predetermined period from the CSV type file;

[0018] Determine the value of the hydrological data at the initial time point as the initial value corresponding to the hydrological data;

[0019] The current value corresponding to the type of hydrological data is subtracted from the initial value corresponding to the type of hydrological data, and the obtained difference is used to determine the change amount corresponding to the type of hydrological data.

[0020] Furthermore, the step of determining the warning threshold corresponding to the hydrological data includes:

[0021] Obtaining geographical environment parameters of the points to be warned in the target area;

[0022] Determine the warning threshold corresponding to the hydrological data under the acquired geographical environment parameters; the hydrological warning threshold is used to express the severity level of waterlogging.

[0023] Furthermore, the step of generating waterlogging monitoring information based on the current value, initial value and variation corresponding to the hydrological data, and displaying the waterlogging monitoring information on the monitoring interface includes:

[0024] Based on the current value, initial value and change of the hydrological data, a warning information table is generated, which records the current value, initial value and change of the hydrological data at the warning point in the target area at different time points, and the warning information table is determined as waterlogging monitoring information;

[0025] The waterlogging monitoring information is displayed on the monitoring interface.

[0026] Furthermore, the step of generating waterlogging monitoring information based on the current value of the hydrological data at different time points, and displaying the waterlogging monitoring information on the monitoring interface includes:

[0027] Based on the current values ​​of the hydrological data at different time points, a warning discount graph is generated, which records the corresponding relationship between the current values ​​of the hydrological data at different time points of the warning points in the target area and the warning thresholds corresponding to the hydrological data, and the warning line graph is determined as waterlogging monitoring information;

[0028] The waterlogging monitoring information is displayed on the monitoring interface.

[0029] The embodiment of the present application also provides an early warning device for waterlogging risk, the early warning device comprising:

[0030] A data acquisition module is used to acquire hydrological data of the warning points in the target area at different time points at predetermined intervals; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data;

[0031] A first data processing module is used to process each type of hydrological data in the hydrological data to obtain a current value corresponding to the hydrological data;

[0032] The early warning judgment module is used to judge whether the current value corresponding to the hydrological data is greater than the early warning threshold value corresponding to the hydrological data, and obtain the judgment result;

[0033] The waterlogging warning module is used to generate waterlogging warning information according to the judgment result if the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data, and display the waterlogging warning information on the monitoring interface.

[0034] Furthermore, the early warning device further includes a second data processing module, and the second data processing module is used for:

[0035] For each type of hydrological data in the hydrological data, the hydrological data is processed to obtain an initial value and a change amount corresponding to the hydrological data;

[0036] Furthermore, the early warning device also includes an information display module, and the information display module is used to:

[0037] Based on the current value, initial value and change amount corresponding to the hydrological data, waterlogging monitoring information is generated and displayed on the monitoring interface.

[0038] Furthermore, the first data processing module is used to process each type of hydrological data in the hydrological data to obtain a current value corresponding to the hydrological data, and the first data processing module is used to:

[0039] The hydrological data is stored in a CSV type file;

[0040] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at a current time point in the CSV type file;

[0041] The value of the hydrological data at the current time point is determined as the current value corresponding to the hydrological data.

[0042] Furthermore, in the step of processing the hydrological data to obtain the initial value and the variation corresponding to the hydrological data, the second data processing module is used to:

[0043] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at an initial time point within the predetermined period from the CSV type file;

[0044] Determine the value of the hydrological data at the initial time point as the initial value corresponding to the hydrological data;

[0045] The current value corresponding to the type of hydrological data is subtracted from the initial value corresponding to the type of hydrological data, and the obtained difference is used to determine the change amount corresponding to the type of hydrological data.

[0046] Furthermore, in the step of determining the warning threshold corresponding to the hydrological data, the warning judgment module is used to:

[0047] Obtaining geographical environment parameters of the points to be warned in the target area;

[0048] Determine the warning threshold corresponding to the hydrological data under the acquired geographical environment parameters; the hydrological warning threshold is used to express the severity level of waterlogging.

[0049] Furthermore, the information display module is used to generate waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and display the waterlogging monitoring information on the monitoring interface. The information display module is used to:

[0050] Based on the current value, initial value and change of the hydrological data, a warning information table is generated, which records the current value, initial value and change of the hydrological data at the warning point in the target area at different time points, and the warning information table is determined as waterlogging monitoring information;

[0051] The waterlogging monitoring information is displayed on the monitoring interface.

[0052] Furthermore, the information display module is used to generate waterlogging monitoring information based on the current value of the hydrological data at different time points, and display the waterlogging monitoring information on the monitoring interface. The information display module is used to:

[0053] Based on the current values ​​of the hydrological data at different time points, a warning discount graph is generated, which records the corresponding relationship between the current values ​​of the hydrological data at different time points of the warning points in the target area and the warning thresholds corresponding to the hydrological data, and the warning line graph is determined as waterlogging monitoring information;

[0054] The waterlogging monitoring information is displayed on the monitoring interface.

[0055] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned method for warning of urban flooding risks are performed.

[0056] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned method for early warning of urban flood risk are executed.

[0057] The embodiments of the present application provide an early warning method, device, electronic device and storage medium for waterlogging risk. The early warning method includes: obtaining hydrological data of the warning points in the target area at different time points at predetermined intervals; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data; for each type of hydrological data in the hydrological data, processing the hydrological data to obtain a current value corresponding to the hydrological data; judging whether the current value corresponding to the hydrological data is greater than a warning threshold value corresponding to the hydrological data to obtain a judgment result; if so, generating waterlogging warning information according to the judgment result, and displaying the waterlogging warning information on the monitoring interface.

[0058] Compared with the existing technology that uses a functional flood monitoring system equipped with only monitoring data and cannot accurately visualize the flood situation, through real-time monitoring and visual early warning of flood risk situations in historical and cultural blocks, the flood prevention capacity of historical and cultural blocks can be improved, and the integrity of the landscape of historical and cultural blocks can be protected, so as to reduce the negative impact of flooding on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.

[0059] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 A flow chart of an early warning method for waterlogging risk provided in an embodiment of the present application;

[0062] Figure 2 One of the structural schematic diagrams of a waterlogging risk warning device provided in an embodiment of the present application;

[0063] Figure 3 The second structural diagram of a waterlogging risk warning device provided in an embodiment of the present application;

[0064] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0066] The research found that at present, the research on flood prevention, control and early warning in historical and cultural blocks has received more and more attention. Among them, the existing waterlogging monitoring system can only realize the function of monitoring data, and cannot accurately monitor and warn the waterlogging situation visually, so that the safe operation of historical and cultural blocks cannot be comprehensively, meticulously and efficiently guaranteed. Therefore, it is very important to protect historical and cultural blocks in time according to early warning information and improve their waterlogging prevention and control capabilities.

[0067] Based on this, the embodiment of the present application provides an early warning method for urban flooding risks. Through real-time monitoring and visual early warning of urban flooding risks in historical and cultural blocks, the flood prevention capabilities of historical and cultural blocks are improved, and the integrity of the landscape of historical and cultural blocks is protected, so as to reduce the negative impact of urban flooding on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.

[0068] See also Figure 1 , Figure 1 This is a flow chart of a method for early warning of waterlogging risk provided in an embodiment of the present application. Figure 1 As shown in , the early warning method for waterlogging risk provided by the embodiment of the present application includes:

[0069] S101. Obtain hydrological data of the warning points in the target area at different time points at every predetermined period; the hydrological data includes a combination of one or more of the following items: precipitation data, water level data, and drainage flow rate data.

[0070] It should be noted that the target area may be a cultural area with waterlogging risk and requiring key protection, such as historical and cultural blocks, key protected buildings and former sites of ancient celebrities; the warning points in the target area refer to points set in the target area for monitoring and early warning of waterlogging risks, and the warning points are set at points in the target area where the waterlogging risk is more serious, so that the data of the warning points are more representative; the hydrological data refers to the original records of various hydrological elements collected by relevant hydrological monitoring sensors at the monitoring points set in the designated historical and cultural blocks; the predetermined period is the interval time for the sensor to obtain data set in advance by the user, and the predetermined period can be dynamically adjusted according to the monitoring and early warning of waterlogging risks.

[0071] Here, the hydrological data at different time points include one or more combinations of the following items: precipitation data, water level height data and drainage flow rate data. Specifically, the precipitation is the instantaneous rainfall at the warning point during rainfall, and the water level at the warning point is the water level height of the accumulated water formed by rainfall at the warning point; the flow rate is the drainage water flow rate in the drainage pipe set at the warning point.

[0072] In this step, the waterlogging risk warning system obtains the hydrological data of the points to be warned at predetermined time intervals through sensors installed at the points to be warned.

[0073] Specifically, a tipping bucket rainfall sensor is used to collect precipitation data; an ultrasonic level detector is used to collect water level data; and a Hach FL900 standard flow recorder is used to collect drainage flow rate. Here, it should be understood that the time interval of the waterlogging risk warning system according to the predetermined period is pre-set by the user and can be dynamically adjusted according to the monitoring and warning of waterlogging risks, and this application is not limited thereto.

[0074] Specifically, taking the target area as a historical and cultural block as an example, in the historical and cultural block where waterlogging occurs frequently, there are some low-lying areas or areas with loose soil. In this case, warning points are set in such areas of the historical and cultural block, and waterlogging risk monitoring and early warning are carried out at this point. The waterlogging risk early warning system will obtain the precipitation, water level and drainage flow rate at a certain moment through the sensor at the warning point. For example, at the warning point A in a historical and cultural block, the sensor measures that at 17:00 on September 1, 2023, the precipitation at the warning point A is 0.002 mm, the water level is 2.4 cm, and the drainage flow rate is 0.8 m / s; the user pre-sets the interval period for obtaining data to be 5 minutes, and the sensor measures that at 17:05 on September 1, 2023, the precipitation at the warning point A is 0.003 mm, the water level is 2.8 cm, and the drainage flow rate is 0.9 m / s.

[0075] S102, for each type of hydrological data in the hydrological data, processing the hydrological data to obtain a current value corresponding to the hydrological data;

[0076] In this step, when it is specifically implemented, first, each hydrological data among the precipitation data, water level data and drainage flow rate data to be processed is determined, and then the hydrological data is processed to obtain the current value corresponding to the hydrological data. Here, the current value provides a basis for the waterlogging risk warning system to subsequently determine whether to trigger a waterlogging warning.

[0077] In one embodiment of the present application, the steps for processing the hydrological data in step S102 include:

[0078] S1021. Store the hydrological data in a CSV type file.

[0079] Here, the CSV type file is a common spreadsheet file format that stores table data in plain text form and can be composed of any number of records, separated by some line breaks, and each record consists of fields separated by commas. CSV type files store data in plain text form and have a simple structure, which makes CSV type files have good readability and facilitates subsequent data processing by the system; in addition, CSV type files are a universal file format, so that system software programs and database systems support the storage and reading of CSV type files.

[0080] In this step, during the specific implementation, first, the waterlogging risk warning system obtains the hydrological data of the points to be warned at predetermined intervals through sensors installed at the points to be warned. Then, the hydrological data of all the points to be warned obtained are recorded in the form of fields. Finally, the record fields of the hydrological data are stored in the CSV type file.

[0081] For example, according to the example of step S101, the hydrological data of the warning point obtained by the sensor is that the precipitation at the warning point A of a certain historical and cultural block at 17:00 on September 1, 2023 is 0.002mm, the water level is 2.4cm, and the drainage flow rate is 0.8m / s. The system stores the hydrological data in the form of "9 / 1 / 2023, 17:00PM, 0.002, 2.4, 0.8" in a CSV type file; 5 minutes after the scheduled cycle, the sensor measured the precipitation at the warning point A at 17:05 on September 1, 2023, and the precipitation was 0.003mm, the water level was 2.8cm, and the drainage flow rate was 0.9m / s. The system CSV type file updated the data record as follows: "1, 9 / 1 / 2023, 17:00PM, 0.002, 2.4, 0.8; 2, 9 / 1 / 2023, 17:05PM, 0.003, 2.8, 0.9".

[0082] S1022. For each type of hydrological data in the hydrological data, extract the value of the type of hydrological data at the current time point in the CSV type file.

[0083] In this step, during the specific implementation, for each type of hydrological data including precipitation data, water level height data and drainage flow rate data in the hydrological data, the record of the data stored in the CSV type file is extracted, and the record is the value of the data at the current time point.

[0084] For example, according to the example of step S1021, in the data record of the CSV type file, taking the current time 17:05 as the current time point, the precipitation extracted to the current time point in the data record "2, 9 / 1 / 2023, 17:05PM, 0.003, 2.8, 0.9" is 0.003mm, the water level height is 2.8cm, and the drainage flow rate is 0.9m / s.

[0085] S1023: Determine the numerical value of the hydrological data at the current time point as the current value corresponding to the hydrological data.

[0086] In this step, according to the example of step S1022, first, the value of the hydrological data at the current time point is extracted from the CSV type file, then, it is determined that the value is a basis for providing judgment for subsequent threshold comparisons and waterlogging risk warning prompts, and finally, the value of the hydrological data extracted at the current time point is determined as the current value corresponding to the hydrological data.

[0087] S103: Determine whether the current value corresponding to the type of hydrological data is greater than the warning threshold value corresponding to the type of hydrological data, and obtain a determination result.

[0088] It should be noted that the warning threshold is a threshold corresponding to each of the precipitation data, water level data and drainage flow rate data at the warning point in the target area, which is used to express the severity level of waterlogging.

[0089] In this step, during the specific implementation, first, the current value corresponding to the type of hydrological data and the warning threshold corresponding to the type of hydrological data are compared in terms of numerical value, then, it is determined whether the current value corresponding to the type of hydrological data is greater than the warning threshold corresponding to the type of hydrological data, and finally, a comparison and judgment result is obtained.

[0090] In one implementation of the present application, the step of determining the warning threshold corresponding to the hydrological data in step S103 may include:

[0091] S1031. Obtain the geographical environment parameters of the points to be warned in the target area.

[0092] In this step, during specific implementation, first, based on the geographical location of the target area, geographical environment parameters of the geographical location are obtained from the Internet, and then the geographical environment parameters are fed back to the user.

[0093] Here, the geographical environment parameters refer to the geographical environment parameters used to judge the degree of waterlogging, including but not limited to the low-lying degree of the terrain, the looseness of the soil, and the drainage strength of the drainage system, etc., which provide a basis for subsequent users to determine the warning threshold corresponding to the hydrological data. The user will make a comprehensive consideration of the geographical environment based on the geographical environment parameters to determine the warning threshold corresponding to the hydrological data.

[0094] S1032. Determine a warning threshold corresponding to the hydrological data under the acquired geographical environment parameters; the hydrological warning threshold is used to express the severity level of waterlogging.

[0095] It should be noted that, according to the different levels of severity of waterlogging, specifically, the levels of severity of waterlogging can be divided into severe waterlogging, moderate waterlogging and mild waterlogging from large to small; according to the level of severity of waterlogging, the warning thresholds corresponding to the hydrological data are divided into the first warning threshold, the second warning threshold and the third warning threshold from large to small. For example, at the warning point A in a historical and cultural block, according to the level of severity of waterlogging, the first warning threshold corresponding to the precipitation data is determined to be 0.008 mm; the second warning threshold is 0.005 mm; and the third warning threshold is 0.002 mm.

[0096] Specifically, when the value of the hydrological data at the warning point is greater than or equal to the first warning threshold, the severity level of the waterlogging at the warning point is severe waterlogging; when the value of the hydrological data at the warning point is greater than or equal to the second warning threshold and less than the first warning threshold, the severity level of the waterlogging at the warning point is moderate waterlogging; when the value of the hydrological data at the warning point is greater than or equal to the third warning threshold and less than the second warning threshold, the severity level of the waterlogging at the warning point is mild waterlogging; when the value of the hydrological data at the warning point is less than the third warning threshold, there is no risk of waterlogging at the warning point.

[0097] In this step, first, the user will comprehensively consider the impact of the geographical environment on the waterlogging risk based on the geographical environment parameters such as the low-lying degree of the terrain of the warning point in the target table area, the looseness of the soil, and the drainage strength of the drainage system. Then, the three levels of warning thresholds corresponding to the hydrological data are determined, and finally the set warning thresholds are input into the waterlogging risk warning system. In addition, the user can modify the warning threshold corresponding to the hydrological data according to different geographical environment parameters.

[0098] In the specific implementation, the implementation method of the threshold setting function of this system is as follows. When the "Modify warning threshold" button is pressed, first, a new window is created by calling the Toplevel() method and the title of the window is set. Then, 9 labels and input boxes are created through a loop, corresponding to the three warning thresholds of the three data columns. When creating the input box, the insert() method is used to display the current warning threshold in the input box, and an event processing function is bound through the bind() method so that the warning threshold can be updated in time when the user modifies the warning threshold. Finally, create an OK button and bind a callback function through the command parameter to close the window. In the callback function, the window is closed through the destroy() method. When the user wants to modify the warning threshold, the event processing function will update the corresponding warning threshold in the global variable threshold.

[0099] S104: If yes, generate waterlogging warning information according to the judgment result, and display the waterlogging warning information on the monitoring interface.

[0100] It should be noted that the waterlogging warning information includes but is not limited to the current value of the hydrological data, the time of obtaining the hydrological data, the warning threshold corresponding to the hydrological data, and the degree of waterlogging risk reflected by the warning threshold level.

[0101] In this step, if the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data, first, waterlogging warning information is generated according to the judgment result, then the waterlogging risk warning system will visualize the waterlogging warning information, and finally display it on the monitoring interface in the form of a warning window. In addition, the waterlogging risk system will also send the waterlogging warning information in the form of an email to the user's preset mailbox, so that the user can timely discover the waterlogging risk situation of the warning point in the target area.

[0102] For example, the sensor obtains that the precipitation at the warning point A in a historical and cultural block at 17:00 is 0.006mm, and the second warning threshold corresponding to this data is 0.005mm, and the first warning threshold is 0.008mm. It is judged that the precipitation at the warning point A at 17:00 is greater than the second warning threshold but not greater than the first warning threshold. Then the generated waterlogging warning information is that the precipitation at the warning point A at 17:00 is 0.006mm, which is greater than the second warning threshold of 0.005mm, and the risk of moderate waterlogging has been reached.

[0103] In the specific implementation, whether the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data is determined. If not, the method for displaying waterlogging monitoring information on the monitoring interface described in the subsequent step S106 is executed.

[0104] Optionally, in addition to the waterlogging risk warning method including steps S101 to S104, steps S105 and S106 are also included. Specifically, steps S105 and S106 are used to illustrate a method for monitoring waterlogging conditions at warning points in the target area, which is beneficial for users to monitor the waterlogging conditions at warning points in the target area in real time.

[0105] Here, the specific steps of steps S101 to S104 are as described above and will not be repeated here.

[0106] S105 . For each type of hydrological data in the hydrological data, process the hydrological data to obtain an initial value and a variation corresponding to the hydrological data.

[0107] In this step, first, determine one type of hydrological data to be processed, including precipitation data, water level height data and drainage flow rate data, then process the hydrological data, and finally obtain the initial value and change amount corresponding to the hydrological data. The initial value and change amount are the numerical source provided to the waterlogging risk warning system for waterlogging risk monitoring.

[0108] In one implementation of the present application, step S105 may include:

[0109] S1051. For each type of hydrological data, extract the value of the hydrological data at an initial time point within the predetermined period from the CSV type file.

[0110] In this step, for each type of hydrological data including precipitation data, water level height data and drainage flow rate data in the hydrological data, the waterlogging risk warning system extracts the record of the data stored in a CSV type file, and the record is the value of the data at the initial time point within a predetermined period.

[0111] For example, in the data record of the CSV type file mentioned in the example described in step S1021, with the current time 17:05 as the current time point, the precipitation at the initial time point of 17:00 with a predetermined period of 5 minutes is extracted from the data record "1, 9 / 1 / 2023, 17:00PM, 0.002, 2.4, 0.8; 2, 9 / 1 / 2023, 17:05PM, 0.003, 2.8, 0.9", which is 0.002mm, the water level is 2.4cm, and the drainage flow rate is 0.8m / s.

[0112] S1052: Determine the value of the hydrological data at the initial time point as the initial value corresponding to the hydrological data.

[0113] In this step, as described in step S1051, first, based on the value of the hydrological data at the initial time point extracted from the CSV type file, the value is determined as the source of the value provided to the waterlogging risk warning system for waterlogging risk monitoring, and finally, the value of the hydrological data extracted at the initial time point within a predetermined period is determined as the initial value corresponding to the hydrological data.

[0114] S1053: Subtract the current value corresponding to the type of hydrological data from the initial value corresponding to the type of hydrological data, and use the obtained difference to determine the amount of change corresponding to the type of hydrological data.

[0115] The current value corresponding to the hydrological data determined in step S1023 is subtracted from the initial value corresponding to the hydrological data determined in step S1052, and the difference is used to determine the change corresponding to the hydrological data. The change is used to represent the change in the waterlogging risk of the warning point in the target area within a predetermined period.

[0116] S106: Generate waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and display the waterlogging monitoring information on the monitoring interface.

[0117] It should be noted that the waterlogging monitoring information includes but is not limited to the warning information table and warning discount chart corresponding to the water level data. The waterlogging monitoring information is used to present the waterlogging risk situation of the warning points in the target area to be warned to the user in the form of data visualization, so that the user can intuitively monitor the waterlogging risk situation of the warning points in the target area in real time.

[0118] In one implementation of the present application, when the warning information table is determined to be waterlogging monitoring information, step S106 may include:

[0119] S1061. Based on the current value, initial value and change of the hydrological data, generate a warning information table recording the current value, initial value and change of the hydrological data of the target area at different time points, and determine the warning information table as waterlogging monitoring information.

[0120] In this step, based on the waterlogging risk situation of the warning point in the target area as shown by the current value of the hydrological data determined in step S1023, the initial value of the hydrological data determined in step S1052 and the change of the hydrological data determined in step S1053, the current value, initial value and change of the hydrological data are determined as the waterlogging monitoring information in the warning information table.

[0121] For example, at the warning point A in a historical and cultural block, during the scheduled period from 17:00 to 17:05 on September 1, 2023, the waterlogging monitoring information in the warning information table is as follows: the initial value of precipitation is 0.002 mm, the initial value of the water level is 2.4 cm, and the initial value of the drainage flow rate is 0.8 m / s; the current value of precipitation is 0.003 mm, the current value of the water level is 2.8 cm, and the current value of the drainage flow rate is 0.9 m / s; the change in precipitation is 0.001 mm, the change in water level is 0.4 cm, and the change in drainage flow rate is 0.1 m / s.

[0122] S1062: Display the waterlogging monitoring information on the monitoring interface.

[0123] In this step, the waterlogging risk warning system visualizes the waterlogging monitoring information and then displays a warning information table in a visual monitoring interface. The warning information table mainly records the current value, initial value, and change value of precipitation, water level, and drainage flow rate.

[0124] Here, the warning information table includes three data columns, which respectively correspond to the precipitation, water level and drainage flow rate in the hydrological data, wherein each data column contains the current value, initial value and change amount corresponding to the hydrological data.

[0125] In the specific implementation process, first, read the CSV type file through the read_csv() method, and specify the encoding format as UTF-8. Then, extract the data row corresponding to the data column from the data frame, and convert the extracted data into an integer type and store it in the list corresponding to the hydrological data. Next, extract the time data from the data frame and convert it into a time string in the `HH:MM` format and store it in the time list. Finally, store the data row corresponding to the data column in a variable, and return the list corresponding to the hydrological data and the time list as return values ​​to the monitoring interface.

[0126] In addition, the data will be updated at predetermined intervals. In the specific implementation process, the program function stores the latest data in a list in a certain format, then clears the data table, and then inserts the new data into the table. Each data column corresponds to a row, and the name of the data column is used as the text of the row. Finally, the table is inserted into the visualization program, and the system displays the running results of the visualization program in the monitoring interface. Its main function is to display the latest data so that users can understand the changes in the data in a timely manner.

[0127] In one implementation of the present application, when the warning line graph is determined to be waterlogging monitoring information, step S106 may include:

[0128] S1063. Based on the current values ​​of the hydrological data at different time points, generate a warning discount graph that records the corresponding relationship between the current values ​​of the hydrological data at the warning points in the target area and the warning thresholds corresponding to the hydrological data, and determine the warning line graph as waterlogging monitoring information.

[0129] In this step, the waterlogging risk warning system visualizes the waterlogging monitoring information and then displays a warning line graph in the visual monitoring interface. The warning line graph mainly shows the corresponding relationship between the current value of the hydrological data at different time points and the change over time, and the warning threshold corresponding to the hydrological data is displayed in the warning line graph.

[0130] For example, the water level at the warning point A in a historical and cultural block at 17:00 is 2.4 cm, the water level at 17:05 is 2.5 cm, the water level at 17:10 is 2.6 cm, the water level at 17:15 is 2.8 cm, the water level at 17:20 is 2.7 cm, the water level at 17:25 is 2.4 cm, and the water level at 17:30 is 2.5 cm. The first threshold corresponding to the water level data set by the user is 15 cm, the second warning threshold is 10 cm, and the third warning threshold is 5 cm. The above data is determined to be the waterlogging monitoring information in the warning line chart.

[0131] S1064: Display the waterlogging monitoring information on the monitoring interface.

[0132] In this step, the waterlogging risk warning system visualizes the waterlogging monitoring information and then displays a warning discount chart in the visual monitoring interface. The warning discount chart mainly shows the corresponding relationship between the current value of the hydrological data at different time points and the change over time, and displays the warning threshold corresponding to the hydrological data in the warning line chart.

[0133] Here, the warning line graph includes line graphs corresponding to three types of data, which respectively correspond to precipitation, water level height and drainage flow rate in the hydrological data. Each line graph contains the latest current values ​​of several groups of such hydrological data at different time points and the acquisition time corresponding to the current values.

[0134] In the specific implementation process, first, the previous graphics are cleared by calling the clf() method, and then a subplot is created using the add_subplot() method. Next, three horizontal lines are added to the graphics using the axhline() method, corresponding to the three levels of warning thresholds, and the line color, line type, and line width are set. The three warning thresholds are displayed in the line chart with three different colors of horizontal lines, and the line representing the data is distinguished from the three warning thresholds by a fourth color, so that users can observe the data more intuitively. After that, the y-axis label is formatted and the unit is added by setting the yaxis.set_major_formatter() method. Finally, the plot() method is used to draw the precipitation data into a line chart, and the draw() method is used to display the graph on the monitoring interface.

[0135] The embodiment of the present application provides an early warning method for waterlogging risk, which obtains hydrological data of the warning points in the target area at different time points at predetermined intervals; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data; for each type of hydrological data in the hydrological data, the hydrological data is processed to obtain the current value corresponding to the hydrological data; it is determined whether the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data to obtain a judgment result; if so, waterlogging warning information is generated according to the judgment result, and the waterlogging warning information is displayed on the monitoring interface. In this way, through real-time monitoring and visual early warning of waterlogging risk in historical and cultural blocks, the waterlogging prevention capacity of historical and cultural blocks is improved, and the integrity of the landscape of historical and cultural blocks is protected, so as to reduce the negative impact of waterlogging on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.

[0136] See also Figure 2 , Figure 3 , Figure 2 This is one of the structural schematic diagrams of a waterlogging risk early warning device provided in an embodiment of the present application. Figure 3 This is a second structural diagram of a waterlogging risk warning device provided in an embodiment of the present application. Figure 2 As shown in , the early warning device 200 includes:

[0137] The data acquisition module 210 is used to acquire the hydrological data of the warning points in the target area at different time points at every predetermined period; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data;

[0138] A first data processing module 220 is used to process each type of hydrological data in the hydrological data to obtain a current value corresponding to the type of hydrological data;

[0139] The early warning judgment module 230 is used to judge whether the current value corresponding to the hydrological data is greater than the early warning threshold value corresponding to the hydrological data, and obtain a judgment result;

[0140] The waterlogging warning module 240 is used to generate waterlogging warning information according to the judgment result if the current value corresponding to the hydrological data is greater than the warning threshold value corresponding to the hydrological data, and display the waterlogging warning information on the monitoring interface.

[0141] Further, such as Figure 4 As shown, the early warning device 200 further includes a second data processing module 250, and the second data processing module 250 is used to:

[0142] For each type of hydrological data in the hydrological data, the hydrological data is processed to obtain an initial value and a change amount corresponding to the hydrological data.

[0143] Further, such as Figure 4 As shown, the early warning device 200 further includes an information display module 260, and the information display module 260 is used to:

[0144] Based on the current value, initial value and change amount corresponding to the hydrological data, waterlogging monitoring information is generated and displayed on the monitoring interface.

[0145] Furthermore, in the step of processing each type of hydrological data in the hydrological data to obtain a current value corresponding to the type of hydrological data, the first data processing module 220 is used to:

[0146] The hydrological data is stored in a CSV type file;

[0147] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at a current time point in the CSV type file;

[0148] The value of the hydrological data at the current time point is determined as the current value corresponding to the hydrological data.

[0149] Furthermore, in the step of processing the hydrological data to obtain the initial value and the variation corresponding to the hydrological data, the second data processing module 250 is used to:

[0150] For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at an initial time point within the predetermined period from the CSV type file;

[0151] Determine the value of the hydrological data at the initial time point as the initial value corresponding to the hydrological data;

[0152] The current value corresponding to the type of hydrological data is subtracted from the initial value corresponding to the type of hydrological data, and the obtained difference is used to determine the change amount corresponding to the type of hydrological data.

[0153] Furthermore, in the step of determining the warning threshold corresponding to the hydrological data, the warning determination module 230 is used to:

[0154] Obtaining geographical environment parameters of the points to be warned in the target area;

[0155] Determine the warning threshold corresponding to the hydrological data under the acquired geographical environment parameters; the hydrological warning threshold is used to express the severity level of waterlogging.

[0156] Furthermore, the information display module 260 is used to generate waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and display the waterlogging monitoring information on the monitoring interface. The information display module 260 is used to:

[0157] Based on the current value, initial value and change of the hydrological data, a warning information table is generated, which records the current value, initial value and change of the hydrological data at the warning point in the target area at different time points, and the warning information table is determined as waterlogging monitoring information;

[0158] The waterlogging monitoring information is displayed on the monitoring interface.

[0159] Furthermore, the information display module 260 is used to generate waterlogging monitoring information based on the current value of the hydrological data at different time points, and display the waterlogging monitoring information on the monitoring interface. The information display module 260 is used to:

[0160] Based on the current values ​​of the hydrological data at different time points, a warning discount graph is generated, which records the corresponding relationship between the current values ​​of the hydrological data at different time points of the warning points in the target area and the warning thresholds corresponding to the hydrological data, and the warning line graph is determined as waterlogging monitoring information;

[0161] The waterlogging monitoring information is displayed on the monitoring interface.

[0162] The early warning device for waterlogging risk provided by the embodiment of the present application obtains hydrological data of the warning points in the target area at different time points at predetermined intervals; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data; for each type of hydrological data in the hydrological data, the hydrological data is processed to obtain the current value corresponding to the hydrological data; it is determined whether the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data to obtain a judgment result; if so, waterlogging warning information is generated according to the judgment result, and the waterlogging warning information is displayed on the monitoring interface. In this way, through real-time monitoring and visual early warning of waterlogging risk in historical and cultural blocks, the waterlogging prevention capacity of historical and cultural blocks is improved, and the integrity of the landscape of historical and cultural blocks is protected, so as to reduce the negative impact of waterlogging on urban development, improve the sustainability of cultural development, and alleviate the lag in economic production caused by sudden rainfall.

[0163] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0164] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of the early warning method for waterlogging risk in the method embodiment shown, and the specific implementation methods can be found in the method embodiment, which will not be repeated here.

[0165] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the early warning method for waterlogging risk in the method embodiment shown, and the specific implementation methods can be found in the method embodiment, which will not be repeated here.

[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0167] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0171] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for early warning of waterlogging risk, characterized in that: The early warning method comprises: At every predetermined period, the hydrological data of the warning points in the target area at different time points are obtained; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data; The hydrological data is stored in a CSV type file; For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at a current time point in the CSV type file; Determine the value of the hydrological data at the current time point as the current value corresponding to the hydrological data; Determine whether the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data, and obtain a determination result; wherein the warning threshold corresponding to the hydrological data is determined by the following steps: obtaining the geographical environment parameters of the warning point in the target area; determining the warning threshold corresponding to the hydrological data under the obtained geographical environment parameters; the hydrological warning threshold is used to express the severity level of waterlogging; If yes, then generate waterlogging warning information according to the judgment result, and display the waterlogging warning information on the monitoring interface; For each type of hydrological data in the hydrological data, the hydrological data is processed to obtain an initial value and a change amount corresponding to the hydrological data; the initial value and the change amount are numerical sources for waterlogging risk monitoring; Based on the current value, initial value and change amount corresponding to the hydrological data, waterlogging monitoring information is generated, and the waterlogging monitoring information is displayed on the monitoring interface to intuitively monitor the waterlogging risk situation of the warning points in the target area in real time; The step of generating waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and displaying the waterlogging monitoring information on the monitoring interface includes: Based on the current value, initial value and change of the hydrological data, a warning information table is generated, which records the current value, initial value and change of the hydrological data at the warning point in the target area at different time points, and the warning information table is determined as waterlogging monitoring information; the warning information table includes: the precipitation, water level and drainage flow rate in the hydrological data, and the current value, initial value and change value corresponding to the hydrological data; The waterlogging monitoring information is displayed on the monitoring interface.

2. The method according to claim 1, characterized in that The step of processing the hydrological data to obtain the initial value and the variation corresponding to the hydrological data includes: For each type of hydrological data in the hydrological data, extracting a value of the hydrological data at an initial time point within the predetermined period from the CSV type file; Determine the value of the hydrological data at the initial time point as the initial value corresponding to the hydrological data; The current value corresponding to the type of hydrological data is subtracted from the initial value corresponding to the type of hydrological data, and the obtained difference is used to determine the change amount corresponding to the type of hydrological data.

3. The method according to claim 1, characterized in that The step of generating waterlogging monitoring information based on the current values ​​of the hydrological data at different time points, and displaying the waterlogging monitoring information on the monitoring interface includes: Based on the current values ​​of the hydrological data at different time points, a warning line graph is generated, which records the corresponding relationship between the current values ​​of the hydrological data at different time points of the warning points in the target area and the warning thresholds corresponding to the hydrological data, and the warning line graph is determined as waterlogging monitoring information; The waterlogging monitoring information is displayed on the monitoring interface.

4. A waterlogging risk early warning device, characterized in that: The early warning device comprises: A data acquisition module is used to acquire hydrological data of the warning points in the target area at different time points at predetermined intervals; the hydrological data includes one or more combinations of the following items: precipitation data, water level data and drainage flow rate data; A first data processing module is used to store the hydrological data in a CSV type file; for each type of hydrological data in the hydrological data, extract the value of the hydrological data at the current time point in the CSV type file; and determine the value of the hydrological data at the current time point as the current value corresponding to the hydrological data; The early warning judgment module is used to judge whether the current value corresponding to the hydrological data is greater than the early warning threshold corresponding to the hydrological data, and obtain a judgment result; wherein the early warning threshold corresponding to the hydrological data is determined by the following steps: obtaining the geographical environment parameters of the points to be warned in the target area; determining the early warning threshold corresponding to the hydrological data under the obtained geographical environment parameters; the hydrological early warning threshold is used to express the severity level of waterlogging; The waterlogging warning module is used to generate waterlogging warning information according to the judgment result if the current value corresponding to the hydrological data is greater than the warning threshold corresponding to the hydrological data, and display the waterlogging warning information on the monitoring interface; The second data processing module is used to process each type of hydrological data in the hydrological data to obtain an initial value and a change amount corresponding to the hydrological data; the initial value and the change amount are numerical sources for waterlogging risk monitoring; An information display module, used to generate waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and display the waterlogging monitoring information on the monitoring interface; The information display module is used to generate waterlogging monitoring information based on the current value, initial value and change amount corresponding to the hydrological data, and when displaying the waterlogging monitoring information on the monitoring interface, the information display module is used to: Based on the current value, initial value and change of the hydrological data, a warning information table is generated, which records the current value, initial value and change of the hydrological data at the warning point in the target area at different time points, and the warning information table is determined as waterlogging monitoring information; the warning information table includes: the precipitation, water level and drainage flow rate in the hydrological data, and the current value, initial value and change value corresponding to the hydrological data; The waterlogging monitoring information is displayed on the monitoring interface.

5. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are run by the processor, the steps of the early warning method for waterlogging risk as described in any one of claims 1 to 3 are executed.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the early warning method for waterlogging risk as claimed in any one of claims 1 to 3 are executed.