Using integrated bioinformatics analysis and machine learning methods, we identified two hub genes (Sytl4 and Kcnc2) and developed a nomogram to assess obesity risk in offspring exposure to maternal obesity. Here, SYTL4 is linked to obesity due to melanocortin 4 receptor deficiency.