As the best model for diagnosing HIV-1±, RF was used to select four critical immune cell-related genes, namely, ARRB1, DPEP2, LTBP3, and RGCC, and a nomogram model was created to predict the occurrence of HIV-1 infection based on four key immune cell-related genes. Here, DPEP2 is linked to HIV-1 infection.