Next Article in Journal
ESG-Driven Traceability Adoption: An Impact Thinking Multi-Dimensional Framework for the Fashion and Textile Industry
Previous Article in Journal
Citizen Science in Plastic Remediation: Strategies, Applications, and Technologies for Community Engagement
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Driven Prediction of Tensile Strength in Heat-Treated Steels Using Random Forests for Sustainable Materials Design

Department of Mechanical Engineering, College of Engineering, Shaqra University, Dawadmi 11911, Riyadh, Saudi Arabia
Sustainability 2026, 18(2), 1087; https://doi.org/10.3390/su18021087
Submission received: 23 December 2025 / Revised: 12 January 2026 / Accepted: 15 January 2026 / Published: 21 January 2026
(This article belongs to the Section Sustainable Materials)

Abstract

Accurate prediction of ultimate tensile strength (UTS) is central to the design and optimization of heat-treated steels but is traditionally achieved through costly and iterative experimental trials. This study presents a transparent, physics-aware machine learning (ML) framework for predicting UTS using an open-access steel database. A curated dataset of 1255 steel samples was constructed by combining 18 chemical composition variables with 7 processing descriptors extracted from free-text heat-treatment records and filtering them using physically justified consistency criteria. To avoid information leakage arising from repeated measurements, model development and evaluation were conducted under a group-aware validation framework based on thermomechanical states. A Random Forest (RF) regression model achieved robust, conservative test-set performance (R2 ≈ 0.90, MAE ≈ 40 MPa), with unbiased residuals and realistic generalization across diverse composition–processing conditions. Performance robustness was further examined using repeated group-aware resampling and strength-stratified error analysis, highlighting increased uncertainty in sparsely populated high-strength regimes. Model interpretability was assessed using SHAP-based feature importance and partial dependence analysis, revealing that UTS is primarily governed by the overall alloying level, carbon content, and processing parameters controlling transformation kinetics, particularly bar diameter and tempering temperature. The results demonstrate that reliable predictions and physically meaningful insights can be obtained from publicly available data using a conservative, reproducible machine-learning workflow.

1. Introduction

Steels remain the backbone of modern infrastructure, transportation, and energy systems, and incremental improvements in their mechanical performance have considerable economic and environmental impacts [1,2]. Ultimate tensile strength (UTS) is a key design parameter for structural and high-performance steels, as it constrains allowable stresses, safety factors, and service lifetimes [3]. Traditionally, UTS has been tuned through empirical adjustments of composition and heat-treatment schedules, guided by physical metallurgy and iterative plant or laboratory trials [4]. However, as alloy chemistries become more complex and processing routes more diverse, this trial-and-error approach becomes increasingly costly, time-consuming, and resource-intensive [5,6,7,8]. At the same time, the advances in machine learning (ML) provide new opportunities to learn quantitative structure processing property relationships directly from data and to accelerate the design and optimization of steels [6,8]. The objectives of this study are to (i) construct a physically consistent, ML-ready dataset of heat-treated steels by combining full chemical composition with structured heat-treatment descriptors extracted from free-text records; (ii) develop and evaluate a leakage-free baseline model for predicting UTS that generalizes to unseen composition–processing conditions; and (iii) interpret the learned relationships to identify which compositional and processing variables most strongly govern strength, with an emphasis on actionable and physically meaningful trends.
Although the mechanisms governing strength in steels are well established, encompassing solid-solution strengthening, precipitation, grain refinement, and transformation hardening, the combined effects of multiple alloying elements and multi-step heat treatments are highly nonlinear [7,9]. This complexity makes it challenging to derive simple, generalizable models that accurately predict UTS over a wide range of compositions and processing conditions [10]. In recent years, ML methods such as artificial neural networks, support vector machines, gradient boosting, and Random Forests (RFs) have been increasingly applied to steels and other alloys to predict mechanical properties from composition and processing descriptors [6,7,11]. Many of these studies have reported promising accuracy and demonstrated the potential of data-driven approaches to complement conventional alloy design [12]. Still, they often rely on proprietary datasets, focus on narrow composition ranges or specific grades, or give limited attention to interpretability and physically meaningful preprocessing [7].
Accordingly, the overall goal of this work is to develop a transparent and reproducible machine-learning workflow that predicts UTS from information that is commonly available in the literature, chemical composition, and basic heat-treatment descriptors—while reporting conservative generalization to unseen composition–processing conditions. This goal is addressed through three research questions: (1) Can UTS be predicted accurately from tabular composition + extracted processing descriptors using a simple ensemble model? (2) How does performance change when evaluation is made leakage-free by grouping repeated measurements into unique thermomechanical states? (3) Which variables dominate the predictions, and do their effects agree with established metallurgical expectations?
This study makes four contributions. First, it converts heterogeneous free-text heat-treatment descriptions into a consistent set of structured processing descriptors and combines them with full composition to form a unified feature space. Second, it enforces basic metallurgical consistency through transparent screening rules, producing a curated dataset suitable for reproducible modeling. Third, lead-lag information leakage is prevented by defining thermomechanical states and performing group-aware splitting and cross-validation, so the reported performance reflects state-level generalization rather than record-level interpolation. Fourth, it couples predictive modeling with SHAP/PDP interpretability and strength-stratified error analysis to provide physically meaningful insights and to identify regimes where uncertainty increases.
The overall research workflow is summarized in Figure 1, which presents a three-phase framework encompassing data collection and preprocessing, leakage-free model development, and model evaluation and interpretation. The workflow begins with data acquisition from an open-access steel database, followed by data cleaning, physical consistency screening, and rule-based extraction of processing parameters to construct the final feature space. Model development is performed using thermomechanical state definition, group-aware train–test splitting, RF training with group-aware cross-validation, and robustness analysis via repeated resampling. The final phase includes group-aware test-set evaluation, residual and strength-stratified error analysis, and model interpretability using SHapley Additive exPlanations (SHAP) and partial dependence analysis, which together support subsequent metallurgical interpretation and sustainability assessment.
The rest of the paper is organized as follows. After a focused review of relevant literature on machine-learning approaches for predicting the mechanical properties of steels and other alloys, the dataset, preprocessing steps, and logical filters used to ensure physical consistency are described. The development of the Random Forest model, group-aware cross-validation, and hyperparameter optimization strategy are then presented, followed by leakage-free evaluation on the test set, residual analysis, and interpretable feature analysis using SHAP and partial dependence plots. Finally, the metallurgical interpretation of key features is discussed, the model’s robustness and limitations are assessed, and broader implications for data-driven, sustainable steel design are highlighted before the overall conclusions are drawn.

2. Literature Review

