A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach
Abstract
:1. Introduction
2. Related Works
2.1. Non-Contact Body Class
2.2. Contact Body Class
2.2.1. Non-Wearable Sub-Class
2.2.2. Wearable Sub-Class
3. System Architecture
3.1. Hardware
3.1.1. Sensing Layer
3.1.2. Data Collecting Layer
3.1.3. Cloud Layer
3.2. Communications
4. Data Processing Framework
4.1. Chest Sensor
- Step 1: CalibrationThe shape of our sensor is that of a squat cylinder, like a button, which makes it straightforward to know the flat side should be attached to the chest. However, the orientation of the sensor is not regulated because we design a calibration procedure. The system will first collect the raw inertial data to calibrate the axes of the sensor. The care recipient is requested to stand or sit straight to identify the angles of the chest sensor. A little tilt of the body might affect the calibration. A rotation matrix will be calculated according to Equations (1) and (2) for transforming the data into a base which the X axis is perpendicular to the ground and the Y axis is parallel to the ground. After that, all the data from the chest sensor will be rotated based on the rotation matrix. The effect of the calibration step is shown in Figure 7.
- Step 2.1: Noise RemovalThe sensors we adopted are still in their developing stage and not as stable as the commercial products. Hence, they returned measurements containing extremely small values sometimes, which could jeopardize the feature extraction results and needs to be removed in advance. The noise will be removed by the following cleaning process in the system. The process calculates the variance of data within a sliding window, and then set it as a threshold. The data that contain values less than the threshold are removed for noise cleaning.
- Step 2.2: Feature extractionThe system calculates the average value of the data within the sliding window to obtain features of each axis. The sliding window approach smooths the data, which implicitly applies a second noise removal on the data. The window size is set to one second and no overlapping between windows.
- Step 3: Differentiate Standing or Lying PositionThe dominating axis is decided by comparing the magnitude of the feature of each axis. If Y’ or Z is the dominating axis, it indicates that a care recipient is in the lying position.
- Step 4: Recognize Sleep PostureSleep postures are estimated based on the positive or negative of Y axis and Z axis, as shown in Table 2.
4.2. Wrist Sensor
5. Learning Algorithms
5.1. Random Forest (RF)
5.2. Support Vector Machine (SVM)
6. Experimental Settings and Results
6.1. Experiment Settings
- Training Dataset (Labeled Data 1): The dataset is collected with the subjects wearing the chest and wrist sensors, and performing the following two tasks:
- −
- Sitting on the bed for 3 min, and then lying with the designated four sleep postures.
- −
- Changing between two sleep postures 10 times.
- Testing Dataset (Labeled Data 2): The testing dataset is collected in an independent two minutes trial. All postures are done by the subject. The ground truth is recorded during the trail. In other words, both sensors are worn during the collecting phase of testing data.
6.2. Results
6.2.1. Sleep Posture Monitoring with SVM
6.2.2. Sleep Posture Monitoring with RF
7. Discussion
7.1. Generalizability of the System
7.2. Prediction Performance on the Same Subject
7.3. Prone Is the Most Confusing Posture
7.4. Future Applications
7.4.1. Medicine Dosage Adjustment Based on Sleep Posture Profile
7.4.2. Home Long-Term Sleep Monitoring
7.4.3. Risky Position Alarm
8. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Parish, J.M. Sleep-related problems in common medical conditions. Chest 2009, 135, 563–572. [Google Scholar] [CrossRef] [PubMed]
- Nagai, M.; Hoshide, S.; Kario, K. Sleep duration as a risk factor for cardiovascular disease—A review of the recent literature. Curr. Cardiol. Rev. 2010, 6, 54–61. [Google Scholar] [CrossRef] [PubMed]
- Zhu, B.Q.; Li, X.M.; Wang, D.; Yu, X.F. Sleep quality and its impact on glycaemic control in patients with type 2 diabetes mellitus. Int. J. Nurs. Sci. 2014, 1, 260–265. [Google Scholar] [CrossRef] [Green Version]
- Liu, R.Q.; Qian, Z.; Trevathan, E.; Chang, J.J.; Zelicoff, A.; Hao, Y.T.; Lin, S.; Dong, G.H. Poor sleep quality associated with high risk of hypertension and elevated blood pressure in China: Results from a large population-based study. Hypertens. Res. 2016, 39, 54–59. [Google Scholar] [CrossRef] [PubMed]
- Augner, C. Associations of subjective sleep quality with depression score, anxiety, physical symptoms and sleep onset latency in students. Cent. Eur. J. Public Health 2011, 19, 115–117. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Ren, Y.; Wang, C.; Yang, J.; Chen, Y. Fine-grained sleep monitoring: Hearing your breathing with smartphones. In IEEE Conference on Computer Communications (INFOCOM); IEEE: Piscatway, NJ, USA, 2015; pp. 1194–1202. [Google Scholar]
- Hao, T.; Xing, G.; Zhou, G. iSleep: Unobtrusive Sleep Quality Monitoring Using Smartphones. In ACM Conference on Embedded Networked Sensor Systems; ACM: New York, NY, USA, 2013; pp. 4:1–4:14. [Google Scholar]
- Le, T.Q.; Cheng, C.; Sangasoongsong, A.; Wongdhamma, W.; Bukkapatnam, S.T.S. Wireless Wearable Multisensory Suite and Real-Time Prediction of Obstructive Sleep Apnea Episodes. IEEE J. Transl. Eng. Health Med. 2013, 1, 2700109. [Google Scholar] [CrossRef] [PubMed]
- Yang, X.; Fan, D.; Ren, A.; Zhao, N.; Zhang, Z.; Hu, F.; Wang, W.; Ur Rehman, M.; Tian, J. Sleep Apnea Syndrome Sensing at C-Band. IEEE J. Transl. Eng. Health Med. 2018, 6, 2701008. [Google Scholar] [CrossRef] [PubMed]
- Neill, A.M.; Angus, S.M.; Sajkov, D.; McEvoy, R.D. Effects of sleep posture on upper airway stability in patients with obstructive sleep apnea. Am. J. Respir. Crit. Care Med. 1997, 155, 199–204. [Google Scholar] [CrossRef] [PubMed]
- Mi Global Home. Available online: https://www.mi.com/global/mi-smart-band-4 (accessed on 19 May 2020).
- Kopaczewski, C. How to Track Your Sleep with an Apple Watch Using 4 Simple Tracking Apps. Available online: https://www.businessinsider.com/does-apple-watch-track-sleep-apps-review (accessed on 30 December 2020).
- New Advanced Sleep Monitoring in Garmin Connect. 2018. Available online: https://www.garmin.com/en-US/blog/fitness/advancedrem/ (accessed on 19 May 2020).
- Zhang, Z.; Yang, G. Monitoring cardio-respiratory and posture movements during sleep: What can be achieved by a single motion sensor. In Proceedings of the IEEE International Conference on Wearable and Implantable Body Sensor Networks (BSN), Cambridge, MA, USA, 9–12 June 2015; pp. 1–6. [Google Scholar]
- Van Laerhoven, K.; Borazio, M.; Kilian, D.; Schiele, B. Sustained logging and discrimination of sleep postures with low-level, wrist-worn sensors. In Proceedings of the IEEE International Symposium on Wearable Computers, Pittsburgh, PA, USA, 28 September–1 October 2008; pp. 69–76. [Google Scholar]
- Jeng, P.; Wang, L. Stream data analysis of body sensors for sleep posture monitoring: An automatic labelling approach. In Proceedings of the Wireless and Optical Communication Conference (WOCC), Newark, NJ, USA, 7–8 April 2017; pp. 1–4. [Google Scholar]
- Jeng, P.; Wang, L. An accurate, low-cost, easy-to-use sleep posture monitoring system. In Proceedings of the International Conference on Applied System Innovation (ICASI), Sapporo, Japan, 13–17 May 2017; pp. 903–905. [Google Scholar]
- SleepSoftly. The Merits And Demerits Of Your Sleeping Posture. 2015. Available online: https://sleepsoftly.com/the-merits-and-demerits-of-your-sleeping-posture/ (accessed on 8 May 2012).
- Li, M.H.; Yadollahi, A.; Taati, B. Noncontact Vision-Based Cardiopulmonary Monitoring in Different Sleeping Positions. IEEE J. Biomed. Health Inf. 2017, 21, 1367–1375. [Google Scholar] [CrossRef] [PubMed]
- Metsis, V.; Kosmopoulos, D.; Athitsos, V.; Makedon, F. Non-invasive analysis of sleep patterns via multimodal sensor input. Pers. Ubiquit. Comput. 2014, 18, 19–26. [Google Scholar] [CrossRef]
- Ren, A.; Dong, B.; Lv, X.; Zhu, T.; Hu, F.; Yang, X. A non-contact sleep posture sensing strategy considering three dimensional human body models. In Proceedings of the IEEE International Conference on Computer and Communications (ICCC), Chengdu, China, 14–17 October 2016; pp. 414–417. [Google Scholar]
- Liu, X.; Cao, J.; Tang, S.; Wen, J. Wi-Sleep: Contactless Sleep Monitoring via WiFi Signals. In Proceedings of the IEEE Real-Time Systems Symposium, Rome, Italy, 2–5 December 2014; pp. 346–355. [Google Scholar]
- Mineharu, A.; Kuwahara, N.; Morimoto, K. A study of automatic classification of sleeping position by a pressure-sensitive sensor. In Proceedings of the International Conference on Informatics, Electronics Vision (ICIEV), Fukuoka, Japan, 15–18 June 2015; pp. 1–5. [Google Scholar]
- Sun, Q.; Gonzalez, E.; Sun, Y. On bed posture recognition with pressure sensor array system. In Sensors; IEEE: Piscatway, NJ, USA, 2016; pp. 1–3. [Google Scholar]
- Enayati, M.; Skubic, M.; Keller, J.M.; Popescu, M.; Farahani, N.Z. Sleep Posture Classification Using Bed Sensor Data and Neural Networks. IEEE Eng. Med. Biol. Soc. 2018, 2018, 461–465. [Google Scholar]
- Liu, M.; Ye, S. A Novel Body Posture Recognition System on Bed. In Proceedings of the IEEE International Conference on Signal and Image Processing (ICSIP), Singapore, 4–6 August 2018; pp. 38–42. [Google Scholar]
- Hsiao, R.S.; Chen, T.X.; Bitew, M.A.; Kao, C.H.; Li, T.Y. Sleeping posture recognition using fuzzy c-means algorithm. Biomed. Eng. Online 2018, 17, 157. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Leaf Healthcare. Available online: http://www.leafhealthcare.com/ (accessed on 19 May 2020).
- Wu, F.; Solmaz, G. We hear your activities through Wi-Fi signals. In Proceedings of the IEEE World Forum on Internet of Things (WF-IoT), Reston, VA, USA, 12–14 December 2016; pp. 251–256. [Google Scholar]
- Huang, Y.; Yi, C.; Peng, W.; Lin, H.; Huang, C. A study on multiple wearable sensors for activity recognition. In Proceedings of the IEEE Conference on Dependable and Secure Computing, Taipei, Taiwan, 7–10 August 2017; pp. 449–452. [Google Scholar]
- He, G.-W.; Lin, M.-H.; Ching, Y.-T. Methods for Person Recognition and Abnormal Gait Detection Using Tri-axial Accelerometer and Gyroscope. In Proceedings of the International Conference on Computational Science and Computational Intelligence (CSCI), Las Vegas, NV, USA, 14–16 December 2017; pp. 1691–1694. [Google Scholar]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
- Hsu, C.W.; Lin, C.J. A comparison of methods for multiclass support vector machines. IEEE Trans. Neural. Netw. 2002, 13, 415–425. [Google Scholar] [PubMed] [Green Version]
- Platt, J.C. Sequential Minimal Optimization: A Fast Algorithm for Training Support Vector Machines; Microsoft Research Technical Report MSR-TR-98-14. April 1998, Volume 208. Available online: https://www.microsoft.com/en-us/research/publication/sequential-minimal-optimization-a-fast-algorithm-for-training-support-vector-machines/ (accessed on 2 January 2021).
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Lo, C.C.; Chen, C.H.; Cheng, D.Y.; Kung, H.Y. Ubiquitous Healthcare Service System with Context-awareness Capability: Design and Implementation. Expert Syst. Appl. 2011, 38, 4416–4436. [Google Scholar] [CrossRef]
Type | Equipment | Labeling | Year | Paper/Product | |
---|---|---|---|---|---|
Non-contact | Camera | Manual | 2017 | [19] | |
Depth-camera | 2014 | [20] | |||
Depth-camera | 2016 | [21] | |||
Wi-Fi | 2014 | [22] | |||
Contact | Non-wearable | Pressure mat | 2015 | [23] | |
Pressure mat | 2016 | [24] | |||
Hydraulic sensors | 2018 | [25] | |||
Piezoelectric sensor | 2018 | [26] | |||
pressure mat and infrared sensors | 2018 | [27] | |||
Wearable | Inertial motion sensor | 2015 | [14] | ||
Inertial motion sensor | 2010 | Leaf Healthcare [28] | |||
Tilt sensor | 2008 | [15] | |||
Inertial motion sensor | Automatic | 2020 | Proposed |
Dominating Axis | +/− | Body Posture |
---|---|---|
Y’ | Positive | Left Lateral |
Negative | Right Lateral | |
Z | Positive | Supine |
Negative | Prone |
Target | |||
---|---|---|---|
Subject 1 Testing | Subject 2 Testing | ||
Source | Subject 1 Training | 0.80 (0.03)/0.83 | 0.83 (0.01)/0.82 |
Subject 2 Training | 0.70 (0.02)/0.75 | 0.73 (0.02)/0.73 |
Session Name | Accuracy |
---|---|
S1-1 | 0.8244 |
S1-2 | 0.9464 |
S1-3 | 0.8405 |
S1-4 | 0.6005 |
S1-5 | 0.9571 |
Avergae | 0.8338 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Jeng, P.-Y.; Wang, L.-C.; Hu, C.-J.; Wu, D. A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach. Sensors 2021, 21, 258. https://doi.org/10.3390/s21010258
Jeng P-Y, Wang L-C, Hu C-J, Wu D. A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach. Sensors. 2021; 21(1):258. https://doi.org/10.3390/s21010258
Chicago/Turabian StyleJeng, Po-Yuan, Li-Chun Wang, Chaur-Jong Hu, and Dean Wu. 2021. "A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach" Sensors 21, no. 1: 258. https://doi.org/10.3390/s21010258
APA StyleJeng, P. -Y., Wang, L. -C., Hu, C. -J., & Wu, D. (2021). A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach. Sensors, 21(1), 258. https://doi.org/10.3390/s21010258