The immune function characteristics of the two groups of children with autoimmune encephalitis (AE) were compared using Spearman correlation to analyse the mRS score and immune function indicators (IgA, IgG, IgM, CD4, CD8, CD4/CD8), and binary logistic regression was used to analyse the independent risk factors of the prognoses in patients with autoimmune encephalitis (AE). Here, CD40LG is linked to autoimmune encephalitis.