Machine learning prediction of Ru-IMCs
The workflow for designing efficient Ru-based intermetallic catalysts for ammonia synthesis was outlined in Fig. 1, comprising three main components: materials theoretical prediction, experimental verification, and reaction mechanism analysis. Firstly, a foundational dataset containing 201 Ru-based binary intermetallics was curated from the Inorganic Crystal Structure Database (ICSD) for ML models, which are listed in Supplementary Table 1. Training of the models involved using eXtreme Gradient Boosting (XGB) algorithms for regression predictive modeling. The regression model demonstrating the best performance was then leveraged to predict unexplored materials with promoted activity for ammonia synthesis. The SHapley Additive exPlanations (SHAP) value analysis, an interpretable ML technique, was employed to identify the parameters for optimizing the nitrogen interaction, which was crucial as the adsorption energies of N2 (EN2) and N atoms (EN) were pivotal activity indicators, playing a key role in the N2 activation, and N atoms hydrogenation in the subsequent ammonia formation pathway (Supplementary Fig. 1). To validate the predictions, materials preparations, structural characterization, and catalytic activity evaluations were conducted on the predicted Ru-IMCs materials. Finally, in-situ characterization and DFT calculations were employed to uncover insights into the reaction mechanism enhancing catalytic activities in ammonia synthesis.

The workflow includes stablishing a foundational dataset of Ru-based IMCs; utilizing machine learning to create an activity volcano plot dependent on EN and EN2 for material screening; preparing Ru-IMCs and testing their ammonia synthesis performance; conducting DFT calculations and in-situ characterization to investigate the underlying mechanisms.
For ML of Ru-based binary intermetallics, each case was described using multidimensional vectors that considered both element-specific and chemical environment features of Ru active sites. Here, the composition of the IMCs is characterized by the normalized stoichiometric ratio of the elements present in the material (denoted as NSR). The chemical environment of the active sites is defined by the Miller indices (denoted as (h k l)), the total number of atoms in the sites (denoted as site atoms), and the Ru ratio of the sites (denoted as Ru ratio). Furthermore, the coordination specificity of the elements is determined by the variance in the first ionization energy in comparison to Ru (denoted as Δ(X-Ru)) and the radius of the coordinating elements (denoted as r(X)). Here, the selected features possessed high irrelevance in heat map depicted Fig. 2a, indicating they independently represent an aspect of the atomic and electronic structure of the chemical system while being correlated and independent. To augment the prediction accuracy of ML, we evaluated the performance of multiple regression algorithms, including XGB, Multi-Layer Perception (MLP), K Nearest Neighbors (KNN), Gradient Boosting Decision Tree (GBDT), and Support Vector Regression (SVR) models (Fig. 2b). The obtained adsorption energy data of EN2 and EN was randomly shuffled and divided, with 80% for the training model and the remaining 20% for test model (Fig. 2c). The difference between the predicted and calculated values was defined as the error to assess the models’ performance. As depicted in the violin plot (Fig. 2b), the XGB model displayed the most competitive prediction accuracy for error values and probability density for the adsorption energy of both N2 and N atoms among the five models, with details of the predictions of different models displayed in Supplementary Figs. 2–5. Additional evaluation metrics for model accuracy were summarized in Supplementary Tables 2 and 3. Across all metrics, including MAE (Mean Absolute Error), RMSE (Root Mean Square Error), and R² (R-square), the XGB model consistently demonstrated the best performance and can be utilized for the ML algorithms.

