A method for predicting blasting vibration velocity based on double random forest regression method
Through the blasting vibration velocity prediction method based on the dual random forest regression method, combined with multiple design and rock mass parameters, the problem of low prediction accuracy of the Sadowsky formula is solved, achieving higher prediction accuracy and smaller errors. .
Patent Information
- Application Number
- CN202111034324.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-09-03
Smart Images

Figure CN113705110B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a blasting vibration velocity prediction method based on a double random forest regression method, and belongs to the technical field of blasting. Background Art
[0002] Drilling and blasting is one of the rock-breaking methods commonly used in mining and tunnel construction. While blasting breaks rocks, it also brings many negative effects, such as blasting vibration, air shock waves, flying rocks, noise, dust, etc., among which blasting vibration is particularly harmful. Blasting regulations use speed to measure vibration intensity. Accurately predicting the particle vibration speed caused by blasting can effectively control the harm of blasting vibration. In China, the Sadovsky formula is often used to predict blasting vibration speed, but only two parameters, charge amount and blasting source distance, are considered. The parameter values are rough, and the accuracy of predicting blasting vibration speed is not high. Summary of the invention
[0003] The present invention aims at the problem that in the prior art, only two parameters, namely, charge amount and blasting source distance, are considered when predicting blasting vibration velocity using the Sadovsky formula, which leads to rough parameter values and low accuracy in predicting blasting vibration velocity. The present invention provides a blasting vibration velocity prediction method based on a double random forest regression method. The present invention introduces the double random forest regression method into blasting vibration velocity prediction, and can obtain a predicted blasting vibration velocity with higher accuracy and smaller error.
[0004] A blasting vibration velocity prediction method based on a double random forest regression method comprises the following steps: collecting blasting design parameters, rock mass information parameters, and explosive information parameters; training data sets; randomly extracting n sample sets from a test sample set; forming n CART decision trees; randomly selecting features; forming a first-layer random forest; obtaining training output data and obtaining residuals after training; forming a new training set from the training residuals; resampling the new training set; re-forming n CART decision trees; re-selecting features; forming a second-layer random forest; and summing the double random forest outputs to obtain a final prediction result.
[0005] Furthermore, the method of the present invention comprises the following steps:
[0006] (1) The blasting vibration velocity value measured by the blasting test is used as the output variable of the CART decision tree model. The measuring point distance D, the number of blastholes N, the hole spacing S, the row spacing B, the maximum hole depth H, the total charge A, the elevation difference I and the elastic modulus E collected from the corresponding blasting test are used as the input variables of the CART decision tree model. The output variables and the input variables constitute the prediction data set X and the training data set.
[0007] (2) Training Dataset The Bootstrap method is used to resample the training sample set and randomly generate n training data sets. A subset D of
[0008] (3) In each subset D, a decision tree algorithm is used to select the optimal way to split nodes according to the "minimum Gini coefficient criterion", and no pruning is performed during the splitting process; the decision tree is in the form of a binary tree, and the data space is continuously divided into different subsets using a binary recursive method; the decision tree uses the GINI coefficient as the attribute splitting standard, selects the feature with the lowest Gini coefficient as the root node, and selects the remaining features with the smallest Gini coefficient as leaf nodes. Based on the training data set, starting from the root node, each node is recursively operated to construct a binary decision tree;
[0009] (4) Repeatedly construct binary decision trees to generate a random forest: Each decision tree recursively branches and grows from top to bottom. When the split termination condition is met, the regression tree stops growing to form a regression tree T i , all regression trees T i The combination constitutes a random forest model;
[0010] (5) Input the parameter vector x of the prediction data set X into the random forest model and perform a random forest test on the single regression tree T. i The predicted value y i Find the arithmetic mean
[0011] (6) Calculate the output value of the first layer of random forest on the training sample set Use the actual value y of the training sample i Subtract output value Get the training residual Training residuals Substitute the original training sample into a new dataset as the training sample for the second layer of random forest, so that the input is x i , the expected output is The training residuals of the first layer of random forests constitute the training data set of the second layer of random forests, and the training residual values are normalized to obtain the training data set of the second layer of random forests;
[0012] (7) constructing a second-layer random forest model using the training data set of the second-layer random forest and calculating the prediction results of the second-layer random forest model;
[0013] (8) The outputs of the first-layer random forest model and the second-layer random forest model are superimposed in sequence, that is, the label value of the second-layer random forest is summed with the corresponding label value of the first-layer random forest to obtain the blasting vibration velocity of the double random forest prediction model.
[0014] Furthermore, the subset D of step (2) of the present invention is:
[0015] D = {x i1 ,x i2 ,…,x in ,y i}(i∈[1,m]), where k is much smaller than m.
[0016] Furthermore, the decision tree algorithm in step (3) of the present invention is
[0017] Single decision tree predictor h(X, θ k ) is predicted as h i (X), the prediction result of the random forest regression model is:
[0018] RFP = {Ntree, Mtry} (1)
[0019]
[0020] Formula (1) is the parameter set RFP of the modeling process of the random forest regression algorithm, Ntree is the number of regression trees in the model, Mtry is the number of random features, and formula (2) is the blasting velocity prediction method based on random forest regression;
[0021] Where X represents the input vector, θ k is a vector representing the growth path of each tree, Ntree is the number of decision trees in the model, and Mtry is the number of features randomly extracted from the features; the value of Mtry is:
[0022] Mtry&=[log 2 M] (3)
[0023] Mtrv&=[M / 3] (4)
[0024] Where: M is the number of model input parameters; [] indicates rounding down.
[0025] Further, the binary recursive method of the present invention is:
[0026] When classifying, there are K classes, and the probability that a sample point belongs to the Kth class is P k , the Gini index of the probability distribution is
[0027]
[0028] Where: K is the total number of feature samples in the node; P k is the probability of belonging to the k-th feature sample in the node.
[0029] Furthermore, the binary decision tree construction method of the present invention is:
[0030] The sample set D is divided into D according to whether feature A takes value a.1 and D 2 Two parts, D 1 ={(x,y)∈D|A(x)=a},D 2 =DD 1 , then under the condition of feature A, the Gini index of set D is defined as:
[0031]
[0032] The training set of nodes is D 1 , calculate the Gini index of the existing features for the data set: for each feature A, split D into D according to whether the sample point tests A = a as "yes" or "no". 1 and D 2 There are two parts. Calculate the Gini index when A=a, select the split point with the smallest Gini index as the split point, generate two child nodes from the current split point according to the optimal features and the optimal split point, distribute the training data set to the two leaf nodes according to the features, and recursively call the two leaf nodes 5 to 10 times.
[0033] Furthermore, the normalization processing method of the training residual value of the present invention is:
[0034]
[0035] Where: l in is the original input data, l min is the minimum value of the same type of data in the original input data; l max is the maximum value of the same type of data in the original input data; l is the input data after normalization.
[0036] The performance evaluation method of the above method uses the root mean square error (RMSE) and R square (R 2 ) two indicators constitute the evaluation system of the model, RMSE is the deviation between the predicted value and the measured value, R 2 The correlation between the predicted value and the measured value is as follows:
[0037]
[0038]
[0039] Where: O i is the vibration velocity prediction value output by the model; T i is the measured value of vibration velocity; T is the average of the measured values; n is the logarithm of the predicted value and the measured value.
[0040] The beneficial effect of the present invention is as follows: in view of the problem that in the prior art, when using the Sadovsky formula to predict the blasting vibration velocity, only two parameters, namely, the charge amount and the blasting source distance, are considered, resulting in rough parameter values and low accuracy in predicting the blasting vibration velocity, the present invention introduces a double random forest regression method into the blasting vibration velocity prediction, which can obtain a predicted blasting vibration velocity with higher accuracy and smaller error, and compares the results predicted by the random forest model with those predicted by the traditional method, in order to provide an optimal prediction method for blasting vibration velocity monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of blasting vibration velocity prediction according to the present invention. DETAILED DESCRIPTION
[0042] The present invention is further described in detail below in conjunction with specific implementation modes, but the protection scope of the present invention is not limited to the described contents.
[0043] A blasting vibration velocity prediction method based on double random forest regression method, the specific steps are as follows:
[0044] (1) The blasting vibration velocity value measured by the blasting test is used as the output variable of the CART decision tree model. The measurement point distance D, number of blastholes N, hole spacing S, row spacing B, maximum hole depth H, total charge A and elevation difference E collected from the corresponding blasting test are used as the input variables of the CART decision tree model. The output variables and input variables constitute the prediction data set X and the training data set.
[0045] (2) Training Dataset The Bootstrap method is used to resample the training sample set and randomly generate n training data sets. A subset D of
[0046] (3) In each subset D, a decision tree algorithm is used to select the optimal way to split nodes according to the "minimum Gini coefficient criterion", and no pruning is performed during the splitting process; the decision tree is in the form of a binary tree, and the data space is continuously divided into different subsets using a binary recursive method; the decision tree uses the GINI coefficient as the attribute splitting standard, selects the feature with the lowest Gini coefficient as the root node, and selects the remaining features with the smallest Gini coefficient as leaf nodes. Based on the training data set, starting from the root node, each node is recursively operated to construct a binary decision tree;
[0047] (4) Repeatedly construct binary decision trees to generate a random forest: Each decision tree recursively branches and grows from top to bottom. When the split termination condition is met, the regression tree stops growing to form a regression tree T i , all regression trees T i The combination constitutes a random forest model;
[0048] (5) Input the parameter vector x of the prediction data set X into the random forest model and perform a random forest test on the single regression tree T. i The predicted value y i Find the arithmetic mean
[0049] (6) Calculate the output value of the first layer of random forest on the training sample set Use the actual value y of the training sample i Subtract output value Get the training residual Training residuals Substitute the original training sample into a new dataset as the training sample for the second layer of random forest, so that the input is x i , the expected output is The training residuals of the first layer of random forests constitute the training data set of the second layer of random forests, and the training residual values are normalized to obtain the training data set of the second layer of random forests;
[0050] (7) constructing a second-layer random forest model using the training data set of the second-layer random forest and calculating the prediction results of the second-layer random forest model;
[0051] (8) The outputs of the first-layer random forest model and the second-layer random forest model are superimposed in sequence, that is, the label value of the second-layer random forest is summed with the corresponding label value of the first-layer random forest to obtain the blasting vibration velocity of the double-layer random forest prediction model.
[0052] The subset D in step (2) is D={x i1 ,x i2 ,…,x in ,y i}(i∈[1,m]), where k is much smaller than m.
[0053] The decision tree algorithm in step (3) is:
[0054] Single decision tree predictor h(X, θ k ) is predicted as h i (X), the prediction result of the random forest regression model is
[0055] RFP = {Ntree, Mtry} (1)
[0056]
[0057] Formula (1) is the parameter set RFP of the modeling process of the random forest regression algorithm, Ntree is the number of regression trees in the model, Mtry is the number of random features, and formula (2) is the blasting velocity prediction method based on random forest regression;
[0058] In the formula, X represents the input vector, θ k is a vector representing the growth path of each tree, Ntree is the number of decision trees in the model, and the Ntree value affects the training degree and accuracy of the random forest model. In order to obtain the best evaluation results, the MATLAB scripting language is used to write codes and simulate the relationship between different decision tree numbers (Ntree) and the model mean square error (MSE); Mtry is the number of features randomly extracted from the features, and the Mtry value controls the degree of disturbance of the random forest model attributes, which directly affects the accuracy of the model; the Mtry value estimation method is
[0059] Mtry&=[log 2 M] (3)
[0060] Mtrv&=[M / 3] (4)
[0061] Where: M is the number of model input parameters, and the number of input parameters M in the model is determined according to the actual number of input parameters; [] indicates rounding down operation.
[0062] Furthermore, the binary recursive method is
[0063] When classifying, there are K classes, and the probability that a sample point belongs to the Kth class is P k , the Gini index of the probability distribution is
[0064]
[0065] Where: K is the total number of feature samples in the node; P k is the probability of belonging to the k-th feature sample in the node.
[0066] The binary decision tree construction method is:
[0067] The sample set D is divided into D according to whether feature A takes value a. 1 and D 2 Two parts, D 1 ={(x,y)∈D|A(x)=a},D 2 =DD 1 , then under the condition of feature A, the Gini index of set D is defined as
[0068]
[0069] The training set of nodes is D 1 , calculate the Gini index of the existing features for the data set: for each feature A, for each possible value a, split D into D according to whether the sample point tests A = a as "yes" or "no". 1 and D 2There are two parts. Calculate the Gini index when A=a. Among all possible features A and all possible split points a, select the split point with the smallest Gini index as the split point. According to the optimal feature and the optimal split point, generate two child nodes from the current split point, distribute the training data set to the two leaf nodes according to the features, and recursively call the two leaf nodes 5 to 10 times.
[0070] The normalization method of the training residual value is:
[0071]
[0072] Where: l in is the original input data, l min is the minimum value of the same type of data in the original input data; l max is the maximum value of the same type of data in the original input data; l is the input data after normalization.
[0073] The performance of the blasting vibration velocity prediction model based on the random forest regression algorithm was evaluated by using the root mean square error (RMSE) and R-squared (R 2 ) two indicators constitute the evaluation system of the model, RMSE is the deviation between the predicted value and the measured value, R 2 The correlation between the predicted value and the measured value is as follows:
[0074]
[0075]
[0076] Where: O i is the vibration velocity prediction value output by the model; T i is the measured value of vibration velocity; T is the average of the measured values; n is the logarithm of the predicted value and the measured value.
[0077] Example 1: A method for predicting blasting vibration velocity based on a double random forest regression method (see Figure 1 ), the specific steps are as follows:
[0078] (1) The blasting vibration velocity value measured by the blasting test is used as the output variable of the CART decision tree model, and the measuring point distance (D), number of blastholes (N), hole spacing (S), row spacing (B), maximum hole depth (H), total charge (A), elevation difference (I) and elastic modulus (E) collected from the corresponding blasting test are used as the input variables of the CART decision tree model. The output variables and input variables constitute the prediction data set X and the training data set
[0079] (2) Training Dataset The Bootstrap method is used to resample the training sample set and randomly generate n training data sets. The subset D of i1 ,x i2 ,…,x in ,y i}(i∈[1,m]), (where k< <m);
[0080] The Bootstrap method can randomly select training data with replacement, construct a classifier, and then increase the overall collection effect by combining the learned models;
[0081] (3) In each subset D, the decision tree algorithm is used to select the optimal way to split the node according to the "minimum Gini coefficient criterion", and no pruning is done during the splitting process: Suppose a single decision tree predictor h(X, θ k ) is predicted as h i (X), the final prediction result of the random forest regression model is expressed as:
[0082] RFP = {Ntree, Mtry} (1)
[0083]
[0084] Formula (1) is the parameter set RFP of the modeling process of the random forest regression algorithm, Ntree is the number of regression trees in the model, and Mtry is the number of random features; Formula (2) is the blasting velocity prediction method based on random forest regression;
[0085] Where: X is the input vector, θ k To generate the vector of each tree growth path, Ntree is the number of decision trees in the model, and the Ntree value affects the training degree and accuracy of the random forest model. In order to obtain the best evaluation results, the MATLAB scripting language is used to write the code and simulate the relationship between different decision tree numbers (Ntree) and the mean square error (MSE) of the model. Mtry is the number of features randomly extracted from the features. The Mtry value controls the degree of disturbance of the random forest model attributes and is an important parameter in the model. The Mtry value will directly affect the accuracy of the model. The Mtry value calculation method is:
[0086] Mtry&=[log 2 M] (3)
[0087] Mtrv&=[M / 3] (4)
[0088] Where: M is the number of model input parameters, and the number of input parameters M in the model is determined according to the actual number of input parameters; [] indicates rounding down operation;
[0089] The decision tree is in the form of a binary tree, and the data space is continuously divided into different subsets using the binary recursive method. The decision tree uses the GINI coefficient as the standard for attribute splitting, selects the feature with the lowest Gini coefficient as the root node, and selects the remaining features with the smallest Gini coefficient as leaf nodes. Based on the training data set, starting from the root node, each node is recursively operated to construct a binary decision tree.
[0090] The binary recursion method is
[0091] When classifying, there are K classes, and the probability that a sample point belongs to the Kth class is P k , the Gini index of the probability distribution is
[0092]
[0093] Where K is the total number of feature samples in the node; P k is the probability of belonging to the k-th feature sample in the node.
[0094] The binary decision tree construction method is
[0095] The sample set D is divided into D according to whether feature A takes value a. 1 and D 2 Two parts, D 1 ={(x,y)∈D|A(x)=a},D 2 =DD 1 , then under the condition of feature A, the Gini index of set D is defined as
[0096]
[0097] The training set of nodes is D 1 , calculate the Gini index of the existing features for the data set: for each feature A, for each possible value a, split D into D according to whether the sample point tests A = a as "yes" or "no". 1 and D 2 Two parts, calculate the Gini index when A=a, select the split point with the smallest Gini index among all possible features A and all possible split points a as the split point, generate two child nodes from the current split point according to the optimal features and the optimal split point, distribute the training data set to the two leaf nodes according to the features, and recursively call the two leaf nodes 5 to 10 times;
[0098] (4) Repeatedly construct binary decision trees to generate a random forest: Each decision tree recursively branches and grows from top to bottom. When the split termination condition is met, the regression tree stops growing to form a regression tree T i , all regression trees T i The combination constitutes a random forest model;
[0099] (5) Input the parameter vector x of the prediction data set X into the random forest model and perform a random forest test on the single regression tree T. i The predicted value y i Find the arithmetic mean
[0100] (6) Calculate the output value of the first layer of random forest on the training sample set Use the actual value y of the training sample i Subtract output value Get the training residual Training residuals Substitute the original training sample into a new dataset as the training sample for the second layer of random forest, so that the input is x i , the expected output is The training residuals of the first layer of random forests constitute the training data set of the second layer of random forests, and the training residual values are normalized to obtain the training data set of the second layer of random forests; the normalization method of the training residual values is
[0101]
[0102] Where: l in is the original input data, l min is the minimum value of the same type of data in the original input data; l max is the maximum value of the same type of data in the original input data; l is the input data after normalization;
[0103] (7) constructing a second-layer random forest model using the training data set of the second-layer random forest and calculating the prediction results of the second-layer random forest model;
[0104] (8) The outputs of the first-layer random forest model and the second-layer random forest model are superimposed in sequence, that is, the label value of the second-layer random forest is summed with the corresponding label value of the first-layer random forest to obtain the blasting vibration velocity of the double-layer random forest prediction model;
[0105] The performance of the blasting vibration velocity prediction model based on the random forest regression algorithm was evaluated by using the root mean square error (RMSE) and R-squared (R 2 ) two indicators constitute the evaluation system of the model, RMSE is the deviation between the predicted value and the measured value, R 2 The correlation between the predicted value and the measured value is as follows:
[0106]
[0107]
[0108] Where: O i is the vibration velocity prediction value output by the model; Ti is the measured vibration velocity value; T is the average value of the measured values; n is the logarithm of the predicted value and the measured value.
[0109] Example 2: Taking the blasting parameters and corresponding vibration parameters of an open-pit mine as an example, the reliability of the double random forest is studied;
[0110] A blasting vibration velocity prediction method based on the double random forest regression method (see Figure 1 ), the specific steps are as follows:
[0111] (1) Using the existing historical rock vibration-related parameters as sample attributes (see Table 1) to construct a CART decision tree model,
[0112] Table 1 Measured values of the prediction samples
[0113]
[0114] Taking the blasting vibration velocity value measured by the blasting test as the output variable of the CART decision tree model, and the measured point distance (D), number of blast holes (N), hole spacing (S), row spacing (B), maximum hole depth (H), total charge (A), elevation difference (E) and elastic modulus of the rock (I) collected in the corresponding blasting test场次 as the input variables of the CART decision tree model. The output variable and the input variable form the prediction dataset X and the training dataset
[0115] (2) Training dataset Adopting the Bootstrap method to resample the training sample set, randomly generating n subsets D of the training dataset D = {x i1 , x i2 , …, x in , y i} (i ∈ [1, m]), (where k << m); The Bootstrap method can randomly select training data with replacement, construct a classifier, and then increase the overall acquisition effect through the combined learned model;
[0116] (3) In each subset D, using the decision tree algorithm, according to the "minimum Gini coefficient criterion", select the optimal way to split the nodes, and do not prune during the splitting process: Let the prediction result of the single decision tree predictor h(X, θ k ) be h i (X), then the final prediction result of the random forest regression model is expressed as:
[0117] RFP = {Ntree, Mtry} (1)
[0118]
[0119] Formula (1) is the parameter set RFP of the modeling process of the random forest regression algorithm, Ntree is the number of regression trees in the model, and Mtry is the number of random features; Formula (2) is the blasting velocity prediction method based on random forest regression;
[0120] Where: X is the input vector, θ k To generate the vector of each tree growth path, Ntree is the number of decision trees in the model, and the Ntree value affects the training degree and accuracy of the random forest model. In order to obtain the best evaluation results, the MATLAB scripting language is used to write the code and simulate the relationship between different decision tree numbers (Ntree) and the mean square error (MSE) of the model. Mtry is the number of features randomly extracted from the features. The Mtry value controls the degree of disturbance of the random forest model attributes and is an important parameter in the model. The Mtry value will directly affect the accuracy of the model. The Mtry value calculation method is:
[0121] Mtry&=[log 2 M] (3)
[0122] Mtrv&=[M / 3] (4)
[0123] Where: M is the number of model input parameters, and the number of input parameters M in the model is determined according to the actual number of input parameters; [] indicates rounding down operation;
[0124] The decision tree is in the form of a binary tree, and the data space is continuously divided into different subsets using the binary recursive method. The decision tree uses the GINI coefficient as the standard for attribute splitting, selects the feature with the lowest Gini coefficient as the root node, and selects the remaining features with the smallest Gini coefficient as leaf nodes. Based on the training data set, starting from the root node, each node is recursively operated to construct a binary decision tree.
[0125] The binary recursion method is
[0126] When classifying, there are K classes, and the probability that a sample point belongs to the Kth class is P k , the Gini index of the probability distribution is
[0127]
[0128] Where K is the total number of feature samples in the node; P k is the probability of belonging to the k-th feature sample in the node;
[0129] The binary decision tree construction method is
[0130] The sample set D is divided into D according to whether feature A takes value a. 1 and D 2 Two parts, D 1={(x,y)∈D|A(x)=a},D 2 =DD 1 , then under the condition of feature A, the Gini index of set D is defined as
[0131]
[0132] The training set of nodes is D 1 , calculate the Gini index of the existing features for the data set: for each feature A, for each possible value a, split D into D according to whether the sample point tests A = a as "yes" or "no". 1 and D 2 Two parts, calculate the Gini index when A=a, select the split point with the smallest Gini index among all possible features A and all possible split points a as the split point, generate two child nodes from the current split point according to the optimal features and the optimal split point, distribute the training data set to the two leaf nodes according to the features, and recursively call the two leaf nodes 5 to 10 times;
[0133] (4) Repeatedly construct binary decision trees to generate a random forest: Each decision tree recursively branches and grows from top to bottom. When the split termination condition is met, the regression tree stops growing to form a regression tree T i , all regression trees T i The combination constitutes a random forest model;
[0134] (5) Input the parameter vector x of the prediction data set X into the random forest model and perform a random forest test on the single regression tree T. i The predicted value y i Find the arithmetic mean
[0135] (6) Calculate the output value of the first layer of random forest on the training sample set Use the actual value y of the training sample i Subtract output value Get the training residual Training residuals Substitute the original training sample into a new dataset as the training sample for the second layer of random forest, so that the input is x i , the expected output is The training residuals of the first layer of random forests constitute the training data set of the second layer of random forests, and the training residual values are normalized to obtain the training data set of the second layer of random forests; the normalization method of the training residual values is
[0136]
[0137] Where: l in is the original input data, l minis the minimum value of the same type of data in the original input data; l max is the maximum value of the same type of data in the original input data; l is the input data after normalization;
[0138] (7) constructing a second-layer random forest model using the training data set of the second-layer random forest and calculating the prediction results of the second-layer random forest model;
[0139] (8) The outputs of the first-layer random forest model and the second-layer random forest model are sequentially superimposed, that is, the label value of the second-layer random forest is summed with the label value of the corresponding first-layer random forest to obtain the blasting vibration velocity of the double-layer random forest prediction model;
[0140] The prediction results of blasting vibration velocity by the traditional Sadovsky formula and the prediction results of blasting vibration velocity by the double-layer random forest prediction model are shown in Table 2;
[0141] Table 2 Prediction results and errors of blasting vibration velocity of training samples
[0142]
[0143]
[0144] The performance of the blasting vibration velocity prediction model based on the random forest regression algorithm was evaluated by using the root mean square error (RMSE) and R-squared (R 2 ) two indicators constitute the evaluation system of the model, RMSE is the deviation between the predicted value and the measured value, R 2 The correlation between the predicted value and the measured value is as follows:
[0145]
[0146]
[0147] Where: O i is the vibration velocity prediction value output by the model; T i is the measured value of vibration velocity; T is the average value of measured value; n is the logarithm of predicted value and measured value;
[0148] The evaluation index values of the traditional Sadovsky formula prediction model and the two-layer random forest prediction model are shown in Table 3;
[0149] Table 3 Evaluation index values of prediction models
[0150] Evaluation indicators Dual Random Forest Prediction Model Traditional prediction model RMSE 0.079371 0.129303 <![CDATA[R 2 ]]> 0.957003 0.910249
[0151] From Table 2, we can see that the relative error of the vibration velocity of the double random forest prediction model is smaller than that of the traditional prediction model, which reflects the superiority of its prediction performance; from Table 3, we can see that although the double random forest prediction model is greater than the traditional prediction model R square, it shows that the double random forest is more stable; in terms of RMSE, the prediction of the double random forest model is much smaller than that of the traditional prediction model, which shows that the prediction effect of the double random forest is more accurate. Therefore, compared with the traditional prediction model, the double random forest prediction model is more reliable and the prediction results are more stable, indicating that the double random forest prediction model can more effectively and accurately predict the blasting vibration velocity.
[0152] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A blasting vibration velocity prediction method based on a double random forest regression method, characterized in that: The method comprises the following steps: collecting blasting design parameters, rock mass information parameters, and explosive information parameters; training data sets; randomly extracting n sample sets from a test sample set; forming n CART decision trees; randomly selecting features; forming a first-layer random forest; obtaining training output data, and obtaining residuals after training; forming a new training set from the training residuals; resampling the new training set; re-forming n CART decision trees; re-selecting features; forming a second-layer random forest; and summing up the outputs of the double random forests to obtain the final prediction result. The method comprises the following steps: (1) The blasting vibration velocity value measured by the blasting test is used as the output variable of the CART decision tree model. The measuring point distance D, the number of blastholes N, the hole spacing S, the row spacing B, the maximum hole depth H, the total charge A, the elevation difference I and the elastic modulus E collected from the corresponding blasting test are used as the input variables of the CART decision tree model. The output variables and the input variables constitute the prediction data set X and the training data set. (2) Training Dataset The Bootstrap method is used to resample the training sample set and randomly generate n training data sets. A subset D of (3) In each subset D, the decision tree algorithm is used to select the optimal way to split the node according to the "minimum Gini coefficient criterion", and no pruning is done during the splitting process; the decision tree is in the form of a binary tree, and the data space is continuously divided into different subsets using the binary recursive method; the decision tree uses the GINI coefficient as the attribute splitting standard, selects the feature with the lowest Gini coefficient as the root node, and selects the remaining features with the smallest Gini coefficient as the leaf nodes. Starting from the root node, according to the training data set, each node is recursively operated to construct a binary decision tree; (4) Repeatedly construct binary decision trees to generate random forests: Each decision tree recursively branches and grows from top to bottom. When the split termination condition is met, the regression tree stops growing to form a regression tree T. i , all regression trees T i The combination constitutes a random forest model; (5) Input the parameter vector x of the prediction data set X into the random forest model and perform a random forest test on the single regression tree T. i The predicted value y i Find the arithmetic mean (6) Calculate the output value of the first layer of random forest on the training sample set Use the actual value y of the training sample i Subtract output value Get the training residual Training residuals Substitute the original training sample into a new dataset as the training sample for the second layer of random forest, so that the input is x i , the expected output is The training residuals of the first layer of random forests constitute the training data set of the second layer of random forests, and the training residual values are normalized to obtain the training data set of the second layer of random forests; (7) constructing a second-layer random forest model using the training data set of the second-layer random forest and calculating the prediction results of the second-layer random forest model; (8) The outputs of the first-layer random forest model and the second-layer random forest model are superimposed in sequence, that is, the label value of the second-layer random forest is summed with the corresponding label value of the first-layer random forest to obtain the blasting vibration velocity of the double random forest prediction model.
2. The blasting vibration velocity prediction method based on the double random forest regression method according to claim 1 is characterized in that: Step (2) Subset D is: D = {x i1 ,x i2 ,…,x in ,y i }(i∈[1,m]), where k is much smaller than m.
3. The blasting vibration velocity prediction method based on the double random forest regression method according to claim 1 is characterized in that: Step (3) The decision tree algorithm is: Single decision tree predictor h(X, θ k ) is predicted as h i (X), the prediction result of the random forest regression model is: RFP = {Ntree, Mtry} (1) Formula (1) is the parameter set RFP of the modeling process of the random forest regression algorithm, Ntree is the number of regression trees in the model, Mtry is the number of random features, and formula (2) is the blasting velocity prediction method based on random forest regression; In the formula, X represents the input vector, θ k is a vector representing the growth path of each tree, Ntree is the number of decision trees in the model, and Mtry is the number of features randomly extracted from the features; the value of Mtry is: Mtry&=[log2M] (3) Mtrv&=[M / 3] (4) Where: M is the number of model input parameters; [] indicates rounding down.
4. The blasting vibration velocity prediction method based on the double random forest regression method according to claim 3 is characterized in that: The binary recursion method is: When classifying, there are K classes, and the probability that a sample point belongs to the Kth class is P k , the Gini index of the probability distribution is Where: K is the total number of feature samples in the node; P k is the probability of belonging to the k-th feature sample in the node.
5. The blasting vibration velocity prediction method based on the double random forest regression method according to claim 4 is characterized in that: The binary decision tree construction method is: The sample set D is divided into two parts, D1 and D2, according to whether feature A takes the value a. D1 = {(x, y)∈D|A(x) = a}, D2 = D-D1. Under the condition of feature A, the Gini index of set D is defined as: The training set of nodes is D 1, Calculate the Gini index of the existing features for the data set: for each feature A, divide D into two parts, D1 and D2, according to whether the sample point tests A=a as "yes" or "no", calculate the Gini index when A=a, select the split point with the smallest Gini index as the split point, generate two child nodes from the current split point based on the optimal feature and the optimal split point, distribute the training data set to the two leaf nodes based on the features, and recursively call the two leaf nodes 5 to 10 times.
6. The blasting vibration velocity prediction method based on the double random forest regression method according to claim 1 is characterized in that: The normalization method for training residual values is: Where: l in is the original input data, l min is the minimum value of the same type of data in the original input data; l max is the maximum value of the same type of data in the original input data; l is the input data after normalization.
7. The performance evaluation method according to any one of claims 1 to 6, characterized in that: The evaluation method described uses the root mean square error (RMSE) and R square (R 2 ) two indicators constitute the evaluation system of the model, RMSE is the deviation between the predicted value and the measured value, R 2 The correlation between the predicted value and the measured value is as follows: Where: O i is the vibration velocity prediction value output by the model; T i is the measured value of vibration velocity; T is the average value of the measured value; n is the logarithm of the predicted value and the measured value.
