Feature Fusion Based on Mutual-Cross-Attention Mechanism for EEG Emotion Recognition
arXiv: 2406.14014
Springer: MICCAI 2024
MCA is a purely mathematical method applying Attention Mechanism from each directions of two features. In the field of EEG emotion analysis, we are the first to propose a pure mathematical fusion method, coupled with customized 3D-CNN, to accomplish the task of feature fusion.
To acquire the original datasets, please refer to the official website of DEAP. We used the preprocess and feature extraction method from open-source repository DEAP_MNE_preprocessing. And we finally got the extracted feature which can be obtained from Google Drive.
Installation
conda env create -f environment.yml
conda activate MCA-EEG
Train
Download the preprocessed datasets and put them under the implementation directory. Then, open the mca_experiment.ipynb
and modify the path to your data directory. Run the notebook to train the model.
Test
Specify the validation type in the mca_validations.ipynb
and run the notebook to test the model. You can get confusion matrix and accuracy.
# The default validation type is 'valence', change to validate others
# ['valence', 'arousal', 'dominance', 'liking']
validation_type = 'arousal'
The model is licensed under the Apache 2.0 license
Our paper has been accepted by MICCAI 2024. Remenber to cite the paper if you find this work useful.
@inproceedings{Zhao2024MCA,
title = {Feature Fusion Based on~Mutual-Cross-Attention Mechanism for~EEG Emotion Recognition},
booktitle = {Medical Image Computing and Computer Assisted Intervention -- MICCAI 2024},
author = {Zhao, Yimin and Gu, Jin},
editor = {Linguraru, Marius George and Dou, Qi and Feragen, Aasa and Giannarou, Stamatia and Glocker, Ben and Lekadir, Karim and Schnabel, Julia A.},
year = {2024},
pages = {276--285},
publisher = {Springer Nature Switzerland},
address = {Cham},
doi = {10.1007/978-3-031-72120-5_26},
isbn = {978-3-031-72120-5},
langid = {english}
}