The invention provides a multi-
modal sentiment analysis method based on knowledge
distillation and a dynamic
fusion mechanism. The multi-
modal sentiment analysis method comprises the following steps: pre-training a single-
modal teacher model; a single-mode teacher model is used for guiding the learning of a multi-mode student model, and through an interactive knowledge
distillation mechanism, the middle layer probability distribution of the teacher model is used as a target to learn the correlation between
modes and the cross-mode characteristics; interactive knowledge
distillation comprises three loss functions: firstly, calculating the difference of output distribution of output
layers of a teacher model and a student model, and defining the difference as cross-modal knowledge distillation loss; secondly, adding alignment loss based on a real
label, and constraining a prediction result of the student model to be close to a real emotion
label in a
cross entropy form; and finally, introducing
label smoothing loss to soften the real label. According to the method, the pre-trained single-mode teacher model with relatively good performance is stored and is used for guiding the learning of the multi-mode student model, meanwhile, the
loss function is introduced to optimize the multi-mode student model, so that the multi-mode student model is gradually aligned with the output distribution of the teacher model, and meanwhile, the
adaptive capacity of the multi-mode student model to the modal heterogeneity is enhanced. The single-mode teacher model greatly reduces the complexity of the model, reduces the calculation amount, and has better performance in the field of multi-mode
sentiment analysis.