Baktiyar Ablaikhan
λ 426.1 nm

Corrosion prediction across publications

Predicting the pitting potential of multi-principal-element alloys from literature data, and testing whether the model knows when not to trust itself on a new publication.

Period
2026
Organisation
NIS Astana-Nura · Chemistry section
Role
Co-author, with Ramazan Zhumash (grade 11); supervisor Nurbol Kelgenbaev
Status
Student research project · manuscript (Russian)
E_pit measurements from 54 publications in the main task
232
E_pit measurements from 54 publications in the main task
error of accepted predictions, internal, at 61.8% coverage
0.249 → 0.171 V
error of accepted predictions, internal, at 61.8% coverage
external test of 40 measurements: the filter made it worse
0.281 → 0.324 V
external test of 40 measurements: the filter made it worse

Abstract · translated

The aim of this study was to test whether literature data on multi-principal-element alloys (MPEAs) can support reproducible prediction of the pitting potential, E_pit, from alloy composition and test conditions, and whether the model's reliability estimate transfers to previously unseen publications. We hypothesized that restricting the task to more comparable chemistry and rejecting predictions with high expected error would reduce MAE both within the source database and on new publications. The source database contained 619 records; 610 remained after cleaning, including 328 with reported E_pit. The main task retained 232 measurements from 54 publications. Internal validation held out entire publications, followed by a pre-specified external test of 40 measurements from 12 publications. In internal validation, MAE among accepted predictions decreased from 0.249 to 0.171 V at 61.8% coverage. The hypothesis did not hold externally: MAE among accepted predictions increased from 0.281 to 0.324 V, with R² = −0.676. The novelty of the work is the combined evaluation of publication-level transfer, expected-error estimation and experiment selection in one procedure. Five computationally selected compositions are retained only as hypotheses for standardized electrochemical testing.

1 Introduction

Pitting corrosion is local breakdown of a passive metal: protection fails on a small area of the surface and a stable corrosion pit can grow there. For passivating alloys a key indicator is the pitting potential, EpitE_{\text{pit}}: under the same protocol, a higher value usually means stable local breakdown begins at a higher potential. EpitE_{\text{pit}} depends not only on composition but on solution chemistry, chloride concentration, pH, temperature, microstructure, surface state and polarization regime; potentials measured against different reference electrodes must be brought to one scale.

Multi-principal-element alloys span a very large composition space, and their corrosion depends on composition, phases, processing and environment. Chromium matters for passivation, but Cr content alone does not predict pitting resistance. Testing every composition experimentally is impractical, so published electrochemical data are attractive for pre-screening. Machine learning has been applied to MPEA corrosion before, but materials models can lose much of their accuracy on data from another distribution, and corrosion transfer is especially hard because publications differ in environment, material state and protocol.

Question. How reproducibly can EpitE_{\text{pit}} of MPEAs be predicted from literature data on composition and test conditions, and does the reliability estimate hold on publications the model has not seen?

Hypothesis. Restricting the task chemically and rejecting predictions with high expected error lowers the MAE of accepted predictions and keeps that advantage on unseen publications.

2 Materials and methods

2.1 Data

The main source is the open MPEA corrosion database of Birbilis et al.: 619 records, 610 after cleaning, with 583 values of icorri_{\text{corr}}, 607 of EcorrE_{\text{corr}} and 328 of EpitE_{\text{pit}}. The main task kept records with a known EpitE_{\text{pit}}, chromium in the composition, a stated solution concentration and a neutral chloride environment: 232 measurements from 54 publications. Potentials were converted to volts versus the saturated calomel electrode where the source allowed an unambiguous conversion; missing pH, temperature or surface state stayed unknown.

For the external test, the Nyby dataset and the additively manufactured MPEA database were used. After removing overlaps and ambiguous duplicates, set C1 held 40 measurements from 12 publications (39 AM-MPEA, one Nyby). None of it was used in training, and because AM-MPEA dominates, C1 mainly tests transfer to that one source.

A descriptive NaCl subset (202 Cr-containing measurements, 52 sources) shows why the problem is hard: the rank correlation between Cr content and EpitE_{\text{pit}} is close to zero (ρ = +0.03), the number of alloying elements shows no clear trend (ρ = 0.07), and 181 of 202 measurements were taken in 0.6 M NaCl. These one-dimensional relations are not causal.

2.2 Features and model

Composition is given as 24 atomic fractions, plus the number of components and the ideal configurational entropy Smix/R=−∑ixiln⁡xiS_{\text{mix}}/R = -\sum_i x_i \ln x_i. The model also gets electrolyte concentration, a normalized environment label and available processing features. Phase composition and post-test characterization were excluded, since they are unknown for a new alloy before synthesis.

