CoChat

Accuracy Comparison of CNN, LSTM, and Transformer for Activity Recognition Using IMU and Visual Markers

Open access
Trujillo-Guerrero, María Fernanda, Román-Niemes, Stadyn, Jaén-Vargas, Milagros, Cadiz, Alfonso, Fonseca, Ricardo, Serrano-Olmedo, José Javier · 2023 · IEEE Access

The DOI matches its Crossref record; 47 of the 47 references it cites were found in a registry or an index.

Abstract

Human activity recognition (HAR) has applications ranging from security to healthcare. Typically these systems are composed of data acquisition and activity recognition models. In this work, we compared the accuracy of two acquisition systems: Inertial Measurement Units (IMUs) vs Movement Analysis Systems (MAS). We trained models to recognize arm exercises using state-of-the-art deep learning architectures and compared their accuracy. MAS uses a camera array and reflective markers. IMU uses accelerometers, gyroscopes, and magnetometers. Sensors of both systems were attached to different locations of the upper limb. We captured and annotated 3 datasets, each one using both systems simultaneously. For activity recognition, we trained 8 architectures, each one with different operations and layers configurations. The best architectures were a combination of CNN, LSTM, and Transformer achieving test accuracy from 89% to 99% on average. We evaluated how feature selection reduced the sensors required. We found IMU and MAS data were able to distinguish correctly the arm exercises. CNN layers at the beginning produced better accuracy on challenging datasets. IMU had advantages over other aquisition systems for activity recognition. We analyzed the relations between models accuracy, signal waveforms, signals correlation, sampling rate, exercise duration, and window size. Finally, we proposed the use of a single IMU located at the wrist and a variable-size window extraction.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1109/access.2023.3318563

Cites

47 of 47 references verified0 citation errors · 0 not checkable

Statistics

Figures

FIGURE 1 IMU sensors distribution
FIGURE 1 IMU sensors distributionCC-BY · From the PDF
FIGURE 2 Visual markers and cameras distribution
FIGURE 2 Visual markers and cameras distributionCC-BY · From the PDF
FIGURE 3 Exercises (a) flexion-extension [37], (b) pronation-supination.
FIGURE 3 Exercises (a) flexion-extension [37], (b) pronation-supination.CC-BY · From the PDF
FIGURE 4 Shoulder Abduction-Adduction. (a) neutral position, (b) abduction from 0 ◦ to 60 ◦ [37]
FIGURE 4 Shoulder Abduction-Adduction. (a) neutral position, (b) abduction from 0 ◦ to 60 ◦ [37]CC-BY · From the PDF
FIGURE 6 Vertical Shoulder Flexion-extension. (a) low amplitude (45 ◦ - 50 ◦ ), (b) high amplitude (180 ◦ ) [37]
FIGURE 6 Vertical Shoulder Flexion-extension. (a) low amplitude (45 ◦ - 50 ◦ ), (b) high amplitude (180 ◦ ) [37]CC-BY · From the PDF
FIGURE 7 Internal and external rotation of the shoulder. (a) internal rotation of 30 ◦ , (b) external rotation of 80 ◦ [37]
FIGURE 7 Internal and external rotation of the shoulder. (a) internal rotation of 30 ◦ , (b) external rotation of 80 ◦ [37]CC-BY · From the PDF
Image 7
CC-BY · From the PDF
FIGURE 9 Visual marker at the forearm. A single period of elbow flexion-extension movement. The blue line is the flexion state, and the red line is the extension state.
FIGURE 9 Visual marker at the forearm. A single period of elbow flexion-extension movement. The blue line is the flexion state, and the red line is the extension state.CC-BY · From the PDF
FIGURE 10 Dataset 1. MPU9250 is located at the arm during elbow flexion-extension. Plot of accelerometer, gyro, and mag signal with x,y, and z axes.
FIGURE 10 Dataset 1. MPU9250 is located at the arm during elbow flexion-extension. Plot of accelerometer, gyro, and mag signal with x,y, and z axes.CC-BY · From the PDF
FIGURE 11 Dataset 1. Visual markers located at the lower, middle, and upper arm during elbow flexion extension. The plot of marker position signal in the x,y, and z axes.
FIGURE 11 Dataset 1. Visual markers located at the lower, middle, and upper arm during elbow flexion extension. The plot of marker position signal in the x,y, and z axes.CC-BY · From the PDF
Image 11
CC-BY · From the PDF
FIGURE 13 Graphical Representation of the eight architectures
FIGURE 13 Graphical Representation of the eight architecturesCC-BY · From the PDF
Image 13
CC-BY · From the PDF
FIGURE 14 Plot of best training curves for every dataset using all features
FIGURE 14 Plot of best training curves for every dataset using all featuresCC-BY · From the PDF
FIGURE 16 Confusion matrix of the best-performing architecture of every dataset (best features)
FIGURE 16 Confusion matrix of the best-performing architecture of every dataset (best features)CC-BY · From the PDF
Image 16
CC-BY · From the PDF
Image 17
CC-BY · From the PDF
Image 18
CC-BY · From the PDF
Image 19
CC-BY · From the PDF
Image 20
CC-BY · From the PDF
Image 21
CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

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

The self-check needs the paper’s full text.

Citations

