Next Article in Journal
Three-Dimensional Analysis of the Association Between the Characteristics of the Included Maxillary Canines and the Lateral Incisors
Previous Article in Journal
A Discrete Interferometric Model for a Layer of a Random Medium: Effects on InSAR Coherence, Power, and Phase
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Electroencephalography-Based Pain Detection Using Kernel Spectral Connectivity Network with Preserved Spatio-Frequency Interpretability

by
Santiago Buitrago-Osorio
1,*,
Julian Gil-González
2,
Andrés Marino Álvarez-Meza
1,
David Cardenas-Peña
2 and
Alvaro Orozco-Gutierrez
2
1
Signal Processing and Recognition Group, Universidad Nacional de Colombia, Manizales 170003, Colombia
2
Automatics Research Group, Universidad Tecnológica de Pereira (UTP), Pereira 660003, Colombia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(9), 4804; https://doi.org/10.3390/app15094804
Submission received: 24 March 2025 / Revised: 23 April 2025 / Accepted: 25 April 2025 / Published: 26 April 2025
(This article belongs to the Special Issue EEG Recognition and Biomedical Signal Processing)

Abstract

:
Chronic pain leads to not only physical discomfort but also psychological challenges, such as depression and anxiety, which contribute to a substantial healthcare burden. Pain detection and assessment remains a challenge due to its subjective nature. Current clinical methods may be inaccurate or unfeasible for non-verbal patients. Consequently, Electroencephalography (EEG) has emerged as a promising non-invasive tool for pain detection. However, EEG-based pain detection faces challenges such as noise, volume conduction effects, and high inter-subject variability. Deep learning (DL) models have shown potential in overcoming these challenges by extracting nonlinear and discriminative patterns. Despite advancements, these models often require a subject-dependent approach and lack of interpretability. To address these limitations, we propose a threefold DL-based framework for coding EEG-based pain detection patterns. (i) We employ the Kernel Cross-Spectral Gaussian Functional Connectivity Network (KCS-FCnet) to code pairwise channel dependencies for pain detection. (ii) Furthermore, we introduce a frequency-based strategy for class activation mapping to visualize pertinent pain EEG features, thereby enhancing visual interpretability through spatio-frequency patterns. (iii) Further, to account for subject variability, we conduct cross-subject analysis and grouping, clustering individuals based on similar pain detection performance, functional connectivity patterns, sex, and age. We evaluate our model using the Brain Mediators of Pain dataset and demonstrate its robustness through subject-dependent and cross-subject generalization tasks for pain detection on non-verbal patients.

1. Introduction

Pain is an important global health issue; according to the Global Burden of Disease Study, this condition affects approximately 20% of the worldwide population, with low back pain, neck pain, and migraines being the most common causes [1]. Chronic pain not only leads to physical suffering but also contributes to psychological issues like depression and anxiety [2]. Uncontrolled pain has also been linked to increased healthcare utilization, including hospitalizations, emergency department visits, and greater financial burden [3]. Nevertheless, pain is not merely a physical sensation; it also involves emotional and psychological components, making it a complex and multidimensional experience [4]. In particular, chronic pain is an experience that persists beyond the healing period, often without a clear cause. Such prolonged issues can alter how the brain processes information, leading to magnified sensitivity. Hence, it requires comprehensive detection and treatment approaches that address both the physical and psychological aspects [5].
Pain detection and assessment are crucial for effective management, allowing healthcare professionals to understand intensity, nature, and impact [6]. However, pain is subjective; thus, self-reporting is often the most reliable method of assessment by means of tools such as the Numeric Rating Scale (NRS) and Visual Analog Scale (VAS) [7]. Nevertheless, in cases where self-reporting is challenging—such as with young children, older adults with cognitive impairments, or non-verbal patients—observational scales and physiological approaches are not suitable [6]. Significant progress has been made in pain assessment, particularly in patients unable to communicate. However, current clinical methods still predominantly depend on subjective evaluations [7]. These tools are susceptible to external factors such as mood and lack of physiological bases, limiting their accuracy [8].
In contrast, electrical, pressure, and thermal stimulators have been created, as well as PainMatcher, to obtain a more accurate picture of pain. Nevertheless, these methods are invasive as they require the application of painful stimuli to record responses [9]. Since pain perception is deeply influenced by brain activity, as well as psychological factors such as expectations and emotions that shape conscious pain experience, neuroimaging techniques have been extensively studied for brain activity-based pain detection [10]. These techniques are broadly classified into invasive and non-invasive methods. Invasive methods, like Electrocorticography (ECoG) and intracranial Electroencephalography (iEEG), offer high spatial and temporal resolution but involve surgical risks. Magnetic Resonance Imaging (fMRI), Magnetoencephalography (MEG), Near-Infrared Spectroscopy (NIRS), and Electroencephalography (EEG) are some of the non-invasive techniques that are more commonly used because they are safe, cost-effective, and simple to use [11]. EEG, in particular, has gained popularity for studying brain connectivity and identifying dysfunctional areas [12]. Its ability to capture specific brain activity patterns makes it a valuable tool for understanding pain and enhancing applications in neurorehabilitation, including motor imagery and brain–computer interface (BCI) systems [13,14].
Still, EEG-based pain detection is significantly hindered by inherent challenges, such as high noise levels and volume conduction issues [15]. The inherent noise in scalp-recorded signals significantly obscures the underlying neural activity. Also, EEG signals are less accurate when they are affected by things outside the brain, such as electromagnetic interference from lights, AC power lines, and electronics, and noise from things going on inside the body, such as digestion, skin resistance changes, heart activity, eye movements, muscle movements, and breathing [16]. Furthermore, functional activities detected by EEG are affected by volume conduction before being recorded in the scalp, leading to correlations between multiple EEG channels that affect competitive performance [17,18].
Moreover, both between- and within-subject variability pose significant challenges to developing a universal EEG-based pain detection algorithm. Genetic, cognitive, and neurodevelopmental differences contribute to variability in neural responses to pain, making it difficult to generalize across individuals. Research has shown that inter- and intra-individual neural variability significantly affects the accuracy of decoding pain-related EEG signals, complicating the identification of universal neural pain markers [19]. Additionally, genetic variations, such as those related to serotonin regulation, have been linked to differences in pain perception and EEG-based biomarkers, further underscoring the complexity of subject-independent pain assessment [20]. Furthermore, EEG-based functional connectivity analyses have revealed substantial differences in pain-related neural activity in newborns, emphasizing the need for adaptive, personalized models for pain detection [21].
In the specific context of EEG-based pain assessment using Machine Learning (ML), traditional approaches such as Support Vector Machines (SVM), k-Nearest Neighbors (k-NN), Random Forests, and Linear Discriminant Analysis (LDA) have been widely applied [22]. These methods are popular due to their ability to handle high-dimensional data and provide interpretability, which is crucial to understanding the relationship between EEG signals and pain. Additionally, in [23], the authors underscored the potential of EEG and ML models such as SVM, LDA, k-NN, and Common Spatial Patterns (CSP) in pain biomarker research. Moreover, Ref. [24] explored the potential of EEG to detect pain in adolescents, including those with chronic musculoskeletal pain and those without it, by using SVMs and logistic regression models to classify resting and pain conditions based on EEG signal features. Recently, authors in [8] introduce a ML strategy to distinguish between pain states and non-pain by extracting functional connectivity features and employing a combination of an SVM with a Radial Basis Function (RBF) kernel and a decision tree. Similarly, Ref. [25] implemented a decision tree based on average brain maps to classify pain levels. In contrast, Ref. [26] developed a hierarchical SVM classifier to categorize pain intensities. Each node within this classifier utilized a custom subset of features, selected using the sequential forward selection method, with the SVM parameters fine-tuned through Bayesian optimization. However, ML-based strategies rely on handcrafted features and struggles with capturing complex brain activity patterns, often lacking the generalization required for robust EEG-based analysis [27].
Deep learning (DL)-based EEG classification algorithms have demonstrated exceptional potential in overcoming the challenges associated with EEG signal analysis. Among these, convolutional neural networks (CNNs) have emerged as the most effective for feature extraction, as they can efficiently capture both spatial and temporal patterns [28]. Notable CNN architectures widely used for EEG classification include EEGNet, ShallowConvNet, and DeepConvNet, which have shown superior performance in decoding. Beyond CNNs, various DL models have been investigated for EEG analysis. Autoencoders, for example, transform EEG data into a lower-dimensional feature space while reducing noise, enabling the generation of more refined signal representations [29]. Meanwhile, Recurrent Neural Networks (RNNs) leverage the sequential nature of EEG signals, effectively capturing temporal dependencies essential for understanding signal dynamics [30]. Recently, Transformer-based models have gained prominence for their ability to capture long-range dependencies, effectively extracting both global and local features of EEG signals through attention mechanisms [31]. Despite these advancements, applying these DL approaches in the medical field, particularly for EEG-based pain detection, remains a significant challenge. First, their black box nature hinders interpretability, making it difficult to derive meaningful insights into the neurological mechanisms specific to each individual [32]. Second, these models frequently fail to account for the intricate interconnections between neurological, physiological, and behavioral factors [33]. Recognizing and incorporating these influences is essential to achieve more personalized outcomes.
To face the above challenges, some approaches have been proposed to enhance the well-established EEGNet architecture. For instance, the Kernel Regularized EEGNet (KREEGNet) employs a Central Kernel Alignment (CKA) framework as a regularization strategy to optimize model performance [34]. In addition, the Kernel Cross-Spectral Functional Connectivity Network (KCS-FCnet) applies Gaussian kernels, aiming to determine functional connectivities and feeding these into a fully connected layer, which in turn maps EEG data into a higher-dimensional feature space to enhance its representation and favors classification tasks [35]. Nevertheless, subject-dependent approaches remain widely used, often lacking the necessary generalization for effective cross-subject pain assessment.
On the other hand, in terms of interpretability, various attribution methods have emerged. Class Activation Maps (CAMs) are widely used for image-based tasks, as they identify which parts of the input most influence the model’s decisions. Initially introduced in [36], CAMs employ weighted activations in a given layer to compute the impact of each feature on the outcome. Grad-CAM extends this by reweighting based on gradients from the model, though it presumes uniform importance across activations [37]. Yet, crucial spatio-frequency features remain unclear, limiting their potential for enhancing explainability in EEG-based pain detection [8].
We present an EEG-based pain detection framework for non-verbal patients leveraging the KCS-FCnet model [35]. We structure our approach into three key components:
  • KCS-FCnet-based Pain Detection: We employ 1D convolutional layers to extract rich spatio-frequency features from EEG channels. Additionally, cross-spectral distribution estimation is utilized to capture pain-related patterns, generating functional connectivity feature maps that reveal meaningful pairwise channel relationships.
  • Explainability through Frequency CAM (FCAM): To enhance model interpretability, we introduce Frequency CAM (FCAM), a novel technique that provides deeper insights into the model’s decision-making by analyzing both input EEG channel importance and frequency band contributions to pain detection.
  • Cross-Subject Analysis: We address subject variability by performing cross-subject analysis and grouping, clustering individuals based on similar pain detection performance, functional connectivity patterns, sex, and age, thus improving generalizability across diverse populations.
