When fitting dihedral angle parameters based on the torsion dataset, we set the energy differences between QM and OSCFF as the training label. Specifically, we set the torsion contribution to energy, which is unsupported by GAFF2, to zero. We define the loss function to optimize dihedral parameters through the following equation: