Changes in YKL-40 levels were significantly correlated with improved mRS scores in patients with anti-NMDAR encephalitis. This evidence concerns the gene CHI3L1 and viral encephalitis.