Parallel convolution quantitative classification method for large-area landslide identification

Through the parallel convolution quantification classification method, including DCNN model pruning, quantification operation and load balancing strategy, the challenges of big data processing and complex terrain recognition in landslide identification technology are solved, and efficient and accurate landslide identification results are achieved.

CN118537622AActive Publication Date: 2024-08-23SHAOGUAN COLLEGE
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410522058.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-23
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

Existing landslide identification technology has challenges in processing massive heterogeneous big data, accurate identification under complex terrain conditions, spatiotemporal fusion of multi-temporal data, and quantitative expression of multi-factor driving mechanisms, and is difficult to meet the needs for high accuracy and efficiency.

Method used

A parallel convolution quantification classification method for large-area landslide identification is proposed, including DCNN model pruning, convolution operation quantification, parameter parallel merging and load balancing strategy of adaptive differential evolution algorithm. Through contribution and difference pruning, Quantitative convolution operations and load optimization improve model training performance and recognition efficiency.

Benefits of technology

It has significantly improved the training performance of the DCNN model and the recognition accuracy of landslide image data in the big data environment, achieved good scalability and processing speed, and is suitable for practical application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537622A
    Figure CN118537622A
Patent Text Reader

Abstract

The invention discloses a parallel convolution quantitative classification method for large-area landslide identification. The method comprises the following steps: S1, DCNN model pruning; s1-1, contribution degree pruning is carried out; carrying out clustering division on a convolution kernel set in the convolution layer, and removing convolution kernels with relatively low contribution degrees according to a pruning proportion; s1-2, performing differential pruning; s2, simplifying training data, and accelerating parallel training of the model; s2-1, convolution operation quantification is carried out; quantizing parameters in the convolution operation process through a quantization convolution operation function, and executing the same quantization process on residual parameters of the model; s2-2, parameter updating is carried out; s2-3, inverse quantization of parameters is carried out; s3, parameters are merged in parallel, and the load is uniform; s3-1, data pre-partitioning is carried out; and S3-2, node load optimization is carried out. The training performance of the DCNN model in the big data environment can be remarkably improved, and feasibility and high efficiency are shown when landslide image data are recognized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data mining and GIS technology, and in particular to a parallel convolutional quantitative classification method for large-area landslide identification. Background Art

[0002] Landslides, as a common geological disaster, pose a threat to the safety of life and property and infrastructure construction of human society. In the context of rapid economic and social development, the frequency and scale of landslide disasters have shown a significant growth trend. Traditional landslide identification methods mainly rely on manual field surveys and expert experience and judgment. However, these methods have many limitations, such as low efficiency, high cost, and strong subjectivity, which seriously restrict the effective implementation of landslide prevention and control work.

[0003] In recent years, with the rapid development of advanced technologies such as remote sensing, geographic information systems (GIS) and global positioning systems (GPS), the identification and monitoring methods of landslide disasters have been significantly improved and innovated. Remote sensing technology, with its high efficiency and wide coverage, can quickly obtain surface information and effectively identify landslides through comprehensive analysis of spectral, texture, morphological and other characteristics. The introduction of technologies such as synthetic aperture radar (SAR) and laser radar (LiDAR) has further improved the accuracy of landslide identification and monitoring, and can obtain high-precision three-dimensional terrain information and monitor the deformation of landslides in real time.

[0004] At the same time, the application of machine learning and deep learning technologies in the field of landslide identification has made significant progress. Machine learning methods based on statistical and probabilistic models, such as logistic regression, support vector machine, random forest, etc., are widely used in the identification and prediction of landslide-prone areas. These methods can effectively extract landslide susceptibility indicators from a variety of geological, geomorphological, hydrological and other factors, and then accurately divide potential landslide areas. Deep learning methods, such as convolutional neural networks (CNN) and recurrent neural networks (RNN), can directly extract deep landslide features from remote sensing images, greatly improving the accuracy of landslide identification. In 2019, Ghorbanzadeh et al. proposed a deep learning method based on CNN and RNN, which realized the automatic identification and extraction of landslides using high-resolution remote sensing images. In 2020, Wang et al. used InSAR, GPS and ground monitoring data to study the three-dimensional deformation characteristics of a landslide body, improving the timeliness and accuracy of landslide monitoring and early warning. In 2021, Huang et al. developed a landslide information management system based on WebGIS, which integrated multi-source, multi-scale, and multi-phase landslide data, and realized the visualization and risk assessment of landslides. In 2022, Zhang et al. explored the collaborative observation method of multi-platform data such as satellite remote sensing, drone aerial survey, and ground 3D laser scanning, which improved the accuracy and efficiency of landslide identification under complex terrain conditions.

[0005] In summary, although landslide identification technology has made significant progress in recent years, it still faces many challenges. Problems such as rapid processing of massive heterogeneous big data, accurate identification under complex terrain conditions, spatiotemporal fusion of multi-phase data, and quantitative expression of multi-factor driving mechanisms need to be solved urgently. Therefore, it is extremely important to design a method for large-area landslide identification and prediction with high accuracy and processing speed that can meet the needs of practical applications. Summary of the invention

[0006] The present invention aims to solve the technical problems existing in the prior art, and particularly innovatively proposes a parallel convolutional quantization classification method for large-area landslide identification, which can significantly improve the training performance of the DCNN model in a big data environment, and at the same time shows feasibility and efficiency in identifying landslide image data.

[0007] In order to achieve the above object, the present invention provides a parallel convolutional quantitative classification method for large-area landslide identification, comprising the following steps:

[0008] S1: DCNN model pruning: pruning the redundant convolution kernels in the convolution operation of the DCNN model;

[0009] S1-1: Contribution pruning: cluster the convolution kernel set in the convolution layer and remove the convolution kernels with lower contribution according to the pruning ratio;

[0010] S1-2: Difference pruning: Use similarity coefficient entropy to further remove convolution kernels with more redundant channels, thus obtaining the final set of convolution kernels;

[0011] S2: Simplify training data to accelerate model parallel training;

[0012] S2-1: Convolution operation quantization: quantize the parameters in the convolution operation process by quantizing the convolution operation function, and perform the same quantization process on the remaining parameters of the model;