For testing, we employ the Brain Mediators of Pain dataset [38] to classify between no pain and high pain states. To assess the inter-subject generalization capabilities, we compare the performance of classical machine learning models, EEGNet, and our enhanced KCS-FCnet framework in EEG-based pain detection tasks [38]. Furthermore, we utilize both subject-dependent training and a leave-one-subject-out cross-validation strategy to evaluate model generalizability across different individuals. Our findings demonstrate that the proposed KCS-FCnet model offers a robust, non-invasive pain detection solution with enhanced spatio-frequency interpretability, making it particularly valuable for assisting in pain assessment for non-verbal patients.
The remainder is as follows: Section 2 describes the materials and methods. Section 3 and Section 4 present the experiments and discuss the results. Finally, Section 5 presents the conclusions and future work.

2. Materials and Methods

2.1. Brain Mediators of Pain Database

The Brain Mediators of Pain dataset comprises EEG recordings from 51 healthy participants subjected to standardized painful laser stimulation [38,39]. Laser stimuli were applied to the dorsum of the left hand using a Thulium-YAG laser stimulator (Model: StarMedTech (Starnberg, Germany)), emitting at a wavelength of 1960 nm. Each stimulus delivered an energy of approximately 0.4 J over a pulse duration of 1 ms. The spot size of the laser was approximately 7 mm in diameter. Stimuli were applied in a pseudo-randomized sequence at three intensity levels (low, medium, high), with 20 trials per level, totaling 60 trials per subject. The interstimulus interval was randomized between 8 and 12 s to prevent habituation and expectancy effects.
The stimuli levels were carefully calibrated on an individual basis to ensure perceptual relevance and consistency. Namely, stimulus intensities were individually adjusted using psychophysical calibration. Pain thresholds were first determined using the method of limits. Then, 20 supra-threshold stimuli were applied and rated by the participant on an NRS from 0 (no pain) to 100 (worst tolerable pain). A regression line was fitted to each subject’s ratings, and energies matching NRS values of 30, 50, and 70 were used for low, medium, and high intensity, respectively. Then, this procedure ensures personalized calibration: Low intensity (NRS ≃ 30), Medium intensity (NRS ≃ 50), High intensity (NRS≃ 70). Moreover, mean stimulus energies were as follows: Low: 480 ± 40 mJ, Medium: 530 ± 40 mJ, High: 580 ± 50 mJ. This psychophysical calibration method ensures that the differences between the stimulus levels are both perceptually meaningful and physiologically validated (for details see https://osf.io/bsv86/-accessed on 1 December 2024).
EEG data were collected using 65 electrodes, covering all positions from the international 10–20 system, with 2 additional electrodes placed below the outer canthus of each eye. Figure 1 shows the EEG montage used. During acquisition, the EEG signals were referenced to the FCz electrode and grounded at AFz, with a sampling rate of 1000 Hz. The signals were filtered with a high-pass of 0.015 Hz and a low-pass of 250 Hz. The data were downsampled to 500 Hz. For artifact detection, a 1 Hz high-pass filter and a 50 Hz notch filter were applied to remove line noise. Finally, for the purpose of this study, the EEG data were downsampled again to 256 Hz and band-pass filtered between 4 and 60 Hz to preserve the theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), and gamma (30–60 Hz) frequency bands. For simplicity, EEG channels and conventional 10–20 electrodes are preserved. Then, the LE, RE, Ne, Ma, Ext, and ECG records were removed.
The demographic summary in Table 1 presents the key characteristics of the study participants. The sample is composed of 26 men and 25 women, resulting in a nearly balanced distribution between genders. The participants’ ages range from a minimum of 20 to a maximum of 37 years, indicating a relatively young cohort. The mean age is 26.74 years with a standard deviation of 3.86, reflecting moderate age variability within the group.
Regarding the pain classification paradigms—see Figure 2—the motor paradigm required participants to release a button as quickly as possible after receiving the pain stimulus, and reaction times served as an indicator of intensity. The perception paradigm asked participants to verbally rate their pain on a scale from 0 (no pain) to 100 (worst tolerable pain), three seconds after each stimulus. The third paradigm, autonomic, involved the administration of 60 painful stimuli while simultaneously recording Skin Conductance Responses (SCRs). Finally, for the combined one, participants first released a button and then immediately provided a verbal pain rating while the SCRs were recorded.
Notably, given our objective to facilitate pain detection tasks for non-verbal patients, we adopt the motor paradigm as a binary classification approach, distinguishing between no pain and high pain [40]. For the purposes of this study, we defined the pain condition using trials where high-intensity stimuli were applied, while no-pain conditions were represented by trials corresponding to low-intensity stimuli. Specifically, the high-intensity trials were labeled as pain and low-intensity trials as no pain, focusing on maximizing class separability. Medium-intensity trials were excluded from the binary classification task. For concrete evaluation, each of the 51 subjects contributes 40 EEG trials, each lasting three seconds and recorded at a sampling frequency of 256 Hz across 64 channels.
EEG segments were extracted from a 3 s window immediately following each laser stimulus, assuming that pain-related brain activity would dominate this post-stimulus period. No real-time subjective ratings were used during the trial; labeling relied on the experimental pain intensity setting. After preprocessing and trial selection, each subject contributed an equal number of pain and no-pain trials (20 each), ensuring a balanced dataset (1:1 class ratio).

2.2. Kernel Cross-Spectral Functional Connectivity Network (KCS-FCnet)

Let x X represent a wide-sense stationary stochastic process with a real-valued auto-correlation function R x ( τ ) R , defined as follows [41]:
R x ( τ ) = R exp ( j 2 π τ f ) d P x ( f ) ,
where P x ( f ) [ 0 ,   1 ] is a monotonic, absolutely continuous, and differentiable spectral distribution function over the frequency domain f R .
Considering two vectors x , x R T , Equation (1) can be extended from a univariate correlation function to a pairwise correlation using a generalized stationary kernel κ : R T × R T R . This kernel maps the data into a Reproducing Kernel Hilbert Space (RKHS) via a nonlinear function ϕ : R T H . Bochner’s theorem states that such an extension is valid under the assumption that the spectral representation between the vectors satisfies the following [42]:
κ ( x x ) = Ω exp j 2 π ( x x ) f S x x ( f ) d f ,
where f Ω is a vector-valued frequency domain within the bandwidth Ω , and S x x ( f ) C is the cross-spectral density function, with S x x ( f ) = d P x x ( f ) / d f , where P x x ( f ) [ 0 ,   1 ] is the cross-spectral distribution. Thereby, the cross-spectral distribution yields the following:
P x x ( Ω ) = 2 Ω F { κ ( x x ) } d f .
where F { · } stands for the Fourier transform and P x x ( Ω ) [ 0 ,   1 ] captures cross-frequency information by extracting nonlinear dependencies within f Ω . Next, the Gaussian kernel is fixed in Equation (3) for its universal approximation capabilities and efficient computation:
κ G ( x x ; σ ) = exp x x 2 2 2 σ 2 ,
where · 2 is the l2-norm and σ R + is a scale hyperparameter.
Now, let { X n R C × T , y n { 0 ,   1 } K ˜ } n = 1 N be a subject-dependent input–output EEG-based pain detection dataset, holding N trials, T time instants, C channels, and K ˜ classes. In particular, K ˜ = 2 for no-pain vs. high-pain states. To capture the most informative EEG patterns from a given trial X , the Kernel Cross-Spectral Functional Connectivity Network (KCS-FCnet) estimates the cross-spectral distribution between EEG channels as in Equation (3) within a DL approach [35]. Indeed, KCS-FCnet uses 1-D convolutions to combine feature layers that pull out time-frequency patterns in each channel and a Gaussian kernel-based pairwise similarity as follows:
P ^ f = κ G ( · ; σ ) φ ( · ; w f ) ( X ) ,
where notation ∘ stands for function composition, φ ( · ; w f ) holds F ˜ 1-D convolutional filters with w f R Δ T , Δ T < T , and f { 1 , 2 , , F ˜ } . Also, Equation (5) operates κ G ( · ; σ ) for each pair of filtered EEG channels regarding the weights w f ; then, P ^ f [ 0 ,   1 ] C × C holds the pairwise EEG channel kernel-based cross-spectral distribution feature map of the input trial X for the f-th KCS-FCnet’s filter. Moreover, an average cross-spectral functional connectivity measure can be computed as follows:
P ˜ = 1 F ˜ f = 1 F ˜ P ^ f ,
where P ˜ [ 0 ,   1 ] C × C . The latter allows coding different frequency bands of a single-trial EEG that relate to each other across channels. After computing the average functional connectivity measure, as in Equation (6), a softmax-based output layer is applied over a vectorized version of P ˜ . Then, the predicted class membership is as follows:
y ^ ( θ ) = softmax v vec P ˜ + b ,
where v R C ( C 1 ) / 2 × K ˜ , b R K ˜ ,   y ^ ( θ ) [ 0 ,   1 ] K ˜ , ⊗ stands for tensor product, and θ = { w f , v , b , σ ; f { 1 , 2 , , F ˜ } } .
A cross-entropy-based loss and a gradient descent framework using back-propagation are employed to optimize the network parameters [27]:
θ * = arg min θ 1 N n = 1 N k = 1 K ˜ y n k log y ^ n k ( θ ) ,
where y n k y n and y ^ n k ( θ ) y ^ n ( θ ) . Figure 3 presents the KCS-FCnet main pipeline for EEG-based pain classification.

