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, KCNC2 is linked to obesity disorder.