These results indicated that IL1R1, CHGB, and NRG1 had the potential diagnostic value in the diagnosis of AD and MDD patients. Here, IL1R1 is linked to major depressive disorder.