Shapley Additive exPlanations (SHAP) value analysis is an approach for evaluating ML model interpretability. It can provide a clear graph of how diverse features compete with each other and determine the target property
56. Specifically, it can reveal the quantitative local contribution of each feature to the prediction target property of a single sample, which is difficult to explain by feature importance. Therefore, SHAP value analysis was implemented on the optimized dataset of the magnetic moment regression model. The SHAP values of the 25 most important elemental and magnetic features of the magnetic moment regression model are shown in
Fig. 8. The exchange interaction between the nearest-neighbor (nn) and next-nearest-neighbor (nnn) atoms in 2D monolayer materials has a more significant effect on the magnetic moment than the elemental or atomic properties
57. Taking Cr
2C as an example, the crystal field affects the electronic structure, which in turn affects the magnetic interaction of magnetic systems, as shown in
Fig. 8a. The sine Coulomb matrix, volume per atom (VPA), is related to the structural properties, which are also vital for the prediction of net magnetization, as shown in
Fig. 8b. The local influence of the optimal representation set was also analyzed. Cr
2C, Cr
2CO
2, and Cr
3C
2O
2 were selected as representative materials, and their SHAP values for the preferred features are shown in
Fig. 8c. The net magnetic moment is 6.92
μB, 6.42
μB, and 5.49
μB per supercell for Cr
2C, Cr
2CO
2, and Cr
3C
2O
2, respectively. Among the preferred features for enhancing the net magnetic moment, the
N-
e-unpaired is the most positive contribution. Conversely, the “sine Coulomb matrix eig 3”, and mean number of unfilled electrons are the features with the most negative contributions. The
N-
e-unpaired of pristine and O
2 functionalized Cr
2C are similar in contribution. The contribution of
N-
e-unpaired increases from two to three layers of TM (Cr
2C to Cr
3C
2). Additionally, the proportion of VPA in Cr
2CO
2 is relatively high, and the maximum covalent radii of Cr
2CO
2 and Cr
3C
2O
2 gradually increase. This leads to a shorter distance between the two
nn Cr
3+ ions. Thus, the Cr-C-Cr FM super-exchange interaction in monolayer MXenes tends to be stronger. Owing to the complexity of 2D structures and the various factors affecting their magnetism, the SHAP value provides only limited information on the physical mechanism. Nevertheless, the SHAP value analysis makes our ML model for predicting 2D materials with strong magnetization more interpre
table. Significantly, the SHAP method was employed for a quantitative analysis of the impact of ML-selected features on magnetic properties, thereby revealing the underlying physical insights of our models. This interpretable framework has the potential to unlock the “black box” of ML, which could lead to groundbreaking ML-aided material design advancements.