2.3. Pain Detection Explainability Through Frequency Class Activation Maps (FCAM)

Gradient-weighted Class Activation Mapping++ (Grad-CAM++) is an advanced deep learning interpretability technique that generates high-resolution heatmaps to localize important regions within an input image more accurately than traditional CAM approaches [43]. By leveraging higher-order gradients, Grad-CAM++ provides refined localization and a more detailed understanding of model decisions. In our approach, we integrate Grad-CAM++ into an EEG-based pain detection framework, representing each trial X as an image with C rows (channels) and T columns (time steps) to enhance interpretability and feature relevance analysis.
Here, an upsampled EEG-CAM, denoted as Λ k φ ( X ) R C × T , is computed for an input trial X corresponding to the k-th class ( k K ˜ ). This CAM is derived from the φ ( · ) layer in Equation (5) to highlight salient spatio-temporal patterns encoded by KCS-FCnet:
Λ k φ ( X ) = ReLU ζ f = 1 F ˜ β k f φ Z ˜ k f φ ,
ζ ( · ) denotes an upsampling function, ReLU ( · ) is the Rectified Linear Unit, Z ˜ k f φ R C × Δ T represents the activation map for the f-th 1-D convolutional filter regarding the k-th class, and ⊙ stands for the Hadamard product. The Grad-CAM++ weights β k f φ are computed as follows:
β k f φ = c = 1 C t = 1 Δ T α k f [ c , t ] · ReLU y ˜ k Z ˜ k f φ [ c , t ] ,
where y ˜ k R + is the k-th class score, and α k f [ c , t ] are the Grad-CAM++ coefficients calculated using higher-order partial derivatives of y ˜ k with respect to Z ˜ k f φ [ c , t ] .
We normalize the EEG-CAM to focus on important spatial and temporal EEG inputs and reduce unwanted CAM artifacts between classes, as follows:
Λ ˜ k φ ( X ) = Λ k φ ( X ) max k K ˜ Λ k φ ( X ) .
with Λ ˜ k φ ( X ) [ 0 ,   1 ] C × T .
Lastly, to reveal explainable spatio-frequency patterns, we propose to compute the Frequency CAM (FCAM) vector γ k R C as follows:
γ k ( Ω ˜ ) = F 1 { F { Λ ˜ k φ ( X ) } ; Ω ˜ } 1 T ,
where Ω ˜ rules the frequency band of interest and 1 T is an all-ones vector of size T .

2.4. Cross-Subject Pain Detection Analysis

To address pain detection subject variability, we build a scoring matrix that contains as many rows as subjects in the Brain Mediators of Pain Database dataset. In particular, we compute the Accuracy (ACC), the Area Under the ROC Curve (AUC), and the Cohen’s Kappa scores for subject-dependent pain detection performance:
ACC = T P + T N T P + T N + F P + F N
AUC = 0 1 TP TP + FN d FP FP + TN
Kappa = 2 · ( T P · T N F P · F N ) ( T P + F P ) · ( F P + T N ) + ( T P + F N ) · ( F N + T N ) ,
where T P , T N , F P , and F N stand for true positive, true negative, false positive, and false negative pain detection values. Then, to code classification variability, we also include the standard deviation of each performance measure in Equations (13)–(15).
Next, to incorporate pairwise channel dependencies captured by the KSC-FCNet, we computed the average trial-wise, Gaussian-based functional connectivity matrix for each subject set after network training. Subsequently, a two-sample Kolmogorov–Smirnov test (2KS) [44] is conducted for each pairwise connection to assess differences between the two pain detection classes (no-pain vs. high-pain). The average p-value across all pairwise functional connectivity 2KS tests is then calculated to summarize group-level distinctions. In turn, subject-specific features such as sex and age are also included in the analysis.
All features are normalized within the range [ 0 ,   1 ] to maintain the intuition that higher is better in the score matrix. We replace the standard deviation with its complement and normalize Cohen’s kappa by adding the unit and dividing by two. Finally, the well-known t-Distributed Stochastic Neighbor Embedding (t-SNE) [27] is carried out for visual inspection and further stratification and cross-subject testing. Figure 4 depicts the proposed cross-subject pain detection analysis pipeline.

3. Experimental Set-Up

Our proposed KCS-FCnet framework, incorporating enhanced spatio-frequency explainability via FCAMs, is evaluated across both subject-dependent and cross-subject pain detection tasks, specifically distinguishing between no-pain and high-pain conditions.

3.1. Assessment and Method Comparison

We computed the ACC, AUC, and Kappa performance measures in Equations (13)–(15) as a quantitative assessment. As a method comparison, we tested the Power-based EEG Features with SVM classifier presented in [40], the Filterbank CSP (FBCSP) with LDA [45], and the following well-known end-to-end EEG classification networks: EEGNet [46], DeepConvNet [47], ShallowConvNet [48], and TCFusionnet [49]. It is worth nothing that, to maintain consistency with previous research on the relationship between neural activity and pain perception and to ensure the preservation of critical information necessary for accurate pain classification, a band-pass filter was applied between 4 and 60 Hz to preserve Theta (4–8 Hz), Alpha (8–13 Hz), Beta (13–32 Hz), and Gamma (30–60 Hz) rhythms, as these have been associated with various aspects of the pain experience.

3.2. Training Details

The models were trained using 5-fold cross-validation (80% training, 20% testing), with ACC as the primary performance measure. In addition, the best-performing fold was selected for each model and subject to generate the most representative FCAMs (see Section 2.3). We employ the Scikit-Learn, MNE, and TensorFlow Python libraries. All experiments were conducted in a Kaggle notebook using the 2022-10-20 environment, which provides two Tesla T4 GPUs with 15 GB of VRAM, 30 GB of RAM, and an Intel Xeon CPU @ 2G Hz with two threads per core and two sockets per core. We trained the DL methods for 500 epochs using the Adam optimizer (1 × 10 3 learning rate) and binary cross-entropy loss. Additionally, we implemented callbacks to terminate training upon encountering NaN values and to reduce the learning rate when training plateaued.
For hyperparameter selection, we used grid search, varying the Δ T value as F s 2 , F s 4 , and F s 10 , and setting the number of filters for KCS-FCnet to 2, 4, or 8. The kernel bandwidth in Equation (4) is tuned through gradient descent within KCS-FCnet training, taking as reference the median pairwise channel EEG Euclidean distances. Additionally, EEGNet, DeepConvNet, ShallowConvNet, and TCFusionNet are trained using their respective predefined hyperparameters. Table 2 summarizes the DL hyperparameters used, with any unspecified values set to TensorFlow’s defaults. Also, Table 3 details the architecture of the KCS-FCnet. All Python codes are publicly available at https://github.com/sbuitragoo/master-thesis/tree/main/code (accessed on 1 December 2024).
For subject-dependent training, each model was independently trained and evaluated using data from individual subjects. This approach highlights the importance of capturing subject-specific pain mechanisms, which can inform more personalized treatment strategies—ultimately improving the likelihood of therapeutic success [50]. Subsequently, to assess whether the tested pain detection approaches can achieve a suitable cross-subject generalization, the presented approach in Section 2.4 is carried out for visual subject stratification and grouping. Then, a Leave-One-Subject-Out (LOSO) cross-validation strategy evaluates each model on EEG recordings from previously unseen subjects, ensuring a robust measure of inter-subject generalization. LOSO is a widely adopted validation strategy in subject-independent analyses, particularly in EEG-based studies. In this approach, data from all subjects except one are used to train the model, while the data from the held-out subject serve as the test set. This procedure is repeated iteratively until each subject has been used exactly once for testing. LOSO offers an unbiased and rigorous estimate of model performance on previously unseen individuals, making it especially valuable for assessing the generalization capability of pain detection models across diverse populations.
Figure 5 summarizes the main sketch for testing subject-independent and cross-subject pain detection.

