SLDO parallel depth forest method for large-area landslide risk evaluation
Through the SLDO parallel deep forest method, combined with technologies such as data preprocessing, sample hierarchical training, and multi-granularity scanning, the problems of large computing resource consumption and class imbalance in large-area landslide risk assessment are solved, and efficient landslide risk assessment is achieved. and good scalability.
Patent Information
- Application Number
- CN202410609805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-17
AI Technical Summary
Existing large-area landslide risk assessment methods consume huge computing resources when faced with large-area remote sensing images, and have serious class imbalance problems, making it difficult to process them efficiently and accurately.
A SLDO parallel deep forest method is proposed. Through data preprocessing, sample hierarchical training strategy, noise removal and data oversampling, multi-granularity scanning and heterogeneous sub-forest depth allocation strategy, cascade forest training and model parallelization are optimized to reduce Computational overhead and improved efficiency.
It significantly improves the training efficiency of deep forest models in big data environments, solves the problems of class imbalance and high computational overhead, and achieves good scalability and classification performance.
Smart Images

Figure CN118656736A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data mining and GIS technology, and in particular to a model quantized parallel deep forest classification method. Background Art
[0002] Landslide is one of the common geological disasters in nature. It refers to the phenomenon that the rock and soil on the slope or rock slope slides, dumps or flows along a certain weak surface under the action of gravity. Therefore, landslide hazard assessment is of great significance for disaster prevention and land use planning. The causes of landslides are complex, mainly including two categories: natural factors and human factors. Natural factors mainly include geological structure, topography, climatic conditions, vegetation coverage, etc.; human factors include unreasonable land use, engineering construction, mineral mining, etc. Since the causes and conditions of landslides are different, their occurrence is extremely uncertain and variable, which brings challenges to landslide hazard assessment. Landslide hazard assessment refers to the process of comprehensively analyzing and evaluating the possibility, frequency and potential impact of landslides in a specific area using the principles and methods of relevant disciplines such as geology, meteorology, hydrology, and engineering. This process usually includes steps such as landslide hazard investigation, landslide susceptibility assessment, landslide hazard analysis and landslide risk assessment. The purpose of the assessment is to identify high-risk areas for landslides and provide a scientific basis for landslide prevention and control and land planning. With the development of remote sensing technology, geographic information system (GIS), global positioning system (GPS) and artificial intelligence technology, the methods and means of landslide hazard assessment are constantly improving and innovating. These technologies enable us to obtain landslide-related data more accurately and improve the efficiency and accuracy of landslide monitoring and early warning. For example, remote sensing technology can be used for large-scale landslide investigation and monitoring, GIS technology can be used for landslide data integration and analysis, and artificial intelligence technology can help us identify the potential laws and trends of landslides from a large amount of data.
[0003] In response to this, many researchers have used these technologies to carry out large-area landslide prediction studies. Earlier, Nadim et al., Hong et al., and Cepeda et al. used landslides in the World Landslide Database as sample data, and used weighted linear combination methods to conduct hazard assessments in the world and Indonesia and other regions; in 2013, Liu et al. input 9 landslide influencing factors such as slope, aspect, and curvature into the neural network algorithm to conduct landslide hazard assessment in China; in 2014, Gunther et al. considered slope, topography, geology, and land cover as landslide influencing factors, and used the analytic hierarchy process to conduct hazard assessment in Europe; in 2016, George et al. used the weight method to conduct landslide hazard assessment on an area of 69,700 square kilometers in the Georgia Mountains; Kirschbaum and Stanley et al. used different landslide influencing factors in 2016 and 2017, respectively, to predict the possibility of landslides in Central America and the Caribbean and draw hazard assessment maps; in 2019, Valid et al. combined the binary statistical method of frequency ratio with the machine learning method to depict the Bander in the Alborz Mountains. Landslide hazard assessment map of the 11,593 square kilometers of the Torkaman Basin.
[0004] The above studies have achieved certain results in large-area landslide hazard assessment, but these methods still have some problems. For example, when facing large-area remote sensing images, it takes a lot of computing resources, and there is a serious class imbalance problem in large-area landslide hazard assessment. Therefore, designing an algorithm that can efficiently and accurately handle large-area landslide hazard assessment has become a major challenge.
[0005] As an integrated learning algorithm, the deep forest algorithm combines the advantages of decision trees and neural networks and can effectively process complex data sets. Its advantages include: the ability to process high-dimensional data, strong generalization ability, robustness, easy implementation, and high computational efficiency. This allows it to be applied in various occasions and perform well in big data scenarios. Therefore, combining deep forests to solve large-area landslide hazard assessment has broad application prospects and practical significance. Summary of the invention
[0006] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a SLDO parallel deep forest method for large-area landslide hazard assessment.
[0007] In order to achieve the above-mentioned object of the present invention, the present invention provides a SLDO parallel deep forest method for large-area landslide hazard assessment, comprising:
[0008] First, collect data related to landslides, including data on topography, geology, meteorology, human activities and other factors; and pre-process the data;
[0009] Then, the preprocessed data is input into the cascade forest, and the cascade layer is trained using a sample stratified training strategy; that is, by calculating the prediction difficulty coefficient P of the sample in the current layer of cascade forest training, it is compared with the set threshold u to determine whether the sample needs to be passed to the next layer for training to reduce the number of samples in the lower layer training; the training is terminated in advance for some of the better predicted samples, which greatly reduces the problem of high training overhead of cascade forest without affecting the final training results;
[0010] The sample prediction difficulty coefficient P is obtained in the following way: for a K-classification problem, the class vector obtained by training a sample with a decision tree is V, and the cascade forest at this level contains t decision trees, then the sample prediction difficulty coefficient P can be expressed as:
[0011]
[0012] Among them, var() represents the variance of the vector.
[0013] Furthermore, data preprocessing includes noise removal and / or data oversampling.
[0014] Furthermore, noise removal is to remove the minority noise data distributed in the majority class area by calculating the local data distribution of each minority class; specifically, the following steps are included:
[0015] First, calculate the training data imbalance rate IR to obtain the degree of data imbalance;
[0016] Secondly, for data with unknown density distribution, the kernel density estimation method is used to obtain the probability density functions of the minority class and the majority class, and it is marked as KDE min (x) and KED maj (x);
[0017] Next, the noise determination function ND(x) is designed using the imbalance rate IR and the density estimation function;
[0018] The noise determination function ND(x) is obtained in the following way: if x is a sample data in the data set, the noise determination function ND(x) for determining whether x is noise can be expressed as:
[0019]
[0020] Among them, KDE min (x) and KDE maj (x) are the kernel probability density estimates of the minority class and the majority class, respectively, and IR is the imbalance rate of the data;
[0021] Finally, the noise data is cleared according to the noise judgment function.
[0022] Furthermore, data oversampling is to synthesize different numbers of samples in different regions from the perspective of data density distribution through the local sampling rate LSR, so as to effectively solve the class imbalance problem; specifically, the following steps are included:
[0023] First, the K-means clustering algorithm is applied to the minority class and the majority class respectively, and m and n clusters are obtained respectively. The cluster centers are marked as A1, A2, ..., A m and B1,B2,...,B n ;
[0024] Secondly, perform kernel density estimation on each minority cluster center and count its distance to all majority cluster centers;
[0025] Next, the local sampling rate LSR is proposed to control the number of synthetic samples in different regions;
[0026] The local sampling rate LSR is obtained by the following method: i is the cluster center of the i-th minority class, then the sampling rate LSR of the i-th minority cluster is i The calculation formula is as follows:
[0027]
[0028] Among them, KED(A i ) is the kernel density estimate of the cluster center of the i-th minority class;
[0029] KED(A j ) is the kernel density estimate of the cluster center of the jth minority class;
[0030] m represents the number of clusters for the majority class samples;
[0031] Finally, each minority cluster is oversampled to achieve data balance.
[0032] In addition to the above-mentioned noise removal and data oversampling methods, general noise removal and data oversampling methods can also be used, but the effects are somewhat different. For example, noise removal methods include data cleaning, clustering, etc., and data oversampling methods include simple random oversampling, interval difference oversampling, etc.
[0033] Furthermore, before the data is input into the cascade forest, multi-granularity scanning is performed:
[0034] (1) When the length of the left boundary feature from the sliding window feature sequence is less than the sliding window size, each time the sliding window moves, a feature is randomly scanned from the left boundary feature sequence and incorporated into the feature sequence scanned by the sliding window;
[0035] (2) When the sliding window moves to the middle area of the feature sequence, if the length of the left and right boundary feature sequences is greater than the length of the sliding window, the left and right boundary features are not processed;
[0036] (3) When the sliding window moves to the right area of the feature sequence, the length of the right boundary feature sequence is less than the length of the sliding window. At this time, each time the sliding window moves, a feature is randomly scanned from the right boundary feature sequence and incorporated into the feature sequence scanned by the sliding window. Multi-granularity scanning is performed by moving the sliding window. The length of the movement is a step length, which is variable. Here, one step is the corresponding moving step length at this time.
[0037] The sliding window moves from left to right in the feature sequence. At this time, there are three types of features according to their positions, namely the left boundary feature sequence, the feature sequence at the boundary of the sliding window, and the right boundary feature sequence, which correspond to the features that have been scanned, the features being scanned, and the features that have not been scanned.
[0038] The left and right boundary feature sequences represent the left boundary feature sequence and the right boundary feature sequence.
[0039] Furthermore, during cascade forest training, a heterogeneous sub-forest depth allocation strategy is adopted to analyze the sub-forest training overhead from the perspective of sub-forest depth and evenly distribute it to each heterogeneous calculation, which specifically includes the following steps:
[0040] (1) Obtaining the optimal parallelism: It takes time T to process a task with a single node, and the communication overhead is 0; when a parallel system with a parallelism of S processes the task, the communication overhead is MC(S); finally, the time overhead of a parallel system with a parallelism of S to process the task is PT(S) = T / S-MC(S), so the optimal parallelism is in Indicates the rounding up symbol;
[0041] (2) Sub-forest partitioning: The sum of the depths of all decision trees in a sub-forest is taken as the task load of the sub-forest on the computing node. The sub-forest partitioning process is transformed into a “box packing problem” of sub-forests of different depths (the problem of assigning sub-forests to computing nodes can be regarded as a box packing problem, where each “box” (computing node) has its processing power and memory limitations, and each “item” (sub-forest) has its computing and storage requirements). A greedy algorithm is used to allocate sub-forests. In order to further measure the task load of heterogeneous node sub-forests, a task allocation balance B is proposed.
[0042] The task allocation balance B is obtained in the following way: the best parallelism is known to be M, and the computing power of each computing node is C1, C2, ..., C M , the total depth of all decision trees in the random forest is H, and the total depth of the sub-forests assigned to each computing node is h1,h2,...,h M , then the task allocation balance B can be expressed as:
[0043]
[0044]
[0045] Among them, RC i is the relative computing power of the i-th computing node;
[0046] h i is the total depth of the sub-forest of the i-th computing node;
[0047] C i is the computing capacity of the i-th computing node.
[0048] Specifically, the greedy algorithm is used to allocate sub-forests, the first K optimal solutions of the greedy algorithm are selected, and then the sub-forest allocation balance B value is solved, and the allocation strategy with the highest B value is selected. Random forests contain multiple decision trees, each of which has different sizes. The strategy of the greedy algorithm is to allocate the sub-forests composed of multiple decision trees to different heterogeneous computing node "boxes" to maximize the balance of task allocation.
[0049] Calculate the optimal degree of parallelism: First, the system needs to determine the optimal number of parallel tasks, which involves a comprehensive consideration of the number of nodes and communication overhead. The purpose of this calculation process is to find a distribution method that minimizes the overall workload of all computing nodes, thereby reducing the total time required to complete the task.
[0050] Subforest partitioning: Next, the system partitions the entire decision tree forest into multiple subforests. Each subforest contains a certain number of decision trees, whose size and complexity are taken into account to ensure that they can run effectively on different computing nodes.
[0051] Depth allocation: The system allocates computing nodes based on the depth of each sub-forest (i.e., the number of layers or complexity of the decision tree). Shallower sub-forests may require less computing resources, while deeper sub-forests may require more resources.
[0052] Task distribution: Ultimately, the sub-forests are distributed to various computing nodes to achieve load balancing, which means that each computing node will receive a roughly equal amount of work, thereby improving the parallel processing efficiency of the entire system.
[0053] In summary, due to the adoption of the above technical solution, the present invention can significantly improve the training efficiency of the deep forest model in a big data environment, and at the same time show good scalability on the landslide image dataset. It has the following advantages:
[0054] (1) The noise in the original data is eliminated by using the local density oversampling strategy (LDO), and minority class samples in different density areas are oversampled to solve the imbalance between the number of minority classes and majority classes in the original data;
[0055] (2) Improve the utilization of boundary features and balance boundary features and intermediate features through the boundary composite multi-granularity scanning strategy BCMGS;
[0056] (3) Through the sample stratification training strategy SHT, the training of easy-to-predict samples is terminated early, reducing the training overhead of the cascade forest.
[0057] (4) Through the heterogeneous sub-forest depth allocation strategy HSDA, the algorithm model is divided, the optimal parallelism is determined, and the training load of the sub-forest is determined according to the depth of the sub-forest. In this way, sub-forests of different granularities are divided into various heterogeneous computing nodes, balancing the task load of each computing node to improve the parallel training efficiency of the model.
[0058] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0060] Figure 1 It is a schematic diagram of the composite multi-granularity scanning process of the method of the present invention.
[0061] Figure 2 It is a schematic diagram of the sample stratification training strategy of the method of the present invention.
[0062] Figure 3 It is a schematic diagram of the acceleration ratio of the method of the present invention under the data sets of Yan'an City and Ansai District of Yan'an City.
[0063] Figure 4 It is a schematic diagram of the G-mean results of the method of the present invention under the data sets of Yan'an City and Ansai District of Yan'an City. DETAILED DESCRIPTION
[0064] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0065] First, prepare the data. The data comes from the Digital Earth Open Platform. The prepared raw data has data imbalance problem, so it is necessary to preprocess the data. The first step in the data preprocessing process is to filter the noise data, eliminate the noise data, and then oversample the minority class of the denoised data.
[0066] After data oversampling, the data is sent to the deep forest for training. The deep forest includes two parts: multi-granularity scanning and cascade forest training. First, in the multi-granularity scanning stage, the data is scanned using a sliding window. Here we designed a composite multi-granularity scanning strategy to balance the information utilization of each feature. Multi-granularity scanning mainly enhances the representation learning ability of the model. After multi-granularity scanning, the data is passed to the cascade forest for training. The cascade forest has a multi-layer structure, and each layer will output the predicted class vector of this layer. At this stage, we designed a sample stratified training strategy to determine whether the sample needs to continue to be passed to the lower layer for training based on the predicted class vector of each layer of samples. The training of samples that do not need to be passed to the lower layer for training will be terminated in advance. Finally, the average of all the obtained class vectors is taken, and the maximum value of each average value is used as the final prediction result.
[0067] Aiming at the problems of class imbalance, unbalanced boundary feature scanning, high cascade forest training overhead and low parallelization efficiency when processing unbalanced big data, a parallel deep forest algorithm PDF-SLDO based on Spark and local density oversampling is proposed. The algorithm mainly consists of four stages: data preprocessing, multi-granularity scanning, cascade forest training, and model parallel training. (1) Data preprocessing stage: A local density oversampling strategy LDO is proposed, and a noise judgment function ND(x) is designed. By calculating the data distribution near each minority class, it is determined whether the minority class is noise and removed. At the same time, a local sampling rate LSR is designed to synthesize different numbers of samples in different regions from the perspective of data density distribution, thereby effectively solving the class imbalance problem; (2) Multi-granularity scanning stage: A boundary composite multi-granularity scanning strategy BCMGS is proposed. By combining random scanning and window moving scanning, the problem of boundary feature scanning imbalance is solved; (3) Cascade forest training stage: A sample hierarchical training strategy SHT is designed. By calculating the prediction difficulty coefficient P of the sample in the current layer of cascade forest training, it is determined whether the sample needs to be passed to the next layer for training to reduce the number of samples in the lower layer, thereby solving the problem of high cascade forest training overhead; (4) Model parallel training stage: A heterogeneous sub-forest depth allocation strategy HSDA is proposed. The sub-forest training overhead is analyzed from the perspective of sub-forest depth and evenly distributed to each heterogeneous calculation, thereby solving the problem of low model parallelization efficiency. Through the final experimental results and analysis of the experiments, it can be found that the PDF-SLDO algorithm has relatively good performance and system scalability in evaluating landslide hazard in large areas.
[0068] 1. Data preprocessing
[0069] At present, when parallel deep forests are used to process big data problems, there is often class imbalance and the minority class is placed in the majority class. During the oversampling process, the minority noise data in the majority class area is very likely to generate synthetic noise data, which seriously affects the classification performance of the model. To solve this problem, a local density oversampling strategy LDO is proposed. This strategy consists of two steps: (1) Noise removal: a noise determination function ND(x) is proposed. By calculating the distribution of local data of each minority class, the minority noise data distributed in the majority class area is removed; (2) Data oversampling: to solve the problem of overlapping oversampled synthetic data, a local sampling rate LSR is proposed. The sampling rates of different areas are calculated, and the samples of each area are homogenized to prevent data overlap.
[0070] 1.1 Noise Removal
[0071] In order to improve the quality of oversampled synthetic data, it is necessary to first clean up the noise data placed in the majority class to prevent the noise data from creating more noise data when oversampling synthetic data and affecting the model performance. For this purpose, a noise determination function ND(x) is proposed. According to the noise determination function, whether the sample data is noise is determined. The specific calculation process of noise removal is as follows: First, the imbalance rate IR of the training data is calculated to obtain the degree of imbalance of the data; secondly, for data with unknown sparse and dense density distribution, the kernel density estimation method is used to obtain the probability density functions of the minority class and the majority class, and it is marked as KDE min (x) and KED maj (x); then, the noise determination function ND(x) is designed using the imbalance rate IR and the density estimation function; finally, the noise data is removed according to the noise determination function.
[0072] Theorem 1 (Noise determination function ND(x)): Given that x is a sample data in a data set, the noise determination function ND(x) that determines whether x is noise can be expressed as:
[0073]
[0074] Among them, KDE min (x) and KDE maj (x) are the kernel probability density estimates of the minority class and the majority class, respectively, and IR is the imbalance rate of the data.
[0075] Proof: IR is the imbalance rate of the data, which reflects the proportion of the majority class and the minority class, but the distribution of the data is unknown, while KDE min (x) and KDE maj The ratio of (x) can reflect the density distribution of the minority class and the majority class in the overall data. min (x) and KDE maj The larger the ratio of (x), the higher the concentration of minority class samples is than that of majority class samples. When extracting a fixed number of samples from the boundary area, the number of minority class samples will be larger. Using the product of imbalance rate IR and density ratio as the judgment function takes into account both the relationship between sample quantity and the actual distribution of data. Therefore, the noise judgment function can remove noise data through data distribution. The proof is complete.
[0076] 1.2 Data Oversampling
[0077] After filtering out the noise from the original data, the decision boundaries between the minority class and the majority class become clear. However, the class imbalance problem has not been solved. To solve this problem, the minority class samples need to be oversampled. The traditional SMOTE sampling method ignores the actual data distribution, and random synthesis will cause data overlap. To solve this problem, different numbers of samples need to be synthesized in different regions. Therefore, the local sampling rate LSR is proposed to control the number of synthesized samples in different regions. The data oversampling process is as follows: First, the K-means clustering algorithm is performed on the minority class and the majority class respectively, and m and n clusters are obtained respectively. The cluster centers are marked as A1, A2, ..., A m and B1,B2,...,B n ; Secondly, the kernel density of each minority cluster center is estimated, and its distance to all majority cluster centers is counted. Then, the local sampling rate LSR is proposed to control the number of synthetic samples in different regions; finally, each minority cluster is oversampled to achieve data balance.
[0078] Theorem 2 (Local Sampling Rate LSR): Given A i is the cluster center of the i-th minority class, then the sampling rate LSR of the i-th minority cluster is i The calculation formula is as follows:
[0079]
[0080] Among them, KED(A i ) is the kernel density estimate of the cluster center of the i-th minority class;
[0081] KED(A j ) is the kernel density estimate of the cluster center of the jth minority class;
[0082] m represents the number of clusters for the majority class samples.
[0083] Proof: Known KED(A i ) is the kernel density estimate of the cluster center of the i-th minority class, then KED(A i ) can reflect the density of the cluster center area, 1 / KED(A i )Therefore, it can represent the sparsity of samples in the cluster. The higher the sparsity of the cluster, the lower the possibility of data overlap of the synthesized samples. For a certain number of minority class samples, more samples can be synthesized without data overlap. Therefore, the relative sparsity can be used to replace the sampling rate of local clustering. The proof is complete.
[0084] 2. Multi-granularity scanning
[0085] After the data preprocessing stage, the imbalance of the original data classes is effectively solved, and the data is passed to the multi-granularity scanning stage for processing. However, when the sliding window is moved to scan the features, the boundary features are scanned much less times than the middle features, resulting in the problem of boundary feature imbalance. In this regard, this paper proposes a boundary composite multi-granularity scanning strategy BCMGS, and its specific process is as follows: (1) When the length of the left boundary feature from the sliding window feature sequence is less than the sliding window size, each time the sliding window moves, a feature is randomly scanned from the left boundary feature sequence and incorporated into the feature sequence scanned by the sliding window; (2) When the sliding window moves to the middle area of the feature sequence, the length of the left and right boundary feature sequences are both greater than the sliding window length, and the boundary features are not processed; (3) When the sliding window moves to the right area of the feature sequence, the length of the right boundary feature sequence is less than the sliding window length. At this time, each time the sliding window moves, a feature is randomly scanned from the right boundary feature sequence and incorporated into the feature sequence scanned by the sliding window.
[0086] The composite multi-granularity scanning process is as follows Figure 1 As shown in the figure, it can be seen that due to the introduction of random scanning in the boundary feature area, the features in the area closer to the boundary have a greater probability of being scanned in the random scanning, thereby balancing the problem of less scanning of traditional multi-granularity boundary features, and the probability of each feature being scanned and utilized tends to be balanced.
[0087] 3 Cascade Forest Training
[0088] After multi-granularity scanning, the sample data is passed to the cascade forest stage. Then, when faced with a large amount of data and massive samples that have been upsampled, cascade forest training requires huge computational overhead, and the computational overhead required for training is geometrically related to the sample training depth. Considering that some samples of cascade forest training are artificially synthesized and the prediction difficulty of different samples varies, this paper proposes a sample stratified training strategy SHT, designs a sample prediction difficulty coefficient P, and compares it with the set threshold u, so as to terminate the training of some samples with better predictions in advance, thereby greatly reducing the cascade forest training overhead without affecting the final training results. Sample stratified training strategy such as Figure 2 As shown in the figure: for the data input to the cascade forest, the cascade forest has a multi-layer structure. Each layer will output a class vector after training the data. Based on this, we designed the sample difficulty coefficient P to measure the difficulty of predicting different samples; u is the set difficulty threshold, and the samples that are not greater than the difficulty prediction (samples that are easier to predict) will end the subsequent multi-layer training in advance, thereby saving training costs. When the training effect of the subsequent layers of the cascade forest is no longer significantly improved, the cascade forest training is terminated, and the last layer will average the class vectors of the number and then take the maximum value to obtain the final result.
[0089] Theorem 3 (sample prediction difficulty coefficient P): It is known that for a K-classification problem, the class vector obtained by a sample trained by a decision tree is V, and the cascade forest at this level contains t decision trees, then the sample prediction difficulty coefficient P can be expressed as:
[0090]
[0091] Among them, var() represents the variance of the vector.
[0092] Proof: Since the class vector V is the prediction vector of a single decision tree for the sample category, then It can be expressed as the probability distribution of the category prediction of a sample by all decision trees in a cascade forest. is the variance of a layer of class vectors. When the variance of the class vector is larger, it means that the predicted probability of each category in the class vector is farther away from the probability mean, the prediction result has a stronger trend, and the sample is easier to predict. Therefore, the sample prediction difficulty coefficient P can determine the difficulty of sample prediction. The proof is complete.
[0093] 4. Parallel model training
[0094] At present, there are two commonly used task allocation methods in the parallel training process of deep forests. One is parallel training based on decision trees, which allocates a single decision tree to a single parallel computing node. The other is parallel training based on random forests. Instead of allocating a single decision tree to a computing node, it allocates a random forest to a computing node. However, both have defects. The model parallelism of parallel training based on decision trees is high, but the communication overhead between multiple nodes is too large, which seriously restricts the efficiency of model parallelization. On the contrary, parallel training based on random forests affects the efficiency of model parallel training due to its low parallelism. The above two inflexible task allocation methods will further affect the efficiency of model parallelization when computing nodes are heterogeneous. In order to solve the problem of low efficiency of model parallel training, the HSDA strategy is proposed. The strategy mainly includes two steps: obtaining the optimal parallelism and sub-forest division.
[0095] (1) Obtaining the Optimal Degree of Parallelism
[0096] To improve the parallelization efficiency of the model, it is not enough to simply increase the number of parallel computing nodes. At the same time, the impact of the communication overhead of each computing node on the overall parallel system should be considered. If it takes time T to process a task with a single node, the communication overhead is 0. If a parallel system with a parallel degree of S is used to process the task, the communication overhead is MC(S). Finally, the time overhead of the parallel system with a parallel degree of S to process the task is PT(S) = T / S-MC(S). Therefore, the optimal parallel degree can be obtained.
[0097] (2) Sub-forest division
[0098] In the traditional sub-forest division process, the division is mainly based on the number of decision trees in the sub-forest. However, the training costs of different decision trees are different, which will lead to different task loads on the computing nodes for sub-forests with the same number of decision trees. The load imbalance problem of computing nodes will affect the overall parallelization efficiency, and this phenomenon will be more obvious in the case of heterogeneous nodes. Considering that the complexity of the decision tree is mainly related to the depth of the tree, the sum of the depths of all decision trees in the sub-forest is taken as the task load of the sub-forest on the computing node. The sub-forest division process is transformed into a "boxing problem" of sub-forests of different depths. A greedy algorithm is used to allocate sub-forests. In order to further measure the task load of heterogeneous node sub-forests, a task allocation balance B is proposed.
[0099] Theorem 4 (Task allocation balance B): Given the optimal parallelism M, the computing power of each computing node is C1, C2, ..., C M , the total depth of all decision trees in the random forest is H, and the total depth of the sub-forests assigned to each computing node is h1,h2,...,h M , then the task allocation balance B can be expressed as:
[0100]
[0101]
[0102] Among them, RC i is the relative computing power of the i-th computing node.
[0103] Proof: Since the total depth of the random forest decision tree is H and the degree of parallelism is M, H / M is the depth of the sub-forest divided in each node under ideal conditions. i is the relative computing power of the ith computing node, then H / M*RC i It can be expressed as the theoretical maximum allocable sub-forest depth of the i-th computing node. i is the actual allocated sub-forest depth, so H / M*RC i -h i Indicates the gap between theoretical task load and actual task load. When the theoretical task load and actual task load are closer, H / M*RC i -h i The smaller it is, the greater the task allocation balance B is. Therefore, the task allocation balance B can measure the balance of task loads on each node. The proof is complete.
[0104] 5. Verification of the effectiveness of the PDF-SLDO algorithm
[0105] In order to verify the effectiveness and feasibility of the PDF-SLDO algorithm, Yan'an City and Ansai District of Yan'an City were rasterized to obtain 60,185,000 and 5,600,000 grid cells respectively. Each grid cell has 7 influencing factors (dimensions). They are called Yan'an City and Ansai District of Yan'an City datasets, respectively. The PDF-SLDO algorithm is applied to the above two datasets to verify the performance of the algorithm.
[0106] 5.1 Parallelism Analysis of PDF-SLDO Method
[0107] In order to verify the feasibility of the PDF-SLDO algorithm in a big data environment, the acceleration ratio is used as an evaluation index to conduct experiments in two data sets: Yan'an City and Ansai District of Yan'an City. In order to further ensure the accuracy of the experiment, the acceleration ratio is calculated based on the average result after running 10 times. The experimental results are shown in Figure 2. Figure 3 shown.
[0108] Depend on Figure 3 It can be seen that the speedup ratio of the PDF-SLDO algorithm in the Yan'an City and Yan'an Ansai District datasets increases with the number of computing nodes. When the experiment sets 8 nodes, the speedup ratio of the PDF-SLSO algorithm on both data sets reaches the maximum. At this time, the speedup ratio on the Yan'an City dataset is 5.19; the speedup ratio on the Yan'an Ansai District dataset is 4.96. Compared with a single node, the speedup ratios are increased by 4.19 and 3.96 respectively. The reasons for the above experimental results are: in the cascade forest training stage of the PDF-SLDO algorithm, a sample stratification training strategy SHT is designed, which screens out some easy-to-predict samples in advance, reducing the overhead of cascade forest training. At the same time, a heterogeneous sub-forest depth allocation strategy HSDA is designed to balance the task load of each computing node to improve the overall parallelization efficiency of the model. Therefore, the PDF-SLDO algorithm has good parallel processing capabilities and can be well applied to landslide hazard assessment in a big data environment.
[0109] 5.2 Analysis of classification ability of PDF-SLDO method
[0110] In order to verify the classification ability of PDF-SLDO algorithm, experiments were conducted on two data sets: Yan'an City and Ansai District of Yan'an City. The G-mean results of the algorithm are shown in the figure below. Figure 4 shown.
[0111] from Figure 4It can be seen that the G-mean scores of the PDF-SLDO algorithm on the two data sets of Yan'an City and Ansai District of Yan'an City are 0.935 and 0.921 respectively. The reasons for these results are as follows: PDF-SLDO proposed a local density oversampling strategy LDO and designed a noise judgment function ND(x) in the data preprocessing stage to remove the noise data. At the same time, it designed a local sampling rate LSR to synthesize different numbers of samples for different regions from the perspective of data density distribution, solving the class imbalance problem; (2) PDF-SLDO proposed a boundary composite multi-granularity scanning strategy BCMGSS in the multi-granularity scanning stage, which strengthened the use of boundary features and further improved the classification performance. Therefore, the PDF-SLDO algorithm is well suited for landslide hazard assessment in a big data environment.
[0112] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A SLDO parallel deep forest method for large-area landslide hazard assessment, It is characterized in that include: Firstly, the data related to landslides are collected and preprocessed; Then, the preprocessed data is input into the cascade forest, and the cascade layer is trained using a sample stratified training strategy; That is, by calculating the prediction difficulty coefficient P of the sample in the current layer of cascade forest training and comparing it with the set threshold u, it is determined whether the sample needs to be passed to the next layer of training to reduce the number of training samples in the lower layer; The sample prediction difficulty coefficient P is obtained in the following way: for a K-classification problem, the class vector obtained by training a sample with a decision tree is V, and the cascade forest at this level contains t decision trees, then the sample prediction difficulty coefficient P can be expressed as: Among them, var() represents the variance of the vector.
2. The SLDO parallel deep forest method for large-area landslide hazard assessment according to claim 1, It is characterized in that Data preprocessing includes noise removal and / or data oversampling.
3. The SLDO parallel deep forest method for large-area landslide hazard assessment according to claim 2, It is characterized in that Noise removal is to remove the minority noise data distributed in the majority class area by calculating the local data distribution of each minority class; specifically, it includes the following steps: First, calculate the training data imbalance rate IR to obtain the degree of data imbalance; Secondly, for data with unknown density distribution, the kernel density estimation method is used to obtain the probability density functions of the minority class and the majority class, and it is marked as KDE min (x) and KED maj (x); Next, the noise determination function ND(x) is designed using the imbalance rate IR and the density estimation function; The noise determination function ND(x) is obtained in the following way: if x is a sample data in the data set, the noise determination function ND(x) for determining whether x is noise can be expressed as: Among them, KDE min (x) and KDE maj (x) are the kernel probability density estimates of the minority class and the majority class, respectively, and IR is the imbalance rate of the data; Finally, the noise data is cleared according to the noise judgment function.
4. The SLDO parallel deep forest method for large-area landslide hazard assessment according to claim 1, It is characterized in that Data oversampling is to synthesize different numbers of samples in different areas from the perspective of data density distribution through the local sampling rate LSR; specifically, it includes the following steps: First, the K-means clustering algorithm is applied to the minority class and the majority class respectively, and m and n clusters are obtained respectively, and the cluster centers are marked as A and 1 ,A 2 ,...,A m and B 1 ,B 2 ,...,B n ; Secondly, perform kernel density estimation on each minority cluster center and count its distance to all majority cluster centers; Next, the local sampling rate LSR is used to control the number of synthetic samples in different regions; The local sampling rate LSR is obtained by the following method: i is the cluster center of the i-th minority class, then the sampling rate LSR of the i-th minority cluster is i The calculation formula is as follows: Among them, KED(A i ) is the kernel density estimate of the cluster center of the i-th minority class; KED(A j ) is the kernel density estimate of the cluster center of the jth minority class; m represents the number of clusters for the majority class samples; Finally, each minority cluster is oversampled to achieve data balance.
5. The SLDO parallel deep forest method for large-area landslide hazard assessment according to claim 1, It is characterized in that Before the data is input into the cascade forest, multiple granular scans are performed: (1) When the length of the left boundary feature from the sliding window feature sequence is less than the sliding window size, each time the sliding window moves, a feature is randomly scanned from the left boundary feature sequence and incorporated into the feature sequence scanned by the sliding window; (2) When the sliding window moves to the middle area of the feature sequence, if the length of the left and right boundary feature sequences is greater than the length of the sliding window, the left and right boundary features are not processed; (3) When the sliding window moves to the right area of the feature sequence, the length of the right boundary feature sequence is less than the length of the sliding window. At this time, every time the sliding window moves, it randomly scans a feature from the right boundary feature sequence and merges it into the feature sequence scanned by the sliding window.
6. The SLDO parallel deep forest method for large-area landslide hazard assessment according to claim 1, It is characterized in that When training the cascade forest, a heterogeneous sub-forest depth allocation strategy is adopted to analyze the sub-forest training overhead from the perspective of sub-forest depth and evenly distribute it to each heterogeneous calculation. Specifically, the following steps are included: (1) Obtaining the optimal parallelism: It takes time T to process a task with a single node, and the communication overhead is 0; when a parallel system with a parallelism of S processes the task, the communication overhead is MC(S); finally, the time overhead of a parallel system with a parallelism of S to process the task is PT(S) = T / S-MC(S), so the optimal parallelism is in Indicates the rounding up symbol; (2) Sub-forest division: The sum of the depths of all decision trees in a sub-forest is taken as the task load of the sub-forest on the computing node. The sub-forest division process is transformed into a "box packing problem" of sub-forests of different depths. A greedy algorithm is used to allocate sub-forests. To further measure the task load of heterogeneous node sub-forests, a task allocation balance B is proposed. The task allocation balance B is obtained in the following way: the best parallelism is known to be M, and the computing power of each computing node is C. 1 ,C 2 ,...,C M , the total depth of all decision trees in the random forest is H, and the total depth of the sub-forests assigned to each computing node is h 1 ,h 2 ,...,h M , then the task allocation balance B can be expressed as: Among them, RC i is the relative computing power of the ith computing node; h i is the total depth of the sub-forest of the i-th computing node; C i is the computing capacity of the i-th computing node.
Citation Information
Cited By
Method for constructing three-dimensional metallogenic prediction balance data set based on KMEDS algorithm
CN119338112A
