Ultimately, we identified IDH1 from 17 FRGs as a prospective indicator of diabetic osteoporosis subtypes, using multiple machine learning algorithms and validated by uniting external datasets. Here, IDH1 is linked to osteoporosis.