Skip to content

Original Research

Frontiers in Signal Processing ·

Volume 5 - 2026 | https://doi.org/10.3389/frsip.2025.1715540

Singular spectrum analysis of near-infrared spectroscopy signal classification for mental arithmetic and rest state

  • Kanwardeep Singh Gahlot1
  • Anukul Pandey1
  • Sachin Taran1*corresponding author
  • Rahul Thakur1
  1. Department of Electronics and Communication Engineering, Delhi Technological University, Delhi, India
Article metrics0 viewsView details

Abstract

The brain–computer interface (BCI) is the connection between the human brain and computers, creating a bridge that mimics the human brain. The premise behind near-infrared spectroscopy (NIRS) is that increased oxygen consumption in the brain leads to increased blood flow due to nerve connections. NIRS is a non-invasive procedure; changes in oxyhemoglobin (Oxy-Hb) and deoxyhemoglobin (Deoxy-Hb) parameters can be easily utilized to detect brain hemodynamics. This study is based on the Oxy-Hb parameter to classify mental arithmetic and rest states of the brain using singular spectrum analysis (SSA). SSA results in a better-denoised signal and decomposition into different principal components for analysis of these states. Oxy- and Deoxy-Hb patterns are temporary and unstable, so features such as power bandwidth, entropy, and complexity were extracted for classification. The reported accuracy in existing methods is 79.4% for the antagonistic single-trial classification and 86.9% for graph NIRS methods. The present study’s mean accuracy was 98.4% based on a set of selected features using filtering detrending (FD)-SSA, thus reducing the cost of poor sorting. Finally, classification models were evaluated based on scores such as Matthew’s correlation coefficient, precision, F1-score, and recall, resulting in 0.889, 0.968, 0.966, and 0.963, respectively.

Keywords

1 Introduction

The brain–computer interface (BCI) allows human and computers to communicate directly. In contrast to traditional equipment (such as stylus, microphones, and keyboards), the BCI is a recent development (Stegman et al., 2020). Near-infrared spectroscopy (NIRS) is a non-invasive technique with advantages over electroencephalograms (EEGs) since it does not have any side effects and also has no need for the subject to be immobilized (Ferreri et al., 2014). Instead of passive BCI, active BCI users execute a mental task without using any external stimuli (Sereshkeh et al., 2018). Some of the most common examples of these mental tasks are motor imagery (Wierzgała et al., 2018), mental arithmetic (Choi et al., 2018), and word generation-P300 speller (Oralhan, 2019).

Several researchers have examined EEG signals for brain-state detection using mental arithmetic tasks versus during rest state. EEG signals were optimized based on Bayesian and K-nearest neighbor (KNN) using a 40-feature set (Sharma et al., 2021), capturing different cognitive spatiotemporal processes using functional magnetic resonance imaging (fMRI) and EEG (Bréchet et al., 2019). The technique proposed in this study is based on the NIRS signal; the idea behind NIRS is similar to that of fMRI, in that it is predicated upon the idea that increased oxygen consumption from brain activity causes an increase in cerebral blood flow because of neurovascular coupling. As a result, local oxyhemoglobin (HbO2) changes, which NIRS may non-invasively detect. Most biological tissue, including skin and bone, is transparent to near-infrared (NIR) light; however, oxyhemoglobin (Oxy-Hb) and deoxyhemoglobin (Deoxy-Hb) are superior absorbers of NIR in the 700–900 nm range. This is the basic premise of fNIRS (Leeb et al., 2015). NIRS is a new approach for measuring the dynamics of cerebral blood volume that is intimately linked to brain neuronal activity (Shin et al., 2016; Sehgal et al., 2014).

Since time-series classification of Oxy-Hb and Deoxy-Hb parameters are transient and non-stationary (Liu et al., 2019), this study proposes singular spectrum analysis (SSA) for NIRS analysis. These non-stationary NIRS signals are analyzed by extracting the principal components of Oxy-Hb as a function of time. SSA has been proposed for multi-channel EEG processing and was found to be a good method for removing muscular artifacts (Petrantonakis and Kompatsiaris, 2018). Based on the Oxy-Hb pattern of the signal, in this study the signal is classified into two states of the brain: mental arithmetic and rest. Previous results observed, while taking into consideration parameters (Oxy-Hb and Deoxy-Hb) as features, accuracy of 86.96% (Petrantonakis and Kompatsiaris, 2018). A graph NIRS (GNIRS) technique has also been proposed based on the spatial information of NIRS, with an accuracy of 92.52% (Petrantonakis and Kompatsiaris, 2018). Research in this field is yet to investigate the use of SSA for NIRS analysis. Petrantonakis and Kompatsiaris (2018) made the first comparative study of currently available NIRS technologies.

