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). This evidence concerns the gene CD40LG and acrodermatitis enteropathica.