Predicting ADI Casting Properties: Machine Learning and Physical Test Comparisons
Published:
2024-11-20
Using 513 ADI records, regression models are compared and checked through melting, heat treatment and mechanical testing. Strength/hardness agreement does not guarantee accurate elongation; completeness and microstructure remain crucial.
Figure 13. ADI microstructure after austempering at 300 °C for 120 min.
Predictive Models from 513 Production Records
Chemistry, heat-treatment temperature and holding time can be set before production, but final strength/hardness/ductility need testing. This ADI study predicts tensile strength Rm, yield strength Rp0.2, elongation A5, HB hardness and impact property K from chemistry, heat treatment and thickness. Models form a process-selection system checked with actual castings. This is an ADI model, not a universal equation for all iron/steel castings.
The dataset contains 513 records of alloy mass fractions, austenitizing temperature/time, austempering conditions, thickness and properties. Completeness varies: 513 records do not provide 513 valid labels for every output. Original Fig. 1 shows available property data. Missing fields and ranges are inspected before modeling. Limited and incomplete data constrain accuracy and applicability.

Box plots reveal outliers in most variables, with nickel/copper relatively free of pronounced departures. Extreme magnesium/phosphorus may be about 20 times their means. Because sources and chemistries differ, all outliers are not deleted, avoiding drastic dataset reduction. This preserves material variation but leaves uneven data and possible recording errors. HB/K also disperse markedly; overall averages alone cannot establish quality.

Rm–Rp0.2 correlation is 0.89, Rm–HB 0.42, Rp0.2–HB 0.53, Rm–A5 −0.42 and Rp0.2–A5 −0.57; K–Rm is −0.37. Positive strength–hardness and negative strength–elongation relations motivate filling some missing properties using correlated values. Correlation, however, neither guarantees lossless recovery nor directly measures prediction accuracy.

Models include linear regression, single decision/extremely randomized trees, random forests, Extra Trees, nearest-neighbor/SVR, AdaBoost, Gradient Boosting and XGBoost. Defaults establish a baseline, fixing random_state where needed. Each output has a separate model. Training uses five-fold cross-validation, followed by independent testing. RMSE and R² distinguish training, cross-validation and test performance rather than presenting only the best training fit.
Baseline DecisionTreeRegressor and ExtraTreeRegressor fit training data extremely well, sometimes 100%, but deteriorate in cross-validation/testing. Tree ensembles also overfit, though usually generalize better. For HB, XGBRegressor is best in cross-validation and GradientBoostingRegressor in testing. For A5 and K, ExtraTreesRegressor is strong in cross-validation and XGBRegressor in testing. Default SVR performs poorly, so software defaults do not represent an algorithm’s best possible performance.
StandardScaler and each model form a pipeline searched with GridSearchCV. Three-fold validation records RMSE/R², selecting refitting by negative RMSE. This differs from earlier five-fold validation. Figure 5 shows fits above R² 0.6; GradientBoostingRegressor leads for most properties and ExtraTreesRegressor for K. XGBRegressor, XGBRFRegressor and RandomForestRegressor also reach R² around 0.8.

Deeper trees/forests improve results within a range, but changes above depth 10 are smaller. Excessively restricting split features usually harms fit; smaller leaf limits help some models. Favorable neighbor counts are about 3–7, with distance weights usually better than equal weights. Raising SVR C helps, and rbf is favorable, but R² may remain negative even at C = 80. One parameter cannot determine model selection.
For boosting, too small a learning rate restricts fitting in the tested search. AdaBoost generally has enough estimators above 50, while Gradient Boosting usually needs at least 100; depth 5 performs well. Low learning rates and too few estimators also limit some XGBoost settings. These observations apply to this dataset/search range and explain configuration effects, rather than prescribing universal casting-model defaults.
Data-processing trials calculate iron as 100 minus other recorded elements, remove sparsely populated S, P, V, Cr, Ti, Sn and Al inputs, and introduce the base-10 logarithm of austempering time in seconds. Training/test distributions are inspected; ordinary splitting overlaps sufficiently, so a separate balancing algorithm is not implemented. Figure 6 compares this stage. Augmentation and variable changes do not consistently improve complex models and sometimes reduce performance.

