In conclusion, our study verified that apoptosis is closely related to the development of insomnia, and BCL2, SOCS3, and IL7R have the potential to be therapeutic targets for insomnia. This evidence concerns the gene IL7R and insomnia.