Harmonic Loss Function for Sensor-Based Human Activity Recognition Based on LSTM Recurrent Neural Networks

Human activity recognition (HAR) has been a very popular field in both real practice and theoretical research. Over the years, a number of many-vs-one Long Short-Term Memory (LSTM) models have been proposed for the sensor-based HAR problem. However, how to utilize sequence outputs of them to improve the HAR performance has not been studied seriously. To solve this problem, we present a novel loss function named harmonic loss, which is utilized to improve the overall classification performance of HAR based on baseline LSTM networks. First, label replication method is presented to duplicate true labels at each sequence step in many-vs-one LSTM networks, thus each sequence step can generate a local error and a local output. Then, considering the importance of different local errors and inspired by the Ebbinghaus memory curve, the harmonic loss is proposed to give unequal weights to different local errors based on harmonic series equation. Additionally, to improve the overall classification performance of HAR, integrated methods are utilized to exploit the sequence outputs of LSTM models based on harmonic loss and ensemble learning strategy. Finally, based on the LSTM model construction and hyper-parameter setting, extensive experiments are conducted. A series of experimental results demonstrate that our harmonic loss significantly achieves higher macro-F1 and accuracy than strong baselines on two public HAR benchmarks. Compared with previous state-of-art methods, our proposed methods can achieve competitive classification performance.

[1]  Ying Wah Teh,et al.  Deep learning algorithms for human activity recognition using mobile and wearable sensor networks: State of the art and research challenges , 2018, Expert Syst. Appl..

[2]  Sung-Bae Cho,et al.  Evaluation of Deep Convolutional Neural Network Architectures for Human Activity Recognition with Smartphone Sensors , 2015 .

[3]  Mert R. Sabuncu,et al.  Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels , 2018, NeurIPS.

[4]  Xiong Luo,et al.  Regression and classification using extreme learning machine based on L1-norm and L2-norm , 2016, Neurocomputing.

[5]  Davide Anguita,et al.  A Public Domain Dataset for Human Activity Recognition using Smartphones , 2013, ESANN.

[6]  Xiaodong Liu,et al.  A Review on Deep Learning Approaches to Image Classification and Object Segmentation , 2019, Computers, Materials & Continua.

[7]  Daniel Roggen,et al.  Deep Convolutional and LSTM Recurrent Neural Networks for Multimodal Wearable Activity Recognition , 2016, Sensors.

[8]  Nikos Komodakis,et al.  Unsupervised Representation Learning by Predicting Image Rotations , 2018, ICLR.

[9]  Lukun Wang,et al.  Recognition of Human Activities Using Continuous Autoencoders with Wearable Sensors , 2016, Sensors.

[10]  Yoshua Bengio,et al.  Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation , 2014, EMNLP.

[11]  Xiaohui Peng,et al.  Deep Learning for Sensor-based Activity Recognition: A Survey , 2017, Pattern Recognit. Lett..

[12]  Aljo Mujcic,et al.  Computational Balancing between Wearable Sensor and Smartphone towards Energy-Efficient Remote Healthcare Monitoring , 2018 .

[13]  Nirmalya Roy,et al.  Recent trends in machine learning for human activity recognition—A survey , 2018, WIREs Data Mining Knowl. Discov..

[14]  Thomas Plötz,et al.  Deep, Convolutional, and Recurrent Models for Human Activity Recognition Using Wearables , 2016, IJCAI.

[15]  Yu Zhao,et al.  Deep Residual Bidir-LSTM for Human Activity Recognition Using Wearable Sensors , 2017, Mathematical Problems in Engineering.

[16]  S AbdallahZahraa,et al.  Activity Recognition with Evolving Data Streams , 2018 .

[17]  Nicholas D. Lane,et al.  From smart to deep: Robust activity recognition on smartwatches using deep learning , 2016, 2016 IEEE International Conference on Pervasive Computing and Communication Workshops (PerCom Workshops).

[18]  Shahrokh Valaee,et al.  Recent Advances in Recurrent Neural Networks , 2017, ArXiv.

[19]  Xiaoli Li,et al.  Deep Convolutional Neural Networks on Multichannel Time Series for Human Activity Recognition , 2015, IJCAI.

[20]  Hong Yu,et al.  Bidirectional RNN for Medical Event Detection in Electronic Health Records , 2016, NAACL.

[21]  Erik Cambria,et al.  Recent Trends in Deep Learning Based Natural Language Processing , 2017, IEEE Comput. Intell. Mag..

[22]  Sung-Bae Cho,et al.  Human activity recognition with smartphone sensors using deep learning neural networks , 2016, Expert Syst. Appl..

[23]  Wei-Yun Yau,et al.  Structured AutoEncoders for Subspace Clustering , 2018, IEEE Transactions on Image Processing.

[24]  Ross B. Girshick,et al.  Focal Loss for Dense Object Detection , 2017, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[25]  Ricardo Chavarriaga,et al.  Benchmarking classification techniques using the Opportunity human activity dataset , 2011, 2011 IEEE International Conference on Systems, Man, and Cybernetics.

[26]  Ahmad Almogren,et al.  A robust human activity recognition system using smartphone sensors and deep learning , 2018, Future Gener. Comput. Syst..

[27]  Zhuowen Tu,et al.  Deeply-Supervised Nets , 2014, AISTATS.

[28]  Mario Munoz-Organero,et al.  Outlier Detection in Wearable Sensor Data for Human Activity Recognition (HAR) Based on DRNNs , 2019, IEEE Access.

