Fig. 3

Upset plot of interactions between the predictors. A Age (years), housing condition, monthly income (yuan), education (years), primary caregiver in prenatal, women were diagnosed with mental illness before pregnancy, first-degree relatives were diagnosed with mental illness, simplified coping style questionnaire (score), extraversion dimension of the Eysenck personality inventory (score), Pittsburgh sleep quality inventory (score), high-density lipoprotein-cholesterol, and serum calcium. B Thyroid-stimulating hormone and serum-free thyroxine. C Residence and planned pregnancy. D Serum-free triiodothyronine, triglyceride, low-density lipoprotein-cholesterol, and serum iron. E Primiparous women and perceived social support scale (score). F Mother-in-law’s care in prenatal (score). G Psychoticism dimension of the Eysenck personality inventory (score), melancholic temperament, and Enrich marital satisfaction scale (score). H Primary caregiver in postpartum. I Total cholesterol. J Beck anxiety inventory (score). K Mother-in-law’s care in postpartum (score), Beck depression inventory (score), and neuroticism dimension of the Eysenck personality inventory (score). SR-FS stepwise regression-forward selection, SR-BS stepwise regression-backward selection, SR-BE stepwise regression-bidirectional elimination, LASSO least absolute shrinkage and selection operator, RF-MDA random forest-mean decrease accuracy, RF-MDG random forest-mean decrease Gini, SVM-RFE support vector machine-recursive feature elimination