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, SOCS3 is linked to insomnia measurement.