State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, People's Republic of China.
School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, People's Republic of China.
J Neural Eng. 2024 Nov 20;21(6). doi: 10.1088/1741-2552/ad8e86.
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.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.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.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.
由于神经紊乱疾病的发病率不断上升,能够准确检测大脑活动的方法至关重要。在这种情况下,脑电图(EEG)和功能近红外光谱(fNIRS)的组合为理解正常和病理大脑功能提供了一种强大的方法,从而克服了每种模态的局限性,例如 EEG 易受伪影的影响和 fNIRS 的时间分辨率有限。然而,多主体数据中的类不平衡和类内变异性等挑战限制了它们的全部潜力。为了解决这个问题,我们提出了一种具有自定义损失函数的新型时间注意融合网络(TAFN)。TAFN 模型在其长短期记忆和时间卷积层中采用了注意机制,以准确捕捉 EEG-fNIRS 数据中的空间和时间依赖性。自定义损失函数结合了类权重和非对称损失项,以确保对认知和运动意图的精确分类,并解决类不平衡问题。严格的测试表明,TAFN 在跨主体方面具有出色的准确性,认知任务的准确率超过 99%,运动想象(MI)任务的准确率超过 97%。此外,还通过 MI 任务中的头皮地形图分析了该模型检测癫痫细微差异的能力。这项研究提出了一种技术,该技术在检测具有相关模式细微差异的高精度大脑活动方面优于传统方法。这使其成为癫痫和癫痫发作检测等应用的有前途的工具,在这些应用中,辨别细微的模式差异至关重要。