A method and system for predicting the growth rate of aluminum alloy corrosion fatigue cracks
Patent Information
- Application Number
- CN202410307228.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-18
AI Technical Summary
[0005]针对现有技术中存在的腐蚀疲劳数据维度问题,本发明的目的在于提出基于数据驱动的铝合金腐蚀疲劳裂纹扩展速率预测方法及系统
[0036] The Bayesian Bootstrap-GBRT (BB-GBRT) algorithm proposed by this invention based on the characteristics of multi-variable aluminum alloy corrosion fatigue data is suitable for variable selection and model construction of high-dimensional data, in the field of prediction of corrosion fatigue life of materials in the natural environment and similar research fields. The application has feasibility and practical value; by improving the GBRT model, the feature importance ranking that affects the model prediction effect can be effectively obtained, which has a certain interpretability; compared with the traditional GBRT model, the generalization of the BB-GBRT model It has higher ability and prediction accuracy, and has better robustness. It is more suitable for predicting the corrosion fatigue crack growth rate of aluminum alloys and can provide a reference for its practical engineering applications; the present invention can predict the aluminum alloys of samples with different initial test conditions. The rate of corrosion fatigue crack expansion has a wide range of applications, high accuracy and good stability.
Smart Images

Figure CN118211475B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of material corrosion fatigue life prediction and data dimension reduction in machine learning, and specifically relates to a method and system for predicting the corrosion fatigue crack growth rate of an aluminum alloy. Background Art
[0002] Aluminum alloy materials have the advantages of low cost, high strength, and low density, and they play an important role in the main structural materials of modern aircraft. However, aircraft are often exposed to corrosive environments such as rain, salt spray, and humid air during use. Aluminum alloy materials will be under the dual pressure of corrosion damage and fatigue damage caused by the environment during the service of the aircraft. Their lifespan is often greatly reduced, which brings serious safety problems. Due to the coupling effect of corrosion and fatigue, such corrosion fatigue problems are often more complicated. Therefore, how to conduct corrosion fatigue life assessment of such materials and maintain the reliability and safety of aircraft in service is an important issue of great concern to the aviation engineering community.
[0003] Since the inherent mechanism of corrosion fatigue is very complex and the fatigue crack growth rate is affected by many factors such as materials, environment, and mechanical properties, the corrosion fatigue problem can be regarded as a typical nonlinear system affected by multiple factors. In the past century, people have conducted in-depth research on crack growth under fatigue loads and developed many theoretical models and techniques to predict fatigue failure. The theoretical model of fatigue analysis is based on data obtained from a large number of experiments. The development of data mining and machine learning provides a new way to use modern tools to establish a corrosion fatigue crack growth rate prediction model based on experimental data. Since machine learning does not make any assumptions about the basic distribution of the model, it introduces higher complexity and computational complexity, uses algorithms to mine the relationship between multidimensional data, and obtains results that approximate the basic distribution. In recent years, it has been widely used in the prediction of material service behavior.
[0004] At present, most of the articles using machine learning for corrosion fatigue life prediction are targeted at specific materials and lack universality. Moreover, as a data-driven method, the accuracy of machine learning models is heavily dependent on the quality and quantity of sample data. Simulating stress corrosion crack propagation experiments in high-temperature, high-pressure, salt spray environments for aluminum alloys is difficult, time-consuming, and costly, resulting in a small amount of aluminum alloy corrosion fatigue test data and low quality. Using small sample, low-quality data for training will cause large deviations in model prediction results, which poses a high safety risk in engineering applications. Summary of the invention
[0005] In view of the corrosion fatigue data dimension problem existing in the prior art, the purpose of the present invention is to propose a data-driven method and system for predicting the corrosion fatigue crack growth rate of aluminum alloys.
[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] The first aspect of the present invention is to provide a method for predicting the corrosion fatigue crack growth rate of an aluminum alloy, comprising the following steps:
[0008] S1: Collect the fatigue crack growth data characteristics of aluminum alloy and the corresponding fatigue crack growth rate da / dN to form a data set;
[0009] S2: preprocess the data set to obtain a processed data set;
[0010] S3: Reconstruct the data samples of the processed data set through the Bayesian Bootstrap algorithm, train multiple models based on the reconstructed data samples using the GBRT algorithm, and determine the optimal features by comparing the accuracy of model one, model two, and model three;
[0011] S4: According to the optimal features determined in S3, the prediction model is trained using the GBRT algorithm based on the reconstructed data samples to obtain the optimal model;
[0012] S5: Inputting data corresponding to the optimal characteristics of the aluminum alloy to be predicted into the optimal model to obtain a predicted value of the corrosion fatigue crack growth rate of the aluminum alloy.
[0013] In some embodiments, the data sets used by Model 1, Model 2, and Model 3 in S3 are respectively Dataset 1, Dataset 2, and Dataset 3. The features contained in the three data sets are screened according to feature importance and threshold, and features with feature importance greater than the threshold pass the screening.
[0014] In some embodiments, the threshold value of dataset one is 0; the threshold value of dataset two is 0.5; and the threshold value of dataset three is 0.7.
[0015] In some implementations, the feature importance formula is:
[0016]
[0017] Among them, α i is the feature importance of the i-th feature, m i is the number of times the i-th feature is selected by the model, and B is the number of reconstructed data sets.
[0018] In some embodiments, 70% of Dataset 1, Dataset 2, and Dataset 3 are training data sets, and 30% are testing data sets.
[0019] In some embodiments, mean square error MSE, goodness of fit R 2 As accuracy;
[0020] The mean square error MSE is:
[0021]
[0022] Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set;
[0023] Goodness of fit R 2 for:
[0024]
[0025] Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set, It represents the average value of the true fatigue crack growth rate of N samples.
[0026] In some embodiments, the data set is preprocessed in S2, the non-numerical data in the data set is processed by dummy variable encoding, the numerical data is normalized, and the fatigue crack growth rate da / dN under the corrosion state corresponding to each group of data is logarithmically processed to obtain lg(da / dN).
[0027] In some embodiments, the normalization formula is:
[0028]
[0029] Among them, x i and Respectively represent the true value and normalized value of the i-th variable in the sample; max(x i ) and min(x i ) represent the maximum and minimum value of the i-th variable respectively.
[0030] In some embodiments, the fatigue crack growth data features in S1 include material grade, heat treatment state, sampling direction, chemical composition, specimen shape, initial crack length, waveform, frequency, stress ratio, pH value, chloride ion concentration, temperature, environment category, elastic modulus, yield strength, tensile strength, elongation, and stress intensity factor range.
[0031] The second aspect of the present invention is to provide an aluminum alloy corrosion fatigue crack growth rate prediction system, comprising the following modules:
[0032] The data collection and processing module is deployed on the programmable control surface and is used to collect the fatigue crack growth data characteristics and the corresponding fatigue crack growth rate da / dN. The collected data is coded and normalized by dummy variables, and the fatigue crack growth rate under the corrosion state corresponding to each set of data is processed by logarithm to obtain the processed data set;
[0033] The model training and testing module is deployed on the programmable control plane and used to build the model. The processed data set is reconstructed into data samples through the Bayesian Bootstrap algorithm. Three data sets are generated according to the feature importance and threshold. The GBRT algorithm is used to train the model on the three data sets respectively. The mean square error (MSE) and goodness of fit (R) are used. 2 As the accuracy evaluation of the trained model, select the best model and the best features;
[0034] The prediction module is deployed on the programmable control surface, and the data corresponding to the optimal characteristics of the aluminum alloy to be predicted are input into the optimal model to obtain the predicted value of the corrosion fatigue crack growth rate of the aluminum alloy.
[0035] The present invention has the following beneficial effects:
[0036] The Bayesian Bootstrap-GBRT (BB-GBRT) algorithm proposed by the present invention is suitable for variable selection and model construction of high-dimensional data, and has feasibility and practical value in the prediction of corrosion fatigue life of materials in natural environment and similar research fields; by improving the GBRT model, the feature importance ranking that affects the prediction effect of the model can be effectively obtained, and it has certain interpretability; compared with the traditional GBRT model, the BB-GBRT model has higher generalization ability and prediction accuracy, and has better robustness, and is more suitable for predicting the corrosion fatigue crack growth rate of aluminum alloys, and can provide a reference for its actual engineering application; the present invention can predict the corrosion fatigue crack growth rate of aluminum alloy samples under different initial test conditions, and has a wide range of application, high accuracy and good stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a feature importance ranking diagram of the present invention;
[0038] Figure 2 It is a fitting result diagram based on the BB-GBRT model of the present invention;
[0039] Figure 3 It is a fitting result diagram based on the GBRT model of the present invention;
[0040] Figure 4 It is a fitting result diagram based on the BLR model of the present invention;
[0041] Figure 5 It is a generalization result diagram based on the BB-GBRT model of the present invention;
[0042] Figure 6 It is a generalization result diagram based on the GBRT model of the present invention;
[0043] Figure 7 This is a generalization result diagram based on the BLR model of the present invention;
[0044] Figure 8 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0045] The present invention will be further described in detail below in conjunction with the accompanying drawings. The embodiments described with reference to the accompanying drawings are exemplary and intended to explain the present invention, but should not be construed as limiting the present invention.
[0046] Example
[0047] A method for predicting the corrosion fatigue crack growth rate of aluminum alloys, such as Figure 8 The following steps are shown:
[0048] S1: Corrosion fatigue data from 180 papers related to corrosion fatigue of aluminum alloy materials were collected as simulation data sets, and the fatigue crack growth data characteristics of aluminum alloy and the corresponding fatigue crack growth rate da / dN were obtained to form an aluminum alloy corrosion fatigue crack growth data set. The fatigue crack growth data characteristics include material grade, heat treatment state, sampling direction, chemical composition (wt%, Cu, Mn, Mg, Cr, Si, Zn, Ti, Fe), sample shape, initial crack length, waveform, frequency, stress ratio (R), pH value, chloride ion concentration, temperature, environment category, elastic modulus, yield strength, tensile strength, elongation and stress intensity factor variation range ΔK.
[0049] S2: The aluminum alloy corrosion fatigue crack growth data set is preprocessed. The non-numerical data in the data set are processed by dummy variable coding, such as material grade, heat treatment status, sampling direction, sample shape, waveform, and environmental category; the numerical data are normalized, such as chemical composition (wt%, Cu, Mn, Mg, Cr, Si, Zn, Ti, Fe), initial crack length, frequency, stress ratio (R), PH, chloride ion concentration, temperature, elastic modulus, yield strength, tensile strength, elongation, ΔK. The normalization formula is:
[0050]
[0051] Among them, x i and Respectively represent the true value and normalized value of the i-th variable in the sample; max(x i ) and min(x i ) represent the maximum and minimum values of the i-th variable respectively;
[0052] Finally, the fatigue crack growth rate da / dN under the corrosion state corresponding to each set of data is logarithmically processed to obtain lg(da / dN) and the processed data set is obtained.
[0053] S3: The processed data set is sampled by the Bayesian Bootstrap algorithm to reconstruct 1000 data samples. The first step of the BB-GBRT algorithm is executed. For each reconstructed Bayesian Bootstrap data sample, the GBRT algorithm is used to train the model. The statistics of the number of times the feature is selected by each model are shown in Table 1.
[0054] Table 1
[0055]
[0056] As shown in Table 1, the credibility of most features selected by the model is high. Combined with the probability of being selected, the threshold θ of feature selection is set to {0, 0.5, 0.7} to generate three data sets:
[0057] The threshold of dataset 1 is 0, and the original dataset without feature selection contains the following features:
[0058] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25};
[0059] The threshold of dataset 2 is 0.5, and the features included are
[0060] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
[0061] The threshold of data set 3 is 0.7, and the features included are
[0062] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}.
[0063] The feature selection probability is equated with the feature importance. The feature importance of these 25 features is ranked as follows: Figure 1 As shown;
[0064] The feature importance formula is:
[0065]
[0066] α i is the feature importance of the i-th feature, m i is the number of times the i-th feature is selected by the model, and B is the number of reconstructed data sets;
[0067] In order to select the appropriate threshold, the second step of the BB-GBRT algorithm is performed on the three data sets: 100 samples are randomly selected from the three data sets, of which 70% are divided into training data sets and 30% are divided into test data sets; then the GBRT algorithm is applied to train the models on the three data sets respectively, where model one is trained using data set one, model two is trained using data set two, and model three is trained using data set three. The mean square error and goodness of fit are used as the accuracy to evaluate the three models after training. The evaluation results are shown in Table 2.
[0068] Among them, the mean square error MSE is:
[0069] The mean square error MSE is:
[0070]
[0071] Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set;
[0072] Goodness of fit R 2 for:
[0073]
[0074] Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set, It represents the average value of the true fatigue crack growth rate of N samples.
[0075] Table 2
[0076] data Threshold θ MSE <![CDATA[R 2 ]]> Dataset 1 0 0.023 0.971 Dataset 2 0.5 0.015 0.987 Dataset 3 0.7 0.036 0.965
[0077] As shown in Table 2, by comparing the models with different feature selection thresholds θ, when θ = 0.5, the model has the best prediction effect on the prediction set, so the model constructed on data set 2 is selected as the optimal model for corrosion fatigue crack growth rate prediction. It should be noted that the determination of the threshold has a great influence on the subsequent model construction. If too many variables are removed during the feature selection process, the prediction performance of the model will usually become worse, and appropriate feature selection can significantly improve the prediction performance of the model, because too many features removed will cause the final model to miss important features or be too sparse, thereby affecting its prediction performance.
[0078] S4: According to the optimal features determined in S3, the prediction model is trained using the GBRT algorithm based on all reconstructed data samples to obtain the optimal model based on the BB-GBRT algorithm.
[0079] S5: The first 20 features of the aluminum alloy corrosion fatigue data to be predicted, namely, ΔK, Cu, Mn, Mg, Cr, Si, Zn, initial crack length, Fe, temperature, PH, material grade, Cl-, frequency, elastic modulus, tensile strength, elongation, yield strength, stress ratio, and heat treatment state, are input into the BB-GBRT optimal model with a feature dimension of 20 dimensions to obtain the predicted value of the aluminum alloy corrosion fatigue crack growth rate, with a mean square error MSE = 0.014 and a goodness of fit R 2 =0.988.
[0080] By comparing the specific implementation examples, the data of Data Set 2 is divided into a training data set and a test data set, and input into the Bayesian Linear Regression (BLR) and Gradient Boosting Regression Tree (GBRT) algorithms for fitting and prediction. Finally, the fitting and pan-China error results of BB-GBRT are compared. The results are as follows: Figures 2 to 7 shown. Figures 2 to 4 The fitting results of the three algorithms are shown in Figures 5 to 7 The generalization results of the three algorithms are shown in Figure 1. In each figure, the row coordinates represent the actual corrosion fatigue crack growth rate, the ordinate represents the predicted corrosion fatigue crack growth rate, and the oblique line represents the actual-prediction line. The closer the result is to the oblique line, the smaller the error is and the better the result is.
[0081] First from Figures 2 to 4 Comparing the fitting results of the three algorithms, GBRT and BB-GBRT have very small fitting errors, and can basically obtain excellent fitting values for all training samples; most of the fitting values obtained by BLR are on the diagonal line, but some fitting values are far from the diagonal line, and the fitting result is the worst. Figures 5 to 7 Comparing the generalization results of the three algorithms, BB-GBRT's generalization result is better than the other algorithms, and BLR's generalization result is the worst.
[0082] right Figures 2 to 7 The results in the above are quantitatively characterized, and the fitting generalization errors of the three algorithms are evaluated using MSE and two indicators. The comparison results are shown in Table 3.
[0083] Table 3
[0084]
[0085] As shown in Table 3, the fitting and generalization results of BLR are the worst, because its structure is a linear combination of inputs, and the processing effect is poor when facing the nonlinear characteristics in the corrosion fatigue data set. GBRT and BB-GBRT both have satisfactory fitting results, but in the comparison of the generalization error of the test data set, the generalization result of the BB-GBRT model is significantly better than that of the GBRT model. This also indirectly verifies the effectiveness of Bayesian Bootstrap feature selection, eliminating unimportant features to make the model's prediction performance better and improve the generalization prediction accuracy of the model.
[0086] The present invention also provides an aluminum alloy corrosion fatigue crack growth rate prediction system, comprising the following modules:
[0087] The data collection and processing module is deployed on the programmable control surface and is used to collect the fatigue crack growth data characteristics and the corresponding fatigue crack growth rate da / dN. The collected data are coded and normalized by dummy variables, and the fatigue crack growth rate da / dN under the corrosion state corresponding to each set of data is processed by logarithm to obtain the processed data set;
[0088] The model training and testing module is deployed on the programmable control plane to build the model. The processed data is reconstructed through the Bayesian Bootstrap algorithm. Three data sets are generated according to the feature importance and threshold. The GBRT algorithm is used to train the model on the three data sets respectively. The mean square error (MSE) and goodness of fit (R) are used. 2 As the accuracy evaluation of the trained model, select the best model and the best features;
[0089] The prediction module is deployed on the programmable control surface, and the data corresponding to the optimal characteristics of the aluminum alloy to be predicted are input into the optimal model to obtain the predicted value of the corrosion fatigue crack growth rate of the aluminum alloy.
[0090] The above are only some embodiments of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the creative concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for predicting the corrosion fatigue crack growth rate of aluminum alloy, characterized in that: The following steps are involved: S1: Collect the fatigue crack growth data characteristics and corresponding fatigue crack growth rate of aluminum alloy to form a data set; S2: preprocess the data set to obtain a processed data set; S3: Reconstruct the data samples of the processed data set by using the Bayesian Bootstrap algorithm, and train the model based on the reconstructed data samples using the GBRT algorithm to obtain Model 1, Model 2, and Model 3. The optimal features are determined by comparing the accuracy of Model 1, Model 2, and Model 3. The data sets used by Model 1, Model 2, and Model 3 are Dataset 1, Dataset 2, and Dataset 3, respectively. The features contained in the three data sets are screened according to the feature importance and threshold, and the features whose feature importance is greater than the threshold are screened. The feature importance formula is: Among them, α i is the feature importance of the i-th feature, m i is the number of times the i-th feature is selected by the model, and B is the number of reconstructed data sets; S4: According to the optimal features determined in S3, the prediction model is trained using the GBRT algorithm based on the reconstructed data samples to obtain the optimal model; S5: Inputting data corresponding to the optimal characteristics of the aluminum alloy to be predicted into the optimal model to obtain a predicted value of the corrosion fatigue crack growth rate of the aluminum alloy.
2. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 1, characterized in that: The threshold of the data set 1 is 0; the threshold of the data set 2 is 0.5; and the threshold of the data set 3 is 0.
7.
3. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 2, characterized in that: 70% of the dataset 1, dataset 2 and dataset 3 are training datasets, and 30% are testing datasets.
4. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 1, characterized in that: The accuracy in S3 is measured by the mean square error MSE and the goodness of fit R 2 Conduct assessments; The mean square error MSE is: Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set; Goodness of fit R 2 for: Where N is the number of samples in the test set, y i is the true fatigue crack growth rate of the i-th sample in the test set, is the predicted fatigue crack growth rate of the i-th sample in the test set, It represents the average value of the true fatigue crack growth rate of N samples.
5. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 1, characterized in that: In S2, the data set is preprocessed, non-numerical data in the data set is processed by dummy variable encoding, numerical data is normalized, and the fatigue crack growth rate under the corrosion state corresponding to each set of data is logarithmically processed to obtain lg (da / dN).
6. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 5, characterized in that: The normalization formula is: Among them, x i and Respectively represent the true value and normalized value of the i-th variable in the sample; max(x i ) and min(x i ) represent the maximum and minimum value of the i-th variable respectively.
7. The method for predicting the aluminum alloy corrosion fatigue crack growth rate according to claim 1, characterized in that: The fatigue crack growth data characteristics in S1 include material grade, heat treatment state, sampling direction, chemical composition, sample shape, initial crack length, waveform, frequency, stress ratio, pH value, chloride ion concentration, temperature, environment category, elastic modulus, yield strength, tensile strength, elongation and stress intensity factor variation range.
8. A system for predicting the growth rate of aluminum alloy corrosion fatigue cracks according to the method for predicting the growth rate of aluminum alloy corrosion fatigue cracks according to claim 1, characterized in that: Includes the following modules: The data collection and processing module is deployed on the programmable control surface and is used to collect the fatigue crack growth data characteristics and the corresponding fatigue crack growth rate. The collected data is coded and normalized through dummy variables, and the fatigue crack growth rate under the corrosion state corresponding to each set of data is processed logarithmically to obtain the processed data set; The model training and testing module is deployed on the programmable control plane and is used to build the model. The processed data set is reconstructed into data samples through the Bayesian Bootstrap algorithm. Three data sets are generated according to the feature importance and threshold. The GBRT algorithm is applied to train the three models on the three data sets respectively. The mean square error and goodness of fit are used as the accuracy to evaluate the three trained models and determine the optimal features. Based on the optimal features, the prediction model is trained using the GBRT algorithm to obtain the optimal model based on the BB-GBRT algorithm. The prediction module is deployed on the programmable control surface, and the data corresponding to the optimal characteristics of the aluminum alloy to be predicted are input into the optimal model to obtain the predicted value of the corrosion fatigue crack growth rate of the aluminum alloy.
Citation Information
Patent Citations
Aero-engine combustion chamber creep fatigue life prediction method
CN113569504A
Computational risk modeling system and method for pipeline operation and integrity management
US20200191316A1
