The invention relates to a medical
image processing technology, and discloses a pan
cancer species histopathologic full-slice classification method and device, which is a trained multi-
modal pan
cancer species classification model based on histopathologic full-slice image data and full-slice diagnosis report
pairing data of various tissue parts and various
cancer species, and has the advantages of wide application range and high efficiency. And full slices of various
pathological tissues can be classified. For classification tasks of different tissue parts, only text prompts (prompts) are used, i.e., a candidate cancer species
list is set, and zero-sample full-slice classification can be realized without training. And for rare cancer species, full-slice classification can be carried out. Besides, the model has high expansibility, in order to better adapt to downstream tasks, better classification performance can be achieved by combining slice embedding with a
linear classifier for use, freezing a slice embedding part and only finely adjusting the
linear classifier, and the requirement for the training data size is low.