Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network
Abstract
:1. Introduction
2. Related Work
3. Methodology
3.1. Domain-Invariant Feature Learning by GCN
3.1.1. Sensor Networks as Graph
3.1.2. Graph Convolutional Network
3.1.3. Residual Structure
3.2. Domain Adaptation
3.2.1. Domain Adaptation for Transfer Learning
3.2.2. Maximum Mean Discrepancy
3.3. GCN-Based Domain Adaptation Framework
4. Experiment
4.1. Dataset
4.1.1. MHealth Dataset
4.1.2. PAMAP2 Dataset
4.1.3. TNDA Dataset
4.2. Experiment Settings
4.3. Evaluation Metrics
5. Results
5.1. Sensor-Based HAR with Base Model
5.2. Cross Domain Evaluation by Transfer Learning with GDA
6. Discussion
6.1. Learning Process Evaluation with GDA
6.2. Limitations and Future Directions
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Bakaev, M.; Speicher, M.; Heil, S.; Gaedke, M. I Don’t Have That Much Data! Reusing user behavior models for websites from different domains. In International Conference on Web Engineering; Springer International Publishing: Cham, Switzerland, 2020; pp. 146–162. [Google Scholar]
- Malekzadeh, M.; Clegg, R.; Cavallaro, A.; Haddadi, H. Dana: Dimension-adaptive neural architecture for multivariate sensor data. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2021, 5, 1–27. [Google Scholar] [CrossRef]
- Thakur, D.; Biswas, S. Online change point detection in application with transition-aware activity recognition. IEEE Trans. Hum. -Mach. Syst. 2022, 52, 1176–1185. [Google Scholar] [CrossRef]
- Krishnaprabha, K.K.; Raju, C.K. Predicting human activity from mobile sensor data using CNN architecture. In Proceedings of the 2020 Advanced Computing and Communication Technologies for High Performance Applications (ACCTHPA), Cochin, India, 2–4 July 2020; pp. 206–210. [Google Scholar]
- Thakur, D.; Pal, A. Subsampled Randomized Hadamard Transformation based Ensemble Extreme Learning Machine for Human Activity Recognition. ACM Trans. Comput. Healthc. 2023, 5, 1–23. [Google Scholar] [CrossRef]
- Thakur, D.; Ro, S.; Biswas, S.; Ho, E.S.L. A Novel Smartphone-Based Human Activity Recognition Approach using Convolutional Autoencoder Long Short-Term Memory Network. In Proceedings of the 2023 IEEE 24th International Conference on Information Reuse and Integration for Data Science (IRI), Bellevue, WA, USA, 4–6 August 2023; pp. 146–153. [Google Scholar]
- Thakur, D.; Guzzo, A.; Fortino, G. Attention-based Multihead Deep Learning Framework for online activity monitoring with Smartwatch Sensors. IEEE Internet Things J. 2023, 10, 17746–17754. [Google Scholar] [CrossRef]
- Koşar, E.; Barshan, B. A new CNN-LSTM architecture for activity recognition employing wearable motion sensor data: Enabling diverse feature extraction. Eng. Appl. Artif. Intell. 2023, 124, 106529. [Google Scholar] [CrossRef]
- Mahmud, T.; Akash, S.S.; Fattah, S.A.; Zhu, W.P.; Ahmad, M.O. Human activity recognition from multi-modal wearable sensor data using deep multi-stage LSTM architecture based on temporal feature aggregation. In Proceedings of the 2020 IEEE 63rd International Midwest Symposium on Circuits and Systems (MWSCAS), Springfield, MA, USA, 9–12 August 2020; pp. 249–252. [Google Scholar]
- 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]
- Sharma, A.; Lee, Y.-D.; Chung, W.-Y. High Accuracy Human Activity Monitoring Using Neural Network. In Proceedings of the 2008 Third International Conference on Convergence and Hybrid Information Technology, Busan, Republic of Korea, 11–13 November 2008; pp. 430–435. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Proceedings of the Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012, Lake Tahoe, NV, USA, 3–6 December 2012. [Google Scholar]
- Zeng, M.; Nguyen, L.T.; Yu, B.; Mengshoel, O.J.; Zhu, J.; Wu, P.; Zhang, J. Convolutional Neural Networks for human activity recognition using mobile sensors. In Proceedings of the 6th International Conference on Mobile Computing, Applications and Services, Austin, TX, USA, 6–7 November 2014; pp. 197–205. [Google Scholar] [CrossRef]
- Ha, S.; Choi, S. Convolutional neural networks for human activity recognition using multiple accelerometer and gyroscope sensors. In Proceedings of the 2016 International Joint Conference on Neural Networks (IJCNN), Vancouver, BC, Canada, 24–29 July 2016; pp. 381–388. [Google Scholar]
- Semwal, V.B.; Gupta, A.; Lalwani, P. An optimized hybrid deep learning model using ensemble learning approach for human walking activities recognition. J. Supercomput. 2021, 77, 12256–12279. [Google Scholar] [CrossRef]
- Wan, S.; Qi, L.; Xu, X.; Tong, C.; Gu, Z. Deep learning models for real-time human activity recognition with smartphones. Mob. Netw. Appl. 2020, 25, 743–755. [Google Scholar] [CrossRef]
- Li, X.; Nie, L.; Si, X.; Ding, R.; Zhan, D. Enhancing Representation of Deep Features for Sensor-Based Activity Recognition. Mob. Netw. Appl. 2021, 26, 130–145. [Google Scholar] [CrossRef]
- Bruna, J.; Zaremba, W.; Szlam, A.; LeCun, Y. Spectral networks and deep locally connected networks on graphs. In Proceedings of the 2nd International Conference on Learning Representations, Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
- Defferrard, M.; Bresson, X.; Vandergheynst, P. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. In Proceedings of the Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, Barcelona, Spain, 5–10 December 2016. [Google Scholar]
- Mondal, R.; Mukherjee, D.; Singh, P.K.; Bhateja, V.; Sarkar, R. A New Framework for Smartphone Sensor-Based Human Activity Recognition Using Graph Neural Network. IEEE Sens. J. 2021, 21, 11461–11468. [Google Scholar] [CrossRef]
- Mohamed, A.; Lejarza, F.; Cahail, S.; Claudel, C.; Thomaz, E. HAR-GCNN: Deep Graph CNNs for Human Activity Recognition From Highly Unlabeled Mobile Sensor Data. In Proceedings of the 2022 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops), Pisa, Italy, 21–25 March 2022; pp. 335–340. [Google Scholar] [CrossRef]
- Yang, P.; Yang, C.; Lanfranchi, V.; Ciravegna, F. Activity Graph Based Convolutional Neural Network for Human Activity Recognition Using Acceleration and Gyroscope Data. IEEE Trans. Ind. Inform. 2022, 18, 6619–6630. [Google Scholar] [CrossRef]
- Nian, A.; Zhu, X.; Xu, X.; Huang, X.; Wang, F.; Zhao, Y. HGCNN: Deep Graph Convolutional Network for Sensor-Based Human Activity Recognition. In Proceedings of the 2022 8th International Conference on Big Data and Information Analytics (BigDIA), Guiyang, China, 24–25 August 2022; pp. 422–427. [Google Scholar] [CrossRef]
- Li, Q.; Han, Z.; Wu, X.-M. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018; Volume 32. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Pan, S.J.; Tsang, I.W.; Kwok, J.T.; Yang, Q. Domain adaptation via transfer component analysis. IEEE Trans. Neural Netw. 2010, 22, 199–210. [Google Scholar] [CrossRef]
- Tzeng, E.; Hoffman, J.; Zhang, N.; Saenko, K.; Darrell, T. Deep domain confusion: Maximizing for domain invariance. arXiv 2014, arXiv:1412.3474. [Google Scholar]
- Banos, O.; Garcia, R.; Holgado-Terriza, J.A.; Damas, M.; Pomares, H.; Rojas, I.; Saez, A.; Villalonga, C. mhealthdroid: A novel framework for agile development of mobile health applications. In Proceedings of the Ambient Assisted Living and Daily Activities: 6th International Work-Conference, IWAAL 2014, Belfast, UK, 2–5 December 2014; pp. 91–98. [Google Scholar]
- Reiss, A.; Stricker, D. Introducing a new benchmarked dataset for activity monitoring. In Proceedings of the 2012 16th International Symposium on Wearable Computers, Newcastle, UK, 18–22 June 2012; pp. 108–109. [Google Scholar]
- Yan, Y.; Chen, D.; Liu, Y.; Zhao, J.; Wang, B.; Wu, X.; Jiao, X.; Chen, Y.; Li, H.; Ren, X. Tnda-har. IEEE Dataport 2021. [Google Scholar] [CrossRef]
- Tang, Y.; Zhang, L.; Min, F.; He, J. Multiscale deep feature learning for human activity recognition using wearable sensors. IEEE Trans. Ind. Electron. 2022, 70, 2106–2116. [Google Scholar] [CrossRef]
- Nguyen, D.A.; Pham, C.; Le-Khac, N.A. Virtual Fusion with Contrastive Learning for Single Sensor-based Activity Recognition. arXiv 2023, arXiv:2312.02185. [Google Scholar]
Dataset | Sensor Placement | Channel | Subject | Activities Classes | Activities | IMU Frequency |
---|---|---|---|---|---|---|
MHealth | IMU: chest, right wrist, left ankle 2-lead ECG | 24 | 10 | 12 | Standing still, sitting and relaxing, lying down, walking, climbing stairs, waist bends forward, frontal elevation of arms, knees bending, cycling, jogging, running, jumping forwards and backwards | 50 Hz |
PAMAP2 | IMU: chest, right wrist, right ankle HR-monitor | 54 | 9 | 12 | Lying, sitting, standing, walking, running, cycling, Nordic walking, watching TV, computer work, car driving, ascending stairs, descending stairs, vacuum cleaning, ironing, folding laundry, house cleaning, playing soccer, rope jumping | 100 Hz |
TNDA | IMU: left ankle, left knee, back, right wrist, right arm | 46 | 50 | 8 | Sitting, standing, laying, walking, running, cycling, walking upstairs, walking downstairs | 50 Hz |
Block | Layer | Operator | Graph Filtering Parameters’ Size | Norm Size |
---|---|---|---|---|
1st | 1 | ChebNet Layer | 128 × 256 × 1 | 256 |
2nd | 2 | ChebNet Layer | 256 × 512 × 1 | 512 |
3rd | 3 | ChebNet Layer | 512 × 256 × 1 | 256 |
4th | 4 | ChebNet Layer | 256 × 128 × 1 | 128 |
- | 5 | FC Layer | 128 × 64 | - |
- | 6 | FC Layer | 64 × No. Labels | - |
Models | SVM | RF | BYS | XGB | CNN | LSTM | CNN- LSTM | Ours | |
---|---|---|---|---|---|---|---|---|---|
Dataset | |||||||||
Mhealth | 90.8% | 85.27% | 90.80% | 96.15% | 91.94% [14] | 86.89% [15] | 91.66% [15] | 98.88% | |
Pamap2 | 84.93% | 73.88% | 84.93% | 89.44% | 96.68% [17] | 85.86% [16] | 96.97% [17] | 98.58% | |
TNDA | 89.41% | 83.91% | 89.41% | 91.29% | - | - | - | 97.78% |
Settings | None TF (%) | Fine-Tuning TF (%) | GDA-TF (%) |
---|---|---|---|
PAMAP2 to MHealth | 79.72/78.81/80.55/79.72 | 70.75/70.44/72.49/70.75 | 85.49/85.46/87.21/85.49 |
TNDA to MHealth | 71.83/71.29/75.82/71.83 | 88.57/88.42/89.45/88.57 | |
MHealth to PAMAP2 | 75.44/75.59/76.03/75.44 | 74.75/74.95/75.77/74.75 | 75.43/75.19/75.56/75.43 |
TNDA to PAMAP2 | 79.25/79.18/79.23/79.25 | 81.49/81.40/81.80/81.49 | |
PAMAP2 to TNDA | 84.75/84.89/85.66/84.75 | 84.95/85.11/85.80/84.95 | 87.15/87.18/87.39/87.15 |
MHealth to TNDA | 82.49/82.44/83.05/82.49 | 85.64/85.78/86.42/85.64 |
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
Yang, J.; Liao, T.; Zhao, J.; Yan, Y.; Huang, Y.; Zhao, Z.; Xiong, J.; Liu, C. Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network. Mathematics 2024, 12, 556. https://doi.org/10.3390/math12040556
Yang J, Liao T, Zhao J, Yan Y, Huang Y, Zhao Z, Xiong J, Liu C. Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network. Mathematics. 2024; 12(4):556. https://doi.org/10.3390/math12040556
Chicago/Turabian StyleYang, Jing, Tianzheng Liao, Jingjing Zhao, Yan Yan, Yichun Huang, Zhijia Zhao, Jing Xiong, and Changhong Liu. 2024. "Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network" Mathematics 12, no. 4: 556. https://doi.org/10.3390/math12040556
APA StyleYang, J., Liao, T., Zhao, J., Yan, Y., Huang, Y., Zhao, Z., Xiong, J., & Liu, C. (2024). Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network. Mathematics, 12(4), 556. https://doi.org/10.3390/math12040556