Method and device for controlling temperature of molten steel during ladle furnace (LF) refining based on interpretable machine learning

12146200 ยท 2024-11-19

Assignee

Inventors

Cpc classification

International classification

Abstract

A method for controlling a temperature of a molten steel during ladle furnace (LF) refining based on interpretable machine learning includes: acquiring process data of the LF refining and a target temperature of the molten steel during the LF refining; acquiring a prediction model for the temperature of the molten steel during the LF refining; calculating a base value for prediction of the temperature of the molten steel, SHapley Additive explanations (SHAP) values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values; and calculating a predicted value of the temperature of the molten steel during the LF refining, and acquiring a control result for the temperature of the molten steel during the LF refining according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining.

Claims

1. A method for controlling a temperature of a molten steel during ladle furnace (LF) refining based on interpretable machine learning, comprising: S1, acquiring process data of the LF refining and a target temperature of the molten steel during the LF refining; S2, acquiring a prediction model for the temperature of the molten steel during the LF refining according to the process data of the LF refining and the target temperature of the molten steel during the LF refining; S3, calculating a base value for prediction of the temperature of the molten steel, SHapley Additive explanations (SHAP) values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values according to the prediction model for the temperature of the molten steel during the LF refining; and S4, calculating a predicted value of the temperature of the molten steel during the LF refining according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, and acquiring a control result for the temperature of the molten steel during the LF refining according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining; wherein the S4 comprises: S41, calculating the predicted value T.sub.predict according to the following formula (2):
T.sub.predict=T.sub.basevalue+.sub.jSHAPvalue.sub.j(2) wherein T.sub.predict represents the predicted value of the temperature of the molten steel during the LF refining, T.sub.basevalue represents the base value for the prediction of the temperature of the molten steel, j represents a key factor parameter, and SHAPvalue.sub.j represents an SHAP value corresponding to the key factor parameter j; and S42, calculating a difference between the predicted value of the temperature of the molten steel during the LF refining and an actual temperature of the molten steel during the LF refining, and adjusting the key factor parameters according to the relationship trend until the difference is within a preset range to obtain adjusted key factor parameters, so as to obtain the control result for the temperature of the molten steel during the LF refining; the S2 comprises: S21, calculating an actual temperature of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining; S22, constructing a model data set according to the actual temperature of the molten steel during the LF refining and the key factor parameters, preprocessing the model data set to obtain a preprocessed model data set, and dividing the preprocessed model data set into a training set and a test set; S23, performing hyperparameter optimization on machine learning models based on the training set, k-fold cross-validation, and a hyperparameter optimization method to obtain optimal hyperparameters for a plurality of machine learning models; and S24, evaluating the plurality of machine learning models according to the test set after the hyperparameter optimization, and acquiring an optimal prediction model for the temperature of the molten steel during the LF refining according to performance indexes of the plurality of machine learning models.

2. The method according to claim 1, wherein the process data of the LF refining in the S1 comprises the key factor parameters affecting a change of the temperature of the molten steel and amounts of added materials; the key factor parameters comprise a turnover cycle of ladle, a molten steel weight, a starting temperature of molten steel, a refining time, an electrode heating time, and an argon consumption; and the added materials comprise an alloy material, a slag-making material, and a silicon-calcium wire.

3. The method according to claim 1, wherein the calculating an actual temperature of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining in the S21 comprises: calculating the actual temperature T.sub.1 of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining and a thermal equilibrium, as shown in the following formula (1):
T.sub.1=T.sub.measuredT.sub.addition(1) wherein T.sub.measured represents the target temperature of the molten steel during the LF refining and T.sub.addition represents a temperature change of the molten steel caused by an added material.

4. The method according to claim 1, wherein the preprocessing in the S22 comprises deleting repeating data and abnormal data, wherein the abnormal data comprises abnormal data caused by a sensor failure, heat data when a molten steel weight is lower than a minimum processing capacity or higher than a maximum processing capacity, heat data when a heating time during the LF refining is longer than a preset time, and heat data when a composition of a molten steel at a refining end point is not in a target composition range of a target steel grade.

5. The method according to claim 1, wherein the hyperparameter optimization method in the S23 comprises a random search technique, a Bayesian optimization (BO) technique, and a grey wolf optimization (GWO) technique.

6. The method according to claim 1, wherein the machine learning models in the S23 comprise an extreme gradient boosting (XGBoost) model and a light gradient boosting machine (LGBM) model.

7. The method according to claim 1, wherein the performance indexes in the S24 comprise a determination coefficient R.sup.2, a root mean square error (RMSE), a mean absolute error (MAE), and a hit rate within a preset error range.

8. A device for controlling a temperature of a molten steel during LF refining based on interpretable machine learning, comprising: an acquisition module configured to acquire process data of the LF refining and a target temperature of the molten steel during the LF refining; a model construction module configured to acquire a prediction model for the temperature of the molten steel during the LF refining according to the process data of the LF refining and the target temperature of the molten steel during the LF refining; a calculation module configured to calculate a base value for prediction of the temperature of the molten steel, SHAP values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values according to the prediction model for the temperature of the molten steel during the LF refining; and an output module configured to calculate a predicted value of the temperature of the molten steel during the LF refining according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, and acquire a control result for the temperature of the molten steel during the LF refining according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining; wherein the output module is further configured to: calculate the predicted value T.sub.predict according to the following formula (2):
T.sub.predict=T.sub.basevalue+E.sub.jSHAPvalue.sub.j(2) wherein T.sub.predict represents the predicted value of the temperature of the molten steel during the LF refining, T basevalue represents the base value for the prediction of the temperature of the molten steel, j represents a key factor parameter, and SHAPvalue.sub.j represents an SHAP value corresponding to the key factor parameter j; and calculate a difference between the predicted value of the temperature of the molten steel during the LF refining and an actual temperature of the molten steel during the LF refining, and adjust the key factor parameters according to the relationship trend until the difference is within a preset range to obtain adjusted key factor parameters, so as to obtain the control result for the temperature of the molten steel during the LF refining; the model construction module is further configured to: calculate an actual temperature of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining; construct a model data set according to the actual temperature of the molten steel during the LF refining and the key factor parameters, preprocess the model data set to obtain a preprocessed model data set, and divide the preprocessed model data set into a training set and a test set; perform hyperparameter optimization on machine learning models based on the training set, k-fold cross-validation, and a hyperparameter optimization method to obtain optimal hyperparameters for a plurality of machine learning models; and evaluate the plurality of machine learning models according to the test set after the hyperparameter optimization, and acquire an optimal prediction model for the temperature of the molten steel during the LF refining according to performance indexes of the plurality of machine learning models.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) In order to describe the technical solutions in the embodiments of the present disclosure clearly, the accompanying drawings required to describe the embodiments are briefly described below. Apparently, the accompanying drawings described below are only some embodiments of the present disclosure. Those of ordinary skill in the art may further obtain other accompanying drawings based on these accompanying drawings without creative efforts.

(2) FIG. 1 is a schematic flow chart of a method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning provided in an embodiment of the present disclosure;

(3) FIG. 2a to FIG. 2f show SHAP dependence graphs of different key factor parameters affecting a temperature change of a molten steel provided in an embodiment of the present disclosure;

(4) FIG. 3 is a block diagram of a device for controlling a temperature of a molten steel during LF refining based on interpretable machine learning provided in an embodiment of the present disclosure; and

(5) FIG. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

(6) To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clear, the technical solutions in the embodiments of the present disclosure are clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely some rather than all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the described embodiments of the present disclosure without creative efforts should fall within the protection scope of the present disclosure.

(7) As shown in FIG. 1, an embodiment of the present disclosure provides a method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning. The method can be implemented by an electronic device. As shown by the flow chart of the method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning in FIG. 1, the method can include the following steps: S1, Process data of the LF refining and a target temperature of the molten steel during the LF refining are acquired.

(8) The process data of the LF refining can include key factor parameters affecting a change of the temperature of the molten steel and amounts of added materials.

(9) The key factor parameters can include a turnover cycle of ladle, a molten steel weight, a starting temperature of molten steel, a refining time, an electrode heating time, and an argon consumption.

(10) The added materials can include an alloy material, a slag-making material, and a silicon-calcium wire.

(11) Specifically, the alloy material can include an aluminum wire and high-carbon ferromanganese, the slag-making material can include lime and a slag agent, and main components of the slag agent include CaF.sub.2 and unavoidable impurities.

(12) In a feasible embodiment, the process data of the LF refining can include a turnover cycle of ladle (X.sub.1), a molten steel weight (X.sub.2), a starting temperature of molten steel (X.sub.3), a refining time (X.sub.4), an electrode heating time (X.sub.5), an argon consumption (X.sub.6), an addition amount of an alloy material (an aluminum wire and high-carbon ferromanganese), an addition amount of a slag-making material (lime and a slag agent), and an addition amount of a silicon-calcium wire. The statistical descriptions of the different parameters and the addition amounts of the alloy material and the slag-making material are shown in Table 1. Main components of the slag agent are CaF.sub.2 and the balance of unavoidable impurities.