Accurately predicting UTS of steels is crucial for designing safe, lightweight, and durable structures [13]. Traditional alloy development relied on lengthy experiments and empirical correlations, but modern sustainability goals require rapid screening of compositions and processing methods [14]. Materials science now combines high-throughput experiments and simulations with available databases to understand the relationships between composition, process, and properties. The Materials Genome Initiative and similar programs encourage integrating experiments, simulation, and data analysis [15]. ML plays a key role in this integrated computational materials engineering (ICME) framework by identifying patterns in complex data and allowing rapid property predictions [16].
Semi-empirical and physically based models have long linked microstructure to strength [17]. A classic example is the Hall-Petch relation [17,18], where yield strength increases with decreasing grain size as
σ ( d ) = σ 0 + k H P d
Solid-solution, precipitation, work hardening, and transformation hardening are also quantified through metallurgical theory [19]. CALculation of PHAse Diagrams (CALPHAD) and micromechanical models simulate phase evolution and mechanical response, but often treat one mechanism at a time and require extensive calibration [14,20]. These limitations hinder their use for multi-element steels with complex heat treatments, motivating the adoption of data-driven methods [16].
ML accelerates alloy design by learning composition–process–property relationships and by adopting structured predictive-modeling pipelines that integrate feature construction, model benchmarking, and validation strategies [8,21,22]. Supervised regression models, including linear regression, support vector machines, neural networks, and RFs, have been applied to predict UTS, yield strength, hardness, and ductility [21]. Datasets typically contain tens to hundreds of samples. Cheng et al. compiled 580 samples of Fe-C-Mn-Al steels with compositions and heat-treatment conditions [23]. RF delivered an average absolute error of about 90 MPa for UTS and 7.9% for elongation and was used to identify high-strength compositions [23]. Kateb and Safarian evaluated a smaller, more diverse steel dataset (13 chemical inputs) and found that RFs were both accurate and robust across cross-validation schemes [24]. Their models captured the trade-off between elongation and strength and highlighted the significance of tempering temperature and the concentrations of carbon, chromium, and manganese.
In automotive steels, Wang et al. assembled 106 samples spanning composition, heat treatment, and strain rate [25]. RF models performed comparably to other ensemble methods, and SHAP analysis indicated that carbon, manganese, and tempering temperature strongly influence tensile strength [25]. For high-entropy alloys, Ibarra et al. used structural, electronic, and thermodynamic descriptors with RFs, employing genetic algorithms to select salient features and 10-fold cross-validation for robust evaluation [26]. Wan et al. combined RF classification and regression to analyze 304 high-entropy alloys (HEAs) and linked descriptors, such as enthalpy of mixing and valence-electron concentration, to compressive strength and hardness [27].
Microstructure-informed models. ML has also been combined with image-based features. Darabi et al. generated 1188 synthetic dual-phase microstructures and extracted features using convolutional neural networks [28]. RF regression achieved a mean squared error below 2%, outperforming AdaBoost. In TWinning-Induced Plasticity (TWIP) steel, RF models predicted yield strength with R2 ≈ 0.80, beating neural networks and support vector machines [28].
Tree-based ensembles, particularly Random Forests, and hybrid, physics-aware machine-learning frameworks have become increasingly popular for predictive modeling in engineering applications, balancing accuracy, robustness, and interpretability while embedding physical or mechanistic constraints [21,29,30,31,32]. They model nonlinear interactions without explicit functional forms, handle missing values and mixed data types, and offer built-in measures of feature importance. Studies consistently report that RFs match or surpass neural networks and support vector machines in accuracy while offering interpretability. For example, Cheng et al. found that RFs outperformed other models for Fe-C-Mn-Al steels [23]. Kateb and Safarian observed robustness across validation schemes [24]. SHAP analysis in automotive steels highlighted how carbon, manganese, and tempering temperature govern strength [25]. Feature importance in these models aligns with metallurgical expectations (e.g., carbon and nitrogen strengthen steel), enabling actionable insights.
Many studies consider only composition or a few processing variables, yet heat-treatment parameters such as austenitising temperature, quenching medium, and bar diameter strongly affect the microstructure [22,33]. Datasets often lack curation, contain inconsistent units, or omit metadata, undermining model reliability. Feature importance is sometimes reported without connecting to metallurgical mechanisms. Curated steel databases with both composition and processing information are still rare [21,22]. The present work uses an open database with 18 composition variables and seven processing descriptors, applies rigorous data cleaning, and builds RF models that emphasize interpretability and sustainable alloy design.
Representative peer-reviewed studies on ML prediction of mechanical properties in steels and related alloys are summarized in Table 1. The table highlights the alloy systems, targeted properties, input features, ML models, dataset sizes, and reported performance. The variety of datasets and models illustrates the breadth of the field. At the same time, the prominence of RF and related tree ensembles underscores their suitability for predicting mechanical properties from tabular data.
Across this literature, two practical gaps recur: (i) heat-treatment information is frequently unstructured or partially reported, limiting reproducible use as model inputs; and (ii) repeated measurements of identical composition–processing conditions are often split across folds, which can inflate reported accuracy through leakage. The present study addresses both gaps by extracting structured processing descriptors from free-text records and by evaluating models using thermomechanical-state grouping under group-aware splitting and cross-validation.

3. Methodology

3.1. Data Collection and Preprocessing

3.1.1. Original Database Structure and Fields

The raw data used in this study were obtained from the open-access steel mechanical properties database compiled by Birbilis et al. [34]. The database contains 3234 entries collected from diverse literature sources, each representing a reported steel specimen with associated chemical composition, processing information, and mechanical properties. The tensile strength values were collected from the source literature. While test temperature is not consistently specified, UTS measurements are typically performed under ambient conditions in standard tensile testing.
Each entry reports the weight-percent concentrations of multiple alloying elements together with measured mechanical properties, including UTS, yield strength, and ductility. In addition to these numerical variables, the database includes descriptive metadata such as entry identifiers, steel names, cluster labels, and a free-text field describing the applied processing or heat-treatment condition.
For the present study, UTS was selected as the sole target variable because it is consistently reported across the database and represents a primary design-limiting property for heat-treated steels [35].
Table 2 summarizes the structure of the original database prior to preprocessing, distinguishing between chemical composition variables, mechanical property fields, processing descriptions, and auxiliary metadata.

3.1.2. Stepwise Dataset Reduction and Attrition Criteria

First, non-predictive metadata fields and mechanical properties other than UTS were removed to standardize the dataset structure without decreasing the sample number. Second, key processing parameters were extracted from free-text heat-treatment descriptions and transformed into structured numerical and binary features, resulting in a unified 26-variable feature space. Third, entries with missing values in any compositional, processing, or target variable were eliminated to ensure complete data records and prevent bias from imputation. Finally, physically inconsistent samples that violated basic heat-treatment logic (specifically, cases where the tempering temperature was equal to or higher than the austenitizing temperature) were excluded [35], resulting in the removal of 42 entries. The stepwise dataset reduction and resulting sample counts are summarized in Table 3.

3.1.3. Extraction of Processing Parameters from Free-Text Records

In the original database, heat-treatment information was primarily reported as unstructured free-text descriptions with substantial variability in phrasing and detail. To incorporate this information into the machine-learning workflow, a rule-based parsing procedure [36] was applied to convert the processing text into a consistent set of numerical and categorical descriptors (Figure 2). Austenitizing and tempering temperatures were determined from reported temperatures in degrees Celsius, with assignments guided by the conventional reporting order. The first reported temperature was interpreted as the austenitizing temperature, and the second, when present, as the tempering temperature. Bar diameter was identified from numeric values followed by millimeter units. Quenching media and auxiliary treatments were encoded as binary indicators based on keyword detection. The original free-text field was then removed and replaced by these structured variables. Entries for which one or more required processing parameters could not be reliably extracted were retained temporarily but subsequently removed during completeness filtering. In total, seven processing descriptors were extracted from the free-text records: austenitizing temperature, tempering temperature, bar diameter, water-quench indicator, oil-quench indicator, carburized indicator, and normalized indicator.

3.1.4. Physical Screening and Final Feature Space

After feature extraction and completeness filtering, a final screening step was applied to enforce basic physical and metallurgical consistency within the dataset. Because the database aggregates heat-treatment information from heterogeneous literature sources, some extracted processing parameter combinations may violate fundamental heat-treatment logic. To avoid introducing non-physical relationships into the machine-learning models, entries exhibiting such inconsistencies were removed.
Two simple and physically motivated checks were applied. First, mutually exclusive quenching media were examined to identify entries simultaneously indicating both water and oil quenching; no such contradictions were observed in the complete dataset. Second, the logical sequence of heat-treatment temperatures was enforced by requiring the tempering temperature to be strictly lower than the austenitizing temperature. Entries violating this condition were removed, as such sequences are incompatible with conventional quench-and-temper practice. No additional constraints were imposed on absolute temperature ranges, alloying concentrations, or bar diameters. The resulting chemically and physically consistent feature space is summarized in Table 4.

3.2. Dataset Splitting and Group-Aware Validation

3.2.1. Definition of Thermomechanical States

