Objective. Meditation and mindfulness are increasingly recognized as important in improving mental well-being. However, electroencephalography (EEG)-based neurofeedback systems supporting these practices typically fail to generalize to unseen subjects. This study investigates the application of both spatial and spectral alignment to EEG to improve the classification of meditation and rest states for new subjects without any model retraining.Approach. Two unsupervised domain adaptation techniques are employed to reduce differences between subjects in their EEG recordings. The first, Riemannian Space Data Alignment (RSDA), adjusts and brings together patterns of brain activity across electrodes (spatial domain). The second, Convolutional Monge Mapping Normalization (CMMN), aligns the distribution of brain rhythms across frequencies (spectral domain). Each method is evaluated separately, in combination, and in interaction withz-score normalization. Classification between meditation and rest is performed on the aligned time series using EEGNet, a compact convolutional neural network architecture, with leave-one-subject-out (LOSO) cross-validation to assess generalization across subjects. All experiments are based on a publicly available dataset of meditation EEG recordings from 53 subjects, including both novice and expert meditators.Main results. The combined RSDA+CMMN approach significantly improved LOSO classification accuracy (66.6%) compared to non-aligned (55.7%) andz-score normalized (59.6%) baselines, even though it did not improve overall harmonization. Spectral analysis identified consistent classification contributions from the Theta (4-8 Hz), Alpha (8-14 Hz), and Beta (14-30 Hz) bands, while spatial analysis highlighted Frontopolar and Temporal regions as critical for distinguishing the mental states of meditation and rest.Significance. This work is the first to explore both spatial and spectral alignment in subject-independent meditation decoding for improved cross-subject generalization. Aligning EEG time series without retraining provides a practical solution for real-time neurofeedback, thereby reducing subject variability and paving the way toward calibration-free neurotechnology that supports mental well-being.
Keywords: Monge map; Riemannian geometry; brain–computer interface; deep learning; domain adaptation; electroencephalography; meditation.
© 2025 IOP Publishing Ltd. All rights, including for text and data mining, AI training, and similar technologies, are reserved.