In biomedical signal analysis, data complexity and privacy are becoming more significant factors, especially for applications based on NIRS and the BCI that involve sensitive neural data. Effective signal decomposition and feature extraction strategies are motivated by the large dimensionality, non-stationarity, and subject-specific variability of brain signals, which have been shown to have a considerable impact on classification performance and computing complexity. Popescu et al. (2021) explored privacy-preserving techniques (homomorphic encryption) for machine-learning-based EEG signal categorization. They discussed data privacy and computational difficulty in sensitive biological signal processing, which is comparable to issues with NIRS/BCI systems. Riess et al. (2024) provided insights related to privacy and complexity in biomedical signal classification by demonstrating how to combine (differential) privacy with learning from complex-valued biomedical signals utilizing federated techniques. Torkzadehmahani et al. (2022) outlined important strategies and trade-offs in data privacy and learning complexity in an organized summary of privacy-preserving AI techniques in biomedical applications (such as secure computation and federated learning).

In biomedical signal analysis, feature extraction is a critical step, as raw physiological signals often contain high-dimensional, noisy, and overlapping information that can obscure relevant patterns. Effective feature extraction transforms these complex signals into compact and discriminative representations, facilitating accurate classification and enhancing the interpretability of machine learning models. In related domains, advanced feature extraction techniques have demonstrated significant performance improvements. Cheltha et al. (2024) applied edge detection and backbone-modified Mask R-CNN to extract structural and spatial features from human motion data, enabling robust detection under occlusions. Khan et al. (2022) employed a fine-tuned AlexNet to extract hierarchical convolutional features from video frames which improved anomaly detection performance in crowded scenes. Similarly, Khan et al. (2023a) combined multiple acoustic features, including Mel-frequency cepstral coefficients (MFCCs), delta MFCCs, and spectral contrast, to enhance text-independent speaker identification using a Transformer model. These studies collectively highlight that carefully designed feature extraction, whether through handcrafted preprocessing or deep-learning-based representation learning, is essential for improving model robustness and accuracy, and the same principles can be effectively applied to biomedical signal processing tasks.

In our study, the high-dimensional nature of the input features presents a challenge in terms of data complexity, as redundant or noisy features can reduce model accuracy. Recent attention-based mechanisms have been shown to mitigate such challenges by selectively focusing on the most informative components of complex data. For example, Aung and Khan (2025) demonstrated that an enhanced U-Net hybrid model integrating multiple attention mechanisms significantly improves feature representation and segmentation precision for small and irregular pulmonary nodules in complex imaging backgrounds. Inspired by this, our feature selection process emphasizes the most discriminative features, ensuring effective learning even in complex signal environments. In addition to complexity, data privacy is a critical concern, particularly when handling sensitive physiological or personal information. Decentralized and privacy-preserving learning approaches, such as those illustrated by Khan et al. (2023b) in a smartphone recommendation system, allow models to learn without direct access to raw user data, protecting privacy while maintaining predictive performance. In our framework, similar strategies such as anonymization, federated learning, or local processing of sensitive signals could be adopted in future implementations to ensure that privacy is preserved without affecting model efficacy. By explicitly addressing both feature complexity and data privacy, our approach aligns with contemporary best practice in machine learning, ensuring that robust performance is achieved while adhering to ethical standards for sensitive data usage. In this study, we consider Oxy-Hb as a parameter and apply SSA and extract several features. Since NIRS is analogous to time series, the features were motivated based on the characteristic of the raw signal we passed from different preprocessing techniques, filtering at 0.1 Hz to remove artifacts and detrending operation to evaluate the best fit of line. Decomposition has advantages over other methods as it yields modal information in time-domain signals. SSA was used for decomposition to decompose signals into five different principal components, each of which was then analyzed. Each signal was analyzed on the basis of several features which were ranked using the chi-squared test, the highest-ranked features being used to train the model. Accuracy, precision, F1-score, and recall value have impactful meanings, but they fail to consider all four parameters of the confusion matrix at once. Therefore, we present our model efficiency based on Matthew’s correlation coefficient. The following key information in this study is listed as follows.

  • We propose a filtering-detrending singular spectrum analysis (FD-SSA) framework tailored for near-infrared spectroscopy (NIRS) signals, enabling robust separation of principal components and improved characterization of brain states during mental arithmetic and rest.
  • We extracted and selected discriminative features, such as power bandwidth, entropy, and complexity, from Oxy-Hb signals. A mean classification accuracy of 98.4% was attained, surpassing state-of-the-art techniques (79.4% and 86.9%).
  • The proposed approach was validated using a variety of statistical measures (Matthews correlation coefficient: 0.889; precision: 0.968; F1-score: 0.966; recall: 0.963) which demonstrated both accuracy and reliability. This underscored the method’s potential for real-world brain–computer interface applications.

Beyond the technical improvements, the clinical applicability and practical significance of achieving high classification accuracy for mental arithmetic are substantial. The reliable distinction of cognitive states enables more responsive BCI systems, supporting applications such as cognitive workload monitoring, neurofeedback therapy, and assistive communication for individuals with motor impairments. In real-time deployment, our method could allow the continuous monitoring of and rapid adaptation to a user’s cognitive state, reducing false activations and improving system usability. Compared to existing approaches, this enhanced performance opens possibilities for BCIs to operate effectively in naturalistic environments, providing more precise control, reduced mental fatigue, and a more intuitive user experience, thus bridging the gap between laboratory research and practical clinical or everyday applications. The following sections comprise the remainder of this paper: Section 2 presents the methodology used in this study’s experimentation. The outcomes of the experimentation are discussed in Section 3. The conclusion is presented in Section 4.

