# Real-Time Physiological Activity and Sleep State Monitoring System Using TS2Vec Embeddings and DBSCAN Clustering for Heart Rate and Motor Response Analysis in IoMT > Arifin A. URL kanonis: https://discover.unhas.ac.id/publications/real-time-physiological-activity-and-sleep-state-monitoring-system-using-ts2vec Jurnal / Konferensi: Signals Tahun terbit: 2025 DOI: https://doi.org/10.3390/signals6040067 ISSN: 26246120 Kuartil SJR: Q2 Citations: 0 ## Authors - Arifin A. ## Abstract Monitoring physiological activity and sleep states in real time is challenging, particularly for continuous assessment in daily life settings using wearable IoMT devices. We developed a 24 h wearable system that integrates electrocardiogram (ECG) electrodes for heart rate measurement and a glove-mounted flex sensor for motor responses, connected through an Internet of Medical Things (IoMT) platform. Flex signals were combined using principal component analysis (PCA) to generate a single kinematic channel, then standardized with heart rate. Time-series windows were embedded using TS2Vec and clustered with DBSCAN, while t-SNE was applied only for visualization. The framework identified four physiologically coherent states: (i) nocturnal sleep with the lowest heart rate and minimal motion, (ii) evening pre-sleep with low movement and moderately higher heart rate, (iii) daytime activity with variable motion and mid-range heart rate, and (iv) late-day high-intensity activity with the highest heart rate and increased motor responses. A few outliers were observed during transient body movements or sensor readjustments, which were identified and excluded during preprocessing to ensure stable clustering results. Across 24 h, heart rate ranged from 52 to 96 bpm (mean 77.4), while flexion spanned 0 to 165° (mean 52.5°), showing alignment between movement intensity and cardiac response. This integrated sensing and analytics pipeline provides an interpretable, subject-specific state map that enables continuous remote monitoring of physiological activity and sleep patterns. ## Keywords - Cluster analysis - Wearable computer - Computer science - Heart rate - Principal component analysis - Preprocessor - DBSCAN - Heart rate variability - Artificial intelligence - Kinematics - Sleep (system call) - Outlier - Pattern recognition (psychology) - Analytics - Real-time computing - FLEX - Accelerometer - Anomaly detection - Sleep Stages - Independent component analysis - Activity recognition - Electrocardiography - Pipeline (software) - Electromyography - Computer vision - Response time - Continuous monitoring --- Sumber: Discover Unhas — RIMS Universitas Hasanuddin. Saat mengutip, gunakan DOI bila tersedia atau URL kanonis di atas.