PrevOccupAI-HAR: A Public Domain Dataset for Smartphone Sensor-Based Human Activity Recognition in Office Environments
This article presents PrevOccupAI-HAR, a new publicly available dataset designed to advance smartphone-based human activity recognition (HAR) in office environments. PrevOccupAI-HAR comprises two sub-datasets: (1) a model development dataset collected under controlled conditions, featuring 20 subjects performing nine sub-activities associated to three main activity classes (sitting, standing, and walking), and (2) a real-world dataset captured in an unconstrained office setting captured from 13 subjects carrying out their daily office work for six hours continuously. Three machine learning models—namely, k-nearest neighbors (KNN), support vector machine (SVM), and Random Forest (RF)—were trained on the model development dataset to classify the three main classes independently of sub-activity variation. The KNN, SVM, and RF models achieved accuracies of 90.94%, 92.33%, and 93.02%, respectively, on the development dataset. When deployed on the real-world dataset, the models attained mean accuracies of 69.32%, 79.43%, and 77.81%, reflecting performance degradations between 21.62% and 12.90%. Analysis of sequential predictions revealed frequent short-duration misclassifications, predominantly between sitting and standing, resulting in unstable model outputs. The findings highlight key challenges in transitioning HAR models from controlled to real-world contexts and point to future research directions involving temporal deep learning architectures or post-processing methods to enhance prediction consistency.
Authors
- Phillip Probst (ORCID: https://orcid.org/0000-0003-3239-9813)
- Hugo Gambôa (ORCID: https://orcid.org/0000-0002-4022-7424)
- Philipp Koch (ORCID: https://orcid.org/0000-0002-8795-758X)
- Ricardo Vigário (ORCID: https://orcid.org/0000-0003-0950-6035)
- Sara Santos (ORCID: https://orcid.org/0000-0002-2554-3648)
- Gonçalo Barros
Institutions
- German Research Centre for Artificial Intelligence (DE)
- Universidade Nova de Lisboa (PT)
Publication Details
- Journal
- Electronics
- Published
- 2026-02-13
- DOI
- https://doi.org/10.3390/electronics15040807
- Primary Topic
- Context-Aware Activity Recognition Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00