a Heat map of Pearson’s correlation coefficient matrix in features which were employed in machine learning models. b Violin plots of the error from true to predicting N2 and N adsorption energies through XGB, MLP, KNN, GBDT, and SVR models. c The regression curve of training data and testing data by XGB model. d A two-dimensional activity volcano plot for ammonia synthesis. N2 and N adsorption energies in panels were calculated using DFT. The gray square points are selected Ru-IMCs to train the model; blue cycle points are predicted Ru-IMCs through the model; and asterisk represents the un-explored Ru-IMCs candidate for ammonia synthesis. e The beeswarm plot of feature importance in XGB models using SHAP assessment. f The average absolute SHAP values of each input feature.
Next, a volcano plot was generated using the XGB model algorithm to evaluate the catalytic activity of various Ru-IMCs catalysts (Fig. 2d). All predicted EN/EN2 values for the Ru-IMC catalysts are listed in Supplementary Table 1 and Supplementary Fig. 6. Considering the elementary steps of ammonia synthesis, the energy barriers of each step can be depicted by the adsorption energies of N2 and N atoms. Subsequently, we calculated their adsorption energies on different surfaces of Ru-IMCs through high-throughput methods, represented by the gray square points in Fig. 2d. To validate the accuracy of these data points, a selection of them was prepared, and their catalytic activities for ammonia synthesis were measured under conditions of 0.1 MPa and 400 °C. The reaction rates were determined for YRu2, LaRu2, and Ga3Ru, showing the order of Ga3Ru (N. D.)
In order to uncover the underlying chemical patterns within the model and facilitate optimization, we utilized the SHAP value method to delve into the complex relationship between features and adsorption energies. A negative SHAP value for a feature indicates an enhancement on EN or EN2 through the XGB model’s output. As illustrated in Fig. 2e, instances of robust N atom adsorption tendencies were typically linked to high feature values of NSR and atoms, but low feature values of r(X) and Ru ratio. Conversely, cases involving N2 adsorption usually demonstrated elevated feature values of Δ(X-Ru) and Ru ratio, alongside lower feature values of r(X). By combining the feature importance values outlined in Fig. 2f and Supplementary Table 4, replacing an element with a lower r(X) at the Nd site could enhance N2 adsorption while minimally impacting the strength of N atoms, thereby potentially enhancing the catalytic performance of NdRu2.
Preparation and characterization of Ru-IMCs
By using the arc-melting method, we successfully synthesized the Laves phase NdRu2. In this structure, Ru atoms occupy sites with a coordination number (CN) of 12, forming a Frank-Kasper polyhedron. The Nd atoms, on the other hand, have a CN of 16. This well-defined crystal structure and the combination of elements spanning the periodic table provide a unique opportunity to tune the properties of Ru by modifying the Nd site. Since Nd is a rare earth element, we use a light rare earth element, Sc as the doping element and designed a novel Sc-doped NdRu2 intermetallic catalyst. Here we have optimized the molar ratio of Sc doping to be 12.5% (Supplementary Fig. 9), that can be denoted as Sc1/8Nd7/8Ru2. Given a smaller radius of Sc (160 pm) compared to Nd (185 pm), the substitution of Nd atoms with Sc is expected to induce lattice contraction of NdRu2. As shown in Fig. 3b, Rietveld refinement was conducted to precisely verify the expected lattice change observed in the X-ray diffraction (XRD) patterns. Upon doping with Sc, the lattice parameters of Sc1/8Nd7/8Ru2 are smaller than those of NdRu2 (contracting from 7.613 Å to 7.573 Å), consistent with the structural relaxation predicted by our DFT calculations (Fig. 3a). The Extended X-ray Absorption Fine Structure (EXAFS) of Ru K-edge as depicted in Fig. 3c reveals a slight shift of the first nearest-coordination peaks in R space of NdRu2 and Sc1/8Nd7/8Ru2. The curve fitting results of all three samples are listed in Supplementary Figs. 10 and 11 and Supplementary Tables 5 and 6, which demonstrates that the specific Ru−Nd bond length decreases from 2.55 Å (NdRu2) to 2.48 Å (Sc1/8Nd7/8Ru2), further confirming the lattice contraction induced by Sc incorporation.

