{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T19:51:23Z","timestamp":1782935483693,"version":"3.54.5"},"reference-count":38,"publisher":"MDPI AG","issue":"17","license":[{"start":{"date-parts":[[2020,8,23]],"date-time":"2020-08-23T00:00:00Z","timestamp":1598140800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>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\u2019s 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 (\u03c3 = 0.078) for the shallow learning approach, and of 0.927 (\u03c3 = 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.<\/jats:p>","DOI":"10.3390\/s20174756","type":"journal-article","created":{"date-parts":[[2020,8,23]],"date-time":"2020-08-23T21:28:06Z","timestamp":1598218086000},"page":"4756","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":21,"title":["Gait Activity Classification on Unbalanced Data from Inertial Sensors Using Shallow and Deep Learning"],"prefix":"10.3390","volume":"20","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3979-9465","authenticated-orcid":false,"given":"Irvin Hussein","family":"Lopez-Nava","sequence":"first","affiliation":[{"name":"Consejo Nacional de Ciencia y Tecnolog\u00eda, Ciudad de M\u00e9xico 03940, Mexico"},{"name":"Department of Computer Science, Centro de Investigaci\u00f3n Cient\u00edfica y de Investigaci\u00f3n Superior de Ensenada, Ensenada 22860, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9874-4088","authenticated-orcid":false,"given":"Luis M.","family":"Valent\u00edn-Coronado","sequence":"additional","affiliation":[{"name":"Consejo Nacional de Ciencia y Tecnolog\u00eda, Ciudad de M\u00e9xico 03940, Mexico"},{"name":"Centro de Investigaciones en \u00d3ptica, Aguascalientes 20200, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3420-0532","authenticated-orcid":false,"given":"Matias","family":"Garcia-Constantino","sequence":"additional","affiliation":[{"name":"School of Computing, Ulster University, Jordanstown BT37 0QB, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2967-9654","authenticated-orcid":false,"given":"Jesus","family":"Favela","sequence":"additional","affiliation":[{"name":"Department of Computer Science, Centro de Investigaci\u00f3n Cient\u00edfica y de Investigaci\u00f3n Superior de Ensenada, Ensenada 22860, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2020,8,23]]},"reference":[{"key":"ref_1","first-page":"1550147719894532","article-title":"Human action recognition based on low-and high-level data from wearable inertial sensors","volume":"15","year":"2019","journal-title":"Int. J. Distrib. Sens. Networks"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"L\u00f3pez-Nava, I.H., and Mu\u00f1oz-Mel\u00e9ndez, A. (2018). High-level features for recognizing human actions in daily living environments using wearable sensors. Proceedings, 2.","DOI":"10.3390\/proceedings2191238"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1016\/j.comcom.2016.03.006","article-title":"Classification and suitability of sensing technologies for activity recognition","volume":"89","author":"Woznowski","year":"2016","journal-title":"Comput. Commun."},{"key":"ref_4","unstructured":"Long, X., Yin, B., and Aarts, R.M. (2009, January 2\u20136). Single-accelerometer-based daily physical activity classification. Proceedings of the 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Minneapolis, MN, USA."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"120","DOI":"10.1111\/ijpo.12033","article-title":"Classification of physical activity intensities using a wrist-worn accelerometer in 8\u201312-year-old children","volume":"11","author":"Chandler","year":"2016","journal-title":"Pediatr. Obes."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Duncan, M.J., Rowlands, A., Lawson, C., Leddington Wright, S., Hill, M., Morris, M., Eyre, E., and Tallis, J. (2019). Using accelerometry to classify physical activity intensity in older adults: What is the optimal wear-site?. Eur. J. Sport Sci., 1\u20139.","DOI":"10.1080\/17461391.2019.1694078"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"567","DOI":"10.1111\/j.1532-5415.2000.tb05006.x","article-title":"Stair negotiation in older people: A review","volume":"48","author":"Startzell","year":"2000","journal-title":"J. Am. Geriatr. Soc."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1186\/s12966-020-00978-9","article-title":"Systematic review of the prospective association of daily step counts with risk of mortality, cardiovascular disease, and dysglycemia","volume":"17","author":"Hall","year":"2020","journal-title":"Int. J. Behav. Nutr. Phys."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"1151","DOI":"10.1001\/jama.2020.1382","article-title":"Association of daily step count and step intensity with mortality among US adults","volume":"323","author":"Troiano","year":"2020","journal-title":"JAMA"},{"key":"ref_10","unstructured":"Goodfellow, I., Bengio, Y., and Courville, A. (2016). Deep Learning, MIT Press."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"436","DOI":"10.1038\/nature14539","article-title":"Deep learning","volume":"521","author":"LeCun","year":"2015","journal-title":"Nature"},{"key":"ref_12","first-page":"1","article-title":"Deep learning models for real-time human activity recognition with smartphones","volume":"25","author":"Wan","year":"2019","journal-title":"Mob. Netw. Appl."},{"key":"ref_13","unstructured":"Nguyen, K.T., Portet, F., and Garbay, C. (2018, January 25\u201327). Dealing with Imbalanced data sets for Human Activity Recognition using Mobile Phone sensors. Proceedings of the 3rd International Workshop on Smart Sensing Systems, Rome, Italy."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"1263","DOI":"10.1109\/TKDE.2008.239","article-title":"Learning from imbalanced data","volume":"21","author":"He","year":"2009","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Lopez-Nava, I.H., Garcia-Constantino, M., and Favela, J. (2019). Recognition of Gait Activities Using Acceleration Data from A Smartphone and A Wearable Device. Proceedings, 31.","DOI":"10.3390\/proceedings2019031060"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"670","DOI":"10.1016\/j.medengphy.2014.02.009","article-title":"Activity recognition with smartphone support","volume":"36","author":"Guiry","year":"2014","journal-title":"Med. Eng. Phys."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Wei, Z., Qinghui, W., Muqing, D., and Yiqi, L. (2015, January 28\u201330). A new inertial sensor-based gait recognition method via deterministic learning. Proceedings of the 2015 34th Chinese Control Conference (CCC), Hangzhou, China.","DOI":"10.1109\/ChiCC.2015.7260243"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"1486","DOI":"10.1109\/TIFS.2015.2415753","article-title":"An efficient HOS-based gait authentication of accelerometer data","volume":"10","author":"Sprager","year":"2015","journal-title":"IEEE Trans. Inf. Forenic Sec."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Subramanian, R., Sarkar, S., Labrador, M., Contino, K., Eggert, C., Javed, O., Zhu, J., and Cheng, H. (2015, January 23\u201325). Orientation invariant gait matching algorithm based on the Kabsch alignment. Proceedings of the IEEE International Conference on Identity, Security and Behavior Analysis (ISBA 2015), Hong Kong, China.","DOI":"10.1109\/ISBA.2015.7126347"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Caldas, R., Hu, Y., de Lima Neto, F.B., and Markert, B. (2016, January 14\u201316). Self-organizing maps and fuzzy c-means algorithms on gait analysis based on inertial sensors data. Proceedings of the International Conference on Intelligent Systems Design and Applications, Porto, Portugal.","DOI":"10.1007\/978-3-319-53480-0_20"},{"key":"ref_21","unstructured":"Lee, S.M., Yoon, S.M., and Cho, H. (2017, January 13\u201316). Human activity recognition from accelerometer data using Convolutional Neural Network. Proceedings of the IEEE International Conference on Big Data and Smart Computing (BigComp), Jeju, Korea."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"1223","DOI":"10.1007\/s10955-017-1836-5","article-title":"Why does deep and cheap learning work so well?","volume":"168","author":"Lin","year":"2017","journal-title":"J. Stat. Phys."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Nguyen, K.T., Vo-Tran, T.L., Dinh, D.T., and Tran, M.T. (2017, January 27\u201329). Gait recognition with multi-region size convolutional neural network for authentication with wearable sensors. Proceedings of the International Conference on Future Data and Security Engineering, Ho Chi Minh City, Vietnam.","DOI":"10.1007\/978-3-319-70004-5_14"},{"key":"ref_24","first-page":"1897","article-title":"An end-to-end multi-task and fusion CNN for inertial-based gait recognition","volume":"7","author":"Castro","year":"2018","journal-title":"IEEE Access"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Sun, Y., Lo, F.P.W., and Lo, B. (2019, January 19\u201322). A Deep Learning Approach on Gender and Age Recognition using a Single Inertial Sensor. Proceedings of the 2019 IEEE 16th International Conference on Wearable and Implantable Body Sensor Networks (BSN), Chicago, IL, USA.","DOI":"10.1109\/BSN.2019.8771075"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Ahad, M.A.R., Ngo, T.T., Antar, A.D., Ahmed, M., Hossain, T., Muramatsu, D., Makihara, Y., Inoue, S., and Yagi, Y. (2020). Wearable Sensor-Based Gait Analysis for Age and Gender Estimation. Sensors, 20.","DOI":"10.3390\/s20082424"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"228","DOI":"10.1016\/j.patcog.2013.06.028","article-title":"The largest inertial sensor-based gait database and performance evaluation of gait-based personal authentication","volume":"47","author":"Ngo","year":"2014","journal-title":"Pattern. Recogn."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Um, T.T., Pfister, F.M., Pichler, D., Endo, S., Lang, M., Hirche, S., Fietzek, U., and Kuli\u0107, D. (2017, January 13\u201317). Data augmentation of wearable sensor data for parkinson\u2019s disease monitoring using convolutional neural networks. Proceedings of the 19th ACM International Conference on Multimodal Interaction, Glasgow, UK.","DOI":"10.1145\/3136755.3136817"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Steven Eyobu, O., and Han, D.S. (2018). Feature representation and data augmentation for human activity classification based on wearable IMU sensor data using a deep LSTM neural network. Sensors, 18.","DOI":"10.3390\/s18092892"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"131","DOI":"10.1023\/A:1007465528199","article-title":"Bayesian network classifiers","volume":"29","author":"Friedman","year":"1997","journal-title":"Mach. Learn."},{"key":"ref_31","unstructured":"Quinlan, J.R. (2014). C4.5: Programs for Machine Learning, Elsevier."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1007\/BF00994018","article-title":"Support-vector networks","volume":"20","author":"Cortes","year":"1995","journal-title":"Mach. Learn."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"580","DOI":"10.1109\/TSMC.1985.6313426","article-title":"A fuzzy k-nearest neighbor algorithm","volume":"SMC-15","author":"Keller","year":"1985","journal-title":"IEEE Trans. Syst. Man. Cybern."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Sengupta, S., Basak, S., Saikia, P., Paul, S., Tsalavoutis, V., Atiah, F., Ravi, V., and Peters, R.A. (2020). A Review of Deep Learning with Special Emphasis on Architectures, Applications and Recent Trends. Knowl.-Based Syst.","DOI":"10.20944\/preprints201902.0233.v1"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Hamme, T., Garofalo, G., Argones R\u00faa, E., Preuveneers, D., and Joosen, W. (2019). A Systematic Comparison of Age and Gender Prediction on IMU Sensor-Based Gait Traces. Sensors, 19.","DOI":"10.3390\/s19132945"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Zhao, Y., and Zhou, S. (2017). Wearable Device-Based Gait Recognition Using Angle Embedded Gait Dynamic Images and a Convolutional Neural Network. Sensors, 17.","DOI":"10.3390\/s17030478"},{"key":"ref_37","unstructured":"Wang, Z., and Oates, T. (2015, January 25\u201331). Imaging Time-Series to Improve Classification and Imputation. Proceedings of the 24th International Conference on Artificial Intelligence, Buenos Aires, Argentina."},{"key":"ref_38","unstructured":"Nair, V., and Hinton, G.E. (2010, January 21\u201324). Rectified Linear Units Improve Restricted Boltzmann Machines. Proceedings of the 27th International Conference on International Conference on Machine Learning, Haifa, Israel."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/20\/17\/4756\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T10:05:19Z","timestamp":1760177119000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/20\/17\/4756"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,8,23]]},"references-count":38,"journal-issue":{"issue":"17","published-online":{"date-parts":[[2020,9]]}},"alternative-id":["s20174756"],"URL":"https:\/\/doi.org\/10.3390\/s20174756","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,8,23]]}}}