These findings suggest that BCL2, SOCS3, and IL7R may play crucial roles in the molecular mechanisms underlying insomnia, and further investigation into these hub genes could provide insights for targeted therapeutic strategies. Here, IL7R is linked to insomnia.