[0013] S2-2: Parameter update: perform gradient descent to update model parameters and filter abnormal gradients through the cross entropy loss function;

[0014] S2-3: parameter dequantization: after the model parameters are updated, the quantized parameters are dequantized to obtain the model parameters and classification results corresponding to each node;

[0015] S3: Parameters are merged in parallel to evenly distribute the load;

[0016] S3-1: Data pre-partitioning: Obtain the task volume and CPU usage of the node, predict the load value corresponding to each node, and pre-partition the data based on the value;

[0017] S3-2: Node load optimization: The optimal load of each node is quickly optimized through an adaptive differential evolution algorithm, and the parameters are merged in parallel to obtain the final parameters and classification results of the model.

[0018] In the above scheme: step S1-1 includes the following contents:

[0019] S1-1-1: Starting from the first convolutional layer of the DCNN model, calculate the mean m of each convolution kernel weight in this layer i and variance v i , forming a data point set kernel{(m1,v1),(m2,v2),...,(m n ,v n )}, temporarily store each data in the kernel into memory;

[0020] S1-1-2: Take each data in the kernel from the memory and set two cluster centers in advance and Calculate each data point in the kernel to and The data points closer to the cluster center are divided into a cluster according to the distance, and the cluster center is recalculated after the division;

[0021] Calculated by the following formula:

[0022]

[0023] Among them, ρ i represents the sum of the squares of the distances from all data points in the ith cluster to the center, (m j ,v j ) represents the coordinate value of the jth data point, (m p ,v p ) represents the coordinate value of the center point of the current cluster;

[0024] The partition target value PTV is calculated by the following formula:

[0025]

[0026] in, and is the vector representation of the two clusters formed after clustering, represents the product between vectors, Represents the product between the corresponding second-order norms of two vectors;

[0027] S1-1-3: Determine whether the two clusters generated by clustering meet the requirements by dividing the target value PTV. If PTV is greater than the set threshold PTV t , then return to the previous step to cluster again, otherwise stop clustering and calculate the absolute value of the mean of the data points in the two clusters Keep the convolution kernels corresponding to the clusters with larger absolute values;

[0028] S1-1-4: For the data points in the cluster with smaller absolute values, sort the data points according to the size of the variance, and prune the convolution kernels corresponding to the data points according to the set pruning ratio η1;

[0029] S1-1-5: Reorganize the convolution kernels after completing the above operations into a set.

[0030] In the above scheme: step S1-2 includes the following contents:

[0031] S1-2-1: Calculate the Tanimoto coefficient T between the channel in each convolution kernel and the mean channel i , and form a set T';

[0032] The calculation is done by the following formula:

[0033]

[0034] in, is the vector consisting of the mean and variance of a channel in the convolution kernel, is the vector consisting of the mean and variance of the mean channel in the convolution kernel, Respectively represent the second-order norms of the two vectors, T i It is the Tanimoto coefficient between each channel and the mean channel in the current convolution kernel;

[0035] S1-2-2: Remove the same values ​​in the set T' and form a new set T{T1,T2,...,T g};

[0036] S1-2-3: Calculate each non-repeated T i The probability of a value appearing in set T;

[0037] The calculation is done by the following formula:

[0038]

[0039] Among them, P(T i ) for each non-repeating T i The probability of a value appearing in set T;

[0040] S1-2-3: Calculate the similarity coefficient entropy E sc (T), and the values ​​in set T are divided according to the corresponding E sc (T) values ​​are sorted from large to small;

[0041] The calculation is done by the following formula:

[0042]

[0043] Among them, E sc (T) is the similarity coefficient entropy; log2P(T i )P(T) with base 2 i )

[0044] S1-2-4: Set the pruning ratio η2 to remove E sc (T) smaller convolution kernels, and use the remaining convolution kernels as the final convolution kernels participating in the convolution operation.

[0045] In the above scheme: step S2-1 includes the following contents:

[0046] S2-1-1; Get the i-th input image of the l-th layer And the convolution kernel W of the current convolution layer i l , initialize the learning rate γ and classification accuracy loss value ε in the parameter update formula;

[0047] S2-1-2: The input image is transformed into and the convolution kernel W il Limit the range of parameters involved in the convolution operation to reduce the amount of convolution operation calculation;

[0048] S2-1-3: Then, the activation function f(x) of each layer in the forward propagation process, the parameters involved in the operations in the pooling layer and the fully connected layer are quantized.

[0049] In the above scheme: step S2-1-2 includes the following contents:

[0050] S2-1-2-1: The image parameters after range limitation are calculated by the following formula:

[0051]

[0052] Among them, tanh(x) is the hyperbolic tangent function, and max(x) is the maximum value function; is the i-th input image of the l-th layer Parameters;

[0053] S2-1-2-2: The convolution kernel parameters after range restriction are calculated by the following formula:

[0054]

[0055] in, is the convolution kernel matrix W of the lth layer i l Parameters;

[0056] S2-1-2-3: Limit the range of the parameters calculated in step S2-1-2-1;

[0057] The restriction is made by the following formula:

[0058]

[0059] in, is the i-th input image of the l-th layer after restriction Parameters, round(x) is a function that rounds decimal values ​​to integers, bit is the target number of quantization bits;

[0060] S2-1-2-4: Limit the range of the parameters calculated in step S2-1-2-2;

[0061] The restriction is made by the following formula:

[0062]

[0063] in, is the l-th layer convolution kernel matrix W after restrictioni l Parameters, round(x) is a function that rounds decimal values ​​to integers, bit is the target number of quantization bits;

[0064] S2-1-2-5: Calculate the quantized convolution operation function Qy(x);

[0065] The convolution operation function is quantized by the following formula:

[0066]

[0067] in, It is the result of the quantized convolution operation corresponding to the i-th input image of the l-th layer.

[0068] In the above scheme: step S2-2 includes the following contents:

[0069] S2-2-1: Perform model batch training and obtain the loss value of the i-th parameter of the input image in the last fully connected layer in turn

[0070] The loss value is calculated by the following formula

[0071]

