Therefore, this study employed axial image slices to construct a 2D ResNet18 model to discriminate between LGI1 and GABAB receptor antibody encephalitis. This evidence concerns the gene LGI1 and viral encephalitis.