Our study systematically identified two candidate hub genes (Sytl4 and Kcnc2) and developed a nomogram for diagnosing the obesity‐associated risks in offspring through various bioinformatics analyses and machine learning algorithms. The gene discussed is KCNC2; the disease is Obesity.