(13) TABLE-US-00001 TABLE 1 statistical descriptions of the different parameters and the addition amounts of the alloy material and the slag-making material Variable High-carb Alumi- on Silicon- X.sub.6 num ferro- Slag calcium X.sub.1 X.sub.2 X.sub.3 X.sub.4 X.sub.5 10.sup.4 wire manganese Lime agent wire Unit min kg C. min s NL m kg kg kg m Mean 64.40 153180.79 1560.86 37.92 776.91 2.39 318.63 81.33 589.41 118.28 126.99 value Minimum 34 141980 1520 21 289 1.1 0 0 0 0 0 value Maximum 89 160000 1606 69 1427 4.4 1624 682 1868 958 1133 value

(14) S2, A prediction model for the temperature of the molten steel during the LF refining is acquired according to the process data of the LF refining and the target temperature of the molten steel during the LF refining.

(15) Optionally, the S2 may include S21 to S24 as follows:

(16) S21, An actual temperature of the molten steel during the LF refining is calculated according to the target temperature of the molten steel during the LF refining.

(17) Specifically, the actual temperature T.sub.1 of the molten steel during the LF refining is calculated according to the target temperature of the molten steel during the LF refining and a thermal equilibrium, as shown in the following formula (1):
T.sub.1=T.sub.measuredT.sub.addition(1)
where T.sub.measured represents the target temperature of the molten steel during the LF refining, T.sub.measured represents a temperature change of the molten steel caused by an added material (alloy material/slag-making material/silicon-calcium wire), T.sub.addition=.sub.iG.sub.iq.sub.i, i represents an added material (alloy material or slag-making material), G.sub.i represents a weight of an added material i (kg), and q.sub.i represents a temperature effect coefficient of an added material i ( C./kg).

(18) Influence coefficients of addition amounts of different added materials on a temperature change of a molten steel are shown in Table 2.

(19) TABLE-US-00002 TABLE 2 Influence coefficients of addition amounts of different added materials on a temperature change of a molten steel Temperature Temperature effect Added effect coefficient Added coefficient material 10.sup.2 ( C./kg) material 10.sup.2 ( C./kg) High-carbon 1.30 Lime 2.00 ferromanganese Aluminum wire 0.5 Slag 2.00 CaSi wire 1.10 agent

(20) S22, A model data set is constructed according to the actual temperature of the molten steel during the LF refining and the key factor parameters, preprocessed, and then divided into a training set and a test set.

(21) Optionally, the preprocessing in the S22 includes deleting repeating data and abnormal data.

(22) The abnormal data includes abnormal data (such as NULL, 9999, and 0000) caused by a sensor failure, heat data when a molten steel weight is lower than a minimum processing capacity or higher than a maximum processing capacity, heat data when a heating time during the LF refining is longer than 1,800 s, and heat data when a composition of a molten steel at a refining end point is not in a target composition range of a target steel grade.

(23) In a feasible embodiment, the key factor parameters affecting a temperature change of the molten steel during the LF refining and the actual temperature T.sub.1 of the molten steel during the LF refining are constructed into the model data set, and the model dataset is subjected to data preprocessing.

(24) S23, Machine learning models are subjected to hyperparameter optimization based on the training set, k-fold cross-validation, and a hyperparameter optimization method to obtain optimal hyperparameters for a plurality of machine learning models.

(25) The hyperparameter optimization method may include a random search technique, a BO technique, and a GWO technique.

(26) The machine learning models can include an XGBoost model and an LGBM model.

(27) In a feasible embodiment, 8,962 groups of data obtained are divided into a training set and a test set, where 80% of the data is used as the training set for training the machine learning models and 20% of the data is used as the test set for evaluating the machine learning models. Through 10-fold cross-validation, the training set is divided into 10 parts, where 9 parts are used as a training set and 1 part is used as a validation set. The machine learning models (the XGBoost model and the LGBM model) are subjected to hyperparameter optimization by the random search technique, the BO technique, and the GWO technique to finally obtain optimal hyperparameters for different machine learning models, as shown in Table 3.

