Mechanical properties prediction method for multiple steel grades based on improved random forest algorithm

By improving the random forest algorithm and optimization algorithm, a multi-steel mechanical property prediction model is established, which solves the problems of low mechanical property prediction accuracy and long cycle in the existing technology, achieves efficient and accurate prediction of multiple steel types, and reduces the cost of production costs.

CN114897227BActive Publication Date: 2024-09-06NORTHEASTERN UNIV CHINA +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210444584.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2024-09-06
Estimated Expiration
2042-04-26

AI Technical Summary

Technical Problem

The existing technology has the problems of low accuracy and long cycle in mechanical property prediction, especially in the case of multiple steel types, it is difficult to achieve efficient prediction.

Method used

An improved random forest algorithm is used to build a comprehensive data platform to collect hot-rolled strip production data, conduct feature information screening and data cleaning, establish a multi-steel mechanical property prediction model, and adjust hyperparameters through optimization algorithms to improve prediction accuracy.

Benefits of technology

It achieves high-precision prediction of the mechanical properties of multiple steel types, reduces the number of product inspections and production costs, and improves prediction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114897227B
    Figure CN114897227B
Patent Text Reader

Abstract

The present invention provides a method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm, and relates to the technical field of hot-rolled strip steel rolling production. The method first builds a comprehensive data platform, collects production data samples of hot-rolled strip steel within a period of time, and obtains a complete production data sample set; and performs feature information screening and data cleaning on the complete production data sample set; then, based on the improved random forest method, a multi-grade steel mechanical property prediction model is constructed and model training is performed; the complete production data sample to be predicted is input into the multi-grade steel mechanical property prediction model, and the mechanical property value of the complete production data sample to be predicted is obtained. The method can realize real-time prediction of mechanical properties by using the established mechanical property prediction model, reduce the number of product inspections, and reduce production costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of hot-rolled strip steel rolling production, and in particular to a method for predicting mechanical properties of multiple steel types based on an improved random forest algorithm. Background Art

[0002] In recent years, the rise of artificial intelligence technology has been of great significance to the development of the steel industry. It has gradually matured and provided important technical means for the construction of the Internet platform of steel enterprises, improving the ability of enterprises to mine, apply and create value through data. In response to the needs of steel enterprises for full-process value creation, combined with the production organization characteristics of steel enterprises, through effective data governance, the conversion rate of data into assets is improved, economic benefits are achieved for enterprises, the digital transformation of steel enterprises is promoted, and the high-quality development of the industry is led. In the prediction of steel structure properties, especially the research on mechanical properties prediction technology, the importance of artificial intelligence technology is increasingly prominent. The use of artificial intelligence technology to develop high-precision mechanical properties prediction models has become an important research direction. The application of artificial intelligence technology provides an important technical means for realizing the industrial application of high-precision mechanical properties prediction models.

[0003] There are usually two types of mechanical property prediction and control models: physical metallurgical models and artificial intelligence models. The physical metallurgical model is composed of sub-models such as temperature field, recrystallization, rheological stress, precipitation and phase change. It can realize the qualitative analysis of the influence of chemical composition and process parameters on microstructure and mechanical properties, but it takes a long time to obtain the predicted value of mechanical properties. The artificial intelligence model collects a large amount of historical data from the production process and uses the powerful learning ability of artificial neural networks for complex and nonlinear physical relationships to predict the mechanical properties of products. Now, artificial neural networks have been widely and successfully applied to the prediction and control of nonlinear systems and models as well as unknown systems. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for predicting the mechanical properties of multiple steel grades based on an improved random forest algorithm in view of the deficiencies of the above-mentioned prior art, and to establish a prediction model for the mechanical properties of multiple steel grades by using the improved random forest algorithm to achieve prediction of the mechanical properties of multiple steel grades;

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm, comprising the following steps:

[0006] Step 1: Build a comprehensive data platform, collect hot-rolled strip production data samples within a time period T, and obtain a complete production data sample set S = {S1, S2, ..., S n ,…,S N};

[0007] Where S n is the nth complete production data sample, n∈{1,2,…,N},S n ={S n1 ,S n2 ,…,S nm ,…,S nM ,Y YS ,Y TS ,Y EL}, {S n1 ,S n2 ,…,S nm ,…,S nM} is the production data sample S n The original data information, S nm For the production data sample S n The mth attribute feature of the original data information, m∈{1,2,…,M}, M is the total number of attribute features of the complete production data sample, Y YS , Y TS and Y EL are the yield strength, tensile strength and elongation of the production data sample, respectively;

[0008] Step 2: Screen the feature information and clean the data of the complete production data sample set;

[0009] Step 3: Use the complete production data sample set U after secondary screening of attribute characteristics to build and train a multi-steel mechanical property prediction model based on improved random forest;

[0010] Step 3.1: Using an optimization algorithm, optimize the parameters of the multi-steel mechanical property prediction model established based on the improved random forest algorithm;

[0011] Step 3.1.1: Determine the number of decision trees N in the random forest multi-steel mechanical properties prediction model tree and the leaf node depth of a single tree is M try is the hyperparameter to be optimized;

[0012] Step 3.1.2: Set the optimization range of each hyperparameter;

