Temporal Out-of-Distribution Detection for Asynchronous Motor Imagery Brain-Computer Interfaces

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Chenhao, Li, Siyang, Tan, Luofei, Wu, Dongrui
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915973618991104
author Liu, Chenhao
Li, Siyang
Tan, Luofei
Wu, Dongrui
author_facet Liu, Chenhao
Li, Siyang
Tan, Luofei
Wu, Dongrui
contents Real online brain--computer interfaces operate on continuous electroencephalography (EEG) streams, where users are usually at rest and enter motor-imagery task states only intermittently. EEG windows may also arise from OOD MI activity outside the predefined control set. Conventional closed-set motor-imagery classifiers tend to assign such inputs to ID classes, which can cause erroneous control. To address this issue, this paper proposes a two-stage EEG detection framework for asynchronous motor-imagery brain--computer interfaces. A sliding-window mechanism continuously monitors EEG signals. The first stage uses an EEGNet-based rest/task gate to determine whether the current window should enter the control-decision process. The second stage performs ID MI classification and out-of-distribution detection only for task-state samples. To improve OOD rejection, we further propose TempDens, which combines classification-output energy, deep-feature density, and temporal-consistency scores to characterize distributional deviation from output, feature, and temporal-dynamic perspectives. Experimental results show that the proposed method effectively supports task-state detection and OOD MI recognition in continuous EEG streams, outperforming multiple conventional OOD baselines. This study reframes online motor-imagery control as a hierarchical decision problem involving continuous monitoring, state discrimination, ID classification, and OOD rejection.
format Preprint
id arxiv_https___arxiv_org_abs_2605_01014
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Temporal Out-of-Distribution Detection for Asynchronous Motor Imagery Brain-Computer Interfaces
Liu, Chenhao
Li, Siyang
Tan, Luofei
Wu, Dongrui
Human-Computer Interaction
Real online brain--computer interfaces operate on continuous electroencephalography (EEG) streams, where users are usually at rest and enter motor-imagery task states only intermittently. EEG windows may also arise from OOD MI activity outside the predefined control set. Conventional closed-set motor-imagery classifiers tend to assign such inputs to ID classes, which can cause erroneous control. To address this issue, this paper proposes a two-stage EEG detection framework for asynchronous motor-imagery brain--computer interfaces. A sliding-window mechanism continuously monitors EEG signals. The first stage uses an EEGNet-based rest/task gate to determine whether the current window should enter the control-decision process. The second stage performs ID MI classification and out-of-distribution detection only for task-state samples. To improve OOD rejection, we further propose TempDens, which combines classification-output energy, deep-feature density, and temporal-consistency scores to characterize distributional deviation from output, feature, and temporal-dynamic perspectives. Experimental results show that the proposed method effectively supports task-state detection and OOD MI recognition in continuous EEG streams, outperforming multiple conventional OOD baselines. This study reframes online motor-imagery control as a hierarchical decision problem involving continuous monitoring, state discrimination, ID classification, and OOD rejection.
title Temporal Out-of-Distribution Detection for Asynchronous Motor Imagery Brain-Computer Interfaces
topic Human-Computer Interaction
url https://arxiv.org/abs/2605.01014