2 Methodology

In this paper, we propose filtering detrending singular spectrum analysis (FD-SSA). This section describes our proposed approach for the detection of mental arithmetic and rest states. Figure 1 shows the overall framework of mental arithmetic and the rest states.

Flow diagram classification of mental arithmetic and rest states using singular spectrum analysis.
Figure 1. Flow diagram classification of mental arithmetic and rest states using singular spectrum analysis.

2.1 NIRS dataset

In this study, we consider a publicly available functional near-infrared spectroscopy (fNIRS) dataset consisting of eight healthy adult participants (three women, five men; mean age 26 years, standard deviation 2.8 years). Brain hemodynamic activity was recorded using a continuous-wave ETG-4000 system from Hitachi Medical Co., Japan, which provides multi-channel measurements of oxyhemoglobin (Oxy-Hb), deoxyhemoglobin (Deoxy-Hb), and total hemoglobin (Total-Hb) expressed in millimeters. The participants were instructed to perform a cue-guided mental arithmetic (MA) task which involved sequentially subtracting a single-digit number from a visually presented two-digit number as quickly and accurately as possible. Each task block lasted 12 s, followed by a 28-s rest period to allow hemodynamic responses to return to baseline. Each participant completed 18 to 24 trials of the task. The dataset is organized into individual MATLAB files for each participant, including recorded hemoglobin signals and trial information, making it suitable for studies on cognitive workload, brain–computer interface (BCI) design, and signal classification. The hemoglobin signals are stored in time-series matrices, where rows correspond to time samples and columns correspond to individual channels. Each trial is labeled to indicate the experimental condition—mental arithmetic (task) or rest (baseline). Additional variables include the sampling frequency (10 Hz), the number of trials, and trial onset/offset indices that segment the continuous recordings into discrete task and rest blocks. This dataset allows the straightforward extraction of trial-specific features, application of signal preprocessing (e.g., filtering and baseline correction), and trial-wise classification for cognitive task detection or BCI research (Bauernfeind et al., 2014).

2.2 Preprocessing of NIRS data

The NIRS signals were preprocessed using a four-stage pipeline designed to optimize the extraction of task-related hemodynamic responses. A second-order Butterworth high-pass filter with a cutoff frequency of 0.1 Hz was selected because it provides a smooth frequency response with minimal phase distortion, effectively removing slow baseline drifts and low-frequency physiological artifacts, such as Mayer waves, while preserving cognitive-related signal components. Linear detrending was applied to further remove any residual slow trends. To reduce high-frequency noise while maintaining the temporal fidelity of the hemodynamic response, a moving average filter with a window size of five samples was chosen. This size was empirically determined through pilot testing and aligns with standard practice in NIRS studies, balancing noise suppression with the preservation of rapid task-related fluctuations. These parameter choices were carefully optimized to ensure that the preprocessing pipeline enhanced signal quality without distorting the discriminative features critical for accurate cognitive state classification. The signal was preprocessed using the following four stages. where Z I is the input signal, M a x ( Z I ) is the maximum value of input signal, and M i n ( Z I ) is the minimum value of input signal. where μ X ( t ) is trend and σ X is the autocorrelation error.

  • High pass filtering. Signals were filtered using a high pass filter at a cutoff frequency of 0.1 Hz to remove baseline artifacts. When employing proper cutting frequencies, high throughput filters are effective in eliminating NIRS contamination and removing artifacts from compound NIRS.
  • Normalization reorganized data such that there was no redundancy of data, and it eliminated modification anomalies in a dataset from the data. This helped improve classification performance and reduce machine learning algorithm runtime. The proportion of features decreased using feature selection and feature weighting procedures are used to assess the influence of data normalization on feature relevance (Singh and Singh, 2020), as define in Equation 1,

Z N M = Z I − M i n Z I / M a x Z I − M i n Z I , (1)

  • Detrending removes the trend’s effects from a data collection, revealing just the variations in values from the trend; this allows cyclical and other patterns to be discovered. Regression analysis and other statistical approaches can be used to detrend data. When addressing generally referred “baseline shifts,” the impact of detrending on ERPs and subsequent decoding becomes obvious, which are then often corrected by detrending analysis (van Driel et al., 2021), as define in Equation 2,

Z D T = μ X t + σ X t , (2)

  • Data smoothing is a technique for removing noise from a dataset so that essential patterns may be perceived. It is used to forecast patterns, such as those in stock prices. The random approach and the use of moving averages are two alternative data-smoothing models. In several datasets, data smoothing produced the same or higher effort estimation accuracy than the non-smoothing scenario, whereas the standard outlier elimination method produced lower accuracy (Singh and Singh, 2020), as define in Equation 3,

Z S M = 1 n ∑ i = 0 n − 1 Z I N − i . (3)