4. Results and Discussion

4.1. Subject-Dependent Method Comparison Results

Figure 6 and Figure 7 and Table 4 present a comparative evaluation of subject-dependent pain detection performance across multiple machine learning and deep learning models. Among these, the proposed KCS-FCnet model consistently outperforms all competing methods, achieving the highest average accuracy (76.4%), AUC (81.2%), and Cohen’s Kappa (52.8%). This strong performance highlights the model’s capacity to reliably differentiate between no-pain and high-pain EEG trials at the individual level. In comparison, traditional machine learning approaches such as Power Features + SVM and FBCSP yield substantially lower accuracies (56.5% and 53.0%, respectively), reinforcing the limitations of handcrafted features in capturing the complex neural signatures associated with pain. Also, TCFusionNet, the second-best performer, trails KCS-FCnet by ∼8% in accuracy and ∼4% in AUC, indicating that while temporal-convolutional fusion enhances spatio-temporal modeling, it does not match the pairwise channel dependency modeling capabilities of KCS-FCnet. In contrast, EEGNet and ShallowConvNet, despite being optimized for EEG data, show lower performance—likely due to their limited modeling of nonlinear inter-channel relationships. Their focus on spatial-temporal convolution, without incorporating functional connectivity, restricts their ability to capture pain-related brain dynamics. Notably, even established deep learning models like EEGNet and DeepConvNet fall short, suggesting that their architectures are insufficient to capture the intricate spatio-frequency dependencies encoded in pain-related EEG signals. mportantly, a paired two-tailed t-test of the subject-dependent accuracies (Figure 7) supports our conclusions. KCS-FCnet achieves statistically superior performance over all other methods (p < 0.05), while the differences between DeepConvNet vs. FB-CSP and ShallowConvNet vs. EEGNet are not significant (p > 0.05).
Moreover, KCS-FCnet’s superior results can be attributed to its integration of kernel-based functional connectivity analysis with convolutional neural feature extraction. By modeling nonlinear inter-channel relationships through Gaussian kernel similarity measures, the model effectively uncovers pain biomarkers that traditional and even some advanced deep learning models overlook. Furthermore, its relatively low standard deviation in accuracy (±9.1%) indicates strong performance consistency across subjects, which is critical in clinical applications where subject-specific variability often hampers generalization. Collectively, these findings underscore the potential of KCS-FCnet as a robust, interpretable, and individualized framework for EEG-based pain detection—particularly valuable for non-verbal patients where objective assessment is essential.

4.2. Cross-Subject Method Comparison Results

Figure 8 shows the 2D t-SNE projection of the suggested method for cross-subject analysis, which is explained in Section 2.4. The embedding illustrates the cross-subject relationships based on subject-dependent performance measures (ACC, AUC, Kappa) for the FBCSP, EEGNet, and KSC-FCnet pain detection methods. The latter aims to include three representative strategies for pain detection. In addition, it includes the KCS-FCnet-derived functional connectivity patterns and demographic attributes, including sex and age. Hence, 22 features are used to represent each subject (see Table 5). Each of the 22 features were normalized independently to the [ 0 ,   1 ] range using min–max normalization, ensuring comparable scales across diverse features. Standard deviations were inverted by subtracting from one to maintain the higher is better principle. Of note, points within the blue region represent female subjects, while those in the orange region correspond to male subjects. Additionally, marker sizes correspond to subject age, while color intensity reflects subject-dependent pain detection ACC. At first glance, the subject-dependent performance metrics, when analyzed alongside demographic data, suggest that gender plays a significant role in influencing the model’s decision-making. Indeed, visual inspection shows that gender alone divides the subjects into two well-defined clusters, highlighting its importance as a conditioning variable in the cross-subject model. This observation underscores the importance of incorporating gender as a critical factor in pain classification analyses.
Similarly, Figure 9 presents a 2D t-SNE projection illustrating cross-subject relationships based on the functional connectivity estimated by KCS-FCnet. The two-sample Kolmogorov–Smirnov (2KS) test was selected to quantify statistical differences between the connectivity distributions of pain and non-pain states. This non-parametric test provides a distribution-free measure of separability, making it suitable given the non-Gaussian nature of EEG-derived functional connectivity values. The color bar represents the p-values of each connection within the subject-specific connectivity matrices, with darker blue tones indicating stronger class separability. Thus, the bluer the matrix, the greater its discriminative power. The visualization reveals substantial inter-subject variability, particularly in terms of local and global discriminative connectivity patterns identified via the 2KS test (see Section 2.4). Overall, male subjects tend to exhibit denser brain connectivity profiles, whereas female subjects display more sparse but distinct FC.
Given the demonstrated impact of gender on EEG-based pain classification, new subgroups were formed by selecting male and female subjects with subject-dependent ACC exceeding 85% to preserve good-performing pain detection. Table 6 summarizes the key demographic characteristics of these subgroups, including subject sex along with minimum, maximum, and average ages. Table 7 and Table 8 show the cross-subject pain detection results for males and females, respectively, from sex-based grouping as in Table 6. As seen, straightforward FBCSP achieves a poor generalization performance. DL-based approaches, such as EEGNet and KCS-FCnet, demonstrate good generalization performance for male-based cross-subject analysis. However, KCS-FCnet outperformed the others, particularly for male-based grouping. Notably, TCFusionNet is the second-best performer for the male group, but it trails in terms of Kappa and AUC metrics, suggesting less consistent inter-subject discrimination. EEGNet and ShallowConvNet also perform reasonably well, indicating their suitability for EEG decoding tasks, yet they lack the functional connectivity modeling capabilities of KCS-FCnet.
In the female subgroup, all methods show a noticeable drop in performance, highlighting the challenges posed by higher inter-subject variability or less pronounced neural correlates of pain in female EEG data. Despite this, KCS-FCnet still achieves the highest performance among all approaches, reinforcing its generalization capabilities, even in more variable scenarios. ShallowConvNet and EEGNet follow with 67.1 % and 63.3 % accuracy, respectively, but their lower AUC and Kappa scores suggest reduced reliability in decision-making. TCFusionNet, although competitive in other tasks, does not maintain its advantage in this group. Classical methods like FBCSP and DeepConvNet again underperform, with accuracy barely surpassing the 60 % threshold. These results suggest that while deep learning methods generally outperform traditional ML techniques in EEG-based pain detection, incorporating functional connectivity—especially with kernel-based spectral analysis—provides critical advantages in uncovering complex pain-related neural dynamics, even in populations with more subtle or heterogeneous EEG patterns.
Of note, the LOSO strategy yields higher pain detection performance among male subjects compared to female subjects. The latter may be attributed to sex-related differences in EEG patterns, which have been shown to be distinguishable with high ACC by both ML and DL models. Such findings suggest that sex-specific neural characteristics can significantly influence classification outcomes in tasks like pain detection [51].
Furthermore, Figure 10 compares the models’ ACC within the male group across subject-dependent and cross-subject pain detection experiments. The figure highlights an expected drop in ACC when transitioning to subject-independent evaluation, as models are tested on previously unseen subjects. Despite this decline, the models, particularly KCS-FCnet, maintain strong performance, demonstrating their ability to generalize effectively to unseen data.
Although overall performance was slightly reduced in the female subgroup, KCS-FCnet consistently outperformed all other models, as shown in Figure 11. This highlights its robust generalization capabilities, particularly for pain detection in previously unseen subjects—a critical requirement for reliable assessment in non-verbal patient populations. These results underscore the model’s potential for real-world, subject-independent applications. Notably, KCS-FCnet exhibited particularly strong performance in the male group, achieving the highest scores across all evaluation metrics, further reinforcing its effectiveness and robustness across diverse demographic profiles.
Lastly, recent advances in EEG-based pain detection and assessment have demonstrated the utility of both subject-dependent and subject-independent (LOSO) approaches, yet challenges in generalization and interpretability persist. For instance, in [40] authors proposed an EEG-based method for acute pain detection using a compact CNN, achieving strong performance in subject-dependent tasks, but reporting notable performance degradation in cross-subject settings due to individual variability. Similarly, authors in [8] highlighted the potential of functional connectivity metrics in pain quantification, yet emphasized their sensitivity to demographic and neurophysiological differences, limiting subject-independent applicability. In contrast, in [7], a deep attentive recurrent convolutional network is proposed to encode spatial, spectral, and temporal EEG features to assess pain intensity, achieving promising results under controlled subject-specific evaluations. Most recently, authors in [52] leveraged deep learning within a BCI framework to enable objective pain assessment in real-time, noting, however, that their subject-independent results still suffered from substantial inter-subject variability. Compared to these studies, our proposed KCS-FCnet framework integrates kernel-based functional connectivity, demonstrating superior subject-independent performance, especially when stratifying by sex.

4.3. FCAM-Based Spatio-Frequency Explainability Results

