Our study systematically discovered nine candidate hub genes (MAD2L2, IMP4, PRPF4, CHSY1, SLC20A1, SLC9A1, TIPRL, DPYD, and MAPKAPK2) and provided the diagnostic model for diagnosing AD with MS by various bioinformatics analysis and machine learning algorithms. The gene discussed is DPYD; the disease is Alzheimer disease.