Figure 2 shows preprocessed data for all the four stages as the signal after filtering in Stage 1 is normalized because of a change in amplitude, followed by detrending to remove certain trends from the signal. Finally, smoothing is performed using moving averages to remove noise.

Representation of preprocessed data: high-pass filtered signal; normalized signal; detrend signal; smoothened signal.
Figure 2. Representation of preprocessed data: high-pass filtered signal; normalized signal; detrend signal; smoothened signal.

2.3 Determining principal components using singular spectrum analysis

The process of SSA involves eliminating noise from a signal and breaking it down into multiple principal components, each of which has a different degree of significance based on the embedding dimension. If the series class is not too large, SSA is a model-free, exploratory technique that may be used in batch or real-time mode. It is also well-defined, allowing the rule for choosing the right parameters to be fixed. A time-series model must be defined to perform statistical testing (van Driel et al., 2021). Assuming Z(t) is a time-series signal, like in Equation 4,SSA is divided into two stages: decomposition and reconstruction. During the decomposition phase, singular value decomposition (SVD) is performed after a time-delay embedding technique. A one-dimensional time series is mapped into multi-dimensional space to form the Hankel/trajectory matrix (Widom, 1966) during the time-delay embedding stage (Equation 5), where M denotes the embedding dimension, which should be between 2 < M N 2 < K, and K denotes the indices of time-delay vectors, which should be between N − M + 1.

Z t : t = 1,2,3 … … … … . N . (4)

H a n k e l M a t r i x H M = z 11 z 12 z 13 z 21 z 13 z 23 z 13 z 32 z 33 . (5)

The trajectory matrix is decomposed into a sequence of rank-one basic matrices using SVD (Golyandina et al., 2018). The trajectory matrices in Equation 6 are not Hankel matrices after the grouping stage and must be rebuilt. Diagonal averaging is necessary to fit this matrix into the Hankel structure. To do this, we substitute the antidiagonal components of the trajectory matrix with their average. Finally, using the reverse embedding approach, we may reconstruct the original single-channel signal with a duration of N samples. We must apply the diagonal averaging and reconstruction steps to each sub trajectory matrix in order to decompose a single-channel signal into L decomposed signals, a process referred to as “elementary grouping”.where U is the left singular vector, D is the singular value, and V is the right singular vector. In this study, the signal was decomposed into five principal components that expressed zero correlation between them for all the subjects. The decomposed signals and their correlation plot are shown in Figures 3, 4, respectively. SSA was applied to the preprocessed NIRS signals for denoising and trend extraction, the embedding dimension (window length) M was set to 50, corresponding to approximately one-tenth of the total number of samples in each analyzed segment, following standard practice to balance resolution and noise suppression in non-stationary biosignals. The number of components L retained for reconstruction was selected based on the eigenvalue spectrum and cumulative explained variance, with the first five components capturing over 90% of the signal energy. These parameters were empirically optimized through a grid search on a subset of the data to maximize signal-to-noise ratio while preserving the hemodynamic dynamics relevant to mental arithmetic tasks. Sensitivity analysis confirmed that small variations in M (±10 samples) and L (±1 component) did not significantly affect classification performance, indicating that the selected parameters provide a robust decomposition for the NIRS signals used in this study.

A = U D V T , (6)

First five principal components of singular spectrum analysis.
Figure 3. First five principal components of singular spectrum analysis.
Correlation plot of five principal components.
Figure 4. Correlation plot of five principal components.

2.4 Feature analysis

Numerous features, including those from the time and spectral domains, comprising power bandwidth, approximate entropy, peak-to-peak, complexity, and mobility were retrieved and assessed using the chi-squared test, which determines whether two variables are independent of one another. This is useful for determining whether two distinct variables are correlated (Korenaga et al., 2019). Stronger independence is indicated by a larger chi-squared value, while greater variance between the two variables indicates less correlation.

The 14 features extracted were sorted according to the chi-squared test results. Due to the binary classification nature of the problem, goodness-of-fit was assessed by comparing categories from a random sample. Statistical features such as features 2, 3, 5, 10, and 11 were chosen for training. Table 2 shows the results of the chi-squared test acquired by all the features for classification between the binary of mental arithmetic and rest states. Different order moments, variance, and signal range were statistical variables that outperformed power bandwidth, Lyapunov exponent, and kurtosis. The chi-squared test is evaluated in Equation 7.where Z O i is the observed value and E i is the expected value.

x 1 2 = ∑ Z O i − E i 2 / E i , (7)

The scores of the chi-squared test are discussed next in Section 3.

3 Results and discussion

We used the proposed FD-SSA technique on an NIRS dataset. NIRS is a method for measuring the antagonistic hemodynamic response of oxygen levels in the brain with the parameters Oxy-Hb and Deoxy-Hb. All living entities significantly scattered near-infrared light by means of light emitting diodes and photodetectors placed 3 cm apart. The dataset contained eight individuals (three men and five women; average age 26 years, standard variation 2.8 years). An ETG-4000 continuous-wave device was used to monitor brain oxygenation. The multi-channel system recorded changes in Oxy-Hb, Deoxy-Hb, and Total-Hb in millimeters. The participants were prompted to do mental computations guided by cues. They needed to swiftly subtract a one-digit number from a two-digit number for 12 s (e.g., 97 − 4 = 93; 93 − 4 = 89), then rest 28 s. Participants 1–3 finished 18 MA trials, and participants 4–8 performed 24 trials (Pfurtscheller et al., 2010).

