Explainable AI for Curie Temperature Prediction in Magnetic Materials
M. Adeel Ajaib, Fariha Nasir, Abdul Rehman · 2025
Read Explainable AI for Curie Temperature Prediction in Magnetic Materials by M. Adeel Ajaib, Fariha Nasir, Abdul Rehman (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-06996.txt.
Introduction
The Curie temperature marks where a magnet loses its magnetism, and predicting it speeds the hunt for new magnetic materials. Adeel Ajaib, Fariha Nasir, and Abdul Rehman applied explainable machine learning to that task in 2025.
Drawing on a public materials database, they enriched each entry with composition-based and domain-aware features. An extra-trees model performed best, explaining about eighty-five percent of the variance. Grouping materials by chemistry showed where predictions run strong or weak. An explanation method then named the strongest drivers, including average atomic number and magnetic moment. The authors aim to make model predictions scientists can inspect, not just trust.
Catalog record
| CREATOR | M. Adeel Ajaib, Fariha Nasir, Abdul Rehman |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 20 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2508-06996
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Explainable AI for Curie Temperature Prediction in Magnetic Materials M. Adeel Ajaib, Fariha Nasir, Abdul Rehman Abstract We explore machine learning techniques for predicting Curie temperatures of magnetic materials using the NEMAD database. By augmenting the dataset with composition-based and domain-aware descriptors, we evaluate the performance of several machine learning models. We find that the Extra Trees Regressor delivers the best performance reaching an R 2 score of up to 0.85 ± \pm 0.01 (cross-validated) for a balanced dataset. We employ the k-means clustering algorithm to gain insights into the performance of chemically distinct material groups. Furthermore, we perform the SHAP analysis to identify key physicochemical drivers of Curie behavior, such as average atomic number and magnetic moment. By employing explainable AI techniques, this analysis offers insights into the model’s predictive behavior, thereby advancing scientific interpretability. (a) Main dataset (b) DS1 validation dataset Figure 1 : Predicted vs. true Curie temperatures using the ExtraTrees model for (a) the training/test dataset and (b) the DS1 validation dataset. A fairly strong alignment along the diagonal indicates the predictive performance of the model. Figure 2 : Feature importance graph for the Extra Trees Algorithm. 1 Introduction Curie temperature (T C ) is a critical property that defines the transition of a material from a ferromagnetic to a paramagnetic state. Predicting T C with high accuracy is essential for the discovery of magnetic materials for data storage, spintronics, and energy applications. Traditional approaches based on quantum mechanical computations or empirical models are often limited in scalability and accuracy. In recent years, machine learning (ML) has emerged as a promising alternative for property prediction across materials science domains [ 1 , 2 , 3 , 4 , 5 ] . Building on this momentum, several works have proposed the use of ML models trained on curated magnetic datasets. In particular, the recent study [ 6 ] introduced the NEMAD database, which aggregates experimentally measured magnetic transition temperatures and compositions. Similarly, the study by Belot et al. [ 7 ] utilized two of the largest available datasets of experimental Curie temperatures—comprising over 2,500 materials for training and more than 3,000 entries for validation—to compare machine learning strategies for predicting Curie temperature solely from chemical composition. Our work is inspired by these prior efforts and aims to improve the predictive accuracy and gain insights into model interpretability. We develop a pipeline that starts from the NEMAD dataset, augments it with compositional and elemental features, and evaluates several ML models. A key contribution of our work is the integration of explainable AI (XAI) through SHAP (SHapley Additive exPlanations) analysis, which allows us to quantify how each input feature contributes to the model’s prediction. Moreover, we benchmark our models on external datasets from literature to demonstrate generalization. 2 Dataset Preparation and Model Evaluation We begin our study with the NEMAD database [ 6 ] , a publicly available dataset compiled using large language models, comprising 26,706 magnetic materials with records for chemical composition, phase transition temperatures (e.g., Curie or Néel temperatures) and related magnetic properties. We pre-processed the database to remove ambiguous entries, duplicates, and entries with missing or non-numeric temperatures. We also standardized chemical formulas using the pymatgen library. To generate descriptors, we first computed composition-based features such as average atomic number, atomic mass, group number, period, and electronegativity using pymatgen. We then added elemental property descriptors using the Magpie feature set via matminer, which includes statistics such as mean, range, and standard deviation of valence electron counts, ionic radii, and oxidation states. These features capture the diversity and bonding characteristics of constituent elements and have been shown to correlate with magnetic properties. We evaluated several machine learning models for predicting Curie temperatures using the enriched dataset. Table 1 presents the comparative performance metrics in terms of Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the coefficient of determination ( R^{2} ). Table 1 : Performance comparison of machine learning models for Curie temperature prediction after feature normalization where necessary. Model MAE (K) RMSE (K) R 2 Extra Trees 51 98 0.87 Random Forest 57 103 0.85 XGBoost 63 106 0.85 Neural Network 69 123 0.79 KNN 74 129 0.77 The Extra Trees algorithm achieved the best overall performance, with an R^{2} value of 0.87, MAE of 54 K, and RMSE of 106 K. This performance surpasses that of the Random Forest algorithm and other models considered. With a balanced dataset we were able to achieve R^{2}\sim 0.85 with a standard deviation of 0.01 . The balanced dataset was obtained by randomly removing around 4% of samples with Curie temperatures less than 300 K [ 6 ] . The Extra Trees (Extremely Randomized Trees) algorithm employs an ensemble learning method similar to the Random Forests model, but with two notable distinctions: • It selects cut-points at random rather than optimizing splits. • It uses the entire training dataset without bootstrapping. These differences introduce greater variance among the individual trees in the ensemble, which can improve generalization and reduce overfitting on noisy datasets. This may explain its superior performance in our analysis, where the feature space is high-dimensional and the temperature distribution is non-uniform. The Random Forest model also performs well but slightly underperforms Extra Trees, likely due to its more deterministic node-splitting strategy, which may be less adaptive to irregularities in the dataset. XGBoost, KNN, and neural networks were also tested. XGBoost shows competitive results but did not outperform tree-based ensembles. KNN and neural networks showed relatively weaker performance, potentially due to the complexity of the feature relationships and sensitivity to scaling. We validate the performance of the Extra Trees model on the DS1 dataset [ 19 ] . Figure 1 presents the predicted versus actual Curie temperatures using the ExtraTrees model, both for the main dataset and the DS1 validation test dataset. In both subfigures, the data points cluster along the y=x diagonal, indicating that the predicted and actual values agree fairly well ( R^{2}\sim 0.71 , MAE \sim 91 K) which demonstrates the model’s generalizability. (a) SHAP bar plot showing the average impact of each feature on model output. (b) SHAP beeswarm plot showing feature influence per sample. Color indicates feature value. Figure 3 : SHAP analysis of the ExtraTrees model. (a) shows the average contribution of the top 10 features, while (b) reveals the variation of feature impacts for individual predictions. 2.1 SHAP Analysis To better understand the model’s behavior and identify the most influential features contributing to the prediction of Curie temperature, we performed SHAP (SHapley Additive exPlanations) analysis. SHAP values offer a model-agnostic, consistent way to explain predictions by attributing importance scores to individual features. SHAP Bar Plot: Figure 3 shows the SHAP summary bar plot of the top 10 features based on their mean absolute SHAP values. Among the dominant predictors, the mean magnetic moment stands out, reinforcing the well-established role of atomic-scale magnetism in determining T_{C} . The fraction of Fe also shows high importance, which aligns with its prevalence in high- T_{C} compounds and well-known ferromagnets. Features such as the mode magnetic moment, max magnetic moment, and fraction of Co all rank highly, further confirming that the magnetic nature of the constituent atoms is a primary driver of