Additionally, 70 potential therapeutic drugs for PCOS were predicted, with ibuprofen associated with DDIT3 and IFNG. RT-qPCR validation confirmed the expression trends of key genes IFNG, DDIT3, and APOA1 were consistent with the dataset, and the observed differences were statistically significant (P < 0.05). This evidence concerns the gene DDIT3 and polycystic ovary syndrome.