Temporal attention fusion network with custom loss function for EEG–fNIRS classification

<i>Objective.</i>Methods that can detect brain activities accurately are crucial owing to the increasing prevalence of neurological disorders. In this context, a combination of electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS) offers a powerful approach to understanding normal and pathological brain functions, thereby overcoming the limitations of each modality, such as susceptibility to artifacts of EEG and limited temporal resolution of fNIRS. However, challenges such as class imbalance and inter-class variability within multisubject data hinder their full potential.<i>Approach.</i>To address this issue, we propose a novel temporal attention fusion network (TAFN) with a custom loss function. The TAFN model incorporates attention mechanisms to its long short-term memory and temporal convolutional layers to accurately capture spatial and temporal dependencies in the EEG-fNIRS data. The custom loss function combines class weights and asymmetric loss terms to ensure the precise classification of cognitive and motor intentions, along with addressing class imbalance issues.<i>Main results.</i>Rigorous testing demonstrated the exceptional cross-subject accuracy of the TAFN, exceeding 99% for cognitive tasks and 97% for motor imagery (MI) tasks. Additionally, the ability of the model to detect subtle differences in epilepsy was analyzed using scalp topography in MI tasks.<i>Significance.</i>This study presents a technique that outperforms traditional methods for detecting high-precision brain activity with subtle differences in the associated patterns. This makes it a promising tool for applications such as epilepsy and seizure detection, in which discerning subtle pattern differences is of paramount importance.

Authors

Institutions

Publication Details

Journal
Journal of Neural Engineering
Published
2024-11-04
DOI
https://doi.org/10.1088/1741-2552/ad8e86
Citations
17
Primary Topic
EEG and Brain-Computer Interfaces
Type
article
Field-Weighted Citation Impact
5.83

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Temporal attention fusion network with custom loss function for EEG–fNIRS classification

Jianqiang Su, Chayut Bunterngchit, Yihan Wang, Shi-Qi Liu et al.
17 citations
Journal of Neural Engineering
EEG and Brain-Computer Interfaces
5.83
article

Temporal attention fusion network with custom loss function for EEG–fNIRS classification

Jianqiang Su, Chayut Bunterngchit, Yihan Wang, Shi-Qi Liu, Jiaxing Wang, Zeng‐Guang Hou
article en
17 citations

Abstract

<i>Objective.</i>Methods that can detect brain activities accurately are crucial owing to the increasing prevalence of neurological disorders. In this context, a combination of electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS) offers a powerful approach to understanding normal and pathological brain functions, thereby overcoming the limitations of each modality, such as susceptibility to artifacts of EEG and limited temporal resolution of fNIRS. However, challenges such as class imbalance and inter-class variability within multisubject data hinder their full potential.<i>Approach.</i>To address this issue, we propose a novel temporal attention fusion network (TAFN) with a custom loss function. The TAFN model incorporates attention mechanisms to its long short-term memory and temporal convolutional layers to accurately capture spatial and temporal dependencies in the EEG-fNIRS data. The custom loss function combines class weights and asymmetric loss terms to ensure the precise classification of cognitive and motor intentions, along with addressing class imbalance issues.<i>Main results.</i>Rigorous testing demonstrated the exceptional cross-subject accuracy of the TAFN, exceeding 99% for cognitive tasks and 97% for motor imagery (MI) tasks. Additionally, the ability of the model to detect subtle differences in epilepsy was analyzed using scalp topography in MI tasks.<i>Significance.</i>This study presents a technique that outperforms traditional methods for detecting high-precision brain activity with subtle differences in the associated patterns. This makes it a promising tool for applications such as epilepsy and seizure detection, in which discerning subtle pattern differences is of paramount importance.

Journal of Neural EngineeringVol. 21(6)
Chinese Academy of Sciences (CN), Institute of Automation (CN), University of Chinese Academy of Sciences (CN)
National Natural Science Foundation of China, Beijing Municipal Natural Science Foundation, National Key Research and Development Program of China
Openalex Percentile: Top 3%
EEG and Brain-Computer Interfaces
5.83
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.