To provide deeper insight into the pain detection results, Figure 12 and Figure 13 present the FCAM spatio-frequency relevance analysis results (see Equation (12)). Spatio-frequency topomaps are presented using Subjects 15 and 29 as a representative male and female case, respectively. Frequency bands include theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), gamma (30–60 Hz), and the full band (4–60 Hz). The FCAM relevance vectors are scaled from 0 to 1, which lets them pick out patterns that are different between the no-pain and high-pain detection classes.
Finally, Figure 14 presents the corresponding KCS-FCnet-derived Gaussian functional connectivity patterns for representative subjects. As observed, these visualizations are consistent with the prior findings reported in [53], which revealed a direct association between pain perception and decreased activity in the alpha and beta frequency bands among male participants. Similarly, our results align with those in [54], where increased activation in the pregenual anterior cingulate cortex was strongly linked to the subjective unpleasantness of pain in female subjects. Collectively, these observations, supported by our FCAMs, underscore the relevance of specific EEG frequency bands in encoding pain-related neural signatures, thereby reinforcing their critical role in achieving accurate and interpretable pain classification.

4.4. Limitations

Despite the promising results obtained with our proposed EEG-pain detection framework using KCS-FCnet and FCAM, several limitations should be acknowledged. First, although the model shows competitive subject-independent performance, especially when compared to traditional methods, the variability in EEG responses across individuals remains a significant challenge. Inter-subject variability related to genetic, psychological, and neurodevelopmental factors can result in distinct neural signatures of pain, which limits the generalizability of DL models trained on limited cohorts. Furthermore, while sex-specific grouping enhanced cross-subject pain detection performance in our experiments, the model’s ability to generalize across other demographic dimensions—such as cultural background, pain tolerance, or cognitive state—was not explored and may affect its robustness in real-world clinical scenarios [3].
Another key limitation concerns the availability and diversity of EEG datasets for pain assessment. Most publicly available databases, including the one used in this study, rely on controlled experimental pain stimuli (e.g., laser-evoked pain) that may not fully capture the complexity of chronic or spontaneous pain experienced by patients in clinical settings [24]. Additionally, the relatively short duration of EEG recordings and the binary nature of the classification task (no-pain vs. high-pain) do not reflect the continuous and subjective nature of real pain experiences. This underscores the need for future work to explore multimodal data fusion (e.g., EEG with fNIRS, facial expressions, or physiological signals), develop more nuanced pain intensity scales, and validate models in naturalistic and clinical environments. Moreover, interpretability methods such as FCAMs, while useful, still require domain expert validation to ensure the clinical relevance of the identified patterns.
Finally, the laterality of stimulus application is an important consideration in pain neurophysiology. Although our study focused on brain responses regardless of the stimulus side, we recognize that stimulation of the left versus right hand can modulate EEG patterns due to hemispheric differences in pain processing. Although early components of the laser-evoked potential, such as the N1 wave, tend to be more strongly contralateral, later components (N2, P2) associated with pain perception and salience are more bilaterally distributed [55,56].

5. Conclusions

We present a novel EEG-based pain detection framework designed to support pain assessment in non-verbal patients. Central to our approach is the Kernel Cross-Spectral Functional Connectivity Network (KCS-FCnet), which effectively captures discriminative spatio-frequency EEG patterns by modeling pairwise channel dependencies through Gaussian kernel-based connectivity. To improve interpretability, we introduce the Frequency Class Activation Mapping (FCAM) technique—an adaptation of the Grad-CAM++ method—allowing for detailed visualization of relevant EEG channels and frequency bands contributing to the model’s predictions. Furthermore, we perform a comprehensive cross-subject analysis that incorporates subject-dependent performance metrics, KCS-FCnet-derived functional connectivity patterns, as well as demographic attributes such as sex and age, enabling the grouping of individuals with similar pain-related neural responses.
Our results demonstrate that the proposed KCS-FCnet framework offers a robust and interpretable solution for EEG-based pain detection, particularly suited for non-verbal populations. By integrating kernel-based functional connectivity estimation with convolutional neural networks, our model effectively captures spatio-frequency dependencies across EEG channels, achieving superior classification performance compared to traditional machine learning methods and baseline deep learning models such as EEGNet. Also, the incorporation of Frequency Class Activation Maps (FCAMs) further enhances the model’s interpretability, providing insight into the spectral and spatial patterns associated with pain states and differentiating male and female pain detection patterns.
Additionally, the cross-subject analysis underscores the model’s generalization capability, especially when stratifying by sex and leveraging connectivity-based metrics. The improved performance within specific demographic subgroups suggests that personalized models, informed by subject-specific features, can yield more accurate and reliable pain detection. These findings reinforce the importance of considering both biological and connectivity-based heterogeneity in EEG signals when developing clinically applicable tools for objective pain assessment.
Future work will explore the extension of this approach to multimodal data, integrating EEG with other physiological or behavioral signals such as fNIRS, heart rate variability, or facial expressions to enhance pain classification performance in real-world scenarios [57]. We also plan to validate the framework on clinical datasets involving chronic and spontaneous pain conditions, moving beyond experimental stimuli [58]. In addition, we will incorporate quantitative feature-relevance analyses to objectively determine the contribution of each attribute and eliminate dependence on purely visual evaluation. Also, we will explore the effects of stimulus laterality, including dominant versus non-dominant hand stimulation, on pain-related EEG patterns. Furthermore, the development of lightweight, real-time implementations of KCS-FCnet will be essential for deployment in bedside or wearable monitoring systems, ultimately supporting continuous and objective pain assessment in clinical environments.

Author Contributions

