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. The gene discussed is RGCC; the disease is HIV-1 infection.