(28) TABLE-US-00003 TABLE 3 Optimal hyperparameters for different machine learning models Hyper- parameter Random Model Hyperparameter range search BO GWO XGBoost max_depth (int) [2, 10] 8 10 10 model learning_rate(float) [0.01, 1] 0.23 0.22 0.082 n_estimators(int) [20, 200] 170 186 198 gamma(float) [3, 6] 3 5.17 4.54 min_child_weight (float) [1, 3] 2 1.43 1.28 subsample(float) [0.5, 1] 0.875 0.68 0.66 colsample_bytree(float) [0.5, 1] 0.75 0.95 1 reg_alpha(float) [0, 100] 20 28.90 5.57 reg_lambda(float) [0, 100] 40 36.24 0 LGBM num_leaves (int) [2, 100] 82 51 100 model learning_rate (float) [0.01, 1] 0.34 0.25 0.085 n_estimators (int) [20, 300] 240 270 295 min_gain_to_split(float) [1, 6] 1 1.46 1.027 min_sum_hessian_in_leaf (float) [1, 6] 1 5.67 4.925 bagging_fraction(float) [0.1, 1] 0.325 0.531 0.36 feature_fraction(float) [0.1, 1] 1 0.89 1 reg_alpha(float) [0, 50] 0 11.20 2.15 reg_lambda(float) [0, 50] 45 43.39 37.04

(29) S24, The plurality of machine learning models are evaluated according to the test set after the hyperparameter optimization, and an optimal prediction model for the temperature of the molten steel during the LF refining is acquired according to performance indexes of the plurality of machine learning models.

(30) Optionally, the performance indexes in the S24 include one or more selected from the group consisting of a determination coefficient R.sup.2, an RMSE, an MAE, and a hit rate within a preset error range.

(31) Specifically, an evaluation criterion can include: the R.sup.2 is the highest, the RMES is the lowest, the MAE is the lowest, and/or the hit rate within the error range is the highest, where the error range can be 5 C.

(32) In a feasible embodiment, in a hyperparameter space for the machine learning models, machine learning-based prediction models for the temperature of the molten steel during the LF refining are subjected to hyperparameter optimization by different hyperparameter optimization methods based on the training set and the k-fold cross-validation, an optional machine learning model is evaluated with the test set, and performance indexes of the machine learning models are compared to obtain a machine learning model with optimal performance indexes.

(33) Performance indexes of different machine learning models are shown in Table 4.

(34) TABLE-US-00004 TABLE 4 Performance indexes of different machine learning models Performance indexes Hit rate in a Model R.sup.2 RMSE MAE range of 5 C./% XGoost 0.8709 3.373 2.4916 87.84 BO-XGoost 0.8753 3.3147 2.4677 88.85 GWO-XGoost 0.8813 3.2341 2.4 88.96 LGBM 0.872 3.358 2.4808 88.12 BO-LGBM 0.8736 3.3377 2.4695 88.34 GWO-LGBM 0.8823 3.2207 2.3668 89.35

(35) Obviously, the optimal model based on the embodiment of the present disclosure is GWO-LGBM, which consists of the following four major parameters: Column, Count, Gain, and Leaf. Column represents a feature column selected on a node of a decision tree for partitioning. Node partitioning depends on a value of a particular feature. Count represents a number of training samples in a node. Gain represents an information gain produced after partitioning of the current features. An information gain is an index for measuring an improvement degree of a purity of a sample set before and after partitioning. In a GWO-LGBM tree, for each partition, the optimal partition features are selected based on an information gain. Leaf represents whether the current node is a leaf node. Each node in a decision tree is either an internal node for further partitioning or a final leaf node. A leaf node is a final output of a decision tree and represents a predicted value of a sample.

(36) S3, A base value T.sub.basevalue for prediction of the temperature of the molten steel, SHAP values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values are calculated according to the prediction model for the temperature of the molten steel during the LF refining.

(37) The relationship trend includes a relationship trend between a refining time and an SHAP value, a relationship trend between an electrode heating time and an SHAP value, and a relationship trend between an argon consumption and an SHAP value.

(38) In a feasible embodiment, a relationship trend between a refining time, an electrode heating time, or an argon consumption and an SHAP value is obtained as follows: a parameter is input into a shap.TreeExplainer module in the Python language to obtain an SHAP value corresponding to the parameter, and then the SHAP value is fitted with the corresponding parameter.

