CoChat

User-centric Activity Recognition and Prediction Model using Machine Learning Algorithms

Open access
Roy, Namrata, Ahmed, Rafiul, Huq, Mohammad Rezwanul, Shahriar, Mohammad Munem · 2021 · International Journal of Advanced Computer Science and Applications

The DOI matches its Crossref record; 30 of the 31 references it cites were found in a registry or an index; none of the 5 sources its claims cite is checked for support yet.

Abstract

Human Activity Recognition has been a dynamic research area in recent years. Various methods of collecting data and analyzing them to detect activity have been well investigated. Some machine learning algorithms have shown excellent performance in activity recognition, based on which many applications and systems are being developed. Unlike this, the prediction of the next activity is an emerging field of study. This work proposes a conceptual model that uses machine learning algorithms to detect activity from sensor data and predict the next activity from the previously seen activity sequence. We created our activity recognition dataset and used six machine learning algorithms to evaluate the recognition task. We have proposed a method for the next activity prediction from the sequence of activities by converting a sequence prediction problem into a supervised learning problem using the windowing technique. Three classification algorithms were used to evaluate the next activity prediction task. Gradient Boosting performs best for activity recognition, yielding 87.8% accuracy for the next activity prediction over a 16-day timeframe. We have also measured the performance of an LSTM sequence prediction model for predicting the next activity, where the optimum accuracy is 70.90%.

Overview

CoChat Summary

TL;DR

This paper proposes a conceptual user-centric model that uses machine learning to recognize activities from wrist-worn sensor data and predict the next activity from the recognized activity sequence. Gradient Boosting achieved 99.7% recognition accuracy, while next-activity prediction reached 87.8% for a 16-day supervised windowing model and 70.90% for an LSTM model.

Key findings

  • For activity recognition, Gradient Boosting had the highest accuracy at 99.7%; KNN was 99.2%, Random Forest 99.3%, ANN 99.1%, SVM 98.7%, and Naïve Bayes 61.9%. Removing the three novel features (sound level, day-of-week, time-of-day) reduced all algorithms, with Gradient Boosting still best at 98.8% and Naïve Bayes lowest at 54.4%; the drop was around 2% for all algorithms except Naïve Bayes, which dropped almost 7%.
  • For next-activity prediction using the windowing-based supervised approach, the 16-day timeframe outperformed the 8-day timeframe. On 16 days, Gradient Boosting reached 87.8% at window size 6, ANN 81.6% at window size 6, and KNN 82.7% at window size 6. On 8 days, Gradient Boosting reached 61.2% at window size 4, ANN 53.1% at window size 2, and KNN 46.9% at window sizes 2 and 3.
  • The LSTM sequence prediction model achieved 68.75% accuracy for the 8-day timeframe with window size 6 and 70.90% for the 16-day timeframe with window size 8. For 8 days and window size 6, LSTM outperformed the best supervised model; for 16 days and window size 8, the supervised model performed better than LSTM (80.4% vs. 70.9%).
  • The paper reports that both prediction methods perform better with a longer timeframe of activities.

Methods

  • The recognition dataset contained 330,993 rows and ten columns, collected from three participants (two male, one female), each recording data for three consecutive days consisting of two weekdays and one weekend. Data were collected using the Android app AndroSensor on a smartphone tied to the wrist, recording accelerometer, gyroscope, sound level, and timestamps at 0.125 s per instance. Features included acceleration x/y/z, orientation x/y/z, sound level, day-of-week, and time-of-day; the last three were introduced as novel features.
  • Activity recognition evaluated six algorithms: ANN, KNN, Naïve Bayes, Random Forest, SVM, and Gradient Boosting. Next-activity prediction used ANN, KNN, and Gradient Boosting, plus an LSTM sequence prediction model. The sequence prediction problem was converted into a supervised learning problem using a windowing technique; window sizes ranged from 2 to 6 for the 8-day prediction dataset and 2 to 8 for the 16-day dataset, while LSTM used fixed window sizes of 6 for 8 days and 8 for 16 days. The prediction dataset was collected from one participant over 8 and 16 consecutive days.
  • Implementation used Python with scikit-learn, Keras and TensorFlow for LSTM, and Anaconda Jupyter Notebook (Version 3). Default hyperparameters were modified, and training/test accuracy plus a confusion matrix for the best recognition model were reported.

