The invention discloses a pneumonia
image identification and classification method based on an improved Swin Transform model. The method comprises the following steps: S100, carrying out preprocessing of three aspects of content
standardization,
image colorization and format unification on
original data; s200, performing data enhancement on the input
training set image; s300, selecting ResNet-34 as a teacher model, and carrying out pre-training on the processed
training set by using the teacher model to obtain a hard tag for guiding a student model; s400, carrying out training by using an improved Swin Transform student model, and improving the training efficiency of the student model by using a method including but not limited to MSG Token and shuffle; when the
loss function is calculated, a hard tag output by the teacher model is used for guiding the student model; and S500, importing a
chest radiograph image to be classified, and obtaining a
classification result by using the trained student model. According to the method, the problems of insufficient generalization ability, high calculation complexity, insufficient image local
feature extraction and the like when an existing
deep learning model is used for
processing large-scale data can be solved.