Conceptualization, S.B.-O., A.M.Á.-M. and J.G.-G.; data curation, S.B.-O.; methodology, S.B.-O., A.M.Á.-M. and D.C.-P.; project administration, A.M.Á.-M. and A.O.-G.; supervision, A.M.Á.-M., J.G.-G. and D.C.-P.; resources, S.B.-O. and D.C.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This projects received grants provided by the research program ACEMATE, cod. 111091991908, and the project “Optimización de rutas de atención en salud mental a través de estrategias comunitarias y de herramientas tecnológicas para el pre-diagnóstico, la intervención y el seguimiento de poblaciones con factores de riesgo biopsicosocial” with code 92406, both funded by Minciencias.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The publicly available dataset analyzed in this study and our Python codes can be found at https://github.com/sbuitragoo/master-thesis/tree/main/code (accessed on 1 December 2024).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lindsay, N.M.; Chen, C.; Gilam, G.; Mackey, S.; Scherrer, G. Brain circuits for pain and its treatment. Sci. Transl. Med. 2021, 13, eabj7360. [Google Scholar] [CrossRef]
  2. Calati, R.; Bakhiyi, C.L.; Artero, S.; Ilgen, M.; Courtet, P. The impact of physical pain on suicidal thoughts and behaviors: Meta-analyses. J. Psychiatr. Res. 2015, 71, 16–32. [Google Scholar] [CrossRef] [PubMed]
  3. Zhang, M.; Zhu, L.; Lin, S.Y.; Herr, K.; Chi, C.L.; Demir, I.; Dunn Lopez, K.; Chi, N.C. Using artificial intelligence to improve pain assessment and pain management: A scoping review. J. Am. Med. Inform. Assoc. 2023, 30, 570–587. [Google Scholar] [CrossRef]
  4. Ploner, M.; Sorg, C.G.J. Brain Rhythms of Pain. Trends Cogn. Sci. 2017, 21, 100–110. [Google Scholar] [CrossRef]
  5. Baliki, M.N.; Apkarian, A.V. Nociception, pain, negative moods, and behavior selection. Neuron 2015, 87, 474–491. [Google Scholar] [CrossRef]
  6. Cascella, M.; Schiavo, D.; Cuomo, A.; Ottaiano, A.; Perri, F.; Patrone, R.; Migliarelli, S.; Bignami, E.G.; Vittori, A.; Cutugno, F. Artificial intelligence for automatic pain assessment: Research methods and perspectives. Pain Res. Manag. 2023, 2023, 6018736. [Google Scholar] [CrossRef]
  7. Wu, F.; Mai, W.; Tang, Y.; Liu, Q.; Chen, J.; Guo, Z. Learning Spatial-Spectral-Temporal EEG Representations with Deep Attentive-Recurrent-Convolutional Neural Networks for Pain Intensity Assessment. Neuroscience 2022, 481, 144–155. [Google Scholar] [CrossRef]
  8. Modares-Haghighi, P.; Boostani, R.; Nami, M.; Sanei, S. Quantification of pain severity using EEG-based functional connectivity. Biomed. Signal Process. Control 2021, 69, 102840. [Google Scholar] [CrossRef]
  9. Wagemakers, S.H.; van der Velden, J.M.; Gerlich, A.S.; Hindriks-Keegstra, A.W.; van Dijk, J.; Verhoeff, J. A Systematic Review of Devices and Techniques that Objectively Measure Patients’ Pain. Pain Physician 2019, 22, 1–13. [Google Scholar] [CrossRef]
  10. Nicolas-Alonso, L.F.; Gomez-Gil, J. Brain computer interfaces, a review. Sensors 2012, 12, 1211–1279. [Google Scholar] [CrossRef]
  11. Miao, M.; Hu, W.; Yin, H.; Zhang, K. Spatial-frequency feature learning and classification of motor imagery EEG based on deep convolution neural network. Comput. Math. Methods Med. 2020, 2020, 1981728. [Google Scholar] [CrossRef] [PubMed]
  12. Cao, J.; Zhao, Y.; Shan, X.; Wei, H.l.; Guo, Y.; Chen, L.; Erkoyuncu, J.A.; Sarrigiannis, P.G. Brain functional and effective connectivity based on electroencephalography recordings: A review. Hum. Brain Mapp. 2022, 43, 860–879. [Google Scholar] [CrossRef]
  13. Zis, P.; Liampas, A.; Artemiadis, A.; Tsalamandris, G.; Neophytou, P.; Unwin, Z.; Kimiskidis, V.K.; Hadjigeorgiou, G.M.; Varrassi, G.; Zhao, Y.; et al. EEG Recordings as Biomarkers of Pain Perception: Where Do We Stand and Where to Go? Pain Ther. 2022, 11, 369–380. [Google Scholar] [CrossRef] [PubMed]
  14. Guggisberg, A.; Dalal, S.; Findlay, A.; Nagarajan, S. High-frequency oscillations in distributed neural networks reveal the dynamics of human decision making. Front. Hum. Neurosci. 2008, 2, 14. [Google Scholar] [CrossRef] [PubMed]
  15. Koenig, T.; Smailovic, U.; Jelic, V. Past, present and future EEG in the clinical workup of dementias. Psychiatry Res. Neuroimaging 2020, 306, 111182. [Google Scholar] [CrossRef]
  16. Yadav, S.; Saha, S.K.; Kar, R. Evolutionary algorithm-based optimal wiener-adaptive filter design: An application on eeg noise mitigation. IEEE Trans. Instrum. Meas. 2023, 72, 4011912. [Google Scholar] [CrossRef]
  17. Sazgar, M.; Young, M.G. EEG Artifacts. In Absolute Epilepsy and EEG Rotation Review: Essentials for Trainees; Springer International Publishing: Cham, Swizerland, 2019; pp. 149–162. [Google Scholar] [CrossRef]
  18. Mumtaz, W.; Rasheed, S.; Irfan, A. Review of challenges associated with the EEG artifact removal methods. Biomed. Signal Process. Control 2021, 68, 102741. [Google Scholar] [CrossRef]
  19. Marsicano, G.; Bertini, C.; Ronconi, L. Decoding cognition in neurodevelopmental, psychiatric and neurological conditions with multivariate pattern analysis of EEG data. Neurosci. Biobehav. Rev. 2024, 164, 105795. [Google Scholar] [CrossRef]
  20. Guldner, S.; Ernst, J.; Nees, F.; Holz, N. The Utility of Biomarkers for Assessment and Intervention in Neurodevelopmental Disorders. In Digital Technologies for Learning and Psychological Interventions; Springer: Berlin/Heidelberg, Germany, 2024; pp. 43–81. [Google Scholar] [CrossRef]
  21. Bastianelli, M.; Bertini, G.; Cossu, C.; Coviello, C.; Dani, C.; Frassineti, L.; Gabbanini, S.; Guarguagli, V.; Lanata, A.; Lori, S.; et al. Multivariate EEG functional connectivity analysis in newborns: Preliminary results on painful procedures and neurodevelopmental outcomes. J. Neonatal-Perinat. Med. 2024, 17, 361–362. [Google Scholar] [CrossRef]
  22. Mari, T.; Henderson, J.; Maden, M.; Nevitt, S.; Duarte, R.; Fallon, N. Systematic Review of the Effectiveness of Machine Learning Algorithms for Classifying Pain Intensity, Phenotype or Treatment Outcomes Using Electroencephalogram Data. J. Pain 2021, 23, 349–369. [Google Scholar] [CrossRef]
  23. Rockholt, M.M.; Kenefati, G.; Doan, L.V.; Chen, Z.S.; Wang, J. In search of a composite biomarker for chronic pain by way of EEG and machine learning: Where do we currently stand? Front. Neurosci. 2023, 17, 1186418. [Google Scholar] [CrossRef] [PubMed]
  24. Teel, E.F.; Ocay, D.D.; Blain-Moraes, S.; Ferland, C.E. Accurate classification of pain experiences using wearable electroencephalography in adolescents with and without chronic musculoskeletal pain. Front. Pain Res. 2022, 3, 991793. [Google Scholar] [CrossRef] [PubMed]
  25. Nezam, T.; Boostani, R.; Abootalebi, V.; Rastegar, K. A Novel Classification Strategy to Distinguish Five Levels of Pain Using the EEG Signal Features. IEEE Trans. Affect. Comput. 2021, 12, 131–140. [Google Scholar] [CrossRef]
  26. Afrasiabi, S.; Boostani, R.; Masnadi-Shirazi, M.A.; Nezam, T. An EEG based hierarchical classification strategy to differentiate five intensities of pain. Expert Syst. Appl. 2021, 180, 115010. [Google Scholar] [CrossRef]
  27. Murphy, K. Probabilistic Machine Learning: An Introduction; Adaptive Computation and Machine Learning Series; MIT Press: Cambridge, MA, USA, 2022. [Google Scholar]
  28. Rakhmatulin, I.; Dao, M.S.; Nassibi, A.; Mandic, D. Exploring Convolutional Neural Network Architectures for EEG Feature Extraction. Sensors 2024, 24, 877. [Google Scholar] [CrossRef]
  29. Liu, J.; Wu, G.; Luo, Y.; Qiu, S.; Yang, S.; Li, W.; Bi, Y. EEG-based emotion classification using a deep neural network and sparse autoencoder. Front. Syst. Neurosci. 2020, 14, 43. [Google Scholar] [CrossRef]
  30. Chowdary, M.K.; Anitha, J.; Hemanth, D.J. Emotion recognition from EEG signals using recurrent neural networks. Electronics 2022, 11, 2387. [Google Scholar] [CrossRef]
  31. Ma, Y.; Song, Y.; Gao, F. A novel hybrid CNN-transformer model for EEG motor imagery classification. In Proceedings of the 2022 International Joint Conference on Neural Networks (IJCNN), Padua, Italy, 18–23 July 2022; pp. 1–8. [Google Scholar] [CrossRef]
  32. Li, X.; Xiong, H.; Li, X.; Wu, X.; Zhang, X.; Liu, J.; Bian, J.; Dou, D. Interpretable deep learning: Interpretation, interpretability, trustworthiness, and beyond. Knowl. Inf. Syst. 2022, 64, 3197–3234. [Google Scholar] [CrossRef]
  33. Bhardwaj, H.; Tomar, P.; Sakalle, A.; Ibrahim, W. Eeg-based personality prediction using fast fourier transform and deeplstm model. Comput. Intell. Neurosci. 2021, 2021, 6524858. [Google Scholar] [CrossRef]
  34. Tobón-Henao, M.; Álvarez Meza, A.M.; Castellanos-Dominguez, C.G. Kernel-Based Regularized EEGNet Using Centered Alignment and Gaussian Connectivity for Motor Imagery Discrimination. Computers 2023, 12, 145. [Google Scholar] [CrossRef]
  35. García-Murillo, D.G.; Álvarez Meza, A.M.; Castellanos-Dominguez, C.G. KCS-FCnet: Kernel Cross-Spectral Functional Connectivity Network for EEG-Based Motor Imagery Classification. Diagnostics 2023, 13, 1122. [Google Scholar] [CrossRef] [PubMed]
  36. Zhou, B.; Khosla, A.; Lapedriza, A.; Oliva, A.; Torralba, A. Learning Deep Features for Discriminative Localization. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 2921–2929. [Google Scholar] [CrossRef]
  37. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. Int. J. Comput. Vis. 2019, 128, 336–359. [Google Scholar] [CrossRef]
  38. Tiemann, L.; Hohn, V.; Ploner, M. Brain Mediators of Pain. Available online: https://osf.io/bsv86/ (accessed on 1 December 2024).
  39. Tiemann, L.; Hohn, V.; Ta Dinh, S.; May, E.; Nickel, M.; Gross, J.; Ploner, M. Distinct patterns of brain activity mediate perceptual and motor and autonomic responses to noxious stimuli. Nat. Commun. 2018, 9, 4487. [Google Scholar] [CrossRef]
  40. Sun, G.; Wen, Z.; Ok, D.; Doan, L.; Wang, J.; Chen, Z.S. Detecting acute pain signals from human EEG. J. Neurosci. Methods 2021, 347, 108964. [Google Scholar] [CrossRef] [PubMed]
  41. Cohen, L. The generalization of the Wiener-Khinchin theorem. In Proceedings of the 1998 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP’98 (Cat. No. 98CH36181), Seattle, WA, USA, 15 May 1998; Volume 3, pp. 1577–1580. [Google Scholar] [CrossRef]
  42. Wackernagel, H. Multivariate Geostatistics: An Introduction with Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2003. [Google Scholar]
  43. Chattopadhay, A.; Sarkar, A.; Howlader, P.; Balasubramanian, V.N. Grad-cam++: Generalized gradient-based visual explanations for deep convolutional networks. In Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 12–15 March 2018; pp. 839–847. [Google Scholar] [CrossRef]
  44. Berger, V.W.; Zhou, Y. Kolmogorov–smirnov test: Overview. In Wiley Statsref: Statistics Reference Online; Wiley: Hoboken, NJ, USA, 2014. [Google Scholar] [CrossRef]
  45. Ang, K.K.; Chin, Z.Y.; Zhang, H.; Guan, C. Filter Bank Common Spatial Pattern (FBCSP) in Brain-Computer Interface. In Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China, 1–6 June 2008; pp. 2390–2397. [Google Scholar] [CrossRef]
  46. Lawhern, V.J.; Solon, A.J.; Waytowich, N.R.; Gordon, S.M.; Hung, C.P.; Lance, B.J. EEGNet: A compact convolutional neural network for EEG-based brain–computer interfaces. J. Neural Eng. 2018, 15, 056013. [Google Scholar] [CrossRef]
  47. Schirrmeister, R.T.; Springenberg, J.T.; Fiederer, L.D.J.; Glasstetter, M.; Eggensperger, K.; Tangermann, M.; Hutter, F.; Burgard, W.; Ball, T. Deep learning with convolutional neural networks for EEG decoding and visualization. Hum. Brain Mapp. 2017, 38, 5391–5420. [Google Scholar] [CrossRef]
  48. Kim, S.J.; Lee, D.H.; Lee, S.W. Rethinking CNN Architecture for Enhancing Decoding Performance of Motor Imagery-based EEG Signals. IEEE Access 2022, 10, 96984–96996. [Google Scholar] [CrossRef]
  49. Musallam, Y.K.; AlFassam, N.I.; Muhammad, G.; Amin, S.U.; Alsulaiman, M.; Abdul, W.; Altaheri, H.; Bencherif, M.A.; Algabri, M. Electroencephalography-based motor imagery classification using temporal convolutional network fusion. Biomed. Signal Process. Control 2021, 69, 102826. [Google Scholar] [CrossRef]
  50. Tedeschi, R.; Giorgi, F.; Platano, D.; Berti, L. Classifying Low Back Pain Through Pain Mechanisms: A Scoping Review for Physiotherapy Practice. J. Clin. Med. 2025, 14, 412. [Google Scholar] [CrossRef]
  51. Khayretdinova, M.; Zakharov, I.; Pshonkovskaya, P.; Adamovich, T.; Kiryasov, A.; Zhdanov, A.; Shovkun, A. Prediction of brain sex from EEG: Using large-scale heterogeneous dataset for developing a highly accurate and interpretable ML model. NeuroImage 2024, 285, 120495. [Google Scholar] [CrossRef]
  52. Al-Nafjan, A.; Alshehri, H.; Aldayel, M. Objective Pain Assessment Using Deep Learning Through EEG-Based Brain–Computer Interfaces. Biology 2025, 14, 210. [Google Scholar] [CrossRef] [PubMed]
  53. Elsayed, M.; Sim, K.S.; Tan, S.C. A Novel Approach to Objectively Quantify the Subjective Perception of Pain Through Electroencephalogram Signal Analysis. IEEE Access 2020, 8, 199920–199930. [Google Scholar] [CrossRef]
  54. Girard-Tremblay, L.; Auclair, V.; Daigle, K.; Léonard, G.; Whittingstall, K.; Goffaux, P. Sex Differences in the Neural Representation of Pain Unpleasantness. J. Pain 2014, 15, 867–877. [Google Scholar] [CrossRef] [PubMed]
  55. Bromm, B.; Lorenz, J. Neurophysiological evaluation of pain. Electroencephalogr. Clin. Neurophysiol. 1998, 107, 227–253. [Google Scholar] [CrossRef]
  56. Mouraux, A.; Iannetti, G.D. Nociceptive laser-evoked brain potentials do not reflect nociceptive-specific neural activity. J. Neurophysiol. 2009, 101, 3258–3269, Erratum in J. Neurophysiol. 2010, 103, 1145. [Google Scholar] [CrossRef]
  57. Cascella, M.; Leoni, M.L.; Shariff, M.N.; Varrassi, G. Artificial Intelligence-Driven Diagnostic Processes and Comprehensive Multimodal Models in Pain Medicine. J. Pers. Med. 2024, 14, 983. [Google Scholar] [CrossRef]
  58. Badura, A.; Bienkowska, M.; Mysliwiec, A.; Pietka, E. Continuous short-term pain assessment in temporomandibular joint therapy using LSTM models supported by heat-induced pain data patterns. IEEE Trans. Neural Syst. Rehabil. Eng. 2024, 32, 3565–3576. [Google Scholar] [CrossRef]
