A Study on Caregiver Activity Recognition for the Elderly at Home Based on the XGBoost Model
Abstract
:1. Introduction
1.1. Background
1.2. Difficulties with the Recognition of Caregivers’ Activities
- (1)
- The primary challenge is designing a suitable wearable device-wearing scheme for studying CAR. Additionally, extracting effective features and accurately distinguishing between different behavioral activities are ongoing difficulties and areas of focus in current research.
- (2)
- Traditional static models struggle to recognize behavioral activities due to variations among individuals, which leads to lower accuracy in recognition outcomes.
- (3)
- Real-world nursing care activities pose another challenge as they often involve complex actions. These actions can easily be confused with one another, making accurate recognition a difficult task.
2. Literature Review
- (1)
- This study developed an experimental system utilizing wearable devices for data collection to identify nursing behaviors, addressing the limitations of previous research in this area.
- (2)
- Following feature importance analysis and feature reduction, three machine learning algorithms (SVM, RandomForest, and XGBOOST) were employed in this study. The XGBOOST model was further optimized using the cuckoo search algorithm to achieve the highest recognition accuracy of 0.9438. Additional experiments were conducted to verify the impact of behavioral constraints on recognition performance.
- (3)
- By accurately identifying elderly nursing care activities, this study enables effective monitoring of the completion of tasks by nursing staff.
3. Research Framework
3.1. Experimental System
3.2. Data Collection
3.3. Recognition Solution
- (1)
- Component I: Data Preprocessing
- (2)
- Component II: Feature Processing
- (3)
- Component III: Classification
- (4)
- Component IV: Parameter tuning
- (5)
- Component V: Performance Evaluation
3.4. Feature Importance Analysis
4. Materials and Methods
4.1. Introduction to XGBoost
4.2. XGBoost Model Tuning
4.3. Cuckoo Search-XGBoost Model
4.3.1. Cuckoo Search Algorithm (CS)
- (1)
- Each cuckoo can only lay one egg at a time and selects a nest randomly to place it in.
- (2)
- A subset of nests is randomly chosen, and the best parasitic nests are retained for the next generation.
- (3)
- The number of nests remains constant, and the host cuckoo’s probability of finding a cuckoo’s egg is determined by . If a host finds an egg, it can either destroy the egg or continue searching for a new nest.
4.3.2. CS-XGBoost Model
5. Results
5.1. Control Group Experiment of the SVM Model, RandomForest Model, and XGBoost Model
5.2. Three Groups of Experiments Based on CS-XGBoost
6. Conclusions and Discussion
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Sander, M.; Oxlund, B.; Jespersen, A.; Krasnik, A.; Mortensen, E.L.; Westendorp, R.G.J.; Rasmussen, L.J. The challenges of human population ageing. Age Ageing 2015, 44, 185–187. [Google Scholar] [CrossRef]
- Otsu, K.; Shibayama, K. Population aging and potential growth in Asia. Asian Dev. Rev. 2016, 33, 56–73. [Google Scholar] [CrossRef]
- Oku, A.; Ichimura, E.; Tsukamoto, M. Aging Population in Asian Countries|Lessons from Japanese Experiences; Policy Research Institute, Ministry of Finance: Tokyo, Japan, 2017. [Google Scholar]
- CPC Central Committee and State Council. The 19th National Congress of the Communist Party of China, Longterm Plan for the Country to Actively Cope with Population Aging; CPC Central Committee and State Council: Beijing, China, 2019. [Google Scholar]
- Liu, J.; Dai, P.; Han, G.; Sun, N. Combined CNN/RNN video privacy protection evaluation method for monitoring home scene violence. Comput. Electr. Eng. 2023, 106, 108614. [Google Scholar] [CrossRef]
- Wang, Q.; Zhang, W.; Li, J.; Ma, Z.; Chen, J. Benefits or harms? The effect of online review manipulation on sales. Electron. Commer. Res. Appl. 2023, 57, 101224. [Google Scholar] [CrossRef]
- Kawsar, F.; Ahamed, S.; Love, R. Remote monitoring using smartphone based plantar pressure sensors: Unimodal and multimodal activity detection. In Proceedings of the Smart Homes and Health Telematics: 12th International Conference, ICOST 2014, Denver, CO, USA, 25–27 June 2014; Revised Papers 12. pp. 138–146. [Google Scholar]
- Foerster, F.; Smeja, M.; Fahrenberg, J. Detection of posture and motion by accelerometry: A validation study in ambulatory monitoring. Comput. Hum. Behav. 1999, 15, 571–583. [Google Scholar] [CrossRef]
- Mukhopadhyay, S.C. Wearable sensors for human activity monitoring: A review. IEEE Sens. J. 2014, 15, 1321–1330. [Google Scholar] [CrossRef]
- Jameer, S.; Syed, H. A DCNN-LSTM based human activity recognition by mobile and wearable sensor networks. Alex. Eng. J. 2023, 80, 542–552. [Google Scholar] [CrossRef]
- Garcia-Gonzalez, D.; Rivero, D.; Fernandez-Blanco, E.; Luaces, M.R. Deep learning models for real-life human activity recognition from smartphone sensor data. Internet Things 2023, 24, 100925. [Google Scholar] [CrossRef]
- Wichum, F.; De Lazzari, N.; Götte, M.; David, C.; Wiede, C.; Seidl, K.; Tewes, M. Development of an AI-supported exercise therapy for advanced cancer patients. Curr. Dir. Biomed. Eng. 2022, 8, 169–172. [Google Scholar] [CrossRef]
- Semwal, V.B.; Kim, Y.; Bijalwan, V.; Verma, A.; Singh, G.; Gaud, N.; Baek, H.; Khan, A.M. Development of the LSTM Model and Universal Polynomial Equation for all the Sub-phases of Human Gait. IEEE Sens. J. 2023, 23, 15892–15900. [Google Scholar] [CrossRef]
- Peng, Y.; Nabae, H.; Funabora, Y.; Suzumori, K. Controlling a peristaltic robot inspired by inchworms. Biomim. Intell. Robot. 2024, 4, 100146. [Google Scholar] [CrossRef]
- Mao, Z.; Asai, Y.; Yamanoi, A.; Seki, Y.; Wiranata, A.; Minaminosono, A. Fluidic rolling robot using voltage-driven oscillating liquid. Smart Mater. Struct. 2022, 31, 105006. [Google Scholar] [CrossRef]
- Lara, O.D.; Labrador, M.A. A survey on human activity recognition using wearable sensors. IEEE Commun. Surv. Tutor. 2012, 15, 1192–1209. [Google Scholar] [CrossRef]
- Arshad, M.H.; Bilal, M.; Gani, A. Human activity recognition: Review, taxonomy and open challenges. Sensors 2022, 22, 6463. [Google Scholar] [CrossRef] [PubMed]
- Ho, T.K. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; pp. 278–282. [Google Scholar]
- Ho, T.K. The random subspace method for constructing decision forests. IEEE Trans. Pattern Anal. Mach. Intell. 1998, 20, 832–844. [Google Scholar]
- Su, J.; Zhang, B.; Xu, X. Research progress of text classification technology based on machine learning. J. Softw. 2006, 17, 1848–1859. [Google Scholar] [CrossRef]
- Tomoya, S.; Harusa, T.; Soichiro, S.; Yohei, H.; Yang, L.; Ying, C. Fundamental study of a sports motion analysis system by using DNN recognition. Proc. Symp. Sports Hum. Dyn. 2018, 2018, C-30. [Google Scholar]
- Walse, K.H.; Dharaskar, R.V.; Thakare, V.M. Pca based optimal ann classifiers for human activity recognition using mobile sensors data. In Proceedings of the First International Conference on Information and Communication Technology for Intelligent Systems: Volume 1, Ahmedabad, India, 28–29 November 2015; pp. 429–436. [Google Scholar]
- Hammerla, N.Y.; Halloran, S.; Plötz, T. Deep, convolutional, and recurrent models for human activity recognition using wearables. J. Sci. Comput. 2016, 61, 454–476. [Google Scholar]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
- Wang, J.; Chen, Y.; Hao, S.; Peng, X.; Hu, L. Deep learning for sensor-based activity recognition: A survey. Pattern Recognit. Lett. 2019, 119, 3–11. [Google Scholar] [CrossRef]
- Wu, H.; Zhang, Z.; Li, X.; Shang, K.; Han, Y.; Geng, Z.; Pan, T. A novel pedal musculoskeletal response based on differential spatio-temporal LSTM for human activity recognition. Knowl.-Based Syst. 2023, 261, 110187. [Google Scholar] [CrossRef]
- Hayat, A.; Morgado-Dias, F.; Bhuyan, B.P.; Tomar, R. Human activity recognition for elderly people using machine and deep learning approaches. Information 2022, 13, 275. [Google Scholar] [CrossRef]
- Inoue, M.; Inoue, S.; Nishida, T. Deep recurrent neural network for mobile human activity recognition with high throughput. Artif. Life Robot. 2018, 23, 173–185. [Google Scholar] [CrossRef]
- Xia, K.; Huang, J.; Wang, H. LSTM-CNN architecture for human activity recognition. IEEE Access 2020, 8, 56855–56866. [Google Scholar] [CrossRef]
- Jindal, S.; Sachdeva, M.; Kushwaha, A.K.S. Human Activity Recognition using Ensemble Convolutional Neural Networks and Long Short-Term Memory. Int. J. Perform. Eng. 2022, 18, 660. [Google Scholar]
- Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM Sigkdd International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
- Jolliffe, I.T.; Cadima, J. Principal component analysis: A review and recent developments. Philos. Trans. 2016, 374, 20150202. [Google Scholar] [CrossRef] [PubMed]
- Vapnik, V.N. A note on one class of perceptrons. Autom. Remote Control 1964, 25, 821–837. [Google Scholar]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
Tags | Caregivers’ Activity | Data Acquisition Duration |
---|---|---|
S1 | Sweeping the floor | 300 s |
S2 | Thumping one’s legs | 180 s |
S3 | Feeding | 300 s |
S4 | Slapping one’s back | 180 s |
S5 | Moving objects | 300 s |
S6 | Wiping a window | 300 s |
S7 | Wiping a desk | 300 s |
S8 | Washing one’s face | 180 s |
S9 | Washing clothes | 180 s |
Device Name | Variable Name |
---|---|
Hitoe | acceleration(h_acc_x, h_acc_y, h_acc_z) |
TicWatch_1 | acceleration(t1_acc_x, t1_acc_y, t1_acc_z) |
gravity(t1_grty_x, t1_grty_y, t1_grty_z) | |
gyroscope(t1_gyscp_x, t1_gyscp_y, t1_gyscp_z) | |
linear acceleration(t1_linr_acc_x, t1_linr_acc_y, t1_linr_acc_z) | |
TicWatch_2 | acceleration(t2_acc_x, t2_acc_y, t2_acc_z) |
gravity(t2_grty_x, t2_grty_y, t2_grty_z) | |
gyroscope(t2_gyscp_x, t2_gyscp_y, t2_gyscp_z) | |
linear acceleration(t2_linr_acc_x, t2_linr_acc_y, t2_linr_acc_z) |
Accuracy | Precision | Recall | F1 Score | = ( ) | |
---|---|---|---|---|---|
SVM | 0.8978 | 0.8907 | 0.8796 | 0.8851 | —— |
RandomForest | 0.9013 | 0.8991 | 0.9015 | 0.9002 | —— |
XGBoost | 0.9179 | 0.9021 | 0.9196 | 0.9107 | (0,0.3,6,2000) |
CS-XGBoost | 0.9438 | 0.9511 | 0.9502 | 0.9506 | (0.05,0.1,4,2000) |
Service | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 | Recall |
---|---|---|---|---|---|---|---|---|---|---|
S1 | 145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.9477 |
S2 | 0 | 90 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0.9677 |
S3 | 0 | 0 | 150 | 0 | 5 | 0 | 0 | 0 | 0 | 0.9677 |
S4 | 0 | 0 | 0 | 94 | 0 | 0 | 0 | 0 | 0 | 1 |
S5 | 0 | 5 | 0 | 0 | 147 | 0 | 0 | 0 | 0 | 0.9671 |
S6 | 0 | 0 | 0 | 0 | 2 | 151 | 0 | 0 | 0 | 0.9869 |
S7 | 0 | 0 | 0 | 0 | 2 | 0 | 151 | 0 | 0 | 0.9869 |
S8 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 87 | 0 | 0.9355 |
S9 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 93 | 0.9894 |
precision | 1 | 0.9375 | 1 | 0.9495 | 0.9187 | 1 | 1 | 1 | 0.9208 | |
f1_score | 0.9731 | 0.9524 | 0.9836 | 0.9741 | 0.9423 | 0.9934 | 0.9934 | 0.9667 | 0.9538 |
Train | Test | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 |
---|---|---|---|---|---|---|---|---|---|---|
B’ | A’ | 1 | 0.9375 | 1 | 0.9495 | 0.9187 | 1 | 1 | 1 | 0.9208 |
A’ | B’ | 0.9441 | 1 | 1 | 1 | 0.5200 | 0.9932 | 0.9869 | 0.9808 | 0.9737 |
Service | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 | Recall |
---|---|---|---|---|---|---|---|---|---|---|
S1 | 88 | 0 | 0 | 0 | 55 | 0 | 5 | 0 | 0 | 0.5946 |
S2 | 0 | 78 | 0 | 0 | 2 | 0 | 0 | 2 | 2 | 0.9286 |
S3 | 0 | 0 | 140 | 1 | 2 | 0 | 0 | 4 | 0 | 0.9524 |
S4 | 0 | 1 | 0 | 78 | 0 | 3 | 0 | 4 | 0 | 0.9070 |
S5 | 15 | 0 | 0 | 0 | 120 | 8 | 4 | 0 | 3 | 0.8000 |
S6 | 3 | 1 | 0 | 7 | 4 | 20 | 1 | 5 | 1 | 0.4762 |
S7 | 30 | 0 | 0 | 0 | 22 | 6 | 81 | 1 | 9 | 0.5436 |
S8 | 0 | 0 | 4 | 17 | 0 | 0 | 0 | 64 | 0 | 0.7529 |
S9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
precision | 0.6471 | 0.9750 | 0.9722 | 0.7573 | 0.5854 | 0.5405 | 0.8901 | 0.8000 | 0 | |
f1_score | 0.6197 | 0.9512 | 0.9622 | 0.8254 | 0.6761 | 0.5063 | 0.6750 | 0.7758 | 0 |
Testing | Test (A’) | Test (B’) | Test (A) | Test (B) | ||
---|---|---|---|---|---|---|
Data | ||||||
Precision | ||||||
Training Data | ||||||
train(B’ A B) | 0.9488 | |||||
train(A’ A B) | 0.9166 | |||||
train(A’ B’ B) | 0.8012 | |||||
train(A’ B’ A) | 0.7821 |
Service | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 | Recall |
---|---|---|---|---|---|---|---|---|---|---|
S1 | 138 | 0 | 0 | 0 | 8 | 3 | 2 | 0 | 0 | 0.9139 |
S2 | 0 | 90 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.9890 |
S3 | 0 | 0 | 143 | 0 | 7 | 0 | 0 | 1 | 0 | 0.9470 |
S4 | 0 | 0 | 0 | 89 | 0 | 0 | 1 | 1 | 0 | 0.9780 |
S5 | 2 | 0 | 0 | 0 | 145 | 1 | 5 | 0 | 0 | 0.9477 |
S6 | 1 | 0 | 2 | 0 | 9 | 122 | 9 | 4 | 5 | 0.8026 |
S7 | 1 | 0 | 0 | 0 | 10 | 3 | 128 | 0 | 1 | 0.8951 |
S8 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 87 | 0 | 0.9667 |
S9 | 1 | 0 | 0 | 0 | 4 | 0 | 11 | 0 | 83 | 0.8384 |
precision | 1 | 0.9802 | 1 | 0.9901 | 0.9752 | 0.9576 | 0.9728 | 1 | 0.9691 | |
f1_score | 1 | 0.9851 | 0.9969 | 0.9950 | 0.9782 | 0.9723 | 0.9630 | 0.9944 | 0.9543 |
Testing | Test (ATs) | Test (BTs) | Test (A’Ts) | Test (B’Ts) | ||
---|---|---|---|---|---|---|
Data | ||||||
Precision | ||||||
Training Data | ||||||
train(ATr B A’ B’) | 0.9898 | |||||
train(A BTr A’ B’) | 0.9973 | |||||
train(A B A’Tr B’) | 0.9202 | |||||
train(A B A’ B’Tr) | 0.9419 |
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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, Z.; Zhang, S.; Zhang, H.; Li, X. A Study on Caregiver Activity Recognition for the Elderly at Home Based on the XGBoost Model. Mathematics 2024, 12, 1700. https://doi.org/10.3390/math12111700
Liu Z, Zhang S, Zhang H, Li X. A Study on Caregiver Activity Recognition for the Elderly at Home Based on the XGBoost Model. Mathematics. 2024; 12(11):1700. https://doi.org/10.3390/math12111700
Chicago/Turabian StyleLiu, Zhonghua, Shuang Zhang, Huihui Zhang, and Xiuxiu Li. 2024. "A Study on Caregiver Activity Recognition for the Elderly at Home Based on the XGBoost Model" Mathematics 12, no. 11: 1700. https://doi.org/10.3390/math12111700
APA StyleLiu, Z., Zhang, S., Zhang, H., & Li, X. (2024). A Study on Caregiver Activity Recognition for the Elderly at Home Based on the XGBoost Model. Mathematics, 12(11), 1700. https://doi.org/10.3390/math12111700