Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

ContextGPT: Infusing LLMs Knowledge into Neuro-Symbolic Activity Recognition Models (2403.06586v1)

Published 11 Mar 2024 in cs.LG, cs.AI, and cs.CL

Abstract: Context-aware Human Activity Recognition (HAR) is a hot research area in mobile computing, and the most effective solutions in the literature are based on supervised deep learning models. However, the actual deployment of these systems is limited by the scarcity of labeled data that is required for training. Neuro-Symbolic AI (NeSy) provides an interesting research direction to mitigate this issue, by infusing common-sense knowledge about human activities and the contexts in which they can be performed into HAR deep learning classifiers. Existing NeSy methods for context-aware HAR rely on knowledge encoded in logic-based models (e.g., ontologies) whose design, implementation, and maintenance to capture new activities and contexts require significant human engineering efforts, technical knowledge, and domain expertise. Recent works show that pre-trained LLMs effectively encode common-sense knowledge about human activities. In this work, we propose ContextGPT: a novel prompt engineering approach to retrieve from LLMs common-sense knowledge about the relationship between human activities and the context in which they are performed. Unlike ontologies, ContextGPT requires limited human effort and expertise. An extensive evaluation carried out on two public datasets shows how a NeSy model obtained by infusing common-sense knowledge from ContextGPT is effective in data scarcity scenarios, leading to similar (and sometimes better) recognition rates than logic-based approaches with a fraction of the effort.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (39)
  1. Activity recognition with evolving data streams: A review. ACM Computing Surveys (CSUR) 51, 4 (2018), 1–36.
  2. Context-aware data association for multi-inhabitant sensor-based activity recognition. In 2020 21st IEEE International Conference on Mobile Data Management (MDM). IEEE, 125–130.
  3. Knowledge Infusion for Context-Aware Sensor-Based Human Activity Recognition. In 2022 IEEE International Conference on Smart Computing (SMARTCOMP). IEEE, 1–8.
  4. Neuro-Symbolic Approaches for Context-Aware Human Activity Recognition. arXiv preprint arXiv:2306.05058 (2023).
  5. DOMINO: A Dataset for Context-Aware Human Activity Recognition using Mobile Devices. In 2023 24th IEEE International Conference on Mobile Data Management (MDM). IEEE, 346–351.
  6. Caviar: Context-driven active and incremental activity recognition. Knowledge-Based Systems 196 (2020), 105816.
  7. Language models are few-shot learners. Advances in neural information processing systems 33 (2020), 1877–1901.
  8. Deep learning for sensor-based human activity recognition: Overview, challenges, and opportunities. ACM Computing Surveys (CSUR) 54, 4 (2021), 1–40.
  9. Feature learning for human activity recognition using convolutional neural networks: A case study for inertial measurement unit and audio data. CCF Transactions on Pervasive Computing and Interaction 2, 1 (2020), 18–32.
  10. A review of some techniques for inclusion of domain-knowledge into deep neural networks. Scientific Reports 12, 1 (2022), 1040.
  11. Mathematical capabilities of chatgpt. arXiv preprint arXiv:2301.13867 (2023).
  12. Moritz A Graule and Volkan Isler. 2023. GG-LLM: Geometrically Grounding Large Language Models for Zero-shot Human Activity Forecasting in Human-Aware Task Planning. arXiv preprint arXiv:2310.20034 (2023).
  13. A survey on deep learning for human activity recognition. ACM Computing Surveys (CSUR) 54, 8 (2021), 1–34.
  14. Generating diverse and natural 3d human motions from text. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 5152–5161.
  15. Assessing the state of self-supervised human activity recognition using wearables. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6, 3 (2022), 1–47.
  16. Middleware for distributed context-aware systems. In OTM Confederated International Conferences” On the Move to Meaningful Internet Systems”. Springer, 846–863.
  17. Bootstrapping Human Activity Recognition Systems for Smart Homes from Scratch. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6, 3 (2022), 1–27.
  18. ColloSSL: Collaborative Self-Supervised Learning for Human Activity Recognition. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 6, 1 (2022), 1–28.
  19. Haru Kaneko and Sozo Inoue. 2023. Toward Pioneering Sensors and Features Using Large Language Models in Human Activity Recognition. arXiv preprint arXiv:2306.16017 (2023).
  20. Knowledge infused learning (k-il): Towards deep incorporation of knowledge in deep learning. arXiv preprint arXiv:1912.00512 (2019).
  21. Generating Virtual On-body Accelerometer Data from Virtual Textual Descriptions for Human Activity Recognition. arXiv preprint arXiv:2305.03187 (2023).
  22. ChatGPT and large language models in academia: opportunities and challenges. BioData Mining 16, 1 (2023), 20.
  23. Mining models of human activities from the web. In Proceedings of the 13th international conference on World Wide Web. 573–582.
  24. Daniele Riboni and Claudio Bettini. 2011. COSAR: hybrid reasoning for context-aware activity recognition. Personal and Ubiquitous Computing 15, 3 (2011), 271–289.
  25. Daniele Riboni and Marta Murtas. 2019. Sensor-based activity recognition: One picture is worth a thousand words. Future Generation Computer Systems 101 (2019), 709–722.
  26. Complex activity recognition using context-driven activity theory and activity signatures. ACM Transactions on Computer-Human Interaction (TOCHI) 20, 6 (2013), 1–34.
  27. Unsupervised Domain Adaptation in Activity Recognition: A GAN-Based Approach. IEEE Access 9 (2021), 19421–19438.
  28. Neuro-symbolic artificial intelligence: Current trends. arXiv preprint arXiv:2105.05330 (2021).
  29. Shades of knowledge-infused learning for enhancing deep learning. IEEE Internet Computing 23, 6 (2019), 54–63.
  30. Elnaz Soleimani and Ehsan Nazerfard. 2021. Cross-subject transfer learning in human activity recognition systems using generative adversarial networks. Neurocomputing 426 (2021), 26–34.
  31. Sensor Event Sequence Prediction for Proactive Smart Home Support Using Autoregressive Language Model. In 2023 19th International Conference on Intelligent Environments (IE). IEEE, 1–8.
  32. Pratik Tarafdar and Indranil Bose. 2021. Recognition of human activities for wellness management using a smartphone and a smartwatch: a boosting approach. Decision Support Systems 140 (2021), 113426.
  33. Extrasensory app: Data collection in-the-wild with rich user interface to self-report behavior. In Proceedings of the 2018 CHI conference on human factors in computing systems. 1–12.
  34. Deep learning for sensor-based activity recognition: A survey. Pattern Recognition Letters 119 (2019), 3–11.
  35. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35 (2022), 24824–24837.
  36. Unsupervised Human Activity Recognition through Two-stage Prompting with ChatGPT. arXiv preprint arXiv:2306.02140 (2023).
  37. Neuroplex: learning to detect complex events in sensor networks through knowledge injection. In Proceedings of the 18th conference on embedded networked sensor systems. 489–502.
  38. Kristina Yordanova. 2016. From textual instructions to sensor-based recognition of user behaviour. In Companion Publication of the 21st International Conference on Intelligent User Interfaces. 67–73.
  39. TENT: Connect Language Models with IoT Sensors for Zero-Shot Activity Recognition. arXiv preprint arXiv:2311.08245 (2023).
User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Luca Arrotta (3 papers)
  2. Claudio Bettini (18 papers)
  3. Gabriele Civitarese (15 papers)
  4. Michele Fiori (13 papers)
Citations (4)