Gait Activity Classification on Unbalanced Data from Inertial Sensors Using Shallow and Deep Learning

Irvin Hussein Lopez-Nava, Luis Valentin-Coronado, Matias Garcia-Constantino, Jesus Favela

Research output: Contribution to journalArticlepeer-review

17 Citations (Scopus)
148 Downloads (Pure)


Activity recognition is one of the most active areas of research in ubiquitous computing. In particular, gait activity recognition is useful to identify various risk factors in people’s health that are directly related to their physical activity. One of the issues in activity recognition, and gait in particular, is that often datasets are unbalanced (i.e., the distribution of classes is not uniform), and due to this disparity, the models tend to categorize into the class with more instances. In the present study, two methods for classifying gait activities using accelerometer and gyroscope data from a large-scale public dataset were evaluated and compared. The gait activities in this dataset are: (i) going down an incline, (ii) going up an incline, (iii) walking on level ground, (iv) going down stairs, and (v) going up stairs. The proposed methods are based on conventional (shallow) and deep learning techniques. In addition, data were evaluated from three data treatments: original unbalanced data, sampled data, and augmented data. The latter was based on the generation of synthetic data according to segmented gait data. The best results were obtained with classifiers built with augmented data, with F-measure results of 0.812 (σ = 0.078) for the shallow learning approach, and of 0.927 (σ = 0.033) for the deep learning approach. In addition, the data augmentation strategy proposed to deal with the unbalanced problem resulted in increased classification performance using both techniques.
Original languageEnglish
Article number4756
Pages (from-to)1-21
Number of pages21
Issue number17
Publication statusPublished (in print/issue) - 23 Aug 2020

Bibliographical note

Funding Information:
Funding: This research was partially funded by the Mexican Council of Science and Technology (CONACyT)-FORDECYT-Consorcio de Inteligencia Artificial under Project 296737.

Publisher Copyright:
© 2020 by the authors. Licensee MDPI, Basel, Switzerland.

Copyright 2020 Elsevier B.V., All rights reserved.


  • Activity Recognition
  • Human Gait
  • Gait Activities
  • Gait Classification
  • Inertial Sensors


Dive into the research topics of 'Gait Activity Classification on Unbalanced Data from Inertial Sensors Using Shallow and Deep Learning'. Together they form a unique fingerprint.

Cite this