Individual improvements occurred: SVR R² for K rose from 0.53 to 0.64, but this does not establish an overall benefit from augmentation. Processing limited, incomplete data does not automatically add new material information. The authors therefore optimized GradientBoostingRegressor through Bayesian search. The skopt gp_minimize routine made 50 calls, minimizing five-fold cross-validation RMSE while recording R². Augmentation was disabled at this stage to focus on hyperparameter selection.
Search ranges are 10–500 estimators; depth unrestricted or 2, 3, 4, 5, 10, 15, 20; minimum split samples 2–20; minimum leaf samples 1–20; features sqrt, log2, all, or 1, 3, 5, 10; learning rate 0.01–0.7. HB achieves a leading model and Rm improves. A5/K appear about 3/1 percentage points below earlier bests. Because grid and Bayesian searches use three-/five-fold validation, both candidate groups enter final evaluation rather than declaring Bayesian models worse from these differences alone.
Model Selection, Casting Trials and Property Differences
Final evaluation separates cross-validation and testing. Some models do well in cross-validation but poorly on small tests, or vice versa. Few test records can destabilize ranking, so selection combines measures. Rm uses bs_rm, A5 gs_a5, and Rp0.2/HB/K bs_a5. Original Table 1 lists configurations; bs and gs denote Bayesian/grid searches. Different properties may share settings, but their physical meanings remain distinct.
bs_rm uses 263 estimators, maximum depth 2, sqrt features and a learning rate of about 0.19747. gs_a5 uses 500 estimators, no direct depth limit, sqrt features and a learning rate of 0.01. bs_a5 uses 500 estimators, maximum depth 4, 10 features and a learning rate of about 0.06430. These configurations reflect different model-complexity requirements for individual outputs.
The system comprises interface, dataset, property models and application server. Python/FastAPI loads models, processes inputs and returns predictions. Users enter a product’s chemistry/heat treatment or read CSV. Outputs show inputs, properties and matching grades. This enables parameter comparisons, but a displayed grade match is not a completed formal mechanical test.
Physical trials use pig iron, FeSi50, FeMn80, carburizer and commercially pure Cu/Ni in a medium-frequency induction furnace with a 50 kg neutral-lined crucible. The melt is superheated to 1450 °C for 2 min. NiMg17 nodularization and FeSi75 inoculation are performed in the crucible, followed by pouring at about 1370 °C into resin-bonded sand Y-block molds. An ARL spark-emission spectrometer measures chemistry. Validation therefore has a defined melting/molding history, rather than being independent of process conditions.
To obtain an ausferritic matrix, blocks were austenitized in a muffle furnace at 900 °C for 120 min, then austempered at 300 °C for 120 min in a NaNO₂–KNO₃ salt bath mixed at 45%:55% by mass, and cooled in still air to room temperature. Tensile tests used VEB EU20 equipment and the specimen geometry in original Fig. 12. Hardness was measured on a Zwick/Roell ZHU 250. ISO 6892-1 and EN ISO 6506-1 are specified for tensile and Brinell testing, respectively. At least three specimens were tested per mechanical property.

Prediction/experiment conditions differ. Prediction: C 3.52%, Si 2.87%, Mn 0.22%, Mg 0.051%, Cu 0.73%, Ni 1.55%; austenitizing 910 °C/120 min, austempering 320 °C/120 min, 25 mm thickness. Experiment: C 3.57%, Si 2.55%, Mn 0.24%, Mg 0.068%, Cu about 0.85%, Ni 1.6%; austenitizing 900 °C, austempering 300 °C, both 120 min, again 25 mm. Both chemistry and temperature differ, so this is not a strict identical-condition error test.
C | Si | Mn | Mg | Cu | Ni | Austenitizing temperature | Austenitizing time | Austempering temperature | Austempering time | Wall thickness | |
|---|---|---|---|---|---|---|---|---|---|---|---|
wt.% | wt.% | wt.% | wt.% | wt.% | wt.% | °C | min | °C | min | mm | |
Prediction input | 3.52 | 2.87 | 0.22 | 0.051 | 0.73 | 1.55 | 910 | 120 | 320 | 120 | 25 |
Physical experiment | 3.57 | 2.55 | 0.24 | 0.068 | 0.85 | 1.6 | 900 | 120 | 300 | 120 | 25 |
Original Table 3 reports predicted tensile strength 1306 MPa versus 1287 MPa measured, a 19 MPa difference, and predicted hardness 368 HB versus 388 HB, a 20 HB difference. These agree relatively closely. Yield strength is predicted at 917 MPa versus 1078 MPa measured, differing by 161 MPa. Predicted elongation is 8.1% versus only 1.2% measured, a 6.9-percentage-point difference. Predicted K is 80 J, but no experimental value is reported, so impact prediction cannot be verified here. Performance clearly differs by output.
Tensile strength / MPa | Yield strength / MPa | Elongation / % | Impact property / J | Hardness / HB | |
|---|---|---|---|---|---|
Predicted | 1306 | 917 | 8.1 | 80 | 368 |
Measured | 1287 | 1078 | 1.2 | – | 388 |
Microscopy shows graphite nodules in an ausferritic matrix of fine acicular bainitic ferrite and a small fraction of carbon-rich austenite. At 300 °C, fine lower ausferrite has many fine ferrite needles, high strength/hardness and low elongation. Other conditions equal, higher austempering temperature generally lowers strength/hardness and raises elongation/impact toughness. The prediction at 320 °C versus experiment at 300 °C affects trends, but the authors consider temperature alone insufficient to explain the large elongation discrepancy.
Inputs omit nodule count, nodularity, roundness and matrix discontinuities such as microporosity/shrinkage. These can strongly influence elongation and impact toughness. Chemistry, heat treatment and thickness support useful strength/hardness predictions while potentially missing important ductility controls. Excellent training fit or one high output score cannot replace examination of real microstructure and defects.
Further improvement requires new production data, upload/check/correction procedures and model comparison under consistent validation conditions. The authors propose better boundary-case handling, storage and user functions. The contribution is a path from data inspection and model comparison to physical validation, with clear limitations: small samples, missing fields and insufficient microstructural inputs can distort predictions. Production use suits process screening and test preparation; final properties still require tests of the actual batch.
Source: Adam Bitka, Mateusz Witkowski, Krzysztof Jaśkowiec, Marcin Małysza, Łukasz Marcjan and Dorota Wilk-Kołodziejczyk. Archives of Civil and Mechanical Engineering, published online 20 November 2024. DOI: 10.1007/s43452-024-01089-z. Adapted from the open-access paper; original figure/table numbers retained. CC BY 4.0.Original paper · Direct PDF · CC BY 4.0 ·
Related News