(39) Further, through a change trend and distribution of an SHAP value, the influence of a key factor parameter affecting a temperature change of a molten steel on a temperature of a molten steel is further investigated. When an SHAP value is positive, it indicates that a corresponding key factor parameter affecting a temperature change of a molten steel has a positive impact on a predicted value of a temperature of a molten steel, namely, an increase of the temperature of the molten steel. On the contrary, when an SHAP value is negative, it indicates that a corresponding key factor parameter affecting a temperature change of a molten steel has a negative impact on a predicted value of a temperature of a molten steel, namely, an increase of the temperature of the molten steel.

(40) S4, A predicted value of the temperature of the molten steel during the LF refining is calculated according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, and a control result for the temperature of the molten steel during the LF refining is acquired according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining. Optionally, the S4 may include S41 to S42 as follows:

(41) S41, The predicted value T.sub.predict of the temperature of the molten steel during the LF refining is calculated according to the base value for the prediction of the temperature of the molten steel and the SHAP values, as shown in the following formula (2):
T.sub.predict=T.sub.basevalue+.sub.jSHAPvalue.sub.j(2)
where T.sub.basevalue represents the base value for the prediction of the temperature of the molten steel, j represents a key factor parameter, and SHAPvalue.sub.j represents an SHAP value corresponding to the key factor parameter j; and S42, a difference between the predicted value of the temperature of the molten steel during the LF refining and an actual temperature of the molten steel during the LF refining is calculated, and the corresponding key factor parameters are adjusted according to the relationship trend until the difference is within a preset range to obtain adjusted key factor parameters, so as to obtain the control result for the temperature of the molten steel during the LF refining.

(42) In a feasible embodiment, the corresponding parameters are adjusted according to the relationship trend until a difference between an adjusted predicted value and the actual temperature of the molten steel is within a required range to obtain process parameters for accurate control.

(43) For example:

(44) Example 1: In this example, an actual temperature T.sub.1 of a molten steel during LF refining is 1,604.51 C., a base value T.sub.basevalue for prediction of a temperature of the molten steel that is calculated based on the optimal model GWO-LGBM is 1,603.43 C., and a shap.TreeExplainer module in the Python language is adopted. Key factor parameters (X.sub.1=53 min, X.sub.2=148,100 kg, X.sub.3=1,596 C., X.sub.4=43 min, X.sub.5=719 s, and X.sub.6=1.610.sup.4 NL) are input into the module to obtain the following SHAP values corresponding to the key factor parameters: SHAPvalue.sub.1=0.74, SHAPvalue.sub.2=1.28, SHAPvalue.sub.3=6.44, SHAPvalue.sub.4=0.9, SHAPvalue.sub.5=2.13, and SHAPvalue.sub.6=0.25. When an SHAP value is positive, it indicates that a corresponding key factor parameter has a positive impact on a predicted value. When an SHAP value is negative, it indicates that a corresponding key factor parameter has a negative impact on a predicted value. An SHAP trend graph (a dependence graph) of each key factor parameter is obtained, as shown in FIG. 2a to FIG. 2f.

(45) It is calculated according to the formula (2) that a predicted value of a temperature of the molten steel during the LF refining is 1,608.61 C., and it can be known that a difference between the predicted value T.sub.predict and the actual temperature T.sub.1 (1,604.51 C.) of the molten steel is 4.1 C. Based on this, one of the following methods can be selected for key parameter adjustment: 1) When a parameter value closest to SHAPvalue.sub.4=5 is selected as 63 min (SHAPvalue.sub.4=5.17) or 65 min (SHAPvalue.sub.4=4.77) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, a refining time is adjusted to 63 min or 65 min for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,604.34 C. or 1,604.74 C. and has a deviation of 0.17 C. or 0.23 C. from T.sub.1. 2) When a parameter value closest to SHAPvalue.sub.5=6.23 is selected as 612 s (SHAPvalue.sub.5=6.22) or 583 s (SHAPvalue.sub.5=6.24) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an electrode heating time is adjusted to 612 s or 583 s for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,604.52 C. or 1604.50 C. and has a deviation of 0.01 C. from T.sub.1. 3) When a parameter value closest to SHAPvalue.sub.6=4.35 is selected as 3.310.sup.5NL (SHAPvalue.sub.6=4.35) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an argon consumption is adjusted to 3.3 10.sup.5 NL for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,604.51 C. and has a deviation of 0 C. from T.sub.1.

