The Hiphive Package for the Extraction of High-Order Force Constants by Machine Learning
Journal article, 2019

The efficient extraction of force constants (FCs) is crucial for the analysis of many thermodynamic materials properties. Approaches based on the systematic enumeration of finite differences scale poorly with system size and can rarely extend beyond third order when input data is obtained from first-principles calculations. Methods based on parameter fitting in the spirit of interatomic potentials, on the other hand, can extract FC parameters from semi-random configurations of high information density and advanced regularized regression methods can recover physical solutions from a limited amount of data. Here, the HIPHIVE Python package, that enables the construction of force constant models up to arbitrary order is presented. HIPHIVE exploits crystal symmetries to reduce the number of free parameters and then employs advanced machine learning algorithms to extract the force constants. Depending on the problem at hand, both over and underdetermined systems are handled efficiently. The FCs can be subsequently analyzed directly and or be used to carry out, for example, molecular dynamics simulations. The utility of this approach is demonstrated via several examples including ideal and defective monolayers of MoS2 as well as bulk nickel.

force constants




machine learning


Fredrik Eriksson

Chalmers, Physics, Materials and Surface Theory

Erik Fransson

Chalmers, Physics, Materials and Surface Theory

Paul Erhart

Chalmers, Physics, Materials and Surface Theory


2513-0390 (ISSN)

Vol. 2 5 1800184

Subject Categories

Other Physics Topics

Bioinformatics (Computational Biology)

Probability Theory and Statistics



More information

Latest update