In general, this study studied the association between mitophagy-related genes and OP through a number of machine learning and biological analysis, and screened three hub genes, NELFB, SFSWAP and MAP3K3, which can be used as potential biomarkers for the diagnosis, mechanism research and treatment of osteoporosis. This evidence concerns the gene SFSWAP and osteoporosis.