The invention discloses a mixed attention prototype network electroencephalogram classification method fusing feature weights. The method comprises the steps that electroencephalogram data are collected; the method comprises the following steps: preprocessing collected EEG
original data, extracting differential entropy features, and carrying out
standardization and sample sampling on the extracted features to generate a support set and a query set; inputting the preprocessed features into a prototype network, extracting an embedded representation of a source domain / target domain, and calculating a feature weight and a channel-
frequency band weight through a double attention layer; calculating prototype representation, and fusing the feature attention weight and the channel-
frequency band attention weight to obtain a final
weighted distance; a Grad-
CAM visualization mechanism is introduced, and the distribution consistency of
weight distribution is analyzed; and inputting the fused representation into a classifier, calculating classification loss according to a
prediction score, and outputting a cross-period EEG electroencephalogram
classification result, the cross-period EEG electroencephalogram classification method solves the problems of traditional
black box and weak
domain adaptation, and effectively improves the cross-period
EEG classification precision, robustness and
interpretability.