A method for geological hazard assessment based on machine learning
Through the geological hazard risk assessment method based on machine learning, using a variety of geological hazard evaluation factors and multiple algorithms, the problem of low accuracy of geological hazard modeling prediction in the existing technology has been solved, and a higher accuracy of geological hazards has been achieved. Risk assessment and more intuitive prediction results.
Patent Information
- Application Number
- CN202210640911.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The accuracy of geological hazard modeling and prediction in the existing technology is low, resulting in unsatisfactory geological hazard risk assessment results.
A geological hazard risk assessment method based on machine learning is adopted. By selecting a variety of geological hazard risk assessment factors, data preprocessing and sample set construction are performed, using random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting. Tree and other algorithms are used to build a model, and the model with the highest comprehensive index is selected for prediction based on a variety of evaluation indicators, and a success rate curve is drawn to divide the danger zone.
It improves the accuracy and precision of geological disaster risk assessment, makes the prediction results more intuitive, and makes the division of extremely high-risk areas, high-risk areas, and medium-risk areas more accurate.
Smart Images

Figure CN115439287B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of geological disaster assessment, and in particular to a geological disaster risk assessment method based on machine learning. Background Art
[0002] Geological disasters refer to geological actions or phenomena formed under the influence of natural or human factors, which cause losses to human life and property and damage to the environment. The distribution and change patterns of geological disasters in time and space are both subject to the natural environment and related to human activities. They are often the result of the interaction between humans and nature.
[0003] Geological disaster prediction is the process by which professionals understand and, based on historical geological disaster activity patterns, formation conditions, occurrence mechanisms, and disaster-stricken area disaster-bearing capacity, use logical reasoning, numerical simulation, and comprehensive analysis to infer and assess the development and changes of geological disasters in a certain period in the future, as well as their possible danger and degree of damage and loss. Currently, there is a technology that uses machine learning modeling to predict the risk of geological disasters, but due to improper selection of models and handling of basic data, the prediction results are not ideal. Summary of the invention
[0004] To this end, the present invention provides a geological hazard risk assessment method based on machine learning to overcome the problem of low accuracy in geological hazard modeling and prediction in the prior art.
[0005] To achieve the above purpose, the present invention provides a geological hazard risk assessment method based on machine learning, comprising:
[0006] Step S1, selecting and obtaining geological hazard risk assessment factors for the area to be assessed, wherein the selected geological hazard risk assessment factors include elevation, slope, slope aspect, curvature, engineering geological rock formation, distance to fault, distance to river, normalized difference vegetation index, land use type, distance to rural settlement, distance to road network, and rainfall;
[0007] Step S2, preprocessing the data of geological disaster risk assessment factors of the area to be assessed, and obtaining the elevation map, slope map, aspect map, curvature map, engineering geological zoning map, distance map from faults, distance map from river network, normalized vegetation index map, land use type map, distance map from rural settlements, distance map from road network and annual average rainfall map of the area to be assessed;
[0008] Step S3, selecting various geological disaster points in the historical data of the area to be evaluated as positive samples, determining the sample space scale, performing statistical analysis on the spatial distribution characteristics of the positive samples, selecting a buffer radius and determining the buffer zone, randomly selecting several points outside the buffer zone as negative samples, constructing a sample set with negative samples and positive samples, constructing a sample feature matrix with the data of various geological disaster risk assessment factors as features, dividing the area to be evaluated into grids and determining the number of grids, and determining the amount of data to be judged according to the number of grids and the number of constructed sample feature matrices;
[0009] Step S4, dividing the sample set into a training set and a test set, selecting five algorithms including random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree for modeling, training the model with samples in the training set, and evaluating the performance of the model with samples in the test set, selecting a prediction model based on the evaluation index of the performance of each model established according to the above five algorithms, and ranking the features of the trained prediction model by importance;
[0010] Step S5, use the trained prediction model to predict each grid divided into the evaluation area, obtain the prediction result in the form of probability, divide the prediction probability into zones, draw the success rate curve with the predicted area as the horizontal coordinate and the predicted success rate as the vertical coordinate, divide the prediction result into extremely high risk area, high risk area, medium risk area and low risk area according to the slope of the success rate curve, and complete the evaluation.
[0011] Furthermore, in step S2, the elevation, slope, aspect and curvature in the geological hazard risk assessment factors are processed by DEM data to obtain an elevation map, a slope map, an aspect map and a curvature map; the engineering geological rock group map of the area to be evaluated is vectorized to obtain the distribution range of various engineering geological rock groups, and form an engineering geological zoning map; the basic geological map of the area to be evaluated is vectorized, and the influence of the fault is quantitatively characterized to form a distance map from the fault; the river network distribution in the area to be evaluated is vectorized, and the influence of the river network is quantitatively characterized to form a distance map from the river network. Distance map; process the MODIS remote sensing images of the area to be evaluated to obtain the normalized vegetation index map, which is used to quantitatively characterize the degree of vegetation coverage; extract attributes from the land use type map to be evaluated, obtain rural residential spots, and use them to make a distance map from rural residential spots; vectorize the road network layout map of the area to be evaluated, and draw a distance map from the road network based on the quantitative characterization of the distance between the road network and the geological disaster points; obtain the annual rainfall data of the area to be evaluated at multiple meteorological stations, and obtain the annual average rainfall map of the area to be evaluated through interpolation analysis.
[0012] Furthermore, in step S3, each positive sample point is marked as a1, a2, a3, a4…an, where n is the number of positive samples, and the distance Lx between any two positive sample points ai and ar is statistically calculated, where i=1, 2, 3…n, r=1, 2, 3…n, i≠r, and then the percentage of each positive sample point ai and ar at the distance Lx in the total number of positive samples is calculated, and a cumulative curve of the distance probability of adjacent geological disaster points is drawn according to the distance between the two positive sample points and the positive sample percentage.
[0013] Furthermore, after setting the probability cumulative curve of the distance between adjacent geological disaster points, the maximum distance Lz between any two positive sample points is determined, and the probability cumulative curve is segmented according to the maximum distance Lz. The distance interval of the first segment is 0~Lz×(1 / 10), the distance interval of the second segment is Lz×(1 / 10)~Lz×(2 / 10), the distance interval of the third segment is Lz×(2 / 10)~Lz×(3 / 10)…The distance interval of the tenth segment is Lz×(9 / 10)~Lz, and the cumulative probabilities K1, K2, K3…K10 in each segment are calculated, and the interval for selecting the buffer radius is determined according to the cumulative probabilities in each segment.
[0014] Furthermore, after calculating the cumulative probability in each segment, set the maximum probability change ratio Qz, calculate the cumulative probability ratio Q1 of the second segment to the first segment, Q1=K2 / K1, calculate the cumulative probability ratio Q2 of the third segment to the second segment, Q1=K3 / K2, until the cumulative probability ratio Q9 of the tenth segment to the ninth segment is calculated, Q1=K10 / K9, and then compare the calculated cumulative probability ratios Qf with the maximum probability change ratio Qz, where f=1, 2, 3…9,
[0015] When Qf>Qz, it is determined that the f+1th segment does not meet the buffer radius selection interval;
[0016] When Qf≤Qz, the f+1th segment is determined to be in compliance with the buffer radius selection interval, and will be determined based on the segments that meet the buffer radius selection interval.
[0017] Further, after determining the cumulative probability ratio and the maximum probability change ratio, the number of segments X that meet the buffer radius selection interval is determined, and the number of segments X that meet the buffer radius selection interval is determined.
[0018] When X=0, it is determined that there is no interval that meets the buffer radius selection requirement in the second to tenth sections, and the first section is used as the buffer radius selection interval;
[0019] When 1≤X<9, it is determined that there are multiple segmented intervals that meet the interval selected by the buffer radius, and the interval with the largest distance among the intervals that meet the buffer radius selection interval is determined as the buffer radius selection interval;
[0020] When X=9, it is determined that the second to tenth sections are all in accordance with the interval for selecting the buffer radius, and the buffer radius is directly selected as Lz.
[0021] Furthermore, after determining that the segmentation of the buffer radius selection interval is completed, the cumulative maximum probability Ka selected in the buffer zone is set, and the cumulative probability Ks corresponding to each distance in the selected segment is compared with the cumulative maximum probability Ka. When there is a point where Ks=Ka in the selected segment, the distance corresponding to Ks is used as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is less than the cumulative maximum probability Ka, the maximum distance in the segment is selected as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is greater than the cumulative maximum probability Ka, the minimum distance in the segment is selected as the selected buffer radius.
[0022] Furthermore, in step S3, when constructing a sample feature matrix using the geological hazard assessment factor data of each region as features, the two types of features, engineering geological rock formations and land use types in the geological hazard assessment factor data are nominal variables, and the two types of features, engineering geological rock formations and land use types, are recompiled using OneHot coding, wherein the land use type is encoded as an 18-dimensional sparse matrix and the engineering geological rock formation is encoded as an 8-dimensional sparse matrix.
[0023] Furthermore, in step S4, 70% of the samples in the sample set are randomly selected as the training set, and 30% of the samples are selected as the test set. Five algorithms, namely, random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree, are selected for modeling. The models established by the above five algorithms are evaluated by five evaluation indicators, namely, AUC, accuracy, F1 value, precision, and recall rate, to obtain evaluation indexes. The AUC indicator is used as the first evaluation indicator, and the model with the highest AUC value is selected as the prediction model. If there are two or more models with equal AUC values in each model, and the AUC value is the highest value, the model with the highest accuracy value is selected. The model is used as a prediction model. If there are two or more models with equal accuracy values among the models with equal AUC values, and the accuracy value is the highest, the model with the highest F1 value is selected as the prediction model. Similarly, the evaluation order of the above five evaluation indicators is AUC, accuracy, F1 value, precision, and recall. After the prediction model is selected, the importance of each geological hazard risk assessment factor is ranked. The importance is ranked from high to low, namely rainfall, distance from rural residential areas, land use type, elevation, engineering geological rock group, distance from road network, normalized vegetation index, distance from faults, slope, curvature, distance from rivers, and slope direction.
[0024] Further, in the step S5, prediction is performed on each grid divided into the area to be evaluated by the prediction model to obtain a geological disaster risk probability map of the area to be evaluated; the cumulative proportion of the occupied area is used as the horizontal coordinate and the cumulative proportion of the prediction success rate is used as the vertical coordinate to formulate a success rate curve, set a preset first slope K1, a preset second slope K2, and a preset third slope K3, wherein K1>K2>K3, and calculate the slope K of any point of the success rate curve, and compare the slope K of any point of the success rate curve with the preset first slope K1, the preset second slope K2, and the preset third slope K3,
[0025] When K ≥ K1, the corresponding part of the success rate curve is divided into an extremely high risk area;
[0026] When K1>K≥K2, the corresponding part of the success rate curve is divided into a high-risk area;
[0027] When K2>K≥K3, the corresponding part of the success rate curve is divided into the medium risk area;
[0028] When K<K3, the corresponding part of the success rate curve is divided into a low-risk area;
[0029] After all the areas to be evaluated are divided, a geological hazard zoning map of the areas to be evaluated is formed and the evaluation is completed.
[0030] Compared with the prior art, the beneficial effect of the present invention lies in that, by obtaining various types of geological hazard risk assessment factors of the area to be evaluated and preprocessing the data of various geological hazard risk assessment factors, various data images of the area to be evaluated are obtained as basic data, and then various geological hazard points in the historical data of the area to be evaluated are used as positive samples, statistical analysis is performed according to the spatial distribution characteristics of the positive samples, and an appropriate buffer radius is selected to ensure the sampling space range of the negative samples selected outside the buffer zone, while not affecting the representativeness of the positive samples, the representativeness of the negative samples is maximized, and a variety of algorithms are used to construct models, and multiple models are evaluated according to a variety of evaluation indicators, and the model with the highest evaluation comprehensive index is selected as the prediction model, thereby improving the accuracy of the prediction model, and drawing a success rate curve at the same time. According to the success rate curve, the prediction results are divided into extremely high risk areas, high risk areas, medium risk areas and low risk areas, so that the predicted geological hazard risk of the area to be evaluated can be more intuitively displayed on the basis of high accuracy, thereby improving the accuracy and precision of the geological hazard risk assessment.
[0031] Furthermore, elevation maps, slope maps, aspect maps and curvature maps are obtained through DEM data processing. Distance maps to faults, river networks, rural settlements and road networks are obtained through distance analysis. Each geological hazard risk assessment factor is processed separately to ensure the data accuracy of each geological hazard risk assessment factor, thereby ensuring the accuracy of geological hazard risk prediction.
[0032] Furthermore, each geological disaster point in the historical data of the selected area to be evaluated is taken as a positive sample, each positive sample point is marked, and the relative distance between any two positive sample points in each positive sample point is calculated. The percentage of the sample points is calculated based on the calculated relative distance, and a probability cumulative curve of the distance between adjacent geological disaster points is set. The spatial distribution of each geological disaster point in the evaluation area is reflected by the curve, thereby improving the accuracy of the geological disaster risk in the area to be evaluated.
[0033] Furthermore, when setting the cumulative probability curve of the distance between adjacent geological disaster points, the spatial distribution of various geological disaster points in the evaluation area is reflected by the curve, the maximum relative distance between each sample point is determined, and the cumulative probability curve of the distance between adjacent geological disaster points is segmented by dividing the maximum relative distance. The interval for selecting the buffer radius is determined according to the cumulative probability of the segment in each segment, which ensures that the selection of the buffer radius can be adjusted according to the changes in the spatial distribution of the geological disaster points in the area to be evaluated, thereby further improving the accuracy of the prediction basic data.
[0034] Furthermore, by setting the maximum proportion of probability change, each segment of the probability cumulative curve is screened, and by using the cumulative probability of the previous segment and the cumulative probability of the current segment for proportional operation, the cumulative change of the probability of the current segment is specifically reflected to ensure the accuracy of the buffer radius selection interval, while also enabling the normal completion of the geological hazard prediction.
[0035] Furthermore, when judging the number of segments that meet the buffer radius selection interval, when all segments of the cumulative probability curve meet the buffer radius selection interval standards, it means that the geological hazard points in the evaluated area are relatively concentrated, and the maximum relative distance is selected as the buffer radius, which further highlights the representative characteristics of the geological hazard points in the positive sample and ensures the objectivity of the prediction results.
[0036] Furthermore, after the segmentation of the buffer radius selection interval is determined, the buffer radius is determined within the segmentation of the selection interval by setting the cumulative maximum probability of buffer zone selection, thereby ensuring the rationality of the selected buffer radius and the selection space of negative sample points selected outside the buffer radius. By ensuring the selection range of negative sample points, the impact on the representativeness of negative sample features is reduced.
[0037] Furthermore, in the constructed feature matrix, the two types of features, engineering geological rock formations and land use types, are nominal variables, that is, the numerical values only represent the difference in their categories, but there is no quantitative relationship. Therefore, feature engineering is required to convert them into nominal variables and recompile the above two types of features using OneHot encoding. Considering the versatility of the prediction model, the data is not further standardized or normalized. By using SMOTE, the number of positive and negative samples is balanced when the number of negative samples is much larger than the number of positive samples.
[0038] Furthermore, five algorithms, including random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree, were selected for modeling. Each model was evaluated according to five indicators, including AUC, accuracy, precision, recall rate, and F1 value, to obtain the evaluation index. The model with the highest comprehensive evaluation index was selected as the prediction model, which improved the accuracy of the prediction model.
[0039] Furthermore, a success rate curve is formulated with the cumulative proportion of the occupied area as the horizontal axis and the cumulative proportion of the predicted success rate as the vertical axis, which can intuitively reflect the geological hazard risk of each location in the area to be detected. At the same time, by setting a preset first slope, a preset second slope, and a preset third slope, the geological hazard risk of the area to be evaluated is divided into extremely high risk areas, high risk areas, medium risk areas, and low risk areas, so that the predicted geological hazard risk of the area to be evaluated can more intuitively display the prediction results on the basis of high precision, thereby improving the accuracy of geological hazard risk assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of the geological disaster risk assessment method based on machine learning according to the present invention;
[0041] Figure 2 This is an elevation map of the Mianluening area in this embodiment;
[0042] Figure 3 This is the slope map of the Mianluening area in this embodiment;
[0043] Figure 4 This is the curvature map of the Mianluening area in this embodiment;
[0044] Figure 5 This is the slope aspect map of the Mianluening area in this embodiment;
[0045] Figure 6 The engineering geological zoning map of the Mianluening area in this embodiment;
[0046] Figure 7 This is a distance map from the fault in the Mianluening area in this embodiment;
[0047] Figure 8This is a distance map from the river network in the Mianluening area in this embodiment;
[0048] Fig. 9 The normalized vegetation index map of the Mianluening area in this embodiment;
[0049] Fig.10 This is a land use type map of the Mianluening area in this embodiment;
[0050] Fig.11 This is a distance map from the rural residential area in the Mianluening area in this embodiment;
[0051] Fig.12 The distance map of the Mianluening area from the road network in this embodiment;
[0052] Fig.13 This is the average annual rainfall map for the Mianluening area in this embodiment;
[0053] Fig.14 This is a cumulative curve diagram of the probability of distances between adjacent geological disaster points in the Mianluening area in this embodiment;
[0054] Fig.15 This is the negative sample distribution map of the Mianluening area in this embodiment;
[0055] Fig.16 Graphs of evaluation indexes of various prediction models in the Mianluening area in this embodiment;
[0056] Fig.17 This is the AUC evaluation index diagram of each prediction model in the Mianluening area in this embodiment;
[0057] Fig.18 The geological disaster risk probability map of the Mianluening area in this embodiment;
[0058] Fig.19 This is the geological disaster risk zoning map of the Mianluening area in this embodiment. DETAILED DESCRIPTION
[0059] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0060] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0061] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0062] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0063] See also Figure 1 As shown, it is a flow chart of the geological disaster risk assessment method based on machine learning according to the present invention. The present invention discloses a geological disaster risk assessment method based on machine learning, including:
[0064] Step S1, selecting and obtaining geological hazard risk assessment factors for the area to be assessed, wherein the selected geological hazard risk assessment factors include elevation, slope, slope aspect, curvature, engineering geological rock formation, distance to fault, distance to river, normalized difference vegetation index, land use type, distance to rural settlement, distance to road network, and rainfall;
[0065] Step S2, preprocessing the data of geological disaster risk assessment factors of the area to be assessed, and obtaining the elevation map, slope map, aspect map, curvature map, engineering geological zoning map, distance map from faults, distance map from river network, normalized vegetation index map, land use type map, distance map from rural settlements, distance map from road network and annual average rainfall map of the area to be assessed;
[0066] Step S3, selecting various geological disaster points in the historical data of the area to be evaluated as positive samples, determining the sample space scale, performing statistical analysis on the spatial distribution characteristics of the positive samples, selecting a buffer radius and determining the buffer zone, randomly selecting several points outside the buffer zone as negative samples, constructing a sample set with negative samples and positive samples, constructing a sample feature matrix with the data of various geological disaster risk assessment factors as features, dividing the area to be evaluated into grids and determining the number of grids, and determining the amount of data to be judged according to the number of grids and the number of constructed sample feature matrices;
[0067] Step S4, dividing the sample set into a training set and a test set, selecting five algorithms including random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree for modeling, training the model with samples in the training set, and evaluating the performance of the model with samples in the test set, selecting a prediction model based on the evaluation index of the performance of each model established according to the above five algorithms, and ranking the features of the trained prediction model by importance;
[0068] Step S5, use the trained prediction model to predict each grid divided into the evaluation area, obtain the prediction result in the form of probability, divide the prediction probability into zones, draw the success rate curve with the predicted area as the horizontal coordinate and the predicted success rate as the vertical coordinate, divide the prediction result into extremely high risk area, high risk area, medium risk area and low risk area according to the slope of the success rate curve, and complete the evaluation.
[0069] By obtaining various types of geological hazard risk assessment factors in the area to be evaluated and preprocessing the data of various geological hazard risk assessment factors, various data images of the area to be evaluated are obtained as basic data, and then various geological hazard points in the historical data of the area to be evaluated are used as positive samples. According to the spatial distribution characteristics of the positive samples, statistical analysis is performed, and an appropriate buffer radius is selected to ensure the sampling space range of the negative samples selected outside the buffer zone. Without affecting the representativeness of the positive samples, the representativeness of the positive samples and the negative samples is maximized. At the same time, a variety of algorithms are used to construct models, and multiple models are evaluated according to a variety of evaluation indicators. The model with the highest comprehensive evaluation index is selected as the prediction model, which improves the accuracy of the prediction model. At the same time, a success rate curve is formulated, and the prediction results are divided into extremely high risk areas, high risk areas, medium risk areas and low risk areas according to the success rate curve, so that the predicted geological hazard risk of the area to be evaluated can be more intuitively displayed on the basis of high accuracy, thereby improving the accuracy of geological hazard risk assessment.
[0070] In this embodiment, the area to be evaluated is the Mianluening area.
[0071] See also Figures 2 to 13 As shown, Figure 2 This is an elevation map of the Mianluening area in this embodiment;
[0072] Figure 3 This is the slope map of the Mianluening area in this embodiment; Figure 4 This is the curvature map of the Mianluening area in this embodiment;
[0073] Figure 5 This is the slope aspect map of the Mianluening area in this embodiment; Figure 6 The engineering geological zoning map of the Mianluening area in this embodiment; Figure 7 This is a distance map from the fault in the Mianluening area in this embodiment; Figure 8This is a distance map from the river network in the Mianluening area in this embodiment; Fig. 9 The normalized vegetation index map of the Mianluening area in this embodiment; Fig.10 This is a land use type map of the Mianluening area in this embodiment; Fig.11 This is a distance map from the rural residential area in the Mianluening area in this embodiment; Fig.12 The distance map of the Mianluening area from the road network in this embodiment;
[0074] Fig.13 This is the average annual rainfall map for the Mianluening area in this embodiment;
[0075] Specifically, in step S2, the elevation, slope, aspect and curvature of the geological hazard risk assessment factors are processed by DEM data to obtain an elevation map, a slope map, an aspect map and a curvature map; the engineering geological rock group map of the area to be evaluated is vectorized to obtain the distribution range of various engineering geological rock groups, and form an engineering geological zoning map; the basic geological map of the area to be evaluated is vectorized, and the influence of the fault is quantitatively characterized to form a distance map from the fault; the river network distribution in the area to be evaluated is vectorized, and the influence of the river network is quantitatively characterized to form a distance map from the river network; the MODIS remote sensing image of the area to be evaluated is processed to obtain a normalized vegetation index map, which is used to quantitatively characterize the coverage of vegetation; the land use type map to be evaluated is attribute extracted to obtain rural residential spots, and a distance map from rural residential spots is prepared based on this; the road network distribution map of the area to be evaluated is vectorized, and a distance map from the road network is drawn based on the quantitative characterization of the distance between the road network and the geological disaster point; the annual rainfall data of the area to be evaluated at multiple meteorological stations is obtained, and the annual average rainfall map of the area to be evaluated is obtained through interpolation analysis.
[0076] By processing DEM data, we obtain elevation maps, slope maps, aspect maps and curvature maps. By performing distance analysis, we obtain distance maps to faults, distance maps to river networks, distance maps to rural settlements, and distance maps to road networks. The geological hazard risk assessment factors of each location are processed separately to ensure the data accuracy of the geological hazard risk assessment factors, thereby ensuring the accuracy of the geological hazard risk prediction.
[0077] Please continue reading Fig.14 As shown, it is a cumulative curve diagram of the probability of the distance between adjacent geological disaster points according to the present invention.
[0078] In this embodiment, the number of positive samples selected is 223, and the maximum distance between any two adjacent disaster points is 9917.17 m. For the convenience of calculation, let Lx = 10000 m.
[0079] Specifically, in step S3, each positive sample point is marked as a1, a2, a3, a4...an, where n is the number of positive samples, and the distance Lx between any two positive sample points ai and ar is statistically calculated, where i=1, 2, 3...n, r=1, 2, 3...n, i≠r, and then the percentage of each positive sample point ai and ar at the distance Lx in the total number of positive samples is calculated, and a cumulative curve of the distance probability of adjacent geological disaster points is drawn according to the distance between the two positive sample points and the positive sample percentage.
[0080] The geological disaster points in the historical data of the Mianluening area were selected as positive samples, each positive sample point was marked, and the relative distance between any two positive sample points in each positive sample point was calculated. The percentage of the sample points was calculated based on the calculated relative distance, and a probability cumulative curve of the distance between adjacent geological disaster points was set. The spatial distribution of the geological disaster points in the evaluation area was reflected through the curve, which improved the accuracy of the geological disaster risk in the Mianluening area.
[0081] In this example, the selected buffer radius is 5000m, and there is a 94% probability that there will be adjacent geological disaster points within the buffer zone.
[0082] Specifically, after setting the probability cumulative curve of the distance between adjacent geological disaster points, the maximum distance Lz between any two positive sample points is determined, and the probability cumulative curve is segmented according to the maximum distance Lz. The distance interval of the first segment is 0~Lz×(1 / 10), the distance interval of the second segment is Lz×(1 / 10)~Lz×(2 / 10), the distance interval of the third segment is Lz×(2 / 10)~Lz×(3 / 10)…The distance interval of the tenth segment is Lz×(9 / 10)~Lz, and the cumulative probabilities K1, K2, K3…K10 in each segment are calculated, and the interval for selecting the buffer radius is determined according to the cumulative probabilities in each segment.
[0083] When setting the cumulative probability curve of the distance between adjacent geological disaster points, the spatial distribution of various geological disaster points in the evaluation area is reflected by the curve, the maximum relative distance between each sample point is determined, and the cumulative probability curve of the distance between adjacent geological disaster points is segmented by dividing the maximum relative distance. The interval for selecting the buffer radius is determined according to the cumulative probability of the segment in each segment, which ensures that the selection of the buffer radius can be adjusted according to the changes in the spatial distribution of geological disaster points in the Mianluening area, further improving the accuracy of the basic prediction data.
[0084] Specifically, after calculating the cumulative probability in each segment, set the maximum probability change ratio Qz, calculate the cumulative probability ratio Q1 of the second segment to the first segment, Q1=K2 / K1, calculate the cumulative probability ratio Q2 of the third segment to the second segment, Q1=K3 / K2, until the cumulative probability ratio Q9 of the tenth segment to the ninth segment is calculated, Q1=K10 / K9, and then compare the calculated cumulative probability ratios Qf with the maximum probability change ratio Qz, where f=1, 2, 3…9,
[0085] When Qf>Qz, it is determined that the f+1th segment does not meet the buffer radius selection interval;
[0086] When Qf≤Qz, the f+1th segment is determined to be in compliance with the buffer radius selection interval, and will be determined based on the segments that meet the buffer radius selection interval.
[0087] By setting the maximum proportion of probability change, each segment of the probability cumulative curve is screened, and by using the cumulative probability of the previous segment and the cumulative probability of the current segment for proportional operation, the cumulative change of the probability of the current segment is specifically reflected to ensure the accuracy of the buffer radius selection interval, while also enabling the normal completion of geological hazard prediction.
[0088] Specifically, after determining the cumulative probability ratio and the maximum probability change ratio, the number of segments X that meet the buffer radius selection interval is determined, and the number of segments X that meet the buffer radius selection interval is determined.
[0089] When X=0, it is determined that there is no interval that meets the buffer radius selection requirement in the second to tenth sections, and the first section is used as the buffer radius selection interval;
[0090] When 1≤X<9, it is determined that there are multiple segmented intervals that meet the interval selected by the buffer radius, and the interval with the largest distance among the intervals that meet the buffer radius selection interval is determined as the buffer radius selection interval;
[0091] When X=9, it is determined that the second to tenth sections are all in accordance with the interval for selecting the buffer radius, and the buffer radius is directly selected as Lz.
[0092] When determining the number of segments that meet the buffer radius selection interval, if all segments of the determined cumulative probability curve meet the buffer radius selection interval criteria, it indicates that the geological hazard points in the Mianluening area are relatively concentrated, and the maximum relative distance is selected as the buffer radius, which further highlights the representative characteristics of the geological hazard points in the positive sample and ensures the objectivity of the prediction results.
[0093] Specifically, after determining that the segmentation of the buffer radius selection interval is completed, the cumulative maximum probability Ka of the buffer zone selection is set, and the cumulative probability Ks corresponding to each distance in the selected segment is compared with the cumulative maximum probability Ka. When there is a point where Ks=Ka in the selected segment, the distance corresponding to Ks is used as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is less than the cumulative maximum probability Ka, the maximum distance in the segment is selected as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is greater than the cumulative maximum probability Ka, the minimum distance in the segment is selected as the selected buffer radius.
[0094] After the segmentation of the buffer radius selection interval is determined, the buffer radius is determined within the segmentation of the selection interval by setting the cumulative maximum probability of buffer zone selection, thereby ensuring the rationality of the selected buffer radius and the selection space of negative sample points selected outside the buffer radius. By ensuring the selection range of negative sample points, the impact on the representativeness of negative sample features is reduced.
[0095] Specifically, in step S3, when constructing a sample feature matrix using the geological hazard assessment factor data of each region as features, the two types of features, engineering geological rock formations and land use types in the geological hazard assessment factor data are nominal variables, and the two types of features, engineering geological rock formations and land use types, are recompiled using OneHot coding, wherein the land use type is encoded as an 18-dimensional sparse matrix and the engineering geological rock formation is encoded as an 8-dimensional sparse matrix.
[0096] In the constructed feature matrix, the two types of features, engineering geological rock formations and land use types, are nominal variables, that is, the numerical values only represent the difference in their categories, but there is no quantitative relationship. Therefore, feature engineering is required to convert them into nominal variables and recompile the above two types of features using OneHot encoding. Considering the versatility of the prediction model, the data is not further standardized or normalized. By using SMOTE, the number of positive and negative samples is balanced when the number of negative samples is much larger than the number of positive samples.
[0097] Please continue reading Fig.16 and Fig.17 As shown, Fig.16 Graphs of evaluation indexes of various prediction models in the Mianluening area in this embodiment; Fig.17 This is the AUC evaluation index diagram of each prediction model in the Mianluening area in this embodiment;
[0098] In this embodiment, random forest RF is selected as the prediction model.
[0099] Specifically, in step S4, 70% of the samples in the sample set are randomly selected as the training set, and 30% of the samples are selected as the test set. Five algorithms, namely, random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree, are selected for modeling. The models established by the above five algorithms are evaluated by five evaluation indicators, namely, AUC, accuracy, F1 value, precision, and recall rate, to obtain evaluation indexes. The AUC indicator is used as the first evaluation indicator, and the model with the highest AUC value is selected as the prediction model. If there are two or more models with equal AUC values in each model, and the AUC value is the highest value, the model with the highest accuracy value is selected. The model is used as a prediction model. If there are two or more models with equal accuracy values among the models with equal AUC values, and the accuracy value is the highest, the model with the highest F1 value is selected as the prediction model. Similarly, the evaluation order of the above five evaluation indicators is AUC, accuracy, F1 value, precision, and recall. After the prediction model is selected, the importance of each geological hazard risk assessment factor is ranked. The importance is ranked from high to low, namely rainfall, distance from rural residential areas, land use type, elevation, engineering geological rock group, distance from road network, normalized vegetation index, distance from faults, slope, curvature, distance from rivers, and slope direction.
[0100] Five algorithms, including random forest, logistic regression, support vector machine, naive Bayes and gradient boosting tree, were selected for modeling. Each model was evaluated according to five indicators, including AUC, accuracy, precision, recall rate and F1 value, to obtain the evaluation index. The model with the highest comprehensive evaluation index was selected as the prediction model, which improved the accuracy of the prediction model.
[0101] Please continue reading Fig.18 and Fig.19 As shown, Fig.18 The geological disaster risk probability map of the Mianluening area in this embodiment; Fig.19 This is the geological disaster risk zoning map of the Mianluening area in this embodiment.
[0102] In this embodiment, the preset first slope is 20, the preset second slope is 10, and the preset third slope is 3.
[0103] Specifically, in step S5, prediction is performed on each grid divided into the area to be evaluated by the prediction model to obtain a geological disaster risk probability map of the area to be evaluated; the cumulative proportion of the occupied area is used as the horizontal coordinate, and the cumulative proportion of the predicted success rate is used as the vertical coordinate to formulate a success rate curve, set a preset first slope K1, a preset second slope K2, and a preset third slope K3, wherein K1>K2>K3, and calculate the slope K of any point of the success rate curve, and compare the slope K of any point of the success rate curve with the preset first slope K1, the preset second slope K2, and the preset third slope K3,
[0104] When K ≥ K1, the corresponding part of the success rate curve is divided into an extremely high risk area;
[0105] When K1>K≥K2, the corresponding part of the success rate curve is divided into a high-risk area;
[0106] When K2>K≥K3, the corresponding part of the success rate curve is divided into the medium risk area;
[0107] When K<K3, the corresponding part of the success rate curve is divided into a low-risk area;
[0108] After all the areas to be evaluated are divided, a geological hazard zoning map of the areas to be evaluated is formed and the evaluation is completed.
Claims
1. A method for geological hazard assessment based on machine learning, It is characterized in that include, Step S1, selecting and obtaining geological hazard risk assessment factors for the area to be assessed, wherein the selected geological hazard risk assessment factors include elevation, slope, slope aspect, curvature, engineering geological rock formation, distance to fault, distance to river, normalized difference vegetation index, land use type, distance to rural settlement, distance to road network, and rainfall; Step S2, preprocessing the data of geological disaster risk assessment factors of the area to be assessed, and obtaining the elevation map, slope map, aspect map, curvature map, engineering geological zoning map, distance map from faults, distance map from river network, normalized vegetation index map, land use type map, distance map from rural settlements, distance map from road network and annual average rainfall map of the area to be assessed; Step S3, selecting various geological disaster points in the historical data of the area to be evaluated as positive samples, determining the sample space scale, performing statistical analysis on the spatial distribution characteristics of the positive samples, selecting a buffer radius and determining the buffer zone, randomly selecting several points outside the buffer zone as negative samples, constructing a sample set with negative samples and positive samples, constructing a sample feature matrix with the pre-processed geological disaster risk assessment factor data as features, dividing the area to be evaluated into grids and determining the number of grids, and determining the amount of data to be judged according to the number of grids and the number of constructed sample feature matrices; Step S4, dividing the sample set into a training set and a test set, selecting five algorithms including random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree for modeling, training the model with samples in the training set, and evaluating the performance of the model with samples in the test set, selecting a prediction model based on the evaluation index of the performance of each model established according to the above five algorithms, and ranking the features of the trained prediction model by importance; Step S5, predicting each grid divided into the evaluation area with the trained prediction model, obtaining the prediction result in the form of probability, partitioning the prediction probability, drawing a success rate curve with the predicted area as the horizontal coordinate and the predicted success rate as the vertical coordinate, and dividing the prediction results into extremely high risk area, high risk area, medium risk area, and low risk area according to the slope of the success rate curve, and completing the evaluation; In the step S3, each positive sample point is marked as a1, a2, a3, a4...an, where n is the number of positive samples, and the distance Lx between any two positive sample points ai and ar is statistically calculated, where i=1, 2, 3...n, r=1, 2, 3...n, i≠r, and then the percentage of each positive sample point ai and ar at the distance Lx in the total number of positive samples is calculated, and a cumulative curve of the distance probability of adjacent geological disaster points is drawn according to the distance between the two positive sample points and the positive sample percentage; After setting the probability accumulation curve of the distance between adjacent geological disaster points, the maximum distance Lz between any two positive sample points is determined, and the probability accumulation curve is segmented according to the maximum distance Lz. The distance interval of the first segment is 0~Lz×(1 / 10), the distance interval of the second segment is Lz×(1 / 10)~Lz×(2 / 10), and the distance interval of the third segment is Lz×(2 / 10)~ Lz×(3 / 10)…The distance interval of the tenth segment is Lz×(9 / 10)~Lz, and the cumulative probability K1, K2, K3…K10 in each segment is calculated, and the interval for selecting the buffer radius is determined based on the cumulative probability in each segment.
2. According to the method for assessing geological hazards based on machine learning in claim 1, It is characterized in that In step S2, the elevation, slope, aspect and curvature in the geological hazard risk assessment factors are processed by DEM data to obtain an elevation map, a slope map, an aspect map and a curvature map; The engineering geological rock group map of the area to be evaluated is vectorized to obtain the distribution range of various engineering geological rock groups and form an engineering geological zoning map; the basic geological maps of the area to be evaluated are vectorized, and the influence of faults is quantitatively characterized to form a distance map from faults; the river network distribution in the area to be evaluated is vectorized, and the influence of river networks is quantitatively characterized to form a distance map from river networks; the MODIS remote sensing images of the area to be evaluated are processed to obtain a normalized vegetation index map, which is used to quantitatively characterize the coverage of vegetation; the attributes of the land use type map to be evaluated are extracted to obtain rural residential spots, and a distance map from rural residential spots is prepared based on this; the road network distribution map of the area to be evaluated is vectorized, and a distance map from the road network is drawn based on the quantitative characterization of the distance between the road network and the geological disaster point; the annual rainfall data of the area to be evaluated at multiple meteorological stations are obtained, and the annual average rainfall map of the area to be evaluated is obtained through interpolation analysis.
3. According to the method for evaluating geological hazards based on machine learning in claim 1, It is characterized in that After calculating the cumulative probability in each segment, set the maximum probability change ratio Qz, calculate the cumulative probability ratio Q1 of the second segment to the first segment, Q1=K2 / K1, calculate the cumulative probability ratio Q2 of the third segment to the second segment, Q1=K3 / K2, until the cumulative probability ratio Q9 of the tenth segment to the ninth segment is calculated, Q1=K10 / K9, and then compare the calculated cumulative probability ratios Qf with the maximum probability change ratio Qz, where f=1, 2, 3…9, When Qf>Qz, it is determined that the f+1th segment does not meet the buffer radius selection interval; When Qf≤Qz, the f+1th segment is determined to be in compliance with the buffer radius selection interval, and will be determined based on the segments that meet the buffer radius selection interval.
4. According to the method for evaluating geological hazards based on machine learning in claim 3, It is characterized in that After determining the cumulative probability ratio and the maximum probability change ratio, the number of segments X that meet the buffer radius selection interval is determined, and the number of segments X that meet the buffer radius selection interval is determined. When X=0, it is determined that there is no interval that meets the buffer radius selection requirement in the second to tenth sections, and the first section is used as the buffer radius selection interval; When 1≤X<9, it is determined that there are multiple segmented intervals that meet the interval selected by the buffer radius, and the interval with the largest distance among the intervals that meet the buffer radius selection interval is used as the buffer radius selection interval; When X=9, it is determined that the second to tenth sections are all in accordance with the interval for selecting the buffer radius, and the buffer radius is directly selected as Lz.
5. According to the method for assessing geological hazards based on machine learning according to claim 4, It is characterized in that After determining that the segmentation of the buffer radius selection interval is completed, the cumulative maximum probability Ka of the buffer zone selection is set, and the cumulative probability Ks corresponding to each distance in the selected segment is compared with the cumulative maximum probability Ka. When there is a point where Ks=Ka in the selected segment, the distance corresponding to Ks is used as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is less than the cumulative maximum probability Ka, the maximum distance in the segment is selected as the selected buffer radius; when there is no point where Ks=Ka in the selected segment, and the cumulative probability Ks corresponding to each distance in the segment is greater than the cumulative maximum probability Ka, the minimum distance in the segment is selected as the selected buffer radius.
6. According to the method for evaluating geological hazards based on machine learning in claim 1, It is characterized in that In step S3, when constructing a sample feature matrix using the geological hazard assessment factor data of each region as features, the two types of features, engineering geological rock formations and land use types in the geological hazard assessment factor data are nominal variables, and the two types of features, engineering geological rock formations and land use types, are recompiled using OneHot coding, wherein the land use type is encoded as an 18-dimensional sparse matrix and the engineering geological rock formation is encoded as an 8-dimensional sparse matrix.
7. According to the method for evaluating geological hazards based on machine learning in claim 1, It is characterized in that In step S4, 70% of the samples in the sample set are randomly selected as the training set, and 30% of the samples are selected as the test set. Five algorithms, namely random forest, logistic regression, support vector machine, naive Bayes, and gradient boosting tree, are selected for modeling. The models established by the above five algorithms are evaluated by five evaluation indicators, namely AUC, accuracy, F1 value, precision, and recall rate, to obtain evaluation indexes. The AUC indicator is used as the first evaluation indicator, and the model with the highest AUC value is selected as the prediction model. If there are two or more models with equal AUC values in each model, and the AUC value is the highest value, the model with the highest accuracy value is selected as the prediction model. For the prediction model, if there are two or more models with equal accuracy values among the models with equal AUC values, and the accuracy value is the highest, the model with the highest F1 value is selected as the prediction model. Similarly, the evaluation order of the above five evaluation indicators is AUC, accuracy, F1 value, precision, and recall. After the prediction model is selected, the importance of each geological hazard risk assessment factor is ranked. The importance, from high to low, is rainfall, distance from rural residential areas, land use type, elevation, engineering geological rock group, distance from road network, normalized vegetation index, distance from faults, slope, curvature, distance from rivers, and slope direction.
8. According to the method for evaluating geological hazards based on machine learning in claim 1, It is characterized in that In step S5, the grids divided into the area to be evaluated are predicted by the prediction model to obtain a geological hazard probability map of the area to be evaluated; the cumulative proportion of the occupied area is used as the horizontal coordinate and the cumulative proportion of the predicted success rate is used as the vertical coordinate to formulate a success rate curve, set a preset first slope J1, a preset second slope J2, and a preset third slope J3, wherein J1>J2>J3, and calculate the slope J of any point of the success rate curve, and compare the slope J of any point of the success rate curve with the preset first slope J1, the preset second slope J2, and the preset third slope J3. When J ≥ J1, the corresponding part of the success rate curve is divided into an extremely high risk area; When J1>J≥J2, the corresponding part of the success rate curve is divided into a high-risk area; When J2>J≥J3, the corresponding part of the success rate curve is divided into the medium risk area; When J<J3, the corresponding part of the success rate curve is divided into a low-risk area; After all the areas to be evaluated are divided, a geological hazard zoning map of the areas to be evaluated is formed and the evaluation is completed.