Although the curated dataset contains 1255 individual records, these records are not statistically independent. Multiple entries correspond to repeated measurements of identical combinations of chemical composition and processing conditions reported across different literature sources. Treating such records as independent samples would lead to information leakage and inflated estimates of model performance [37].
To address this issue, a thermomechanical state was defined as a unique combination of all compositional and processing variables. Records sharing identical values across the 18 chemical composition features and 7 processing descriptors were grouped into a single state. Applying this grouping yielded 603 unique thermomechanical states represented by 1255 records. This state-level structure forms the basis for all subsequent data splitting, cross-validation, and performance evaluation procedures.

3.2.2. Group-Aware Train–Test Splitting and Cross-Validation

To obtain leakage-free estimates of model generalization, all dataset partitioning was performed at the thermomechanical state level rather than at the individual-record level [38]. An 80/20 train–test split was adopted, in which the entire set of thermomechanical states was randomly assigned to either the training or test set, and all associated records inherited the same assignment. This guarantees that no composition–processing state appears in both partitions. This procedure yielded 482 thermomechanical states (997 records) in the training set and 121 states (258 records) in the test set, with no state overlap between partitions.
In addition to the holdout split, group-aware cross-validation was employed for robustness assessment and hyperparameter tuning. In this framework, thermomechanical states served as the resampling units, ensuring that all records belonging to a given state were confined to a single fold in each validation iteration. Five-fold group-based cross-validation was used during hyperparameter tuning to select stable model configurations. In parallel, ten repeated group-aware shuffles were performed to quantify performance variability across different state-level partitions. The overall group-aware splitting and validation strategy is illustrated in Figure 3.
This group-aware validation strategy aligns statistical evaluation with the physical structure of the dataset and ensures that reported performance reflects true generalization to unseen composition–processing conditions rather than memorization of repeated observations.

3.3. Random Forest Model Development

3.3.1. Baseline Random Forest Model

An RF regression model was adopted as the baseline predictive framework for estimating UTS from the curated compositional and processing descriptors. RF models are well-suited to tabular materials datasets because they capture nonlinear relationships and high-order interactions while remaining robust to noise through ensemble averaging [39,40]. In addition, RFs require minimal feature preprocessing and provide a natural basis for interpretability analyses [8,41].
The baseline RF configuration was defined a priori and trained exclusively on the group-aware training set described in Section 3.2. All thermomechanical states present in the test set were strictly excluded from training. The baseline model consisted of 300 decision trees with a maximum tree depth of 20, default feature sampling at each split, and a fixed random seed of 42, with parallel training enabled across all available processor cores. This baseline model establishes a transparent reference point for evaluating generalization performance under leakage-free conditions and for assessing the impact of subsequent hyperparameter tuning.

3.3.2. Group-Aware Hyperparameter Tuning

Hyperparameter tuning was performed using a group-aware cross-validation strategy consistent with the thermomechanical state definition. Rather than aggressively optimizing predictive accuracy, the objective was to identify a stable and robust RF configuration under leakage-free validation conditions. A coarse grid search was conducted over a limited set of key hyperparameters controlling model complexity, including the number of trees (200, 300, and 500), maximum tree depth (10, 20, or unrestricted), and minimum number of samples per leaf (1, 2, or 4), while all remaining parameters were kept at default values.
Group-based K-fold cross-validation was employed during tuning, with the entire thermomechanical state confined to each fold. Model selection was based on the average cross-validated coefficient of determination (R2). The selected hyperparameter configuration was subsequently retrained on the full group-aware training set and used consistently for all performance evaluation, benchmarking, and interpretability analyses. The optimal hyperparameter configuration selected by group-aware cross-validation consisted of 500 trees, unrestricted tree depth, and a minimum of one sample per leaf, and this configuration was used for all subsequent analyses.

3.4. Model Evaluation and Interpretability

3.4.1. Performance Metrics and Evaluation Protocol

Model performance was evaluated using standard regression metrics: the coefficient of determination (R2), mean absolute error (MAE), and root mean squared error (RMSE), all expressed in MPa. These metrics jointly quantify the explained variance, the typical prediction error, and the sensitivity to large deviations in UTS. All metrics were computed on the group-aware test set under the evaluation framework described in Section 3.2, ensuring that no thermomechanical state observed in the test set was encountered during training. Reported performance values, therefore, represent conservative, leakage-free estimates of generalization to unseen composition–processing conditions. For repeated group-aware resampling experiments, metrics were summarized using their mean and standard deviation across splits.

3.4.2. Error Diagnostics and Stratified Analysis

Beyond aggregate metrics, test-set error diagnostics were conducted to assess the structure and variability of prediction errors. Residuals, defined as the difference between measured and predicted UTS, were examined to identify systematic bias across the strength range. In addition, absolute error distributions were analyzed to characterize the typical scale of prediction uncertainty and the occurrence of large deviations. Residuals were examined both as a function of predicted UTS and through their empirical distribution.
To further examine model behavior across different material regimes, prediction errors were stratified by UTS level. The test set was partitioned into discrete strength intervals representing low-, medium-, high-, and very high-strength steels (UTS < 700 MPa, 700–1000 MPa, 1000–1300 MPa, and >1300 MPa), and error metrics were computed independently within each interval. This stratified analysis highlights variations in model reliability across the strength spectrum and supports physically informed interpretation of performance limitations in data-sparse or high-strength regimes.

3.4.3. Feature Importance and Interpretability Methods

Model interpretability was assessed using SHAP and partial dependence plots (PDPs) under group-aware test conditions. SHAP values were computed to provide a consistent, model-agnostic decomposition of individual predictions and to quantify global feature importance across the dataset. PDPs were used selectively to visualize the marginal relationships between key input variables and the predicted UTS.
Together, these interpretability methods provide complementary global and local insights into the learned composition processing property relationships while remaining consistent with the leakage-free evaluation framework.

4. Results

4.1. Dataset Structure and Thermomechanical State Characteristics

The final curated dataset consists of 1255 records, each described by 25 input features and UTS as the target variable. Because multiple records correspond to repeated measurements of identical composition–processing conditions, the dataset was grouped into 603 unique thermomechanical states, which represent the physically meaningful unit of independence.
The number of observations per state ranges from 1 to 12, with an average of 2.08. State-level mean UTS values span a wide range, from approximately 385 MPa to 1911 MPa, with a median near 940 MPa. Within-state variability is generally low, with most states exhibiting negligible dispersion in UTS, indicating good internal consistency among repeated measurements. These dataset characteristics, summarized in Table 5, motivate the group-aware training and evaluation strategy adopted in the subsequent results sections.

4.2. Group-Aware Predictive Performance of the Random Forest Model

The predictive performance of the RF model was evaluated using a group-aware train–test split, ensuring that all thermomechanical states in the test set were completely unseen during training. This evaluation provides a conservative estimate of model generalization across distinct composition–processing conditions.
On the group-aware test set, the baseline RF model achieved strong predictive performance, with an R2 of approximately 0.90, a mean absolute error (MAE) of about 40 MPa, and a root mean squared error (RMSE) of about 78 MPa. Hyperparameter tuning using group-aware cross-validation yielded only marginal improvements in test-set performance, suggesting that the baseline configuration already captures the dominant composition processing strength relationships supported by the available data. The corresponding test-set performance metrics for the baseline and tuned models are summarized in Table 6.
The close agreement between baseline and tuned model performance confirms the robustness of the RF model under leakage-free evaluation conditions. All subsequent results and analyses are therefore based on the tuned RF configuration, unless stated otherwise.

4.3. Actual Versus Predicted Ultimate Tensile Strength

The agreement between predicted and measured UTS values for the final tuned RF model is illustrated in Figure 4, based on the group-aware test set. The predicted values closely follow the 1:1 reference line over a wide range of strengths, indicating strong agreement between model predictions and experimental measurements under leakage-free evaluation conditions.
While predictions remain tightly clustered around the ideal trend for low- and medium-strength steels, increased scatter is observed at higher UTS levels. This behavior reflects reduced data coverage and greater sensitivity to processing conditions in the high-strength regime, rather than systematic model bias. Overall, the distribution confirms that the tuned model captures the dominant composition processing strength relationships while maintaining stable performance across most of the strength spectrum.

