Target seepage prediction method based on BO-GBRT strategy
Through the method based on the BO-GBRT strategy, we analyze and optimize the seepage influencing factors of reservoirs, dams and other targets, build a gradient boosting regression tree model and perform Bayesian optimization, solving the problem of low seepage prediction ability in the existing technology, and achieving It provides high-precision seepage prediction and safe operation guarantee.
Patent Information
- Application Number
- CN202410768148.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing technology lags behind in predicting seepage of target objects such as reservoirs and dams, and lacks effective prediction methods, resulting in low prediction capabilities, low prediction accuracy, and untimely prediction responses.
The target seepage prediction method based on the BO-GBRT strategy is adopted. By considering and analyzing the factors affecting the target seepage from multiple aspects, the influencing factors are further optimized based on the target seepage historical monitoring data, and the machine learning algorithm of the gradient boosting regression tree is used to construct the seepage. prediction model, and introduced the Bayesian optimization algorithm to optimize hyperparameters to obtain a seepage prediction model with optimal accuracy.
It achieves high-precision prediction of the future seepage of the target object, supports and ensures the safe operation of the target object, can automatically adjust the search strategy to adapt to different problem scenarios, without manual intervention, and handles the multi-factor complex data relationships of seepage prediction efficiently and conveniently.
Smart Images