[0013] Step 3.1.3: Set the initial number of iterations to Gen=1, set the maximum number of iterations to Gen_max, and randomly select values ​​from the optimization range of each hyperparameter setting to form the hyperparameter combination for the Gen_i iteration;

[0014] Step 3.1.4: Calculate the prediction accuracy of the mechanical property prediction model of multiple steel grades established by the random forest algorithm under the hyperparameter combination conditions of the Gen_i iteration for the complete production data sample set U; construct an evaluation function with the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties as inputs and the correlation coefficient, root mean square error, and average relative error under the hyperparameter combination as outputs, and use the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties of the {1, 2, ..., Gen_max} iterations to obtain the correlation coefficient, root mean square error, and average relative error data of the Gen_i iteration;

[0015] Step 3.1.5: If Gen < Gen_max, set Gen = Gen + 1 and return to step 3.1.4; if Gen ≥ Gen_max, proceed to step 3.1.6;

[0016] Step 3.1.6: Select the hyperparameter combination with the largest correlation coefficient, the smallest root mean square error and the smallest average relative error among the Gen_max hyperparameter combinations as the modeling hyperparameters of the random forest multi-steel mechanical properties prediction model;

[0017] Step 3.2: According to the hyperparameter combination selected in step 3.1.6, the final trained random forest multi-steel mechanical property prediction model is obtained;

[0018] Step 4: Collect the complete production data sample set Test to be predicted after the T time period, and screen the feature information of the complete production data sample set Test to be predicted according to the same method as steps 2.1 and 2.3, and obtain the input vector composed of Z attribute features after the feature information to be predicted is screened, and input the input vector into the random forest multi-steel grade mechanical property prediction model obtained in step 3.2 to obtain the mechanical property value of the complete production data sample to be predicted.

[0019] The original data information of the production data sample in step 1 includes the chemical composition and basic data of the hot-rolled strip, process parameter data and mechanical property test data, wherein the chemical composition and basic data include: steel coil number, smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, finished product thickness (FDH), target width, C, Si, Mn, P, S, N, Nb, V, Ti, Al, Als, Cu, Cr, Ni, Co, Mo and B; the process parameter data include furnace entry temperature, adding section temperature, soaking time, rough rolling end temperature, intermediate billet thickness, final rolling speed, heating section time and the start state of each pass of rough rolling descaling; finishing rolling entrance temperature; final rolling temperature (FDT); coiling temperature (CT); laminar cooling temperature and other process data; the mechanical property test data originates from the inspection and testing system of the hot rolling production line, and the mechanical property test data include: three mechanical property indicators: yield strength, tensile strength and elongation.

[0020] The specific method of step 2 is:

[0021] Step 2.1: Perform a one-time screening of the attribute characteristics of the complete production data sample set S, screen out the attribute characteristics that have little influence on the mechanical property test data, and obtain a complete production data sample set S' after the one-time screening of the attribute characteristics;

[0022] Among them, the attribute characteristics with little influence on the mechanical property test data include smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, target thickness and target width;

[0023] Step 2.2: Perform data outlier processing on the mechanical properties test data outliers in the complete production data sample set S' after the attribute feature is screened once, and obtain the complete production data sample set after data outlier processing as X = {X1, X2, ..., X p ,…,X P}; p∈{1,2,…,P},X p ={X p1 ,X p2 ,…,X pm ,…,X pM} is the sample data X after data outliers are processed p Attribute feature information, X pm For the production data sample X p The mth attribute feature of the original data information, P is the total number of sample data after data outliers are processed;

[0024] Step 2.3: Use the principal component analysis (PCA) method to perform secondary attribute feature screening on the complete production data sample set X after data outliers are processed, and obtain the complete production data sample set U after secondary attribute feature screening = {U1, U2, …, U p ,…,U P};

[0025] Among them, U p is the pth complete production data sample, U p = {U p1 ,U p2 ,…,U pz ,…,U pZ ,Y YS ,Y TS ,Y EL},{U p1 ,U p2 ,…,U pz ,…,U pZ} is the production data sample U p The original data information, U pz Produce data sample U after secondary screening of attribute features p The zth attribute feature of the original data information, z∈{1,2,…,Z}, where Z is the total number of attribute features of the complete production data sample after secondary screening of attribute features.

[0026] The specific method of step 2.2 is:

[0027] Step 2.2.1: Cluster the complete production data sample set S' after the attribute feature is screened once, analyze the relationship between the parameters of C, Si, Mn, Nb, N, Ti, final rolling temperature, coiling temperature and finished product thickness and yield strength, and set the fluctuation range of the parameters of C, Si, Mn, Nb, N, Ti, final rolling temperature, coiling temperature and finished product thickness;

[0028] Step 2.2.2: Randomly select a sample data from the complete production data sample set S' as the cluster center. According to the set parameter fluctuation range, calculate whether the attribute characteristic parameters of the remaining sample data are within the range given by the partition center. If they meet the requirements, they are divided into one category, and the next cluster partition center is selected, and so on, until the data is divided;

[0029] Among them, x i is the i-th attribute feature value of the cluster center, y i is the i-th attribute feature value of the remaining complete production data sample;

[0030] Step 2.2.3: For each type of data divided by clustering, calculate the Y YS , Y TSand Y EL The mean x and standard deviation σ of

[0031] Among them, m is the number of complete production data samples for each type of data, a j is the jth attribute feature value of the complete production data sample;

[0032] Step 2.2.4: Select a reasonable method for eliminating abnormal data based on the sample size of each type of complete production data, and set the threshold of the sample size of each type of complete production data to A; when the sample size of each type of complete production data is greater than A, calculate the residual v of each type of mechanical properties r , remove the residual v in each class r >ασ complete production data sample, α is the proportionality coefficient, and in this embodiment, α is taken as 2; when the sample size of each type of complete production data is less than or equal to A, calculate the confidence probability G of each mechanical property value r , the confidence probability critical value GP is determined by the table lookup method. When the confidence probability G of the mechanical property value is r When it is greater than GP, ​​the mechanical property value is judged to be abnormal data;

[0033] Among them, Y r Mechanical properties index for complete production data sample;

[0034] The specific method of step 2.3 is:

[0035] Step 2.3.1: Decentralize all attribute features of the complete production data sample set after data outliers are processed; calculate the average value of each attribute feature, and then for all complete production data sample sets, subtract the average value of each attribute feature to achieve decentralization of the attribute features;

[0036] Step 2.3.2: Calculate the covariance matrix C for the complete set of production data samples after decentralization;

[0037] Step 2.3.3: Based on the covariance matrix C, solve the eigenvalue λ and eigenvector μ of the covariance matrix C; obtain M eigenvalues ​​λ and each eigenvalue λ k The corresponding eigenvector μ k , sort the eigenvalues ​​λ in descending order and select the largest first h;

[0038] Step 2.3.4: According to the selection of the largest first h eigenvalues ​​λ and the corresponding eigenvectors μ, the dimension reduction calculation of the attribute characteristics of the complete production data sample set is realized;

[0039] The specific method of step 3.1.4 is:

[0040] Step 3.1.4.1: According to the set number of decision trees N treeand the leaf node depth of a single tree is M try These two hyperparameter ranges randomly generate H n A group of hyperparameter combinations is selected, and a group of hyperparameter combinations is selected as modeling hyperparameters of the random forest multi-steel mechanical property prediction model;

[0041] Step 3.1.4.2: Construct the evaluation function of the hyperparameter optimization process; select three evaluation functions: correlation coefficient R, root mean square error MSE, and average relative error AARE, and obtain the correlation coefficient, root mean square error, and average relative error data corresponding to the hyperparameter combination according to the evaluation function;

[0042] Where: E l is the measured value of mechanical properties, F l is the predicted value of mechanical properties, and It is the average value of the measured value of mechanical properties and the predicted value of mechanical properties.

[0043] Step 3.1.4.3: Update the modeling hyperparameter combination of the random forest multi-steel mechanical properties prediction model, for the number of decision trees N tree , the leaf node depth of a single tree is M try Construct hyperparameter update functions respectively: v1(Gen+1)=v1(Gen)+c1*r1*Δv1, v2(Gen+1)=v2(Gen)+c2*r2*Δv2;

[0044] Among them, v1 is the number of decision trees in a set of hyperparameter combinations; v2 is the leaf node depth value of a single tree in a set of hyperparameter combinations; c1 and c2 are both acceleration adjustment factors; r1 and r2 are both random numbers between 0 and 1; Δv1 and Δv2 are both proportional coefficients;

[0045] Step 3.1.4.4: According to the above calculation step 3.1.4.3, the calculated values ​​of the correlation coefficient, root mean square error and average relative error corresponding to the hyperparameter combination of the Gen iteration and the Gen+1 iteration are obtained respectively. When the correlation coefficient of the Gen+1 iteration is greater than the correlation coefficient of the Gen iteration, and the root mean square error and average relative error of the Gen+1 iteration are both less than the root mean square error and average relative error of the Gen iteration, c1 and c2 take positive values, otherwise c1 and c2 take negative values;

[0046] The method for predicting mechanical properties of multiple steel grades based on the improved random forest algorithm also includes: verifying the accuracy of the mechanical properties prediction model of multiple steel grades based on the improved random forest algorithm, the specific method is:

[0047] The measured values ​​of mechanical properties of the complete production data sample to be predicted are collected. According to the predicted values ​​of mechanical properties of the complete production data sample to be predicted obtained in step 4, the prediction accuracy of mechanical properties is statistically calculated to verify the accuracy of the multi-steel mechanical properties prediction model based on the improved random forest algorithm.

[0048] The beneficial effects of adopting the above technical scheme are: the method for predicting mechanical properties of multiple steel grades based on the improved random forest algorithm provided by the present invention uses characteristic attribute parameters of historical production as input parameters of the mechanical properties prediction model, selects some characteristic attribute parameters for clustering during training, and eliminates abnormal sample data in each type of sample data, so that the trained mechanical properties prediction model has high prediction accuracy and efficiency; the established mechanical properties prediction model can realize real-time prediction of mechanical properties, reduce the number of product inspections, and reduce production costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A flow chart of a method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm provided in an embodiment of the present invention;

[0050] Figure 2 The graph of the influence of chemical composition on mechanical properties provided by the embodiment of the present invention, wherein (a) is C-Mn, (b) is C-Si, (c) is C-Ti, (d) is C-Nb, and (e) is N-Ti;

[0051] Figure 3 The effect of process parameters on mechanical properties provided by the embodiments of the present invention, wherein (a) is FDH-FDT, (b) is FDH-CT, and (c) is FDT-CT;

[0052] Figure 4 Abnormal mechanical property sample elimination provided by the embodiment of the present invention, wherein (a) is a data elimination diagram of abnormal samples whose sample size of each type of complete production data is greater than A, and (b) is a data elimination diagram of abnormal samples whose sample size of each type of complete production data is less than or equal to A;

[0053] Figure 5 The graph of various characteristic attribute values ​​and cumulative contribution rates provided in the embodiment of the present invention, wherein (a) is the yield strength, (b) is the tensile strength, and (c) is the elongation;

[0054] Figure 6 The yield strength prediction accuracy and relative error distribution diagram provided by the embodiment of the present invention, wherein (a) is the prediction accuracy and (b) is the relative error distribution;

[0055] Figure 7A diagram showing the prediction accuracy and relative error distribution of tensile strength provided in an embodiment of the present invention, wherein (a) is the prediction accuracy and (b) is the relative error distribution;

[0056] Figure 8 The elongation prediction accuracy and relative error distribution diagram provided in the embodiment of the present invention, wherein (a) is the prediction accuracy and (b) is the relative error distribution. DETAILED DESCRIPTION

[0057] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0058] This embodiment takes a steel plant as an example, and adopts the method for predicting mechanical properties of multiple steel types based on the improved random forest algorithm of the present invention to realize the prediction of mechanical properties of multiple steel types.

[0059] In this embodiment, a method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm is as follows: Figure 1 As shown, the following steps are included:

[0060] Step 1: Build a comprehensive data platform, collect hot-rolled strip production data samples within a time period T, and obtain a complete production data sample set S = {S1, S2, ..., S n ,…,S N};

[0061] Where S n is the nth complete production data sample, n∈{1,2,…,N},S n ={S n1 ,S n2 ,…,S nm ,…,S nM ,Y YS ,Y TS ,Y EL}, {S n1 ,S n2 ,…,S nm ,…,S nM} is the production data sample S n The original data information, S nm For the production data sample S n The mth attribute feature of the original data information, m∈{1,2,…,M}, M is the total number of attribute features of the complete production data sample, Y YS , Y TS and Y EL are the yield strength, tensile strength and elongation of the production data sample, respectively;

[0062] The original data information of the production data sample includes the chemical composition and basic data of the hot-rolled strip, process parameter data and mechanical property test data, wherein the chemical composition and basic data include: steel coil number, smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, finished product thickness (FDH), target width, C, Si, Mn, P, S, N, Nb, V, Ti, Al, Als, Cu, Cr, Ni, Co, Mo and B; the process parameter data include furnace entry temperature, addition section temperature, soaking time, rough rolling end temperature, intermediate billet thickness, final rolling speed, heating section time and the start state of each rough rolling descaling pass; finishing rolling entrance temperature; final rolling temperature (FDT); coiling temperature (CT); laminar cooling temperature and other process data; the mechanical property test data originates from the inspection and testing system of the hot rolling production line, and the mechanical property test data include: three mechanical property indicators: yield strength, tensile strength and elongation.

[0063] The establishment of a comprehensive data platform provides an important data foundation for the realization of industrial big data processing, and also provides a real, reliable and complete data source for the development of mechanical property prediction models. In view of the large amount of production data and complex data structure in the production of hot-rolled strip steel, this embodiment stores the above data sources in separate tables according to different production stages, production processes and data structures, such as: three data tables: chemical composition table (Chemelement), process setting value table (Set_Value), and sampling point value table (SamplePoint_Value). With the increase of table structures, for different data information tables, each data information is connected in series through the steel coil number to match the required data information, providing flexible and convenient conditions for subsequent applications.

[0064] This embodiment is based on the 2250 hot rolling production line of a steel plant, and collects a total of 15,000 sets of production data of six high-strength steel grades, namely Q420B, 510L, 610L, 700L, 700XL, and 600XT. After statistical analysis of the production data, it is found that the overall variation range of yield strength is 390MPa to 860MPa, the overall variation range of tensile strength is 480MPa to 930MPa, and the overall variation range of elongation is 12% to 53%.

[0065] Step 2: Screen the feature information and clean the data of the complete production data sample set;

[0066] Step 2.1: Perform a one-time screening of the attribute characteristics of the complete production data sample set S, screen out the attribute characteristics that have little influence on the mechanical property test data, and obtain a complete production data sample set S' after the one-time screening of the attribute characteristics;

[0067] Among them, the attribute characteristics with little influence on the mechanical property test data include smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, target thickness and target width;

[0068] Step 2.2: Perform data outlier processing on the mechanical properties test data outliers in the complete production data sample set S' after the attribute feature is screened once, and obtain the complete production data sample set after data outlier processing as X = {X1, X2, ..., X p ,…,X P}; p∈{1,2,…,P},X p ={X p1 ,X p2 ,…,X pm ,…,X pM} is the sample data X after data outliers are processed p Attribute feature information, X pm For the production data sample X p The mth attribute feature of the original data information, P is the total number of sample data after data outliers are processed;