Figure 1. Brain Mediators of Pain EEG Montage. The topoplot illustrates the sensor positions in a 10–20 placement EEG electrode system, containing 65 channels. In addition, it highlights, in color, the main parts of the brain (Applsci 15 04804 i001 Frontal left, Applsci 15 04804 i002 Frontal, Applsci 15 04804 i003 Frontal right, Applsci 15 04804 i004 Central right, Applsci 15 04804 i005 Posterior right, Applsci 15 04804 i006 Posterior, Applsci 15 04804 i007 Posterior left, Applsci 15 04804 i008 Central left).
Figure 1. Brain Mediators of Pain EEG Montage. The topoplot illustrates the sensor positions in a 10–20 placement EEG electrode system, containing 65 channels. In addition, it highlights, in color, the main parts of the brain (Applsci 15 04804 i001 Frontal left, Applsci 15 04804 i002 Frontal, Applsci 15 04804 i003 Frontal right, Applsci 15 04804 i004 Central right, Applsci 15 04804 i005 Posterior right, Applsci 15 04804 i006 Posterior, Applsci 15 04804 i007 Posterior left, Applsci 15 04804 i008 Central left).
Applsci 15 04804 g001
Figure 2. Brain Mediators of Pain database experimental paradigms sketch.
Figure 2. Brain Mediators of Pain database experimental paradigms sketch.
Applsci 15 04804 g002
Figure 3. Kernel Cross-Spectral Functional Connectivity network (KCS-FCnet) backbone for EEG-based pain detection. Our proposal aims to support non-verbal patient pain detection through brain activity analysis (no-pain vs. high-pain).
Figure 3. Kernel Cross-Spectral Functional Connectivity network (KCS-FCnet) backbone for EEG-based pain detection. Our proposal aims to support non-verbal patient pain detection through brain activity analysis (no-pain vs. high-pain).
Applsci 15 04804 g003
Figure 4. This analysis includes 22 features per subject, incorporating demographic information (Age and Sex), subject-specific performance metrics (Accuracy, Cohen’s Kappa, and AUC) for FB-CSP, EEGNet, and KCS-FCnet, along with their standard deviations. Additionally, functional connectivity statistics derived from KCS-FCnet, such as entropy and p-value, are also included.
Figure 4. This analysis includes 22 features per subject, incorporating demographic information (Age and Sex), subject-specific performance metrics (Accuracy, Cohen’s Kappa, and AUC) for FB-CSP, EEGNet, and KCS-FCnet, along with their standard deviations. Additionally, functional connectivity statistics derived from KCS-FCnet, such as entropy and p-value, are also included.
Applsci 15 04804 g004
Figure 5. Proposed pipeline for subject-dependent and cross-subject pain detection testing.
Figure 5. Proposed pipeline for subject-dependent and cross-subject pain detection testing.
Applsci 15 04804 g005
Figure 6. Subject-dependent pain detection results. An accuracy comparison between FBCSP, EEGNet, and KCS-FCnet (ours) is presented. Subjects are sorted regarding the KCS-FCnet performance.
Figure 6. Subject-dependent pain detection results. An accuracy comparison between FBCSP, EEGNet, and KCS-FCnet (ours) is presented. Subjects are sorted regarding the KCS-FCnet performance.
Applsci 15 04804 g006
Figure 7. Pairwise statistical comparison of subject-dependent accuracies. The matrix displays the p-values obtained from two-tailed paired t-tests comparing the classification accuracies of every method as reported in Figure 6 across all subjects. Comparisons with p-values below 0.05 are considered statistically significant.
Figure 7. Pairwise statistical comparison of subject-dependent accuracies. The matrix displays the p-values obtained from two-tailed paired t-tests comparing the classification accuracies of every method as reported in Figure 6 across all subjects. Comparisons with p-values below 0.05 are considered statistically significant.
Applsci 15 04804 g007
Figure 8. Two-dimensional t-SNE projection visualizing cross-subject relationships. Subject-dependent performance (ACC, AUC, and Kappa) for FBSCP, EEGNet, and KCS-FCnet. Also, KCS-FCnet functional connectivity patterns, sex, and age features are used for subject stratification. Points within the blue region represent women, while those within the orange regions represent men. The sizes correspond to the subjects’ ages, and the color point stands for subject-dependent pain detection ACC.
Figure 8. Two-dimensional t-SNE projection visualizing cross-subject relationships. Subject-dependent performance (ACC, AUC, and Kappa) for FBSCP, EEGNet, and KCS-FCnet. Also, KCS-FCnet functional connectivity patterns, sex, and age features are used for subject stratification. Points within the blue region represent women, while those within the orange regions represent men. The sizes correspond to the subjects’ ages, and the color point stands for subject-dependent pain detection ACC.
Applsci 15 04804 g008
Figure 9. Two-dimensional t-SNE projection visualizing cross-subject relationships regarding the KCS-FCnet estimated connectivity. Pruned functional connectivity matrices based on the 2KS are shown (see Section 2.4). The color bar depicts the p-value of every connection for each subject matrix, where deep blue means more class separability. Therefore, the bluer the matrix, the better the discriminability. Outer boxes indicate subject gender: orange for male and blue for female.
Figure 9. Two-dimensional t-SNE projection visualizing cross-subject relationships regarding the KCS-FCnet estimated connectivity. Pruned functional connectivity matrices based on the 2KS are shown (see Section 2.4). The color bar depicts the p-value of every connection for each subject matrix, where deep blue means more class separability. Therefore, the bluer the matrix, the better the discriminability. Outer boxes indicate subject gender: orange for male and blue for female.
Applsci 15 04804 g009
Figure 10. Males’ group accuracy comparison within the subject-dependent and cross-subject pain detection experiments.
Figure 10. Males’ group accuracy comparison within the subject-dependent and cross-subject pain detection experiments.
Applsci 15 04804 g010
Figure 11. Females’ group accuracy comparison within the subject-dependent and cross-subject pain detection experiments.
Figure 11. Females’ group accuracy comparison within the subject-dependent and cross-subject pain detection experiments.
Applsci 15 04804 g011
Figure 12. FCAM-based spatio-frequency results. We present Subject 15 as a representative male subject. Theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), gamma (30–60 Hz), and full-band (4–60 Hz) are shown. FCAM relevance vector is normalized between 0 and 1, considering both no-pain and high-pain pain detection classes.
Figure 12. FCAM-based spatio-frequency results. We present Subject 15 as a representative male subject. Theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), gamma (30–60 Hz), and full-band (4–60 Hz) are shown. FCAM relevance vector is normalized between 0 and 1, considering both no-pain and high-pain pain detection classes.
Applsci 15 04804 g012
Figure 13. FCAM-based spatio-frequency results. We present Subject 29 as a representative female subject. Theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), gamma (30–60 Hz), and full-band (4–60 Hz) are shown. FCAM relevance vector is normalized between 0 and 1, considering both no-pain and high-pain pain detection classes.
Figure 13. FCAM-based spatio-frequency results. We present Subject 29 as a representative female subject. Theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), gamma (30–60 Hz), and full-band (4–60 Hz) are shown. FCAM relevance vector is normalized between 0 and 1, considering both no-pain and high-pain pain detection classes.
Applsci 15 04804 g013
Figure 14. KCS-FCnet-derived Gaussian functional connectivity patterns for representative subjects: female (Subject 29) and male (Subject 15). 2KS-based pruning is carried out to preserve discriminative FC with p-value <   0.05 . Then, connections exceeding 97% of the maximum relevance value are retained for visualization. Colored brain regions within the graph are related to Figure 1.
Figure 14. KCS-FCnet-derived Gaussian functional connectivity patterns for representative subjects: female (Subject 29) and male (Subject 15). 2KS-based pruning is carried out to preserve discriminative FC with p-value <   0.05 . Then, connections exceeding 97% of the maximum relevance value are retained for visualization. Colored brain regions within the graph are related to Figure 1.
Applsci 15 04804 g014
Table 1. Brain Mediators of Pain database demographic information summary.
Table 1. Brain Mediators of Pain database demographic information summary.
AttributeValue
Men26
Women25
Min Age20
Max Age37
Mean Age26.74 ± 3.9
Table 2. Deep learning hyperparameter setting.
Table 2. Deep learning hyperparameter setting.
Training HyperparameterArgumentValue
MonitorTraining Loss
Factor0.1
Reduce learning rate on plateauPatience30
Min Delta0.01
Min Learning Rate0
AdamLearning Rate0.1
Stratified Shuffle SplitSplits5
Test Size0.2
Table 3. Detailed KCS-FCnet architecture for pain detection.
Table 3. Detailed KCS-FCnet architecture for pain detection.
LayerOutput ShapeParams.
Input(C, T, 1)
Conv2D(C, T Δ T + 1 , F ˜ )Max norm = 2.0 , Kernel size = ( 1 , Δ T ) , Stride size = ( 1 , 1 ) , Bias = False
BatchNormalization(C, T Δ T + 1 , F ˜ )
ELU Activation
FC Block( F ˜ , C · ( C 1 ) / 2 , 1)
AveragePooling2D(1, C · ( C 1 ) / 2 , 1)
BatchNormalization(1, C · ( C 1 ) / 2 , 1)
ELU Activation
Flatten C · ( C 1 ) / 2
Dropout C · ( C 1 ) / 2 Dropout rate = 0.5
Dense K ˜ Max norm = 0.5
Softmax
Table 4. Average subject-dependent pain detection performance. Standard deviation is also included. − stands for not provided.
Table 4. Average subject-dependent pain detection performance. Standard deviation is also included. − stands for not provided.
ApproachAccuracyKappaAUC
Power features + SVM [40]56.5 ± 7.5– ± –– ± –
FBCSP [45]53.0 ± 3.85.9 ± 7.653.0 ± 3.8
EEGNet [46]62.5 ± 9.924.9 ± 19.764.6 ± 14.7
DeepConvNet [47]52.4 ± 8.24.9 ± 16.360.1 ± 14.4
ShallowConvNet [48]61.8 ± 10.523.5 ± 21.166.9 ± 13.5
TCFusionnet [49]68.6 ± 10.637.2 ± 21.277.3 ± 13.8
KCS-FCnet (ours)76.4 ± 9.152.8 ± 18.181.2 ± 11.5
Table 5. Scoring matrix features details to support cross-subject pain detection analysis.
Table 5. Scoring matrix features details to support cross-subject pain detection analysis.
Feature TypeNameAdded for# of Features
SexEvery Subject1
AgeEvery Subject1
Subject-Specific FeaturesAccuracyFB-CSP, EEGNet, KCS-FCnet3
Cohen’s KappaFB-CSP, EEGNet, KCS-FCnet3
AUCFB-CSP, EEGNet, KCS-FCnet3
Accuracy STDFB-CSP, EEGNet, KCS-FCnet3
Classification VariabilityCohen’s Kappa STDFB-CSP, EEGNet, KCS-FCnet3
AUC STDFB-CSP, EEGNet, KCS-FCnet3
KCS-FCnet Functional Connectivity2KS Test ResultsKCS-FCnet2
Total # of features22
Table 6. Gender-based group distribution. Male and female subjects with subject-dependent A C C > 85 % are considered.
Table 6. Gender-based group distribution. Male and female subjects with subject-dependent A C C > 85 % are considered.
GroupSubjectsMin AgeMax AgeAverage Age
Females1, 10, 12, 23, 29, 46203626.5 ± 3.9
Males15, 19, 21, 25, 27223327.1 ± 3.5
Table 7. Male cross-subject pain detection results. A LOSO cross-validation is carried out. Average ACC and standard deviation are presented.
Table 7. Male cross-subject pain detection results. A LOSO cross-validation is carried out. Average ACC and standard deviation are presented.
ApproachAccuracyKappaAUC
FBCSP [45]57.6 ± 7.815.3 ± 15.657.7 ± 7.8
EEGNet [46]77.7 ± 3.755.5 ± 7.586.5 ± 3.7
DeepConvNet [47]58.2 ± 8.516.4 ± 17.176.9 ± 9.6
ShallowConvNet [48]70.6 ± 8.041.1 ± 16.085.9 ± 4.2
TCFusionnet [49]81.0 ± 17.162.0 ± 34.193.0 ± 5.6
KCS-FCnet (ours)80.8 ± 6.461.6 ± 12.890.8 ± 7.7
Table 8. Female cross-subject pain detection results. A LOSO cross-validation is carried out. Average ACC and standard deviation are presented.
Table 8. Female cross-subject pain detection results. A LOSO cross-validation is carried out. Average ACC and standard deviation are presented.
ApproachAccuracyKappaAUC
FBCSP [45]62.5 ± 10.125.0 ± 20.262.5 ± 10.1
EEGNet [46]63.3 ± 10.626.6 ± 21.178.3 ± 17.9
DeepConvNet [47]56.2 ± 5.912.5 ± 11.872.9 ± 11.6
ShallowConvNet [48]67.1 ± 10.434.2 ± 20.181.1 ± 10.7
TCFusionnet [49]64.6 ± 14.729.2 ± 29.379.6 ± 14.8
KCS-FCnet (ours)67.5 ± 14.035.0 ± 28.180.9 ± 18.3
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Buitrago-Osorio, S.; Gil-González, J.; Álvarez-Meza, A.M.; Cardenas-Peña, D.; Orozco-Gutierrez, A. Electroencephalography-Based Pain Detection Using Kernel Spectral Connectivity Network with Preserved Spatio-Frequency Interpretability. Appl. Sci. 2025, 15, 4804. https://doi.org/10.3390/app15094804

AMA Style

Buitrago-Osorio S, Gil-González J, Álvarez-Meza AM, Cardenas-Peña D, Orozco-Gutierrez A. Electroencephalography-Based Pain Detection Using Kernel Spectral Connectivity Network with Preserved Spatio-Frequency Interpretability. Applied Sciences. 2025; 15(9):4804. https://doi.org/10.3390/app15094804

Chicago/Turabian Style

Buitrago-Osorio, Santiago, Julian Gil-González, Andrés Marino Álvarez-Meza, David Cardenas-Peña, and Alvaro Orozco-Gutierrez. 2025. "Electroencephalography-Based Pain Detection Using Kernel Spectral Connectivity Network with Preserved Spatio-Frequency Interpretability" Applied Sciences 15, no. 9: 4804. https://doi.org/10.3390/app15094804

APA Style

Buitrago-Osorio, S., Gil-González, J., Álvarez-Meza, A. M., Cardenas-Peña, D., & Orozco-Gutierrez, A. (2025). Electroencephalography-Based Pain Detection Using Kernel Spectral Connectivity Network with Preserved Spatio-Frequency Interpretability. Applied Sciences, 15(9), 4804. https://doi.org/10.3390/app15094804

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop