Through machine learning, nine genes with common diagnostic effects were found in AD and MS, including MAD2L2, IMP4, PRPF4, CHSY1, SLC20A1, SLC9A1, TIPRL, DPYD, and MAPKAPK2. In the training set, the AUC of the hub gene on RP and RR curves was 1. This evidence concerns the gene DPYD and Alzheimer disease.