Decoding Mandarin Action Verbs from EEG Using a Dual-LSTM Network: Towards Practical Assistive Brain-Computer Interfaces.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 127 lines · 5.4 KB · no license
- %% Data format transformation
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\1_set\';
- cd(data_path)
- files = dir(fullfile(data_path, '*.cnt'));
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadcnt(char(fn(i)), 'dataformat', 'auto', 'memmapfile', '');
- EEG = eeg_checkset( EEG );
- setname = [fn{i}(1:end-4),'set'];
- EEG = pop_saveset( EEG, 'filename',setname,'filepath',save_path);
- end
- %% Movement artifacts were identified and removed by visual inspection
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\1_set\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\2_artifact\';
- cd(data_path)
- files = dir('*.set');
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadset('filename',fn{i},'filepath',data_path);
- EEG = eeg_checkset( EEG );
- EEG=pop_chanedit(EEG, 'lookup','D:\\0_toolboxes\\eeglab13_0_0b\\plugins\\dipfit2.2\\standard_BESA\\standard-10-5-cap385.elp');
- EEG = pop_select( EEG,'nochannel',{'HEO' 'VEO' 'CB1' 'CB2'});
- EEG = pop_epoch( EEG, { '1' '2' '4'}, [-1 1.5], 'newname', ' resampled epochs', 'epochinfo', 'yes');
- EEG = pop_saveset( EEG, 'filename',fn{i},'filepath',save_path);
- end
- % Browse each data manually pop_eegplot( EEG, 1, 1, 1);
- % visually inspected to remove epochs contaminated by eye movements,
- % electrode drifting, amplifier blocking, or EMG artifacts EEG=pop_rejepoch( EEG, [] ,0);
- %% Re-reference
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\2_artifact\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\3_ref\';
- cd(data_path)
- files = dir('*.set');
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadset('filename',fn{i},'filepath',data_path);
- EEG = eeg_checkset( EEG );
- EEG = pop_reref( EEG, [33 43] );
- EEG = pop_saveset( EEG, 'filename',fn{i},'filepath',save_path);
- end
- %% Filter
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\3_ref\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\4_filter\';
- cd(data_path)
- files = dir('*.set');
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadset('filename',fn{i},'filepath',data_path);
- EEG = eeg_checkset( EEG );
- EEG = pop_eegfiltnew(EEG, [], 0.1, 16500, true, [], 1);
- EEG = eeg_checkset( EEG );
- EEG = pop_eegfiltnew(EEG, [], 30, 220, 0, [], 1);
- EEG = eeg_checkset( EEG );
- EEG = pop_saveset( EEG, 'filename',fn{i},'filepath',save_path);
- end
- EEG = pop_interp(EEG, [33], 'spherical');
- EEG = eeg_checkset( EEG );
- EEG = pop_epoch( EEG, { '1' '2' '4' }, [-1 1.5], 'newname', 'CNT file epochs', 'epochinfo', 'yes');
- EEG = eeg_checkset( EEG );
- pop_eegplot( EEG, 1, 1, 1);
- EEG = eeg_checkset( EEG );
- EEG = pop_runica(EEG, 'extended',1,'interupt','on');
- EEG = eeg_checkset( EEG );
- pop_ADJUST_interface( );
- EEG = eeg_checkset( EEG );
- EEG = pop_subcomp( EEG, [1 2 4 32], 0);
- EEG = eeg_checkset( EEG );
- pop_eegplot( EEG, 1, 1, 1);
- EEG = eeg_checkset( EEG );
- EEG = pop_rejepoch( EEG, [32 36 38 39 41 42 45 46:50 65 66:68 76 78 79:82 84 85 90 94 95 111 115 117 119 120 128 130:2:132] ,0);
- EEG = pop_reref( EEG, [33 43] );
- EEG = eeg_checkset( EEG );
- EEG = pop_loadset('filename','sub1ICAout.set','filepath','C:\\Users\\X\\Desktop\\EEG results\\results\\MM\\sub1\\');
- EEG = eeg_checkset( EEG );
- EEG = pop_epoch( EEG, { '1' '2' '4' }, [-0.1 0.6], 'newname', 'CNT file epochs pruned with ICA epochs', 'epochinfo', 'yes');
- EEG = eeg_checkset( EEG );
- EEG = pop_rmbase( EEG, [-100 0]);
- EEG = eeg_checkset( EEG );
- EEG = pop_eegthresh(EEG,1,[1:60] ,-100,100,-0.1,0.598,0,0);
- pop_eegplot( EEG, 1, 1, 1);
- %% RunICA
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\4_filter\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\5_ICA\';
- cd(data_path)
- files = dir('*.set');
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadset('filename',fn{i},'filepath',data_path);
- EEG = eeg_checkset( EEG );
- EEG = pop_runica(EEG, 'extended',1,'interupt','on');
- EEG = pop_saveset( EEG, 'filename',fn{i},'filepath',save_path);
- end
- %% Identify and reject bad ingredients
- %Load each data manually pop_eegplot( EEG, 1, 1, 1);
- %the movement artifacts and eye-blink artifacts were identified and
- %rejected by visual inspection and Adjust pop_ADJUST_interface( );
- %data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\5_ICA\';
- %save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\6_adjust\';
- %% epoch extract;baseline correction;extreme value artifact removal
- clear;clc
- data_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\6_adjust\';
- save_path = 'E:\dataset\03_ERP_Rawdata\E04_ERP_Rawdata\preprocess\7_epoch\';
- cd(data_path)
- files = dir('*.set');
- fn = {files.name};
- for i = 1:length(fn)
- EEG = pop_loadset('filename',fn{i},'filepath',data_path);
- EEG = eeg_checkset( EEG );
- EEG = pop_epoch( EEG, { '1' '2' '4' }, [-0.1 0.6], 'newname', 'CNT file epochs pruned with ICA epochs', 'epochinfo', 'yes');
- EEG = eeg_checkset( EEG );
- EEG = pop_rmbase( EEG, [-100 0]);
- EEG = eeg_checkset( EEG );
- EEG = pop_eegthresh(EEG,1,[1:60] ,-100,100,-0.1,0.598,0,0);
- EEG = pop_saveset( EEG, 'filename',fn{i},'filepath',save_path);
- end
- %% Finalization
- % Load each data manually to ensure data is clean after preprocessingpop_eegplot( EEG, 1, 1, 1);
preprocessing_code_eegkab.m, no license · at the source
Overview
- International College of Engineering, Changsha University of Science and Technology, Changsha 410114, China; (B.L.); (J.L.)
- College of Mechanical and Vehicle Engineering, Changsha University of Science and Technology, Changsha 410114, China
Abstract
Electroencephalogram (EEG)-based brain–computer interfaces (BCIs) offer a promising pathway for restoring communication. Decoding tonal languages like Mandarin from EEG remains challenging due to homophones and complex temporal dynamics. This study investigates the decoding of six high-frequency Mandarin action verbs—Chi (eat), He (drink), Chuan (wear), Na (take), Kan (look), and Dai (put on)—from EEG signals. We designed a visual-cue-based overt speech production experiment and collected EEG data from 30 participants during visually guided verb reading aloud. A recurrent neural network framework incorporating dual Long Short-Term Memory (LSTM) layers was implemented to model the long-range temporal dependencies in EEG patterns. The proposed model was compared against a traditional Common Spatial Pattern combined with Support Vector Machine (CSP-SVM) baseline. Our LSTM-based model achieved an average classification accuracy of 69.93% ± 3.07% for the six-class task, significantly outperforming the CSP-SVM baseline (36.53% ± 3.17%). Accuracy exceeded 75% under specific training conditions, including more than 15 training repetitions and a training-data proportion of 38%. Furthermore, the model attained this performance level utilizing approximately 38% of the available trial data for training, demonstrating data efficiency. The results indicate that the LSTM architecture can effectively capture the neural signatures associated with Mandarin verb processing, providing a foundation for developing practical EEG-based assistive communication technologies. The inference latency of the trained model, quantified as the post-training per-trial testing time, was under 2 s, supporting near-real-time applications.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
OSF nmke5
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
3 files
- 06_Technical Validation/
preprocessing_code_eegka , MATLAB, 127 linesb.m - 06_Technical Validation/
valid_code_M.m , MATLAB, 1,605 lines - 06_Technical Validation/
valid_code_R.R , R, 253 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 3 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data Availability Statement
To ensure full reproducibility, the complete preprocessed EEG dataset and all analysis code have been deposited in a public repository [38]. The shared data comprises the EEG signals after standard preprocessing steps, which serves as the direct input to the decoding models. This level of data sharing aligns with best practices for enabling independent verification and extension of the analytical findings presented in this work.
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 11 MeSH terms, 3 funders, 48 references.
Cite
This paper
Liu, B., Chen, G., Yin, L., & Liu, J. (2026). Decoding Mandarin Action Verbs from EEG Using a Dual-LSTM Network: Towards Practical Assistive Brain-Computer Interfaces. Sensors (Basel, Switzerland), 26(9), 2749. https://
BibTeX
@article{liu2026decoding
author = {Liu, Binshuo and Chen, Gengbiao and Yin, Lairong and Liu, Jing},
title = {{Decoding Mandarin Action Verbs from EEG Using a Dual-LSTM Network: Towards Practical Assistive Brain-Computer Interfaces}},
journal = {Sensors (Basel, Switzerland)},
year = {2026},
month = apr,
volume = {26},
number = {9},
pages = {2749},
publisher = {Multidisciplinary Digital Publishing Institute (MDPI)},
issn = {1424-8220},
doi = {10.3390/
url = {https://
pmid = {42122470},
pmcid = {PMC13165879}
}
RIS
TY - JOUR
AU - Liu, Binshuo
AU - Chen, Gengbiao
AU - Yin, Lairong
AU - Liu, Jing
TI - Decoding Mandarin Action Verbs from EEG Using a Dual-LSTM Network: Towards Practical Assistive Brain-Computer Interfaces
T2 - Sensors (Basel, Switzerland)
J2 - Sensors (Basel)
PY - 2026
DA - 2026/
VL - 26
IS - 9
SP - 2749
SN - 1424-8220
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3390/
"type": "article-journal",
"title": "Decoding Mandarin Action Verbs from EEG Using a Dual-LSTM Network: Towards Practical Assistive Brain-Computer Interfaces",
"container-title": "Sensors (Basel, Switzerland)",
"author": [
{
"family": "Liu",
"given": "Binshuo"
},
{
"family": "Chen",
"given": "Gengbiao"
},
{
"family": "Yin",
"given": "Lairong"
},
{
"family": "Liu",
"given": "Jing"
}
],
"container-title-short":
"volume": "26",
"issue": "9",
"page": "2749",
"DOI": "10.3390/
"PMID": "42122470",
"PMCID": "PMC13165879",
"ISSN": "1424-8220",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
29
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1523/eneuro.0316-25.2026 [code]
- Neural Mechanisms of Self-Generated Action Sequences.Journal: eNeuroIn common: EEGLAB, FieldTrip, lmerTest, 4 other tools, EEG, cognitive
- [2] doi:10.1093/cercor/bhag077 [code]
- The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: EEGLAB, FieldTrip, lmerTest, 4 other tools, EEG
- [3] doi:10.1016/j.neuroimage.2026.122115 [code]
- Midfrontal theta power relates to response speeding following frustrative nonreward.Journal: NeuroImageIn common: EEGLAB, lmerTest, lme4, 4 other tools, EEG, cognitive
- [4] doi:10.1111/psyp.70265 [code]
- Neurocognitive Dynamics of Translating Information From a Spatial Map Into Action.Journal: PsychophysiologyIn common: EEGLAB, lmerTest, lme4, 4 other tools, EEG, cognitive
- [5] doi:10.1371/journal.pbio.3003979 [code]
- Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder.Journal: PLoS biologyIn common: EEGLAB, FieldTrip, lmerTest, 4 other tools, EEG
- [6] doi:10.7554/elife.107088 [code]
- Development of auditory and spontaneous movement responses to music over the first postnatal year.Journal: eLifeIn common: EEGLAB, FieldTrip, lme4, 4 other tools, EEG
- [7] doi:10.1093/braincomms/fcag130 [code]
- Sleep increases firing rate modulation during interictal epileptiform discharges in mesial temporal structures.Journal: Brain communicationsIn common: FieldTrip, lmerTest, lme4, 4 other tools, EEG
- [8] doi:10.1038/s41467-026-75799-8 [code]
- Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour.Journal: Nature communicationsIn common: EEGLAB, FieldTrip, lmerTest, 4 other tools
- [9] doi:10.1162/imag.a.1245 [code]
- Towards precision EEG connectomics: Evaluating the benefits of dense sampling.Journal: Imaging neuroscience (Cambridge, Mass.)In common: FieldTrip, lmerTest, lme4, 4 other tools, EEG
- [10] doi:10.64898/2026.05.08.26348885 [code]
- Insights from nine nights of self-applied, low-density sleep EEG during sleep restriction therapy: a proof-of-concept evaluationJournal: medRxiv (preprint)In common: FieldTrip, lmerTest, lme4, 4 other tools, EEG
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 3 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:5366d71aa55b687d…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