4.4. Residual Structure and Bias Assessment

The residual behavior of the final tuned RF model was examined using the group-aware test set to assess potential bias and error structure. Figure 5a presents residuals plotted against predicted UTS values. The residuals are distributed around zero across the full prediction range, with no clear trend or curvature, indicating no systematic over- or under-prediction.
To further support this observation, the empirical distribution of residuals is shown in Figure 5b. The residual histogram is approximately symmetric and centered near zero, providing additional evidence that the model errors are unbiased on average. While a small number of large residuals are present, primarily associated with high-strength steels, the overall distribution confirms stable predictive behavior without directional bias. Together, these diagnostics demonstrate that the tuned RF model maintains consistent accuracy under leakage-free evaluation conditions, and that the reported performance metrics are not driven by systematic residual skewness.

4.5. Robustness Under Repeated Group-Aware Resampling

The robustness of the final tuned RF model was evaluated using repeated group-aware train–test splits, in which thermomechanical states were randomly reassigned while preserving strict state-level separation between training and test sets. This analysis quantifies the sensitivity of predictive performance to variations in state composition within the test data.
As summarized in Table 7, the coefficient of determination (R2) exhibits substantial variability across splits, ranging from 0.19 to 0.96, with a mean value of 0.82 and a standard deviation of 0.23. The lowest R2 values occur in splits dominated by sparsely represented, high-strength thermomechanical states, for which the variance-normalized R2 metric is particularly sensitive, even when absolute error magnitudes remain moderate. In particular, individual splits containing a small number of extreme-strength states can be disproportionately influenced by a few large squared errors, leading to a sharp reduction in R2 despite otherwise reasonable pointwise predictions. This behavior reflects the known sensitivity of R2 to outliers under strict group-aware extrapolation and does not indicate model instability or information leakage.
Error-based metrics show more stable behavior across splits. The mean MAE is 40.6 MPa with a standard deviation of 11.6 MPa, while the mean RMSE is 81.6 MPa with a standard deviation of 36.4 MPa (Table 7). These values indicate that, despite variability in explained variance, typical prediction errors remain on the order of a few tens of megapascals across most partitions.
Overall, the results in Table 7 demonstrate that the RF model maintains reliable average predictive accuracy under repeated leakage-free resampling, while naturally reflecting increased uncertainty for test splits concentrated in difficult or underrepresented regions of the composition–processing space.

4.6. Strength-Stratified Prediction Accuracy

To examine how prediction accuracy varies across the tensile strength spectrum, the performance of the final tuned RF model was evaluated separately within predefined UTS regimes using the group-aware test set. This stratification highlights differences in error behavior associated with data density and material complexity across strength levels.
As reported in Table 8, prediction errors are lowest in the medium-strength regime (700–1000 MPa), with an MAE of 23.0 MPa and an RMSE of 33.2 MPa, reflecting dense data coverage in this range. Errors increase for both lower- and higher-strength regimes. In the low-strength regime (<700 MPa), the MAE and RMSE are 36.6 MPa and 63.6 MPa, respectively, while in the high-strength regime (1000–1300 MPa), they are 36.2 MPa and 60.2 MPa, respectively.
The largest errors occur in the very high-strength regime (>1300 MPa), where the model exhibits an MAE of 189.0 MPa and an RMSE of 241.7 MPa (Table 8). This behavior reflects the limited number of test samples in this regime and the UTS’s increased sensitivity to processing variations at very high strength levels. Overall, the stratified results in Table 8 demonstrate that model accuracy is strongly dependent on strength regime, with reliable performance in well-represented regions of the data and increased uncertainty in sparsely populated extremes.

4.7. Feature Importance and Model Interpretability

Model interpretability was assessed for the final tuned RF model using SHAP-based global feature importance and PDPs, both evaluated on the group-aware test set. These complementary tools were used to identify influential variables and to examine the direction and nonlinearity of their effects on predicted UTS.
The SHAP global importance results (Figure 6) show that model predictions are primarily governed by a limited set of variables, with processing-related parameters, notably bar diameter, tempering temperature, and austenitizing temperature, ranking among the most influential features, alongside carbon content. The high SHAP importance of Fe reflects the compositional closure constraint (sum ≈ 100 wt.%), whereby Fe acts as a proxy for total alloying content rather than representing an independent strengthening contribution.
To further interpret these influences, PDPs for selected key variables are presented in Figure 7. The PDPs reveal physically consistent trends: increasing carbon content leads to higher predicted UTS, increasing tempering temperature results in strength reduction, and increasing bar diameter is associated with lower predicted UTS due to reduced cooling rates in larger bar diameters. These marginal effects are nonlinear, highlighting the RF model’s ability to capture complex composition–processing interactions beyond simple linear relationships.
Together, the SHAP and PDP analyses confirm that the model’s predictions are driven by physically meaningful and metallurgically consistent relationships, supporting both the interpretability of the learned mappings and the credibility of the reported results.

4.8. Comparison with Alternative Models

To place the performance of the final tuned RF model in context, its predictive accuracy was compared with alternative regression models evaluated under the same group-aware test conditions. Specifically, Gradient Boosting (GB) and Support Vector Regression with an RBF kernel (SVR) were considered, using identical training-test splits and evaluation metrics.
As reported in Table 9, the final tuned RF model achieved an R2 of 0.899, a mean absolute error (MAE) of 39.9 MPa, and a root mean squared error (RMSE) of 78.4 MPa on the group-aware test set. Gradient Boosting exhibited comparable explanatory power (R2 = 0.902) but showed notably higher errors, with an MAE of 51.0 MPa and an RMSE of 77.5 MPa. In contrast, the SVR model performed substantially worse, yielding an R2 of 0.665, an MAE of 83.3 MPa, and an RMSE of 143.2 MPa.
Overall, the comparison in Table 9 indicates that ensemble tree-based methods outperform kernel-based regression under leakage-free, state-level validation, with the RF model providing the best balance between explained variance and absolute prediction error.

5. Discussion

5.1. Metallurgical Interpretation of Key Features

Across the curated dataset and under strict group-aware evaluation, the RF model consistently identifies a limited set of metallurgical factors as dominant controls on UTS. These factors span overall alloying level, transformation control through processing, and carbon content, reflecting a physically coherent picture of strength development in heat-treated steels [42].
At the compositional level, Fe emerges as the most influential variable, as shown by the global feature analyses (Figure 6). This dominance does not imply that Fe acts as a primary strengthener, but rather reflects the compositional closure constraint inherent to steel datasets, in which all elements are expressed as weight percent and sum to approximately 100 wt.% [43,44]. In this setting, Fe serves as a proxy for the total degree of alloying, capturing the combined effect of solute additions that enhance hardenability and strengthen steels through solid-solution, precipitation, and transformation-controlled mechanisms [45]. The prominence of Fe therefore indicates that the model is sensitive to overall alloying intensity rather than isolated elemental effects, which is metallurgically reasonable.
Processing-related variables play an equally central role [46]. Bar diameter and tempering temperature consistently rank among the most influential predictors, underscoring the importance of transformation kinetics and post-quench microstructural evolution. Larger bar diameters reduce cooling rates during quenching, promoting softer transformation products and lower UTS, while higher tempering temperatures reduce strength through recovery and carbide coarsening [45,46,47]. These trends are evident in the model behavior across the dataset and are further supported by the partial dependence relationships shown in Figure 7.
Among individual alloying elements, carbon is the most influential solute, reflecting its fundamental role in controlling martensite hardness, austenite stability, and hardenability. The model’s sensitivity to carbon is consistent with classical steel metallurgy and is observed across both global importance rankings and strength-dependent performance trends [48,49]. Other alloying elements, such as silicon and molybdenum, contribute more modestly, in line with their secondary roles in solid-solution strengthening and temper resistance within the composition–processing space sampled here [50].
Elements such as N, Cu, and Nb exhibit limited influence in the present analysis. This should not be interpreted as metallurgical insignificance, but rather as a consequence of the dataset scope and descriptor resolution. The strengthening contributions of microalloying elements are often strongly coupled to thermo-mechanical processing details that are not explicitly represented in the available data [51]. As a result, their effects are only weakly expressed in a model driven primarily by bulk composition and heat-treatment parameters.

