In this study, the random forest model was used to screen out five key ferroptosis genes, including CP, HAMP, HMOX1, FLT3, and SLC2A3, and these 5 differentially expressed key ferroptosis genes were preliminarily verified in the osteoporosis model constructed. The gene discussed is CP; the disease is osteoporosis.