[0069] Step 2.2.1: Cluster the complete production data sample set S' after the attribute characteristics are screened once, and analyze the influence of the combination parameters on the yield strength according to the existing physical metallurgical laws, such as Figure 2 , 3 As shown, the fluctuation ranges of C, Si, Mn, Nb, N, Ti, final rolling temperature (FDT), coiling temperature (CT) and finished thickness (FDH) parameters are set;

[0070] Step 2.2.2: Randomly select a sample data from the complete production data sample set S' as the cluster center, and use the absolute calculation formula d according to the set parameter fluctuation range. i =x i -y i , calculate whether the attribute characteristic parameters of the remaining sample data are within the range given by the partition center. If they meet the requirements, they are divided into one category, and the next cluster partition center is selected, and so on, until the data is divided;

[0071] Among them, x i is the i-th attribute feature value of the cluster center, y i is the i-th attribute feature value of the remaining complete production data sample;

[0072] Step 2.2.3: For each type of data divided by clustering, use the formula and Calculate Y in each category of data YS , Y TS and YEL The mean and standard deviation σ;

[0073] Among them, m is the number of complete production data samples for each type of data, a j is the jth attribute feature value of the complete production data sample;

[0074] Step 2.2.4: Figure 4 As shown in the figure, a reasonable method for eliminating abnormal data is selected according to the sample size of each type of complete production data, and the threshold of the sample size of each type of complete production data is set to A; when the sample size of each type of complete production data is greater than A, the formula is used Calculate the residual v for each type of mechanical property r , remove the residual v in each class r >ασ complete production data samples, α is the proportionality coefficient, and in this embodiment, α is taken as 2; when the sample size of each type of complete production data is less than or equal to A, the formula is used Calculate the confidence probability G for each mechanical property value r , the confidence probability critical value GP is determined by the table lookup method. When the confidence probability G of the mechanical property value is r When it is greater than GP, ​​the mechanical property value is judged to be abnormal data;

[0075] Among them, Y r Mechanical properties index for complete production data sample;

[0076] Step 2.3: Use the principal component analysis (PCA) method to perform secondary attribute feature screening on the complete production data sample set X after data outliers are processed, and obtain the complete production data sample set U after secondary attribute feature screening = {U1, U2, …, U p ,…,U P}; Among them, U p is the pth complete production data sample, U p = {U p1 ,U p2 ,…,U pz ,…,U pZ ,Y YS ,Y TS ,Y EL},{U p1 ,U p2 ,…,U pz ,…,U pZ} is the production data sample U p The original data information, U pz Produce data sample U after secondary screening of attribute features p The zth attribute feature of the original data information, z∈{1,2,…,Z}, where Z is the total number of attribute features of the complete production data sample after secondary screening of attribute features;

[0077] Step 2.3.1: Decentralize all attribute features of the complete production data sample set after data outliers are processed; calculate the average value of each attribute feature, and then for all complete production data sample sets, subtract the average value of each attribute feature to achieve decentralization of the attribute features;

[0078] Step 2.3.2: Calculate the covariance matrix C for the complete set of production data samples after decentralization; use the formula Calculate the covariance between different attribute feature vectors to obtain the covariance matrix C;

[0079] Among them, a k is the kth complete production data sample value of the attribute feature of column a, and b k is the kth complete production data sample value of the attribute feature of column b;

[0080] Step 2.3.3: Based on the covariance matrix C, solve the eigenvalue λ and eigenvector μ of the covariance matrix C; obtain M eigenvalues ​​λ and each eigenvalue λ k The corresponding eigenvector μ k , sort the eigenvalues ​​λ in descending order and select the largest first h;

[0081] Step 2.3.4: According to the selection of the largest first h eigenvalues ​​λ and the corresponding eigenvectors μ, the dimension reduction calculation of the attribute characteristics of the complete production data sample set is realized;

[0082] The dimension of big data in the steel industry is getting higher and higher, but in high-dimensional data, the characteristic attributes of some data can contain higher data information. Although classical algorithms can be used to build models based on high-dimensional data, the performance is poor in the process of processing the characteristic attributes of high-dimensional data, and the established model cannot be compared with the model established with low-dimensional data. If the characteristic attributes of the data are not processed, the constructed characteristic subspace will contain less data attribute information, and even too much non-informative data attribute information will be mixed. Therefore, the regularity of the established model will be poor, reducing the accuracy of the model prediction value.

[0083] Based on the above analysis, this embodiment uses the PCA algorithm to perform data dimension reduction on the 15,000 sets of collected data. First, the covariance matrix of each parameter is calculated, and then the size of the eigenvalue of each parameter is obtained. Finally, the correlation coefficient of each parameter and the mechanical properties is analyzed. By calculating the cumulative contribution rate of each parameter, the input parameters of the model are preliminarily determined. Figure 5 As shown, determine the final model input parameters.

[0084] Step 3: Use the complete production data sample set U after secondary screening of attribute characteristics to build and train a multi-steel mechanical property prediction model based on improved random forest;

[0085] Step 3.1: Using an optimization algorithm, optimize the parameters of the multi-steel mechanical property prediction model established based on the improved random forest algorithm;

[0086] Step 3.1.1: Determine the number of decision trees N in the random forest multi-steel mechanical properties prediction model tree and the leaf node depth of a single tree is M try is the hyperparameter to be optimized;

