Explaining Deep EEG Emotion Classifiers with Central Counterfactuals
Vitor Inserra, Amit Chalmeti, Pranav Mucharla, Yashasree Gadipalli, Neha Panda, Sai Nagamalla, Gabriel Matos, Rosie Dutt, Raghavendra Pradyumna Pothukuchi, Richard L. Marks
Abstract
Counterfactual explanations of electroencephalography (EEG) deep learning models may provide actionable insights for downstream applications. However, they can be incompatible with target-class distributions and may produce unrealistic EEG patterns. We propose a framework for generating counterfactual explanations under distributional and physiological constraints. A joint variational classifier-decoder combines affect prediction and EEG reconstruction with adversarial regularization to reduce subject-specific information. The counterfactual objective combines target-class prediction loss, class-conditional density regularization, proximity penalties in latent and reconstructed feature spaces, and physiological constraints on decoded EEG. Typicality optimization aims to generate counterfactual explanations central to the learned target-class distribution in latent space and express the corresponding changes in interpretable EEG frequency-band features. On DREAMER, we averaged ten window probabilities per trial. In leave-one-subject-out evaluation, EEG reconstruction achieved and trial-level recognition of self-reported emotion was above chance. For eligible, correctly classified trials, we decoded counterfactuals and re-encoded the resulting EEG windows. Full counterfactual optimization (CFO) combined typicality regularization with additional refinement and achieved decoded target-class validity of 67.3% for arousal and 88.8% for valence, versus 24.4% and 48.6% for base CFO. At the 10th-percentile Gaussian discrepancy cutoff for source target-class recordings, full CFO achieved acceptance rates of 40.1% for arousal and 58.4% for valence. Our counterfactual explanations revealed that both models were sensitive to EEG window edges. Edits confined to the first and last 250 ms of each six-second window preserved all 202 tested prediction flips across valence and arousal.
Create a lesson
Metadata
- Comments
- 30 pages, 7 figures
Related papers
Learning in the Right Directions : Algorithmically Adjusted Rademacher Complexity in Deep Neural Networks
Shared title terminologycs.LGAbhik Rana, Aritra Das, Mihir More et al.
TESSAL: Chain Tensor-Sketched Deep Analytic Continual Learning
Shared title terminologycs.LGOwen Whitaker, Meilin Chen, Arjun Subramanian et al.
EngressionTS: Turning Deep Time Series Models into Probabilistic Forecasters
Shared title terminologycs.LGAnusha Tomar, Rajdeep Pathak, Tanujit Chakraborty
Counterfactual Debugging the World Model Transfer Gap
Shared title terminologycs.LGMingxuan Li, Kai-Zhan Lee, Michael Dennis et al.