A nomogram revealed that age, cardiopulmonary bypass duration, CD4+ T cell count and CD4/CD8 ratio were independent predictors of delirium. Here, CD4 is linked to delirium.