(46) Example 2: In this example, an actual temperature T.sub.1 of a molten steel during LF refining is 1,598.91 C., a base value T.sub.basevalue for prediction of a temperature of the molten steel that is calculated based on the optimal model GWO-LGBM is 1,603.43 C., and a shap.TreeExplainer module in the Python language is adopted. Key factor parameters (X.sub.1=61 min, X.sub.2=152,500 kg, X.sub.3=1,572 C., X.sub.4=51 min, X.sub.5=785 s, and X.sub.6=4.410.sup.4 NL) are input into the module to obtain the following SHAP values corresponding to the key factor parameters: SHAPvalue.sub.1=0.28, SHAPvalue.sub.2=2.38, SHAPvalue.sub.3=1.52, SHAPvalue.sub.4=0.18, SHAPvalue.sub.5=0.71, and SHAPvalue.sub.6=5.37. When an SHAP value is positive, it indicates that a corresponding key factor parameter has a positive impact on a predicted value. When an SHAP value is negative, it indicates that a corresponding key factor parameter has a negative impact on a predicted value. An SHAP trend graph (a dependence graph) of each key factor parameter is obtained, as shown in FIG. 2a to FIG. 2f.

(47) It is calculated according to the formula (2) that a predicted value of a temperature of the molten steel during the LF refining is 1,596.59 C., and it can be known that a difference between the predicted value T.sub.predict and the actual temperature T.sub.1 (1,598.91 C.) of the molten steel is 2.32 C. Based on this, one of the following methods can be selected for key parameter adjustment: 1) When a parameter value closest to SHAPvalue.sub.4=2.14 is selected as 63 min (SHAPvalue.sub.4=2.18) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, a refining time is adjusted to 63 min for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,598.95 C. and has a deviation of 0.04 C. from T.sub.1. 2) When a parameter value closest to SHAPvalue.sub.5=1.61 is selected as 781 s (SHAPvalue.sub.5=1.61) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an electrode heating time is adjusted to 781 s for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,598.91 C. and has a deviation of 0 C. from T.sub.1. 3) When a parameter value closest to SHAPvalue.sub.6=3.05 is selected as 3.610.sup.5 NL (SHAPvalue.sub.6=3.05) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an argon consumption is adjusted to 3.610.sup.5 NL for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,598.91 C. and has a deviation of 0 C. from T.sub.1.

(48) Example 3: In this example, an actual temperature T.sub.1 of a molten steel during LF refining is 1594.24 C., a base value T.sub.basevalue for prediction of a temperature of the molten steel that is calculated based on the optimal model GWO-LGBM is 1,603.43 C., and a shap.TreeExplainer module in the Python language is adopted. Key factor parameters (X.sub.1=45 min, X.sub.2=152,900 kg, X.sub.3=1,566 C., X.sub.4=38 min, X.sub.5=796 s, and X.sub.6=3.810.sup.4 NL) are input into the module to obtain the following SHAP values corresponding to the key factor parameters: SHAPvalue.sub.1=0.34, SHAPvalue.sub.2=2.19, SHAPvalue.sub.3=1.1, SHAPvalue.sub.4=0.87, SHAPvalue.sub.5=0.11, and SHAPvalue.sub.6=5.86. When an SHAP value is positive, it indicates that a corresponding key factor parameter has a positive impact on a predicted value. When an SHAP value is negative, it indicates that a corresponding key factor parameter has a negative impact on a predicted value. An SHAP trend graph (a dependence graph) of each key factor parameter is obtained, as shown in FIG. 2a to FIG. 2f.

(49) It is calculated according to the formula (2) that a predicted value of a temperature of the molten steel during the LF refining is 1596.59 C., and it can be known that a difference between the predicted value T.sub.predict and the actual temperature T.sub.1 (1,594.24 C.) of the molten steel is 1.14 C. Based on this, one of the following methods can be selected for key parameter adjustment: 1) When a parameter value closest to SHAPvalue.sub.4=2.01 is selected as 53 min (SHAPvalue.sub.4=2.01) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, a refining time is adjusted to 53 min for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,594.24 C. and has a deviation of 0 C. from T.sub.1. 2) When a parameter value closest to SHAPvalue.sub.5=1.03 is selected as 781 s (SHAPvalue.sub.5=1.02) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an electrode heating time is adjusted to 781 s for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,594.25 C. and has a deviation of 0.01 C. from T.sub.1. 3) When a parameter value closest to SHAPvalue.sub.6=7 is selected as 4.010.sup.5 NL (SHAPvalue.sub.6=7.05) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an argon consumption is adjusted to 4.010.sup.5 NL for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,594.19 C. and has a deviation of 0.05 C. from T.sub.1.

