Small watershed flash flood forecasting and warning method and device, electronic equipment, and storage medium
By processing radar water level gauge data in real time, discarding invalid data and extracting characteristic values, it solves the problem of false warnings caused by irregular installation sites or drying up of monitoring watersheds, achieves accurate forecasting and early warning of flash floods in small watersheds, and reduces equipment installation requirements and Flood prevention pressure has increased trust.
Patent Information
- Application Number
- CN202410853371.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing flash flood acoustic and photoelectric early warning equipment is installed in irregular locations or interferes with the leaves of herbaceous plants or shore shrubs caused by the long-term drying of the monitoring watershed, causing irregular jumps in the radar water level meter monitoring data, resulting in false warnings.
By acquiring the time series water level data of the radar water level gauge in real time, a sample set is established, invalid data is discarded after initialization, the average water level and increase multiple are calculated, feature values are extracted, and the degree of discreteness and linear fitting are combined to determine whether to trigger an early warning.
Effectively correcting water level data with large deviations reduces equipment installation site selection requirements and flood control personnel's work pressure, improves the accuracy and trust of early warnings, and solves the problem of false early warnings.
Smart Images

Figure CN118397797B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of flash flood forecasting and warning, and in particular to a flash flood forecasting and warning method and device, electronic equipment, and storage medium for a small watershed. Background Art
[0002] In order to further enhance the monitoring and early warning capabilities of flash flood disasters in small watersheds, reduce the hazards of flash floods in small watersheds, and avoid casualties, on-site acoustic, optical and electrical monitoring and early warning equipment will be built in high-risk areas within small watersheds as the last line of defense for flash flood disaster prevention and grassroots early warning.
[0003] At present, the sound and light warning equipment for mountain torrents basically adopts radar water level gauge as water level monitoring equipment, such as Figure 1 As shown, Figure 1 This is a schematic diagram of the equipment installation. In the figure, 1 represents the equipment box, 2 represents the radar water level meter, and 3 represents interference factors such as weeds. In the actual operation process, it is found that the equipment's on-site warning false alarms occur from time to time. The main reason is that the installation site is not standardized, the monitored basin has been dry for a long time and overgrown with weeds, resulting in herbaceous plants or shore shrubs and leaves around the equipment installation location interfering with the water level meter, causing irregular jumps in the monitoring data, and even exceeding the set water level threshold, causing false warnings. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a small watershed flash flood forecasting and warning method and device, electronic device, and storage medium to solve the technical problem in the related art that the herbaceous plants or shore shrubs and leaves around the equipment installation location interfere with the water level meter due to improper installation site selection or long-term dry weeds in the monitored watershed, resulting in false alarms of the equipment caused by jumps in monitoring data.
[0005] According to a first aspect of an embodiment of the present application, a method for forecasting and warning flash floods in a small watershed is provided, characterized in that it includes:
[0006] Acquire time-series water level data collected by a radar water level meter in real time, and establish a first sample set, wherein a predetermined amount of time-series water level data is stored in the first sample set;
[0007] Selecting the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as a reference value, formatting the first batch of time series water level data in the first sample set into the minimum value, and completing the initialization of the first sample set;
[0008] After initialization, the time series water level data stored in the first sample set is collected and updated in real time, and invalid time series water level data is discarded;
[0009] Calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level to generate a second sample set;
[0010] Calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set;
[0011] If the increase multiple is greater than or equal to the second threshold, the time series water level data of the first sample set corresponding to the second sample set is determined to be invalid, and the time series water level data of the first sample set corresponding to the second sample set is replaced with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set;
[0012] Perform feature value extraction on all the time series water level data in the first sample set to generate a third sample, and perform sampling processing on the time series water level data in the first sample set to obtain a fourth sample;
[0013] If the third sample discreteness is less than the third threshold, the fourth sample linear fit is greater than the fourth threshold, and the flash flood forecast and warning device is in a non-alarm state, the warning device alarm is triggered.
[0014] According to a second aspect of an embodiment of the present application, a small watershed flash flood forecasting and warning device is provided, comprising:
[0015] An acquisition module, used for acquiring in real time the time series water level data collected by the radar water level meter, and establishing a first sample set, wherein a predetermined amount of time series water level data is stored in the first sample set;
[0016] An initialization module, used to select the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as a reference value, format the first batch of time series water level data in the first sample set into the minimum value, and complete the initialization of the first sample set;
[0017] The invalid data discarding module is used to collect and update the time series water level data stored in the first sample set in real time after initialization, and discard the invalid time series water level data;
[0018] A first calculation module, used to calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level, to generate a second sample set;
[0019] A second calculation module is used to calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set;
[0020] A first judgment module is used to judge that the time series water level data of the first sample set corresponding to the second sample set is invalid if the increase multiple is greater than or equal to a second threshold value, and replace the time series water level data of the first sample set corresponding to the second sample set with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set;
[0021] A generation module, used to extract feature values from all the time series water level data in the first sample set to generate a third sample, and to perform sampling processing on the time series water level data in the first sample set to obtain a fourth sample;
[0022] The second judgment module is used to trigger the warning device to alarm if the third sample discreteness is less than the third threshold, the fourth sample linear fit is greater than the fourth threshold, and the flash flood forecast and warning device is in a non-alarm state.
[0023] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including:
[0024] one or more processors;
[0025] A memory for storing one or more programs;
[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.
[0027] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0028] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0029] It can be seen from the above embodiments that the present application establishes samples by acquiring the time-series water level data collected by the radar water level meter, and then pre-processes the real-time collected water level data to correct the time-series water level data with large deviations, and then further corrects the water level data. Finally, a flash flood forecast and warning judgment mechanism is adopted to overcome the interference of the radar water level meter caused by the herbaceous plants or shore shrubs and leaves around the equipment installation location due to irregular installation site selection or long-term dry weeds in the monitored basin, resulting in irregular jumps in the monitoring data, and even exceeding the set water level threshold to cause false warnings, thereby achieving the technical effect of accurate forecasting and warning of flash floods in small watersheds, which not only reduces the requirements for equipment installation site selection and the work pressure of flood control personnel, but also improves the trust of surrounding residents in the equipment, and truly solves the problem of the last kilometer of flash floods.
[0030] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0032] Figure 1 This is a schematic diagram of the existing equipment installation.
[0033] Figure 2 The present invention is a flowchart of a method for forecasting and warning flash floods in a small watershed according to an exemplary embodiment.
[0034] Figure 3 It is the water level data with occasional water level jumps.
[0035] Figure 4 It is the water level data that jumps up and down.
[0036] Figure 5 It is the water level data showing the water level maintaining jump.
[0037] Figure 6 It is the water level data with rising jump.
[0038] Figure 7 This is the result of sporadic water level jumps being processed by this application.
[0039] Figure 8 It is the result of the up and down jitter transitions processed by this application.
[0040] Fig. 9 It is the result of the water level retention jump after being processed by this application.
[0041] Fig.10 It is the result of the rising transition after being processed by this application.
[0042] Fig.11 It is a structural schematic diagram of a small watershed flash flood forecasting and warning device according to an exemplary embodiment.
[0043] Fig.12 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0045] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0046] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0047] Figure 2 is a flow chart of a method for forecasting and warning flash floods in a small watershed according to an exemplary embodiment. Figure 2 As shown, the method is applied in a terminal and may include the following steps:
[0048] S1: acquiring time-series water level data collected by a radar water level meter in real time, and establishing a first sample set, wherein a predetermined amount of time-series water level data is stored in the first sample set;
[0049] Specifically, time-series water level data is collected once in real time through a radar water level meter, where the time-series water level data is an instantaneous water level value, and a first sample set is established.
[0050] The main purpose of this step is to collect time-series water level data in real time. The collection time interval cannot be too large, otherwise the flash flood warning will not be real-time enough. It cannot be too small, otherwise the radar water level meter will fail to sample successfully. The measurement time of the radar water level meter is generally 5-8 seconds. It is recommended to use 10s, which can better obtain the sampling data of each radar water level meter.
[0051] S2: Select the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as the reference value, format the first batch of time series water level data in the first sample set into the minimum value, and complete the initialization of the first sample set; this step may include the following sub-steps:
[0052] S21: After the first sample set stores a first batch of predetermined number of time series water level data, a minimum value of a plurality of time series water level data in the first sample is selected, and the minimum value is used as a reference value;
[0053] Specifically, after collecting the first batch of predetermined number of time-series water level data, calculate the minimum value of the first batch of predetermined number of time-series water level data, and take the minimum value as the reference value. The first batch of predetermined number is determined to be 6 (subsequent steps will be carried out after the sample is established. If the time to establish the sample is too long, assuming that a flash flood alarm is generated may cause alarm delay or even the alarm not to be reported. In addition, the radar water level meter takes 10 seconds to acquire data, and the total time of 6 data is 1 minute. According to a large amount of data analysis, the water level rise within 1 minute will not affect the judgment of the flash flood, and if the external environment interferes, the water level will jump every minute. Therefore, using 1 minute can take into account both real-time performance and the interference of abnormal jumps). The reference value is a reference water level, which is equivalent to the time-series water level value that the device considers to be correct. This value will be dynamically adjusted later.
[0054] The purpose of this step is to remove abnormal jumps that occur just after the device is started and determine the benchmark value, providing an initial sample for subsequent judgment. The introduction of the benchmark value is to perform preliminary processing on the time series water level data in the next step, remove the interference caused by large jumps, and make the results more accurate.
[0055] S22: Formatting the first batch of time-series water level data in the first sample set into reference values, thereby completing initialization of the first sample set.
[0056] Specifically, the first batch of time-series water level data in the first sample set is formatted as a benchmark value to complete the initialization of the first sample set. The total size of the first sample set is 60 data, which is about 10 minutes of data. According to the analysis of the time-series water level data of small watersheds where a large number of flash floods occur, the water level rise in different small watersheds is different. The water level in some watersheds rises quickly (more than 0.5 meters in 5 minutes), and the water level in some watersheds rises slowly (0.01 meters in 5 minutes). In addition, the accuracy of radar water level meters from different manufacturers is different, with a high accuracy of 0.001 meters and a low accuracy of 0.01 meters. In order to take into account the rise in different watersheds and radar water level meters from different manufacturers, the data volume of the first sample set is too small, which may lead to the inability to capture the characteristics of abnormal data or water level rise, thereby affecting the judgment of flash flood warnings, so 10 minutes is taken.
[0057] The main purpose of this step is to complete the initialization of the first sample set.
[0058] S3: After initialization, the time series water level data stored in the first sample set is collected and updated in real time, and invalid time series water level data is discarded;
[0059] Specifically, the latest time series water level data in the first sample set is differentially processed with the reference value. When the difference does not exceed a first threshold, the latest time series water level data is determined to be valid; otherwise, it is determined to be invalid and discarded from the first sample set.
[0060] The purpose of comparing with the benchmark value is to remove the time series water level data with obvious jumps and improve the accuracy of the data.
[0061] S4: Calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level to generate a second sample set;
[0062] Specifically, all values in the first sample set are accumulated and divided by the number of the first sample set, and the average water level = Zi) / N, Zi is the first sample set, N represents the number of the first sample set, and calculates the absolute difference between each time series water level data and the average water level to generate the second sample set.
[0063] S5: Calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set;
[0064] Specifically, the data of the second sample set is sorted. If the size of the second sample set is an even number, the median is the average of the two middle data. If the size of the second sample set is an odd number, the median is the middle value. The absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set is divided by the median.
[0065] The main purpose of this step is to obtain the increase multiple of the latest time series water level data of the first sample set. In the subsequent steps, the increase multiple of the latest time series water level data of the first sample set will be used to make a judgment on water level cleaning.
[0066] S6: If the increase multiple is greater than or equal to the second threshold, the time series water level data of the first sample set corresponding to the second sample set is determined to be invalid, and the time series water level data of the first sample set corresponding to the second sample set is replaced with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set;
[0067] Specifically, according to the formula:
[0068]
[0069] Among them ZD i is the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set, Mad is the median of the second sample set, is the second threshold, is the time series water level data of the first sample set corresponding to the second sample set, The average water level of all the time series water level data in the first sample set. If the increase multiple is greater than or equal to the second threshold, the time series water level data of the first sample set corresponding to the second sample set is determined to be invalid, and the time series water level data in the first sample set corresponding to the second sample set is replaced with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set.
[0070] The main purpose of this step is to clean the time series water level data in real time and update the reference value to remove abnormal time series water level data. Through this step, the abnormal time series water level data in the first sample set can be effectively removed in real time, providing more accurate data for the subsequent early warning processing steps.
[0071] Figure 3 It is the water level data with occasional water level jumps. Figure 4 It is the water level data that jumps up and down. Figure 5 It is the water level data with water level retention jump; Figure 6 It is the water level data with rising jump; Figure 7 This is the result of the occasional jump in water level being processed by this application. Figure 8 It is the result of the up and down jitter transition after being processed by this application. Fig. 9 It is the result of the water level retention jump after being processed by this application. Fig.10 This is the result of the rising jump after being processed by this application. It can be seen that the jump amplitude of the maximum and minimum values of the time series water level data before processing exceeds 1 meter, and the jump amplitude of the maximum and minimum values of the time series water level data after processing does not exceed 0.1 meter. It can be seen that the time series water level data has been well corrected and the water level data tends to be stable as a whole. It should be noted that Figure 3-Figure 10 The water level data were converted using the 85 elevation datum.
[0072] S7: Extracting feature values from all the time series water level data in the first sample set to generate a third sample, and sampling the time series water level data in the first sample set to obtain a fourth sample; this step may include the following sub-steps:
[0073] S71: performing differential processing on all time series water level data in the first sample set according to adjacent positions, obtaining the rising rates of adjacent water levels, extracting characteristic information of the rising rates of adjacent water levels, and generating a third sample set;
[0074] Specifically, according to the formula ,in is the time series water level data of the first sample set, In order to calculate the rising rate of adjacent water levels, all time series water level data in the first sample set are differentially processed according to adjacent positions to obtain the rising rate of adjacent water levels, extract characteristic information of the rising rate of adjacent water levels, and generate a third sample set.
[0075] The main purpose of this step is to extract the characteristic information of the time series water level data, and the characteristic information is the rising rate of adjacent water levels.
[0076] S72: extracting one piece of data for every N samples in the third sample set to generate a fourth sample set;
[0077] The main purpose of this step is to amplify the characteristics of the rising water level data in time series. Since the water level rises in different situations, some have a fast rise rate and some have a slow rise rate, data sampling can remove the situation of gentle water level and amplify the characteristics of the water level rise, providing easier-to-process data for the next flash flood warning judgment. N takes a value of 6, that is, one minute of data. Since the water level rise rate is affected by many factors such as the width of the basin, soil moisture content, and whether there are multiple basins converging, the rise rates of different basins vary greatly. After a large amount of data analysis, when the water level rises, the water level data change rate occurs in the time period of 10S~60S. If 10S is taken, the data in other time periods may not change, resulting in a large amount of duplicate data, affecting the subsequent judgment accuracy. Therefore, in order to accurately amplify the water level rise characteristics, this value uses 60S, which is compatible with all rising situations.
[0078] S8: If the third sample discreteness is less than the third threshold, the fourth sample linear fit is greater than the fourth threshold, and the flash flood forecast warning device is in a non-alarm state, then triggering the warning device to alarm; this step may include the following sub-steps:
[0079] S81: Calculate the average rising rate of all values in the third sample set;
[0080] Specifically, the average rate of increase = ) / N, where is the rising rate of the third sample set, and N is the size of the third sample set.
[0081] The main purpose of this step is to calculate the average rate of increase in preparation for the next step of calculating the standard deviation.
[0082] S82 calculates the standard deviation σ of the water level rise rate according to all the values in the third sample and the average rise rate;
[0083] Specifically, according to the formula:
[0084]
[0085] Where R i is the value in the third sample set, R a is the average rising rate, N is the size of the third sample set, and σ is the standard deviation.
[0086] The main purpose of this step is to calculate the standard deviation of the third sample set. The size of the standard deviation reflects the degree of discreteness of the time series water level data in the first sample set. If the data is discrete, it proves that the water level data fluctuates greatly and the amplitude of the jitter is large.
[0087] S83: Calculate the linear regression fitting degree r based on the fourth sample set 2 ;
[0088] The main purpose of this step is to calculate the linear regression fit of the fourth sample. Since the water level data rises in a linear trend, the linear regression fit can reflect the actual situation of the water level rise. If the linear regression fit is too small, it means that the water level data has no fluctuation, fluctuates up and down, or the fluctuation range is very small.
[0089] S84: If σ is less than the third threshold and r 2 If it is greater than the fourth threshold, it enters the pre-warning state and queries the status of the flash flood forecast and warning equipment at this time. If it is in the warned state, the secondary warning will not be triggered; if the flash flood forecast and warning equipment is in the non-warning state, the warning will be triggered.
[0090] This step is mainly to determine whether a flash flood warning should be issued. Judging simultaneously based on the discrete degree of the third sample and the linear fit of the fourth sample can well reflect the current situation of the time series water level data and improve the accuracy of the flash flood warning.
[0091] It can be seen from the above embodiments that the present application adopts a method that combines a water level cleaning algorithm with a flash flood forecast and warning algorithm. Specifically, it obtains the time-series water level data collected by the radar water level meter, establishes a sample, and then pre-processes the real-time collected water level data to correct the time-series water level data with large deviations, and then further corrects the water level data. Finally, a flash flood forecast and warning judgment mechanism is adopted to overcome the interference of the radar water level meter caused by the herbaceous plants or shore shrubs and leaves around the equipment installation location due to irregular installation site selection or long-term dry weeds in the monitored basin, resulting in irregular jumps in the monitoring data, and even exceeding the set water level threshold to cause false warnings, thereby achieving the technical effect of accurate forecasting and warning of flash floods in small watersheds, which not only reduces the requirements for equipment installation site selection and the work pressure of flood control personnel, but also improves the trust of surrounding residents in the equipment, and truly solves the problem of the last kilometer of flash floods.
[0092] Corresponding to the aforementioned embodiment of the method for forecasting and warning flash floods in a small watershed, the present application also provides an embodiment of a device for forecasting and warning flash floods in a small watershed.
[0093] Fig.11 FIG. 1 is a block diagram of a small watershed flash flood forecast and warning device according to an exemplary embodiment. Fig.11 , the device comprises:
[0094] The acquisition module 1 is used to acquire the time series water level data collected by the radar water level meter in real time and establish a first sample set, in which a predetermined amount of time series water level data is stored;
[0095] Initialization module 2, used to select the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as a reference value, format the first batch of time series water level data in the first sample set into the minimum value, and complete the initialization of the first sample set;
[0096] The invalid data discarding module 3 is used to collect and update the time series water level data stored in the first sample set in real time after initialization, and discard the invalid time series water level data;
[0097] A first calculation module 4 is used to calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level to generate a second sample set;
[0098] A second calculation module 5 is used to calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set;
[0099] A first judgment module 6 is used to judge that the time series water level data of the first sample set corresponding to the second sample set is invalid if the increase multiple is greater than or equal to the second threshold value, and replace the time series water level data of the first sample set corresponding to the second sample set with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set;
[0100] A generating module 7 is used to extract feature values from all the time series water level data in the first sample set to generate a third sample, and at the same time perform average sampling processing on the time series water level data in the first sample set to obtain a fourth sample;
[0101] The second judgment module 8 is used to trigger the warning device to alarm if the third sample discreteness is less than the third threshold, the fourth sample linear fit is greater than the fourth threshold, and the flash flood forecast and warning device is in a non-alarm state.
[0102] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0103] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0104] Accordingly, the present application also provides an electronic device, including: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the small watershed flash flood forecasting and warning method as described above. Fig.12 As shown, a hardware structure diagram of a small watershed flash flood forecasting and warning device provided by an embodiment of the present invention is provided in any device with data processing capability, except Fig.12 In addition to the processor and memory shown, any device with data processing capability in which the apparatus in the embodiment is located may also include other hardware, generally based on the actual functions of the device with data processing capability, which will not be described in detail.
[0105] Accordingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by the processor, the small watershed flash flood forecasting and warning method as described above is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capabilities. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capabilities, and can also be used to temporarily store data that has been output or is to be output.
[0106] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0107] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for forecasting and warning flash floods in a small watershed, characterized in that: include: Acquire time-series water level data collected by a radar water level meter in real time, and establish a first sample set, wherein a predetermined amount of time-series water level data is stored in the first sample set; Selecting the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as a reference value, formatting the first batch of time series water level data in the first sample set into the minimum value, and completing the initialization of the first sample set; After initialization, the time series water level data stored in the first sample set is collected and updated in real time, and invalid time series water level data is discarded; Calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level to generate a second sample set; Calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set; If the increase multiple is greater than or equal to the second threshold, the time series water level data of the first sample set corresponding to the second sample set is determined to be invalid, and the time series water level data of the first sample set corresponding to the second sample set is replaced with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set; Extracting characteristic values of all the time series water level data in the first sample set to generate a third sample set, and sampling the time series water level data in the first sample set to obtain a fourth sample set; If the degree of dispersion of the third sample set is less than the third threshold, the linear fit of the fourth sample set is greater than the fourth threshold, and the flash flood forecast and warning device is in a non-alarm state, then the warning device is triggered to alarm; The third sample set is generated by extracting characteristic values from all the time series water level data in the first sample set, and the fourth sample set is obtained by sampling the time series water level data in the first sample set, including: Perform differential processing on all time series water level data in the first sample set according to adjacent positions, obtain the rising rates of adjacent water levels, extract feature information of the rising rates of adjacent water levels, and generate a third sample set; A piece of data is extracted from the third sample set at intervals of a specified number to generate a fourth sample set.
2. The method according to claim 1, characterized in that Acquire the time series water level data collected by the radar water level meter in real time and establish the first sample set, including: The time-series water level data is collected in real time by a radar water level meter, wherein the time-series water level data is an instantaneous water level value, and a first sample set is established.
3. The method according to claim 1, characterized in that The minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set is selected as a reference value, and the first batch of time series water level data in the first sample set is formatted as the minimum value, so as to complete the initialization of the first sample set, including: After a first predetermined number of time series water level data are stored in the first sample set, a minimum value of a plurality of time series water level data in the first sample set is selected, and the minimum value is used as a reference value; The first batch of time-series water level data in the first sample set is formatted as a reference value to complete the initialization of the first sample set.
4. The method according to claim 1, characterized in that: Invalid time series water level data is discarded, including: The latest time series water level data in the first sample set is differentially processed with the reference value. When the difference does not exceed the first threshold, the latest time series water level data is determined to be valid; otherwise, it is determined to be invalid and discarded from the first sample set.
5. The method according to claim 1, characterized in that If the discrete degree of the third sample set is less than the third threshold, the linear fit degree of the fourth sample set is greater than the fourth threshold, and the flash flood forecast warning device is in a non-alarm state, then the warning device alarm is triggered, including: Calculate the average increase rate of all values in the third sample set; Calculate the standard deviation of the water level rise rate based on all values in the third sample set and the average rise rate σ ; Calculate the fitting degree of its linear regression based on the fourth sample set; If the standard deviation is less than the third threshold and the degree of fit is greater than the fourth threshold, the system enters the pre-warning state and queries the status of the flash flood forecast and warning equipment at this time. If it is in the warned state, the secondary warning will not be triggered; if the flash flood forecast and warning equipment is in the non-warning state, the warning will be triggered.
6. A small watershed flash flood forecasting and warning device, characterized in that: include: An acquisition module, used for acquiring in real time the time series water level data collected by the radar water level meter, and establishing a first sample set, wherein a predetermined amount of time series water level data is stored in the first sample set; An initialization module, used to select the minimum value of a plurality of time series water level data in the first batch of time series water level data stored in the first sample set as a reference value, format the first batch of time series water level data in the first sample set into the minimum value, and complete the initialization of the first sample set; The invalid data discarding module is used to collect and update the time series water level data stored in the first sample set in real time after initialization, and discard the invalid time series water level data; A first calculation module, used to calculate the average water level of all time series water level data in the first sample set, and calculate the absolute difference between each time series water level data and the average water level, to generate a second sample set; A second calculation module is used to calculate the median of the second sample set, and divide the absolute difference in the second sample set corresponding to the latest time series water level data in the first sample set by the median to obtain the increase multiple of the latest time series water level data in the first sample set; A first judgment module is used to judge that the time series water level data of the first sample set corresponding to the second sample set is invalid if the increase multiple is greater than or equal to a second threshold value, and replace the time series water level data of the first sample set corresponding to the second sample set with the average water level of the first sample set; otherwise, the time series water level data of the first sample set corresponding to the second sample set is valid and the reference value is updated to the time series water level data of the first sample set corresponding to the second sample set; A generation module, used to extract feature values from all the time series water level data in the first sample set to generate a third sample set, and to perform sampling processing on the time series water level data in the first sample set to obtain a fourth sample set; The second judgment module is used to trigger the warning device to alarm if the discrete degree of the third sample set is less than the third threshold, the linear fit degree of the fourth sample set is greater than the fourth threshold, and the flash flood forecast and warning device is in a non-alarm state; The third sample set is generated by extracting characteristic values from all the time series water level data in the first sample set, and the fourth sample set is obtained by sampling the time series water level data in the first sample set, including: Perform differential processing on all time series water level data in the first sample set according to adjacent positions, obtain the rising rates of adjacent water levels, extract feature information of the rising rates of adjacent water levels, and generate a third sample set; A piece of data is extracted from the third sample set at intervals of a specified number to generate a fourth sample set.
7. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Cited By
Small watershed mountain torrent early warning method and system based on end-to-end time sequence prediction
CN122867377A
A method and system for end-to-end time series prediction of flash flood warning in small watersheds
CN122867377B
