Abstract
The calculation of electron–phonon couplings (EPCs) is essential for understanding various fundamental physical properties, including electrical transport, optical and superconducting behaviors in materials. However, obtaining EPCs through fully first-principles methods is notably challenging, particularly for large systems or when employing advanced functionals. Here we introduce a machine learning framework to accelerate EPC calculations by utilizing atomic orbital-based Hamiltonian matrices and gradients predicted by an equivariant graph neural network. We demonstrate that our method not only yields EPC values in close agreement with first-principles results but also enhances calculation efficiency by several orders of magnitude. Application to GaAs using the Heyd–Scuseria–Ernzerhof functional reveals the necessity of advanced functionals for accurate carrier mobility predictions, while for the large Kagome crystal CsV3Sb5, our framework reproduces the experimentally observed double domes in pressure-induced superconducting phase diagrams. This machine learning framework offers a powerful and efficient tool for the investigation of diverse EPC-related phenomena in complex materials.
This is a preview of subscription content, access via your institution
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$32.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 digital issues and online access to articles
$119.00 per year
only $9.92 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to the full article PDF.
USD 39.95
Prices may be subject to local taxes which are calculated during checkout





Similar content being viewed by others
Data availability
The Hamiltonian and Hamiltonian gradient data, generated by HamGNN, are available on Zenodo at https://doi.org/10.5281/zenodo.11204268 (ref. 45) for calculating the carrier mobility of GaAs and the superconducting transition temperature of CsV3Sb5. Source data are provided with this paper.
Code availability
The code for calculating the mobility and superconductivity is available on GitHub (https://github.com/QuantumLab-ZY/HamEPC) and Zenodo at https://doi.org/10.5281/zenodo.12685941 (ref. 46).
References
Giustino, F. Electron–phonon interactions from first principles. Rev. Mod. Phys. 89, 015003 (2017).
Lee, H. et al. Electron–phonon physics from first principles using the EPW code. NPJ Comput. Mater. 9, 156 (2023).
Brunin, G. et al. Phonon-limited electron mobility in Si, GaAs, and GaP with exact treatment of dynamical quadrupoles. Phys. Rev. B 102, 094308 (2020).
Bardeen, J., Cooper, L. N. & Schrieffer, J. R. Theory of superconductivity. Phys. Rev. 108, 1175–1204 (1957).
Baroni, S., de Gironcoli, S., Dal Corso, A. & Giannozzi, P. Phonons and related crystal properties from density-functional perturbation theory. Rev. Mod. Phys. 73, 515–562 (2001).
Giustino, F., Cohen, M. L. & Louie, S. G. Electron–phonon interaction using Wannier functions. Phys. Rev. B 76, 165108 (2007).
Marzari, N., Mostofi, A. A., Yates, J. R., Souza, I. & Vanderbilt, D. Maximally localized Wannier functions: theory and applications. Rev. Mod. Phys. 84, 1419–1475 (2012).
Agapito, L. A. & Bernardi, M. Ab initio electron–phonon interactions using atomic orbital wave functions. Phys. Rev. B 97, 235146 (2018).
Heyd, J., Scuseria, G. E. & Ernzerhof, M. Hybrid functionals based on a screened Coulomb potential. J. Chem. Phys. 118, 8207–8215 (2003).
Heyd, J., Scuseria, G. E. & Ernzerhof, M. Erratum: “Hybrid functionals based on a screened Coulomb potential” [J. Chem. Pys. 118, 8207 (2003)]. J. Chem. Phys. 124, 219906 (2006).
Li, Z., Antonius, G., Chan, Y.-H. & Louie, S. G. Electron–phonon coupling from GW perturbation theory: practical workflow combining BerkeleyGW, ABINIT, and EPW. Comp. Phys. Commun. 295, 109003 (2024).
Engel, M., Marsman, M., Franchini, C. & Kresse, G. Electron–phonon interactions using the projector augmented-wave method and Wannier functions. Phys. Rev. B 101, 184302 (2020).
Luo, Y., Desai, D., Chang, B. K., Park, J. & Bernardi, M. Data-driven compression of electron–phonon interactions. Phys. Rev. X 14, 021023 (2024).
Zhong, Y., Yu, H., Su, M., Gong, X. & Xiang, H. Transferable equivariant graph neural networks for the Hamiltonians of molecules and solids. NPJ Comput. Mater. 9, 182 (2023).
Schutt, K. T., Gastegger, M., Tkatchenko, A., Muller, K. R. & Maurer, R. J. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions. Nat. Commun. 10, 5024 (2019).
Gong, X. et al. General framework for E(3)-equivariant neural network representation of density functional theory Hamiltonian. Nat. Commun. 14, 2848 (2023).
Zhong, Y. et al. Universal machine learning Kohn–Sham Hamiltonian for materials. Chin. Phys. Lett. 41, 077103 (2024).
Chen, K. Y. et al. Double superconducting dome and triple enhancement of Tc in the Kagome superconductor CsV3Sb5 under high pressure. Phys. Rev. Lett. 126, 247001 (2021).
Zhang, Z. et al. Pressure-induced reemergence of superconductivity in the topological kagome metal CsV3Sb5. Phys. Rev. B 103, 224513 (2021).
Ozaki, T. Variationally optimized atomic orbitals for large-scale electronic structures. Phys. Rev. B 67, 155108 (2003).
Ozaki, T. & Kino, H. Numerical atomic basis orbitals from H to Kr. Phys. Rev. B 69, 195113 (2004).
Qin, X., Shang, H., Xiang, H., Li, Z. & Yang, J. HONPAS: a linear scaling open‐source solution for large system simulations. Int. J. Quantum Chem. 115, 647–655 (2014).
Luo, Z., Qin, X., Wan, L., Hu, W. & Yang, J. Parallel implementation of large-scale linear scaling density functional theory calculations with numerical atomic orbitals in HONPAS. Front. Chem. 8, 589910 (2020).
Lin, P., Ren, X., Liu, X. & He, L. Ab initio electronic structure calculations based on numerical atomic orbitals: basic fomalisms and recent progresses. WIREs Comput. Mol. Sci. 14, e1687 (2023).
Chen, M., Guo, G. C. & He, L. Systematically improvable optimized atomic basis sets for ab initio calculations. J. Phys. Condens. Matter 22, 445501 (2010).
Togo, A. First-principles phonon calculations with Phonopy and Phono3py. J. Phys. Soc. Jpn 92, 012001 (2023).
Togo, A., Chaput, L., Tadano, T. & Tanaka, I. Implementation strategies in phonopy and phono3py. J. Phys. Condens. Matter 35, 353001 (2023).
Giannozzi, P. et al. QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials. J. Phys. Condens. Matter 21, 395502 (2009).
Giannozzi, P. et al. Advanced capabilities for materials modelling with Quantum ESPRESSO. J. Phys. Condens. Matter 29, 465901 (2017).
Noffsinger, J. et al. EPW: A program for calculating the electron–phonon coupling using maximally localized Wannier functions. Comput. Phys. Comm. 181, 2140–2148 (2010).
Zhou, J.-J. & Bernardi, M. Ab initioelectron mobility and polar phonon scattering in GaAs. Phys. Rev. B 94, 201201 (2016).
Ma, J., Nissimagoudar, A. S. & Li, W. First-principles study of electron and hole mobilities of Si and GaAs. Phys. Rev. B 97, 045201 (2018).
Zhou, J.-J. et al. Perturbo: a software package for ab initio electron–phonon interactions, charge transport and ultrafast dynamics. Comput. Phys. Comm. 264, 107970 (2021).
Wang, Q. et al. Charge density wave orders and enhanced superconductivity under pressure in the Kagome metal CsV3Sb5. Adv. Mater. 33, e2102813 (2021).
Zheng, L. et al. Emergent charge order in pressurized Kagome superconductor CsV3Sb5. Nature 611, 682–687 (2022).
Ortiz, B. R. et al. CsV3Sb5: A Z2 topological Kagome metal with a superconducting ground state. Phys. Rev. Lett. 125, 247002 (2020).
Tan, H., Liu, Y., Wang, Z. & Yan, B. Charge density waves and electronic properties of superconducting Kagome metals. Phys. Rev. Lett. 127, 046401 (2021).
Zhang, J.-F., Liu, K. & Lu, Z.-Y. First-principles study of the double-dome superconductivity in the Kagome material CsV3Sb5 under pressure. Phys. Rev. B 104, 195130 (2021).
Khan, F. S. & Allen, P. B. Deformation potentials and electron–phonon scattering: two new theorems. Phys. Rev. B 29, 3341–3349 (1984).
Chen, X. et al. Highly robust reentrant superconductivity in CsV3Sb5 under pressure. Chin. Phys. Lett. 38, 057402 (2021).
Poncé, S. et al. Temperature dependence of the electronic structure of semiconductors and insulators. J. Chem. Phys. 143, 102813 (2015).
Poncé, S. et al. Temperature dependence of electronic eigenenergies in the adiabatic harmonic approximation. Phys. Rev. B 90, 214304 (2014).
Blochl, P. E. The projector augmented wave (PAW) method: basics and applications. Abstr. Pap. Am. Chem. S. 217, U690 (1999).
Kresse, G. & Joubert, D. From ultrasoft pseudopotentials to the projector augmented-wave method. Phys. Rev. B 59, 1758–1775 (1999).
Zhong, Y. & Liu, S. Dataset for accelerating the calculation of electron–phonon coupling strength with machine learning. Zenodo https://doi.org/10.5281/zenodo.11204268 (2024).
Zhong, Y. & Liu, S. Code for accelerating the calculation of electron–phonon coupling strength with machine learning. Zenodo https://doi.org/10.5281/zenodo.12685941 (2024).
Abdullah, B. J. Size effect of band gap in semiconductor nanocrystals and nanostructures from density functional theory within HSE06. Mater. Sci. Semicond. Process. 137, 106214 (2022).
Acknowledgements
We would like to express our gratitude to H. Shang and X. Qin for their valuable online discussions on the EPC and use of HONPAS. We acknowledge financial support from the Ministry of Science and Technology of the People’s Republic of China (no. 2022YFA1402901, H.X.), NSFC (grant nos. 11991061, X.-G.G. and 12188101, H.X.), the Guangdong Major Project of the Basic and Applied Basic Research (Future functional materials under extreme conditions—2021B0301030005, H.X.), the Shanghai Science and Technology Program (no. 23JC1400900, H.X.) and the Shanghai Pilot Program for Basic Research – Fudan University 21TQ1400100 (no. 22TQ017, W.C.).
Author information
Authors and Affiliations
Contributions
H.X. and J.-H.Y. proposed the research and the methodology in this work. Y.Z. and S.L. wrote the codes, performed the EPC calculation and wrote the paper. B.Z. conducted structure relaxation and phonon calculations for CsV3Sb5. Z.T, Y.S. and W.C. checked the formulas and codes. H.X., J.-H.Y. and X.-G.G. revised the paper. All authors discussed the results.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Computational Science thanks Ting Cao, Yuan Ping and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Primary Handling Editor: Jie Pan, in collaboration with the Nature Computational Science team.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information (download PDF )
Supplementary Figs. 1–8, Discussions 1–3 and Tables 1–4.
Source data
Source Data Fig. 2 (download XLSX )
Source data for plot.
Source Data Fig. 3 (download XLSX )
Source data for plot.
Source Data Fig. 4 (download XLSX )
Source data for plot.
Source Data Fig. 5 (download XLSX )
Source data for plot.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Zhong, Y., Liu, S., Zhang, B. et al. Accelerating the calculation of electron–phonon coupling strength with machine learning. Nat Comput Sci 4, 615–625 (2024). https://doi.org/10.1038/s43588-024-00668-7
Received:
Accepted:
Published:
Version of record:
Issue date:
DOI: https://doi.org/10.1038/s43588-024-00668-7
This article is cited by
-
Efficient modeling of ionic and electronic interactions by a resistive memory-based reservoir graph neural network
Nature Computational Science (2025)
-
Advancing nonadiabatic molecular dynamics simulations in solids with E(3) equivariant deep neural hamiltonians
Nature Communications (2025)
-
Modeling crystal defects using defect informed neural networks
npj Computational Materials (2025)
-
Deep-learning electronic structure calculations
Nature Computational Science (2025)
-
Accelerating predictions of electronic transport and superconductivity
Nature Computational Science (2024)