(50) Example 4: In this example, an actual temperature T.sub.1 of a molten steel during LF refining is 1619 C., a base value T.sub.basevalue for prediction of a temperature of the molten steel that is calculated based on the optimal model GWO-LGBM is 1,603.43 C., and a shap.TreeExplainer module in the Python language is adopted. Key factor parameters (X.sub.1=70 min, X.sub.2=157390 kg, X.sub.3=1554 C., X.sub.4=58 min, X.sub.5=1,192 s, and X.sub.6=3.110.sup.4 NL) are input into the module to obtain the following SHAP values corresponding to the key factor parameters: SHAPvalue.sub.1=0.01, SHAPvalue.sub.2=0.67, SHAPvalue.sub.3=0.82, SHAPvalue.sub.4=0.29, SHAPvalue.sub.5=18.52, and SHAPvalue.sub.6=0.15. When an SHAP value is positive, it indicates that a corresponding key factor parameter has a positive impact on a predicted value. When an SHAP value is negative, it indicates that a corresponding key factor parameter has a negative impact on a predicted value. An SHAP trend graph (a dependence graph) of each key factor parameter is obtained, as shown in FIG. 2a to FIG. 2f.

(51) It is calculated according to the formula (2) that a predicted value of a temperature of the molten steel during the LF refining is 1596.59 C., and it can be known that a difference between the predicted value T.sub.predict and the actual temperature T.sub.1 (1619 C.) of the molten steel is 3.99 C. Based on this, one of the following methods can be selected for key parameter adjustment: 1) When a parameter value closest to SHAPvalue.sub.4=4.28 is selected as 65 min (SHAPvalue.sub.4=4.77) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, a refining time is adjusted to 65 min for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,618.51 C. and has a deviation of 0.49 C. from T.sub.1. 2) When a parameter value closest to SHAPvalue.sub.5=14.53 is selected as 1,254 s (SHAPvalue.sub.5=14.58) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an electrode heating time is adjusted to 1,254 s for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,619.05 C. and has a deviation of 0.05 C. from T.sub.1. 3) When a parameter value closest to SHAPvalue.sub.6=4.14 is selected as 3.2 10.sup.5 NL (SHAPvalue.sub.6=4.13) according to an SHAP trend graph (dependence graph) of a corresponding key factor parameter, an argon consumption is adjusted to 3.2 10.sup.5 NL for actual LF refining, and a temperature of a molten steel at an end point of the LF refining is 1,619.01 C. and has a deviation of 0.01 C. from T.sub.1.

(52) In the embodiment of the present disclosure, actual working conditions of LF refining can be adjusted, which is conducive to enhancing the understanding of operators for decision-making of models. The present disclosure can guide an operator to make an accurate, scientific, and reasonable decision for the adjustment of process parameters in an actual operation, thereby improving a production efficiency, optimizing the process parameters, allowing the accurate control of a temperature of a molten steel, ensuring a quality of a molten steel, and reducing a production risk.

(53) As shown in FIG. 3, an embodiment of the present disclosure provides a device 300 for controlling a temperature of a molten steel during LF refining based on interpretable machine learning. The device 300 is configured to implement the method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning. The device 300 includes: an acquisition module 310 configured to acquire process data of the LF refining and a target temperature of the molten steel during the LF refining; a model construction module 320 configured to acquire a prediction model for the temperature of the molten steel during the LF refining according to the process data of the LF refining and the target temperature of the molten steel during the LF refining; a calculation module 330 configured to calculate a base value for prediction of the temperature of the molten steel, SHAP values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values according to the prediction model for the temperature of the molten steel during the LF refining; and an output module 340 configured to calculate a predicted value of the temperature of the molten steel during the LF refining according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, and acquire a control result for the temperature of the molten steel during the LF refining according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining.

(54) Optionally, the process data of the LF refining includes the key factor parameters affecting a change of the temperature of the molten steel and amounts of added materials.

(55) The key factor parameters include a turnover cycle of ladle, a molten steel weight, a starting temperature of molten steel, a refining time, an electrode heating time, and an argon consumption.

(56) The added materials include an alloy material, a slag-making material, and a silicon-calcium wire.

