The assessment of gastrointestinal health through tongue image analysis is a significant aspect of traditional Chinese medicine. Utilizing computer vision technology for the analysis of tongue image features and disease diagnosis has emerged as a focal point in medical image processing research. However, the current integration of deep learning with traditional Chinese medicine remains relatively limited, particularly in the comprehensive exploration of tongue image features based on traditional Chinese medical diagnostic theories. In this study, a variety of deep learning models were employed to perform classification tasks on the presence of common tongue features such as thick coating, cracks, tooth marks, and the existence of gastric diseases. The deep learning models utilized include CNN, ResNet, AlexNet, and DenseNet. Subsequently, DenseNet was used as the reference model to evaluate the performance of pre-training with the three tongue image features for gastric disease classification. The training and validation were conducted on tongue image datasets collected and annotated at the