5.2. Machine Learning Performance and Robustness

Under strict group-aware evaluation, the RF model demonstrates strong, yet deliberately conservative, predictive performance. When evaluated on the group-aware test set comprising 121 unseen thermomechanical states (258 records), the final tuned model achieves an R2 of approximately 0.90, with a mean absolute error of about 40 MPa and a root mean squared error of about 78 MPa. These error magnitudes are small relative to the wide UTS range covered by the dataset (≈385–1911 MPa), indicating that the model captures the dominant composition processing strength relationships while avoiding information leakage.
The close agreement between baseline and tuned model performance further supports the robustness of the learning framework. Hyperparameter tuning yields only marginal improvements in test-set metrics, indicating that the predictive signal is primarily determined by the underlying data structure rather than aggressive model optimization. This behavior is consistent with a well-posed regression problem in which physically meaningful descriptors already encode much of the relevant information.
Robustness was further examined through ten repeated group-aware train–test resampling experiments, which reveal substantial variability in the coefficient of determination, with R2 values ranging from 0.19 to 0.96 and a mean of 0.82. This variability reflects the dataset’s heterogeneity and the sensitivity of variance-normalized metrics such as R2 to the composition of the test set. In particular, splits dominated by a small number of sparsely represented, very high-strength states can exhibit disproportionately low R2 values, even when absolute error magnitudes remain moderate. Importantly, error-based metrics are considerably more stable across splits, with mean MAE ≈ 40.6 ± 11.6 MPa and mean RMSE ≈ 81.6 ± 36.4 MPa, indicating consistent pointwise prediction accuracy.
Strength-stratified analysis provides additional insight into this behavior. Prediction errors are lowest in the medium-strength regime (700–1000 MPa), where data coverage is densest, and increase toward both lower- and higher-strength extremes. In the very high-strength regime (>1300 MPa), errors increase substantially, reflecting limited sample availability and heightened sensitivity of UTS to processing variations. This pattern highlights that the model performs best as an interpolator within well-represented regions of the composition–processing space, while extrapolation toward sparsely sampled extremes remains challenging [52].
The present model infers microstructural effects indirectly through coarse processing descriptors, such as bar diameter and tempering temperature, rather than explicit microstructural variables (e.g., grain size, phase fractions, or precipitation state). This limitation is particularly relevant for microalloyed steels and advanced thermomechanical routes, where strength is strongly influenced by deformation history and precipitation mechanisms. Incorporating microstructure-informed or mechanics-guided features represents a natural extension of the framework and may further improve predictive accuracy and physical fidelity.
Several key parameters known to influence UTS are not explicitly represented in the present feature space, including prior austenite grain size, phase fractions, cooling rate beyond bar diameter, deformation history, and precipitation state. The absence of these microstructural and thermo-mechanical descriptors may bias the learned relationships toward composition and coarse processing variables, contributing to the increased error observed in sparsely populated and high-strength regimes. As a result, residual scatter should be interpreted as reflecting both model uncertainty and unmodeled physical variability rather than purely statistical noise.
Overall, the combination of leakage-free evaluation, consistent test-set performance, and transparent robustness analysis indicates that the RF model provides reliable and physically plausible UTS predictions within the domain of the curated dataset. The observed performance variability under repeated group-aware resampling should be interpreted not as model instability, but as an honest reflection of data heterogeneity and the intrinsic difficulty of generalizing across distinct thermomechanical states.

5.3. Sustainability Implications

From a sustainability perspective, developing accurate, data-driven models to predict mechanical properties offers significant opportunities to reduce the environmental footprint of steel design and processing. The present RF model, trained on an open-access database and evaluated under a conservative group-aware framework, enables virtual screening of composition and heat-treatment combinations prior to resource-intensive experimental testing. In practice, such models are best viewed as decision-support tools that narrow the design space rather than as replacements for final experimental validation.
To illustrate the potential scale of sustainability benefits, scenario-based estimates were constructed using published life-cycle and industrial data. A recent life-cycle assessment of tensile testing on 316L stainless steel reports that a standard ASTM E8 [53] tensile test consumes approximately 2 MJ of electricity per test (≈0.56 kWh) and destroys a specimen weighing about 0.256 kg. Using a representative grid emission factor of 0.394 kg CO2 per kWh and an average steel production intensity of 2.18 kg CO2e per kilogram of steel [54,55], avoided physical tests translate directly into energy, material, and emissions savings.
Because the extent to which ML screening can replace physical tests depends on project context, a sensitivity analysis was performed by considering three realistic screening scenarios, in which 50%, 70%, and 80% of initially planned tensile tests are replaced by ML-based virtual screening, while the remaining tests are retained for confirmation and certification. As summarized in Table 10, these scenarios yield approximately 28–44 kWh in electricity savings, 12.8–20.5 kg in steel savings, and combined CO2e emissions reductions of roughly 39–62 kg per 100 candidate compositions. While these values are approximate and depend on local energy mixes, specimen geometry, and testing protocols, they demonstrate that even partial adoption of ML screening can yield non-negligible sustainability benefits.
Beyond direct reductions in testing energy and material use, this study’s results suggest broader opportunities for sustainable alloy and process design. The concentration of predictive influence in a small set of variables, primarily overall alloying level, carbon content, bar diameter, and tempering temperature, indicates that UTS can often be tuned effectively through processing optimization rather than increased alloying. This creates opportunities to reduce reliance on alloying additions with high embodied energy or supply risk, while still achieving target strength levels through optimized heat-treatment schedules and section geometry.
In addition, robust ML models can support more efficient use of secondary raw materials and scrap, where compositional variability poses challenges for high-recycled-content steels [55]. By linking small deviations in chemistry to adjusted processing routes and predicted UTS, ML-based tools can help steelmakers accommodate broader scrap chemistries while maintaining property specifications. In this sense, the sustainability value of ML extends beyond test reduction alone, contributing to improved circularity, reduced resource intensity, and more flexible steel production pathways.
It should be noted that the assumed electricity consumption per test, emission factors, and specimen mass represent typical literature values and may vary across regions, facilities, and testing protocols. As a result, the reported energy, material, and CO2 savings should be interpreted as order-of-magnitude estimates rather than precise predictions. While explicit uncertainty bounds are not quantified, the scenario-based analysis captures a realistic range of outcomes, and the relative trends remain robust across plausible variations in these parameters.

6. Conclusions

This study demonstrates that an RF model trained on a carefully curated open-access database of 1255 heat-treated steels can provide reliable and physically meaningful predictions of UTS when evaluated under a leakage-free, group-aware validation framework. Using 18 compositional and 7 processing descriptors, the final tuned model achieves robust test-set performance (R2 ≈ 0.90, MAE ≈ 40 MPa), with unbiased residuals and generalization across distinct thermomechanical states.
The results show that UTS is governed by a hierarchy of metallurgical controls, dominated by overall alloying level, carbon content, and processing parameters that regulate transformation kinetics, particularly bar diameter and tempering temperature. SHAP-based importance analysis and partial dependence trends confirm that the model’s learned relationships are consistent with classical steel metallurgy, while also highlighting the limitations imposed by dataset scope and descriptor resolution for microalloying effects.
Beyond predictive accuracy, this work underscores the importance of physically informed data curation, state-level validation, and cautious interpretation of correlated features in materials machine learning. The proposed framework positions ML as a robust decision-support tool rather than a replacement for experiments, enabling efficient virtual screening of composition–processing combinations prior to targeted validation.
Overall, the study provides a transparent and reproducible foundation for data-driven UTS prediction in steels and illustrates how open data and conservative ML workflows can support more efficient, interpretable, and sustainable materials development. Future extensions may incorporate richer microstructural descriptors, additional mechanical properties, and coupled process structure property modeling within integrated computational materials engineering frameworks.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original data presented in the study are openly available in Mendeley Data repository at https://data.mendeley.com/datasets/jmwb9ddd43/1, accessed on 1 November 2025.