(57) Optionally, the model construction module 320 is further configured to: S21, calculate an actual temperature of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining; S22, construct a model data set according to the actual temperature of the molten steel during the LF refining and the key factor parameters, preprocess the model data set to obtain a preprocessed model data set, and divide the preprocessed model data set into a training set and a test set; S23, subject machine learning models to hyperparameter optimization based on the training set, k-fold cross-validation, and a hyperparameter optimization method to obtain optimal hyperparameters for a plurality of machine learning models; and S24, evaluate the plurality of machine learning models according to the test set after the hyperparameter optimization, and acquire an optimal prediction model for the temperature of the molten steel during the LF refining according to performance indexes of the plurality of machine learning models.

(58) Optionally, the model construction module 320 is further configured to: calculate the actual temperature T.sub.1 of the molten steel during the LF refining according to the target temperature of the molten steel during the LF refining and a thermal equilibrium, as shown in the following formula (1):
T.sub.1=T.sub.measuredT.sub.addition(1)
where T.sub.measured represents the target temperature of the molten steel during the LF refining and T.sub.addition represents a temperature change of the molten steel caused by an added material.

(59) Optionally, the preprocessing includes deleting repeating data and abnormal data.

(60) The abnormal data includes abnormal data caused by a sensor failure, heat data when a molten steel weight is lower than a minimum processing capacity or higher than a maximum processing capacity, heat data when a heating time during the LF refining is longer than a preset time, and heat data when a composition of a molten steel at a refining end point is not in a target composition range of a target steel grade.

(61) Optionally, the hyperparameter optimization method includes a random search technique, a BO technique, and a GWO technique.

(62) Optionally, the machine learning models include an XGBoost model and an LGBM model.

(63) Optionally, the performance indexes include a determination coefficient R.sup.2, an RMSE, an MAE, and a hit rate within a preset error range.

(64) Optionally, the output module 330 is further configured to:

(65) S41, calculate the predicted value T.sub.predict of the temperature of the molten steel during the LF refining according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, as shown in the following formula (2):
T.sub.predict=T.sub.basevalue+.sub.jSHAPvalue.sub.j(2)
where T.sub.basevalue represents the base value for the prediction of the temperature of the molten steel, j represents a key factor parameter, and SHAPvalue.sub.j represents an SHAP value corresponding to the key factor parameter j; and S42, calculate a difference between the predicted value of the temperature of the molten steel during the LF refining and an actual temperature of the molten steel during the LF refining, and adjust the key factor parameters according to the relationship trend until the difference is within a preset range to obtain adjusted key factor parameters, so as to obtain the control result for the temperature of the molten steel during the LF refining.

(66) In the embodiment of the present disclosure, actual working conditions of LF refining can be adjusted, which is conducive to enhancing the understanding of operators for decision-making of models. The present disclosure can guide an operator to make an accurate, scientific, and reasonable decision for the adjustment of process parameters in an actual operation, thereby improving a production efficiency, optimizing the process parameters, allowing the accurate control of a temperature of a molten steel, ensuring a quality of a molten steel, and reducing a production risk.

(67) FIG. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present disclosure. The electronic device 400 may vary greatly due to different configurations or properties, and may include one or more processors (central processing units (CPUs)) 401 and one or more memories 402. At least one instruction is stored in the one or more memories 402, and the at least one instruction is loaded and executed by the one or more processors 401 to implement the following method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning:

(68) S1, Process data of the LF refining and a target temperature of the molten steel during the LF refining are acquired.

(69) S2, A prediction model for the temperature of the molten steel during the LF refining is acquired according to the process data of the LF refining and the target temperature of the molten steel during the LF refining.

(70) S3, A base value for prediction of the temperature of the molten steel, SHAP values of key factor parameters, and a relationship trend between the key factor parameters and the SHAP values are calculated according to the prediction model for the temperature of the molten steel during the LF refining.

(71) S4, A predicted value of the temperature of the molten steel during the LF refining is calculated according to the base value for the prediction of the temperature of the molten steel and the SHAP values of the key factor parameters, and a control result for the temperature of the molten steel during the LF refining is acquired according to the relationship trend and the predicted value of the temperature of the molten steel during the LF refining.

(72) In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including an instruction, where the instruction can be executed by a processor in a terminal to complete the method for controlling a temperature of a molten steel during LF refining based on interpretable machine learning. For example, the computer-readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, or the like.

(73) Those of ordinary skill in the art can understand that all or some of the steps in the above embodiments may be implemented by hardware, or by instructing related hardware by using a program. The program may be stored in a computer-readable storage medium. The storage medium may be an ROM, a disk, a compact disc, or the like.

(74) The above are merely preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, and the like made within the spirit and principle of the present disclosure shall be all included in the protection scope of the present disclosure.