Urban ponding actual condition monitoring method, device, equipment and medium
By constructing a grid observation basic data set and multi-source water accumulation data correction, and using a pre-trained water accumulation prediction integrated model and a dynamic variable weight fusion machine learning model, the problem of low water accumulation monitoring accuracy in the existing technology is solved and achieved It provides real-time and accurate water accumulation monitoring result updates and improves monitoring accuracy.
Patent Information
- Application Number
- CN202411060422.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-08-30
AI Technical Summary
Existing water accumulation monitoring technology is difficult to meet the demand for rapid response due to insufficient spatiotemporal resolution of data and interference from natural conditions. Moreover, direct observation based on sensing equipment and methods based on joint modeling of precipitation and water accumulation have location dependence and spatial resolution. The problems of insufficient rate, lack of spatial generalization ability and superficial feature engineering lead to low accuracy of live water monitoring results.
By constructing a basic data set of grid point observations in the target urban area, extracting water feature data, using the pre-trained water accumulation prediction integrated model combined with multi-source water accumulation data, and dynamically variable weight fusion machine learning model output to generate an initial grid product Real-time water monitoring results are collected and corrected through multi-source water accumulation data to achieve real-time, accurate and fast grid-point water accumulation real-time monitoring.
It improves the accuracy of live water accumulation monitoring results, effectively explores the non-linear dependence between precipitation and water accumulation depth, integrates multi-source data for correction, achieves real-time, accurate and rapid water accumulation monitoring result updates, and comprehensively improves monitoring Accuracy.
Smart Images

