In line with the previous studies, our study found that T lymphocytes were reduced; specifically, lower CD4 T cell counts were a key predictor of poor sleep quality in TB patients. Here, CD4 is linked to tuberculosis.