| Literature DB >> 35326992 |
Pei-Jarn Chen1, Tian-Hao Hu1, Ming-Shyan Wang1.
Abstract
The relationship between sleep posture and sleep quality has been studied comprehensively. Over 70% of chronic diseases are highly correlated with sleep problems. However, sleep posture monitoring requires professional devices and trained nursing staff in a medical center. This paper proposes a contactless sleep-monitoring Internet of Things (IoT) system that is equipped with a Raspberry Pi 4 Model B; radio-frequency identification (RFID) tags are embedded in bed sheets as part of a low-cost and low-power microsystem. Random forest classification (RFC) is used to recognize sleep postures, which are then uploaded to the server database via Wi-Fi and displayed on a terminal. The experimental results obtained using RFC were compared to those obtained via the support vector machine (SVM) method and the multilayer perceptron (MLP) algorithm to validate the performance of the proposed system. The developed system can be also applied for sleep self-management at home and wireless sleep monitoring in medical wards.Entities:
Keywords: internet of things (IoT); random forest classifier (RFC); sleep monitoring
Year: 2022 PMID: 35326992 PMCID: PMC8949323 DOI: 10.3390/healthcare10030513
Source DB: PubMed Journal: Healthcare (Basel) ISSN: 2227-9032
Figure 1System architecture.
Figure 2Schematic of the overall parameter selection and model training process.
Ten K-fold cross-validation results of each classifier.
| Classifier | Average | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SVM | 92.8% | 91.2% | 95.6% | 82.4% | 90.2% | 70.4% | 87.5% | 87.0% | 90.6% | 91.6% | 87.9% |
| MLP | 94.1% | 86.8% | 95.3% | 83.9% | 91.2% | 75.8% | 89.1% | 84.6% | 90.3% | 85.3% | 87.7% |
| RFC | 95.3% | 97.2% | 96.1% | 79.8% | 85.0% | 78.2% | 88.6% | 86.5% | 97.7% | 84.6% | 88.9% |
Results obtained using the MPL, SVM, and RFC to predict new data.
| Precision (MPL, SVM, RFC) | Recall (MPL, SVM, RFC) | F1-Score (MPL, SVM, RFC) | |
|---|---|---|---|
| Supine | 82%, 74%, 84% | 83%, 90%, 88% | 82%, 81%, 86% |
| Lying right | 95%, 99%, 99% | 96%, 90%, 93% | 95%, 95%, 96% |
| Lying left | 84%, 86%, 86% | 82%,74%, 88% | 83%, 79%, 87% |
| Macro avg | 87%, 86%, 90% | 87%, 85%, 90% | 87%, 85%, 90% |
| weighted avg | 87%, 87%, 90% | 87%, 85%, 90% | 87%, 86%, 90% |
| Accuracy | 87%, 85%, 90% |
Figure 3Graphical user interface (GUI) results of the Raspberry Pi for (a) a supine position, (b) recumbent right, and (c) recumbent left.
Figure 4Terminal manager interface and GUI results of the PC terminal.
Figure 5Flowchart of the proposed system.
Figure 6Comparison chart of K-fold cross-validation results and prediction of test data.