Table 1 reports statistics of the preprocessed signal by four stages. First, a high-pass filtered signal passing through a cutoff frequency of 0.1 Hz removed motion artifacts; it was used since larger drifts were present in the input signal. In the second stage, the signal was normalized because the data recording trials were distinguished for subjects; the number of trials was 18 for participants 1–3 and 24 for participants 4–8. The purpose of data normalization was to minimize and remove data duplication. The standard deviation changed from 0.1229 to 5.7260 after normalization. Normalization was followed by detrending to remove the effects of the trend from a data collection. Revealing just the deviations in values from the trend, it enabled the detection of cyclical and other patterns. The signal after detrending changed mean value from 3.0880 to −1.4480, removing the trends. Finally, smoothing was used as a data preprocessing technique to remove noise from a dataset. The overall range was changed from 5.7310 from 4.0660 and the standard deviation from 0.1229 to 0.8625 after preprocessing.

TABLE 1. Statistical parameters of pre-processed data.

StatisticsHPFNormalizedDetrendedSmoothened
Min−0.3718−3.0240−3.0270−1.8470
Max0.33212.70202.70402.2200
Mean−5.16203.0880−1.4480−0.0011
Median−0.0087−0.0708−0.0715−0.0814
Mode−0.3718−3.0240−3.0720−1.8470
Standard deviation0.12295.72601.00000.8625
Range0.70405.34415.73104.0660

As mentioned for region of interest (ROI)-1 in [14], the channel individual principal components accuracy is presented in Table 2 for all eight subjects, having an accuracy of five principal components along with a mean accuracy 91.91% and standard deviation of 2.42.

TABLE 2. Accuracy of all subjects in ROI-1 along with five principal components (PC1–PC5).

SubjectAccuracy (%)Position channelBAAnatPC1 (%)PC2 (%)PC3 (%)PC4 (%)PC5 (%)
Subject 197.346a10SFG98.397.796.297.097.6
Subject 292.447a10MeFG97.694.289.791.788.9
Subject 390.248a10MFG98.795.382.988.785.4
Subject 492.148a10MFG98.991.392.891.186.8
Subject 589.947a10MFG97.591.589.288.183.4
Subject 691.946a10SFG98.798.391.189.082.6
Subject 792.447a10MeFG99.693.987.386.994.7
Subject 888.747a10MeFG98.193.683.583.585.2

A receiver operating characteristics (ROC) curve displays the true positive rate (TPR, or sensitivity) against the false-positive rate for various categorization score thresholds (FPR, or 1 − specificity). Each point on a ROC curve corresponds to a pair of TPR and FPR values for a specific threshold value. By altering the threshold value, alternative pairings of TPR and FPR values may be discovered, and the pairs can then be used to construct an ROC curve. TPR rises fast with little change in FPR in the resulting ROC curve (Figure 5), and the area under the ROC curve (AUC) is also much greater (0.96). These ROC characteristics demonstrate that the KNN classifier could properly distinguish between mental arithmetic and rest states.

Receiver operating characteristics of Subject 5, Principal Component 1.
Figure 5. Receiver operating characteristics of Subject 5, Principal Component 1.

In this study, fine, medium, and coarse tree, and fine, medium, coarse, cosine, cubic, and weighted K-nearest neighbor (KNN) algorithms were used to classify NIRS data. The parameters used in the classifiers are shown in Table 3. The overall classification accuracy reported in Table 3 (first column) corresponds to the reconstructed signal obtained after the FD-SSA feature fusion step. The additional columns (PC1–PC5) are shown only to indicate the percentage variance and contribution of each principal component rather than classification results on individual components.

TABLE 3. Accuracy of all subjects in ROI-1 along with five principal components (PC1–PC5).

SubjectAccuracy (%)Position channelBAAnatPC1 (%)PC2 (%)PC3 (%)PC4 (%)PC5 (%)
Subject 197.346a10SFG98.397.796.297.097.6
Subject 292.447a10MeFG97.694.289.791.788.9
Subject 390.248a10MFG98.795.382.988.785.4
Subject 492.148a10MFG98.991.392.891.186.8
Subject 589.947a10MFG97.591.589.288.183.4
Subject 691.946a10SFG98.798.391.189.082.6
Subject 792.447a10MeFG99.693.987.386.994.7
Subject 888.747a10MeFG98.193.683.583.585.2