Figure CN118568676A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of waterlogging monitoring, and in particular to a method, device, equipment and medium for real-time monitoring of urban waterlogging. Background Art
[0002] Traditional waterlogging monitoring methods are limited by insufficient spatial and temporal resolution of data and interference from natural conditions, making it difficult to meet the needs of rapid response. In this context, social perception methods that integrate multi-source data have emerged as a new way to improve urban waterlogging monitoring and early warning capabilities. At present, existing waterlogging real-time estimation technologies are mainly divided into two categories: direct observation based on sensing devices and indirect prediction based on joint modeling of precipitation and waterlogging. However, due to the inherent limitations of the two algorithms, the accuracy of the real-time waterlogging monitoring results still has room for improvement. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device, equipment and medium for real-time monitoring of urban waterlogging, which can significantly improve the accuracy of real-time monitoring results of waterlogging.
[0004] In a first aspect, an embodiment of the present invention provides a method for real-time monitoring of urban waterlogging, comprising: Construct a basic grid observation dataset corresponding to the target urban area; Extract waterlogging feature data from the grid observation basic data set according to the target feature type; The waterlogging prediction integrated model obtained through pre-training determines the actual waterlogging monitoring results of the initial grid points corresponding to the target urban area based on the waterlogging characteristic data; wherein the waterlogging prediction integrated model includes multiple machine learning models, the dynamic variable weights of the machine learning models are related to the model training effect in the training phase, and the dynamic variable weights are used to fuse the actual waterlogging monitoring results output by the multiple machine learning models; Waterlogging correction data is generated based on the multi-source waterlogging data corresponding to the target urban area. The initial grid point waterlogging actual monitoring results corresponding to the grid point are replaced with the waterlogging correction data to obtain the target grid point waterlogging actual monitoring results corresponding to the target urban area. The multi-source waterlogging data are obtained by crawling the Internet.
[0005] In one embodiment, before extracting the waterlogging feature data from the grid observation basic data set according to the target feature type, the method further includes: Construct a historical waterlogging basic data set corresponding to the target urban area; wherein the historical waterlogging basic data set is constructed based on one or more of historical grid precipitation real-time data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data; Clean the historical waterlogging basic data set; Extract the statistical characteristic data of meteorological element data and the spatiotemporal characteristic data of waterlogging observation records from the historical waterlogging basic data set after data cleaning; The historical waterlogging basic data set is augmented using statistical feature data and spatiotemporal feature data to obtain the target historical waterlogging basic data set, and the feature data contained in the target historical waterlogging basic data set are analyzed for importance to obtain the target feature type.
[0006] In one implementation, data cleaning is performed on a historical waterlogging basic data set, including: If there are multiple waterlogging observation records corresponding to the same station and the same time in the historical waterlogging basic data set, if the values of the waterlogging observation records are equal, one waterlogging observation record is retained; if the values of the waterlogging observation records are not equal, the minimum absolute value between the value of each waterlogging observation record and the values of the waterlogging observation records at the two adjacent moments before and after is determined, and the waterlogging observation record corresponding to the minimum absolute value is retained; Furthermore, using the sequence mean mutation test algorithm, the duration of waterlogging of each waterlogging observation record in the historical waterlogging basic data set is tested for duration mutation, so as to eliminate waterlogging observation records with abnormal duration of waterlogging; Furthermore, if the value of the waterlogging observation record is greater than the prediction threshold within a preset time period and the value of the waterlogging observation record does not fluctuate over time, the waterlogging observation record is discarded.
[0007] In one implementation, the characteristic data included in the target historical waterlogging basic data set is analyzed for importance to obtain the target characteristic type, including: For the target historical waterlogging basic data set, determine the Pearson correlation coefficients between the feature data and the feature data contained therein, and the Pearson correlation coefficients between the feature data and the waterlogging depth, and determine the first candidate feature type based on the Pearson correlation coefficients; And, for the target historical waterlogging basic data set, the feature data contained in the data set is used as the input of the CatBoost model, the waterlogging depth is used as the output of the CatBoost model, the CatBoost model is further trained, and the feature data is ranked by importance using the trained CatBoost model to determine the second candidate feature type; The intersection of the first candidate feature type and the second candidate feature type is taken to obtain the target feature type.
[0008] In one embodiment, before determining the initial grid point waterlogging actual monitoring results corresponding to the target urban area based on the waterlogging characteristic data using the pre-trained integrated waterlogging prediction model, the method further includes: Taking the feature data corresponding to the target feature type as input and the waterlogging depth as the true value, the various machine learning models included in the waterlogging prediction integrated model are trained; Determine the mean absolute error of each machine learning model, where the mean absolute error is used to describe the training effect of the machine learning model; The dynamic variable weight corresponding to each machine learning model is determined based on the mean absolute error.
[0009] In one embodiment, generating waterlogging correction data based on multi-source waterlogging data corresponding to the target urban area includes: Crawl multi-source waterlogging data corresponding to the target urban area; Semantically analyze multi-source flooding data to extract key features of flooding events; The key features are aligned in the time domain, converted to longitude and latitude, and gridded to obtain the waterlogging correction data.
[0010] In a second aspect, an embodiment of the present invention further provides a device for monitoring real-time urban waterlogging, comprising: The dataset construction module is used to construct the grid observation basic dataset corresponding to the target urban area; A feature extraction module is used to extract waterlogging feature data from the grid observation basic data set according to the target feature type; A waterlogging real-time monitoring module is used to determine the real-time waterlogging monitoring results of the initial grid points corresponding to the target urban area based on the waterlogging characteristic data through the pre-trained integrated waterlogging prediction model; wherein the integrated waterlogging prediction model includes multiple machine learning models, and the dynamic variable weights of the machine learning models are related to the model training effect in the training phase, and the dynamic variable weights are used to fuse the real-time waterlogging monitoring results output by the multiple machine learning models; The actual waterlogging correction module is used to generate waterlogging correction data based on the multi-source waterlogging data corresponding to the target urban area, so as to replace the initial grid point waterlogging actual monitoring results corresponding to the grid point where the waterlogging correction data is located, and obtain the actual waterlogging monitoring results of the target grid point corresponding to the target urban area. The multi-source waterlogging data is obtained by crawling the network.
[0011] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any one of the methods provided in the first aspect.
[0013] A method, device, equipment and medium for real-time monitoring of urban waterlogging provided by an embodiment of the present invention first constructs a grid observation basic data set corresponding to a target urban area, and extracts waterlogging feature data from the grid observation basic data set according to the target feature type; then, through a pre-trained waterlogging prediction integrated model, the initial grid waterlogging real-time monitoring result corresponding to the target urban area is determined based on the waterlogging feature data, the waterlogging prediction integrated model includes multiple machine learning models, the dynamic variable weights of the machine learning models are related to the model training effect in the training phase, and the dynamic variable weights are used to fuse the real-time monitoring results of waterlogging output by the multiple machine learning models; finally, waterlogging correction data is generated based on the multi-source waterlogging data corresponding to the target urban area, so as to use the waterlogging correction data to replace the initial grid waterlogging real-time monitoring result corresponding to the grid where it is located, so as to obtain the target grid waterlogging real-time monitoring result corresponding to the target urban area, and the multi-source waterlogging data is obtained by network crawling. The above method uses the waterlogging prediction integrated model to output the initial grid waterlogging actual monitoring results based on the waterlogging feature data corresponding to the target feature type, which can effectively explore the nonlinear dependence between precipitation and waterlogging depth. At the same time, it also integrates multi-source waterlogging data to construct waterlogging correction data and correct the initial grid waterlogging actual monitoring results, realizing real-time, accurate and rapid updating of grid waterlogging actual monitoring results, and comprehensively improving the accuracy of waterlogging actual monitoring results.
[0014] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0015] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of a flow chart of a method for real-time monitoring of urban waterlogging provided by an embodiment of the present invention; Figure 2 A schematic diagram of a historical waterlogging basic data set provided by an embodiment of the present invention; Figure 3 A schematic diagram of data augmentation after feature engineering provided by an embodiment of the present invention; Figure 4 A schematic diagram of the overall process of a method for real-time monitoring of urban waterlogging provided by an embodiment of the present invention; Figure 5 A schematic diagram of another target grid point water accumulation real-time monitoring result provided by an embodiment of the present invention; Figure 6 A schematic diagram of the structure of a device for real-time monitoring of urban waterlogging provided by an embodiment of the present invention; Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] At present, the existing waterlogging estimation technologies are mainly divided into two categories: direct observation based on sensing equipment and indirect prediction based on joint modeling of precipitation and waterlogging. 1. Direct recognition method based on sensing equipment: Existing direct waterlogging recognition technology based on sensing devices mainly relies on hardware facilities such as cameras (urban road cameras or vehicle-mounted cameras), ultrasonic sensors or pressure sensors, combined with machine learning image recognition algorithms or digital signal processing technology to convert field data into waterlogging status information in real time. Although such methods can achieve rapid and relatively accurate detection of waterlogging to a certain extent, their inherent limitations are: 1. Significant location dependence: The recognition effect is severely limited by the location and density of equipment deployment. The coverage of cameras or sensors is limited, and for the needs of refined recognition (such as kilometer-level or even sub-kilometer-level), large-scale equipment needs to be added, resulting in a significant increase in resource investment and poor economy and scalability.
[0020] 2. Insufficient spatial resolution: It is difficult to effectively capture the spatial heterogeneity of waterlogging in complex urban environments with only local sensor data, especially in areas with interlaced road networks and undulating terrain. It is difficult to accurately depict the fine structure and dynamic evolution of waterlogging distribution.
[0021] 2. Method based on joint modeling of precipitation and waterlogging: The identification technology based on the joint modeling of precipitation and waterlogging relies on the observation data of precipitation stations and the records of known waterlogging points, and uses machine learning, statistical models or hydrological models to reveal the intrinsic connection between precipitation and waterlogging. Although this method has achieved certain results in predicting waterlogging points, it still has the following bottlenecks: 1. Lack of spatial generalization ability: The model is mainly based on data from fixed observation sites. It is impossible to effectively predict the waterlogging conditions in areas without sites or in remote areas. In other words, it is impossible to achieve real-time inference of waterlogging conditions in any geographical location, which limits its scope of application.
[0022] 2. Incomplete consideration of key factors: The model is built based only on basic information such as precipitation intensity and duration, ignoring crucial geographical factors in the formation and dissipation of waterlogging, such as topography (altitude, slope, slope aspect), soil permeability characteristics, and the effectiveness of urban drainage systems. As a result, the model's simulation of waterlogging is not comprehensive enough and the prediction accuracy is limited.
[0023] 3. Superficial feature engineering: Current technologies often only focus on basic indicators of precipitation during the feature extraction stage, and fail to fully explore and integrate other potential influencing factors (such as wind speed, wind direction, previous soil moisture, urban heat island effect, etc.) and their complex nonlinear relationship with waterlogging. This may lead to underfitting problems in the model, making it difficult to accurately characterize the high-dimensional, nonlinear mapping relationship between precipitation and waterlogging.
[0024] Based on this, the present invention provides a method, device, equipment and medium for real-time monitoring of urban waterlogging, which can improve the problem of low accuracy of real-time monitoring results of waterlogging caused by the above-mentioned inherent limitations.
[0025] To facilitate understanding of this embodiment, firstly, a method for monitoring urban waterlogging in real time disclosed in an embodiment of the present invention is described in detail. Figure 1 The flowchart of a method for monitoring urban waterlogging in real time is shown in FIG. 1 , and the method mainly includes the following steps S102 to S108: Step S102: construct a grid point observation basic data set corresponding to the target urban area.
[0026] In one example, the detailed terrain and landform information of the target urban area, as well as the historical meteorological elements, radar, satellite and other meteorological observation data of the corresponding period are collected, and the grid observation basic data set is constructed using the collected data. Each row in the grid observation basic data set represents a waterlogging observation record, and each column represents a set of feature data.
[0027] Step S104: extracting waterlogging feature data from the grid observation basic data set according to the target feature type.
[0028] In one example, the target feature type is obtained by performing data cleaning, feature extraction, and feature importance analysis on the historical waterlogging basic data set. The target feature type is a feature type that contributes greatly to waterlogging prediction. The waterlogging feature data involves the statistical feature data of meteorological element data and the spatiotemporal feature data of waterlogging observation records.
[0029] Step S106, using the pre-trained integrated waterlogging prediction model, the actual waterlogging monitoring results of the initial grid points corresponding to the target urban area are determined based on the waterlogging characteristic data.
[0030] Among them, the integrated model for waterlogging prediction includes multiple machine learning models. The dynamic variable weights of the machine learning models are related to the model training effect in the training phase. The model training effect can be reflected by the mean absolute error. The dynamic variable weights are used to fuse the real-time monitoring results of waterlogging output by multiple machine learning models. In one example, each machine learning model in the integrated model for waterlogging prediction outputs the real-time monitoring results of waterlogging based on the waterlogging feature data, and the dynamic variable weights are used to fuse the real-time monitoring results of waterlogging to obtain the initial grid point real-time monitoring results of waterlogging corresponding to the target urban area.
[0031] Step S108, generating waterlogging correction data based on the multi-source waterlogging data corresponding to the target urban area, and using the waterlogging correction data to replace the initial grid point waterlogging actual monitoring results corresponding to the grid point where it is located, to obtain the target grid point waterlogging actual monitoring results corresponding to the target urban area. The multi-source waterlogging data is obtained by crawling the network.
[0032] In one example, the multi-source waterlogging data corresponding to the target urban area are first crawled, and the multi-source waterlogging data are cleaned, key features of waterlogging information are extracted, time domain alignment is performed, the position is converted to longitude and latitude, and waterlogging is processed to obtain waterlogging correction data. The waterlogging correction data is then used to replace the actual waterlogging monitoring results of the initialization grid points corresponding to the corresponding grid points to obtain the actual waterlogging monitoring results of the target grid points.
[0033] The method for real-time monitoring of urban waterlogging provided in an embodiment of the present invention utilizes a waterlogging prediction integrated model to output the initial grid point waterlogging real-time monitoring results based on the waterlogging feature data corresponding to the target feature type, which can effectively mine the nonlinear dependency between precipitation and waterlogging depth. It also integrates multi-source waterlogging data to construct waterlogging correction data and correct the initial grid point waterlogging real-time monitoring results, thereby achieving real-time, accurate and rapid updating of grid point waterlogging real-time monitoring results and comprehensively improving the accuracy of the real-time waterlogging monitoring results.
[0034] For ease of understanding, an embodiment of the present invention provides a specific implementation of a method for real-time monitoring of urban waterlogging.
[0035] Before executing the aforementioned steps S102 to S108, it is necessary to pre-execute steps such as target feature type determination, integrated model training, and dynamic variable weight learning.
[0036] The embodiment of the present invention provides an implementation method for determining the target feature type, see the following steps 1A to 1D: Step 1A: Construct a basic historical waterlogging dataset corresponding to the target urban area.
[0037] Among them, the historical waterlogging basic data set is constructed based on one or more of the historical grid precipitation real-time data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data. The historical grid precipitation real-time data is used to determine the location of historical waterlogging points and waterlogging depth information, the historical precipitation site observation data and radar satellite data are used to determine historical meteorological elements, radar, satellite and other meteorological observation data, and the land use data and digital elevation data are used to determine refined terrain and land object information.
[0038] In practical applications, the location and depth information of historical waterlogging points are collected, and the terrain and landform information are refined, as well as the historical meteorological elements, radar, satellite and other meteorological observation data of the corresponding period, to establish meteorological elements and waterlogging depth data groups, and to construct the historical waterlogging basic data set; The historical waterlogging points collected are , and is the longitude and latitude of the point, and the corresponding water depth of the point is , the slope is , the slope direction is , the altitude is ,in Indicates Observation records of waterlogging.
[0039] For any waterlogging observation record, based on the historical grid precipitation data, the hourly meteorological elements of the location point in the past 1 hour, 2 hours, 3 hours, 4 hours, 5 hours, and 6 hours are extracted. The meteorological elements include but are not limited to accumulated precipitation, temperature, relative humidity, wind speed, wind direction, air pressure, etc., which are recorded as , , , , , ,in, , represents {precipitation, temperature, horizontal wind, vertical wind, air pressure}.
[0040] For any waterlogging observation record, the radar combined reflectivity and Feng-4B satellite multi-channel data of the location point in the past 15 minutes, 30 minutes, 45 minutes, and 60 minutes are extracted from the radar satellite data and recorded as , , , ,in Indicates radar and satellite.
[0041] Use the above collected data to establish a historical waterlogging basic data set ,in , see Figure 2 A schematic diagram of a historical waterlogging basic data set is shown, where each row represents a waterlogging observation record and each column represents a set of features.
[0042] The embodiment of the present invention utilizes high-precision and refined data such as historical grid precipitation real-time data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data to extract discriminant features related to waterlogging, effectively solving the shortcomings of position dependence and insufficient spatial resolution in existing perception-based equipment methods.
[0043] Step 1B, data cleaning of historical waterlogging basic data sets. In practical applications, data cleaning is performed on the collected historical waterlogging basic data sets to ensure data consistency and screen out key waterlogging observation records that have a significant impact on waterlogging. Data cleaning includes three states: repeated waterlogging records, abnormal waterlogging duration, and abnormal waterlogging values.
[0044] In one example, the specific steps for repeated recording of waterlogging are as follows: If there are multiple waterlogging observation records corresponding to the same site and the same time in the historical waterlogging basic data set, then when the values of the waterlogging observation records (referred to as waterlogging values) are equal, retain one waterlogging observation record; when the values of the waterlogging observation records are not equal, determine the minimum absolute value between the value of each waterlogging observation record and the values of the waterlogging observation records at the two adjacent moments before and after, and retain the waterlogging observation record corresponding to the smallest absolute minimum value.
[0045] In the specific implementation, for repeated records of accumulated water, that is, multiple accumulated water observation records at the same site and time, the following judgment is made: if the accumulated water values are equal, only one accumulated water observation record is retained; if the accumulated water values are not equal, each accumulated water value is considered The water accumulation values at the two adjacent moments and The smallest absolute value of the difference is taken, and the smallest absolute value of multiple waterlogging observation records is compared, and the waterlogging observation record with the smallest difference between the previous and subsequent waterlogging observation records is retained.
[0046] In one example, the specific steps for detecting abnormal duration of waterlogging are as follows: using the sequence mean mutation test algorithm, a duration mutation test is performed on the duration of waterlogging of each waterlogging observation record in the historical waterlogging basic data set to eliminate waterlogging observation records with abnormal duration of waterlogging; In the specific implementation, for abnormal waterlogging duration, statistics are made on the duration of each waterlogging process in all waterlogging observation stations, and various sequence mean mutation test methods such as sliding t-test, Yamamoto method, gradient method, etc. are used. At the same time, different sub-sample lengths are selected for duration mutation test to eliminate waterlogging observation records with abnormal waterlogging duration.
[0047] In one example, the specific steps for abnormal waterlogging values are as follows: if the value of the waterlogging observation record is greater than the prediction threshold within a preset time period, and the value of the waterlogging observation record does not fluctuate over time, the waterlogging observation record is discarded.
[0048] In specific implementation, for abnormal waterlogging values, when the waterlogging observation values remain high for a long time and do not fluctuate significantly over time, such waterlogging observation records will be eliminated.
[0049] Step 1C, extracting statistical characteristic data of meteorological element data and spatiotemporal characteristic data of waterlogging observation records from the historical waterlogging basic data set after data cleaning.
[0050] For any filtered waterlogging observation record, the corresponding meteorological elements and statistical characteristics of radar and satellite observations are calculated. The statistical characteristics include but are not limited to the maximum, minimum, variance, mean, quartile, etc., which are recorded as ,in , .
[0051] For any filtered waterlogging observation record, calculate its corresponding spatiotemporal characteristics, including but not limited to space, time, cycle, season, etc. The spatial characteristics represent the extraction of meteorological elements within a 3 km × 3 km range around the location point, and the temporal characteristics represent the extraction of the year, month, day, time, season, etc. of the waterlogging observation record, recorded as ,in , neighbor means extracting meteorological elements within a 3 km × 3 km range.
[0052] The embodiment of the present invention innovatively proposes feature engineering such as statistics, spatiotemporal features, etc. Feature engineering such as statistical feature data based on meteorological element data and spatiotemporal feature data of waterlogging observation records effectively avoids the shortcomings of the existing precipitation-waterlogging correlation modeling method, such as the consideration of key factors and the superficiality of feature engineering.
[0053] Step 1D: perform data augmentation processing on the historical waterlogging basic data set using statistical feature data and spatiotemporal feature data to obtain a target historical waterlogging basic data set, and perform importance analysis on the feature data contained in the target historical waterlogging basic data set to obtain a target feature type.
[0054] Taking precipitation meteorological elements as an example, the data augmentation diagram after feature engineering is as follows: Figure 3 , the other factors can be obtained similarly.
[0055] For the target historical waterlogging basic dataset after data augmentation, its importance analysis can be performed according to (1) to (3) as follows: (1) For the target historical waterlogging basic data set, determine the Pearson correlation coefficients between the feature data and the feature data contained therein, as well as the Pearson correlation coefficients between the feature data and the waterlogging depth, and determine the first candidate feature type based on the Pearson correlation coefficients.
[0056] In the specific implementation, for the target historical waterlogging basic data set constructed based on feature engineering, the Pearson correlation coefficient between feature data and feature data, and between feature data and waterlogging depth is calculated, and features with Pearson correlation coefficients greater than a preset threshold (that is, high correlation) are removed, and feature data highly correlated with the target are retained. The retained feature data is denoted as fr, and the feature type to which it belongs is taken as the first candidate feature type.
[0057] (2) For the target historical waterlogging basic dataset, the feature data contained in it is used as the input of the CatBoost model, and the waterlogging depth is used as the output of the CatBoost model. The CatBoost model is further trained, and the feature data is ranked by importance using the trained CatBoost model to determine the second candidate feature type.
[0058] In the specific implementation, for the feature data set constructed based on feature engineering, the feature data is used as input and the water accumulation depth is used as output to train the CatBoost model. The feature data is sorted by importance based on the trained CatBoost model, and the top c feature data with the highest importance are screened out, recorded as fc, and the feature type to which it belongs is used as the second alternative feature type.
[0059] (3) Take the intersection of the first candidate feature type and the second candidate feature type to obtain the target feature type. In the specific implementation, take the intersection of the two fr∩fc as the final feature data, and take the feature type to which it belongs as the target feature type.
[0060] The embodiment of the present invention extracts the statistical feature data of meteorological element data and the spatiotemporal feature data of the waterlogging observation records from the screened waterlogging observation records based on feature engineering, and determines the target feature types that contribute greatly to waterlogging prediction through importance analysis.
[0061] Furthermore, an embodiment of the present invention also provides an implementation method for integrated model training and dynamic variable weight learning, which utilizes multiple machine learning models, takes the feature data corresponding to the target feature type as the model input, and takes the corresponding water accumulation depth as the true value, establishes and trains the mapping function relationship between multi-factor features and water accumulation depth, and uses the FocalMSE error as the dynamic variable weight to establish an integrated model for water accumulation prediction.
[0062] For details, please refer to steps 2A to 2C below: In step 2A, the feature data corresponding to the target feature type is used as input, and the waterlogging depth is used as the true value to train the various machine learning models included in the integrated waterlogging prediction model.
[0063] In the specific implementation, the above feature data set is split into two parts, a training set and a validation set, in a ratio of 70% and 30%. Based on the above feature data and water accumulation depth in the training set, multiple groups of machine learning models are trained, including but not limited to tree models such as LightGBM, XGBoost, and CatBoost, convolution models such as MLP (Multilayer Perceptron), TCN (Temporal Convolutional Network), and deep nonlinear models such as Transformer. The trained machine learning models are denoted as F1, F2, F3, ..., Fn.
[0064] Step 2B, determining the mean absolute error of each machine learning model; wherein the mean absolute error is used to describe the training effect of the machine learning model.
[0065] In one example, the mean absolute error for each machine learning model can be determined as follows: ; in, For the The mean absolute error of the machine learning models, is the number of waterlogging observation records, is the depth of water accumulation, For the Real-time monitoring results of waterlogging output by a machine learning model.
[0066] Step 2C, determine the dynamic variable weight corresponding to each machine learning model based on the mean absolute error.
[0067] In one example, the dynamic variable weight of each machine learning model can be determined according to the following formula: ; in, For the Dynamically variable weights for machine learning models, , , is a parameter used to control the dynamically variable weight.
[0068] On the basis of the above-mentioned embodiment, the waterlogging prediction integrated model trained based on the historical waterlogging basic data set takes the grid observation basic data set at the current moment as input to form a refined waterlogging grid real-time map. Specifically, first collect the refined terrain and landform information of the target urban area, as well as the historical meteorological elements, radar, satellite and other meteorological observation data of the corresponding time period, and establish the grid observation basic data set according to step 1A; then construct the grid feature engineering according to steps 1B to 1D to extract the feature data corresponding to the target feature type, which involves the statistical feature data of the meteorological element data and the spatiotemporal feature data of the waterlogging observation record; finally, use the waterlogging prediction integrated model trained in steps 2A to 2C to traverse and calculate each grid point in the target urban area, and calculate the initial grid waterlogging real-time monitoring results based on the feature data corresponding to the target feature type. Among them, the initial grid waterlogging real-time monitoring results output by the waterlogging prediction integrated model are: ; in, is the actual monitoring result of water accumulation at the initial grid point, is the total number of machine learning models.
[0069] The embodiment of the present invention innovatively proposes dynamic variable weights for the fusion of multiple machine learning models, which can effectively explore the highly nonlinear dependency between precipitation and waterlogging.
[0070] Furthermore, the embodiment of the present invention also needs to generate waterlogging correction data based on the multi-source waterlogging data corresponding to the target urban area. In one embodiment, a multi-source data real-time acquisition and processing system is built to crawl the latest waterlogging related information (i.e., multi-source waterlogging data) from the network, extract key features such as the time and location of the waterlogging event through semantic understanding technology, and convert them into longitude and latitude positions to obtain waterlogging correction data in grid form.
[0071] For details, please refer to steps 3A to 3C below: Step 3A, crawling multi-source waterlogging data corresponding to the target urban area. In one example, the scrapy crawler framework can be used to crawl in real time the waterlogging location, waterlogging degree and time information posted by users on the social media platform. The above information is the multi-source waterlogging data.
[0072] Step 3B: semantically parse the multi-source waterlogging data to extract the key features of waterlogging events. In one example, the UIE (Universal Information Extraction) framework is used to implement unified modeling of tasks such as entity extraction, relationship extraction, event extraction, and sentiment analysis, and semantically parse the crawled multi-source waterlogging data to accurately extract the key features of waterlogging events.
[0073] Step 3C: perform time domain alignment processing, position conversion to longitude and latitude processing, and grid processing on the key features to obtain waterlogging correction data.
[0074] In one example, the key features are first aligned in the time domain, and the word embedding feature extraction of each record is calculated based on the pre-trained text feature extraction model. The key features are deduplicated and de-fake based on the word embedding features and similarity metrics. Then, the waterlogging location information in the key features is converted into longitude and latitude coordinates to obtain discrete waterlogging points through geocoding technology. Finally, the inverse distance weighted interpolation is used to convert the discrete waterlogging points into grid waterlogging, which is the waterlogging correction data.
[0075] Furthermore, the waterlogging correction data can be used to replace the actual monitoring results of waterlogging at the initial grid points corresponding to the grid points where the waterlogging correction data is located, so as to obtain the actual monitoring results of waterlogging at the target grid points.
[0076] The embodiment of the present invention integrates multi-source data, adopts web crawler technology, collects network waterlogging related information through social media platforms, and constructs waterlogging correction data based on this. It should correct the initial grid waterlogging actual monitoring results output by the integrated model, and can realize real-time, accurate and rapid updating of the actual waterlogging grid map.
[0077] The embodiments of the present invention provide Figure 4 The schematic diagram of the overall process of a method for real-time monitoring of urban waterlogging shown in the figure includes: data cleaning of the collected historical waterlogging related information, statistics, spatiotemporal feature extraction and feature importance selection based on the acquired grid point real-time data, for subsequent multi-model training, dynamic variable weight learning, model integration and other operations, and finally outputting the initial grid point waterlogging real-time monitoring results based on the grid point real-time data through the waterlogging prediction integration model; at the same time, the collected multi-source waterlogging data are subjected to data cleaning, waterlogging information key feature extraction, time domain alignment, location conversion to longitude and latitude, waterlogging and other operations, and the grid point waterlogging real-time map (that is, the aforementioned target grid point waterlogging real-time monitoring results) is obtained in combination with the initial grid point waterlogging real-time monitoring results.
[0078] For example, taking the monthly precipitation process in Tianjin in June 2023 as an example, the urban waterlogging real-time monitoring method provided in the above embodiment is used to monitor the waterlogging situation, and the following information is obtained: Figure 5 Another schematic diagram of actual monitoring results of waterlogging at target grid points is shown. The monitoring results in Tianjin area show that the method proposed in the embodiment of the present invention can effectively describe the waterlogging caused by the precipitation process.
[0079] In summary, in view of the impact of urban waterlogging on the public, the real-time monitoring of urban waterlogging proposed in the embodiment of the present invention has at least the following characteristics: (1) Using high-precision and refined data such as historical grid precipitation data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data, we extract discriminant features related to waterlogging, effectively solving the shortcomings of existing perception-based equipment methods, such as location dependence and insufficient spatial resolution; (2) Based on the statistical characteristics of meteorological element data and the spatiotemporal characteristics of waterlogging observation records, feature engineering effectively avoids the shortcomings of existing precipitation-waterlogging correlation modeling methods, such as the lack of consideration of key factors and superficial feature engineering; (3) Based on integrated machine learning technology, the mapping relationship between the above features and waterlogging depth is established, which can effectively explore the highly nonlinear dependency relationship between precipitation and waterlogging depth; (4) Integrate multi-source data and use web crawler technology to collect waterlogging-related information on the Internet through social media platforms, and use this to construct waterlogging correction data. The initial grid waterlogging monitoring results output by the integrated model should be corrected to achieve real-time, accurate and rapid updating of the grid waterlogging map.
[0080] Based on the above embodiments, the present invention provides a device for monitoring the real-time status of urban waterlogging. Figure 6 The structure diagram of a real-time monitoring device for urban waterlogging is shown in FIG. The device mainly includes the following parts: The data set construction module 602 is used to construct a grid observation basic data set corresponding to the target urban area; A feature extraction module 604 is used to extract waterlogging feature data from the grid observation basic data set according to the target feature type; The waterlogging real-time monitoring module 606 is used to determine the real-time waterlogging monitoring results of the initial grid points corresponding to the target urban area based on the waterlogging characteristic data through the pre-trained integrated waterlogging prediction model; wherein the integrated waterlogging prediction model includes multiple machine learning models, and the dynamic variable weights of the machine learning models are related to the model training effect in the training phase, and the dynamic variable weights are used to fuse the real-time waterlogging monitoring results output by the multiple machine learning models; The waterlogging correction module 608 is used to generate waterlogging correction data based on the multi-source waterlogging data corresponding to the target urban area, so as to replace the initial grid point waterlogging real-time monitoring results corresponding to the grid point where the waterlogging correction data is located, and obtain the target grid point waterlogging real-time monitoring results corresponding to the target urban area. The multi-source waterlogging data is obtained by crawling the network.
[0081] The device for monitoring urban waterlogging in real time provided by the embodiment of the present invention utilizes a waterlogging prediction integrated model to output the initial grid point waterlogging real-time monitoring results based on the waterlogging feature data corresponding to the target feature type, which can effectively mine the nonlinear dependency between precipitation and waterlogging depth, and also integrates multi-source waterlogging data to construct waterlogging correction data and correct the initial grid point waterlogging real-time monitoring results, thereby realizing real-time, accurate and rapid updating of grid point waterlogging real-time monitoring results and comprehensively improving the accuracy of waterlogging real-time monitoring results.
[0082] In one embodiment, the device further includes a type determination module for: Construct a historical waterlogging basic data set corresponding to the target urban area; wherein the historical waterlogging basic data set is constructed based on one or more of historical grid precipitation real-time data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data; Clean the historical waterlogging basic data set; Extract the statistical characteristic data of meteorological element data and the spatiotemporal characteristic data of waterlogging observation records from the historical waterlogging basic data set after data cleaning; The historical waterlogging basic data set is augmented using statistical feature data and spatiotemporal feature data to obtain the target historical waterlogging basic data set, and the feature data contained in the target historical waterlogging basic data set are analyzed for importance to obtain the target feature type.
[0083] In one implementation, the type determination module is specifically configured to: If there are multiple waterlogging observation records corresponding to the same station and the same time in the historical waterlogging basic data set, if the values of the waterlogging observation records are equal, one waterlogging observation record is retained; if the values of the waterlogging observation records are not equal, the minimum absolute value between the value of each waterlogging observation record and the values of the waterlogging observation records at the two adjacent moments before and after is determined, and the waterlogging observation record corresponding to the minimum absolute value is retained; Furthermore, using the sequence mean mutation test algorithm, the duration of waterlogging of each waterlogging observation record in the historical waterlogging basic data set is tested for duration mutation, so as to eliminate waterlogging observation records with abnormal duration of waterlogging; Furthermore, if the value of the waterlogging observation record is greater than the prediction threshold within a preset time period and the value of the waterlogging observation record does not fluctuate over time, the waterlogging observation record is discarded.
[0084] In one implementation, the type determination module is specifically configured to: For the target historical waterlogging basic data set, determine the Pearson correlation coefficients between the feature data and the feature data contained therein, and the Pearson correlation coefficients between the feature data and the waterlogging depth, and determine the first candidate feature type based on the Pearson correlation coefficients; And, for the target historical waterlogging basic data set, the feature data contained in the data set is used as the input of the CatBoost model, the waterlogging depth is used as the output of the CatBoost model, the CatBoost model is further trained, and the feature data is ranked by importance using the trained CatBoost model to determine the second candidate feature type; The intersection of the first candidate feature type and the second candidate feature type is taken to obtain the target feature type.
[0085] In one embodiment, a model training set weight determination module is further included, which is used to: Taking the feature data corresponding to the target feature type as input and the waterlogging depth as the true value, the various machine learning models included in the waterlogging prediction integrated model are trained; Determine the mean absolute error of each machine learning model, where the mean absolute error is used to describe the training effect of the machine learning model; The dynamic variable weight corresponding to each machine learning model is determined based on the mean absolute error.
[0086] In one implementation, the water accumulation correction module 608 is specifically used to: Crawl multi-source waterlogging data corresponding to the target urban area; Semantically analyze multi-source flooding data to extract key features of flooding events; The key features are aligned in the time domain, converted to longitude and latitude, and gridded to obtain the waterlogging correction data.
[0087] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0088] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.
[0089] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 70, a memory 71, a bus 72 and a communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected via the bus 72; the processor 70 is used to execute an executable module stored in the memory 71, such as a computer program.
[0090] The memory 71 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0091] The bus 72 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0092] Among them, the memory 71 is used to store programs, and the processor 70 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 70 or implemented by the processor 70.
[0093] The processor 70 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 70. The above processor 70 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the above method in combination with its hardware.
[0094] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.
[0095] 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 computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0096] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described 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-described embodiments within the technical scope disclosed by the present invention, 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 invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for real-time monitoring of urban waterlogging, characterized in that: include: Construct a basic grid observation dataset corresponding to the target urban area; Extracting waterlogging characteristic data from the grid observation basic data set according to the target characteristic type; The waterlogging prediction integrated model obtained through pre-training determines the actual waterlogging monitoring results of the initial grid points corresponding to the target urban area based on the waterlogging characteristic data; wherein the waterlogging prediction integrated model includes multiple machine learning models, the dynamic variable weights of the machine learning models are related to the model training effect, and the dynamic variable weights are used to fuse the actual waterlogging monitoring results output by the multiple machine learning models; Based on the multi-source waterlogging data corresponding to the target urban area, waterlogging correction data is generated, and the actual monitoring results of waterlogging at the initial grid points corresponding to the grid points are replaced with the waterlogging correction data to obtain the actual monitoring results of waterlogging at the target grid points corresponding to the target urban area. The multi-source waterlogging data are obtained by crawling the network.
2. The method for real-time monitoring of urban waterlogging according to claim 1, characterized in that: Before extracting the waterlogging feature data from the grid point observation basic data set according to the target feature type, the method further includes: Constructing a historical waterlogging basic data set corresponding to the target urban area; wherein the historical waterlogging basic data set is constructed based on one or more of historical grid precipitation real-time data, historical precipitation site observation data, radar satellite data, land use data, and digital elevation data; Performing data cleaning on the historical waterlogging basic data set; Extracting statistical characteristic data of meteorological element data and spatiotemporal characteristic data of waterlogging observation records from the historical waterlogging basic data set after the data cleaning; The historical waterlogging basic data set is augmented by using the statistical feature data and the spatiotemporal feature data to obtain a target historical waterlogging basic data set, and the feature data included in the target historical waterlogging basic data set is analyzed for importance to obtain a target feature type.
3. The method for real-time monitoring of urban waterlogging according to claim 2, characterized in that: The historical waterlogging basic data set is cleaned, including: If there are multiple waterlogging observation records corresponding to the same site and the same time in the historical waterlogging basic data set, then if the values of the waterlogging observation records are equal, retain one of the waterlogging observation records; if the values of the waterlogging observation records are not equal, determine the minimum absolute value between the value of each waterlogging observation record and the values of the waterlogging observation records at the two adjacent moments before and after, and retain the waterlogging observation record corresponding to the minimum absolute value; And, using a sequence mean mutation test algorithm, a duration mutation test is performed on the duration of waterlogging of each waterlogging observation record in the historical waterlogging basic data set to eliminate the waterlogging observation records with abnormal duration of waterlogging; Furthermore, if the value of the waterlogging observation record is greater than the prediction threshold within a preset time period and the value of the waterlogging observation record does not fluctuate over time, the waterlogging observation record is discarded.
4. The method for real-time monitoring of urban waterlogging according to claim 2, characterized in that: The characteristic data contained in the target historical waterlogging basic data set is analyzed for importance to obtain the target characteristic types, including: For the target historical waterlogging basic data set, determine the Pearson correlation coefficients between the feature data and the feature data contained therein, and the Pearson correlation coefficients between the feature data and the waterlogging depth, and determine the first candidate feature type based on the Pearson correlation coefficients; And, for the target historical waterlogging basic data set, using the feature data contained therein as input of a CatBoost model and using the waterlogging depth as output of the CatBoost model, continuing to train the CatBoost model, and using the trained CatBoost model to sort the feature data by importance to determine a second candidate feature type; An intersection of the first candidate feature type and the second candidate feature type is taken to obtain a target feature type.
5. The method for real-time monitoring of urban waterlogging according to claim 2, characterized in that: Before determining the initial grid point waterlogging actual monitoring results corresponding to the target urban area based on the waterlogging characteristic data using the pre-trained integrated waterlogging prediction model, the method further includes: Taking the feature data corresponding to the target feature type as input and the waterlogging depth as the true value, training the multiple machine learning models included in the waterlogging prediction integrated model; Determine the mean absolute error of each of the machine learning models; wherein the mean absolute error is used to describe the training effect of the machine learning model; The dynamic variable weight corresponding to each of the machine learning models is determined according to the mean absolute error.
6. The method for real-time monitoring of urban waterlogging according to claim 1, characterized in that: Generating waterlogging correction data based on multi-source waterlogging data corresponding to the target urban area, including: Crawling multi-source waterlogging data corresponding to the target urban area; Performing semantic analysis on the multi-source waterlogging data to extract key features of waterlogging events; The key features are subjected to time domain alignment processing, position conversion to longitude and latitude processing, and grid processing to obtain waterlogging correction data.
7. A real-time monitoring device for urban waterlogging, characterized in that: include: The dataset construction module is used to construct the grid observation basic dataset corresponding to the target urban area; A feature extraction module, used to extract waterlogging feature data from the grid observation basic data set according to the target feature type; A waterlogging real-time monitoring module, which is used to determine the real-time waterlogging monitoring results of the initial grid points corresponding to the target urban area based on the waterlogging characteristic data through the pre-trained integrated waterlogging prediction model; wherein the integrated waterlogging prediction model includes a plurality of machine learning models, the dynamic variable weights of the machine learning models are related to the model training effect, and the dynamic variable weights are used to fuse the real-time waterlogging monitoring results output by the plurality of machine learning models; A waterlogging correction module is used to generate waterlogging correction data based on the multi-source waterlogging data corresponding to the target urban area, so as to replace the initial grid point waterlogging real-time monitoring results corresponding to the grid point where the waterlogging correction data is located, so as to obtain the target grid point waterlogging real-time monitoring results corresponding to the target urban area, wherein the multi-source waterlogging data is obtained by crawling the network.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Equipment fault monitoring system and monitoring method
CN108803552A
Multi-numerical-mode integrated forecasting method and device
CN113011106A
Multi-source data and deep learning combined urban inland inundation prediction method and application thereof
CN115563540A
Model training method and device, waterlogging prediction method and device and electronic equipment
CN115879007A
Urban traffic evaluation method and device based on spatial overlay analysis
CN116739385A