Acknowledgments

The author would like to thank the Deanship of Scientific Research at Shaqra University for supporting this work.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Stovpchenko, G.; Medovar, L.; Stepanenko, D.; Jiang, Z.; Dong, Y.; Liu, Y. Energy and Environmental Savings by and for Steel Lightweight. ISIJ Int. 2024, 64, 165–173. [Google Scholar] [CrossRef] [Scilit]
  2. Elsisi, A.; Zamrawi, A.; Emad, S. A Comprehensive Review of Structural Health Monitoring for Steel Bridges: Technologies, Data Analytics, and Future Directions. Appl. Sci. 2025, 15, 12090. [Google Scholar] [CrossRef] [Scilit]
  3. Scales, M.; Anderson, J.; Kornuta, J.A.; Switzner, N.; Gonzalez, R.; Veloo, P. Accurate Estimation of Yield Strength and Ultimate Tensile Strength through Instrumented Indentation Testing and Chemical Composition Testing. Materials 2022, 15, 832. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Li, Y.; Li, H.; Wang, C.; Jose Rivera-Diaz-del-Castillo, P.E. The Role of Physical Metallurgical Relationships in Enhancing Alloy Properties Prediction and Design: A Case Study on Q&P Steel. Mater. Genome Eng. Adv. 2025, 3, e70. [Google Scholar]
  5. Feng, R.; Zhang, C.; Gao, M.C.; Pei, Z.; Zhang, F.; Chen, Y.; Ma, D.; An, K.; Poplawsky, J.D.; Ouyang, L. High-Throughput Design of High-Performance Lightweight High-Entropy Alloys. Nat. Commun. 2021, 12, 4329. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Wang, Y.; Chen, L.; Cheng, L.; Wang, E.; Sheng, Z.; Zhang, L. Machine Learning-Based Multi-Objective Composition Optimization of High-Nitrogen Austenitic Stainless Steels. Materials 2025, 18, 5460. [Google Scholar] [CrossRef] [Scilit]
  7. Tiwari, S.; Heo, S.; Park, N.; Reddy, N.G.S. Modeling Mechanical Properties of Industrial C-Mn Cast Steels Using Artificial Neural Networks. Metals 2025, 15, 790. [Google Scholar] [CrossRef] [Scilit]
  8. Xi, W.; Ping, Y.; Tao, J.; Ye, X.; Fu, M.; Zhang, Y.; Xie, M. Enhanced Prediction of Copper-Polymetallic Deposits in the Kalatag Mining District Using Integrated SVM and GIS Technology. Earth Sci. Inf. 2025, 18, 11. [Google Scholar] [CrossRef] [Scilit]
  9. Badkoobeh, F.; Mostaan, H.; Rafiei, M.; Bakhsheshi-Rad, H.R.; Berto, F. Microstructural Characteristics and Strengthening Mechanisms of Ferritic–Martensitic Dual-Phase Steels: A Review. Metals 2022, 12, 101. [Google Scholar] [CrossRef] [Scilit]
  10. Curtin, W.A.; Rao, S.I.; Woodward, C. Progress and Challenges in the Theory and Modeling of Complex Concentrated Alloys. MRS Bull. 2022, 47, 151–157. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, Y.; Zhang, L.; Su, Y.; Liu, H.; Yang, H.; Chen, Y. Heat Treatment Control Technology of High-Strength Steel Gears Based on Support Vector Machine. Sci. Rep. 2025, 15, 7657. [Google Scholar] [CrossRef] [Scilit]
  12. Era, I.Z.; Grandhi, M.; Liu, Z. Prediction of Mechanical Behaviors of L-DED Fabricated SS 316L Parts via Machine Learning. Int. J. Adv. Manuf. Technol. 2022, 121, 2445–2459. [Google Scholar] [CrossRef] [Scilit]
  13. Bai, R.; Li, Y.; Du, Y.; Zhang, Y.; He, X.; Liang, H. Achieving High Specific Strength via Multiple Strengthening Mechanisms in an Fe-Mn-Al-C-Ni-Cr Lightweight Steel. Materials 2025, 18, 4023. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Ghassemali, E.; Conway, P.L.J. High-Throughput CALPHAD: A Powerful Tool towards Accelerated Metallurgy. Front. Mater. 2022, 9, 889771. [Google Scholar] [CrossRef] [Scilit]
  15. Rodrigues, J.F., Jr.; Florea, L.; De Oliveira, M.C.F.; Diamond, D.; Oliveira, O.N., Jr. Big Data and Machine Learning for Materials Science. Discov. Mater. 2021, 1, 12. [Google Scholar] [CrossRef] [Scilit]
  16. Moosavi, S.M.; Jablonka, K.M.; Smit, B. The Role of Machine Learning in the Understanding and Design of Materials. J. Am. Chem. Soc. 2020, 142, 20273–20287. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Li, Y.; Bushby, A.J.; Dunstan, D.J. The Hall–Petch Effect as a Manifestation of the General Size Effect. Proc. R. Soc. A Math. Phys. Eng. Sci. 2016, 472, 20150890. [Google Scholar] [CrossRef] [Scilit]
  18. Cordero, Z.C.; Knight, B.E.; Schuh, C.A. Six Decades of the Hall–Petch Effect–a Survey of Grain-Size Strengthening Studies on Pure Metals. Int. Mater. Rev. 2016, 61, 495–512. [Google Scholar] [CrossRef] [Scilit]
  19. Joele, M.; Matizamhuka, W.R. A Review on the High Temperature Strengthening Mechanisms of High Entropy Superalloys (HESA). Materials 2021, 14, 5835. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, X.; Wang, Y.; Zhen, X.; Yue, Y.; He, M.; Ye, Y. Micromechanical Fracture Model of High-Strength Welded Steel Under Cyclic Loading. Buildings 2025, 15, 1218. [Google Scholar] [CrossRef] [Scilit]
  21. Rahman, A.; Hossain, M.S.; Siddique, A.-B. Machine Learning Approaches for Diverse Alloy Systems. J. Mater. Sci. 2025, 60, 12189–12221. [Google Scholar] [CrossRef] [Scilit]
  22. Xi, W.; Ping, Y.; Tao, J.; Liu, C.; Shen, J.; Zhang, Y. Predicting Copper-Polymetallic Deposits in Kalatag Using the Weight of Evidence Model and Novel Data Sources. Open Geosci. 2023, 15, 20220588. [Google Scholar] [CrossRef] [Scilit]
  23. Cheng, H.; He, Z.; Ge, M.; Che, L.; Zheng, K.; Si, T.; Zhao, F. Composition Design and Optimization of Fe–C–Mn–Al Steel Based on Machine Learning. Phys. Chem. Chem. Phys. 2024, 26, 8219–8227. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Kateb, M.; Safarian, S. Machine Learning-Driven Predictive Modeling of Mechanical Properties in Diverse Steels. Mach. Learn. Appl. 2025, 20, 100634. [Google Scholar] [CrossRef] [Scilit]
  25. Wang, H.; Lv, F.; Zhan, Z.; Zhao, H.; Li, J.; Yang, K. Predicting the Tensile Properties of Automotive Steels at Intermediate Strain Rates via Interpretable Ensemble Machine Learning. World Electr. Veh. J. 2025, 16, 123. [Google Scholar] [CrossRef] [Scilit]
  26. Ibarra Hoyos, D.; Simmons, Q.; Poon, J. Predicting Yield Strength and Plastic Elongation in Body-Centered Cubic High-Entropy Alloys. Materials 2024, 17, 4422. [Google Scholar] [CrossRef] [Scilit]
  27. Wan, H.; Xie, B.; Feng, H.; Li, J. Machine Learning-Enabled Prediction and Mechanistic Analysis of Compressive Yield Strength–Hardness Correlation in High-Entropy Alloys. Metals 2025, 15, 487. [Google Scholar] [CrossRef] [Scilit]
  28. Cheloee Darabi, A.; Rastgordani, S.; Khoshbin, M.; Guski, V.; Schmauder, S. Hybrid Data-Driven Deep Learning Framework for Material Mechanical Properties Prediction with the Focus on Dual-Phase Steel Microstructures. Materials 2023, 16, 447. [Google Scholar] [CrossRef] [Scilit]
  29. Rahmani, M.C.; Khatir, A.; Azad, M.M.; Kim, H.S.; Firouzi, N.; Kumar, R.; Khatir, S.; Cuong, L.-T. Mechanics-Based Deep Learning Framework for Predicting Deflection of Functionally Graded Composite Plates Using an Enhanced Whale Optimization Algorithm. Math. Mech. Solids 2025. [Google Scholar] [CrossRef] [Scilit]
  30. Bouhacina, O.; Khatir, A.; Matoug, S.A.; Tamine, T. A Novel Hybrid TOARS-Optimized Ensemble of Tree-Based Models for Predicting Soil Temperature at Shallow Depths. Sustainability 2025, 18, 294. [Google Scholar] [CrossRef] [Scilit]
  31. Khatir, A.; Capozucca, R.; Khatir, S.; Magagnini, E.; Le Thanh, C.; Riahi, M.K. Advancements and Emerging Trends in Integrating Machine Learning and Deep Learning for SHM in Mechanical and Civil Engineering: A Comprehensive Review. J. Braz. Soc. Mech. Sci. Eng. 2025, 47, 419. [Google Scholar] [CrossRef] [Scilit]
  32. Mansouri, A.; Tiachacht, S.; Ait-Aider, H.; Khatir, S.; Khatir, A.; Cuong-Le, T. A Novel Optimization-Based Damage Detection in Beam Systems Using Advanced Algorithms for Joint-Induced Structural Vibrations. J. Vib. Eng. Technol. 2025, 13, 486. [Google Scholar] [CrossRef] [Scilit]
  33. Xiong, J.; Zhang, T.; Shi, S. Machine Learning of Mechanical Properties of Steels. Sci. China Technol. Sci. 2020, 63, 1247–1255. [Google Scholar] [CrossRef] [Scilit]
  34. Birbilis, N.; Ghorbani, M.; Zhao, S. A Database of Mechanical Properties of Steels. 2025. Available online: https://data.mendeley.com/datasets/jmwb9ddd43/1 (accessed on 1 November 2025).
  35. Krauss, G. Steels: Processing, Structure, and Performance; ASM International: Almere, The Netherlands, 2015; ISBN 1627080848. [Google Scholar]
  36. Wang, Z.; Kononova, O.; Cruse, K.; He, T.; Huo, H.; Fei, Y.; Zeng, Y.; Sun, Y.; Cai, Z.; Sun, W. Dataset of Solution-Based Inorganic Materials Synthesis Procedures Extracted from the Scientific Literature. Sci. Data 2022, 9, 231. [Google Scholar] [CrossRef] [Scilit]
  37. Kaufman, S.; Rosset, S.; Perlich, C.; Stitelman, O. Leakage in Data Mining: Formulation, Detection, and Avoidance. ACM Trans. Knowl. Discov. Data (TKDD) 2012, 6, 15. [Google Scholar] [CrossRef] [Scilit]
  38. Roberts, D.R.; Bahn, V.; Ciuti, S.; Boyce, M.S.; Elith, J.; Guillera-Arroita, G.; Hauenstein, S.; Lahoz-Monfort, J.J.; Schröder, B.; Thuiller, W. Cross-validation Strategies for Data with Temporal, Spatial, Hierarchical, or Phylogenetic Structure. Ecography 2017, 40, 913–929. [Google Scholar] [CrossRef] [Scilit]
  39. Habib, M.; Habib, A.; Alibrahim, B. Prediction and Parametric Assessment of Soil One-Dimensional Vertical Free Swelling Potential Using Ensemble Machine Learning Models. Adv. Model Simul. Eng. Sci. 2024, 11, 26. [Google Scholar] [CrossRef] [Scilit]
  40. Huang, B.F.F.; Boutros, P.C. The Parameter Sensitivity of Random Forests. BMC Bioinform. 2016, 17, 331. [Google Scholar] [CrossRef] [Scilit]
  41. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
  42. Bhadeshia, H.K.D.H.; Honeycombe, R.W.K. Steels: Microstructure and Properties; Butterworth-Heinemann: Oxford, UK, 2017; ISBN 0081002726. [Google Scholar]
  43. Pawlowsky-Glahn, V.; Buccianti, A. Compositional Data Analysis; Wiley Online Library: Hoboken, NJ, USA, 2011; ISBN 1283204517. [Google Scholar]
  44. Grossmann, M.A.; Asimow, M.; Urban, S.F. Hardenability of Alloy Steels; American Society for Metals: Cleveland, OH, USA, 1939. [Google Scholar]
  45. Riedel, J.Y. Quenched and Tempered Low-Alloy Steel. U.S. Patent 3,645,723, 29 February 1972. [Google Scholar]
  46. Wang, Y.; Li, F.; Li, Y.; Li, J.; Chen, H.; Bai, Y. Effects of Ultrasonic Surface Rolling Process on Microstructure and Mechanical Properties of Metastable Fe50Mn30Co10Cr10 High-Entropy Alloy Fabricated by Laser Directed Energy Deposition. J. Mater. Res. Technol. 2025, 39, 26–46. [Google Scholar] [CrossRef] [Scilit]
  47. Liu, H.; Zhang, H.; Li, J. Thickness Dependence of Toughness in Ultra-Heavy Low-Alloyed Steel Plate after Quenching and Tempering. Metals 2018, 8, 628. [Google Scholar] [CrossRef] [Scilit]
  48. Johnson, J.; Jun, H.-J.; Fonstein, N.; Enloe, M. Effect of Silicon in As-Quenched and Quenched & Tempered Low Carbon Martensite. In Proceedings of the 3rd International Symposium on New Developments in Advanced High-Strength Sheet Steels, Vail, CO, USA, 23–26 June 2013. [Google Scholar]
  49. Harwarth, M.; Brauer, A.; Huang, Q.; Pourabdoli, M.; Mola, J. Influence of Carbon on the Microstructure Evolution and Hardness of Fe–13Cr–XC (X= 0–0.7 Wt.%) Stainless Steel. Materials 2021, 14, 5063. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  50. Pickering, F.B. Physical Metallurgy and the Design of Steels; Applied Science Publishers: Basel, Switzerland, 1978. [Google Scholar]
  51. Huang, S.; Li, Z.; Yang, H.; Zeng, Z.; Shi, Y.; Li, C. Effect of Microalloying and Isothermal Transformation on the Microstructure and Mechanical Properties of SWRH82B Steel. Sci. Rep. 2025, 15, 10005. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  52. Butler, K.T.; Davies, D.W.; Cartwright, H.; Isayev, O.; Walsh, A. Machine Learning for Molecular and Materials Science. Nature 2018, 559, 547–555. [Google Scholar] [CrossRef] [Scilit]
  53. ASTM E8; Standard Test Methods for Tension Testing of Metallic Materials. ASTM International: West Conshohocken, PA, USA, 2024.
  54. Viriyaroj, B.; Kuittinen, M.; Gheewala, S.H. Life-Cycle GHG Emissions of Standard Houses in Thailand. Build. Cities 2024, 5, 247–267. [Google Scholar] [CrossRef] [Scilit]
  55. Suer, J.; Traverso, M.; Jäger, N. Review of Life Cycle Assessments for Steel and Environmental Analysis of Future Steel Production Scenarios. Sustainability 2022, 14, 14131. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Three-phase workflow for data processing, leakage-free model development, and interpretation.
