Decision tree guided deep neural network rock mass dynamic performance prediction method
By using a decision tree-guided deep neural network approach, combining the structural parameters of the decision tree with the nonlinear modeling of deep learning, the problems of noise and sample quantity limitations in rock mass dynamic strength prediction are solved, achieving high-precision and stable prediction of rock mass dynamic performance.
Patent Information
- Application Number
- CN202610070515.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-20
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2046-01-20
AI Technical Summary
Existing methods for predicting the dynamic strength of rock masses are affected by noise interference and limited sample size, resulting in insufficient prediction accuracy and difficulty in accurately predicting the dynamic performance of rock masses in complex environments.
The method of using decision trees to guide deep neural networks involves extracting key structural parameters by constructing a decision tree regression model to guide the topology and feature connections of the deep neural network. Combined with the nonlinear modeling capabilities of deep learning, this enables accurate prediction of the dynamic performance of rock masses.
It improves prediction accuracy and generalization ability, maintains high accuracy under multi-dimensional input and small sample conditions, has good adaptability and stability, and is suitable for predicting the dynamic strength of rock masses in complex environments.
Smart Images

Figure CN121543059A_ABST
Abstract
Description
Technical Field
[0001] This invention designs a method for predicting the dynamic performance of rock masses using a decision tree-guided deep neural network, belonging to the field of intelligent early warning technology for geotechnical engineering disasters. Background Technology
[0002] Existing prediction methods all rely on data obtained from rock mass experiments. However, these data contain noise, which is essentially a combination of factors such as instrument electronic interference, sensor coupling distortion, environmental background disturbance, spatial geometric deviation, and human operational errors. These factors cause systematic or random superposition and interference to the real measurement data. In addition, the limited number of experimental samples further reduces the accuracy of existing prediction methods. Developing a high-precision prediction method for the dynamic strength of rock mass that integrates multi-source features and adapts to complex environments has become a key technical bottleneck in improving the safety and control capabilities of geotechnical engineering.
[0003] Deep learning neural networks exhibit strong nonlinear mapping capabilities in predicting the dynamic strength of rock masses, capturing the complex relationship between multiple internal and external factors such as cracks and anchorage status and the bearing capacity of rock masses. However, their inherent black-box characteristics obscure key decision-making logic and make it difficult to trace the failure threshold. Furthermore, the high redundancy structure has limited generalization performance when faced with field errors and environmental disturbances. Although decision trees have good interpretability and can intuitively analyze the relationships between factors, their shallow structure makes it difficult to effectively fit the high-dimensional nonlinear process of dynamic coupling of multiple factors such as impact energy transfer, crack propagation and anchor interaction. Summary of the Invention
[0004] Technical Problem: To address the shortcomings of existing technologies, this paper proposes a method for predicting the dynamic performance of rock masses using a decision tree-guided deep neural network. By analyzing noisy dynamic impact test data of rock masses, this method can ensure prediction accuracy while being easy to implement and having good generalization ability, even for complex rock mass dynamic impact test data with a small number of samples.
[0005] Technical Solution: To achieve the above technical objectives, this invention provides a method for predicting the dynamic performance of rock masses using a decision tree-guided deep neural network, comprising the following steps: S1. Obtain dynamic impact test data under noisy, small sample conditions and construct a rock mass dataset; S2. Use the rock mass dataset to split the decision tree regression model, obtain the complete decision tree regression model, and extract the key structural parameters from it. S3. Construct a deep neural network prediction model; determine the number of neurons in each hidden layer, and the connection strategy between the input layer feature neurons and the first hidden layer neurons; determine the connection topology between the neurons in each hidden layer. S4. Once the deep neural network prediction model has been trained, it can accurately predict the dynamic performance of the rock mass.
[0006] Furthermore, in S1, dynamic impact experiments are conducted on rock masses with different fracture parameters and anchoring states as samples. Dynamic impact experiment data for multiple samples are collected. During this process, due to equipment factors and human factors, there is error noise in the dynamic impact experiment data. The following six feature types of data are obtained for each sample through dynamic impact experiments: fracture roughness coefficient JRC, fracture length, fracture angle, presence or absence of anchor bolts, impact velocity, and dynamic strength. Among them, fracture roughness coefficient JRC, fracture length, fracture angle, and impact velocity are continuous numerical features; presence or absence of anchor bolts is a Boolean feature.
[0007] Furthermore, the dynamic impact test data of all samples were preprocessed: all feature types were normalized to [0,1] to form a rock mass dataset, and 80% of the samples were randomly selected as the rock mass training set, with the remaining 20% as the rock mass test set; among them, continuous numerical features and Boolean features were 5 input features, and dynamic intensity was 1 output feature; let the rock mass training set be... include There are 1 sample, denoted as _ . , No. Sample Given an input feature vector and corresponding output values Together they form a binary tuple. , where the input feature vector Feature Dimension , corresponding to 5 input features, specifically represented as Output value Output dimension This corresponds to one output feature.
[0008] Furthermore, the decision tree regression model is split using the rock mass dataset. The specific steps are as follows: To build a decision tree regression model, key parameters for constructing the model are manually preset, including the maximum split parameter. Minimum number of samples for split nodes Minimum number of samples for leaf nodes Candidate node default tolerance ; Rock Mass Training Set All samples are input into the initial state decision tree regression model, which contains only the unique root node of the decision tree. Rock mass training set All sample input root nodes Determine the root node Does it satisfy the following splitting condition: (1), In the formula, The minimum number of samples for a split node, if the root node Upper rock mass training set capacity Less than If the splitting condition is not met, the current root node is marked as the final leaf node, and the splitting ends; if the splitting condition is met, the current node is marked as the parent node region. Then the decision tree regression model will split; For each input feature, including continuous numerical features and Boolean features: presence or absence of anchor bolts, crack roughness coefficient JRC, crack length, crack angle, and impact velocity, the parent node region is traversed. All inside For each sample, sort them according to the magnitude of the feature value, and calculate the adjacent samples where every two feature values are different under that feature. and At the midpoint of the eigenvalues, select the region that makes the parent node's region... The midpoint of the eigenvalue with the largest reduction in mean squared error is taken as the optimal splitting threshold. Samples with eigenvalues less than or equal to the optimal splitting threshold are assigned to the left child node region, and samples with eigenvalues greater than the optimal splitting threshold are assigned to the right child node region. The specific calculation process is as follows: remember For the first Sample The 1 eigenvalue, For the first Sample The 1 eigenvalue, , For the first Sample and its neighboring samples In the If the midpoint of each eigenvalue is a given eigenvalue, then: (2), Will As a candidate splitting threshold, the parent node region The divided left child node region and right child node region The eigenvalues are represented as: (3), In the formula, Indicates the first The first sample One eigenvalue; Record the parent node region Left child node region right child node region The number of samples within are respectively , , Parent node region Left child node region right child node region mean square error , , The calculation is performed using the following formula: (4), In the formula, Then they respectively represent The average value of the output dynamic intensity characteristic value of samples in each region; The candidate split threshold is calculated using the following formula. The resulting reduction in mean square error : (5), The candidate splitting thresholds are obtained according to equation (5). The resulting reduction in mean square error And the optimal splitting scheme for this splitting is determined by equation (6). ): (6), In the formula, The index represents the best splitting feature, i.e., the best splitting feature selected from all features; This represents the sample index corresponding to the optimal splitting threshold, which is the optimal splitting position under the optimal splitting feature. According to the optimal splitting scheme ( Split the node, and after the split, if the left child node region... right child node region The number of internal samples is less than the minimum number of samples in the leaf nodes. If the child node splits, the split ends; otherwise, the child node is treated as the parent node, and the split continues using equations (2) to (6) until any of the following conditions are met, at which point the split terminates: the number of splits. , Or the maximum mean square error reduction < default tolerance .
[0009] Furthermore, after terminating the split, a complete decision tree regression model is obtained, and key structural parameters are extracted: maximum tree depth. That is, the total number of layers in the decision tree regression model; the first Number of branches in a layer That is, the first The number of split nodes in the layer, of which The layer index is used; and during multiple splits, the feature importance of each input feature is calculated synchronously. The specific steps are as follows: Record No. The feature in the first The reduction in mean squared error of the decision tree regression model during each split is When the first The second split is based on the first The optimal splitting scheme for each feature ( When executed, ;otherwise, In the entire decision tree regression model During the second split, the first The cumulative sum of the reductions in the mean squared error of each feature in the decision tree regression model for: (7), In the formula, Indicates the first Number of samples in the parent node region of the second split; Indicates the total number of samples in the rock mass training set; Using the following formula Normalization is performed to obtain the importance of each feature. : (8).
[0010] Furthermore, by utilizing the key structural parameters of the complete decision tree regression model, the number of neurons in each hidden layer of the deep neural network prediction model and the connection strategy between the input layer feature neurons and the first hidden layer neurons are determined. The specific steps are as follows: Mapping the decision tree regression model to a deep neural network: the root node of the decision tree regression model corresponds to the input layer of the network; the branching process of the decision tree regression model is implemented by the hidden layers; the maximum tree depth of the decision tree regression model is... Since the last layer of the decision tree regression model is a leaf node layer, the effective split depth is... , which corresponds to the total number of hidden layers in the network, and the output layer corresponds to the leaf node output of the final decision tree regression model; The number of neurons in each layer of the deep neural network is calculated based on the number of input features in the rock mass training set. The number of input layer neurons in the network will be used to determine the number of output features within the rock mass training set. As the number of neurons in the output layer, the first... The number of neurons in the hidden layer is denoted as The number of neurons in the previous layer and the number of neurons in the decision tree regression model are determined by the number of neurons in the previous layer. Number of branches per layer Joint decision: (9), Utilizing feature importance The specific process for determining the neuron connection method between the input layer and the first hidden layer is as follows: Calculate the first using formula (10) Input features Number of neurons in the first hidden layer : (10) In the formula, The function represents rounding the value within the parentheses; This represents the number of neurons in the first hidden layer of a deep neural network; Formula (11) is used to constrain and optimize the neuron connections between the input features and the first hidden layer, ensuring that each input feature is connected to at least one neuron: (11), At the same time, ensure the number of neurons connected to all input features. Equal to the number of neurons in the first hidden layer ,when When, reduce the number of neuron connections for a feature of least importance; when At this point, increase the number of neuron connections for the feature with the highest importance; until the following equation is finally satisfied: (12) For each input feature of a deep neural network, the neurons are connected one by one. There are 1 first hidden layer neuron; add random connections to each input feature neuron, accounting for 5% of the total number of connections between the input feature and the first hidden layer neuron.
[0011] Furthermore, by utilizing the number of branches in each layer of the complete decision tree regression model, the connections between neurons in each hidden layer of the deep neural network are initialized, and the connection topology between neurons in each hidden layer of the deep neural network is constructed, thereby improving the prediction accuracy under noisy and small sample conditions. The first in the deep neural network The first hidden layer and the previous hidden layer The neurons between them are connected in the following steps: Determine the first Number of hidden layer neuron groups ; In the decision tree regression model, the first... Number of branches per layer and the previous hidden layer of the corresponding deep neural network prediction model Number of neurons Minimum value in: (13) Define the neuron grouping mechanism between hidden layers; starting from the second hidden layer Start, hide the layer With neurons The neurons are synchronously divided into There are several groups; among them, the hidden layer... Each group contains One neuron, hidden layer Each group contains The number of neurons is represented as follows: , (14) In the formula, , Hidden layers and The number of neurons; The parentheses for rounding down indicate that the value inside the parentheses is rounded down to the nearest integer. Starting from the second hidden layer, according to For hidden layers The neurons in the sequence are grouped sequentially; the hidden layer is determined using the following formula. Index sequence of all neurons : (15) In the formula, Functions that generate sets of integers Random arrangement; According to the hidden layer index sequence The hidden layer is determined using the following formula. The Middle Group number of each neuron : (16) In the formula, The parentheses for rounding up indicate that the value inside the parentheses is rounded up. Indicates in the hidden layer The Middle The index number of each neuron; To be divided into Establish hidden layers for each group of neurons. and hidden layers Forward connections between layers; forward connections are in sparse connection mode: traversing hidden layers. and hidden layers Group number of all neurons and When neurons have the same group number, the hidden layer... and hidden layers Establish full connections between them; Add a 30% probability random connection, meaning that each neuron in a hidden layer has a 30% probability of randomly connecting with any two neurons in the previous layer.
[0012] Furthermore, the root mean square error (RMSE) is used as a performance evaluation metric to train the deep neural network prediction model. The smaller the RMSE, the better the prediction performance of the deep neural network prediction model. The RMSE is calculated as follows: (17) In the formula, This represents the total number of samples used in training. These represent the sample values that the deep neural network prediction model outputs during training. This represents the actual output value of the corresponding sample.
[0013] A computer device includes a processor and a memory, the processor being electrically connected to the memory, the memory being used to store instructions and data, and the processor being used to execute a rock mass dynamic performance prediction method guided by a decision tree deep neural network.
[0014] Beneficial Effects: This method constructs and initializes the neural network topology based on key structural information such as tree depth, number of branches per layer, and feature importance of the decision tree regression model. The prior knowledge of rules extracted from the decision tree reduces the network's dependence on the scale of training data, not only giving the network a precise initial direction to accelerate convergence and improve accuracy, but also integrating the powerful nonlinear modeling capabilities of neural networks with the interpretability of decision trees. The constructed prediction model exhibits significant advantages in the following aspects: 1) Higher prediction accuracy: The improved model has better prediction accuracy compared to a single model structure; 2) Stronger generalization and robustness: It shows better adaptability to noisy data, and the model stability is significantly improved; 3) Wider applicability: It can effectively handle multi-dimensional input features and small sample dynamic rock impact experimental data, maintaining high accuracy even with high data complexity, while also possessing the advantages of ease of implementation and strong generalization ability. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the structure of a decision tree-guided deep neural network prediction model in an embodiment of the present invention.
[0016] Figure 2The figure shows the experimental results of the prediction model based on the BP neural network in the comparative example of this invention on the rock mass test set: the horizontal axis represents the test set sample number, and the vertical axis represents the dynamic intensity; the blue broken line represents the true intensity value of the rock mass sample, and the red broken line represents the predicted intensity value of the BP neural network model; the image shows that the root mean square error (RMSE) of the experimental results of this model is 8.0149; the fitting degree between the predicted curve and the true value curve is poor, and there is a significant deviation in some sample points.
[0017] Figure 3 The figure shows the experimental results of the prediction model based on decision tree regression in the comparative example of this invention on the rock mass test set: the horizontal axis represents the sample number of the test set, and the vertical axis represents the dynamic intensity; the blue broken line represents the true intensity value of the rock mass sample, and the red broken line represents the predicted intensity value of the decision tree regression model; the image shows that the root mean square error (RMSE) of the experimental results of this model is 5.5298; the fitting degree between the predicted curve and the true value curve is generally poor, and there is a large deviation in some sample points.
[0018] Figure 4 The figure shows the experimental results of the decision tree-guided deep neural network prediction model on the rock mass test set in this embodiment of the invention: the horizontal axis represents the test set sample number, and the vertical axis represents the dynamic intensity; the blue broken line represents the true intensity value of the rock mass sample, and the red broken line represents the predicted intensity value of this model; the image shows that the root mean square error (RMSE) of the experimental results of this model is 3.0911; the predicted curve fits the true value curve well, and there are slight deviations in some sample points. Detailed Implementation
[0019] The embodiments of the present invention will be further described below with reference to the accompanying drawings and tables: like Figure 1 As shown, this invention discloses a method for predicting the dynamic performance of rock masses using a decision tree-guided deep neural network. The specific steps are as follows: S1. Obtain dynamic impact test data under noisy, small sample conditions and construct a rock mass dataset; S2. Use the rock mass dataset to split the decision tree regression model, obtain the complete decision tree regression model, and extract the key structural parameters from it. S3. Construct a deep neural network prediction model; determine the number of neurons in each hidden layer, and the connection strategy between the input layer feature neurons and the first hidden layer neurons; determine the connection topology between the neurons in each hidden layer. S4. Once the deep neural network prediction model has been trained, it can accurately predict the dynamic performance of the rock mass.
[0020] In this embodiment, dynamic impact test data under noisy, small-sample conditions is acquired to construct a rock mass dataset. Specific steps include: In S1, dynamic impact tests are conducted on rock masses with different fracture parameters and anchoring states as samples. Multiple samples of dynamic impact test data are collected. During this process, due to equipment and human factors, the dynamic impact test data contains error noise. Each sample obtains the following six feature types of data through dynamic impact tests: fracture roughness coefficient JRC, fracture length, fracture angle, presence or absence of anchor bolts, impact velocity, and dynamic intensity. Among these, the fracture roughness coefficient JRC, fracture length, fracture angle, and impact velocity are continuous numerical features; the presence or absence of anchor bolts is a Boolean feature. This simulation experiment was run in the MATLAB R2021b environment, using a PC with a 2.5GHz CPU and 32GB of RAM. All dynamic impact test data of the samples were preprocessed: all feature types were normalized to [0,1] to form a rock mass dataset. The rock mass dataset consisted of 72 samples, and 80% of the samples were randomly selected as the rock mass training set, and the remaining 20% were selected as the rock mass test set; that is, the rock mass training set had 58 samples and the test set had 14 samples; among them, continuous numerical features and Boolean features were 5 input features, and dynamic intensity was 1 output feature; let the rock mass training set... include There are 1 sample, denoted as _ . , No. Sample Given an input feature vector and corresponding output values Together they form a binary tuple. , where the input feature vector Feature Dimension , corresponding to 5 input features, specifically represented as Output value Output dimension This corresponds to one output feature.
[0021] In this embodiment, the decision tree regression model is split using a rock mass dataset. Specific steps include: To build a decision tree regression model, key parameters for constructing the model are manually preset, including the maximum split parameter. Minimum number of samples for split nodes Minimum number of samples for leaf nodes Default tolerance for candidate nodes In the decision tree regression model, the parameters are set to... Set the default tolerance for candidate nodes. All ; Rock Mass Training Set All samples are input into the initial state decision tree regression model, which contains only the unique root node of the decision tree. Rock mass training set All sample input root nodes Determine the root node Does it satisfy the following splitting condition: (1), The minimum number of samples for a split node, if the root node Upper rock mass training set capacity Less than If the splitting condition is not met, the current root node is marked as the final leaf node, and the splitting ends; if the splitting condition is met, the current node is marked as the parent node region. Then the decision tree regression model will split; In the formula, The minimum number of samples for a split node, if the root node Upper rock mass training set capacity Less than If the splitting condition is not met, the current root node is marked as the final leaf node, and the splitting ends; if the splitting condition is met, the current node is marked as the parent node region. Then the decision tree regression model will split; For each input feature, including continuous numerical features and Boolean features: presence or absence of anchor bolts, crack roughness coefficient JRC, crack length, crack angle, and impact velocity, the parent node region is traversed. All inside For each sample, sort them according to the magnitude of the feature value, and calculate the adjacent samples where every two feature values are different under that feature. and At the midpoint of the eigenvalues, select the region that makes the parent node's region... The midpoint of the eigenvalue with the largest reduction in mean squared error is used as the optimal splitting threshold. Samples with eigenvalues less than or equal to this threshold are assigned to the left child node region, and samples with eigenvalues greater than this threshold are assigned to the right child node region. The specific calculation process is as follows: remember For the first Sample The 1 eigenvalue, For the first Sample The 1 eigenvalue, , For the first Sample and its neighboring samples In the If the midpoint of the eigenvalues is: (2), Will As a candidate splitting threshold, the parent node region The divided left child node region and right child node region The eigenvalues are represented as: (3), In the formula, Indicates the first The first sample One eigenvalue; Record the parent node region Left child node region right child node region The number of samples within are respectively , , Parent node region Left child node region right child node region mean square error , , The calculation is performed using the following formula: (4), In the formula, Then they respectively represent The average value of the output dynamic intensity characteristic value of samples in each region; The candidate split threshold is calculated using the following formula. The resulting reduction in mean square error : (5), The candidate splitting thresholds are obtained according to equation (5). The resulting reduction in mean square error And the optimal splitting scheme for this splitting is determined by equation (6). ): (6), In the formula, The index represents the best splitting feature, i.e., the best splitting feature selected from all features; This represents the sample index corresponding to the optimal splitting threshold, which is the optimal splitting position under the optimal splitting feature. According to the optimal splitting scheme ( Split the node, and after the split, if the left child node region... right child node region The number of internal samples is less than the minimum number of samples in the leaf nodes. If the child node splits, the split ends; otherwise, the child node is treated as the parent node, and the split continues using equations (2) to (6) until any of the following conditions are met, at which point the split terminates: the number of splits. , Or the maximum mean square error reduction < default tolerance .
[0022] In this embodiment, after terminating the split, a complete decision tree regression model is obtained, and the key structural parameter is extracted: maximum tree depth. That is, the total number of layers in the decision tree regression model; the first Number of branches in a layer That is, the first The number of split nodes in the layer, of which The layer index is used; and during multiple splits, the feature importance of each input feature is calculated synchronously. The specific steps include: Record No. The feature in the first The reduction in mean squared error of the decision tree regression model during each split is When the first The second split is based on the first The optimal splitting scheme for each feature ( When executed, ;otherwise, In the entire decision tree regression model During the second split, the first The cumulative sum of the reductions in the mean squared error of each feature in the decision tree regression model for: (7), In the formula, Indicates the first Number of samples in the parent node region of the second split; This indicates the total number of samples in the rock mass training set; right Normalization is performed to obtain the importance of each feature. : (8), In the decision tree regression model, the key structural parameters are: .
[0023] In this embodiment, the key structural parameters of the complete decision tree regression model are used to determine the number of neurons in each hidden layer of the deep neural network prediction model and the connection strategy between the input layer feature neurons and the first hidden layer neurons. Specific steps include: Mapping the decision tree regression model to a deep neural network: In the decision tree model, the root node is defined as layer 0, and the depth of each layer increases progressively until the maximum tree depth is reached. Layer; due to the last layer (i.e., the first) The layer () only contains leaf nodes responsible for the final output, therefore the effective split depth for decision branches is Therefore, the root node of the decision tree regression model corresponds to the input layer of the network, the decision branching process is implemented by the hidden layers, and the effective split depth is limited. The corresponding number of hidden layers in the network corresponds to the output layer of the entire decision tree regression model, while the output layer corresponds to the leaf node output of the entire model. The number of neurons in each layer of the deep neural network is calculated based on the number of input features in the rock mass training set. The number of input layer neurons in the network will be used to determine the number of output features within the rock mass training set. As the number of neurons in the output layer, the first... The number of neurons in the hidden layer is denoted as The number of neurons in the previous layer and the number of neurons in the decision tree regression model are determined by the number of neurons in the previous layer. Number of branches per layer Joint decision: (9), Utilizing feature importance The specific process for determining the neuron connection method between the input layer and the first hidden layer is as follows: Calculate the first using formula (10) Input features Number of neurons in the first hidden layer : (10) In the formula, This represents the number of features of the input features. The function represents rounding the value within the parentheses; This represents the number of neurons in the first hidden layer of a deep neural network; Formula (11) is used to constrain and optimize the neuron connections between the input features and the first hidden layer, ensuring that each input feature is connected to at least one neuron: (11), At the same time, ensure the number of neurons connected to all input features. Equal to the number of neurons in the first hidden layer ,when When, reduce the number of neuron connections for a feature of least importance; when At this point, increase the number of neuron connections for the feature with the highest importance; until the following equation is finally satisfied: (12) For each input feature of a deep neural network, the neurons are connected one by one. One first hidden layer neuron; add random connections to each input-connected feature neuron, accounting for 5% of the total number of connections between the input features and the first hidden layer neurons; In the deep neural network prediction model, the input layer is 1 layer with 5 neurons, and the number of neurons distributed sequentially is... The hidden layers consist of 3 layers, with the following number of neurons in each layer: The output layer has one layer and one neuron.
[0024] In this embodiment, the number of branches in each layer of the complete decision tree regression model is used to initialize the connections between neurons in each hidden layer of the deep neural network, thereby constructing the connection topology between neurons in each hidden layer of the deep neural network and improving prediction accuracy under noisy small sample conditions. The first in the deep neural network The first hidden layer and the previous hidden layer The neurons between them are connected, and the specific steps include: Determine the first Number of hidden layer neuron groups ; In the decision tree regression model, the first... Number of branches per layer and the previous hidden layer of the corresponding deep neural network prediction model Number of neurons Minimum value in: (13) Define the neuron grouping mechanism between hidden layers; starting from the second hidden layer Start, hide the layer With neurons The neurons are synchronously divided into There are several groups; among them, the hidden layer... Each group contains One neuron, hidden layer Each group contains The number of neurons is represented as follows: , (14) In the formula, , Hidden layers and The number of neurons; The parentheses for rounding down indicate that the value inside the parentheses is rounded down to the nearest integer. Starting from the second hidden layer, according to For hidden layers The neurons in the sequence are grouped sequentially; the hidden layer is determined using the following formula. Index sequence of all neurons : (15) In the formula, Functions that generate sets of integers Random arrangement; According to the hidden layer index sequence The hidden layer is determined using the following formula. The Middle Group number of each neuron : (16) In the formula, The parentheses for rounding up indicate that the value inside the parentheses is rounded up. Indicates in the hidden layer The Middle The index number of each neuron; To be divided into Establish hidden layers for each group of neurons. and hidden layers Forward connections between layers; forward connections are in sparse connection mode: traversing hidden layers. and hidden layers Group number of all neurons and When neurons have the same group number, the hidden layer... and hidden layers Establish full connections between them; Add a 30% probability random connection, meaning that each neuron in a hidden layer has a 30% probability of randomly connecting with any two neurons in the previous layer.
[0025] In this embodiment, the constructed deep neural network prediction model is trained using a rock mass training set, which enables accurate prediction of the dynamic performance of the rock mass.
[0026] The following simulation experiment illustrates the effect. Specific details of the experiment are as follows: 1) In the 72 sets of data in the rock mass dataset, the input features are fracture roughness JRC, fracture length, fracture angle, presence or absence of anchor bolts and impact velocity, and the output feature is dynamic strength. The rock mass dataset is divided into the same rock mass training set and test set, that is, the rock mass training set has 58 sets of samples and the test set has 14 sets of samples. 2) In specific implementation, in order to objectively evaluate the performance superiority of the model proposed in this invention, this embodiment sets up two comparative examples, respectively using algorithms commonly used in the prior art, and conducting comparative experiments under the condition of completely identical training and test set partitioning: Comparative Example 1: A prediction model based on a BP neural network. A traditional BP neural network was used to construct the prediction model, employing the same input and output features for training and prediction. 58 samples from the rock mass training set were substituted into the prediction model for training, and then 14 samples from the test set were used to test its prediction accuracy. Comparative Example 2: A prediction model based on decision tree regression was constructed using the standard decision tree regression algorithm, with the same input and output features for training and prediction. Similarly, 58 samples from the rock mass training set were substituted into the prediction model for training, and then 14 samples from the test set were used to test its prediction accuracy.
[0027] 3) Obtain the prediction results of the prediction models in the two comparative examples and compare them with the experimental prediction results of the prediction model proposed in this invention.
[0028] Evaluation indicators: The root mean square error (RMSE) is used as a performance evaluation metric for training deep neural network prediction models. The smaller the RMSE, the better the prediction performance of the model. The RMSE is calculated as follows: (17) In the formula, This represents the total number of training samples. The sample values represent the output of the model training. This represents the actual output value of the corresponding sample.
[0029] Experimental results: Different model algorithms were each run independently 30 times on the rock mass test set, and the mean and variance of the 30 experimental results were used as the final results and filled into Table 1. The corresponding fitting curves are shown in [reference]. Figures 2 to 4 : Table 1: Results of the prediction models built using the three methods: , From the comparison of the prediction results of each model in Table 1, it can be seen that the prediction model based on BP neural network has the largest error level and variance on the rock mass test set, far exceeding the other two prediction models. This indicates that the prediction model based on simple BP neural network has poor generalization ability, is prone to overfitting, and has weak robustness on datasets with multidimensional input, small sample size, and noise. The prediction model based on decision tree regression has better generalization ability, but its prediction accuracy is still lower than that of the prediction model constructed by the method provided in this invention. The prediction model constructed by the method provided in this invention not only has better prediction accuracy than other models, but also has lower variance in multiple runs, proving that the model has significant stability and reliability when processing such rock mass data.
[0030] from Figures 2 to 4 Comparing the fitted curves: the BP neural network, as a comparative example ( Figure 2 The RMSE was as high as 8.0149, indicating a poor fit between the predicted and actual curves, with significant deviations in some sample points; the decision tree regression model ( Figure 3 Although the RMSE of the proposed decision tree-guided deep neural network model was reduced to 5.5298, its fitting performance on some sample points was still relatively poor. In contrast, the proposed decision tree-guided deep neural network model... Figure 4 The RMSE was reduced to 3.0911, and the prediction curve closely matched the true value curve, which confirmed the prediction accuracy and generalization ability of the model under noisy small sample conditions. To this end, this study innovatively proposes a decision tree-guided deep neural network method for predicting the dynamic performance of rock masses. The core of this method is to utilize key structural information such as the splitting path and feature importance of the decision tree to provide powerful guidance for the topological architecture and feature connection methods of the neural network. This not only gives the network a good initial search direction, enabling it to converge faster and achieve higher prediction accuracy, but also significantly improves the robustness and generalization performance of the model under complex interference environments by integrating the powerful nonlinear dynamic modeling capability of the neural network with the rule interpretability of the decision tree. Thus, this provides an innovative solution for real-time early warning of rock mass dynamic intensity that is efficient, accurate, noise-resistant, and potentially resolvable.
Claims
1. A rock mass dynamic performance prediction method of decision tree guided deep neural network, characterized in that, The steps are: S1, obtaining dynamic impact experiment data under the condition of small sample containing noise, and constructing a rock mass data set; S2, splitting the decision tree regression model using the rock mass data set to obtain a complete decision tree regression model, and extracting key structural parameters therefrom; S3, constructing a deep neural network prediction model; determining the number of neurons in each hidden layer, and the connection strategy between the input layer feature neurons and the first hidden layer neurons; determining the connection topology between the neurons in each hidden layer; S4, the deep neural network prediction model completes the training, that is, the precise prediction of the dynamic performance of the rock mass can be realized.
2. The method of claim 1, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. In S1, different fracture parameters and anchoring state rock masses are taken as samples through dynamic impact experiments, and dynamic impact experiment data of multiple samples are collected. During this process, there are errors and noise in the dynamic impact experiment data due to equipment factors and human factors. Each sample obtains the following six types of feature data through dynamic impact experiments: fracture roughness coefficient JRC, fracture length, fracture angle, presence or absence of anchor rod, impact velocity, and dynamic strength. Among them, the fracture roughness coefficient JRC, fracture length, fracture angle, and impact velocity belong to continuous numerical features; the presence or absence of anchor rod belongs to a Boolean feature.
3. The method of claim 2, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. All dynamic impact test data were preprocessed: all feature types were normalized to [0,1] to form a rock mass dataset, and 80% of the samples were randomly selected as the rock mass training set, with the remaining 20% as the rock mass test set; among them, continuous numerical features and Boolean features were 5 input features, and dynamic intensity was 1 output feature; let the rock mass training set be... include There are 1 sample, denoted as _ . , No. Sample Given an input feature vector and corresponding output values Together they form a binary tuple. , where the input feature vector Feature Dimension , corresponding to 5 input features, specifically represented as Output value Output dimension This corresponds to one output feature.
4. The method of claim 3, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. The splitting of the decision tree regression model is completed using the rock mass data set, and the specific steps are as follows: Building a decision tree regression model, manually preset the key parameters of building a decision tree regression model: maximum split parameter , minimum sample size of split node , minimum sample size of leaf node , default tolerance of candidate node ; input all samples in the rock mass training set into an initial state decision tree regression model, and the initial state decision tree regression model only contains a unique root node of the decision tree , input all samples in the rock mass training set into the root node , and determine whether the root node satisfies the following split condition: (1), In the formula, is the minimum sample number of the split node, and if the root node The training set capacity of the upper rock mass is less than If the split condition is not met, mark the current root node as a final leaf node, and end the split; if the split condition is met, mark the current node as a parent node region The decision tree regression model performs splitting; For each input feature, including continuous numerical and Boolean features: presence or absence of anchor bolts, crack roughness coefficient JRC, crack length, crack angle, and impact velocity, the parent node region is traversed. All inside For each sample, sort them according to the magnitude of the feature value, and calculate the adjacent samples where every two feature values are different under that feature. and At the midpoint of the eigenvalues, select the region that makes the parent node's region... The midpoint of the eigenvalue with the largest reduction in mean squared error is taken as the optimal splitting threshold. Samples with eigenvalues less than or equal to the optimal splitting threshold are assigned to the left child node region, and samples with eigenvalues greater than the optimal splitting threshold are assigned to the right child node region. The specific calculation process is as follows: Recall is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, , is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, and its adjacent samples is the i-th feature value of the j-th sample, is the i-th feature value of the j-th sample, (2), The Parent region Left child region Right child region Feature value is represented as: (3), In the formula, represents the first feature value of the first sample; number of samples in the parent node region left child node region right child node region mean square error of the parent node region left child node region right child node region is calculated by the following equation: (4), wherein then respectively represent the average of the output dynamic intensity characteristic values of the samples within each region; The candidate split threshold is calculated using the following formula The amount of mean square error reduction brought about : (5), According to formula (5), each candidate split threshold is obtained The mean square error reduction amount brought by each candidate split threshold The optimal split scheme of this split is determined by formula (6) ): (6), In the formula, indicates the index of the optimal split feature, that is, the optimal split feature selected from all features; indicates the sample index corresponding to the optimal split threshold, that is, the optimal split position under the optimal split feature. According to the optimal splitting scheme ( Split the node, and after the split, if the left child node region... right child node region The number of internal samples is less than the minimum number of samples in the leaf nodes. If the child node splits, the split ends; otherwise, the child node is treated as the parent node, and the split continues using equations (2) to (6) until any of the following conditions are met, at which point the split terminates: the number of splits. , Or the maximum mean square error reduction < default tolerance .
5. The method of claim 4, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. After the termination of the split, the complete decision tree regression model is obtained, and the key structural parameters are extracted: the maximum tree depth , i.e., the total number of layers of the decision tree regression model; the number of branches of the th layer , i.e., the number of split nodes of the th layer, wherein is the layer index; and the feature importance of each input feature is calculated synchronously in the process of multiple splits, and the specific steps are as follows: The reduction in mean squared error of the decision tree regression model for the jth feature in the mth split is when the mth split is performed based on the jth feature being the best split scheme ; otherwise, ; In all of the decision tree regression models The cumulative sum of the reduction of the mean square error of the decision tree regression model by the first feature in the entire splitting process is: (7), In the formula, represents the number of parent node area samples of the first split; represents the total number of rock mass training set samples; The feature importance is normalized using the following equation : (8)。 6. The method of claim 5, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. First, use the key structural parameters of the complete decision tree regression model to determine the number of neurons in each hidden layer of the deep neural network prediction model and the connection strategy between the input layer feature neurons and the first hidden layer neurons. The specific steps are as follows: Mapping the decision tree regression model to a deep neural network: the root node of the decision tree regression model corresponds to the input layer of the network, the branching process generated by the decision tree regression model is implemented by the hidden layer, and the maximum tree depth of the decision tree regression model is Since the last layer of the decision tree regression model is the leaf node layer, the effective splitting depth is Corresponding to the total number of network hidden layers, the network output layer corresponds to the leaf node output of the final entire decision tree regression model; The number of neurons in each layer of the deep neural network is constructed: the number of input features in the rock mass training set The number of neurons in the input layer of the network is the number of output features in the rock mass training set The number of neurons in the output layer is the number of output features in the rock mass training set The number of neurons in the hidden layer is denoted as The number of neurons in the previous layer and the number of decision tree regression model in the first The number of branches in the layer Together determine: (9), Utilizing feature importance The manner in which the neurons of the input layer are connected to the neurons of the first hidden layer is determined as follows: The first layer hidden layer neuron number of the i-th input feature is calculated by using formula (10): : (10), In the formula, The function represents rounding the value inside the parentheses; represents the number of neurons in the first hidden layer of the deep neural network. Use formula (11) to constrain and optimize the connection between input features and the first layer of hidden layers, ensuring that each input feature is connected to at least one neuron: (11), while ensuring the number of neurons connected to all input features is equal to the number of neurons of the first hidden layer when the number of neurons connected to the least important feature is reduced; when the number of neurons connected to the most important feature is increased; until the final condition is met: (12), For each input feature connected neuron of the deep neural network, connect one by one a first hidden layer neuron; add a random connection for each input connected feature neuron that is 5% of the total number of input feature and first hidden layer neuron connections.
7. The method of claim 6, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. Use the number of branches of each layer of the complete decision tree regression model to initialize the connection between the neurons in each hidden layer of the deep neural network, and construct the connection topology between the neurons in each hidden layer of the deep neural network to improve the prediction accuracy under the condition of small sample containing noise; The first in the deep neural network The first hidden layer and the previous hidden layer The neurons between them are connected in the following steps: Determine the first Number of hidden layer neuron groups ; In the decision tree regression model, the first... Number of branches and the previous hidden layer of the corresponding deep neural network prediction model Number of neurons Minimum value in: (13), defining a mechanism of grouping neurons between hidden layers; from the second hidden layer dividing the hidden layers synchronously with the neurons of the neurons into groups; wherein each group of hidden layers contains neurons, each group of hidden layers contains neurons, represented as follows: , (14), wherein , are the number of neurons of the hidden layers and , respectively; is the floor function, which means to round down the value within the parentheses. From the second hidden layer onwards, the neurons are sequentially grouped according to the index sequence of all neurons in the hidden layer is determined using the following formula : (15), In the formula, Function generates a set of integers Random permutation of According to the hidden layer index sequence The hidden layer is determined using the following formula. The Middle Group number of each neuron : (16), In the formula, is a rounding up bracket, indicating rounding up the value in the bracket; represents the index number of the first neuron in the hidden layer ; and represents the index number of the last neuron in the hidden layer. For neurons divided into groups, forward connections between hidden layer and hidden layer are established; the forward connections are in sparse connection mode: the group number of all neurons in hidden layer and hidden layer is traversed and , when the group number of neurons is the same, full connections between hidden layer and hidden layer are established; Add 30% random connections, that is, each hidden layer neuron has a 30% probability of randomly connecting to any two neurons in the previous layer.
8. The method of claim 7, wherein the decision tree guides the deep neural network to predict the dynamic performance of the rock mass. The root mean square error is used as a performance evaluation index to complete the training of the deep neural network prediction model. The smaller the root mean square error, the better the prediction effect of the deep neural network prediction model. The calculation of the root mean square error is as follows: (17), In the formula, represents the number of all samples of training, represents the sample value of the training output of the deep neural network prediction model, represents the real output value of the corresponding sample.
9. A computer device, comprising: A processor and a memory are included, the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the rock mass dynamic performance prediction method of the decision tree guided deep neural network according to any one of claims 1-8.
Citation Information
Patent Citations
Blasting fragmentation prediction method of neural network based on data enhancement
CN113868943A
Potential landslide hidden danger identification method based on rock mass deterioration characteristics
CN119399634A
Complex rock mass stability assessment method based on back propagation neural network
CN119720750A
Dam safety perception fusion association method based on multi-modal space-time diagram neural network
CN121167580A
Risk assessment method of water inrush in tunnels constructed in water-rich grounds
US20240135069A1