Variable selection was performed with the K-fold cross-validation method in the glmnet package, involving 9 influencing factors including albumin, acute physiology and chronic health evaluation II, CD4.T, SOFA, hospital-acquired pneumonia, ventilator-associated pneumonia, pro-IL6, IL-6, and DurationMV. The gene discussed is CD4; the disease is ventilator-associated pneumonia.