[0072] in, Represents the regularized cross entropy loss value of the i-th parameter, u T represents the transpose of the weight coefficient of the previous layer, represents the square of the second-order norm of the weight coefficient, u represents the image feature value of the previous layer, M is the number of predicted categories, is the transpose of the weight coefficient of the previous layer of layer m; λ is the regularization parameter,

[0073] S2-2-2: Calculate the average loss value of the i-th parameter of all input images in the current batch

[0074] The average loss value is calculated by the following formula

[0075]

[0076] in, Represents the average regularized cross entropy loss value, and N is the number of image data in the current batch;

[0077] S2-2-3: Through the cross entropy loss function ICE(x) and The absolute value of the difference is compared with the set threshold τ, and abnormal loss values ​​are filtered out;

[0078] The calculation is done by the following formula:

[0079]

[0080] Among them, τ is the set difference threshold; ICE(x) is the cross entropy loss value;

[0081] S2-2-4: Continue to execute gradient descent to update the parameters in each layer of the model and output the classification results. After each update, the parameters are temporarily stored in the memory until the model parameters converge.

[0082] In the above scheme: step S2-3 includes the following contents:

[0083] S2-3-1: Obtain the DCNN model parameters and classification result values ​​of each node from the system memory;

[0084] S2-3-2: Substitute the parameters and result values ​​obtained in step S2-3-1 into the following formula one by one for calculation, and then obtain the model parameters after parameter dequantization;

[0085] sj=round(2(Qy(x)+1)·(2 bit -1)) / (2 bit -1)

[0086] Among them, sj is the model parameter after parameter inverse quantization, Qy(x) is the quantized convolution operation function; round(x) is the function of rounding the decimal value to an integer, and bit is the target number of quantization bits;

[0087] S2-3-3: Input the model parameters after dequantization into the following formula for calculation to obtain the denormalized model parameters and classification results;

[0088] x i / max|x i |=atanh(2sx-1)

[0089] Among them, atanh(·) is the inverse tangent function;

[0090] S2-3-4: Store the model parameters and classification results calculated in step S2-3-3 into the system's memory for parallel merging of parameters.

[0091] In the above scheme: step S3-1 includes the following contents:

[0092] S3-1-1: Monitor the training process of the model under the Spark framework and obtain the number of tasks Tcount assigned to each node when the task starts to execute from the load buffer iAnd CPU usage Cu i ;

[0093] The number of tasks Tcount is calculated by the following formula i

[0094]

[0095] Where r is the total number of nodes;

[0096] S3-1-2: Set the task ratio of each node to i and CPU usage Cu i Perform weighted combination and calculate the predicted load value Load of each node through the following formula i :

[0097] Load i =μ1·Tratio i +μ2·Cu i

[0098] Where μ1,μ2∈(0,1) and μ1+μ2=1; μ1,μ2 are weights

[0099] S3-1-3: Calculate the data volume ratio that needs to be allocated to each node using the following formula;

[0100]

[0101] Among them, Dp i The ratio of data volume allocated to nodes

[0102] S3-1-4: The ratio calculated in S3-1-3 is used to calculate the number of partitions that need to be allocated to each node, thereby performing pre-partitioning.

[0103] In the above scheme: step S3-2 includes the following contents:

[0104] S3-2-1: Calculate the load value of each node after pre-partitioning based on the task ratio Tratioi and CPU usage i ;

[0105] S3-2-2: Initialize the parameters of the differential evolution algorithm, let As the first generation population, E is the number of cluster nodes, and D is the individual dimension;

[0106] S3-2-3: Update mutation parameter F and crossover probability Cr, and re-form a new population X i ;

[0107] In the stage of population mutation and population crossover, the mutation parameter F and the crossover probability Cr are updated by the following formula:

[0108]

[0109] Among them, t is the number of generations of the current population, Maxiter is the maximum number of iterations, δ is the set constant ratio value, and ASF is the adaptive scaling factor;

[0110] S3-2-4: In the optimal population selection stage, the load fitness function LF(x) is used to decide whether to accept the mutated individual. After Maxiter iterations, the population update is stopped and the optimal node load value at this time is used for intermediate data processing.

[0111] S3-2-5: Call Spark's reduceByKey operator to merge the model parameter values ​​W of each node in the cluster in parallel k And the output classification results, and then get the final DCNN model.

[0112] In the above scheme: step S3-2-4 includes the following contents:

[0113] S3-2-4-1: Calculate the time each individual takes to process a task using the following formula:

[0114]

[0115] Among them, Time i,j The time it takes for the i-th individual to process the task, Length i is the length of the i-th task, v j The speed of processing the task is monitored;

[0116] S3-2-4-2: Calculate the longest time for all individuals to process a task using the following formula: max :

[0117]

[0118] S3-2-4-3: Calculate the degree of deviation between the current task allocation method and the load balancing expected value ξ;

[0119] The calculation is done by the following formula:

[0120]

[0121] Among them, Error represents the degree of deviation between the current task allocation method and the load balancing expected value ξ. is the i-th individual of the t-th generation population, and the load balance expectation ξ is calculated by the following formula:

[0122]

[0123] S3-2-4-4: Calculate the load fitness value using the following formula:

[0124]

[0125] in, is the load fitness value of the i-th individual in the t-th generation population, λ1 and λ2 are weights, λ1,λ2∈(0,1) and λ1+λ2=1.

[0126] In summary, the beneficial effects of the present invention are as follows: first, through the convolution kernel pruning strategy CKP-CDD based on contribution and difference, the convolution kernels with less importance are first eliminated through contribution pruning, and then the redundant channels in different convolution kernels are pruned according to their differences, which solves the problem of too many convolution operation parameters; then, in combination with Spark, a parallel convolution strategy PCO-Q based on convolution quantization is proposed, which improves the convolution operation performance by quantizing the parameters in the convolution operation process and eliminating abnormal loss values, solving the problem of insufficient model training efficiency; finally, a load balancing strategy LB-ADE based on adaptive differential evolution algorithm is proposed, which first pre-partitions the data, and then uses the differential evolution algorithm to find the optimal load value of each node, solving the problem of unbalanced node load. Experimental results show that the algorithm proposed in this paper is more suitable for landslide image classification than the algorithm used as a comparison, and shows good scalability on large data sets. BRIEF DESCRIPTION OF THE DRAWINGS