[29]  Bala Srinivasan,et al.  Activity Recognition with Evolving Data Streams , 2018, ACM Comput. Surv..

[30]  Shenghui Zhao,et al.  A Comparative Study on Human Activity Recognition Using Inertial Sensors in a Smartphone , 2016, IEEE Sensors Journal.

[31]  Yan Liu,et al.  Deep Computational Phenotyping , 2015, KDD.

[32]  Yan Li,et al.  Hashtag Recommendation Using LSTM Networks with Self-Attention , 2019, Computers, Materials & Continua.

[33]  Yi Du,et al.  Anomaly detection in traffic using L1-norm minimization extreme learning machine , 2015, Neurocomputing.

[34]  Hakob Sarukhanyan,et al.  ACTIVITY RECOGNITION USING K-NEAREST NEIGHBOR ALGORITHM ON SMARTPHONE WITH TRI-AXIAL ACCELEROMETER , 2012 .

[35]  Yaojie Lu,et al.  Adaptive Scaling for Sparse Detection in Information Extraction , 2018, ACL.

[36]  Walter F. Stewart,et al.  Doctor AI: Predicting Clinical Events via Recurrent Neural Networks , 2015, MLHC.

[37]  Matthijs Douze,et al.  Deep Clustering for Unsupervised Learning of Visual Features , 2018, ECCV.

[38]  Roger B. Grosse,et al.  Reversible Recurrent Neural Networks , 2018, NeurIPS.

[39]  Wei Wei,et al.  Complement Objective Training , 2019, ICLR.

[40]  Thomas Plötz,et al.  Ensembles of Deep LSTM Learners for Activity Recognition using Wearables , 2017, Proc. ACM Interact. Mob. Wearable Ubiquitous Technol..

[41]  Arno J. Knobbe,et al.  Building robust models for Human Activity Recognition from raw accelerometers data using Gated Recurrent Units and Long Short Term Memory Neural Networks , 2019, 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).

[42]  Matthew J. Hausknecht,et al.  Beyond short snippets: Deep networks for video classification , 2015, 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[43]  Lina Yao,et al.  Interpretable Parallel Recurrent Neural Networks with Convolutional Attentions for Multi-Modality Activity Modeling , 2018, 2018 International Joint Conference on Neural Networks (IJCNN).

[44]  Bing Xue,et al.  Evolutionary Design of Recurrent Neural Network Architecture for Human Activity Recognition , 2019, 2019 IEEE Congress on Evolutionary Computation (CEC).

[45]  Jae-Young Pyun,et al.  Deep Recurrent Neural Networks for Human Activity Recognition , 2017, Sensors.

[46]  Sumio Hosaka,et al.  Emulating the Ebbinghaus forgetting curve of the human brain with a NiO-based memristor , 2013 .

[47]  Majid Sarrafzadeh,et al.  Dynamic Computation Offloading for Low-Power Wearable Health Monitoring Systems , 2017, IEEE Transactions on Biomedical Engineering.

[48]  Haiquan Chen,et al.  A Hybrid CNN–LSTM Network for the Classification of Human Activities Based on Micro-Doppler Radar , 2020, IEEE Access.

[49]  Jun Xu,et al.  Real-Time Prediction of Taxi Demand Using Recurrent Neural Networks , 2018, IEEE Transactions on Intelligent Transportation Systems.

[50]  Gary M. Weiss,et al.  Activity recognition using cell phone accelerometers , 2011, SKDD.

[51]  Duc A. Tran,et al.  The 11th International Conference on Mobile Systems and Pervasive Computing (MobiSPC-2014) A Study on Human Activity Recognition Using Accelerometer Data from Smartphones , 2014 .

[52]  Changseok Bae,et al.  Unsupervised learning for human activity recognition using smartphone sensors , 2014, Expert Syst. Appl..

[53]  Yuqi Fan,et al.  Detecting Domain Generation Algorithms with Bi-LSTM , 2019, Computers, Materials & Continua.

[54]  Yuqing Chen,et al.  A Deep Learning Approach to Human Activity Recognition Based on Single Accelerometer , 2015, 2015 IEEE International Conference on Systems, Man, and Cybernetics.

[55]  Xiaoqing Zhang,et al.  A Novel Deep Neural Network Model for Multi-Label Chronic Disease Prediction , 2019, Front. Genet..

[56]  Charles Elkan,et al.  Learning to Diagnose with LSTM Recurrent Neural Networks , 2015, ICLR.

[57]  Masud Ahmed,et al.  Challenges in Sensor-based Human Activity Recognition and a Comparative Analysis of Benchmark Datasets: A Review , 2019, 2019 Joint 8th International Conference on Informatics, Electronics & Vision (ICIEV) and 2019 3rd International Conference on Imaging, Vision & Pattern Recognition (icIVPR).

[58]  Davide Anguita,et al.  Energy Efficient Smartphone-Based Activity Recognition using Fixed-Point Arithmetic , 2013, J. Univers. Comput. Sci..

[59]  Andrey Ignatov,et al.  Real-time human activity recognition from accelerometer data using Convolutional Neural Networks , 2018, Appl. Soft Comput..

[60]  Jiashi Feng,et al.  Deep Clustering With Sample-Assignment Invariance Prior , 2019, IEEE Transactions on Neural Networks and Learning Systems.

[61]  Xiaoli Li,et al.  An integrated framework for human activity classification , 2012, UbiComp.