We screened five hub genes (BIRC5, DNAJC4, DTL, LILRB2, and NDC80) using three machine learning algorithms, and the other four genes had good diagnostic properties in both the training and validation sets, with the exception of BIRC5, which had an AUC of only 0.542 in the validation set GSE132714 of BPH. The gene discussed is DTL; the disease is benign prostatic hyperplasia.