Journal of Robotics and Control (JRC) Volume 7. Issue 3, 2026 ISSN: 2715-5072. DOI: 10. 18196/jrc. SpatialAeTemporal Connectivity Descriptors for EEG-Based Mental Stress Detection Using Interpretable Machine Learning Dwi Utari Surya 1. Sholeh Hadi Pramono 2*. Panca Mudjirahardjo 3. Muhammad Aziz Muslim 4. Cries Avian 5. Mahdin Rohmatillah 6 1, 2, 3, 4,5,6 Department of Electrical Engineering. Universitas Brawijaya. Malang. Indonesia Department of Creative and Digital Industry. Universitas Brawijaya. Malang. Indonesia Email: 1 d. utarisurya@ub. id, 2* sholehpramono@ub. id, 3 panca@ub. id, 4 muh_aziz@ub. id, 5 cries. avian@ub. mahdin94@ub. *Corresponding Author AbstractAi Mental stress is a massive threat to global health because it has serious adverse effects on people's memory, emotional well-being, and productivity. Although electroencephalography (EEG) offers a noninvasive, high-temporal-resolution modality for stress assessment, the complex, non-stationary nature of stressrelated neural responses remains a significant challenge for reliable EEG-based classification systems. The Research contribution is the development of an interpretable and modular EEG-based stress recognition framework that systematically integrates spatialAe temporal connectivity descriptors with classical machine learning models. The proposed framework extracts handcrafted features from two complementary domains: temporal descriptors, including time-domain statistics and Hjorth parameters, and spatial connectivity measures, including inter-channel Pearson correlation, amplitude asymmetry, and Phase Lag Index (PLI). addition, a log-transformed meta-correlation descriptor is introduced to capture nonlinear dependencies among temporal features. EEG signals from the DASPS dataset are segmented and evaluated using stratified 5-fold crossvalidation across multiple classical classifiers. Experimental results demonstrate that the proposed framework achieves 99. 18% accuracy and 99. 89% AUC in binary stress classification using KNN, and 98. accuracy and 99. 95% AUC in multiclass classification using SVM. Furthermore. XGBoost provides a favorable balance between accuracy and computational efficiency, achieving low inference latency . These results confirm consistent performance across classifiers without reliance on deep learning architectures. Overall, the proposed framework offers an interpretable, low-latency solution for EEG-based mental stress detection, with strong potential for deployment in practical applications, such as wearable mental health monitoring systems and real-time stress assessment platforms. KeywordsAi EEG stress detection. functional connectivity. handcrafted feature cross-validation. mental stress classification. affective computing INTRODUCTION Mental stress has become a widespread global issue with significant psychological, physiological, and socioeconomic consequences . The World Health Organization states that a considerable number of people endure stress-related symptoms, with chronic stress considered one of the main risks for the development of cardiovascular diseases, anxiety, and depression . In the fields of work, study, and healthcare, long-lasting stress has been associated with reduced productivity, impaired decision-making, memory loss, and lack of attention . The modern lifestyle factors such as digital overload, economic insecurity, and social isolation not only aggravate these impacts but also contribute to the rising prevalence of stress among various populations . Therefore, the non-invasive approach of neurophysiological monitoring via electroencephalography (EEG) is considered a key to reliable, timely stress detection, which, in turn, supports mental wellness and enables proactive health interventions . EEG offers objective, realtime stress evaluation due to its high temporal resolution and sensitivity to changes in brain state, making this monitoring method highly promising . , . , . The potential of EEG to recognize mental stress has been and continues to be a subject of significant Research. however, the complexity and fluctuations of brain dynamics still pose significant challenges for analytical purposes . As a result of the massive intersubject differences, the variance of stress-related neural events over time, and the Influence of the surrounding context, these factors make it very hard to build a strong model . On the other hand, some deep learning models, such as CNN-based architectures. EEGNet, and convolutional recurrent neural networks (CRNN. , have achieved strong and reliable results in EEG classification and emotion recognition tasks . , . , . Nonetheless, deep learning methodologies still require complex training pipelines, the tuning of large parameter sets, and the use of non-trivial computational resources, which add to the overall cost . These needs might pose significant constraints on their application in real-time or wearable EEG systems, where low latency, interpretability, and power efficiency are critical requirements . The problem is even greater when low- Journal Web site: http://journal. id/index. php/jrc Journal Email: jrc@umy. Journal of Robotics and Control (JRC) ISSN: 2715-5072 cost, portable EEG devices are used, which are essential for monitoring stress in a scalable, practical manner. they limit the model's complexity and power consumption . Therefore, even today, classic machine learning models are still a viable option for real-time EEG-based stress monitoring . In recent years, researchers have examined a variety of methods for recognizing emotions and stress using EEG Deep neural networks, particularly convolutional and recurrent networks, have been widely used to extract hierarchical features from EEG signals. These networks often achieve perfect classification accuracy . However, their drawbacks include the need for large amounts of data, long training times, and substantial computational power . , . , . On the other hand, with the emergence of low-power deep learning architectures such as EEGNet and TinyML-based models, there is great potential to eliminate the computationally intensive stage of EEG analysis without loss of quality . , . , . Despite these breakthroughs, deep learning techniques remain tied to traditional convolutional training and parameter tuning, which may lead to issues with interpretability, fixed latency, and deployment in low-resource settings . On the other hand, the use of temporal features, spectral features, and inter-channel connectivity measures in handcrafted feature extraction methods can be considered a more complex yet physiologically meaningful approach, more appropriate for real-time EEG-based stress monitoring systems due to its lower computational complexity . The works of . support the idea that by merging analyses of different features temporally and spatially, bio-signal analysis, including EMG and EEG, can be enriched. Techniques such as the Phase Lag Index (PLI). Pearson correlation, and amplitude asymmetry are suggested for studying the spatial dynamics of the brain. Recent studies have continued to provide conclusive evidence that spatial connectivity features, such as correlation-based, coherence, and phase-synchronization measures, can be used to capture inter-regional communication patterns that decode stress and emotional To be specific, some of the latest Research has looked into the use of functional connectivity to improve the attention mechanism used in the cross-subject EEG emotion recognition and thereby connectivity integration improved generalization . Besides that, the fusion of phase- and amplitude-based connectivity has been able to provide a better decoding of the emotional responses . while the various methods of analyzing EEG connectivity during emotions have been suggesting the remarkable ability of spatial patterns to differentiate among emotions . Besides that, the modeling of spatialAetemporal connectivity has been frequently identified as a significant Research area in affective computing and stress-related EEG studies . Even so. EEG signals are no more than implicit spatial and temporal dynamics that reflect affective neural activity through interchannel interactions and time-varying brain Researchers have shown that integrating these domains produces better, more distinctive EEG representations for emotion analysis. To illustrate. STRFLNet, a spatio-temporal representation fusion learning network that effectively merges spatial dependencies and temporal evolution in EEG features, thereby increasing emotion recognition accuracy . Similarly, a Dynamic Collaborative Evolutionary Network can interpret complex spatiotemporal relationships, thereby achieving strong generalization across diverse domains . Additionally. DC-ASTGCN, which uses adaptive spatio-temporal graph convolution to model the directed relationships among channels, improves the decoding of emotional states . the whole, these studies argue that simultaneous modeling of spatial and temporal aspects is essential for revealing delicate neural patterns. Nevertheless, despite their effectiveness, deep learning-based spatio-temporal fusion methods are not suitable for real-time EEG stress monitoring applications due to their high reliance on large datasets, substantial computational resources, and limited interpretability. Furthermore, logarithmic and nonlinear transformations have recently been used in EEG-based connectivity analysis to enhance the robustness of correlation distributions. Proper transformation of connectivity features improves stability in sensor-space EEG connectivity estimation . on the other hand, nonlinear scaling enhances interpretability and discrimination in dynamic functional connectivity modeling . Besides, the necessity of normalization and transformation to reduce the variability in EEG-based connectivity measures . Likewise, logarithmic transformations in functional connectivity-based emotion decoding are used to maintain balanced dynamic ranges and improve classifier performance . These transformation techniques not only render the connectivity distributions uniform but also allow handmade descriptors to prove their EEG features are highly dimensional and are derived from spatial and temporal connectivity descriptors. For the above reason, classical machine learning models are compelling for structured data with a small number of samples. In small EEG datasets, traditional machine learning methods often outperform deep learning methods because they generalize better and are less computationally intensive . By the same token, feature reduction combined with classical classifiers such as SVM and KNN improved emotion recognition accuracy on small EEG feature sets . On top of that, conventional models remain very effective at generalization and are more reliable than deep learning architectures in structured EEG domains . Because of these benefits, classical machine learning classifiers are used in this Research to examine the discriminative power of handcrafted spatial-temporal features while still maintaining computational efficiency. The growing interest in connectivity-driven and deep fusion approaches has led to a relatively small number of studies that use handcrafted, interpretable frameworks to systematically integrate spatial-temporal connectivity measures with classical learning paradigms for EEG-based stress detection. However, the present study highlights the systematic integration of connectivity-based descriptors into a unified and interpretable handcrafted framework for stress detection . Moreover, previous assessments are often limited to single-setting classification analyses that focus on binary stress discrimination, thereby providing an inadequate Dwi Utari Surya. SpatialAeTemporal Connectivity Descriptors for EEG-Based Mental Stress Detection Using Interpretable Machine Learning Journal of Robotics and Control (JRC) ISSN: 2715-5072 understanding of the model's performance across different stress intensity levels . To overcome these difficulties, the current Research presents a distinctive SpatialAeTemporal Connectivity Descriptor (STCD) for EEG-based stress detection. The main aims are to create a flexible feature extraction pipeline that combines the time descriptors . tatistical measures and Hjorth parameter. with the spatial connectivity metrics . orrelation, amplitude asymmetry, and PLI), to test the performance using eight traditional machine learning classifiers for both binary and multiclass stress classification, and to examine the balance between the accuracy of the classification and the delay in processing for real-time The contributions of this work are threefold: . the establishment of a cohesive and easily understood EEGbased stress recognition framework using handmade spatialtemporal descriptors. an all-around assessment of eight traditional machine learning models in both binary and multiclass settings, in terms of accuracy, inference latency, and training efficiency. a comparative performance analysis against the previous state-of-the-art methods on the DASPS dataset. These contributions from the current Research paper provide a practical approach to developing EEG-based mental stress detection systems that are both affordable and scalable. To facilitate the proposed framework. Fig. 1 presents a conceptual overview of the spatialAetemporal connectivitybased stress recognition pipeline, summarizing the main processing stages from EEG acquisition to classification and Fig. Conceptual overview of the proposed spatialAetemporal connectivity. II. METHODOLOGY The STCD system is suggested for EEG-based mental stress classification, as shown in Fig. The workflow includes EEG acquisition and preprocessing, and the production of handcrafted temporal features and spatial connectivity descriptors. The resulting feature set is evaluated using multiple classical machine learning classifiers to perform both binary and multiclass stress Fig. Schematic of the STCD framework: EEG windows are processed to extract temporal and spatial features Dataset This Research revolves around the Database for Stress Processing under Simulated Conditions (DASPS), a public EEG dataset designed for the classification of anxious and stress states, among others. The DASPS dataset has been a standard for EEG-based stress recognition over the years, mainly because of its controlled experimental protocol and validated psychological labeling. The recordings in the dataset come from 23 healthy participants . men, 11 aged 18Ae35 year. , who viewed audiovisual stimuli with emotional content in a laboratory under controlled conditions, as shown in Figure 3. EEG signals were acquired using the Emotiv EPOC headset, which features 14 electrodes placed according to the international 10Ae20 system (AF3. F7. F3. FC5. T7. P7. O1. O2. P8. T8. FC6. F4. F8. AF. with a sampling rate of 128 Hz. Every participant completed 12 trials, each associated with one stimulus of a different emotional nature: neutral, low-stress, or high-stress. The stimuli were taken from the databases, i. IAPS. IADS, which are known to elicit emotions and lasted about 60 seconds per trial . This DASPS dataset was collected in accordance with approved ethical procedures, and all participants provided informed consent. Moreover, the stress labels were confirmed with standardized psychological tools such as HAM-A and SAM. For the binary and multiclass stress labels, valencearousal scores were used based on the original DASPS Dwi Utari Surya. SpatialAeTemporal Connectivity Descriptors for EEG-Based Mental Stress Detection Using Interpretable Machine Learning Journal of Robotics and Control (JRC) ISSN: 2715-5072 annotation protocol, which comprised threshold-based partitioning to indicate relative affective intensity. This has become a widely used method among EEG researchers in the field of affective computing, as it reflects self-reported emotional states rather than clinically certified stressors. However, just like most of the laboratory-based EEG datasets, the demographic range and recording conditions of DASPS might limit its generalization to different real-world populations, and hence, further validation on additional datasets may be required in future studies. Algorithmic Workflow of STCD The presented framework. STCD, proposes a SpatialAe Temporal Connectivity Descriptor (STCD) that provides a complete outline of the signal processing and classification The framework comprised a systematic activity that started with segmenting the multichannel EEG signals, followed by placing them in overlapping windows. From each window, handcrafted temporal features, comprising statistical descriptors and Hjorth parameters, and spatial features such as Phase Lag Index (PLI), amplitude asymmetry, and Pearson correlation, are extracted and concatenated into a unified vector. To capture higher-order relationships, a meta-correlation descriptor is computed by correlating the original feature vector with its logarithm, yielding an enriched representation. Fig 3. Overview of the DASPS Dataset Components Fig. 4 Overview of the STCD feature extraction and classification pipeline, illustrating Spatial-Temporal Connectivity Descriptor computation and metacorrelation integration. This final feature set is then used to train multiple classical classifiers, including XGBoost. SVM. Random Forest, and others, with a stratified 5-fold cross-validation Model performance is assessed using standard metrics such as accuracy, recall. F1-score. AUC. Training and Inference Time. Algorithm 1 presents the overall workflow of the proposed method, which can be summarized as follows: A EEG signals are acquired and preprocessed using bandpass filtering and artifact inspection. A The preprocessed EEG is segmented into fixed-length windows for feature extraction. A Temporal descriptors, including statistical measures and Hjorth parameters, are computed for each channel. Spatial connectivity descriptors, including correlationbased, amplitude asymmetry, and phase-lag index measures, are extracted to capture inter-channel Temporal and spatial features are integrated into a unified feature representation. The resulting feature vectors are classified using multiple classical machine learning models under binary and multiclass stress recognition settings. Model performance is evaluated based on classification accuracy, latency, and training efficiency Dwi Utari Surya. SpatialAeTemporal Connectivity Descriptors for EEG-Based Mental Stress Detection Using Interpretable Machine Learning Journal of Robotics and Control (JRC) ISSN: 2715-5072 ALGORITHM I: STCD EEG FEATURE EXTRACTION AND CLASSIFICATION Step Procedure Input : EEG signals ycu: EyAuA where: ycu = number of trials, yca = number of channels . , yc = number of time points per trial Output : Feature matrix yce_final OO EyA where yce is number of extracted features Segment EEG data using sliding window . ength = 256, step = . for i=1 to n: // For each trial ycuycycycnycayco Ia x. , :, :] for ch=1 to c: // Per channel NormalizeycuycaEa Ia ycIycycaycuyccycaycyccycycaycaycoyceyc . ) Compute temporal features: mean, std, skewness, kurtosis Hjorth activity, mobility, complexity Store channel-wise features as temporal End for for each channel pair . , a