In conclusion, the ResNet18 model was a potential approach for discriminating between LGI1 antibody encephalitis and GABAB receptor antibody encephalitis. This evidence concerns the gene LGI1 and viral encephalitis.