Figure 1. Three-phase workflow for data processing, leakage-free model development, and interpretation.
Sustainability 18 01087 g001
Figure 2. Rule-based extraction of structured processing features from free-text descriptions.
Figure 2. Rule-based extraction of structured processing features from free-text descriptions.
Sustainability 18 01087 g002
Figure 3. Group-aware data splitting and validation strategy.
Figure 3. Group-aware data splitting and validation strategy.
Sustainability 18 01087 g003
Figure 4. Actual versus predicted UTS for the final tuned RF model.
Figure 4. Actual versus predicted UTS for the final tuned RF model.
Sustainability 18 01087 g004
Figure 5. Residual diagnostics for the final tuned RF model on the group-aware test set: (a) residuals versus predicted UTS and (b) residual distribution.
Figure 5. Residual diagnostics for the final tuned RF model on the group-aware test set: (a) residuals versus predicted UTS and (b) residual distribution.
Sustainability 18 01087 g005
Figure 6. SHAP-based global feature importance for the final tuned RF model evaluated on the group-aware test set. (Note: The high importance of Fe is an artifact of the compositional constraint (sum to ~100 wt.%) and serves as a proxy for total alloying content).
Figure 6. SHAP-based global feature importance for the final tuned RF model evaluated on the group-aware test set. (Note: The high importance of Fe is an artifact of the compositional constraint (sum to ~100 wt.%) and serves as a proxy for total alloying content).
Sustainability 18 01087 g006
Figure 7. PDP showing marginal effects on predicted UTS for (a) carbon content, (b) tempering temperature, and (c) bar diameter.
Figure 7. PDP showing marginal effects on predicted UTS for (a) carbon content, (b) tempering temperature, and (c) bar diameter.
Sustainability 18 01087 g007
Table 1. Summary of machine-learning studies on strength prediction in steels and alloys.
Table 1. Summary of machine-learning studies on strength prediction in steels and alloys.
StudyMaterialsInputsModel/SizeOutcomeRef.
Cheng et al. (2024)580 Fe-C-Mn-Al steelsComposition, heat treatmentRF, 580 samplesMAE ≈ 90 MPa; RF identified high-strength chemistries.[23]
Kateb & Safarian (2025)Various steels13 elements, tempering temperatureRF, small datasetStable predictions; C, Cr, Mn, tempering most important.[24]
Wang et al. (2025)106 automotive steelsComposition, processing, strain rateEnsembles, 106 samplesRF competitive; SHAP highlighted C, Mn, tempering temperature.[25]
Ibarra et al. (2024)BCC HEAsStructural/thermodynamic descriptorsRF + GAGood strength prediction; key descriptors isolated.[26]
Darabi et al. (2023)Dual-phase steelsCNN microstructure featuresRF, 1188 RVEs<2% error; RF outperformed AdaBoost.[28]
Table 2. Overview of fields in the original steel database prior to preprocessing.
Table 2. Overview of fields in the original steel database prior to preprocessing.
CategoryDescription
Chemical compositionWeight-percent concentrations of alloying elements (e.g., C, Mn, Cr, Mo, Ni, etc.)
Mechanical propertiesUTS, yield strength, ductility
Processing informationFree-text descriptions of heat treatment and processing conditions
MetadataEntry identifiers, steel names/designations, cluster labels
Table 3. Stepwise reduction in the original steel database to the final ML-ready dataset.
Table 3. Stepwise reduction in the original steel database to the final ML-ready dataset.
StepDescriptionRemaining Entries
Initial databaseRaw open-access steel database3234
Structural cleanupRemoval of metadata, non-target properties, and constant columns3234
Feature constructionExtraction of processing parameters and definition of 26-variable feature space3234
Completeness filteringRemoval of rows with missing composition or processing values1513
Physical consistency filteringRemoval of illogical heat-treatment sequences (temper ≥ austenitize)1255
Table 4. Final feature space used for model development.
Table 4. Final feature space used for model development.
Feature CategoryVariables
Chemical composition (wt.%)Al, B, C, Co, Cr, Cu, Fe, Mn, Mo, N, Nb, Ni, P, S, Si, Ti, V, Zr
Processing descriptorsAustenitizing temperature (°C), tempering temperature (°C), bar diameter (mm), water quench (0/1), oil quench (0/1), carburized (0/1), normalized (0/1)
Target variableUTS (MPa)
Table 5. Dataset structure and thermomechanical state characteristics.
Table 5. Dataset structure and thermomechanical state characteristics.
QuantityValue
Total records1255
Input features25 (18 composition + 7 processing)
Target variableUTS (MPa)
Unique thermomechanical states603
Records per state (min-max)1–12
Mean records per state2.08
State-level UTS range (MPa)385–1911
Median state-level UTS (MPa)~940
Table 6. Test-set performance of RF models under group-aware splitting.
Table 6. Test-set performance of RF models under group-aware splitting.
ModelR2MAE (MPa)RMSE (MPa)
Baseline RF0.9039.8978.22
Tuned RF0.9039.9478.44
Table 7. Performance variability under repeated group-aware resampling.
Table 7. Performance variability under repeated group-aware resampling.
MetricMinimumMeanStandard DeviationMaximum
R20.190.820.230.96
MAE (MPa)28.340.611.670.8
RMSE (MPa)39.181.636.4178.3
Table 8. Stratified prediction errors by UTS regime (group-aware test set).
Table 8. Stratified prediction errors by UTS regime (group-aware test set).
UTS RangeSamplesMAE (MPa)RMSE (MPa)
<700 MPa2136.6463.58
700–1000 MPa13622.9833.2
1000–1300 MPa8336.2360.22
>1300 MPa18189.04241.72
Table 9. Performance comparison of regression models under group-aware test conditions.
Table 9. Performance comparison of regression models under group-aware test conditions.
ModelR2MAE (MPa)RMSE (MPa)
RF0.9039.9478.44
Gradient Boosting0.9051.0477.49
SVR (RBF)0.6783.26143.2
Table 10. Estimated energy, material, and CO2 savings from reducing physical tensile tests using ML screening (baseline: 100 tests).
Table 10. Estimated energy, material, and CO2 savings from reducing physical tensile tests using ML screening (baseline: 100 tests).
ML Screening Rate (%)Physical Tests Avoided (Out of 100)Energy Saved (kWh)Steel Saved (kg)CO2 Saved from Electricity (kg CO2)CO2 Saved from Steel Production (kg CO2e)
505027.812.810.927.9
707038.917.915.339.1
808044.420.517.544.7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alqurashi, Y. Data-Driven Prediction of Tensile Strength in Heat-Treated Steels Using Random Forests for Sustainable Materials Design. Sustainability 2026, 18, 1087. https://doi.org/10.3390/su18021087

AMA Style

Alqurashi Y. Data-Driven Prediction of Tensile Strength in Heat-Treated Steels Using Random Forests for Sustainable Materials Design. Sustainability. 2026; 18(2):1087. https://doi.org/10.3390/su18021087

Chicago/Turabian Style

Alqurashi, Yousef. 2026. "Data-Driven Prediction of Tensile Strength in Heat-Treated Steels Using Random Forests for Sustainable Materials Design" Sustainability 18, no. 2: 1087. https://doi.org/10.3390/su18021087

APA Style

Alqurashi, Y. (2026). Data-Driven Prediction of Tensile Strength in Heat-Treated Steels Using Random Forests for Sustainable Materials Design. Sustainability, 18(2), 1087. https://doi.org/10.3390/su18021087

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop