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. This evidence concerns the gene IL7R and insomnia measurement.