a Crystal structure and lattice parameters of NdRu2 (left) and Sc1/8Nd7/8Ru2 (right) through DFT calculations. b Rietveld refinement of NdRu2 and Sc1/8Nd7/8Ru2. c EXAFS of Ru K-edge based on Fourier transform for NdRu2 and Sc1/8Nd7/8Ru2. d XANES of Ru K-edge for NdRu2 and Sc1/8Nd7/8Ru2. Ru 3d XPS of e NdRu2, and f Sc1/8Nd7/8Ru2. g TEM and EDS mapping of Sc1/8Nd7/8Ru2, inset shows the corresponding Fourier transform pattern. h The interplanar spacings of different crystal faces in NdRu2 and Sc1/8Nd7/8Ru2.
The electronic structure of NdRu2 and Sc1/8Nd7/8Ru2 was analyzed using X-ray absorption near-edge structure (XANES) and X-ray photoelectron spectroscopy (XPS). Illustrated in Fig. 3d, the absorption pre-edge positions follow the sequence of Ru foil > Sc1/8Nd7/8Ru2 > NdRu2, indicating the negatively charged nature of the Ru species in both NdRu2 and Sc1/8Nd7/8Ru2, with the electron density of Ru being slightly lower in Sc1/8Nd7/8Ru2 than that in NdRu2. Figure 3e, f depict the XPS Ru 3d spectra with respect to the binding energy of Sc1/8Nd7/8Ru2 and NdRu2. The noticeable shifts of typical peaks to lower energy also indicate negatively charged feature of surface Ru sites, which is consistent with the XANES results. While the Nd 3 d peaks exhibit a significant shift to higher energy compared to Nd0 3d (Supplementary Fig. 12). These findings suggest that Nd and Sc donate electrons while Ru accepts electrons in NdRu2 and Sc1/8Nd7/8Ru2 systems. The enrichment of electrons on the surface Ru highlights the potential for promoting the back-donation of electrons to the antibonding π-orbitals of adsorbed N2.
Transmission electron microscopy (TEM) was employed to investigate the microstructure of NdRu2 and Sc1/8Nd7/8Ru2. The elemental distribution in Sc1/8Nd7/8Ru2 was assessed using Energy Dispersive Spectroscopy (EDS) mapping, depicted in the middle of Fig. 3g, revealing the uniform dispersion of Nd, Sc, and Ru elements in Sc1/8Nd7/8Ru2 particle. On the right side of Fig. 3g, a distinct lattice corresponding to the (3 1 1) index was evident, consistent with the Fourier transform pattern in the inset. Additional crystal plane orientations can be observed in Supplementary Fig. 13. The interplanar spacings of NdRu2 and Sc1/8Nd7/8Ru2 measured by TEM are summarized in Fig. 3h. It is apparent that following Sc doping, all interplanar spacings demonstrate a contraction of 4.3–7.4%, aligning with theoretical calculations (Fig. 3a), XRD patterns (Fig. 3b), and EXAFS results (Fig. 3c).
Ammonia synthesis performance of Ru-IMCs
We successfully doped NdRu2 by Sc with a smaller ion radius to create a new Ru-IMCs, Sc1/8Nd7/8Ru2, and sought to evaluate its performance in catalytic ammonia synthesis. In Fig. 4a, the catalytic activity is depicted as a function of temperature over Sc1/8Nd7/8Ru2, NdRu2, and Ru metal. The ammonia production rate of Sc1/8Nd7/8Ru2 reached 2.77 mmol g−1 h−1, which is 3 times higher than that of NdRu2 (0.86 mmol g−1 h−1) at 400 °C and 0.1 MPa, while pure Ru metal exhibited negligible activity. Note that the catalytic activity of Sc1/8Nd7/8Ru2 surpasses that of other intermetallic catalysts investigated under similar reaction conditions, such as LaRuSi (1.76 mmol g−1 h−1), LaCoSi (1.25 mmol g−1 h−1), and YRu2 (0.57 mmol g−1 h−1) (Fig. 4b). The activities of Ru/MgO and Ru/AC catalysts are also referenced as typical Ru-based catalysts; they exhibited lower activities for ammonia production, at 0.80 mmol g−1 h−1 and 0.77 mmol g−1 h−1 (Supplementary Fig. 14), respectively, significantly less than that of the Sc1/8Nd7/8Ru2 catalyst. Despite having a relatively low surface area of only 0.34 m2 g−1, Sc1/8Nd7/8Ru2 yields a remarkable reaction rate of 8.18 mmol m−2 h−1 when assessed by specific activity, positioning it as one of the most active binary Ru-based intermetallic catalysts (Fig. 4b and Supplementary Tables 7 and 8).

