The combined analysis using LASSO and RF identified LH, LH/FSH ratio, TESTO, SHBG, and HCY as potential specific metabolic markers for PCOS, with AUC values of 0.841, 0.820, 0.619, 0.841, and 0.637, respectively. This evidence concerns the gene BRD2 and polycystic ovary syndrome.