Figure CN118333433B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of seepage prediction, and in particular to a target object seepage prediction method based on a BO-GBRT strategy. Background Art
[0002] In water conservancy projects, reservoirs and dams are key construction facilities, playing a core role in flood control, agricultural irrigation, water transportation, and power generation. In the operation process of reservoirs and dams after they are built, seepage is one of the most important factors affecting the safety of reservoirs and dams. The seepage state can directly reflect the working state of the target and plays an important role in the safety monitoring of the target. At present, the methods and equipment for monitoring the seepage of targets are very mature, and can realize the automatic real-time monitoring of the seepage of targets. However, the development of seepage prediction of reservoirs and dams is relatively lagging. Accurate prediction of seepage of targets can detect potential seepage problems in advance, timely detect changes in the safety situation of targets, and ensure the safe operation of targets.
[0003] Since the factors affecting the seepage of target objects are complex, and different targets are located in different environments, construction processes, materials or structures, their seepage laws and main influencing factors are also different. It is very difficult to predict the seepage of target objects based on physical process methods. Therefore, a universal system method for predicting the seepage of target objects and considering the use of new generation information technology to explore and solve the problem of target seepage prediction and achieve accurate prediction of target seepage are the directions of exploration and research. Summary of the invention
[0004] The purpose of the present invention is to address the problems of low prediction ability, low prediction accuracy and untimely prediction response caused by the lack of effective seepage prediction means in the prior art, and propose a target object seepage prediction method based on the BO-GBRT strategy. By considering and analyzing the factors affecting the seepage of the target object from many aspects, based on the historical monitoring data of the seepage of the target object, the influencing factors are further optimized to screen out the factors that mainly affect the seepage of the target object; a seepage prediction model is constructed using a machine learning algorithm of a gradient boosting regression tree, and a Bayesian optimization algorithm is introduced to optimize the hyperparameters of the gradient boosting regression tree model, so as to solve the complex problem of gradient boosting regression tree optimization and parameter adjustment, and obtain a seepage prediction model with the best accuracy, and finally achieve high-precision prediction of the future seepage situation of the target object, support and ensure the safe operation of the target object.
[0005] In order to solve the above technical problems, the present invention provides a target seepage prediction method based on the BO-GBRT strategy, comprising the following steps:
[0006] S1. Based on the influence of different factors on the seepage of the target object, determine the initial target object seepage influencing factors, and then determine the initial target object seepage influencing factor data based on the hysteresis effect of different initial target object seepage influencing factors;
[0007] S2, preprocessing the initial target seepage influencing factor data, historical seepage monitoring data, and the influencing factor data of the historical seepage monitoring data to construct a sample data set;
[0008] S3. Based on the sample data set, Spearman The correlation coefficient method is used to optimize the influencing factors of the initial target seepage and construct an optimal sample data set;
[0009] S4, establish a gradient regression tree model and train the selected sample data set, and introduce the Bayesian optimization algorithm to optimize the hyperparameters, obtain the optimal hyperparameters, and obtain the optimal seepage prediction model;
[0010] S5. Taking the preferred sample data set as input, based on the optimal seepage prediction model, perform seepage prediction.
[0011] Preferably, S2 comprises:
[0012] S21, constructing sample data based on historical seepage monitoring data of a certain location of the target object;
[0013] S22, dividing the sample data into intervals of a custom observation time period to obtain divided sample data, wherein each divided sample data represents the cumulative seepage volume of the location within the custom observation time period;
[0014] S23, based on the divided sample data, a Cartesian coordinate system is established with time and seepage rate as units, a line graph is drawn, and the divided sample data is screened out by visual inspection to obtain preferred sample data;
[0015] S24. Acquire the initial target object seepage influencing factor data corresponding to the preferred sample data according to the custom observation time period, and construct a sample data set in combination with the preferred sample data.
[0016] Preferably, the sample data set is represented as follows:
[0017] ;
[0018] in, X MN is the characteristic value, which represents the initial target seepage influencing factor data; Y M is the target variable, indicating the preferred sample data; N Indicates the number of factors affecting the initial target seepage;M Indicates the number of data groups in the sample data set.
[0019] Preferably, S3 comprises the following steps:
[0020] S31. Based on the sample data set, the sample data set is reconstructed in a form corresponding to the initial target seepage influencing factors and the preferred sample data to obtain a reconstructed sample data set, wherein the reconstructed sample data set is expressed as follows:
[0021] ;
[0022] S32, through Spearman The correlation coefficient method calculates the correlation coefficient between the eigenvalue and the target variable in each set of data in the reconstructed sample data set to obtain the initial correlation coefficient set;
[0023] S33, setting a correlation coefficient threshold and establishing a correlation coefficient screening rule;
[0024] S34. Based on the initial correlation coefficient set, a preferred sample data set is constructed through correlation coefficient screening rules.
[0025] Preferably, the correlation coefficient screening rule includes:
[0026] If the absolute value of the correlation coefficient is greater than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is retained; if the absolute value of the correlation coefficient is less than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is screened out.
[0027] Preferably, S4 comprises the following steps:
[0028] S41, dividing the preferred sample data set into a training data set and a test data set;
[0029] S42, establishing a gradient regression tree model and setting relevant parameters of the gradient regression tree model;
[0030] S43, defining the hyperparameter types and search space of the gradient regression tree model to be optimized;
[0031] S44, based on the hyperparameter type and the search space, input into the Bayesian optimization algorithm, and set the initial number of iterations, the number of cross-validation folds and the evaluation index;
[0032] S45. Using the training data set as input, the hyperparameters are optimized through the Bayesian optimization algorithm to obtain the optimal hyperparameters and the optimal seepage prediction model.
[0033] Preferably, the types of hyperparameters include the number of decision trees, the learning rate, the maximum depth of the tree, the minimum number of samples required to split a node, and the minimum number of samples a leaf node must have.
[0034] Preferably, the S5 comprises:
[0035] The test data set is input into the optimal seepage prediction model to predict the seepage volume, and the evaluation index between the predicted value and the actual value is calculated.
[0036] Preferably, if the evaluation index between the predicted value and the actual value is less than the preset value, that is, the expected accuracy requirement, return to S44 and adjust the initial number of iterations and the number of cross-validation folds, and continue to optimize the hyperparameters until the optimal percolation prediction model obtained meets the expected prediction accuracy requirements.
[0037] Beneficial effects of the present invention:
[0038] 1. This scheme considers and analyzes the factors affecting the seepage of the target object from many aspects, and further optimizes the influencing factors based on the historical monitoring data of the seepage of the target object, and screens out the factors that mainly affect the seepage of the target object; the machine learning algorithm of the gradient boosting regression tree is used to construct the optimal seepage prediction model, and the Bayesian optimization algorithm is introduced to optimize the hyperparameters of the gradient boosting regression tree model, which solves the complex problem of gradient boosting regression tree optimization and parameter adjustment, and obtains the seepage prediction model with the best accuracy, and finally realizes the high-precision prediction of the future seepage of the target object, supporting and ensuring the safe operation of the target object.
[0039] 2. This scheme adopts the BO-GBRT strategy. On the one hand, the Bayesian optimization algorithm predicts the optimal value of the function and its uncertainty through a probability model, thereby guiding the search process and improving the optimization efficiency; it also shows good performance when facing noise and nonlinear problems, and can automatically adjust the search strategy to adapt to different problem scenarios without manual intervention; on the other hand, the gradient boosting regression tree can capture complex data relationships by iteratively training decision trees and combining their prediction results, thereby achieving excellent performance in regression tasks; combining the two to deal with the seepage prediction problem can well handle the multi-factor complex data relationships of seepage prediction, and is efficient and convenient.
[0040] 3. This scheme conducts optimal analysis of influencing factors based on the historical monitoring data of the target seepage, and then constructs a prediction model. This method is applicable to the seepage prediction of any target object. The seepage prediction model is constructed using the machine learning algorithm of the gradient boosting regression tree. For the problem of multi-feature parameter regression, the gradient boosting regression tree can automatically learn the most influential features for the prediction target, and minimize the loss function by gradually building the model, with high prediction accuracy.
[0041] 4. This solution can enrich the types and quantity of samples by constructing an optimal sample data set, providing more comprehensive support for subsequent data analysis and model training. SpearmanThe correlation coefficient method calculates and reconstructs the sample data set to obtain the initial correlation coefficient set, sets the correlation coefficient threshold and establishes the correlation coefficient screening rules, so that the data in the preferred sample data set has higher quality and reliability. Such data as a sample set can improve the accuracy and credibility of data analysis and reduce the deviation of analysis results caused by data quality problems.
[0042] 5. This plan adopts Spearman The correlation coefficient method, with its independence on data distribution, is applicable to data of any distribution type, especially when the data does not meet the normal distribution assumption. It does not require the data to have the same measurement unit and is not affected by extreme values, so it is more stable when dealing with skewed or outlier-rich data. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.
[0044] Figure 1 This is a flow chart of the target seepage prediction method based on the BO-GBRT strategy of the present invention;
[0045] Figure 2 It is a specific implementation flow chart of the present invention;
[0046] Figure 3 A scatter plot comparing predicted values and actual values of an example of the present invention;
[0047] Figure 4 It is a comparison curve diagram of the predicted value and the actual value of the example of the present invention. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] Example 1: Figure 1 As shown in FIG. 1 , the target seepage prediction method based on the BO-GBRT strategy includes the following steps:
[0050] S1. Based on the influence of different factors on the seepage of the target object, the initial target seepage influencing factors are determined, and then based on the hysteresis effect of different initial target seepage influencing factors, the initial target seepage influencing factor data are determined.
[0051] It is understandable that if the target object is a water conservancy project such as a reservoir, dam, or flood control facility, the factors that affect the seepage of the target object mainly include the target object's material and structure, geological conditions, design and construction quality, and hydrological environment. The target object is a dam, for example. The dam material and structure refer to the materials used in the dam (such as soil, stone, concrete, etc.). The permeability directly determines the dam's anti-seepage capacity. Materials with high permeability are more likely to seep; geological conditions such as faults, joints, and other geological structures may lead to instability of the dam foundation and increase the risk of seepage; whether the structural design of the dam is reasonable and whether the construction quality is up to standard has an important impact on preventing seepage; cracks, poor joints, and other problems may lead to seepage; rainfall in the hydrological environment , water level changes, temperature changes and other factors may affect the seepage of the target object. For example, changes in the water level of the reservoir will affect the seepage pressure on both sides of the dam. When the water level rises, the seepage pressure increases, which may lead to intensified seepage. Since the influencing factors have a lag effect on the seepage of the target object, in order to further determine which time period before the seepage prediction day has the main effect on the seepage flow on the seepage prediction day, based on the lag effect size of different influencing factors, the initial target seepage influencing factors are divided into several influencing factors according to time periods. S2. Preprocess the initial target seepage influencing factors, historical seepage monitoring data and influencing factor data of historical seepage monitoring data to construct a sample data set.
[0052] Specifically, S2 includes:
[0053] S21, constructing sample data based on historical seepage monitoring data of a certain location of the target object;
[0054] S22, dividing the sample data into intervals of a custom observation time period to obtain divided sample data, wherein each divided sample data represents the cumulative seepage volume of the location within the custom observation time period;
[0055] S23, based on the divided sample data, a Cartesian coordinate system is established with time and seepage rate as units, a line graph is drawn, and the divided sample data is screened out by visual inspection to obtain preferred sample data;
[0056] S24. Acquire the initial target object seepage influencing factor data corresponding to the preferred sample data according to the custom observation time period, and construct a sample data set in combination with the preferred sample data.
[0057] Specifically, the sample dataset is represented as follows:
[0058] ;
[0059] in, X MN is the characteristic value, which represents the initial target seepage influencing factor data; Y M is the target variable, indicating the preferred sample data; N Indicates the number of factors affecting the initial target seepage; M Indicates the number of data groups in the sample data set.
[0060] It is understandable that the seepage volume at different locations of the dam varies and is affected by different factors. By constructing sample data based on the historical seepage volume monitoring data at a certain location of the dam, the change of the dam seepage volume can be analyzed more precisely. At the same time, the sample data can be the seepage volume monitoring value for a certain location or a collection of seepage volume monitoring values at multiple locations.
[0061] Since the continuous change of the dam seepage data actually monitored under stable conditions over time will not show any sudden changes in values, when drawing a line graph, any sudden changes in the values (noise values) on the coordinate axis must be deleted.
[0062] S3. Based on the sample data set, Spearman The correlation coefficient method is used to optimize the influencing factors of the initial target seepage and construct an optimal sample data set.
[0063] Specifically, S3 includes the following steps:
[0064] S31. Based on the sample data set, the sample data set is reconstructed in a form corresponding to the initial target seepage influencing factors and the preferred sample data to obtain a reconstructed sample data set, wherein the reconstructed sample data set is expressed as follows:
[0065] ;
[0066] S32, through Spearman The correlation coefficient method calculates the correlation coefficient between the eigenvalue and the target variable in each set of data in the reconstructed sample data set to obtain the initial correlation coefficient set;
[0067] S33, setting a correlation coefficient threshold and establishing a correlation coefficient screening rule;
[0068] S34. Based on the initial correlation coefficient set, a preferred sample data set is constructed through correlation coefficient screening rules.
[0069] This embodiment adopts SpearmanThe correlation coefficient method, with its independence on data distribution, is applicable to data of any distribution type, especially when the data does not meet the normal distribution assumption. It does not require the data to have the same measurement unit and is not affected by extreme values, so it is more stable when dealing with skewed or outlier-rich data.
[0070] Specifically, the correlation coefficient screening rules include:
[0071] If the absolute value of the correlation coefficient is greater than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is retained; if the absolute value of the correlation coefficient is less than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is screened out.
[0072] Understandably, Spearman The correlation coefficient is between {-1, 1}. The absolute value of the correlation coefficient between 0.8-1.0 represents a strong correlation, between 0.6-0.8 represents a strong correlation, 0.4-0.6 represents a strong correlation, and less than 0.4 represents a weak correlation. Since the seepage effect is affected by multiple external factors, in order to consider multiple factors as much as possible, only the factors with a correlation less than the preset value of the correlation coefficient are eliminated during parameter selection. The preset value of the correlation coefficient is based on the project requirements. Spearman The range of correlation coefficients is custom set, which can be 0.2, 0.3, 0.4, etc. The remaining influencing factors after being eliminated are considered to be the main influencing factors of the target dam seepage. Spearman Correlation coefficient, according to the above principles, the influencing factors of the initial target seepage are eliminated to obtain the main influencing factors affecting the seepage of the target dam, that is, the corresponding data are eliminated from the sample data set obtained in S2 to obtain the optimal sample data set.
[0073] This embodiment also enriches the types and quantities of samples by constructing an optimal sample data set, providing more comprehensive support for subsequent data analysis and model training. Spearman The correlation coefficient method calculates and reconstructs the sample data set to obtain the initial correlation coefficient set, sets the correlation coefficient threshold and establishes the correlation coefficient screening rules, so that the data in the preferred sample data set has higher quality and reliability. Such data as a sample set can improve the accuracy and credibility of data analysis and reduce the deviation of analysis results caused by data quality problems.
[0074] S4. Establish a gradient regression tree model and train the selected sample data set, and introduce the Bayesian optimization algorithm to optimize the hyperparameters to obtain the optimal hyperparameters and the optimal seepage prediction model.
[0075] Specifically, S4 includes the following steps:
[0076] S41, dividing the preferred sample data set into a training data set and a test data set;
[0077] S42, establishing a gradient regression tree model and setting relevant parameters of the gradient regression tree model;
[0078] S43, defining the hyperparameter types and search space of the gradient regression tree model to be optimized;
[0079] S44, based on the hyperparameter type and the search space, input into the Bayesian optimization algorithm, and set the initial number of iterations, the number of cross-validation folds and the evaluation index;
[0080] S45. Using the training data set as input, the hyperparameters are optimized through the Bayesian optimization algorithm to obtain the optimal hyperparameters and the optimal seepage prediction model.
[0081] It is understandable that setting the parameters related to the gradient regression tree model can be setting the number of initial trees, the learning rate, and the random state value. The evaluation index can be a scoring function, including R 2 , accuracy, precision, recall, MSE (mean square error), MAE (mean absolute error), CC / PCC (correlation coefficient), etc. Among them, R 2 It is the evaluation indicator we commonly use. R 2 As an evaluation indicator, it is used to evaluate the degree of fit of the model to the data. Its value range is from 0 to 1. The closer it is to 1, the better the fit of the model. In statistics, R 2 Evaluation indicators usually indicate the accuracy of the model's predictions. The closer the value is to 1, the better the model's prediction effect is. Conversely, if the value is close to 0, it indicates that the model's prediction effect is worse.
[0082] Specifically, the types of hyperparameters include the number of decision trees, the learning rate, the maximum depth of the tree, the minimum number of samples required to split a node, and the minimum number of samples a leaf node must have.
[0083] This embodiment adopts the BO-GBRT strategy. On the one hand, the Bayesian optimization algorithm predicts the optimal value of the function and its uncertainty through a probability model, thereby guiding the search process and improving the optimization efficiency; and it shows good performance when facing noise and nonlinear problems, and can automatically adjust the search strategy to adapt to different problem scenarios without manual intervention; on the other hand, the gradient boosting regression tree can capture complex data relationships by iteratively training decision trees and combining their prediction results, thereby achieving excellent performance in regression tasks; combining the two to deal with the seepage prediction problem can well handle the multi-factor complex data relationships of seepage prediction, and is efficient and convenient.
[0084] S5. Taking the preferred sample data set as input, based on the optimal seepage prediction model, perform seepage prediction.
[0085] Specifically, S5 includes:
[0086] The test data set is input into the optimal seepage prediction model to predict the seepage volume, and the evaluation index between the predicted value and the actual value is calculated.
[0087] Specifically, if the evaluation index between the predicted value and the actual value is less than the preset value, return to S44 and adjust the initial number of iterations and the number of cross-validation folds, and continue to optimize the hyperparameters until the optimal percolation prediction model obtained meets the expected requirements of prediction accuracy.
[0088] It is understood that the preset value is a custom setting within the range of the selected evaluation indicator according to the project requirements. R 2 To express, it can be 0.4, 0.5, 0.7, etc. If the evaluation index is less than the preset value, return to S44 and adjust the number of iterations and the number of cross-validation folds in the Bayesian optimization algorithm, and continue to optimize the hyperparameters until the optimal percolation prediction model meets the expected requirements of prediction accuracy.
[0089] This embodiment considers and analyzes the factors affecting the seepage of the target object from many aspects, and based on the historical monitoring data of the seepage of the target object, further optimizes the influencing factors and screens out the factors that mainly affect the seepage of the target object; the machine learning algorithm of the gradient boosting regression tree is used to construct the optimal seepage prediction model, and the Bayesian optimization algorithm is introduced to optimize the hyperparameters of the gradient boosting regression tree model, which solves the problem of complex optimization and parameter adjustment of the gradient boosting regression tree, and obtains the seepage prediction model with the best accuracy, and finally realizes the high-precision prediction of the future seepage conditions of the target object, and supports and ensures the safe operation of the target object.
[0090] Furthermore, Example 2 is an extension of Example 1, and is specifically as follows:
[0091] likeFigure 1 , Figure 2 As shown, the specific implementation steps are as follows:
[0092] Step 1: Based on the characteristics of the influence of different factors on dam seepage, 31 influencing factors of dam seepage are preliminarily determined. Step 2: Based on the 31 influencing factors preliminarily determined in step 1, the historical seepage monitoring data of the target dam and the corresponding influencing factor data are collected and sorted, and pre-processed to remove the noise value, and a sample data set containing seepage influencing factors and corresponding seepage is constructed. Step 3: Based on the sample data set constructed in step 2, use Spearman The correlation coefficient method is used to optimize the influencing factors of the 31 dam seepages preliminarily determined in step 1, analyze the correlation between different influencing factors and the seepage of the target dam, determine the main factors affecting the seepage of the target dam, and construct a new sample data set. Step 4: The sample data set obtained in step 3 is trained using the machine learning algorithm of the gradient boosting regression tree, and the Bayesian optimization algorithm is introduced to automatically optimize the hyperparameters of the gradient boosting regression tree model to obtain the optimal hyperparameters, thereby obtaining the target dam seepage prediction model with the optimal hyperparameters. Step 5: The main influencing factors corresponding to the seepage of the target dam in the future time period are input into the target dam seepage prediction model established in step 4 to predict the seepage.
[0093] Step 1: Based on the characteristics of the influence of different factors on the seepage of the target object, 31 influencing factors of the seepage of the target object are preliminarily determined, and the specific implementation is as follows:
[0094] Step 1.1. The factors that affect the seepage of the target object mainly include dam materials and structures, geological conditions, design and construction quality, and hydrological environment. Dam materials and structures refer to the materials used in the dam (such as soil, stone, concrete, etc.). The permeability directly determines the dam's anti-seepage ability. Materials with high permeability are more likely to seep; geological conditions such as faults, joints and other geological structures may lead to instability of the dam foundation and increase the risk of seepage; whether the structural design of the dam is reasonable and whether the construction quality meets the standards has an important impact on preventing seepage; cracks, poor joints and other problems may lead to seepage; rainfall, water level changes, temperature changes and other factors in the hydrological environment may affect the seepage of the target object. For example, changes in the reservoir water level will affect the seepage pressure on both sides of the dam. When the water level rises, the seepage pressure increases, which may lead to intensified seepage.
[0095] For a certain target, the dam material and structure, geological conditions, design and construction quality have been determined. When the target is stable and operating normally, it will not mutate over time. Only the hydrological environment factors will mutate over time and affect the seepage of the target. However, as time goes by, the material structure inside the target will gradually change, thereby affecting the seepage of the target. Therefore, the timelinessT It is also a factor that affects the seepage of the target object. In this embodiment, factors that affect the seepage of the target object are considered according to the actual conditions of different projects. Under normal circumstances, the state of the target object is stable, and its dam material and structure, geological conditions, design and construction quality have been determined, so the hydrological environment factors are selected as the main considerations; if the state of the target object is complex, the factors that affect the seepage of the target object are selected considering the actual conditions of different projects. Based on the above reasons, the research object is in a stable state, and the factors that can be selected to affect the seepage of the target object are mainly temperature. Q , Rainfall R , upstream water level H 上 , downstream water level H 下 and timeliness T There are 5 factors that affect the seepage of the target. Therefore, the initial selection is temperature. Q , Rainfall R , upstream water level H 上 , downstream water level H 下 and timeliness T 5 factors.
[0096] Among the influencing factors preliminarily selected in step 1.2 and step 1.1, since the influencing factors have a lag effect on the seepage of the target object, in order to further determine which time period before the seepage prediction day has the most significant effect on the seepage volume on the seepage prediction day, each type of influencing factors (preliminary selected influencing factors) is divided into several influencing factors according to time periods based on the lag effect size of different influencing factors. In this example, each influencing factor is specifically divided into time periods according to the lag effect time of common projects, such as rainfall. R Before the seepage forecast day, it is divided into 1 to 2 days before the seepage forecast day. L R1-2 2 to 3 days before the seepage forecast date L R2-3 Etc. Specifically, each influencing factor is divided according to time periods to determine the initial target seepage influencing factor data, that is, the influencing factors are based on the seepage prediction date, and each influencing factor is further divided into a certain time period before the seepage prediction date, and then the average value or cumulative value is calculated to determine the initial target seepage influencing factor data;
[0097] Among them, the seepage prediction day and time period are selected according to the actual conditions of the specific project. For the seepage influencing factors of the target object with a large hysteresis effect, a longer time period can be selected to calculate the average value or cumulative value, so as to reduce the error and thus increase the accuracy of the prediction, such as 10 days, 20 days, 30 days, etc. For the seepage influencing factors of the target object with a small hysteresis effect, a shorter time period can be selected to calculate the average value or cumulative value, so as to reduce the amount of calculation under the condition of a more reasonable error, such as 1 day, 2 days, 3 days, etc.
[0098] In this embodiment, the temperature Q , Rainfall R , upstream water level H 上 and downstream water level H 下 The effect on the seepage of the target object has a hysteresis. In order to accurately predict the seepage of the target object, the temperature Q , Rainfall R , upstream water level H 上 and downstream water level H 下 The four factors are based on the seepage prediction date, and each influencing factor is further divided into the average value or cumulative value of a certain period of time before the seepage prediction date, a total of 29 factors. The details are as follows: Step 1.2.1, due to temperature Q The hysteresis effect is large, so the temperature is divided into P Q1-10 , P Q10-20 , P Q20-30 , P Q30-40 , P Q40-50 , P Q50-60 , P Q60-70 , P Q70-80 , P Q80-90 , 8 influencing factors. P Q1-10 It represents the average temperature 1-10 days before the observation day, and so on.
[0099] Step 1.2.2: Due to rainfall R , upstream water level H 上 and downstream water level H 下 The hysteresis effect of the factor on the target object is small, so the rainfall R Divided into L R1-2 ,L R2-3 , L R3-5 , L R5-10 , L R10-15 , L R15-20 , L R20-30 , 7 influencing factors, the upstream water level H 上 Divided into P H上1-2 , P H上2-3 , P H上3-5 , P H上5-10 , P H上10-15 , P H上15-20 , P H上20-30 , 7 influencing factors, the downstream water level H 下 Divided into P H下1-2 , P H下2-3 , P H下3-5 , P H下5-10 , P H下10-15 , P H下15-20 , P H下20-30 , 7 influencing factors. L R1-2 Represents the cumulative value of rainfall 1 to 2 days before the observation date; P H上1-2 Represents the average upstream water level 1 to 2 days before the observation date; P H下1-2 It represents the average value of the downstream water level 1 to 2 days before the observation day; and so on for others.
[0100] Step 1.3: From the time the target object is built, the material and structure inside the target object will gradually change under the influence of various external factors over time, which will in turn affect the seepage of the target object. Therefore, the aging T Divided into C and ln C Two factors, C 0.01 T , T is the cumulative number of observation days.
[0101] Step 2: Based on the 31 influencing factors initially determined in step 1, collect and organize the historical seepage monitoring data of the target object and the corresponding influencing factor data, and perform preprocessing to remove the noise value, and construct a sample data set containing the seepage influencing factors and the corresponding seepage. The specific implementation is as follows:
[0102] Step 2.1, the seepage volume at different locations of the target object varies, and the influencing factors are different. The sample data is constructed based on the seepage volume monitoring value at a certain location of the target object, which can analyze the change of the seepage volume of the target object more finely. In order to facilitate the prediction and analysis, the collected historical seepage volume monitoring data at a certain location of the target object is divided into intervals of 3 days. Each data represents the cumulative seepage volume at that location within 3 days, and the corresponding observation time is the first day of the 3 days.
[0103] Step 2.2: Since the actual monitored target seepage data will not have sudden changes in value over time under a stable state, any sudden changes (dryness) should be deleted. XLCEL A line graph was drawn using time-percolation flow, and the abnormal mutation values that did not conform to the rules were manually deleted by visual inspection.
[0104] Step 2.3: After the denoising process in step 2.2, the seepage data at a certain location of the target object is collected. According to the observation time of each seepage, the corresponding 31 influencing factor data in step 1 are collected. Combined with the seepage data in step 2.2, a sample data set is formed. The sample data set contains N Each set of data contains 31 feature values and 1 target value. The constructed sample data set is as follows:
[0105] ;
[0106] in, X MN is the characteristic value, which represents the initial target seepage influencing factor data; Y M is the target variable, indicating the preferred sample data; N Indicates the number of factors affecting the initial target seepage; M Indicates the number of data groups in the sample data set.
[0107] Step 3: Based on the sample data set constructed in step 2, use Spearman The correlation coefficient method is used to optimize the influencing factors of the 31 target seepages preliminarily determined in step 1, analyze the correlation between different influencing factors and the target seepage, determine the main factors affecting the target seepage, and construct a new sample data set. The specific implementation is as follows:
[0108] Step 3.1, based on the sample data set constructed in step 2, reconstruct it into 31 sets of data according to different influencing factors, that is, each influencing factor and the seepage volume at a certain position of the target object are combined into a set of data. The details are as follows:
[0109] ;
[0110] Step 3.2: Use the 31 sets of data constructed in step 3.1 Spearman The correlation coefficient method calculates the X and Y The correlation coefficient of . Spearman The calculation formula of the correlation coefficient is as follows:
[0111] ;
[0112] in r yes Spearman Correlation coefficient, d i is the level difference between the influencing factors and the seepage rate, n is the number of data.
[0113] Depend on Spearman The correlation coefficient formula is used to further obtain the correlation coefficient of each group of data in step 3.1. Spearman The correlation coefficient calculation formula is:
[0114] ;
[0115] in, r i Indicates i Data set Spearman Correlation coefficient, express X mi The level difference, express Y m The level difference.
[0116] Step 3.3, Spearman The correlation coefficient is between {-1, 1}, | r | Between 0.8-1.0 represents a strong correlation, between 0.6-0.8 represents a strong correlation, 0.4-0.6 represents a strong correlation, and less than 0.4 represents a weak correlation. Since the seepage effect is affected by multiple external factors, in order to consider multiple factors as much as possible, only the factors with a correlation less than the preset value of the correlation coefficient are eliminated during parameter selection. The remaining influencing factors after elimination are considered to be the main influencing factors of the target seepage. According to the data obtained in step 3.1 for each group SpearmanCorrelation coefficient, according to the above principles, the influencing factors determined in step 1 are eliminated to obtain the main influencing factors affecting the seepage of the target object. And the corresponding data are eliminated from the sample data set obtained in step 2 to obtain a new sample data set.
[0117] Step 4: The sample data set obtained in step 3 is trained using the machine learning algorithm of the gradient boosting regression tree, and the Bayesian optimization algorithm is introduced to automatically optimize the hyperparameters of the gradient boosting regression tree model to obtain the optimal hyperparameters, thereby obtaining the optimal percolation prediction model of the target object with the optimal hyperparameters. The specific implementation is as follows:
[0118] Step 4.1: randomly divide the sample data set obtained in step 3 into training set and test set in a ratio of 8:2.
[0119] Step 4.2, establish a gradient regression tree model, set the number of initial trees to 100, the learning rate to 0.1, and the random state value to 42.
[0120] Step 4.3, define the hyperparameter types and search space of the gradient regression tree model to be optimized. The hyperparameter types include the number of decision trees, learning rate, maximum depth of the tree, minimum number of samples required to split a node, and minimum number of samples a leaf node has. The search space for the number of decision trees is (50, 200), the search space for the learning rate is (0.01, 0.5), the search space for the maximum depth of the tree is (3-10), the search space for the minimum number of samples required to split a node is (2-10), and the search space for the minimum number of samples a leaf node has is (1-5).
[0121] Step 4.4: Input the gradient regression tree model established in step 4.2 and the hyperparameter types and search space of the gradient regression tree model to be optimized defined in step 4.3 into the Bayesian optimization algorithm, and set the initial number of iterations to 30, the number of cross-validation folds to 5, and the scoring function to R 2 as an evaluation indicator.
[0122] In step 4.5, the training data set is passed into the Bayesian optimization algorithm established in step 4.4 to perform hyperparameter optimization to obtain the optimal hyperparameters and the best gradient regression tree model.
[0123] Step 4.6: Input the test set into the optimal seepage prediction model for prediction and calculate the difference between the predicted value and the actual value. R 2 Among them, the evaluation index R 2 The value of is chosen to be 0.7. If R 2If it is less than 0.7, return to step 4.4 and manually adjust the number of iterations and the number of cross-validation folds in the Bayesian optimization algorithm, and continue to optimize the hyperparameters until the optimal percolation prediction model obtained meets the expected requirements of prediction accuracy, that is, the optimal percolation prediction model of the target object is successfully established.
[0124] Step 5: Input the main influencing factors corresponding to the seepage volume of the target object in the future time period into the optimal seepage prediction model of the target object established in step 4 to predict the seepage volume.
[0125] In a target object seepage prediction method based on the BO-GBRT strategy of the present invention: the function of step 3 is to optimize the 31 influencing factors affecting the target object seepage in step 1, and further determine the seepage influencing factors of the target object.
[0126] use Spearman The principle of the correlation coefficient method is to evaluate the correlation between two variables by calculating the difference in their rank sequences, eliminating the influence of the size of the variable value.
[0127] use Spearman The advantages of the correlation coefficient method are: it is independent of data distribution and is applicable to data of any distribution type, especially when the data does not meet the normal distribution assumption. It does not require the data to have the same measurement unit and is not affected by extreme values, so it is more robust when dealing with skewed or outlier-rich data.
[0128] In a target object seepage prediction method based on the BO-GBRT strategy of the present invention: the function of step 4 is to establish an optimal seepage prediction model for the target object based on the sample data set established in step 3.
[0129] The BO-GBRT strategy is adopted, and its principle is: use the machine learning algorithm of the gradient boosting regression tree for training, and introduce the Bayesian optimization algorithm to automatically optimize the hyperparameters of the gradient boosting regression tree model to obtain the optimal hyperparameters, thereby obtaining the optimal seepage prediction model of the target object with the optimal hyperparameters.
[0130] The advantages of adopting the BO-GBRT strategy are: on the one hand, the Bayesian optimization algorithm predicts the optimal value of the function and its uncertainty through a probability model, thereby guiding the search process and improving the optimization efficiency; and it shows good performance when facing noise and nonlinear problems, and can automatically adjust the search strategy to adapt to different problem scenarios without human intervention; on the other hand, the gradient boosting regression tree can capture complex data relationships by iteratively training decision trees and combining their prediction results, thereby achieving excellent performance in regression tasks; combining the two to deal with the problem of target seepage prediction can well handle the multi-factor complex data relationship of seepage prediction, and is efficient and convenient.
[0131] Embodiment 3 is an extension of Embodiment 2, and is specifically as follows:
[0132] The leakage monitoring data and environmental monitoring data of the right bank grouting corridor of a certain target object were obtained. The seepage data were preprocessed according to step 2, and the sample data set was established after removing the noise. A total of 102 sets of sample data were collected this time. Then, the characteristic parameters in the sample data set were optimized through step 3. The optimized characteristic parameters include P Q1-10 , L R1-2 , L R2-3 , P H上2-3 , P H上3-5 , P H上5-10 , P H上10-15 , C 、ln C There are 9 factors in total, namely, the average temperature 1-10 days before the observation day, the accumulated rainfall 1-2 days, the accumulated rainfall 2-3 days, the average upstream water level 2-3 days, the average upstream water level 3-5 days, the average upstream water level 5-10 days, the average upstream water level 10-15 days and the time factor. C and ln C ,in C 0.01 T , T The cumulative number of observation days, according to the optimized factors, re-establish the sample data set, and divide the training set and test set into 8:2 ratio, and get 21 test sets and 81 training sets. Establish the gradient boosting regression tree model, and use the Bayesian optimization algorithm to automatically optimize the hyperparameters of the gradient boosting regression tree model. Finally, the optimal hyperparameters are learning rate: correlation coefficient preset value 94, maximum depth: 9, minimum number of samples of leaf nodes: 1, minimum number of samples required to split nodes: 9, number of decision numbers: 68. Figure 3 , Figure 4 As shown, the predicted value of the test set is different from the actual value R 2 The number of samples in this example is relatively small. If the number of samples is further increased, the accuracy will be further improved.
[0133] The above specific embodiments are preferred embodiments of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the present specific embodiments. All equivalent changes made in accordance with the shape, structure, and method of the present invention are within the protection scope of the present invention.
Claims
1. The target seepage prediction method based on BO-GBRT strategy is characterized by: The steps include: S1. Based on the influence of different factors on the seepage of the target object, determine the initial target object seepage influencing factors, and then determine the initial target object seepage influencing factor data based on the hysteresis effect of different initial target object seepage influencing factors; S2, preprocessing the initial target seepage influencing factor data, historical seepage monitoring data, and the influencing factor data of the historical seepage monitoring data to construct a sample data set; S21, constructing sample data based on historical seepage monitoring data of a certain location of the target object; S22, dividing the sample data into intervals of a custom observation time period to obtain divided sample data, wherein each divided sample data represents the cumulative seepage volume of the location within the custom observation time period; S23, based on the divided sample data, a Cartesian coordinate system is established with time and seepage rate as units, a line graph is drawn, and the divided sample data is screened out by visual inspection to obtain preferred sample data; S24, obtaining the initial target seepage influencing factor data corresponding to the preferred sample data according to the custom observation time period, and constructing a sample data set in combination with the preferred sample data; S3. Based on the sample data set, Spearman The correlation coefficient method is used to optimize the influencing factors of the initial target seepage and construct an optimal sample data set; S31. Based on the sample data set, the sample data set is reconstructed in a form corresponding to the initial target seepage influencing factors and the preferred sample data to obtain a reconstructed sample data set, wherein the reconstructed sample data set is expressed as follows: ; S32, through Spearman The correlation coefficient method calculates the correlation coefficient between the eigenvalue and the target variable in each set of data in the reconstructed sample data set to obtain the initial correlation coefficient set; S33, setting a correlation coefficient threshold and establishing a correlation coefficient screening rule; S34, constructing a preferred sample data set based on the initial correlation coefficient set and by using correlation coefficient screening rules; S4, establish a gradient regression tree model and train the selected sample data set, and introduce the Bayesian optimization algorithm to optimize the hyperparameters, obtain the optimal hyperparameters, and obtain the optimal seepage prediction model; S41, dividing the preferred sample data set into a training data set and a test data set; S42, establishing a gradient regression tree model and setting relevant parameters of the gradient regression tree model; S43, defining the hyperparameter types and search space of the gradient regression tree model to be optimized; S44, based on the hyperparameter type and the search space, input into the Bayesian optimization algorithm, and set the initial number of iterations, the number of cross-validation folds and the evaluation index; S45, using the training data set as input, performing hyperparameter optimization through a Bayesian optimization algorithm to obtain optimal hyperparameters and an optimal seepage prediction model; S5, taking the preferred sample data set as input, and performing seepage prediction based on the optimal seepage prediction model; The sample dataset is represented as follows: ; in, X MN is the characteristic value, which represents the initial target seepage influencing factor data; Y M is the target variable, indicating the preferred sample data; N Indicates the number of factors affecting the initial target seepage; M Indicates the number of data groups in the sample data set.
2. The target seepage prediction method based on BO-GBRT strategy according to claim 1 is characterized in that: The correlation coefficient screening rules include: If the absolute value of the correlation coefficient is greater than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is retained; if the absolute value of the correlation coefficient is less than the preset value of the correlation coefficient, the reconstructed sample data corresponding to the absolute value of the correlation coefficient is screened out.
3. The target seepage prediction method based on BO-GBRT strategy according to claim 1 is characterized in that: The types of hyperparameters include the number of decision trees, the learning rate, the maximum depth of the tree, the minimum number of samples required to split a node, and the minimum number of samples a leaf node must have.
4. The target seepage prediction method based on BO-GBRT strategy according to claim 1 is characterized in that: The S5 includes: The test data set is input into the optimal seepage prediction model to predict the seepage volume, and the evaluation index between the predicted value and the actual value is calculated.
5. The target seepage prediction method based on BO-GBRT strategy according to claim 4 is characterized in that: If the evaluation index between the predicted value and the actual value is less than the preset value, return to S44 and adjust the initial number of iterations and the number of cross-validation folds, and continue to optimize the hyperparameters until the optimal percolation prediction model obtained meets the expected requirements of prediction accuracy.
