The invention provides an electroencephalogram text cross-
modal brain intention decoding method based on generative text prompt. International public
motor imagery data sets BCI IV 2a and BCI IV 2b are adopted for validity
verification, and the method comprises the steps that firstly, a public
data set is preprocessed, and a
training set and a
test set are established; secondly, constructing an electroencephalogram text cross-
modal brain intention decoding model based on generative text prompt; inputting the preprocessed
training set into a model, and carrying out model training; and finally, inputting the
test set into the trained model, and carrying out model performance test. The method has the advantages that the
motor imagery task text description is generated by utilizing the generative
language model, and the model is guided to understand the correlation between the
motor imagery task context and the electroencephalogram text data; an electroencephalogram text multi-scale cross-
modal attention
feature fusion strategy is designed, and effective
complementation of multi-modal brain intention information is achieved. Effectiveness
verification is carried out on the method on BCI IV 2a and BCI IV 2b, the average recognition accuracy rate reaches 85.32% and 87.69% respectively, and both the average recognition accuracy rate and the average recognition accuracy rate are superior to those of an existing optimal method.