Time-domain and frequency-domain features were assessed using the chi-squared test to determine their relevance for the classification task. The chi-squared scores for all 14 features are reported in Table 4. Features with scores exceeding a threshold of 500 were considered significant for model training. Using this criterion, five features were selected: standard deviation, variance, peak-to-peak, variance of the first-order derivative, and variance of the second-order derivative. As shown in Table 4, these exhibit scores well above 597, while the remaining features score below 400, indicating minimal contribution. The threshold of 500 thus effectively separates highly discriminative features from weak or irrelevant ones. This selection reduces dimensionality, mitigates overfitting, and ensures that the classifier receives the most relevant information. Furthermore, empirical validation confirmed that including features below this threshold did not improve accuracy, supporting the choice of 500 as a principled cutoff for feature selection. These features capture complementary characteristics of the signal: standard deviation and variance describe the overall signal variability, peak-to-peak indicates the range of amplitude fluctuations, variance of the first-order derivative reflects the signal’s rate-of-change, and variance of the second-order derivative represents its acceleration or curvature. The selected features were then combined in various permutations to train the classification model, allowing identification of the combination that achieves highest accuracy. This approach ensures that the model leverages the most informative and discriminative features, effectively reducing dimensionality while maintaining classification performance.

TABLE 4. Chi-squared test values for all 14 features.

FeatureScore
Mean400
Standard deviation621
Variance621
Approximate entropy15
Peak-to-peak618
Lyapunov exponent3.1
Power bandwidth26
Skewness5
Kurtosis57
Variance (first-order derivative)597
Variance (second-order derivative)597
Mobility 10.03
Mobility 20.07
Complexity0.08

To rigorously evaluate model generalization and mitigate the risk of data leakage, we adopted an 80:20 train–test split at the subject level, wherein 80% of the participant data were randomly assigned to the training set and the remaining 20% were reserved for testing. By partitioning the dataset along subject boundaries rather than individual trials or temporal slices, we ensured that no subject-specific information influenced both training and testing phases, thereby preventing overfitting to individual hemodynamic patterns. The random assignment was repeated across multiple iterations to obtain statistically robust performance metrics, and the corresponding subject IDs for each split are provided in the supplementary material to facilitate reproducibility. This methodology allows the reported classification performance to more accurately reflect inter-subject generalization, which is critical for assessing the translational potential of NIRS-based cognitive state decoding in heterogeneous populations.

Figure 6 represents the chi-squared test score on which features were selected in different parameters to train the model by optimizing the time to train and observe the best feature set for the binary classification of states.

Chi-squared test output.
Figure 6. Chi-squared test output.

Table 5 shows the accuracy of ROI-1 and ROI-2 in the prefrontal cortex of the brain, obtaining mean accuracy of 97.03% and Std deviation of 1.21 for ROI-1 and mean accuracy of 97.57% and standard deviation of 1.60 for ROI-2.

TABLE 5. Accuracy of all subjects in ROI-1 and ROI-2.

SubjectROI-1ROI-2
Accuracy (%)Position channelBAAnatAccuracy (%)Position channelBAAnat
Subject 199.52510SFG99.52796.297
Subject 297.33510MeFG99.13789.791.7
Subject 397.43610MFG99.13882.988.7
Subject 495.74610MFG96.04892.891.1
Subject 597.22510MFG97.82789.288.1
Subject 696.93510SFG95.03791.189.0
Subject 797.23610MeFG98.23887.386.9
Subject 895.14610MeFG95.94883.583.5

The existing method results in a form of classification accuracy based only on three parameters, excluding the false-negative value which is also an important parameter of the confusion matrix. MCC considers the entire confusion matrix as one entity and calculates a score based on all four parameters of the confusion matrix. The reported MCC score along with other performance parameters are presented in Table 6.

TABLE 6. Model evaluation parameters with MCC score for ROI-1.

SubjectAccuracy (%)MCC [-1, 1]F1-score [0, 1]Precision [0, 1]Recall [0, 1]
Subject 199.50.99020.99640.99490.9979
Subject 297.30.92820.97800.98150.9745
Subject 397.40.87430.96160.96160.9616
Subject 495.70.77590.93210.94210.9222
Subject 597.20.87660.96200.96240.9616
Subject 696.90.92740.97770.98150.9740
Subject 797.20.89330.96710.96560.9686
Subject 895.10.85320.95530.96160.9492

SSA has significantly improved accuracy for the binary classification of mental arithmetic and rest compared to the already existing method, with an increment of 11.5% in the previous GNIRS [15] method in Table 7. The mean accuracy reported in existing methods were 79.4% for the antagonistic pattern (Bauernfeind et al., 2011) and 87.27 for the GNIRS method (Petrantonakis and Kompatsiaris, 2018); however, in this study, the proposed mean accuracy for FD-SSA is 98.1%.

TABLE 7. Comparison of mean accuracy with existing methods and proposed FD-SSA method.

SubjectAntagonistic pattern (%)GNIRS (%)Proposed FD-SSA (%)
Subject 168.7583.7598.3
Subject 287.5082.5097.6
Subject 375.0098.1298.7
Subject 487.5097.7398.9
Subject 568.7577.7397.5
Subject 687.5075.4598.7
Subject 781.2593.1899.6
Subject 879.6987.2798.1