[0127] Figure 1 It is a schematic diagram of the process of the present invention.

[0128] Figure 2 It is a schematic diagram of the convolution quantization process of the method of the present invention.

[0129] Figure 3 Schematic diagram of the acceleration ratio of the method of the present invention on two data sets.

[0130] Figure 4 Schematic diagram of F-measure of the method of the present invention on two data sets. DETAILED DESCRIPTION

[0131] The present invention will be further described below by way of embodiments and in conjunction with the accompanying drawings:

[0132] like Figure 1 to Figure 4 As shown, a parallel convolutional quantitative classification method for large-area landslide identification includes the following steps:

[0133] S1: DCNN model pruning: pruning the redundant convolution kernels in the convolution operation of the DCNN model;

[0134] S1-1: Contribution pruning: cluster the convolution kernel set in the convolution layer and remove the convolution kernels with lower contribution according to the pruning ratio;

[0135] S1-1-1: Starting from the first convolutional layer of the DCNN model, calculate the mean m of each convolution kernel weight in this layer i and variance v i , forming a data point set kernel{(m1,v1),(m2,v2),...,(m n ,v n )}, temporarily store each data in the kernel into memory;

[0136] S1-1-2: Take each data in the kernel from the memory and set two cluster centers in advance and Calculate each data point in the kernel to and The data points closer to the cluster center are divided into a cluster according to the distance, and the cluster center is recalculated after the division;

[0137] Calculated by the following formula:

[0138]

[0139] Among them, ρ i represents the sum of the squares of the distances from all data points in the ith cluster to the center, (m j ,v j ) represents the coordinate value of the jth data point, (m p ,v p ) represents the coordinate value of the center point of the current cluster;

[0140] The partition target value PTV is calculated by the following formula:

[0141]

[0142] in, and is the vector representation of the two clusters formed after clustering, represents the product between vectors, Represents the product between the corresponding second-order norms of two vectors;

[0143] Known ρ i It represents the sum of the squares of the distances from all data points in two clusters to the center. When the value is smaller, it means that the similarity between the data points in the cluster and the center point is greater, and vice versa. Represents the cosine similarity between two different clusters. A smaller value indicates that the similarity between the two clusters is smaller, and vice versa. According to the principle that the similarity of data within a cluster is large and the similarity between clusters is small, when ρ i and When the sum of PTV is less than the set threshold, the best clustering effect can be achieved, otherwise clustering needs to be re-performed. Therefore, PTV can be used to evaluate the partitioning effect of convolution kernel clustering;

[0144] S1-1-3; Propose a partition target value PTV to determine whether the two clusters generated by clustering meet the requirements. If PTV is greater than the set threshold PTV t , then return to the previous step to cluster again, otherwise stop clustering and calculate the absolute value of the mean of the data points in the two clusters Keep the convolution kernels corresponding to the clusters with larger absolute values;

[0145] S1-1-4: For the data points in the cluster with smaller absolute values, sort the data points according to the size of the variance, and prune the convolution kernels corresponding to the data points according to the set pruning ratio η1;

[0146] S1-1-5: Regroup the convolution kernels after the above operations into a set;

[0147] S1-2: Difference pruning: remove the convolution kernels with more redundant channels through similarity coefficient entropy to obtain the final convolution kernel set;

[0148] S1-2-1: Calculate the Tanimoto coefficient T between the channel in each convolution kernel and the mean channel i , and form a set T';

[0149] The calculation is done by the following formula:

[0150]

[0151] in, is the vector consisting of the mean and variance of a channel in the convolution kernel, is the vector consisting of the mean and variance of the mean channel in the convolution kernel, Respectively represent the second-order norms of the two vectors, T i It is the Tanimoto coefficient between each channel and the mean channel in the current convolution kernel;

[0152] S1-2-2: Remove the same values ​​in the set T' and form a new set T{T1,T2,...,T g};

[0153] S1-2-3: Calculate each non-repeated T iThe probability of a value appearing in set T;

[0154] The calculation is done by the following formula:

[0155]

[0156] Among them, P(T i ) for each non-repeating T i The probability of a value appearing in set T;

[0157] S1-2-3: Calculate the similarity coefficient entropy E sc (T), and the values ​​in set T are divided according to the corresponding E sc (T) values ​​are sorted from large to small;

[0158] The calculation is done by the following formula:

[0159]

[0160] Among them, E sc (T) is the similarity coefficient entropy; log2P(T i )P(T) with base 2 i )

[0161] Known T i is the Tanimoto coefficient between each channel and the mean channel in the current convolution kernel. By comparing the T i The value can remove similar channels that do not contribute to the feature extraction ability of the convolution kernel. After removing similar channels, P(T i ) indicates that each non-repeating T i The probability of a value appearing in the set T, and the information entropy E corresponding to the value sc The larger (T) is, the greater the uncertainty and randomness of the information. When used to represent the feature extraction ability of the convolution kernel, E sc The larger the value of (T), the stronger the feature extraction ability of the convolution kernel is, and vice versa. sc (T) to screen the convolution kernel that is more conducive to the convolution operation;

[0162] S1-2-4: Set the pruning ratio η2 to remove E sc (T) A smaller convolution kernel, and the remaining convolution kernel is used as the final convolution kernel involved in the convolution operation;

[0163] S2: Simplify training data to accelerate model parallel training;

[0164] S2-1: Convolution operation quantization: quantize the parameters in the convolution operation process by quantizing the convolution operation function, and perform the same quantization process on the remaining parameters of the model;

[0165] S2-1-1; Get the i-th input image of the l-th layer And the convolution kernel W of the current convolution layer i l , initialize the learning rate γ and classification accuracy loss value ε in the parameter update formula;

[0166] S2-1-2: The input image is transformed into and the convolution kernel W i l Limit the range of parameters involved in the convolution operation to reduce the amount of convolution operation calculation;

[0167] S2-1-2-1: The image parameters after range limitation are calculated by the following formula:

[0168]

[0169] Among them, tanh(x) is the hyperbolic tangent function, and max(x) is the maximum value function; is the i-th input image of the l-th layer Parameters;

[0170] S2-1-2-2: The convolution kernel parameters after range restriction are calculated by the following formula:

[0171]

[0172] in, is the convolution kernel matrix W of the lth layer i l Parameters;

[0173] Since tanh(x) is a hyperbolic tangent function, which ranges from -1 to 1, we can get sw by compressing the range. i and sx i The range is 0 to 1, which prevents the floating point number from growing too fast during the convolution operation and improves the regularity of the convolution operation;

[0174] S2-1-2-3: Limit the range of the parameters calculated in step S2-1-2-1;

[0175] The restriction is made by the following formula:

[0176]

[0177] in, is the i-th input image of the l-th layer after restriction , round(x) is a function that rounds a decimal value to an integer, bit is the target number of quantization bits, and the target number of quantization bits in this embodiment is an 8-bit fixed-point number;

[0178] S2-1-2-4: Limit the range of the parameters calculated in step S2-1-2-2;

[0179] The restriction is made by the following formula:

[0180]

[0181] in, is the l-th layer convolution kernel matrix W after restriction i l Parameters, round(x) is a function that rounds decimal values ​​to integers, bit is the target number of quantization bits;

[0182] sw i and sx i After the input quantization function q(x) is adjusted from a 32-bit floating point number to an 8-bit fixed point number, and then a symmetric quantization adjustment is performed in the subsequent quantization convolution operation function Qy(x), thereby greatly reducing the consumption of convolution operation resources;

[0183] S2-1-2-5: Calculate the quantized convolution operation function Qy(x);

[0184] The convolution operation function is quantized by the following formula:

[0185]

[0186] in, is the result of the quantized convolution operation corresponding to the i-th input image of the l-th layer;

[0187] S2-1-3: Then, the activation function f(x) of each layer in the forward propagation process, the parameters involved in the operations in the pooling layer and the fully connected layer are quantized.

[0188] S2-2: Parameter update: perform gradient descent to update model parameters and filter abnormal gradients through the cross entropy loss function;

[0189] S2-2-1: Perform model batch training and obtain the loss value of the i-th parameter of the input image in the last fully connected layer in turn

[0190] The loss value is calculated by the following formula

[0191]

[0192] in, Represents the regularized cross entropy loss value of the i-th parameter, u T represents the transpose of the weight coefficient of the previous layer, represents the square of the second-order norm of the weight coefficient, u represents the image feature value of the previous layer, M is the number of predicted categories, is the transpose of the weight coefficient of the previous layer of layer m; λ is the regularization parameter,

[0193] S2-2-2: Calculate the average loss value of the i-th parameter of all input images in the current batch

[0194] The average loss value is calculated by the following formula

[0195]

[0196] in, Represents the average regularized cross entropy loss value, and N is the number of image data in the current batch;

[0197] S2-2-3: Through the cross entropy loss function ICE(x) and The absolute value of the difference is compared with the set threshold τ, and abnormal loss values ​​are filtered out;

[0198] The calculation is done by the following formula:

[0199]

[0200] Among them, τ is the set difference threshold; ICE(x) is the cross entropy loss value;

[0201] represents the regularized cross entropy loss of the i-th parameter, Represents the average regularized cross entropy loss value, adding the regularization function λw to the loss value 2 It can effectively avoid overfitting or underfitting during model training, thereby improving the efficiency of model training. When , it means that the loss value corresponding to the current parameter is normal, and the loss value should be retained for calculating the gradient; when , it means that the loss value of the current parameter is too far from the average value and should be regarded as an outlier and discarded. As a replacement value, the improved cross entropy loss function ICE(x) can be used to filter abnormal loss values.

[0202] S2-2-4: Continue to execute gradient descent to update the parameters in each layer of the model and output the classification results. After each update, the parameters are temporarily stored in the memory until the model parameters converge.

[0203] S2-3: parameter dequantization: after the model parameters are updated, the quantized parameters are dequantized to obtain the model parameters and classification results corresponding to each node;

[0204] S2-3-1: Obtain the DCNN model parameters and classification result values ​​of each node from the system memory;

[0205] S2-3-2: Substitute the parameters and result values ​​obtained in step S2-3-1 into the following formula one by one for calculation, and then obtain the model parameters after parameter dequantization;

[0206] sj=round(2(Qy(x)+1)·(2 bit -1)) / (2 bit -1)

[0207] Among them, sj is the model parameter after parameter inverse quantization, Qy(x) is the quantized convolution operation function, and Qy(x) is the calculated round(x) is a function that rounds a decimal value to an integer, and bit is the target number of bits for quantization;

[0208] S2-3-3: Input the model parameters after dequantization into the following formula for calculation to obtain the denormalized model parameters and classification results;

[0209] x i / max|x i |=atanh(2sx-1)

[0210] Among them, atanh(·) is the inverse tangent function;

[0211] S2-3-4: storing the model parameters and classification results calculated in step S2-3-3 into the system's memory for parallel merging of parameters;

[0212] S3: Parameters are merged in parallel to evenly distribute the load;

[0213] S3-1: Data pre-partitioning: Obtain the task volume and CPU usage of the node, predict the load value corresponding to each node, and pre-partition the data based on the value;

[0214] S3-1-1: Monitor the training process of the model under the Spark framework and obtain the number of tasks Tcount assigned to each node when the task starts to execute from the load buffer i And CPU usage Cu i ;

[0215] The number of tasks Tcount is calculated by the following formula i

[0216]

[0217] Where r is the total number of nodes;

[0218] S3-1-2: Set the task ratio of each node to i and CPU usage Cu i Perform weighted combination and calculate the predicted load value Load of each node through the following formula i :

[0219] Load i =μ1·Tratio i +μ2·Cu i

[0220] Where μ1,μ2∈(0,1) and μ1+μ2=1; μ1,μ2 are weights

[0221] S3-1-3: Calculate the data volume ratio that needs to be allocated to each node using the following formula;

[0222]

[0223] Among them, Dp i The ratio of data volume allocated to nodes

[0224] S3-1-4: The ratio calculated in S3-1-3 is used to calculate the number of partitions that need to be allocated to each node, thereby performing pre-partitioning.

[0225] S3-2: Node load optimization: The optimal load of each node is quickly optimized through the adaptive differential evolution algorithm, and the parameters are merged in parallel to obtain the final parameters and classification results of the model;

[0226] S3-2-1: Calculate the load value of each node after pre-partitioning based on the task ratio Tratioi and CPU usage i ;

[0227] S3-2-2: Initialize the parameters of the differential evolution algorithm, let As the first generation population, E is the number of cluster nodes, and D is the individual dimension;

[0228] S3-2-3: Update mutation parameter F and crossover probability Cr, and re-form a new population X i ;

[0229] In the stage of population mutation and population crossover, the mutation parameter F and the crossover probability Cr are updated by the following formula:

[0230]

[0231] Among them, t is the number of generations of the current population, Maxiter is the maximum number of iterations, δ is the set constant ratio value, and ASF is the adaptive scaling factor;

[0232] For mutation parameters F and crossover probability Cr, adaptive changes are generally made by generating differential vectors. This process is generally fast and uncontrollable. By using population algebra t and the maximum number of iterations Maxiter as independent variables, the images of the sine function sin with a value range of (-1,0) and the cosine function cos with a value range of (0,1) (quarter cycle) change slowly at the beginning and end, and gradually increase and change rapidly in the middle, which can well meet the characteristics of F and Cr that the values ​​of various indicators in the early and late stages are small, and the growth is fast in the middle. Therefore, the adaptive scaling factor ASF can meet the requirements of the adaptive differential evolution algorithm in global search;

[0233] S3-2-4: In the optimal population selection stage, the load fitness function LF(x) is used to decide whether to accept the mutated individual. After Maxiter iterations, the population update is stopped and the optimal node load value at this time is used for intermediate data processing.

[0234] S3-2-4-1: Calculate the time each individual takes to process a task using the following formula:

[0235]

[0236] Among them, Time i,j The time it takes for the i-th individual to process the task, Length i is the length of the i-th task, v j The speed of processing the task is monitored;

[0237] S3-2-4-2: Calculate the longest time for all individuals to process a task using the following formula: max :

[0238]

[0239] S3-2-4-3: Calculate the degree of deviation between the current task allocation method and the load balancing expected value ξ;

[0240] The calculation is done by the following formula:

[0241]

[0242] Among them, Error represents the degree of deviation between the current task allocation method and the load balancing expected value ξ. is the i-th individual of the t-th generation population, and the load balance expectation ξ is calculated by the following formula:

[0243]

[0244] S3-2-4-4: Calculate the load fitness value using the following formula:

[0245]

[0246] in, is the load fitness value of the i-th individual in the t-th generation population, λ1 and λ2 are weights, λ1,λ2∈(0,1) and λ1+λ2=1;

[0247] Known Time i,j The time it takes for a node to process a task. The smaller the value, the stronger the node's ability to process tasks. On the contrary, the weaker the node's ability to process tasks. Error indicates the degree of deviation between the current task allocation method and the load balancing expected value μ. The smaller the value, the lower the load deviation of the allocation mode, which indicates that the cluster has a higher degree of load balancing. On the contrary, it indicates that the load balancing degree is lower. Time i,j The smaller the weighted combination value of LF and Error is, the more acceptable the node load value is. Therefore, LF can be used to determine the effect of load value optimization;

[0248] S3-2-5: Call Spark's reduceByKey operator to merge the model parameter values ​​W of each node in the cluster in parallel k And the output classification results, and then get the final DCNN model.

[0249] In order to better illustrate this embodiment, two data sets are selected for example. The first data set is provided by China University of Geosciences, and contains 1941 high-resolution satellite images of landslides in the Three Gorges Reservoir area of ​​China, referred to as the LI data set. The second data set is provided by the Chinese Academy of Sciences, and contains 976 landslide images and 1404 non-landslide images, referred to as the LD data set.

[0250] In order to verify the parallel performance of the PDCNN-CQ algorithm when processing big data, the speedup ratio is used as an evaluation indicator. The average of 5 running times based on the LI dataset and the LD dataset is used to calculate the speedup ratio, which is used as the final experimental result to ensure the accuracy of the experiment. The experimental results are shown in Figure 2. Figure 2 shown.

[0251] Depend on Figure 3It can be seen that the speedup ratio of the PDCNN-CQ algorithm in both the LI and LD datasets increases with the increase in the number of nodes. When the experiment selects four nodes to work together, the speedup of the PDCNN-CQ algorithm on the LI dataset increases by 1.66 compared with a single node, and the speedup on the LD dataset increases by 2.08 compared with a single node. When the experiment selects eight nodes to work together, the speedup of the PDCNN-CQ algorithm on the LI dataset increases by 4.35 compared with a single node, and the speedup on the LD dataset increases by 4.57 compared with a single node. The main reasons for these results include: when the number of nodes is small, the communication time between nodes accounts for a large proportion of the model training time, and the various strategies designed by the algorithm do not bring obvious acceleration effects, resulting in a small speedup ratio gap between them; when the number of nodes is large, the LB-ADE strategy effectively balances the node load through the load optimization of the differential evolution algorithm, the waiting time between nodes is reduced, and the parallel computing efficiency of the algorithm is greatly improved. Therefore, the PDCNN-CQ algorithm has outstanding performance advantages when training a large amount of image data, and can be well applied to landslide image recognition in a big data environment.