[0087] Step 3.1.2: Set the optimization range of each hyperparameter;

[0088] Step 3.1.3: Set the initial number of iterations to Gen=1, set the maximum number of iterations to Gen_max, and randomly select values ​​from the optimization range of each hyperparameter setting to form the hyperparameter combination for the Gen_i iteration;

[0089] Step 3.1.4: Calculate the prediction accuracy of the mechanical property prediction model of multiple steel grades established by the random forest algorithm under the hyperparameter combination conditions of the Gen_i iteration for the complete production data sample set U; construct an evaluation function with the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties as inputs and the correlation coefficient, root mean square error, and average relative error under the hyperparameter combination as outputs, and use the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties of the {1, 2, ..., Gen_max} iterations to obtain the correlation coefficient, root mean square error, and average relative error data of the Gen_i iteration;

[0090] Step 3.1.4.1: According to the set number of decision trees N tree and the leaf node depth of a single tree is M try These two hyperparameter ranges randomly generate H n A group of hyperparameter combinations is selected, and a group of hyperparameter combinations is selected as modeling hyperparameters of the random forest multi-steel mechanical property prediction model;

[0091] Step 3.1.4.2: Construct the evaluation function of the hyperparameter optimization process; select the correlation coefficient (R), root mean square error (MSE), and average relative error (AARE) as three evaluation functions, and the expression is: According to the evaluation function, the correlation coefficient, root mean square error and mean relative error data corresponding to the hyperparameter combination are obtained;

[0092] Where: E l is the measured value of mechanical properties, F l is the predicted value of mechanical properties, and It is the average value of the measured value of mechanical properties and the predicted value of mechanical properties.

[0093] Step 3.1.4.3: Update the modeling hyperparameter combination of the random forest multi-steel mechanical properties prediction model, for the number of decision trees N tree , the leaf node depth of a single tree is M try Construct hyperparameter update functions respectively: v1(Gen+1)=v1(Gen)+c1*r1*Δv1, v2(Gen+1)=v2(Gen)+c2*r2*Δv2;

[0094] Wherein, v1 is the number of decision trees in a set of hyperparameter combinations; v2 is the leaf node depth value of a single tree in a set of hyperparameter combinations; c1 and c2 are both acceleration adjustment factors; r1 and r2 are both random numbers between 0 and 1; Δv1 and Δv2 are both proportional coefficients. In this embodiment, Δv1 is 5 and Δv2 is 1;

[0095] Step 3.1.4.4: According to the above calculation step 3.1.4.3, the calculated values ​​of the correlation coefficient, root mean square error and average relative error corresponding to the hyperparameter combination of the Gen iteration and the Gen+1 iteration are obtained respectively. When the correlation coefficient of the Gen+1 iteration is greater than the correlation coefficient of the Gen iteration, and the root mean square error and average relative error of the Gen+1 iteration are both less than the root mean square error and average relative error of the Gen iteration, c1 and c2 take positive values, otherwise c1 and c2 take negative values;

[0096] Step 3.1.5: If Gen < Gen_max, set Gen = Gen + 1 and return to step 3.1.4; if Gen ≥ Gen_max, proceed to step 3.1.6;

[0097] Step 3.1.6: Select the hyperparameter combination with the largest correlation coefficient, the smallest root mean square error and the smallest average relative error among the Gen_max hyperparameter combinations as the modeling hyperparameters of the random forest multi-steel mechanical properties prediction model;

[0098] Step 3.2: According to the hyperparameter combination selected in step 3.1.6, the final trained random forest multi-steel mechanical property prediction model is obtained;

[0099] In this embodiment, based on the data of six high-strength steel grades, namely Q420B, 510L, 610L, 600XT, 700L and 700XL, an improved random forest algorithm was used to establish a high-precision mechanical property prediction model.

[0100] Step 4: Collect the complete production data sample set Test to be predicted after the T time period, and screen the feature attributes of the complete production data sample set Test to be predicted according to the same method as in step 2.1 and step 2.3, and obtain an input vector consisting of Z attribute features after the feature attributes to be predicted are screened, and the input vector is input into the random forest multi-steel mechanical property prediction model obtained in step 3.2 to obtain the mechanical property value of the complete production data sample to be predicted.

[0101] Step 5: Verify the accuracy of the multi-steel mechanical property prediction model based on the improved random forest algorithm, such as Figure 6 , 7 , as shown in 8;

[0102] The measured values ​​of mechanical properties of the complete production data sample to be predicted are collected. According to the predicted values ​​of mechanical properties of the complete production data sample to be predicted obtained in step 4, the prediction accuracy of mechanical properties is statistically calculated to verify the accuracy of the multi-steel mechanical properties prediction model based on the improved random forest algorithm.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.

Claims

1. A method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm, characterized in that: The method specifically comprises the following steps: Step 1: Build a comprehensive data platform, collect hot-rolled strip production data samples within a time period T, and obtain a complete production data sample set S = {S1, S2, ..., S n ,…,S N }; Where S n is the nth complete production data sample, n∈{1,2,…,N},S n ={S n1 ,S n2 ,…,S nm ,…,S nM ,Y YS ,Y TS ,Y EL }, {S n1 ,S n2 ,…,S nm ,…,S nM } is the production data sample S n The original data information, S nm For the production data sample S n The mth attribute feature of the original data information, m∈{1,2,…,M}, M is the total number of attribute features of the complete production data sample, Y YS , Y TS and Y EL are the yield strength, tensile strength and elongation of the production data sample, respectively; Step 2: Screen the attribute feature information and clean the data of the complete production data sample set; Step 2.1: Perform a one-time screening of the attribute characteristics of the complete production data sample set S, screen out the attribute characteristics that have little influence on the mechanical property test data, and obtain a complete production data sample set S' after the one-time screening of the attribute characteristics; Step 2.2: Perform data outlier processing on the mechanical properties test data outliers in the complete production data sample set S' after the attribute feature is screened once, and obtain the complete production data sample set after data outlier processing as X = {X1, X2, ..., X p ,…,X P }; p∈{1,2,…,P},X p ={X p1 ,X p2 ,…,X pm ,…,X pM } is the sample data X after data outliers are processed p Attribute feature information, X pm For the production data sample X p The mth attribute feature of the original data information, P is the total number of sample data after data outliers are processed; Step 2.3: Use the principal component analysis (PCA) method to perform secondary attribute feature screening on the complete production data sample set X after data outliers are processed, and obtain the complete production data sample set U after secondary attribute feature screening = {U1, U2, …, U p ,…,U P }; Among them, U p is the pth complete production data sample, U p = {U p1 ,U p2 ,…,U pz ,…,U pZ ,Y YS ,Y TS ,Y EL },{U p1 ,U p2 ,…,U pz ,…,U pZ } is the production data sample U p The original data information, U pz Produce data sample U after secondary screening of attribute features p The zth attribute feature of the original data information, z∈{1,2,…,Z}, where Z is the total number of attribute features of the complete production data sample after secondary screening of attribute features; Step 3: Use the complete production data sample set after attribute feature screening and data cleaning to build and train a multi-steel mechanical property prediction model based on improved random forest; Step 3.1: Using an optimization algorithm, optimize the parameters of the multi-steel mechanical property prediction model established based on the improved random forest algorithm; Step 3.1.1: Determine the number of decision trees N in the random forest multi-steel mechanical properties prediction model tree and the leaf node depth of a single tree is M try is the hyperparameter to be optimized; Step 3.1.2: Set the optimization range of each hyperparameter; Step 3.1.3: Set the initial number of iterations to Gen=1, set the maximum number of iterations to Gen_max, and randomly select values ​​from the optimization range of each hyperparameter setting to form the hyperparameter combination for the Gen_i iteration; Step 3.1.4: Calculate the prediction accuracy of the mechanical property prediction model of multiple steel grades established by the random forest algorithm under the hyperparameter combination conditions of the Gen_i iteration for the complete production data sample set U; construct an evaluation function with the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties as inputs and the correlation coefficient, root mean square error, and average relative error under the hyperparameter combination as outputs, and use the measured values ​​of mechanical properties and the predicted values ​​of mechanical properties of the {1, 2, ..., Gen_max} iterations to obtain the correlation coefficient, root mean square error, and average relative error data of the Gen_i iteration; Step 3.1.4.1: According to the set number of decision trees N tree and the leaf node depth of a single tree is M try These two hyperparameter ranges randomly generate H n A group of hyperparameter combinations is selected, and a group of hyperparameter combinations is selected as modeling hyperparameters of the random forest multi-steel mechanical property prediction model; Step 3.1.4.2: Construct the evaluation function of the hyperparameter optimization process; select three evaluation functions: correlation coefficient R, root mean square error MSE, and average relative error AARE, and obtain the correlation coefficient, root mean square error, and average relative error data corresponding to the hyperparameter combination according to the evaluation function; Step 3.1.4.3: Update the modeling hyperparameter combination of the random forest multi-steel mechanical properties prediction model, for the number of decision trees N tree , the leaf node depth of a single tree is M try Construct hyperparameter update functions respectively: v1(Gen+1)=v1(Gen)+c1*r1*Δv1, v2(Gen+1)=v2(Gen)+c2*r2*Δv2; Among them, v1 is the number of decision trees in a set of hyperparameter combinations; v2 is the leaf node depth value of a single tree in a set of hyperparameter combinations; c1 and c2 are both acceleration adjustment factors; r1 and r2 are both random numbers between 0 and 1; Δv1 and Δv2 are both proportional coefficients; Step 3.1.4.4: According to the above calculation step 3.1.4.3, the calculated values ​​of the correlation coefficient, root mean square error and average relative error corresponding to the hyperparameter combination of the Gen iteration and the Gen+1 iteration are obtained respectively. When the correlation coefficient of the Gen+1 iteration is greater than the correlation coefficient of the Gen iteration, and the root mean square error and average relative error of the Gen+1 iteration are both less than the root mean square error and average relative error of the Gen iteration, c1 and c2 take positive values, otherwise c1 and c2 take negative values; Step 3.1.5: If Gen < Gen_max, set Gen = Gen + 1 and return to step 3.1.4; if Gen ≥ Gen_max, proceed to step 3.1.6; Step 3.1.6: Select the hyperparameter combination with the largest correlation coefficient, the smallest root mean square error and the smallest average relative error among the Gen_max hyperparameter combinations as the modeling hyperparameters of the random forest multi-steel mechanical properties prediction model; Step 3.2: According to the hyperparameter combination selected in step 3.1.6, the final trained random forest multi-steel mechanical property prediction model is obtained; Step 4: Collect the complete production data sample set Test to be predicted after the T time period, screen the feature information of the complete production data sample set Test to be predicted, and obtain the input vector composed of Z attribute features after the feature information to be predicted is screened, and input the input vector into the random forest multi-steel grade mechanical property prediction model obtained in step 3.2 to obtain the mechanical property value of the complete production data sample to be predicted.