Cites

  • Random Forests

    Breiman, L. (2001) · Machine Learning · doi:10.1023/a:1010933404324 · Cited by 133,538 · cited 1×

    “The algorithm used for feature selection, random forest (RF) [50], [51], is an ensemble learning method combining multiple decision trees to improve the accuracy of the model.”
    Method
  • Attention Is All You Need

    Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 2×

    “This means that all parts of the sequence are treated by their real importance, and the overall context is considered, prioritizing words with higher weight, allowing the model to focus on the right element of the input to predict the next element of the output [43], [44].”
    Background
  • Long Short-Term Memory

    Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318 · cited 1×

    “It comprises memory cells and gates that allow the network to store or discard information over time selectively [39].”
    Background
  • Exploiting Generative AI to Scale up Intelligent Tutoring Systems

    Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658

  • Transformers: State-of-the-Art Natural Language Processing

    Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · doi:10.18653/v1/2020.emnlp-demos.6 · Cited by 8,741

  • LSTM: A Search Space Odyssey

    Greff, K., Srivastava, R. K., Koutnik, J., Steunebrink, B. R., & Schmidhuber, J. (2017) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2016.2582924 · Cited by 6,955 · cited 1×

    “Additionally, each gate has its own set of learnable parameters, allowing the network to adaptively adjust the amount of information stored or discarded based on the input data, making LSTM effective in processing sequential data [40].”
    Background
  • Random decision forests

    Ho, T. K. (2002) · Proceedings of 3rd International Conference on Document Analysis and Recognition · doi:10.1109/icdar.1995.598994 · Cited by 5,054

  • Introduction to modern photogrammetry

    Mikhail, E. M., Bethel, J., & McGlone, J. C. (2001) · Cited by 1,019

  • Analysis of k-Fold Cross-Validation over Hold-Out Validation on Colossal Datasets for Quality Classification

    Yadav, S., & Shukla, S. (2016) · 2016 IEEE 6th International Conference on Advanced Computing (IACC) · doi:10.1109/iacc.2016.25 · Cited by 773 · cited 1×

    “Additionally, in every training process, the dataset was split into 5 parts using k-fold cross validation [38] to alleviate the effects of small datasets and class imbalance.”
    Method
  • A Comparative Study on Transformer vs RNN in Speech Applications

    Karita, S., Chen, N., Hayashi, T., Hori, T., Inaguma, H., Jiang, Z., Someki, M., Soplin, N. E. Y., Yamamoto, R., Wang, X., et al. (2019) · 2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU) · doi:10.1109/asru46091.2019.9003750 · Cited by 727 · cited 1×

    “This means that all parts of the sequence are treated by their real importance, and the overall context is considered, prioritizing words with higher weight, allowing the model to focus on the right element of the input to predict the next element of the output [43], [44].”
    Background

Show all 47 references

Research works printed but not linked: 7

  1. nabriya, 2021, Implementing LSTM for Human Activity Recognition Using Smartphone Accelerometer Data
  2. rathnayakas, 2021, ETFA-workshop
  3. das, 2021, Lstms for human activity recognition
  4. goodfellow, 2016, Deep Learning
  5. tokarczyk, 2006, Photogrammetry-principles of operation and application in rehabilitation, Journal of Rehabilitation Medicine, 10, 31
  6. 2022, Documentation
  7. kapandji, 2010, Fisiología Articular Tomo I Tomo II Tomo III

Cited by

See all 36

Metadata

Authors
Trujillo-Guerrero, M. F., Román-Niemes, S., Jaén-Vargas, M., Cadiz, A., Fonseca, R., & Serrano-Olmedo, J. J.
Affiliations
  • Universidad Politécnica de Madrid (ES)
  • Universidad Yachay Tech (EC)
  • Digevo, Santiago, Chile
  • Center for Biomedical Technology (CTB), Universidad Politécnica de Madrid, Madrid, Spain
Venue
IEEE Access
Published
2023
Volume
11
Pages
106650-106669
ISSN
2169-3536 (ISSN-L)
OpenAlex
W4387010474
Cited by
28
References
47
Citations by year
2026: 7 · 2025: 11 · 2024: 10
FWCI
2.54
Type
journal article
Language
en
Open access
Locations
  • IEEE Access (publishedVersion, cc-by)
  • Hispana (acceptedVersion, cc-by)
  • UPM Digital Archive (Technical University of Madrid) (submittedVersion, cc-by)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • Ministerio de Ciencia, Innovación y Universidades of Spain (PGC2018-097531-B-I00)
  • Cloud Computing
  • Microsoft Founders Hub
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Context-Aware Activity Recognition Systems
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Human Pose and Action Recognition
  • Physical Sciences › Computer Science › Human-Computer Interaction › Hand Gesture Recognition Systems
Keywords
human activity recognition, inertial measurement unit, convolutional neural networks, LSTM, transformer models, sensor data acquisition, feature selection, window size, sampling frequency, signal correlation

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.

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: Accuracy Comparison of CNN, LSTM, and Transformer for Activity Recognition Using IMU and Visual Markers. https://app.cochat.ai/papers/10.1109/access.2023.3318563
The paper
Trujillo-Guerrero, M. F., Román-Niemes, S., Jaén-Vargas, M., Cadiz, A., Fonseca, R., & Serrano-Olmedo, J. J. (2023). Accuracy Comparison of CNN, LSTM, and Transformer for Activity Recognition Using IMU and Visual Markers. IEEE Access. https://doi.org/10.1109/access.2023.3318563

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.