This repository contains the official implementation of the SACM framework for Chinese speech decoding, as described in our paper "SACM: SEEG-Audio Contrastive Matching for Chinese Speech Decoding".
The experiment uses a corpus of 48 Mandarin Chinese monosyllabic words. The word list can be found in A_Preprocessing/labels.py. The dataset is available upon request.
- Clone the repository:
git clone https://github.com/WangHongbinary/SACM.git
cd SACM- Install dependencies:
pip install -r requirements.txtProcess SEEG and audio data:
python A_Preprocessing/preprocess_SEEG.pyConfiguration parameters can be adjusted in A_Preprocessing/preprocess_config.py.
Extract audio features:
python C_Decoding/dataset/wav_SEEG.pyRun the following script to train and evaluate the speech detection model:
cd B_Detect/run
bash run_exp.shResults will be saved as CSV files in the log directory.
Execute the following to perform speech decoding:
cd C_Decoding/run
bash run_exp.shResults will be saved as CSV files in the log directory.
The repository includes additional code for:
- Speech decoding on VocalMind:
D_Decoding_VocalMind/ - Statistical analysis:
E_Stats_test/ - Figure generation:
F_Figure_code/
.
├── A_Preprocessing/ # Data preprocessing scripts
├── B_Detect/ # Speech detection implementation on HUST-MIND
├── C_Decoding/ # Speech decoding implementation on HUST-MIND
├── D_Decoding_VocalMind/ # Speech decoding implementation on VocalMind
├── E_Stats_test/ # Statistical analysis
└── F_Figure_code/ # Figure generation scripts
Cite our paper:
[Citation information will be added upon publication]