[0252] In order to verify the computational speed of the PDCNN-CQ algorithm in a big data environment, comparative experiments were conducted on the LI dataset and the LD dataset, and the accuracy F-measure of the algorithm on each dataset was recorded. The experimental results are shown in Figure 2. Figure 4 As shown. Figure 4 It can be seen that the classification accuracy of the PDCNN-CQ algorithm on both datasets has reached more than 90%. On the LI dataset, the F-measure value of the algorithm reached 95.01%; on the LD dataset, the F-measure value of the algorithm reached 93.54%. The main reason for this result is that the CKP-CDD strategy removes the less important convolution kernels by contribution pruning and removes the convolution kernels with more redundant channels by difference pruning, reducing the invalid parameters of the convolution kernels. After fine-tuning the parameters, the convolution kernel feature extraction capability can be greatly improved, thereby making the classification accuracy of the PDCNN-CQ algorithm higher; the PCO-Q strategy converts the parameters of the convolution operation from 32bit to 8bit by quantization, greatly reducing the system's computing resource consumption, and at the same time improves the classification ability of the DCNN model by filtering abnormal loss values, thereby improving the classification accuracy of the PDCNN-CQ algorithm. Therefore, the PDCNN-CQ algorithm can meet the needs of model training in a big data environment and maintain a high classification accuracy. Therefore, from the above comparison results, it can be seen that the PDCNN-CQ algorithm has better classification accuracy on the two data sets.

Claims

1. A parallel convolutional quantitative classification method for large-area landslide identification, characterized by: The following steps are involved: S1: DCNN model pruning: pruning the redundant convolution kernels in the convolution operation of the DCNN model; S1-1: Contribution pruning: cluster the convolution kernel set in the convolution layer and remove the convolution kernels with lower contribution according to the pruning ratio; S1-2: Difference pruning: remove the convolution kernels with more redundant channels through similarity coefficient entropy to obtain the final convolution kernel set; S2: Simplify training data to accelerate model parallel training; S2-1: Convolution operation quantization: quantize the parameters in the convolution operation process by quantizing the convolution operation function, and perform the same quantization process on the remaining parameters of the model; S2-2: Parameter update: perform gradient descent to update model parameters and filter abnormal gradients through the cross entropy loss function; S2-3: parameter dequantization; After the model parameters are updated, the quantized parameters are dequantized to obtain the model parameters and classification results corresponding to each node; S3: Parameters are merged in parallel to evenly distribute the load; S3-1: Data pre-partitioning: Obtain the task volume and CPU usage of the node, predict the load value corresponding to each node, and pre-partition the data based on the value; S3-2: Node load optimization: The optimal load of each node is quickly optimized through an adaptive differential evolution algorithm, and the parameters are merged in parallel to obtain the final parameters and classification results of the model.

2. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S1-1 includes the following contents: S1-1-1: Starting from the first convolutional layer of the DCNN model, calculate the mean m of each convolution kernel weight in this layer i and variance v i , forming a data point set kernel{(m1,v1),(m2,v2),...,(m n ,v n )}, temporarily store each data in the kernel into memory; S1-1-2: Take each data in the kernel from the memory and set two cluster centers in advance and Calculate each data point in the kernel to and The data points closer to the cluster center are divided into a cluster according to the distance, and the cluster center is recalculated after the division; Calculated by the following formula: Among them, ρ i represents the sum of the squares of the distances from all data points in the ith cluster to the center, (m j ,v j ) represents the coordinate value of the jth data point, (m p ,v p ) represents the coordinate value of the center point of the current cluster; n represents the number of coordinate points in the data point set; The partition target value PTV is calculated by the following formula: in, and is the vector representation of the two clusters formed after clustering, represents the product between vectors, Represents the product between the corresponding second-order norms of two vectors; S1-1-3: Determine whether the two clusters generated by clustering meet the requirements by dividing the target value PTV. If PTV is greater than the set threshold PTV t , then return to the previous step to cluster again, otherwise stop clustering and calculate the absolute value of the mean of the data points in the two clusters Keep the convolution kernels corresponding to the clusters with larger absolute values; S1-1-4: For the data points in the cluster with smaller absolute values, sort the data points according to the size of the variance, and prune the convolution kernel corresponding to the data point according to the set pruning ratio η1; S1-1-5: Reorganize the convolution kernels after completing the above operations into a set.

3. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S1-2 includes the following: S1-2-1: Calculate the Tanimoto coefficient T between the channel in each convolution kernel and the mean channel i , and form a set T'; The calculation is done by the following formula: in, is the vector consisting of the mean and variance of a channel in the convolution kernel, is the vector consisting of the mean and variance of the mean channel in the convolution kernel, Respectively represent the second-order norms of the two vectors, T i It is the Tanimoto coefficient between each channel and the mean channel in the current convolution kernel; S1-2-2: Remove the same values ​​in the set T' and form a new set T{T1,T2,...,T g }; S1-2-3: Calculate each non-repeated T i The probability of a value appearing in set T; The calculation is done by the following formula: Among them, P(T i ) for each non-repeating T i The probability of a value appearing in set T; S1-2-3: Calculate the similarity coefficient entropy E sc (T), and the values ​​in set T are divided according to the corresponding E sc (T) values ​​are sorted from large to small; The calculation is done by the following formula: Among them, E sc (T) is the similarity coefficient entropy; log2P(T i )P(T) with base 2 i ) S1-2-4: Set the pruning ratio η2 to remove E sc (T) smaller convolution kernels, and use the remaining convolution kernels as the final convolution kernels participating in the convolution operation.

4. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S2-1 includes the following contents: S2-1-1; Get the i-th input image of the l-th layer And the convolution kernel W of the current convolution layer i l , initialize the learning rate γ and classification accuracy loss value ε in the parameter update formula, and start to perform convolution operations on the input image layer by layer to extract features; S2-1-2: The input image is transformed into and the convolution kernel W i l Limit the range of parameters involved in the convolution operation to reduce the amount of convolution operation calculation; S2-1-3: Then, the activation function f(x) of each layer in the forward propagation process, the parameters involved in the operations in the pooling layer and the fully connected layer are quantized.

5. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 4 is characterized in that: Step S2-1-2 includes the following contents: S2-1-2-1: The image parameters after range limitation are calculated by the following formula: Among them, tanh(x) is the hyperbolic tangent function, and max(x) is the maximum value function; is the i-th input image of the l-th layer Parameters; S2-1-2-2: The convolution kernel parameters after range restriction are calculated by the following formula: in, is the convolution kernel matrix W of the lth layer i l Parameters; S2-1-2-3: Limit the range of the parameters calculated in step S2-1-2-1; The restriction is made by the following formula: in, is the i-th input image of the l-th layer after restriction Parameters, round(x) is a function that rounds decimal values ​​to integers, bit is the target number of quantization bits; S2-1-2-4: Limit the range of the parameters calculated in step S2-1-2-2; The restriction is made by the following formula: in, is the l-th layer convolution kernel matrix W after restriction i l Parameters, round(x) is a function that rounds decimal values ​​to integers, bit is the target number of quantization bits; S2-1-2-5: Calculate the quantized convolution operation function Qy(x); The convolution operation function is quantized by the following formula: in, It is the result of the quantized convolution operation corresponding to the i-th input image of the l-th layer.

6. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S2-2 includes the following contents: S2-2-1: Perform model batch training and obtain the loss value of the i-th parameter of the input image in the last fully connected layer in turn The loss value is calculated by the following formula in, Represents the regularized cross entropy loss value of the i-th parameter, u T represents the transpose of the weight coefficient of the previous layer, represents the square of the second-order norm of the weight coefficient, u represents the image feature value of the previous layer, M is the number of predicted categories, is the transpose of the weight coefficient of the previous layer of layer m; λ is the regularization parameter, S2-2-2: Calculate the average loss value of the i-th parameter of all input images in the current batch The average loss value is calculated by the following formula in, Represents the average regularized cross entropy loss value, and N is the number of image data in the current batch; S2-2-3: Through the cross entropy loss function ICE(x) and The absolute value of the difference is compared with the set threshold τ, and abnormal loss values ​​are filtered out; The calculation is done by the following formula: Among them, τ is the set difference threshold; ICE(x) is the cross entropy loss value; S2-2-4: Continue to execute gradient descent to update the parameters in each layer of the model and output the classification results. After each update, the parameters are temporarily stored in the memory until the model parameters converge.

7. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S2-3 includes the following: S2-3-1: Obtain the DCNN model parameters and classification result values ​​of each node from the system memory; S2-3-2: Substitute the parameters and result values ​​obtained in step S2-3-1 into the following formula one by one for calculation, and then obtain the model parameters after parameter dequantization; sj=round(2(Qy(x)+1)·(2 bit -1)) / (2 bit -1) Among them, sj is the model parameter after parameter inverse quantization, Qy(x) is the quantized convolution operation function; round(x) is the function of rounding the decimal value to an integer, and bit is the target number of quantization bits; S2-3-3: Input the model parameters after dequantization into the following formula for calculation to obtain the denormalized model parameters and classification results; x i / max|x i |=atanh(2sx-1) Among them, atanh(·) is the inverse tangent function; S2-3-4: Store the model parameters and classification results calculated in step S2-3-3 into the system's memory for parallel merging of parameters.

8. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized by: Step S3-1 includes the following contents: S3-1-1: Monitor the training process of the model under the Spark framework and obtain the number of tasks Tcount assigned to each node when the task starts to execute from the load buffer i And CPU usage Cu i ; The number of tasks Tcount is calculated by the following formula i Where r is the total number of nodes; S3-1-2: Set the task ratio of each node to i and CPU usage Cu i Perform weighted combination and calculate the predicted load value Load of each node through the following formula i : Load i =μ1·Tratio i +μ2·Cu i Where μ1,μ2∈(0,1) and μ1+μ2=1; μ1,μ2 are weights S3-1-3: Calculate the data volume ratio that needs to be allocated to each node using the following formula; Among them, Dp i The ratio of data volume allocated to nodes S3-1-4: The ratio calculated in S3-1-3 is used to calculate the number of partitions that need to be allocated to each node, thereby performing pre-partitioning.

9. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 1 is characterized in that: Step S3-2 includes the following contents: S3-2-1: Calculate the load value of each node after pre-partitioning based on the task ratio Tratioi and CPU usage i ; S3-2-2: Initialize the parameters of the differential evolution algorithm, let As the first generation population, E is the number of cluster nodes, and D is the individual dimension; S3-2-3: Update mutation parameter F and crossover probability Cr, and re-form a new population X i ; In the stage of population mutation and population crossover, the mutation parameter F and the crossover probability Cr are updated by the following formula: Among them, t is the number of generations of the current population, Maxiter is the maximum number of iterations, δ is the set constant ratio value, and ASF is the adaptive scaling factor; S3-2-4: In the optimal population selection stage, the load fitness function LF(x) is used to decide whether to accept the mutated individual. After Maxiter iterations, the population update is stopped and the optimal node load value at this time is used for intermediate data processing. S3-2-5: Call Spark's reduceByKey operator to merge the model parameter values ​​W of each node in the cluster in parallel k And the output classification results, and then get the final DCNN model.

10. The parallel convolutional quantitative classification method for large-area landslide identification according to claim 9 is characterized in that: Step S3-2-4 includes the following contents: S3-2-4-1: Calculate the time each individual takes to process a task using the following formula: Among them, Time i,j The time it takes for the i-th individual to process the task, Length i is the length of the i-th task, v j The speed of processing the task is monitored; S3-2-4-2: Calculate the longest time for all individuals to process a task using the following formula: max : S3-2-4-3: Calculate the degree of deviation between the current task allocation method and the load balancing expected value ξ; The calculation is done by the following formula: Among them, Error represents the degree of deviation between the current task allocation method and the load balancing expected value ξ. is the i-th individual of the t-th generation population, and the load balance expectation ξ is calculated by the following formula: S3-2-4-4: Calculate the load fitness value using the following formula: in, is the load fitness value of the i-th individual in the t-th generation population, λ1 and λ2 are weights, λ1,λ2∈(0,1) and λ1+λ2=1.

Citation Information

Patent Citations

  • Building identification and building height inversion calculation method and system

    CN114782356A

  • Parallel DCNN classification method for large-area landslide risk evaluation

    CN116310534A

  • Convolutional bidirectional long short-term memory network intrusion detection method based on data enhancement

    CN116781346A

  • Convolutional neural network componentization method based on structured pruning in edge cloud collaborative scene

    CN117057409A

  • Methods, apparatus, and articles of manufacture to improve performance of an artificial intelligence based model on datasets having different distributions

    US20220335285A1