Machine learning identified SSTR5, CASP3, FABP2, and SYK as critical targets, contributing to a nomogram that demonstrated good predictive performance for endometriosis risk. Here, CASP3 is linked to endometriosis.