The input methods that had significant differences were used for binary logistic regression analysis, and the specific results of the logistic regression are presented in Table 6, based on the multi-factor binary logistic regression model: logit(p) = −3.778 − 0.823 × AMH + 0.176 × BMI + 2.660 × diabetes −1.527 × regular menstruation −1.117 × dysmenorrhea. The gene discussed is AMH; the disease is diabetes mellitus.