Novel machine learning-driven comparative analysis of CSP, STFT, and CSP-STFT fusion for EEG data classification across multiple meditation and non-meditation sessions in BCI pipeline
Nalinda D. Liyanagedera, Corinne A. Bareham, Heather Kempton, Hans W. Guesgen
Brain Informatics February 8, 2025 DOI: 10.1186/s40708-025-00251-4 (opens in new tab) via OpenAlex
Summary
AI-generated from the abstractA machine learning pipeline that fuses two feature-extraction methods—Common Spatial Patterns (CSP) and Short Time Fourier Transform (STFT)—classified loving-kindness meditation (LKM) versus non-meditation states from EEG data more accurately than either method alone. Using multiple sessions of EEG from 12 participants, the combined pipeline achieved an overall accuracy of 72.9%, compared to 67.1% for CSP alone and 67.8% for STFT alone. The highest mean accuracy for a single participant was 75.5% for LKM-Self versus non-meditation with five sessions, and the top individual accuracy reached 88.9%. Classification improved as the number of training sessions increased from two to four.
Study at a glance
| Characteristics | Experimental study Peer reviewed |
|---|---|
| Sample size | 12 |
| Population | Participants providing EEG data during loving-kindness meditation and non-meditation |
| Topics | Meditation |
| Keywords | Pipeline software Electroencephalography Short-time fourier transform Artificial intelligence |
| Citations | 4 |
| Key finding | A pipeline combining CSP and STFT feature extraction achieved 72.9% overall classification accuracy for distinguishing meditation from non-meditation EEG, outperforming either method alone. |
Abstract
This study focuses on classifying multiple sessions of loving kindness meditation (LKM) and non-meditation electroencephalography (EEG) data. This novel study focuses on using multiple sessions of EEG data from a single individual to train a machine learning pipeline, and then using a new session data from the same individual for the classification. Here, two meditation techniques, LKM-Self and LKM-Others were compared with non-meditation EEG data for 12 participants. Among many tested, three BCI pipelines we built produced promising results, successfully detecting features in meditation/ non-meditation EEG data. While testing different feature extraction algorithms, a common neural network structure was used as the classification algorithm to compare the performance of the feature extraction algorithms. For two of those pipelines, Common Spatial Patterns (CSP) and Short Time Fourier Transform (STFT) were successfully used as feature extraction algorithms where both these algorithms are significantly new for meditation EEG. As a novel concept, the third BCI pipeline used a feature extraction algorithm that fused the features of CSP and STFT, achieving the highest classification accuracies among all tested pipelines. Analyses were conducted using EEG data of 3, 4 or 5 sessions, totaling 3960 tests on the entire dataset. At the end of the study, when considering all the tests, the overall classification accuracy using SCP alone was 67.1%, and it was 67.8% for STFT alone. The algorithm combining the features of CSP and STFT achieved an overall classification accuracy of 72.9% which is more than 5% higher than the other two pipelines. At the same time, the highest mean classification accuracy for the 12 participants was achieved using the pipeline with the combination of CSP STFT algorithm, reaching 75.5% for LKM-Self/ non-meditation for the case of 5 sessions of data. Additionally, the highest individual classification accuracy of 88.9% was obtained by the participant no. 14. Furthermore, the results showed that the classification accuracies for all three pipelines increased with the number of training sessions increased from 2 to 3 and then to 4. The study was successful in classifying a new session of EEG meditation/ non-meditation data after training machine learning algorithms using a different set of session data, and this achievement will be beneficial in the development of algorithms that support meditation.