Among them, S100A3 showed consistent discriminatory performance across the training cohort, the independent sleep deprivation cohort, and the insomnia cohort, whereas VEGFB exhibited notable diagnostic potential, particularly in insomnia. The gene discussed is S100A3; the disease is insomnia.