a Temperature dependence of the NH3 synthesis rates over Ru, NdRu2, and Sc1/8Nd7/8Ru2 under 0.1 MPa. b Catalytic activity (dark blue, specific surface activity; light blue, mass activity) for ammonia synthesis over various Ru-IMCs catalysts. Error bars represent the standard deviation from three independent measurements. c Arrhenius plots for NH3 synthesis over NdRu2 and Sc1/8Nd7/8Ru2 under 0.1 MPa. d Reaction orders of H2 and N2 and e pressure effect of NdRu2 and Sc1/8Nd7/8Ru2. f Time courses for NH3 synthesis over Sc1/8Nd7/8Ru2 at 0.1 and 0.9 MPa, 400 °C.
In the earlier section on ML, we noted that the small radius of the coordinating atom in Ru-IMCs would notably improve their N2 adsorption, thereby enhancing the activity of ammonia synthesis. Here, if we introduce the element Y with a slightly larger atomic radius (180 pm) than Sc and incorporate it into NdRu2 at the same ratio, the resulting Y1/8Nd7/8Ru2 catalyst displays a catalytic activity of 0.94 mmol g−1 h−1 for ammonia production (Supplementary Fig. 15). This places it between Sc1/8Nd7/8Ru2 (2.77 mmol g−1 h−1) and NdRu2 (0.86 mmol g−1 h−1), underscoring the significant impact of the doping atomic radius on enhancing the activity of NdRu2. The outstanding catalytic performance observed with small atomic radius element doping in NdRu2 for ammonia synthesis aligns with the trend depicted in the volcano plot in Fig. 2d, which emphasizes our methodology of utilizing the XGB algorithm for screening and optimizing Ru-IMCs catalysts for ammonia synthesis through ML as a reliable and effective approach.
The kinetics of ammonia synthesis over NdRu2 and Sc1/8Nd7/8Ru2 catalysts were analyzed using the ammonia production rates (r) at different reaction temperatures. A series of Arrhenius plots were generated by plotting lnr against 1/T. The slope of the Arrhenius plot allowed for the calculation of the apparent activation energy (Ea) for Sc1/8Nd7/8Ru2, resulting in a value of 38.7 kJ·mol−1 (Fig. 4c). This represents a reduction of approximately 30% compared to the Ea for the undoped NdRu2 catalysts (58.9 kJ·mol−1), providing evidence that Sc doping significantly enhances the ammonia synthesis reaction over NdRu2. The suppressed Ea is attributed to Sc doping, which improves the adsorption of N2, thereby reducing the energy barrier for N2 dissociation on Sc1/8Nd7/8Ru2. This hypothesis is initially supported by the N2 reaction orders, with the N2 reaction order for undoped NdRu2 being close to unity (α = 0.94). While, the N2 reaction order was measured to be 0.77 over Sc1/8Nd7/8Ru2 (Fig. 4d), indicating higher efficiency of N2 dissociation on Sc doped NdRu2. Compared to NdRu2, Sc1/8Nd7/8Ru2 not only exhibits a lower activation energy but also demonstrates a fundamental improvement in resistance to hydrogen poisoning. Figure 4d illustrates the H2 reaction orders, with the undoped NdRu2 catalyst showing a negative value of −0.22, which demonstrates a strong hydrogen adsorption on its surface, named hydrogen poisoning effect. Conversely, the H2 reaction order of Sc1/8Nd7/8Ru2 is positive, reaching 0.79 (Fig. 4d), indicating that hydrogen poisoning has been mitigated by Sc doping. This substantial difference results in markedly different catalytic performance under high-pressure conditions, where the reaction rate over Sc1/8Nd7/8Ru2 shows an approximately linear response to pressure increase. This led to a fourfold increase to 9.03 mmol g−1 h−1 when the reaction pressure rose from 0.1 to 0.9 MPa (Fig. 4e). Such enhancement of catalytic activity with pressure is not observed for NdRu2, as the catalytic performance remains independent of total pressure, probably attributed to the hydrogen poisoning effect over NdRu2. We further investigated the high-pressure responsiveness of Sc1/8Nd7/8Ru2. As shown in Supplementary Fig. 16, the reaction rate increased monotonically to 15.85 mmol g−1 h−1 at 2.0 MPa, indicating a positive pressure effect for Sc1/8Nd7/8Ru2 in ammonia synthesis. The exceptional stability of Sc1/8Nd7/8Ru2 is evidenced by its sustained activity over 105 h at 400 °C under pressures of 0.1 MPa and 0.9 MPa, respectively (Fig. 4f). XRD patterns show the lattice parameters of the used Sc1/8Nd7/8Ru2 sample are slightly larger than those of the fresh sample (increasing from 7.573 to 7.584 Å, Supplementary Figs. 17 and 18), likely due to the incorporation of hydrogen, which will be discussed below. Repeatable ammonia synthesis activity was observed for different batches of Sc1/8Nd7/8Ru2 over an 80-h period (Supplementary Fig. 19).
Mechanism studies of Ru-IMCs for ammonia synthesis
To explore the origin of high performance of Sc1/8Nd7/8Ru2, we conducted computational studies using first-principles calculations. Bader charge analysis indicates that the valence states of Ru in NdRu2 and Sc1/8Nd7/8Ru2 are −0.66 and −0.61, respectively, signifying electron transfer from Nd and/or Sc to Ru in the lattice of these intermetallic compounds (Supplementary Table 9), consistent with the experimental results in XANES and XPS (Fig. 3d–f). It is important to note that the electronic structure analysis from the XANES and XPS results demonstrates that the electron density of Ru in Sc1/8Nd7/8Ru2 is lower than that in NdRu2 (Fig. 3d–f), yet N2 activation is significantly enhanced over Sc1/8Nd7/8Ru2 (Fig. 4d). This observation contradicts the well-known assumption that increasing the electron density of Ru active sites would enhance electron back donation for N2 dissociation and subsequently ammonia production.
Motivated by the aforementioned discrepancy, we conducted DFT calculations to elucidate the electronic structure of these catalysts. Figures 5a–c displays the band structures of the Ru element in Ru, NdRu2, and Sc1/8Nd7/8Ru2, in which the electron states near the Fermi level of both NdRu2 and Sc1/8Nd7/8Ru2 are significantly higher than that of pure Ru. To discern the enhanced N2 activation over NdRu2 and Sc1/8Nd7/8Ru2, we calculated the projected density of states (pDOS), and the 3σ and 2π orbitals of free N2 contribute to the energy range of −4 to 0 eV, aligning well with the energy level of Ru d orbitals (Fig. 5d), and their overlap is most prominent over Sc1/8Nd7/8Ru2 (Fig. 5e), indicating a strong tendency for Sc1/8Nd7/8Ru2 to interact with N2. Additionally, the pDOS results of adsorbed N2 reveal that the p-band of N splits into a bonding state and a small antibonding state (below and above the Fermi level, respectively), with the bonding orbitals of N2 hybridizing with Ru d orbitals at around −8 to −5 eV (Supplementary Fig. 20). Notably, the electronic state at the bonding orbitals of N2-adsorbed Sc1/8Nd7/8Ru2 exhibits a more negatively shifted energy compared with NdRu2 and Ru, indicating a more stabilized N2. The significant N2 adsorption results in the weakening of the N ≡ N triple bond and a more pronounced elongation of the bond length over Sc1/8Nd7/8Ru2 (Fig. 5e), which is consistent with the prediction made by the SHAP value method in ML, suggesting that doping small-radius elements in Ru-IMCs would enhance N2 adsorption.

