Method and equipment for designing high-entropy alloy and storage medium
Through the combination of machine learning models and neural networks, the problem of complexity in predicting the hardness of high-entropy alloys is solved, efficient and accurate design and optimization are achieved, costs and development cycles are reduced, and strong support is provided for the development of high-entropy alloys. Performance improvements.
Patent Information
- Application Number
- CN202410620742.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-30
AI Technical Summary
In the design of high-entropy alloys, existing technology is difficult to effectively utilize the complex interactions of multiple elements, resulting in high complexity of hardness prediction, poor model feasibility, and over-fitting phenomena, which affects alloy performance optimization.
Using machine learning models combined with neural networks, multiple input and output models are built through data preprocessing, feature selection and model cross-validation, and backpropagation logic is used to modify parameters to each other, improving model accuracy and stability, and reducing costs and development cycles.
It achieves efficient and accurate high-entropy alloy design and performance optimization, avoids over-fitting, improves design efficiency and accuracy, and provides strong support for element optimization of high-entropy alloys.
Smart Images

Figure CN118569065A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of high entropy alloys, and in particular to a method, device and storage medium for designing a high entropy alloy. Background Art
[0002] High entropy alloys are composed of five or more elements with a molar fraction between 5% and 35%, which makes them have excellent properties such as high strength, high hardness and high temperature resistance, and are widely used in many fields such as materials science. The huge element composition space of high entropy alloys provides valuable opportunities for improving mechanical properties, but also creates major challenges for element optimization.
[0003] The performance of high entropy alloys is affected by the element ratio and atomic arrangement of the various elements they are composed of. The complex interactions between different elements make it difficult to establish a relationship between the element content and the hardness of the alloy. As an important indicator of mechanical properties such as elasticity, plasticity, strength, and toughness, hardness is of great significance for the design and application of high entropy alloys. With the vigorous development of computer networks and materials science, methods such as phase diagram calculation, phase field simulation, density functional theory, and molecular dynamics, supplemented by high-throughput technology, have been widely used in the element design and performance optimization of alloys. However, how to efficiently use known information to reduce experimental costs, improve computational efficiency, and shorten the development cycle is still a major bottleneck in the field of high entropy alloy research in materials science. The emergence of machine learning makes up for the shortcomings of traditional experimental, simulation, and computational methods, shortening the R&D cycle while reducing experimental costs. Li et al. improved the traditional genetic algorithm and introduced the concepts of feature importance and gene operation, realizing the hardness prediction of Al-Co-Cr-Cu-Fe-Ni high entropy alloys. However, this method is only for a single alloy system and is not universal. Chen et al. proposed an alloy design system (MADS) based on machine learning, which took the atomic characteristics and empirical parameters of high entropy alloys as input and established a hardness prediction model based on support vector machines. This method requires feature calculation and reasonable selection of feature combinations, and is not suitable for hardness prediction of high entropy alloys with high-dimensional feature sets.
[0004] In the process of introducing machine learning to predict the hardness of high-entropy alloys, the coupling effect between different contents of alloy elements will have a great impact on the prediction results. In addition, the differences in physical parameters and processing conditions will also increase the complexity of the relationship between construction characteristics and alloy hardness. The relationship between multiple components and multiple physical parameters is often multidimensional and nonlinear, which will greatly affect the feasibility of the model and even cause overfitting. Summary of the invention
[0005] The problem solved by the present invention is to provide a method, a device and a storage medium for designing a high entropy alloy, which are used for designing a high entropy alloy and providing strong support for optimizing the performance of the high entropy alloy.
[0006] To solve the above problems, the present invention provides a method for designing a high entropy alloy, comprising the following steps:
[0007] S1. Acquire various characteristic data of different high entropy alloys from a high entropy alloy database, and preprocess the various characteristic data;
[0008] S2. Construct multiple machine learning models whose input is various feature data and whose output is the hardness of high entropy alloy; construct a neural network model whose input is the hardness of high entropy alloy and whose output is various feature data;
[0009] S3, dividing each feature data into a training set and a test set, and training each machine learning model and neural network model;
[0010] S4. Selecting the optimal machine learning model from each machine learning model;
[0011] S5, inputting the hardness value of the first high entropy alloy into the neural network model to obtain various characteristic data of the pending high entropy alloy;
[0012] S6, inputting the characteristic data of the high entropy alloy to be determined into the optimal machine learning model to obtain the hardness value of the second high entropy alloy, and comparing the hardness value of the second high entropy alloy with the hardness value of the first high entropy alloy. If the error is within a preset threshold range, the characteristic data of the high entropy alloy to be determined is determined; if the error is outside the threshold range, turning to step S7;
[0013] S7. Adjust the hidden layer parameters of the neural network model so that the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy are less than or equal to the threshold range.
[0014] The method can obtain various characteristic data of the determined high entropy alloy by inputting the hardness value of the first high entropy alloy into the trained neural network model. If the hardness is less than or equal to the threshold range, the various characteristic data of the to-be-determined high entropy alloy are determined, indicating that the various characteristic data of the to-be-determined high entropy alloy can be used as a reference for staff to design high entropy alloys; if the hardness error is greater than the threshold range, the hidden layer parameters of the neural network model are adjusted so that the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy are less than or equal to the threshold range, so that the neural network parameters can be corrected to make the neural network more accurate; the method compares and corrects the two models with each other, and adopts the logic of back propagation to each other, so that the high entropy alloy design has high efficiency, low cost, high precision and good stability, and can provide strong support for the design and performance optimization of high entropy alloys.
[0015] Furthermore, in step S1, data preprocessing includes:
[0016] S11, data cleaning, deleting invalid data and missing data in each feature data;
[0017] S12, data dimensionality reduction, deleting irrelevant and redundant data in each feature data;
[0018] S13, data normalization, normalize each feature data, the normalization formula is as follows:
[0019]
[0020] Among them, X is the value of each feature data, X max is the maximum value of each feature data, X min is the minimum value of each feature data.
[0021] In the above settings, deleting invalid data and missing data in each feature data can prevent the impact on the training results. Deleting irrelevant data and redundant data in each feature data can prevent overfitting. Normalization facilitates data operation in various machine learning models and also facilitates downstream output in neural networks.
[0022] Furthermore, in step S2, each machine learning model is a linear regression model, a decision tree model, a random forest model and an extreme gradient boosting model.
[0023] The four models set up above can meet the requirements of inputting various characteristic data and outputting the hardness of high entropy alloy.
[0024] Furthermore, in step S4, the optimal machine learning model is selected from each machine learning model through ten-fold cross validation.
[0025] The ten-fold cross validation with the above settings can accurately evaluate the performance of each machine learning model and avoid the problems of underfitting and overfitting to a certain extent.
[0026] Furthermore, in step S6, the SHAP explanatory model is introduced into the optimal machine learning model for performing an explanatory analysis on the hardness value of the second high entropy alloy.
[0027] The SHAP explanation model set above can explain the contribution of each feature data to the prediction results and improve the interpretability.
[0028] The present application also provides an electronic device, comprising:
[0029] Memory, used to store computer programs;
[0030] A processor is used to execute a computer program to implement a method for designing a high entropy alloy as described in any one of the above.
[0031] The present application also provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of a method for designing a high-entropy alloy described in any one of the above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A neural network structure diagram in an embodiment of the present invention;
[0033] Figure 2 A bar chart with error bars showing the results of the ten-fold cross validation of the four models of LR, DT, RF and XGB in an embodiment of the present invention;
[0034] Figure 3 This is a feature importance ranking diagram based on the RF algorithm in an embodiment of the present invention;
[0035] Figure 4 The model prediction results obtained in the embodiment of the present invention as features are added;
[0036] Figure 5 This is a feature analysis diagram of the SHAP method introduced in the embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0038] This embodiment provides a method for designing a high entropy alloy, comprising the following steps:
[0039] S1. Acquire various characteristic data of different high entropy alloys from a high entropy alloy database, and preprocess the various characteristic data;
[0040] Furthermore, in this step, data preprocessing includes:
[0041] S11, data cleaning, deleting invalid data and missing data in each feature data;
[0042] S12, data dimensionality reduction, deleting irrelevant and redundant data in each feature data;
[0043] S13, data normalization, normalize each feature data, the normalization formula is as follows:
[0044]
[0045] Among them, X is the value of each feature data, X max is the maximum value of each feature data, X min is the minimum value of each feature data.
[0046] Specifically, the high entropy alloy database refers to various public high entropy alloy-related literature and materials on the Internet or in the real world, and can also be a computer software database artificially constructed by technicians in this field based on existing high entropy alloy-related literature and materials; wherein various characteristic data include but are not limited to Al content, Cu content, Mg content, Si content, Zn content, Zr content, Ag content, Fe content, Ti content, Cr content, high entropy alloy density, high entropy alloy heating temperature, high entropy alloy heating time, the number of valence electrons of the above elements in the high entropy alloy, high entropy alloy melting point and high entropy alloy thermal conductivity. After preprocessing, the number of characteristic data items will be reduced.
[0047] Invalid data refers to erroneous feature data, missing data refers to missing feature data, irrelevant data refers to feature data that is not related to hardness, and redundant data refers to repeated feature data. Deleting invalid data and missing data in each feature data can prevent affecting the training results. Deleting irrelevant data and redundant data in each feature data can prevent overfitting. Normalization facilitates the operation of data in each machine learning model and also facilitates downstream output in the neural network. In this embodiment, the feature data left after preprocessing are Al content, Cu content, Mg content, Si content, Zn content, Zr content, Ag content, Fe content, Ti content, Cr content, high entropy alloy density, high entropy alloy heating temperature and high entropy alloy heating time.
[0048] S2. Construct multiple machine learning models whose input is various feature data and whose output is the hardness of high entropy alloy; construct a neural network model whose input is the hardness of high entropy alloy and whose output is various feature data;
[0049] Specifically, the machine learning models are linear regression model (LR), decision tree model (DT), random forest model (RF) and extreme gradient boosting model (XGB), among which the extreme gradient boosting model (XGB) is the XGBoost model;
[0050] Specifically, as attached Figure 1As shown, the number of input layer nodes of the neural network model is 1. Since only 13 feature data are left after the above preprocessing of the feature data, corresponding to Al content, Cu content, Mg content, Si content, Zn content, Zr content, Ag content, Fe content, Ti content, Cr content, high entropy alloy density, high entropy alloy heating temperature and high entropy alloy heating time, the number of output layer nodes of the neural network model is 13, corresponding to the above Al content, Cu content, Mg content, Si content, Zn content, Zr content, Ag content, Fe content, Ti content, Cr content, high entropy alloy density, high entropy alloy heating temperature and high entropy alloy heating time, the tansig function in the S-type activation function is used in the neural network model, the number of hidden layers is two, and the number of neurons in each hidden layer can be adjusted according to the actual situation and the adaptability of the prior art. For example, the number of neurons in the hidden layer can be set according to the following formula:
[0051]
[0052] Among them, Nh represents the number of neurons in the hidden layer, N i represents the number of neurons in the input layer, No represents the number of neurons in the output layer, α is a self-selected value, and 2≤α≤10.
[0053] S3, dividing each feature data into a training set and a test set, and training each machine learning model and neural network model;
[0054] Specifically, each feature data is randomly divided into training set and test set in a ratio of 8:2.
[0055] S4. Selecting the optimal machine learning model from each machine learning model;
[0056] Specifically, the optimal machine learning model is selected from various machine learning models through ten-fold cross validation. Ten-fold cross validation can accurately evaluate the performance of each machine learning model and avoid the problems of underfitting and overfitting to a certain extent.
[0057] The following table shows the results of ten-fold cross validation of the neural network model using linear regression (LR), decision tree (DT), random forest (RF) and extreme gradient boosting (XGB):
[0058]
[0059]
[0060] In the above table, the maximum value of each column is the best result of each machine learning model in ten cross-validations. The results in the above table are combined with the bar chart with error bars to draw the attached figure. Figure 2 , according to the attached Figure 2It can be seen that extreme gradient boosting (XGB) has the highest prediction accuracy and the best stability, so this machine learning model is selected as the optimal machine learning model.
[0061] On the other hand, when training in each machine learning model, the importance of each feature data can be sorted, and the hardness feature data that affects the hardness of the high entropy alloy can be screened out according to the importance; in order to accurately find the hardness feature data with the highest correlation, the present invention combines the attached Figure 2 Select RF and XGB, two models with better prediction performance, and rank the importance of each feature data. Through comparison and analysis, it is found that the RF model performs better in this aspect. Therefore, in the process of ranking each feature data, this embodiment selects the RF model to rank the importance of each feature data. Figure 4 It is based on the feature data importance ranking diagram, from the attached Figure 4 It can be seen that the characteristics of high entropy alloy density, high entropy alloy heating temperature, high entropy alloy heating time and Al are of great importance. Al refers to the aluminum content, which means that these four characteristic data are the main factors affecting the hardness of high entropy alloys and have a great contribution to the hardness prediction of high entropy alloys. Therefore, these four characteristic data are used as hardness characteristic data.
[0062] In order to specifically study the impact of each feature data on the prediction effect, this embodiment retrains and evaluates the four machine learning models according to the importance ranking of each feature data, inputs each feature data from large to small according to the importance coefficient, and uses the fitting coefficient R 2 The value is used as the evaluation index, and the results are shown in the attached Figure 3 As shown. Figure 3 As can be seen, the LR prediction effect is very poor, the DT prediction effect is average and unstable, the XGB and RF models are stable and accurate, but the prediction performance of RF is slightly inferior to that of XGB.
[0063] from Figure 4 From the overall trend and performance of the model, when the above four feature data are added, the prediction accuracy of XGB and RF is significantly improved and the fluctuation is not large. As the number of feature data items increases, the prediction effect of the model gradually stabilizes. According to the results, even if only four feature data are input, the prediction effect is very good. Its R 2 The value is as high as 0.93, and the RMSE value is only 8.07, which also shows that the XGB model in this embodiment has certain reliability and accuracy.
[0064] S5, inputting the hardness value of the first high entropy alloy into the neural network model to obtain various characteristic data of the pending high entropy alloy;
[0065] Furthermore, in this step, the staff inputs the Vickers hardness value of the high entropy alloy commonly used in actual production and life or the Vickers hardness value of the expected high entropy alloy as the first high entropy alloy hardness value into the neural network model to obtain various characteristic data of the pending high entropy alloy.
[0066] S6, inputting the characteristic data of the high entropy alloy to be determined into the optimal machine learning model to obtain the hardness value of the second high entropy alloy, and comparing the hardness value of the second high entropy alloy with the hardness value of the first high entropy alloy. If the error is within a preset threshold range, the characteristic data of the high entropy alloy to be determined is determined; if the error is outside the threshold range, turning to step S7;
[0067] Furthermore, in this step, the SHAP explanation model is introduced into the optimal machine learning model for interpretative analysis of the hardness value of the second high entropy alloy;
[0068] Specifically, the SHAP explanation model can explain the contribution of each feature data to the prediction results and improve the interpretability; the SHAP explanation model is the SHapley Additive exPlanation method, which is used to evaluate the contribution of each feature data to the prediction results. Figure 5 As shown in (a), each point represents a complete high entropy alloy sample. The horizontal axis is the SHAP value, and the vertical axis is the characteristic data, which are arranged from top to bottom according to their importance. The concentration area represents the size of each characteristic data. The larger the characteristic data, the larger the concentration area of the sample point. A positive SHAP value indicates that the characteristic data plays a positive role in improving the hardness of the high entropy alloy, otherwise it reduces the hardness of the high entropy alloy. Figure 5 (a) It can be seen that the density of high entropy alloy has a significant impact on the prediction results. In addition, the addition of elements such as Ag, Si, and Zn is beneficial to improving the hardness of high entropy alloys, while the addition of elements such as Cu, Zr, and Cr will reduce the hardness of high entropy alloys. Figure 5 (b) shows the absolute SHAP average of each feature data, that is, taking the absolute value of the SHAP value of all feature data corresponding samples and adding them up. In a sense, the average SHAP graph can be regarded as a feature data importance ranking graph, which further enhances the interpretability of the model.
[0069] On the other hand, in this step, if the error value between the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy is within 5% of the hardness value of the second high entropy alloy, including or equal to 5%, then the various characteristic data of the to-be-determined high entropy alloy are determined, indicating that the various characteristic data of the to-be-determined high entropy alloy can be used as a reference for the staff to design high entropy alloys; if the error value between the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy is outside 5% of the hardness value of the second high entropy alloy, proceed to step S7.
[0070] S7, adjusting the hidden layer parameters of the neural network model so that the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy are less than or equal to the threshold range;
[0071] Further, the hidden layer parameters of the neural network model are adjusted so that the error value between the first high entropy alloy hardness value and the second high entropy alloy hardness value is outside the 5% range of the second high entropy alloy hardness value, that is, by adjusting the hidden layer parameters of the neural network model, the various characteristic data of the pending high entropy alloy are corrected, and then the corrected various characteristic data of the pending high entropy alloy are re-input into the optimal machine learning model to obtain a new second high entropy alloy hardness value, and then the new second high entropy alloy hardness value is compared with the first high entropy alloy hardness value until the error value between the first high entropy alloy hardness value and the new second high entropy alloy hardness value is within the 5% range of the new second high entropy alloy hardness value, including or equal to 5%, then the corrected various characteristic data of the pending high entropy alloy are determined, otherwise continue to repeat this step.
[0072] This method compares and corrects the two models against each other, and adopts the logic of back-propagation, which makes the high-entropy alloy design efficient, low-cost, high-precision and stable, and can provide strong support for the design and performance optimization of high-entropy alloys.
[0073] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement a method for designing a high entropy alloy as described in the above embodiment.
[0074] The present application also provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of a method for designing a high-entropy alloy as described in the above embodiment are implemented.
[0075] Although the disclosure is disclosed as above, the protection scope of the disclosure is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the disclosure, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for designing a high entropy alloy, characterized in that: The following steps are involved: S1. Acquire various characteristic data of different high entropy alloys from a high entropy alloy database, and preprocess each characteristic data; S2. Construct a machine learning model whose input is the characteristic data of each item and whose output is the hardness of the high entropy alloy; construct a neural network model whose input is the hardness of the high entropy alloy and whose output is the characteristic data of each item; S3, dividing each of the feature data into a training set and a test set, and training each of the machine learning models and the neural network model; S4. Selecting the optimal machine learning model from the machine learning models; S5, inputting the hardness value of the first high entropy alloy into the neural network model to obtain various characteristic data of the high entropy alloy to be determined; S6, inputting the characteristic data of the pending high entropy alloy into the optimal machine learning model to obtain a second high entropy alloy hardness value, and comparing the second high entropy alloy hardness value with the first high entropy alloy hardness value. If the error is within a preset threshold range, the characteristic data of the pending high entropy alloy are determined; If the error is outside the threshold range, go to step S7; S7. Adjust the hidden layer parameters of the neural network model so that the hardness value of the second high entropy alloy and the hardness value of the first high entropy alloy are less than or equal to the threshold range.
2. A method for designing a high entropy alloy according to claim 1, characterized in that: In step S1, the data preprocessing includes: S11, data cleaning, deleting invalid data and missing data in each feature data; S12, data dimension reduction, deleting irrelevant data and redundant data in each feature data; S13, data normalization, normalizing each feature data, the normalization formula is as follows: Where X is the value of each characteristic data, X max is the maximum value of each characteristic data, X min is the minimum value of each feature data.
3. A method for designing a high entropy alloy according to claim 2, characterized in that: In step S2, each of the machine learning models is a linear regression model, a decision tree model, a random forest model, and an extreme gradient boosting model.
4. A method for designing a high entropy alloy according to claim 3, characterized in that: In step S4, the optimal machine learning model is selected from the machine learning models through ten-fold cross validation.
5. A method for designing a high entropy alloy according to claim 4, characterized in that: In step S6, a SHAP explanatory model is introduced into the optimal machine learning model to perform an explanatory analysis on the hardness value of the second high entropy alloy.
6. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement a method for designing a high entropy alloy as claimed in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that: Used to store computer programs; when the computer program is executed by a processor, the steps of a method for designing a high entropy alloy as described in any one of claims 1 to 5 are implemented.
