Additionally, using machine learning algorithms and ROC curve analysis, a total of 8 key genes (PLEKHA1, CEACAM1, TNFAIP6, TCN2, GLDC, GNG7, LY96, VCAN) were identified Finally, immune infiltration analysis highlighted the significant roles of neutrophils, monocytes, plasma cells, and gammadelta T cells (γδ T cells) in the pathogenesis of both SLE and PD. Here, TNFAIP6 is linked to systemic lupus erythematosus.