Calculated band structure of a Ru and Ru element in b NdRu2, c Sc1/8Nd7/8Ru2. d Projected density of states (PDOS) of free N2 and Ru d-band in Ru metal, NdRu2 and Sc1/8Nd7/8Ru2. The inserts show surface structure and electron distribution (yellow, electron rich; sky blue, electron poor) of a N2-adsorbed catalysts. e A comparison of the overlap of the local electron state ranging from −4 to 0 eV between N2 and Ru-IMCs. f Reaction free energy for N2 dissociation and g N2-TPD of Ru, NdRu2 and Sc1/8Nd7/8Ru2. h FT-IR spectra of N2-adsorbed NdRu2 (14N2) and Sc1/8Nd7/8Ru2 (14N2 and 15N2). i H2-TPD of NdRu2 and Sc1/8Nd7/8Ru2. Insert shows the crystal structure of hydrogen incorporated Sc1/8Nd7/8Ru2.
The work function of Sc1/8Nd7/8Ru2 on the crystal facet (001), the most stable surface, was calculated to be 2.95 eV (Supplementary Fig. 21), indicating its high electron donation ability. With the high electronic states near the Fermi level, Sc1/8Nd7/8Ru2 is poised to facilitate electron injection into the adsorbed N2. Hence, the 3D electron density isosurface map illustrates a pronounced electron transfer from Sc1/8Nd7/8Ru2 to the adsorbed N2 (Fig. 5d inset, Supplementary Figs. 22–24). The activated N2 reaction pathway was further examined on the surfaces of Ru, NdRu2, and Sc1/8Nd7/8Ru2. NdRu2 demonstrates stronger N2 adsorption compared to Ru, with adsorption energies of −0.94 eV versus −0.62 eV (Fig. 5f). The addition of Sc enhances N2 adsorption further, increasing it from −0.94 eV to −1.17 eV. This finding is in line with both the previously discussed reaction kinetics findings (Fig. 4d) and theoretical calculation results (Fig. 2d). The N2 dissociation barrier over Ru, NdRu2, and Sc1/8Nd7/8Ru2 was determined to be 1.79 eV (for Ru flat site), 1.32 eV (for Ru B5 site see in Supplementary Fig. 25),1.15 eV, and 0.75 eV, respectively, which indicates that the adsorbed N2 is more readily cleaved over Sc1/8Nd7/8Ru2.
Experimental studies were conducted using the calculation data provided to assess the validity of the proposed N2 activation mechanism. As depicted in Fig. 5g, N2 desorption from Sc1/8Nd7/8Ru2 occurs at 501 °C, a higher temperature range than that from NdRu2 (379 °C), while there is almost no desorption from pure Ru, which suggests that the nitrogen interaction strength over Sc1/8Nd7/8Ru2 is significantly stronger, consistent with the calculated adsorption energies shown in Fig. 5f. Quantification revealed 0.005 mmol of desorbed nitrogen, a value similar to the number of exposed Ru atoms (0.004 mmol) on the surface of Sc1/8Nd7/8Ru2 catalyst (Supplementary Table 10). This, along with the XPS observation of a strong N 1s peak (~398.4 eV) on the used catalyst that almost disappeared after Ar plasma etching (Supplementary Fig. 26), supports the conclusion that the desorbed nitrogen originates primarily from surface species rather than from the bulk material of Sc1/8Nd7/8Ru2. FT-IR results reveal broad peaks around 2300–2100 cm−1, attributed to the stretching vibrational mode of chemisorbed N2 on Ru sites (Fig. 5h). Due to N ≡ N stretching (νN2), the 14N2-adsorbed NdRu2 exhibits a broad band at 2222.6 cm−1. While, 14N2-adsorbed Sc1/8Nd7/8Ru2 shows a broad band assignable to νN2 at around 2191.9 cm−1 (Fig. 5h). The red-shift of the N2 signal is clear evidence of a stronger electronic interaction between N2 and Sc1/8Nd7/8Ru2, in which N2 accepts more electrons and is more dissociative than that on NdRu2. For 15N2 adsorbed on Sc1/8Nd7/8Ru2, the adsorption band appears around 2118.4 cm−1 (Fig. 5h), consistent with the value estimated based on the isotope effect (2191.9 cm−1 × \(\sqrt{14/15}\) = 2117.6 cm−1), indicating the chemisorbed N2.
To determine the origin of the resistance to hydrogen poisoning over Sc1/8Nd7/8Ru2, we conducted an H2-TPD experiment to examine the thermal desorption of the used samples. As depicted in Fig. 5i, the mass signal of H2 is scarcely detected on NdRu2, whereas a prominent peak is observed at 171 °C on Sc1/8Nd7/8Ru2, indicating that the ability to incorporate hydrogen has been achieved through the substitution of Sc. The mole ratio of the hydrogen can be estimated to be 0.52 through mass quantification, denoted as Sc1/8Nd7/8Ru2H0.52. DFT calculation results also reveal that the hydrogen-involving Sc1/8Nd7/8Ru2 structure is much more energetically favored than that of NdRu2, further confirming that H− can be trapped in Sc1/8Nd7/8Ru2, which accounts for the high resistance to hydrogen poisoning issue.