In each training split the procedure compared random forest, extremely randomized trees, gradient boosting, ridge regression and model averaging, choosing only on training publications. For every query it produced a prediction E^pit\hat E_{\text{pit}} and an expected absolute error e^\hat e, computed only from information available before the true value is known: composition distance to the training data, disagreement and spread among models, the number of nearby literature examples, and training EpitE_{\text{pit}} statistics. A threshold on e^\hat e, set inside the training split, decides whether a numeric prediction is returned; the share returned is the coverage.

2.3 Validation

Internal validation used 30 repeated splits by whole publication: a publication is entirely in training or entirely in test, and model choice, features, normalization and the rejection threshold are fitted on training data only. A random row split served only as a reference. The frozen model and rule were then applied once, without tuning, to the pre-specified external set C1. Only after that result was fixed were external data added to development: an expanded base of 594 measurements from 97 publications (232 internal, 323 Nyby, 39 AM-MPEA), which from then on is not an independent test.

Two further analyses used the expanded base: local calibration, where a fully held-out publication stands in for a new lab and kk = 1, 2, 3, 5, 10 or 20 of its measurements correct a systematic offset; and candidate selection, where small changes of measured compositions (2 at.% moved between elements already present, at a fixed 0.6 M NaCl) are kept only if they pass the expected-error threshold and have support from at least three nearby publications.

3 Results

3.1 Internal validation

Across 30 publication splits, the median MAE of all predictions was 0.255 V with median R² = 0.244. In the 28 splits where the rule accepted at least some queries, MAE fell from 0.249 V for all predictions to 0.171 V for accepted ones, with 61.8% of queries accepted; the error dropped in 26 of 28 splits. The Spearman correlation between expected and actual absolute error was 0.407.

All predictionsOnly accepted predictions
  • Internal test0.249 → 0.171 V−31.3%
  • External test0.281 → 0.324 V+15.3%
  • Merged base0.238 → 0.192 V−19.3%

Error of accepted predictions against all predictions.
Data
TestAll predictionsAccepted predictionsAccepted
Internal: 232 measurements, 54 publications0.249 V0.171 V61.8%
External: 40 measurements, 12 publications0.281 V0.324 V57.5% (23 of 40)
Merged base: 594 measurements, 97 publications0.238 V0.192 V46.6%

3.2 External test

On C1 the MAE was 0.281 V and R² = −0.676: worse than predicting the external set's own mean. The rule accepted 23 of 40 queries (57.5%), but their MAE rose to 0.324 V, and expected and actual errors were barely related (ρ = 0.071). The selection that worked inside the source base did not find a more accurate group on new publications. Composition and concentration do not describe the whole experiment: microstructure, surface preparation, pH, temperature and polarization may all differ between publications, and these data cannot say which mattered most.

3.3 After adding the external data

On the expanded 594-row base, 30 new publication splits gave median MAE 0.238 V and median R² = 0.180, and the rule lowered mean MAE from 0.238 to 0.192 V at 46.6% coverage. Because the external data were already used in development, this is not a new independent test.

3.4 Local calibration

A few measurements from the new "lab" corrected much of the offset:

Before calibrationAfter calibration
  • 1 measurement · 52 publications0.233 → 0.195 V−16.3%
  • 5 measurements · 20 publications0.239 → 0.179 V−25.1%
  • 10 measurements · 8 publications0.199 → 0.131 V−34.2%

Mean absolute error before and after correcting a held-out publication's offset with a few of its own measurements.
Data
Local measurementsPublicationsMAE beforeMAE after
1520.233 V0.195 V
5200.239 V0.179 V
1080.199 V0.131 V

With 20 measurements only three publications qualified, so that point is unstable. This is a retrospective simulation on publications, not yet tried in a real new laboratory.

3.5 Candidates for the next experiment

From the measured parent compositions, 1,684 nearby variants were generated; 1,041 passed the expected-error threshold, 521 had support from at least three nearby publications, and 354 met both. Five were chosen for diversity of parents and literature regions, not ranked by predicted EpitE_{\text{pit}}:

#Composition, at.%Predicted EpitE_{\text{pit}}, VExpected error, VSupporting publications
1Al0.07Co24.01Cr22.66Fe24.85Mn0.51Ni27.900.3100.21316
2Co22Cr20Fe20Ni20W180.2860.2563
3Co19.61Cr21.61Fe17.61Mn19.61Nb1.96Ni19.610.1970.1206
4Co22Cr20Fe20Mn18Ni200.1750.1016
5Al15.33Co16.67Cr16.67Fe16.67Ni16.67Ti180.1850.2684

After the unfavourable external test, none of them can be considered confirmed without a new standardized measurement.

4 Discussion

The method could apply to other corrosion targets and new lab data, but the strict quantitative check here covers only EpitE_{\text{pit}} of Cr-containing alloys in chloride solutions. Inside the source base the expected-error estimate picked out more accurate predictions; on the external set the accepted share was less accurate than all queries. A reliability rule therefore needs checking on new sources just like the model itself.