When assessing binary classification, MCC yields a more truthful and informative score than the accuracy and F1-scores. Therefore, it should be the preferred parameter for evaluating the model. This study obtained better accuracy, and a new model parameter of Matthew’s correlation coefficient is proposed for NIRS classification for mental arithmetic and rest states.

4 Conclusion

This research explored singular spectrum analysis (SSA) for decomposing fNIRS signals. Selecting an optimal combination of features and classifiers is critical for single-trial classification in fNIRS-based BCI mental arithmetic (MA) tasks. Among the features considered, statistical features significantly outperformed frequency-domain features, such as power bandwidth and Lyapunov exponent. The extracted features minimize misclassification costs and enhance Matthew’s correlation coefficient (MCC) score. The obtained MCC values ranged from 0.77 to 0.99 across subjects, with a mean of 0.88, highlighting the robustness of the proposed approach. Overall, the application of SSA combined with optimized feature-classifier selection substantially improved classification outcomes.

For future research, integrating adaptive feature selection strategies with hybrid decomposition techniques can further improve MA task classification performance. This can also extend to multi-channel MA task classification. Real-time fNIRS-BCI scenarios can be explored for practical neuro-rehabilitation and cognitive monitoring applications.

Generative AI statement

The author(s) declared that generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Footnotes

Edited by: Ruisen Huang, Shenzhen Technology University, China

Reviewed by: Arfat Ahmad Khan, Khon Kaen University, Thailand

Mathi R, SASTRA University, India

Statements

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Funding

The author(s) declared that financial support was not received for this work and/or its publication.

Data availability

The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author.

Author contributions

KG: Conceptualization, Methodology, Validation, Visualization, Writing – original draft. AP: Investigation, Supervision, Validation, Writing – review and editing. ST: Validation, Writing – review and editing, Investigation. RT: Formal Analysis, Writing – original draft, Investigation.

References

  1. Aung T. M. M., Khan A. A. (2025). Enhanced U-Net with attention mechanisms for improved feature representation in lung nodule segmentation. Current Medical Imaging 21 (1), E15734056386382. doi:10.2174/0115734056386382250902064757
  2. Bauernfeind G., Scherer R., Pfurtscheller G., Neuper C. (2011). Single-trial classification of antagonistic oxyhemoglobin responses during mental arithmetic. Med. and Biological Engineering and Computing 49, 979 – 984. doi:10.1007/s11517-011-0792-5
  3. Bauernfeind G., Steyrl D., Brunner C., Müller-Putz G. R. (2014). “ Single-trial classification of fnirs-based brain-computer interface mental arithmetic data: a comparison between different classifiers,” in Annual international conference of the IEEE engineering in medicine and biology society (EMBC), 2004. doi:10.1109/EMBC.2014.6944008
  4. Bréchet L., Brunet D., Birot G., Gruetter R., Michel C. M., Jorge J. (2019). Capturing the spatiotemporal dynamics of self-generated, task-initiated thoughts with EEG and fMRI. Neuroimage 194, 82 – 92. doi:10.1016/j.neuroimage.2019.03.029
  5. Cheltha J. N., Sharma C., Prashar D., Khan A. A., Kadry S. (2024). Enhanced human motion detection with hybrid rda-woa-based rnn and multiple hypothesis tracking for occlusion handling. Image Vis. Comput. 150, 105234. doi:10.1016/j.imavis.2024.105234
  6. Choi S.-I., Choi G.-Y., Lee H.-T., Hwang H.-J., Shin J. (2018). “ Classification of mental arithmetic and resting-state based on Ear-EEG,” in 2018 6th international conference on brain-computer interface (BCI) (IEEE), 1 – 4.
  7. Ferreri L., Bigand E., Perrey S., Bugaïska A. (2014). The promise of near-infrared spectroscopy (NIRS) for psychological research: a brief review. L’Année Psychologique 114, 537 – 569. doi:10.4074/s0003503314003054
  8. Golyandina N., Korobeynikov A., Zhigljavsky A., Golyandina N., Korobeynikov A., Zhigljavsky A. (2018). SSA analysis of one-dimensional time series, 31 – 120. doi:10.1007/978-3-662-57380-8_2
  9. Khan A. A., Nauman M. A., Shoaib M., Jahangir R., Alroobaea R., Alsafyani M. (2022). Crowd anomaly detection in video frames using fine-tuned alexnet model. Electronics 11, 3105. doi:10.3390/electronics11193105
  10. Khan A. A., Driss M., Boulila W., Sampedro G. A., Abbas S., Wechtaisong C. (2023a). Privacy preserved and decentralized smartphone recommendation system. IEEE Transactions on Consumer Electronics 70 (1), 4617 – 4624. doi:10.1109/TCE.2023.3323406
  11. Khan A. A., Jahangir R., Alroobaea R., Alyahyan S. Y., Almulhi A. H., Alsafyani M. (2023b). An efficient text-independent speaker identification using feature fusion and transformer model. Comput. Mater. Continua 75, 4085 – 4100. doi:10.32604/cmc.2023.036797
  12. Korenaga K., Monden A., Yücel Z. (2019). “ Data smoothing for software effort estimation,” in 2019 20th IEEE/ACIS international conference on software engineering, artificial intelligence, networking and Parallel/distributed computing (SNPD) (IEEE), 501 – 506.
  13. Leeb R., Tonin L., Rohm M., Desideri L., Carlson T., Millan J. d. R. (2015). Towards independence: a BCI telepresence robot for people with severe motor disabilities. Proc. IEEE 103, 969 – 982. doi:10.1109/jproc.2015.2419736
  14. Liu Q., Liu A., Zhang X., Chen X., Qian R., Chen X. (2019). Removal of EMG artifacts from multichannel EEG signals using combined singular spectrum analysis and canonical correlation analysis. J. Healthcare Engineering 2019, 4159676. doi:10.1155/2019/4159676
  15. Oralhan Z. (2019). A new paradigm for region-based P300 speller in brain computer interface. Ieee Access 7, 106618 – 106627. doi:10.1109/access.2019.2933049
  16. Petrantonakis P. C., Kompatsiaris I. (2018). Single-trial NIRS data classification for brain–computer interfaces using graph signal processing. IEEE Trans. Neural Syst. Rehabilitation Eng. 26, 1700 – 1709. doi:10.1109/TNSRE.2018.2860629
  17. Pfurtscheller G., Bauernfeind G., Wriessnegger S. C., Neuper C. (2010). Focal frontal (de) oxyhemoglobin responses during simple arithmetic. Int. J. Psychophysiol. 76, 186 – 192. doi:10.1016/j.ijpsycho.2010.03.013
  18. Popescu A. B., Taca I. A., Nita C. I., Vizitiu A., Demeter R., Suciu C. (2021). Privacy preserving classification of eeg data using machine learning and homomorphic encryption. Appl. Sci. 11, 7360. doi:10.3390/app11167360
  19. Riess A., Ziller A., Kolek S., Rueckert D., Schnabel J., Kaissis G. (2024). “ Complex-valued federated learning with differential privacy and mri applications,” in International conference on medical image computing and computer-assisted intervention (Springer), 191 – 203.
  20. Sehgal S., Singh H., Agarwal M., Bhasker V. (2014). “ Data analysis using principal component analysis,” in 2014 international conference on medical imaging, m-Health and emerging communication systems MedCom (IEEE), 45 – 48.
  21. Sereshkeh A. R., Yousefi R., Wong A. T., Chau T. (2018). Online classification of imagined speech using functional near-infrared spectroscopy signals. J. Neural Engineering 16, 16005. doi:10.1088/1741-2552/aae4b9
  22. Sharma L. D., Chhabra H., Chauhan U., Saraswat R. K., Sunkaria R. K. (2021). Mental arithmetic task load recognition using EEG signal and Bayesian optimized K-nearest neighbor. Int. J. Inf. Technol. 13, 2363 – 2369. doi:10.1007/s41870-021-00807-7
  23. Shin J., von Lühmann A., Blankertz B., Kim D.-W., Jeong J., Hwang H.-J. (2016). Open access dataset for EEG+ NIRS single-trial classification. IEEE Trans. Neural Syst. Rehabilitation Eng. 25, 1735 – 1745. doi:10.1109/TNSRE.2016.2628057
  24. Singh D., Singh B. (2020). Investigating the impact of data normalization on classification performance. Appl. Soft Comput. 97, 105524. doi:10.1016/j.asoc.2019.105524
  25. Stegman P., Crawford C. S., Andujar M., Nijholt A., Gilbert J. E. (2020). Brain–computer interface software: a review and discussion. IEEE Trans. Human-Machine Syst. 50, 101 – 115. doi:10.1109/thms.2020.2968411
  26. Torkzadehmahani R., Nasirigerdeh R., Blumenthal D. B., Kacprowski T., List M., Matschinske J. (2022). Privacy-preserving artificial intelligence techniques in biomedicine. Methods Information Medicine 61, e12 – e27. doi:10.1055/s-0041-1740630
  27. van Driel J., Olivers C. N. L., Fahrenfort J. J. (2021). High-pass filtering artifacts in multivariate classification of neural time series data. J. Neurosci. Methods 352, 109080. doi:10.1016/j.jneumeth.2021.109080
  28. Widom H. (1966). Hankel matrices. Trans. Am. Math. Soc. 121, 1 – 35. doi:10.2307/1994330
  29. Wierzgała P., Zapała D., Wojcik G. M., Masiak J. (2018). Most popular signal processing methods in motor-imagery BCI: a review and meta-analysis. Front. Neuroinformatics 12, 78. doi:10.3389/fninf.2018.00078

Citation

Gahlot, K. S., et al. (2026). Singular spectrum analysis of near-infrared spectroscopy signal classification for mental arithmetic and rest state. Frontiers in Signal Processing, Volume 5. https://doi.org/
Received
Accepted
Published
Volume
5 - 2026

Copyright

Copyright © 2026 Gahlot, Pandey, Taran and Thakur.

License: https://creativecommons.org/licenses/by/4.0/

*Correspondence: Sachin Taran

Article metrics

Views
0
Downloads
0
Citations
0
Shares
0