The results suggest that chronic insomnia has a negative correlation with erythrocytes, hemoglobin, hematocrit, albumin, globulin, creatinine, IgG, IgG/IgM ratio, lymphocyte count, CD3 T lymphocytes, CD8 T lymphocyte count, CD4 T lymphocyte count and NK lymphocyte count, while maintaining a positive correlation with CD4+ T-lymphocyte count/CD8+ T-lymphocyte count ratio, neutrophil-to-lymphocyte ratio, platelet-to-lymphocyte ratio, and clinical infection events. The gene discussed is CD4; the disease is infection.