The weak external result is consistent with the available features not fully describing the chemical and experimental context: environment chemistry, the passive film, microstructure, surface preparation, polarization regime and the reference electrode can all change between publications at once. New measurements should systematically record pH, temperature, surface preparation, reference electrode, scan rate, hold time, microstructure and material state.

Earlier MPEA corrosion work studied environmental and physico-chemical descriptors, physics-guided composition selection, and supervised learning with generative data augmentation. In the available description of the last of these we found no splitting of whole publications between training and test, so its metrics cannot be compared directly with this external setting.

Limits. Literature records often omit pH, temperature, scan rate, surface state, reference electrode and microstructure. The internal set has 232 measurements from 54 publications and the external set 40 from 12, 39 of them AM-MPEA. No independent test followed the expansion to 594 rows. A publication only approximates a laboratory, and the five compositions have not been synthesized or measured. The next step is a series of in-house measurements under one pre-specified protocol.

5 Conclusion

A reproducible way to assess the reliability of ML predictions of EpitE_{\text{pit}} from literature data was built and tested on Cr-containing alloys in chloride solutions (232 measurements, 54 publications). Internally, the MAE of accepted predictions fell from 0.249 to 0.171 V. On the pre-specified external set the rejection rule did not transfer: MAE rose from 0.281 to 0.324 V. The literature base holds a useful internal signal, but transfer to a new experimental context remains unreliable. The approach can support pre-screening and experiment planning, not replace experimental testing.

References

  1. Frankel G.S. Pitting corrosion of metals: a review of the critical factors. J. Electrochem. Soc. 145(6), 2186–2198 (1998). doi:10.1149/1.1838615
  2. Qiu Y., Thomas S., Gibson M.A., Fraser H.L., Birbilis N. Corrosion of high entropy alloys. npj Mater. Degrad. 1, 15 (2017). doi:10.1038/s41529-017-0009-y
  3. Nyby C., Guo X., Saal J.E. et al. Electrochemical metrics for corrosion resistant alloys. Sci. Data 8, 58 (2021). doi:10.1038/s41597-021-00840-y
  4. Ghorbani M., Li Z., Qiu Y. et al. Current progress in aqueous corrosion of multi-principal element alloys. Metall. Mater. Trans. A 55, 2571–2588 (2024). doi:10.1007/s11661-024-07473-x
  5. Miracle D.B., Senkov O.N. A critical review of high entropy alloys and related concepts. Acta Mater. 122, 448–511 (2017). doi:10.1016/j.actamat.2016.08.081
  6. Birbilis N., Choudhary S., Scully J.R., Taheri M.L. A perspective on corrosion of multi-principal element alloys. npj Mater. Degrad. 5, 14 (2021). doi:10.1038/s41529-021-00163-8
  7. Birbilis N., Ghorbani M., Li Z. et al. Multi principal element alloy (MPEA) corrosion database. Mendeley Data, v1 (2024). doi:10.17632/nskb9khgsm.1
  8. Roy A., Taufique M.F.N., Khakurel H. et al. Machine-learning-guided descriptor selection for predicting corrosion resistance in multi-principal element alloys. npj Mater. Degrad. 6, 9 (2022). doi:10.1038/s41529-021-00208-y
  9. Zeng C., Neils A., Lesko J., Post N. Machine learning accelerated discovery of corrosion-resistant high-entropy alloys. Comput. Mater. Sci. 237, 112925 (2024). doi:10.1016/j.commatsci.2024.112925
  10. Ghorbani M., Li Z., Pasquini A., Vasa R., Birbilis N. Supervised machine learning for corrosion assessment of multi-principal element alloys using experimental and generative datasets. npj Mater. Degrad. 9, 155 (2025). doi:10.1038/s41529-025-00700-9
  11. Li K., DeCost B., Choudhary K., Greenwood M., Hattrick-Simpers J. A critical examination of robustness and generalizability of machine learning prediction of materials properties. npj Comput. Mater. 9, 55 (2023). doi:10.1038/s41524-023-01012-9
  12. Li K., Rubungo A.N., Lei X. et al. Probing out-of-distribution generalization in machine learning for materials. Commun. Mater. 6, 9 (2025). doi:10.1038/s43246-024-00731-w
  13. Nyby C., Saal J.E., Guo X. et al. Electrochemical Metrics for Corrosion Resistant Alloys. Figshare, v2 (2020). doi:10.6084/m9.figshare.13038257
  14. Ghorbani M., Birbilis N., Laleh M. Additively Manufactured Multi Principal Element Alloy Corrosion Database. Mendeley Data, v3 (2025). doi:10.17632/cfz68tkwfk.3