Adaptive fusion of EEG and NIRS with explainable AI reveals neurophysiological markers of cognitive flexibility

Cognitive flexibility enables individuals to adapt to changing rules, goals, or uncertainty. This study evaluates the discriminative power of electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS) signals from 42 healthy young adults during reversal learning tasks, using a comprehensive artificial intelligence (AI) framework. We compared classical machine learning models (e.g., Logistic Regression, Random Forest, XGBoost) and deep neural networks (MLP, GRU, BiLSTM), applied to EEG and fNIRS separately and in combination through multimodal fusion strategies. Interpretable machine learning played a significant role in our framework, with SHapley Additive exPlanations (SHAP) methodologies enabling transparent understanding of model predictions and feature importance across neurophysiological modalities. The interpretability fostered by SHAP enhances decision-making in cognitive assessments while cultivating deeper understanding of neurophysiological markers indicative of cognitive flexibility. Results show that EEG outperformed fNIRS in distinguishing "with objective (AO)" from "without objective (SO)" states. Logistic Regression achieved the best EEG performance (Accuracy = 0.810 ± 0.098, F1-score = 0.833 ± 0.089), while Random Forest was optimal for fNIRS (Accuracy = 0.647 ± 0.174, F1-score = 0.653 ± 0.228). Multimodal fusion strategies demonstrated varied effectiveness: early fusion with SVM achieved 74.17% ± 16.0% accuracy, intermediate fusion with XGBoost reached 75.3% ± 11.5%, while dynamic gating with instance-adaptive neural fusion provided dramatically superior performance at 95.00% ± 6.1% accuracy (95% Wilson CI: [0.8386, 0.9865])-representing a +14.00% improvement over best unimodal performance and +19.70% over static fusion methods. This exceptional accuracy was accompanied by 69.4% variance reduction compared to baseline approaches, demonstrating both superior classification capability and enhanced reliability. SHAP analysis revealed complementary modality roles: EEG demonstrated substantially higher gating importance (≈0.045) compared to fNIRS (≈0.028), with root mean square (RMS) features and spectral power emerging as most discriminative for EEG, while signal-to-noise ratio (SNR) features dominated fNIRS contributions. Train-test performance gap analysis (mean gap: 23.83%, range: 0.38%-40.91%) indicated generalization considerations requiring attention through expanded datasets and regularization strategies. These findings highlight the value of instance-adaptive multimodal AI integration for transparent identification of neurophysiological markers of cognitive flexibility. The dramatic performance advantage of dynamic gating over static fusion methods demonstrates that learned contextual modality weighting fundamentally surpasses fixed combination rules. However, the substantial train-test gaps underscore that these results establish methodological proof-of-concept in healthy young adults under controlled conditions, requiring extensive validation in heterogeneous populations, clinical cohorts, and naturalistic settings before clinical translation.

Authors

Institutions

Publication Details

Journal
Computers in Biology and Medicine
Published
2026-05-17
DOI
https://doi.org/10.1016/j.compbiomed.2026.111733
Primary Topic
Optical Imaging and Spectroscopy Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Adaptive fusion of EEG and NIRS with explainable AI reveals neurophysiological markers of cognitive flexibility

Badr Mouazen, Zainab El Bouyed, Giovanni De Marco
Computers in Biology and Medicine
Optical Imaging and Spectroscopy Techniques
article

Adaptive fusion of EEG and NIRS with explainable AI reveals neurophysiological markers of cognitive flexibility

Badr Mouazen, Zainab El Bouyed, Giovanni De Marco
article en

Abstract

Cognitive flexibility enables individuals to adapt to changing rules, goals, or uncertainty. This study evaluates the discriminative power of electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS) signals from 42 healthy young adults during reversal learning tasks, using a comprehensive artificial intelligence (AI) framework. We compared classical machine learning models (e.g., Logistic Regression, Random Forest, XGBoost) and deep neural networks (MLP, GRU, BiLSTM), applied to EEG and fNIRS separately and in combination through multimodal fusion strategies. Interpretable machine learning played a significant role in our framework, with SHapley Additive exPlanations (SHAP) methodologies enabling transparent understanding of model predictions and feature importance across neurophysiological modalities. The interpretability fostered by SHAP enhances decision-making in cognitive assessments while cultivating deeper understanding of neurophysiological markers indicative of cognitive flexibility. Results show that EEG outperformed fNIRS in distinguishing "with objective (AO)" from "without objective (SO)" states. Logistic Regression achieved the best EEG performance (Accuracy = 0.810 ± 0.098, F1-score = 0.833 ± 0.089), while Random Forest was optimal for fNIRS (Accuracy = 0.647 ± 0.174, F1-score = 0.653 ± 0.228). Multimodal fusion strategies demonstrated varied effectiveness: early fusion with SVM achieved 74.17% ± 16.0% accuracy, intermediate fusion with XGBoost reached 75.3% ± 11.5%, while dynamic gating with instance-adaptive neural fusion provided dramatically superior performance at 95.00% ± 6.1% accuracy (95% Wilson CI: [0.8386, 0.9865])-representing a +14.00% improvement over best unimodal performance and +19.70% over static fusion methods. This exceptional accuracy was accompanied by 69.4% variance reduction compared to baseline approaches, demonstrating both superior classification capability and enhanced reliability. SHAP analysis revealed complementary modality roles: EEG demonstrated substantially higher gating importance (≈0.045) compared to fNIRS (≈0.028), with root mean square (RMS) features and spectral power emerging as most discriminative for EEG, while signal-to-noise ratio (SNR) features dominated fNIRS contributions. Train-test performance gap analysis (mean gap: 23.83%, range: 0.38%-40.91%) indicated generalization considerations requiring attention through expanded datasets and regularization strategies. These findings highlight the value of instance-adaptive multimodal AI integration for transparent identification of neurophysiological markers of cognitive flexibility. The dramatic performance advantage of dynamic gating over static fusion methods demonstrates that learned contextual modality weighting fundamentally surpasses fixed combination rules. However, the substantial train-test gaps underscore that these results establish methodological proof-of-concept in healthy young adults under controlled conditions, requiring extensive validation in heterogeneous populations, clinical cohorts, and naturalistic settings before clinical translation.

Computers in Biology and MedicineVol. 211
Université Paris Nanterre (FR), Embedded Systems (United States) (US)
Reduced inequalities
Openalex Percentile: Top 6%
Optical Imaging and Spectroscopy Techniques
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.