Limitations

  • Stated: resource constraints prevented using a smartwatch or wearable device, so a smartphone tied to the wrist was used; data collection depended on only three participants; batch processing was used due to lack of high-end machines and components; accuracy was moderate considering the dataset and results were not always accurate; prediction accuracy depends mainly on timeframe, and it is difficult to say which model predicts next activity more accurately; future work plans more participants.
  • Stated/evident: overfitting is indicated by training accuracy increasing with window size while test accuracy generally decreases, especially for smaller timeframe datasets.
  • Evident: the prediction dataset came from only one participant, limiting user-centric generalizability, and the recognition dataset was small (three participants, three days each); the model was not deployed in real-time with streaming data.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.14569/ijacsa.2021.0121265

Cites

30 of 30 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Verification

Claims the paper makes

0 Valid · 0 Not valid · 5 Not checked · 67 Own results and interpretations

42 more claims

Create a free account to see all 72 claims and every source verdict.

See all claims — free account
  • Probably not a substantial claim. 6
  • It may state two separate claims as one. 12
  • The quote only partly states this claim. 7

Create a free account to see these claims.

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

5 of 5

Citations

Cites

Show all 30 references

Research works printed but not linked: 3

  1. [3][3] R. Rawassizadeh, B. A. Price, and M. Petre, "Wearable devices: Has the Age of Smart watches Finally Arrived?," Communications of the ACM, 2015, pp. 45-47. -
  2. [16][16] N. C. Krishnan, D. Colbry, C. Juillard and S. Panchanathan, "Real time human activity recognition using tri-axial accelerometers, Sensors, signals and information processing workshop," Sensors Signals and Information Processing Workshop, Sedona, AZ, 28,2018, pp.915-922. -
  3. [19][19] H. Wang and J. Wu, "Classification of Human Posture and Movement Using Accelerometer Data," in International Conference on Innovations in Computing & Networking (ICICN16), CSE, RRCE, ISSN: 09750282. -

Cited by

See all 2

Metadata

Authors
Roy, N., Ahmed, R., Huq, M. R., & Shahriar, M. M.
Affiliations
East West University (BD)
Venue
International Journal of Advanced Computer Science and Applications
Published
2021
Volume
12
Issue
12
ISSN
  • 2156-5570 (ISSN-L)
  • 2158-107X
OpenAlex
W4206749371
Cited by
2
References
31
Citations by year
2024: 1 · 2022: 1
FWCI
0.18
Type
journal article
Language
en
Open access
Licence
cc-by
Locations
  • International Journal of Advanced Computer Science and Applications (publishedVersion, cc-by)
  • International Journal of Advanced Computer Science and Applications (submittedVersion, cc-by)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Context-Aware Activity Recognition Systems
  • Social Sciences › Transportation › Human Mobility and Location-Based Analysis
  • Physical Sciences › Computer Science › Signal Processing › Time Series Analysis and Forecasting
Keywords
human activity recognition, next activity prediction, sensor data, window method, gradient boosting, LSTM, user-centric systems, activity recognition dataset

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-10-10, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-10-10 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: User-centric Activity Recognition and Prediction Model using Machine Learning Algorithms. https://app.cochat.ai/papers/10.14569/ijacsa.2021.0121265
The paper
Roy, N., Ahmed, R., Huq, M. R., & Shahriar, M. M. (2021). User-centric Activity Recognition and Prediction Model using Machine Learning Algorithms. International Journal of Advanced Computer Science and Applications. https://doi.org/10.14569/ijacsa.2021.0121265

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.