2. The method for predicting mechanical properties of multiple steel grades based on the improved random forest algorithm according to claim 1 is characterized in that: The original data information of the production data sample described in step 1 includes the chemical composition and basic data of the hot-rolled strip, process parameter data and mechanical property test data, wherein the chemical composition and basic data include: steel coil number, smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, finished product thickness, target width, C, Si, Mn, P, S, N, Nb, V, Ti, Al, Als, Cu, Cr, Ni, Co, Mo and B; the process parameter data include furnace entry temperature, adding section temperature, soaking time, rough rolling end temperature, intermediate billet thickness, final rolling speed, heating section time and the start state of each pass of rough rolling descaling; finishing rolling entrance temperature; final rolling temperature; coiling temperature; laminar cooling temperature and other process data; the mechanical property test data originates from the inspection and testing system of the hot rolling production line, and the mechanical property test data include: three mechanical property indicators: yield strength, tensile strength and elongation.

3. The method for predicting mechanical properties of multiple steel grades based on the improved random forest algorithm according to claim 1 is characterized in that: The property characteristics that have little influence on the mechanical properties test data described in step 2.1 include smelting furnace number, heating furnace number, slab number, brand, slab production time, steel coil production time, ingot thickness, ingot width, target thickness and target width.

4. The method for predicting mechanical properties of multiple steel grades based on improved random forest algorithm according to claim 1, characterized in that: The step 2.2 comprises the following steps: Step 2.2.1: Cluster the complete production data sample set S' after the attribute feature is screened once, analyze the relationship between the parameters of C, Si, Mn, Nb, N, Ti, final rolling temperature, coiling temperature and finished product thickness and yield strength, and set the fluctuation range of the parameters of C, Si, Mn, Nb, N, Ti, final rolling temperature, coiling temperature and finished product thickness; Step 2.2.2: Randomly select a sample data from the complete production data sample set S' as the cluster center. According to the set parameter fluctuation range, calculate whether the attribute characteristic parameters of the remaining sample data are within the range given by the partition center. If they meet the requirements, they are divided into one category, and the next cluster partition center is selected, and so on, until the data is divided; Among them, x i is the i-th attribute feature value of the cluster center, y i is the i-th attribute feature value of the remaining complete production data sample; Step 2.2.3: For each type of data divided by clustering, calculate the Y YS , Y TS and Y EL The mean x and standard deviation σ of Among them, m is the number of complete production data samples for each type of data, a j is the jth attribute feature value of the complete production data sample; Step 2.2.4: Select a reasonable method for eliminating abnormal data based on the sample size of each type of complete production data, and set the threshold of the sample size of each type of complete production data to A; when the sample size of each type of complete production data is greater than A, calculate the residual v of each type of mechanical properties r , remove the residual v in each class r >ασ complete production data sample, α is the proportionality coefficient; when the sample size of each type of complete production data is less than or equal to A, calculate the confidence probability G of each mechanical property value r , the confidence probability critical value GP is determined by the table lookup method. When the confidence probability G of the mechanical property value is r When it is greater than GP, ​​the mechanical property value is judged to be abnormal data.

5. The method for predicting mechanical properties of multiple steel grades based on improved random forest algorithm according to claim 4 is characterized in that: The step 2.3 comprises the following steps: Step 2.3.1: Decentralize all attribute features of the complete production data sample set after data outliers are processed; calculate the average value of each attribute feature, and then for all complete production data sample sets, subtract the average value of each attribute feature to achieve decentralization of the attribute features; Step 2.3.2: Calculate the covariance matrix C for the complete set of production data samples after decentralization; Step 2.3.3: Based on the covariance matrix C, solve the eigenvalue λ and eigenvector μ of the covariance matrix C; obtain M eigenvalues ​​λ and each eigenvalue λ k The corresponding eigenvector μ k , sort the eigenvalues ​​λ in descending order and select the largest first h; Step 2.3.4: Based on the selection of the largest first h eigenvalues ​​λ and the corresponding eigenvectors μ, the dimensionality reduction calculation of the attribute characteristics of the complete production data sample set is realized.

6. The method for predicting mechanical properties of multiple steel grades based on an improved random forest algorithm according to any one of claims 2 to 5, characterized in that: The method for predicting mechanical properties of multiple steel grades based on the improved random forest algorithm also includes: verifying the accuracy of the mechanical property prediction model of multiple steel grades based on the improved random forest algorithm, the specific method is: The measured values ​​of mechanical properties of the complete production data sample to be predicted are collected. According to the predicted values ​​of mechanical properties of the complete production data sample to be predicted obtained in step 4, the prediction accuracy of mechanical properties is statistically calculated to verify the accuracy of the multi-steel mechanical properties prediction model based on the improved random forest algorithm.