Embedded Inter-Subject Variability in Adversarial Learning for Inertial Sensor-Based Human Activity Recognition
Authors: Francisco M. Calatrava-Nicolás, Shoko Miyauchi, Vitor Fortes Rey, Paul Lukowicz, Todor Stoyanov, Oscar Martinez Mozos
Organizations: Centre for Applied Autonomous Sensor Systems (AASS), Örebro University, Örebro, Sweden · Faculty of Information Science & Electrical Engineering, Kyushu University, Fukuoka, Japan · RPTU, Kaiserslautern, Germany · DFKI, Kaiserslautern, Germany · Escuela T´ecnica Superior de Ingenier´ıa y Dise˜no Industrial, Universidad Polit´ecnica de Madrid, Madrid, Spain
This paper addresses the problem of Human Activity Recognition (HAR) using data from wearable inertial sensors. An important challenge in HAR is the model's generalization capabilities to new unseen individuals due to inter-subject variability, i.e., the same activity is performed differently by different individuals. To address this problem, we propose a novel deep adversarial framework that integrates the concept of inter-subject variability in the adversarial task, thereby encouraging subject-invariant feature representations and enhancing the classification performance in the HAR problem. Our approach outperforms previous methods in three well-established HAR datasets using a leave-one-subject-out (LOSO) cross-validation. Further results indicate that our proposed adversarial task effectively reduces inter-subject variability among different users in the feature space, and it outperforms adversarial tasks from previous works when integrated into our framework. Code: https://github.com/FranciscoCalatrava/EmbeddedSubjectVariability.git
Figures & tables
Fig. 1 : Overview of our framework: Steps 1–2 pre-train all module weights. Step 3 introduces adversarial learning to minimize inter-subject variability. Evaluation is performed on previously unseen users. Data distribution A is used for the activity classification (Eq. 1 ), while A′ is the data distribution used in the adversarial task (Eq. 2 ). The circular arrow in Step 3 illustrates the iterative nature of adversarial learning.
Dataset
Model
Accuracy
F1−ScoreM
MCCNN
0.7939±0.0770
0.7511±0.0940
DCLSTM
0.7853±0.1012
0.7266±0.1113
PAMAP2
METIER
0.7924±0.0597
0.7540±0.0574
UIDFE
0.8014±0.1353
0.7648±0.1447
DDLearn
0.7188±0.1561
0.6442±0.1691
Ours
0.8703±0.1219
0.8643±0.1431
Table 1: Comparison with previous approaches (Best in bold).
Fig. 2 : First column: F1−ScoreM for MHEALTH, PAMAP2, and REALDISP (top-down). Second column: Percentage change in Wasserstein distance from Step 2 to Step 3 between training and test set distributions. The top plot gives the distance change per dataset, while the middle (PAMAP2) and bottom (REALDISP) plots detail the distance change per activity. Positive bars (blue) mark a reduction (distance after Step 3 is smaller than after Step 2); negative bars (red) mark an increase.
Dataset
Disc
Accuracy
F1−ScoreM
Superv
0.7472±0.1067
0.7444±0.1232
PAMAP2
Step 2
0.8179±0.1255
0.8229±0.1357
Our
0.8703±0.1219
0.8643±0.1431
Superv
0.9064±0.0724
0.9220±0.0566
REALDISP
Step 2
0.9372±0.0512
0.9098±0.0620
Our
0.9710±0.0423
0.9651±0.0368
Table 2: Ablation Study (Best in bold).
Dataset
Disc
Accuracy
F1−ScoreM
PAMAP2
Di
0.8274±0.1045
0.7869±0.1102
Db
0.8130±0.1453
0.7636±0.1579
Ours
0.8703±0.1219
0.8643±0.1431
REALDISP
Di
0.9447±0.0772
0.9394±0.0566
Db
0.9511±0.0619
0.9445±0.0538
Ours
0.9710±0.0423
0.9651±0.0368
Table 3: Comparison to prior discrimination tasks (Best in bold).
Fig. 3 : Average accuracy and F1−ScoreM for variations in wA (top), wR (middle), and wC (bottom) for PAMAP2.
School of Computer Sciences, Universiti Sains Malaysia, 11800 Pulau Pinang, Malaysia · Artificial Intelligence Research Center, Ajman University, Ajman, United Arab Emirates · Al-Quds Open University, Ramallah, Palestine
Northwestern Polytechnical University Xi’an, Shaanxi, China · RPTU University Kaiserslautern-Landau Kaiserslautern, Rheinland Pfalz, Germany · Xi’an University of Technology Xi’an, Shaanxi, China