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. The gene discussed is KCNC2; the disease is obesity due to melanocortin 4 receptor deficiency.