Skip to main content
JMIR Biomedical Engineering logoLink to JMIR Biomedical Engineering
. 2026 Sep 16;11:e95116. doi: 10.2196/95116

Minimal Sensor Configuration for Human Activity Recognition in Patients With Hip Osteoarthritis: Proof-of-Concept Study

Noor Alalem 1,2,✉, Valérie Duay 3, Angelo Di Benedetto 3, Kevin Rose-Dulcina 1,2,4, Didier Hannouche 4, Stéphane Armand 1,2, Xavier Gasparutto 1,2,4
Editor: Javad Sarvestan
PMCID: PMC13580699  PMID: 42748053

Abstract

Background

Hip osteoarthritis (OA) impairs function during activities of daily living (ADL); however, objective functional assessment methods are lacking. Objectively measuring and characterizing functional deficits during ADL can help rehabilitation specialists target the activities in which patients experience the greatest difficulties. To characterize daily living function, ADL must first be accurately identified. Human activity recognition (HAR) models based on wearable sensor measurements, such as inertial measurement units (IMUs), have been implemented in individuals with various functional impairments but not yet in people with end-stage hip OA. In addition, the balance between HAR accuracy and wearability, which is crucial for patients’ acceptance, remains unclear. Finally, to assess deficits of pathological populations, comparison with asymptomatic controls is necessary.

Objective

This study aimed to evaluate the minimal accurate IMU configuration for HAR, from 8 to 1 IMU, in patients with hip OA and asymptomatic controls for mobility-related activities.

Methods

Data from 20 patients and 9 controls were included. Participants completed a tour of ADL in the hospital vicinity while equipped with 8 IMUs. Activities included gait on flat ground, gait up and down a ramp, stair ascent/descent, turns, sitting up/down, and static sitting. Bidirectional gated recurrent unit models were trained to classify ADL based on 3D accelerations and angular velocities of multiple IMU configurations. Model accuracy was assessed on test sets of patient and control data using the Cohen Kappa( κ).

Results

The resulting κ values were 0.95 for 8 IMUs, 0.93 for 4 IMUs, 0.90 for 2 IMUs, and 0.79 for 1 IMU. The accuracy was higher for controls than for patients. The best 2-IMU configurations were 2 shanks and 2 feet, and the best single-IMU configuration was the shank.

Conclusions

Reducing the number of IMUs from 8 to 2 showed only a minimal decrease in κ, suggesting that minimal IMU setups could be as accurate as larger setups. Regarding gait detection, a single IMU was sufficient to reach very high accuracy (κ≥0.90). The single pelvic IMU showed the lowest accuracy for gait while still reaching high accuracy (κ>0.65). These results underline the potential of single-IMU or 2-IMU configurations to recognize mobility activities under semistandardized conditions. However, given the small sample size, these findings should be validated in larger and more heterogeneous hip OA cohorts before any clinical application can be considered.

Introduction

Osteoarthritis (OA) is one of the leading causes of disability [1]. Individuals with end-stage hip OA experience joint pain, swelling, stiffness, and functional limitations [2]. This hinders their ability to perform activities of daily living (ADL), such as walking, ascending or descending stairs, transitioning from a chair, and performing household chores. The extent of functional limitations in people with hip OA depends on the amount of structural disease progression and associated symptoms [2]. There is no cure for hip OA; however, its common treatment is total hip arthroplasty (THA), which aims to alleviate pain and restore function [3]. However, it is recognized that undergoing THA does not imply reversal of disability and complete restoration of function [2], and that patients do not reach the functional level of healthy controls [4]. The management of hip OA hence requires an understanding of the symptoms and functional limitations of the individual [5], which in turn requires evaluation of the influence of hip OA on ADL characteristics. Assessing the amount of ADL performed by patients as well as the differences in activity quantity before and after THA could provide information about their functional levels and their ability to perform a certain activity. Moreover, measuring functional deficits during ADL upon recognizing activity type can help identify activities during which patients face the greatest limitations, allowing rehabilitation practitioners to target such activities for patient-specific functional improvement [6]. Ultimately, hip OA is characterized by mobility impairments that directly affect how individuals perform everyday activities. Therefore, monitoring ADL related to real-world mobility, such as crossing the street, cooking, dressing, or cleaning, could be clinically relevant, as they are related to pain, stiffness, societal participation restrictions, and quality of life.

To assess the functional status of patients with hip OA, clinicians mostly rely on patient-reported outcome measures [7] or objective standardized tests (eg, 6-min walk test, 30 s chair-stand test, etc) [8]. The former tools are subjective [9] and assess a patient’s perception of their ability to perform a functional task and were reported as more influenced by pain than objective function [10]. The latter tests measure capacity—that is, what individuals “can do” in supervised settings—rather than performance, which reflects function in ADL or, as defined by the World Health Organization, what individuals “actually do” in their natural environment [11]. Therefore, objective tools that can measure patients’ functional performance in daily living settings are needed to fully capture patients’ function.

Wearable inertial measurement units (IMUs) can capture unsupervised movement data, which can then be processed into clinically interpretable information [12]. Thus, IMUs have the potential to (1) provide mobility outcomes measured during ADL that could support clinical trials and (2) improve the understanding of patient function [13]. Nevertheless, while IMUs can collect large amounts of data over extended periods, the resulting datasets can quickly become tremendous, complex to treat, and most importantly, clinically uninterpretable [14]. Thus, the first step after data collection is to identify the activities performed by the patients, based on the available IMU signals, that is, angular velocities and linear accelerations, before being able to characterize them.

Human activity recognition (HAR)—a popular approach that uses machine learning (ML) algorithms for automatic activity classification—has been successfully used to identify ADL from IMU data. Most existing HAR models rely on traditional ML methods such as Random Forests, Decision Trees, and Support Vector Machines. Although they achieved good performance, they relied on handcrafted feature extraction, which can only capture shallow features from the input data [15]. In recent years, deep learning neural networks, including convolutional neural networks (CNNs), recurrent neural networks, long short-term memory networks, and gated recurrent units (GRUs), have become popular [16]. GRUs were designed to reduce computational complexity associated with long short-term memory networks [17] and have shown advantages in modeling temporal sequences, outperforming existing ML methods in classification accuracy [13,14]. Since GRUs can automatically extract features from raw time-series data, without any human intervention, they make it possible to identify unknown movement patterns [18]. In addition, hybrid networks such as CNN-bidirectional GRU (Bi-GRU) and transformer-based attention models have been recently reported as potential solutions for HAR [17,18].

Several studies have developed deep learning–based HAR models to recognize mobility-related activity in healthy participants using multi-IMU setups [17,19]. The most common classified activities include walking, ascending and descending stairs, standing, sitting, and lying [16]. The most reported metric was accuracy, ranging from 0.90 to 0.97 [17,19,20]. One study built a Bi-GRU network, which obtained accuracies of 0.95, 0.95, and 0.99 when tested on 3 different datasets with healthy participants [21]. Bi-GRUs were selected in this study as a balanced trade-off between temporal modeling, making them well suited for HAR and relatively small datasets [22]. Moreover, Bi-GRUs were used in many hybrid HAR architectures such as CNN-BiGRU as they improved model performance [22-24]. Transformer-based attention models and activity graph-based CNNs have also been recently reported as potential solutions for HAR [17,25].

A large range of sensor configurations was used in the literature for HAR [16]. However, one perspective of this study is using the HAR model for classifying gait and measuring its spatiotemporal parameters (ie, walking speed, stride length, etc), in addition to hip range of motion in patients with hip OA since they are outcomes of clinical interest [26]. The configurations of previous studies [27] to assess gait and mobility parameters included (1) 7 IMUs: waist, thighs, shanks, and feet; (2) 4 IMUs: thighs and shanks; (3) 3 IMUs: waist and feet; (4) 2 IMUs: waist and thigh; (5) 2 IMUs: waist and shank; (6) 2 IMUs: waist and foot; (7) 2 IMUs: shanks; (8) 2 IMUs: feet; (9) 1 IMU: waist; (10) 1 IMU: thigh; (11) 1 IMU: shank; (12) 1 IMU: foot; (13) 1 IMU: chest; and (14) 1 IMU: wrist. The shanks configuration was the most used among multisensor configurations [28-30], followed by the shanks and thighs configuration [31-33]. Regarding single-sensor configurations, the waist was the most reported [33-35], followed by the foot [36-39]. Regarding populations, most models were trained using healthy participant data [16], and other models were trained using data from patients with knee OA [31] as well as those with Parkinson disease, stroke, or older adults who are fall-prone or frail [15,16].

The existing HAR models have 4 main limitations. First, movement characteristics and compensations of patients with hip OA are different from those of healthy people or people with knee OA [21,40]. Indeed, it was shown that HAR models trained on healthy participants only could not accurately classify patient activities [35]. Still, since comparison with controls is required to assess patients’ limitations, an ideal HAR model would be trained and evaluated with both patients with hip OA and controls. Second, the optimal number and configuration of IMUs for accurate activity recognition in patients with hip OA have not yet been systematically investigated. Identifying the minimal IMU configuration with acceptable recognition would greatly help improve patient acceptance [36] and the subsequent possibility of following cohorts. The third limitation in this context was the common class imbalance issue in datasets, that is, there is a large discrepancy between the number of observations per class [16]. This is largely because walking is the most frequent daily living activity compared to less frequent activities such as taking stairs or turning. Consequently, models trained on unbalanced datasets may appear accurate simply by correctly predicting the most prevalent class, giving a misleading impression of the overall performance [37]. When compared to accuracy, precision, recall, and F1 score metrics, the Cohen κ was reported to be more robust and tolerant to variations in class distribution [38] and could be an appropriate metric to evaluate model performance on imbalanced datasets. The fourth limitation is the potential misplacement of IMUs by patients in daily life. To the best of our knowledge, no prior study has addressed the variability of IMU positions during daily life, despite this being an inevitable factor.

Given the limitations of the literature, the aim of this study was (1) to evaluate the performance of HAR models in patients with hip OA and controls as a function of IMU number and configuration and (2) to compare accuracy between patients with hip OA and controls.

Methods

Ethical Considerations

This observational study was conducted in accordance with the principles of the Declaration of Helsinki. Ethical approval was obtained from the Comité Cantonal d’Éthique de la Recherche (CCER-2017‐00817, Geneva, Switzerland). Written informed consent was obtained from all participants prior to their inclusion in the study. Data, including videos of participants, were stored according to the Swiss Human Research Ordinance Art. 5; the videos did not include participants’ faces. For data protection purposes, the data were stored on a local and secure server accessible only to the clinicians and researchers involved in this project with due rights from the ethics committee of Geneva (Comité Cantonal d’Éthique de la Recherche). Participants consented to the use of their data for research purposes, given that proper anonymization and protection measures would be taken.

Recruitment

This study included 21 patients with end-stage hip OA and 10 asymptomatic controls. The inclusion criteria for patients were (1) aged 30 to 85 years, (2) planned for an elective primary THA due to OA, (3) anterior/posterior surgical approach, and (4) able to walk 10 m without assistance. The inclusion criteria for controls were (1) matched for age, (2) no neuromusculoskeletal disorders that could affect mobility, and (3) able to walk 10 m without assistance. Sex distribution was tested using the chi-square test, and differences in age, height, and BMI were evaluated using nonparametric Wilcoxon t tests (P<.05).

Protocol

Participants were asked to perform a 10-minute semistandardized tour in the hospital vicinity, with activities including walking on flat ground, walking up and down a ramp, ascending and descending stairs, turning, sitting up/down, and static sitting. They were equipped with 8 IMUs (Physilog 6, MindMaze, Switzerland) placed on the thorax, pelvis, thighs, shanks, and feet, and simultaneously video-recorded with a smartphone to provide ground truth for activity identification. Participants wore their usual clothes during the tour and sandals equipped with pressure insoles (not used in the current study).

The dataset consisted of 3-dimensional linear acceleration and angular velocity signals acquired at 128 Hz, along with activity labels assigned to each timestamp in videos with BORIS (version 8.27.10) [39] by a single operator. The interoperator agreement of task labeling was evaluated using a second operator on a subset of 7 participants. The general workflow of the study presented in Figure 1 describes the workflow of the HAR algorithm and will be detailed in the following sections.

Figure 1. Human activity recognition workflow, including data acquisition, preprocessing, data augmentation, model training, and activity classification steps. IMU: inertial measurement unit.

Figure 1.

Preprocessing

IMU recordings containing corrupted data (ie, IMU malfunction) were removed.

Brief transitions between activities (ie, sit-to-stand, sit-down transitions, and 90° turns) were also excluded to simplify classification since these transitions represent short intertask movements rather than discrete activities and could confuse the model. Moreover, walking on flat ground and up and down a ramp (5° slope) were grouped as “Gait,” and left and right 180° turns (U-turns) were grouped as “Turns” for further simplification. As a result, 5 activities were selected as outputs: gait, stair climbing, stair descent, turns, and static sitting. All IMU signals were filtered using a Butterworth low-pass filter (zero-phase, cutoff: 2 Hz, second order).

Data Augmentation

To simulate IMU placement variability in addition to data augmentation, rotations were applied to the IMU coordinate systems. Rotations included 2 random angles, three 180° flips (1 per axis), and 1 inversion for all axes per segment. The assumption was that rotating the acceleration and angular velocity signals could make the model more robust to random sensor placements in daily life. Besides rotation, 4 data augmentation methods commonly used in image processing were used to handle class imbalance [41]: (1) scaling, (2) jittering, (3) cutting, and (4) smoothing [42]. The 4 methods were parametrized and randomly applied to the data to synthetically generate observations for the less frequent classes, to match the number of occurrences of gait, the most frequent one. More precisely, scaling was implemented by multiplying each sensor signal by a random amplitude factor proportional to its norm. Jittering was based on adding Gaussian noise to the signal amplitude, where noise magnitude was 1% of the signal’s norm. Cutting was implemented using a cut ratio, determined randomly, while enforcing the preservation of a minimum of 100 samples to avoid overly short signals. Smoothing relied on a Hann-window convolution filter to smooth signal edges. While rotations were applied equally to all classes to simulate IMU placement variability, scaling, jittering, cutting, and smoothing were applied exclusively to minority classes to match the observation count of gait, the majority class. This asymmetric strategy was intentional, as it directly addresses class imbalance while avoiding unnecessary inflation of the majority class data. The class-balanced weighted cross-entropy loss function further compensated for any remaining imbalance during training.

Before augmentation, the dataset was randomly split into training and test sets with a 75:25 ratio, leaving 7 participants (3 controls and 4 patients) for the test set. The augmentation process was only applied to the training set, leaving the test set originally imbalanced. Before augmentation, gait was the most frequent activity, accounting for 60% (46,080/76,800 frames) of the total tour’s duration (~6 min). After applying rotations, all activities, including gait, were augmented, resulting in the same uneven distribution; gait still accounted for 60% (276,480/460,800 frames) but increased to approximately 36 minutes and 276,480 frames. After augmenting the other classes to match gait count with the 4 mentioned methods, classes were evenly distributed, each representing 20% (276,480/1,382,400 frames) of the total duration with the same count as gait (~36 min).

Downsampling

All IMU signals were scaled using the StandardScaler library in Python 3.12 and downsampled by a factor of 3 (43 Hz) [43,44] to reduce the computation time caused by augmentation.

Bi-GRU Architecture

The proposed network structure of the Bi-GRU model is presented in Figure 2. To maintain the time dependency of the data points in each activity, a sliding window (1-s length) with an overlap of 300 milliseconds was used to input the 3D accelerations and angular velocities to the GRU model, and output windows were the 5 activities. The input windows were fed into a Bi-GRU with 128 neurons, followed by a unidirectional GRU with 64 neurons to extract temporal features [16]. After each GRU layer, a dropout layer was added to reduce overfitting. Finally, the output of the network was obtained from 3 dense layers (fully connected) and a rectified linear unit function. In addition, a batch normalization layer was added after the dense layers to accelerate the training process [45]. The model was trained with a learning rate of 0.001. The final output probabilities of each class were obtained using the softmax function. The output classes were further classified into an “Unknown” class if the Softmax probability fell below a rejection threshold, defined as Q1=−1.5 × IQR of the distribution of maximum softmax probabilities derived from correctly classified known-class samples in the validation set [46]. The training and prediction processes were run using a 13th Gen Intel Core i9-13900 at 2 GHz (Intel Corp). The training and testing were performed once for each IMU configuration, yielding a unique model per configuration. Every model was trained using a class-balanced weighted cross-entropy loss function to account for class imbalance. The network parameters were optimized with the Adam optimizer, with a consistent batch size of 512 [47]. The computational time required for training each model configuration was approximately 30 minutes.

Figure 2. Architecture of the proposed bidirectional gated recurrent unit (Bi-GRU) model illustrating the input data, network layers, and training hyperparameters. GRU: gated recurrent unit; ReLU: rectified linear unit.

Figure 2.

IMU Configurations

We tested the configurations mentioned in the literature in addition to 3 other configurations (Figure 3): (1) 8 IMUs: trunk, pelvis, thighs, shanks, and feet, (2) 3 IMUs: pelvis and shanks. The wrist IMU was not used in this study as it was shown to yield higher variability and lower correlation when estimating temporal gait parameters [48], as opposed to the chest and thigh locations [41,42]. For configurations using one side of the limbs (eg, waist and thigh, waist and shank, thigh, shank, etc), the operated hip side was chosen for patients, and an arbitrary side for controls.

Figure 3. Inertial measurement unit (IMU) configurations evaluated for human activity recognition, showing the sensor placements for each setup, ranging from 8 to 1 sensor.

Figure 3.

Model Performance

For each configuration, a 10-fold group cross-validation was performed on the training set (n=22 participants, 75% of the dataset). To avoid data leakage, each participant was used in the validation set only once. This group cross-validation approach was chosen as it provides subject-independent performance estimates, as recommended for HAR studies and ML models developed with limited sample sizes [45,46]. The outcome of the training was the average F1 score across all folds, and the best model among the 10 was selected based on the highest F1 score. The number of epochs was set to 70, and to prevent overfitting, early stopping was applied when the validation F1 score stopped increasing (Figure S1, Multimedia Appendix 1). To ensure reproducibility, random seeds were set to 42. The best model was used to predict the output classes on the unseen test set, and the resulting overall precision (1), recall (2), specificity (3), and F1 score (4) were reported. In addition, to check for the ability of the model to recognize each activity individually, per-class metrics were calculated. The data processing, model architecture, and training were developed and implemented using Python 3.12.0 with the libraries NumPy, Pandas, Torch, and Scikit learn.

Precision=TPTP+FP (1)
Recall=TPTP+FN (2)
Specificity=TNTN+FP (3)
F1score=2⋅(precision⋅recall)precision+recall (4)

To assess the overall agreement between the model and the operators (ie, the model’s predictions vs the labels of operator 1), the Cohen κ statistic—a measure of agreement between categorical variables—was used. A κ of 1 indicates perfect agreement between raters, while a κ of 0 indicates agreement due to random chance [49]. κ was calculated over output windows of 1 second (43 frames).

Cohen κ values were interpreted as follows: 0 to 0.20, very low agreement; 0.21 to 0.40, low agreement; 0.41 to 0.60, medium agreement; 0.61 to 0.80, high agreement; 0.81 to 1.0, very high agreement [50]. 95% CIs were also calculated for the κ values to estimate the true κ range and assess clinical acceptability [50].

Interoperator Agreement

A second operator additionally labeled videos of the test set (n=7 participants). Activities were labeled at each video frame and then segmented into 1-second windows with an overlap of 300 milliseconds. The interoperator agreement was then evaluated with the Cohen κ.

Results

Participants

After the exclusion of 2 participants due to unexpected signal loss, 20 patients with hip OA and 9 asymptomatic controls (Table 1) were included in this study’s analysis.

Table 1. Participant characteristics.

Characteristics Patients (n=20) Controls (n=9) P value
Sex (female), n 11 7 .08
Age (y), mean (SD) 60.7 (6.9) 69 (7.9) .29
Weight (kg), mean (SD) 72.3 (13.2) 64.1 (13.3) .04
Height (cm), mean (SD) 171.2 (11.4) 163 (10.1) .06
BMI (kg/m2), mean (SD) 24.8 (3.0) 23.41 (3.1) .48

Kappa vs IMU Setup

The 8-IMU configuration obtained the highest agreement (κ=0.95) with a very small CI for the patient test set (Figure 4). Decreasing the number of IMUs led to lower κ values and larger CIs, indicating lower accuracy and higher variability. Configurations with the lowest agreement and highest variability included the pelvis (eg, 2-IMU pelvis-thigh, 2-IMU pelvis-shank, 2-IMU pelvis-foot, and 1-IMU pelvis). However, the configurations with only 2 IMUs on the shanks or feet had very high agreement accuracy and low variability. Single-IMU configurations varied from low to high agreement with increased CIs. The shank demonstrated the highest κ with the lowest variability among single-IMU configurations.

Figure 4. Cohen κ values with 95% CIs across inertial measurement unit (IMU) configurations for the patient (n=4) and control (n=3) test sets.

Figure 4.

Kappa vs Activity

Most configurations allowed activity recognition in patients with end-stage hip OA with sufficient levels of agreement (κ>0.6). The accuracy of task detection was dependent on the task itself (Figure 5). Indeed, gait and static sitting presented very good results (κ>0.8) for all configurations, while turns highly depended on the configuration, with agreements ranging from low to very high. Stair ascent and descent were also well detected in most configurations (κ>0.6). Regarding the “Unknown” class, the frequency of its prediction ranged from 2.3% to 12.8% depending on IMU number and configuration, and model performance remained constant as long as the threshold was less than 0.8.

Figure 5. Per-class Cohen κ values across inertial measurement unit configurations for each activity in the patient (n=4) and control (n=3) test sets.

Figure 5.

Patients vs Controls

Regarding asymptomatic controls, recognition was accurate in all configurations (κ>0.80) with small CIs and was sufficiently accurate in the pelvic configuration, despite its lower κ of 0.65. The quality of recognition varied from task to another, as also observed with patients. Gait and static sitting showed consistently very high agreement in all configurations, while turns, stair ascent and descent showed moderate recognition quality (medium agreement) in 3 (20%) of the configurations.

Precision, recall, F1 score, and specificity metrics for patients and controls are presented in Multimedia Appendix 1 (Figures S3 and S4).

Discussion

This study was the first to (1) develop an HAR model trained using data from patients with end-stage hip OA and (2) perform a thorough comparison of commonly used single- and multi-IMU configurations.

Principal Findings

This study’s 8-IMU, 7-IMU, 4-IMU (thighs and shanks), 3-IMU (pelvis-feet), and 2-IMU (shanks and feet) models achieved very high levels of agreement with small CIs in patients with hip OA and asymptomatic controls. The good accuracy of shanks to identify mobility-related activities aligns with previous research highlighting the most accurate IMU configurations for measuring spatiotemporal gait parameters in children with cerebral palsy [51]. Interestingly, the differences in accuracy between the 8-IMU, 4-IMU, and best-performing 2-IMU configurations (ie, shanks, feet) were minimal for patients with hip OA, where the shanks and feet obtained precision, recall, specificity, and F1 score values >0.9 as shown in Figures S3 and S4, Multimedia Appendix 1. The agreement remained very high, with κ values between 0.85 and 0.95, suggesting that 2 well-placed IMUs can provide a similar accuracy level as those of a full-body IMU setup. Single-IMU configurations showed lower accuracy, with 2 configurations achieving high agreement (0.78 and 0.75 for the shank and trunk), and 3 configurations obtaining medium agreement (0.59, 0.50, and 0.45 for the thigh, pelvis, and foot). Despite being lower than those of multi-IMU configurations, these outcomes may be acceptable when assessing ADL, especially in studies focusing on gait. Indeed, all single-IMU setups achieved high to very high agreement in gait detection. Moreover, a κ>0.60 was reported to be equivalent to an agreement of 90% [50], which suggests very good classification performance for the single-IMU shank and trunk configurations. For 2-IMU configurations that combined the pelvis with the thigh, shank, or foot, the models generally performed worse—exhibiting higher variability and lower accuracy—compared to configurations that did not include the pelvic IMU. Similarly, the pelvic IMU alone showed lower accuracy compared to other single-IMU configurations. This may be explained by the lower amplitudes of acceleration and angular velocity that the pelvic IMU measures, resulting in a lower signal-to-noise ratio that could yield an undesired noisy signal. Moreover, since most of the activities classified were ambulatory (ie, gait, stairs, and turns), they were more accurately reflected by thigh, shank, or foot IMUs than by the pelvis given the swing movements occurring in these segments. Thus, the pelvic IMU might have confused the model rather than contributed to useful information in the 2-IMU configurations.

Patients showed lower κ values and greater variability across configurations when compared with asymptomatic controls. However, recognition accuracy still depended on activity type in both groups, where gait and static sitting were the most robust, while stairs and turns showed lower accuracy and higher variability. Stair ascent and descent were often confused with gait due to similar cyclic movement patterns. Similarly, turn recognition showed lower accuracy due to its misclassification as gait, as turning includes multiple steps, which makes it closer to gait. Additionally, variability in turning strategies (eg, pivot turns vs multistep turns) may have contributed to misclassification. The discrepancy between precision and recall observed in patients (Figure S3, Multimedia Appendix 1) was not observed in controls’ metrics (Figure S4, Multimedia Appendix 1), where precision and recall were consistently high (≥0.95) in all configurations, and slightly lower in the pelvic IMU configuration (recall=0.90, precision=0.93). These results suggest that HAR in control participants was more accurate, and its high precision and recall encourage the applicability of several model configurations for assessing activity quantity and quality in healthy individuals.

The narrow CIs observed for most configurations, particularly for the 8-IMU, 4-IMU, and 2-IMU shanks/feet setups, suggest stable and consistent model performance despite the limited sample size. Moreover, the κ values were obtained on a fully unseen test set, providing an unbiased estimate of model performance. However, the estimate should still be interpreted with caution due to the small sample size. While the numerical difference in κ between the 8-IMU, 4-IMU, and best-performing 2-IMU configurations appears small, it is important to note that performance degradation remains present and variability increased with fewer IMUs. The clinical acceptability of these configurations will ultimately depend on the intended application as discussed in the “Selecting the Optimal Model” section.

Comparison With Prior Work

Various studies have developed HAR models and achieved high accuracy, but most models were trained using data from healthy populations [17,30], which are not necessarily applicable to patients with pathologies of the locomotor system [35]. Two studies have previously explored multiple IMU configurations to classify activity in healthy participants. Rahn et al [52] developed a CNN-based HAR model and investigated several smartphone-IMU configurations with 5 IMUs placed on the upper arm, wrist, lower back, upper thigh, and ankle and a smartphone placed in the front right pocket. They reported F1 scores between 0.65 and 0.87 for 1 IMU configurations, which are lower than the F1 scores achieved in this study’s single-IMU setups (>0.90 for the thigh, shank, and trunk). As for their 2-sensor setups (1 IMU and 1 smartphone), they reported F1 scores between 0.68 and 0.97, which are comparable to this study’s 2-IMU setups (0.75 to 0.98). In a similar study, Dalton and O’Laighin [53] explored multiple IMU configurations positioned on the chest, waist, wrist, and ankle with very high agreement (κ ranging from 0.77 to 0.95). These κ values were higher than those reported in the present study for the same configurations (1-IMU foot and 1-IMU pelvis: 0.45 and 0.50). This may be explained by the fact that our Bi-GRU model was trained with more data from patients with hip OA than from healthy controls.

Selecting the Optimal Model

The criteria for selecting the “best” HAR model rely on its future application, that is, whether the aim is to assess activity quantity or quality. To evaluate activity quantity (ie, how much a patient performs), both false positives and false negatives should ideally be 0 to avoid overquantification or underquantification. On the other hand, when assessing activity quality, given the model’s high precision in correctly identifying tasks (ie, how a patient performs), false negatives would only reduce the amount of data analyzed, but false positives will be the primary concern, as considering these occurrences would lead to analyzing the wrong task. For example, when analyzing gait in daily living conditions, one needs to be sure that the bouts selected are gait and not another cyclic motion such as cycling, stair ascent, or shuffling. However, it is not necessary to identify all gait bouts within a day to get a relevant evaluation of a patient’s gait quality in daily living conditions [54]. Based on the precision (0.89‐0.95) and recall (0.70‐0.98) ranges observed in this study for patients with hip OA (Figure S3, Multimedia Appendix 1), precision was both higher and more stable than recall. This suggests that the model is well-suited for assessing activity quality, given its high precision in correctly identifying tasks (low number of false positives). However, its lower recall indicates reduced accuracy for assessing activity quantity, as a substantial number of task occurrences were missed (high number of false negatives).

In daily living settings, patients will be attaching IMUs themselves, leaving researchers and clinicians with limited control over sensor positioning, suggesting the need for orientation-independent models. To simulate this behavior and improve model robustness, IMU misplacements were simulated for the training dataset as a data augmentation technique by applying 180° and random-angle rotations to the axes of the raw IMU data. However, the assumption that such simulated rotations improve HAR robustness during ADL was not evaluated in this study. This would require a specific dataset with multiple trials including IMUs physically rotated, which fell outside the main scope of the study. This study addressed class imbalance by applying data augmentation techniques commonly used for time series [55]. To evaluate the effect of augmenting the training set on our results, we compared the model’s performance before and after augmentation through confusion matrices in preliminary tests (Figure S2, Multimedia Appendix 1). All classes were better recognized and improved with this method, underlying the relevance of data augmentation when analyzing time series.

Limitations

The first limitation of this study was the low sample size and lack of external validation that limit the robustness and generalizability of the model. In other words, this study may have missed the motion abnormalities of more impaired patients (eg, patients with walking aids), which limits the applicability of the model to the general population of patients with hip OA. Indeed, the selection bias resulting from including only patients with end-stage hip OA who were scheduled for THA represents a limitation of this study. Still, providing a general model applicable to the whole population of patients with hip OA and undergoing THA was beyond the goal of this study. Moreover, the accuracy differences observed between configurations in addition to the data augmentation methods appear relevant for this population in understanding optimal IMU configurations. Nevertheless, despite the data augmentation performed to increase the data size, future work should consider training and testing the model on a larger and heterogeneous cohort of patients with hip OA, and eventually THA, to improve its applicability in clinical settings. Still, there currently seems to be no clear recommendations in the literature regarding the number of patients to include for attaining acceptable generalizability with such models. Future studies determining the number needed to make HAR models generalizable to a broader patient population would greatly contribute to the development of this field. Exploring these aspects using GRU networks is recommended since these models could achieve better performance due to their advantages in modeling temporal sequences [16]. Nevertheless, a limitation of this study is that only the Bi-GRU architecture was tested, while additional network architectures (eg, hybrid CNN-Bi-GRU models) and performance differences across model architectures could have been explored. Second, our model was trained using data collected under semistandardized conditions and not in daily living conditions. Indeed, the tour was performed outside the gait laboratory but still within the hospital, where patients were continuously filmed, and the tour remained scripted and almost identical between patients. Such protocol falls between a fully controlled environment and free-living conditions and does not represent a true patient’s performance. Therefore, the model may still produce a substantial number of false positives when encountering activities that, although belonging to the study’s defined classes, are performed differently in daily living settings due to environmental factors (eg, obstacles or weather). Still, since this study required a gold-standard identification of the tasks performed, it would thus not have been possible to perform it in full free-living conditions. Therefore, HAR models should ideally be validated with data assessed in the natural environment of patients (eg, home, work, or hobbies), despite this being very difficult to perform in practice. Third, this study did not measure patient acceptance but only assumed that the reduction of IMU number would improve wearability and patient compliance by providing a setup that is easier to install and use in daily life [56]. There was no qualitative assessment performed for patients regarding perceived ease of use and acceptance. This evaluation should be considered for future clinical applications. The fourth limitation is data augmentation: the synthetically generated data may not fully represent the data collected during ADL, thereby limiting the model’s generalizability for HAR on unseen data. However, the reported κ values resulted from evaluating the model on nonaugmented and unseen data; therefore, this did not artificially increase the resultant κ across configurations [57-59]. Nevertheless, external validation is still needed to assess real-world generalization as well as robustness to sensor misplacement. On another note, due to potential tail distortion by the Butterworth filters applied to the signals, the current solution may not be applicable for real-time applications, which presents another limitation of this study. Still, the expected use of the present application was to provide sensors to patients for recordings over multiple days and to process the data offline. Real-time applications may require different preprocessing of the signals. Another limitation is that while interoperator agreement was very high on the test subset, the full dataset was labeled by only 1 operator. Such high agreement does not eliminate the possibility of annotation bias over the entire dataset. Importantly, this study did not evaluate the psychometric measurement properties (ie, reliability, responsiveness) and interpretability of the model. Future work is encouraged to consider these psychometric properties following the COSMIN (Consensus-Based Standards for the Selection of Health Status Measurement Instruments) as it would improve the applicability of the model in clinical settings, allowing clinicians to validate algorithmic reasoning against physical observations (activities). Finally, only weight was found to be statistically different between patients and controls, with an average difference of 8.2 kg. Since higher body weight is linked to OA [60], finding controls in the same age and weight range without symptomatic OA in the lower limbs is very challenging.

Conclusions

This work provides preliminary proof-of-concept for HAR in patients with hip OA in semistandardized conditions using a minimal setup. The findings of this proof-of-concept study suggest that, for these mobility-related activities, minimal IMU setups result in only a modest decrease in accuracy. Among the 2-IMU configurations, the 2 shanks and 2 feet achieved the highest accuracy. Single-IMU configurations achieved medium to high accuracy, with shank and trunk performing the best and pelvis and foot performing the worst. The accuracy of the HAR model was activity dependent, with gait and static sitting presenting the highest accuracy and turns and stair descent presenting the lowest. All configurations showed very high accuracy for gait detection apart from the single pelvic configuration, which still showed high accuracy. Thus, single-IMU configurations appear sufficient to recognize gait in patients with end-stage hip OA. Finally, the model’s accuracy was lower in patients than in controls, suggesting that HAR is more challenging in populations with functional impairments. To conclude, single- and 2-IMU configurations appear promising under semistandardized conditions and should be further investigated with larger and more heterogeneous hip OA cohorts.

Supplementary material

Multimedia Appendix 1. Presenting performance metrics.
DOI: 10.2196/95116

Acknowledgments

The authors declare the use of generative AI (GAI) in the process of research and editing the manuscript. According to the GAIDeT taxonomy (2025), the following tasks were delegated to GAI tools under full human supervision: (1) code optimization, (2) proofreading and editing, and (3) reformatting. The GAI tool used was ChatGPT (GPT-5.5; OpenAI). The final optimized analysis code and its output were manually checked and verified to ensure their quality. Responsibility for the final manuscript lies entirely with the authors. GAI tools are not listed as authors and do not bear responsibility for the final outcomes (declaration submitted by NA).

Abbreviations

ADL

activities of daily living

Bi-GRU

bidirectional GRU

CNN

convolutional neural network

COSMIN

Consensus-Based Standards for the Selection of Health Status Measurement Instruments

GRU

gated recurrent unit

HAR

human activity recognition

IMU

inertial measurement unit

ML

machine learning

OA

osteoarthritis

THA

total hip arthroplasty

Footnotes

Funding: This research was funded by the ESKAS Swiss Excellence Scholarship, the Fondation pour la recherche ostéo-articulaire of Geneva, and the Division of Orthopaedic Surgery and Musculoskeletal Trauma Care of the Geneva University Hospitals. The funders had no role in the study design, data collection, analysis or interpretation of data, manuscript preparation, or the decision to submit the article for publication.

Authors’ Contributions: Conceptualization: NA, VD, SA, XG

Data curation: NA, KR-D

Formal analysis: NA

Funding acquisition: DH

Investigation: NA

Methodology: NA, VD, SA, XG

Project administration: DH, SA, XG

Resources: DH, SA

Software: NA, ADB

Supervision: SA, XG

Validation: NA

Visualization: NA

Writing – original draft: NA

Writing – review & editing: NA, VD, ADB, KR-D, DH, SA, XG

Data Availability: Data will be made available upon request from the authors.

Conflicts of Interest: None declared.

References

  • 1.Global Burden of Disease Study 2013 Collaborators Global, regional, and national incidence, prevalence, and years lived with disability for 301 acute and chronic diseases and injuries in 188 countries, 1990-2013: a systematic analysis for the Global Burden of Disease Study 2013. Lancet. 2015 Aug 22;386(9995):743–800. doi: 10.1016/S0140-6736(15)60692-4. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Osteoarthritis Research Society International (OARSI); 2016. [14-08-2026]. Osteoarthritis: a serious disease: submitted to the U.S. Food and Drug Administration.https://oarsi.org/sites/oarsi/files/library/2018/pdf/oarsi_white_paper_oa_serious_disease121416_1.pdf URL. Accessed. [Google Scholar]
  • 3.Ferguson RJ, Palmer AJ, Taylor A, Porter ML, Malchau H, Glyn-Jones S. Hip replacement. Lancet. 2018 Nov 3;392(10158):1662–1671. doi: 10.1016/S0140-6736(18)31777-X. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 4.Vissers MM, Bussmann JB, Verhaar JAN, Arends LR, Furlan AD, Reijman M. Recovery of physical functioning after total hip arthroplasty: systematic review and meta-analysis of the literature. Phys Ther. 2011 May;91(5):615–629. doi: 10.2522/ptj.20100201. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 5.Recommendations for the medical management of osteoarthritis of the hip and knee: 2000 update. American College of Rheumatology Subcommittee on Osteoarthritis Guidelines. Arthritis Rheum. 2000 Sep;43(9):1905–1915. doi: 10.1002/1529-0131(200009)43:9<1905::AID-ANR1>3.0.CO;2-P. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 6.Lübbeke A, Zimmermann-Sloutskis D, Stern R, et al. Physical activity before and after primary total hip arthroplasty: a registry-based study. Arthritis Care Res (Hoboken) 2014 Feb;66(2):277–284. doi: 10.1002/acr.22101. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 7.Lovelock TM, Broughton NS, Williams CM. The popularity of outcome measures for hip and knee arthroplasties. J Arthroplasty. 2018 Jan;33(1):273–276. doi: 10.1016/j.arth.2017.08.024. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 8.Dobson F, Hinman RS, Roos EM, et al. OARSI recommended performance-based tests to assess physical function in people diagnosed with hip or knee osteoarthritis. Osteoarthr Cartil. 2013 Aug;21(8):1042–1052. doi: 10.1016/j.joca.2013.05.002. doi. [DOI] [PubMed] [Google Scholar]
  • 9.Dayton MR, Judd DL, Hogan CA, Stevens-Lapsley JE. Performance-based versus self-reported outcomes using the Hip Disability and Osteoarthritis Outcome Score after total hip arthroplasty. Am J Phys Med Rehabil. 2016 Feb;95(2):132–138. doi: 10.1097/PHM.0000000000000357. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Terwee CB, Bouwmeester W, van Elsland SL, de Vet HCW, Dekker J. Instruments to assess physical activity in patients with osteoarthritis of the hip or knee: a systematic review of measurement properties. Osteoarthr Cartil. 2011 Jun;19(6):620–633. doi: 10.1016/j.joca.2011.01.002. doi. [DOI] [PubMed] [Google Scholar]
  • 11.World Health Organization (WHO); 2013. [14-08-2026]. How to use the ICF: a practical manual for using the International Classification of Functioning, disability and health (ICF)https://cdn.who.int/media/docs/default-source/classification/icf/drafticfpracticalmanual2.pdf?sfvrsn=8a214b01_4&download=true URL. Accessed. [Google Scholar]
  • 12.Mundt M, Thomsen W, Witter T, et al. Prediction of lower limb joint angles and moments during gait using artificial neural networks. Med Biol Eng Comput. 2020 Jan;58(1):211–225. doi: 10.1007/s11517-019-02061-3. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 13.Warmerdam E, Hausdorff JM, Atrsaei A, et al. Long-term unsupervised mobility assessment in movement disorders. Lancet Neurol. 2020 May;19(5):462–470. doi: 10.1016/S1474-4422(19)30397-7. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 14.Kobsar D, Masood Z, Khan H, et al. Wearable inertial sensors for gait analysis in adults with osteoarthritis-a scoping review. Sensors (Basel) 2020 Dec 13;20(24):7143. doi: 10.3390/s20247143. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Pan J, Hu Z, Yin S, Li M. GRU with dual attentions for sensor-based human activity recognition. Electronics (Basel) 2022;11(11):1797. doi: 10.3390/electronics11111797. doi. [DOI] [Google Scholar]
  • 16.Zhang S, Li Y, Zhang S, et al. Deep learning in human activity recognition with wearable sensors: a review on advances. Sensors. 2022 Feb;22(4):1476. doi: 10.3390/s22041476. doi. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Hassan AAR, Feizi-Derakhshi MR. ResCBAR-FusionNet: a hybrid CNN-BiGRU-attention model for human activity recognition. SIViP. 2025 Aug;19(8):675. doi: 10.1007/s11760-025-04286-2. doi. [DOI] [Google Scholar]
  • 18.Demrozi F, Pravadelli G, Bihorac A, Rashidi P. Human activity recognition using inertial, physiological and environmental sensors: a comprehensive survey. IEEE Access. 2020;8:210816–210836. doi: 10.1109/access.2020.3037715. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Liu Y, Qin X, Gao Y, Li X, Feng C. SETransformer: a hybrid attention-based architecture for robust human activity recognition. J Emerg Appl AI. 2025 May 25;1(1) doi: 10.65563/jeaai.v1i1.21. doi. [DOI] [Google Scholar]
  • 20.Nweke HF, Teh YW, Al-garadi MA, Alo UR. Deep learning algorithms for human activity recognition using mobile and wearable sensor networks: state of the art and research challenges. Expert Syst Appl. 2018 Sep;105:233–261. doi: 10.1016/j.eswa.2018.03.056. doi. [DOI] [Google Scholar]
  • 21.Tong L, Ma H, Lin Q, He J, Peng L. A novel deep learning Bi-GRU-I model for real-time human activity recognition using inertial sensors. IEEE Sensors J. 2022 Mar;22(6):6164–6174. doi: 10.1109/JSEN.2022.3148431. doi. [DOI] [Google Scholar]
  • 22.Chandrasekaran K, Buquicchio L, Gerych W, Agu E, Rundensteiner E. Get up!: assessing postural activity & transitions using bi-directional gated recurrent units (Bi-GRUs on smartphone motion data) Proc IEEE Healthc Innov Point Care Technol (HI-POCT) 2019 Nov;:25–28. doi: 10.1109/HI-POCT45284.2019.8962729. doi. [DOI] [Google Scholar]
  • 23.Mekruksavanich S, Phaphan W, Hnoohom N, Jitpattanakul A. Recognition of sports and daily activities through deep learning and convolutional block attention. PeerJ Comput Sci. 2024;10:e2100. doi: 10.7717/peerj-cs.2100. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Imran HA, Riaz Q, Hussain M, Tahir H, Arshad R. Smart-wearable sensors and CNN-BiGRU model: a powerful combination for human activity recognition. IEEE Sensors J. 2024 Jan;24(2):1963–1974. doi: 10.1109/JSEN.2023.3338264. doi. [DOI] [Google Scholar]
  • 25.Yang P, Yang C, Lanfranchi V, Ciravegna F. Activity graph based convolutional neural network for human activity recognition using acceleration and gyroscope data. IEEE Trans Ind Inf. 2022 Oct;18(10):6619–6630. doi: 10.1109/TII.2022.3142315. doi. [DOI] [Google Scholar]
  • 26.Bahl JS, Nelson MJ, Taylor M, Solomon LB, Arnold JB, Thewlis D. Biomechanical changes and recovery of gait function after total hip arthroplasty for osteoarthritis: a systematic review and meta-analysis. Osteoarthritis Cartilage. 2018 Jul;26(7):847–863. doi: 10.1016/j.joca.2018.02.897. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 27.Carcreff L. École polytechnique fédérale de Lausanne (EPFL); 2020. [14-08-2026]. Gait analysis in children with cerebral palsy: bridging the gap between the laboratory and real life [Dissertation]https://infoscience.epfl.ch/entities/publication/d06c7b69-93fe-4d23-a247-f8417bf39a6e URL. Accessed. [Google Scholar]
  • 28.Mannini A, Sabatini AM. Gait phase detection and discrimination between walking-jogging activities using hidden Markov models applied to foot motion data from a gyroscope. Gait Posture. 2012 Sep;36(4):657–661. doi: 10.1016/j.gaitpost.2012.06.017. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 29.Sabatini AM, Martelloni C, Scapellato S, Cavallo F. Assessment of walking features from foot inertial sensing. IEEE Trans Biomed Eng. 2005 Mar;52(3):486–494. doi: 10.1109/TBME.2004.840727. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 30.Song M, Kim J. An ambulatory gait monitoring system with activity classification and gait parameter calculation based on a single foot inertial sensor. IEEE Trans Biomed Eng. 2018 Apr;65(4):885–893. doi: 10.1109/TBME.2017.2724543. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 31.Tan JS, Beheshti BK, Binnie T, et al. Human activity recognition for people with knee osteoarthritis-a proof-of-concept. Sensors (Basel) 2021 May 12;21(10):3381. doi: 10.3390/s21103381. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Rast FM, Labruyère R. Systematic review on the application of wearable inertial sensors to quantify everyday life motor activity in people with mobility impairments. J Neuroeng Rehabil. 2020 Nov 4;17(1):148. doi: 10.1186/s12984-020-00779-y. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Van Rossom S, Emmerzaal J, van der Straaten R, et al. The biomechanical fingerprint of hip and knee osteoarthritis patients during activities of daily living. Clin Biomech (Bristol) 2023 Jan;101:105858. doi: 10.1016/j.clinbiomech.2022.105858. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 34.Ismailidis P, Nüesch C, Kaufmann M, et al. Measuring gait kinematics in patients with severe hip osteoarthritis using wearable sensors. Gait Posture. 2020 Sep;81:49–55. doi: 10.1016/j.gaitpost.2020.07.004. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 35.Lonini L, Gupta A, Kording K, Jayaraman A. Activity recognition in patients with lower limb impairments: do we need training data from each patient? Annu Int Conf IEEE Eng Med Biol Soc. 2016 Aug;2016:3265–3268. doi: 10.1109/EMBC.2016.7591425. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 36.Bonci T, Keogh A, Del Din S, Scott K, Mazzà C. An objective methodology for the selection of a device for continuous mobility assessment. Sensors (Basel) 2020 Nov 14;20(22):6509. doi: 10.3390/s20226509. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Garcia EA. Learning from imbalanced data. IEEE Trans Knowl Data Eng. 2009 Sep;21(9):1263–1284. doi: 10.1109/TKDE.2008.239. doi. [DOI] [Google Scholar]
  • 38.Jeni LA, Cohn JF, De La Torre F. Facing imbalanced data--recommendations for the use of performance metrics. 2013 Humaine Assoc Conf Affect Comput Intell Interact. 2013:245–251. doi: 10.1109/ACII.2013.47. doi. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Friard O, Gamba M. BORIS: a free, versatile open‐source event‐logging software for video/audio coding and live observations. Methods Ecol Evol. 2016 Nov;7(11):1325–1330. doi: 10.1111/2041-210X.12584. doi. [DOI] [Google Scholar]
  • 40.Zebin T, Scully PJ, Ozanyan KB. Human activity recognition with inertial sensors using a deep learning approach. Proc IEEE Sens 2016. 2016:1–3. doi: 10.1109/ICSENS.2016.7808590. doi. [DOI] [Google Scholar]
  • 41.Shorten C, Khoshgoftaar TM. A survey on image data augmentation for deep learning. J Big Data. 2019 Dec;6(1):60. doi: 10.1186/s40537-019-0197-0. doi. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Lopez-Nava IH, Valentín-Coronado LM, Garcia-Constantino M, Favela J. Gait activity classification on unbalanced data from inertial sensors using shallow and deep learning. Sensors (Basel) 2020 Aug 23;20(17):4756. doi: 10.3390/s20174756. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Yamane T, Kimura M, Morita M. Effects of sampling frequency on human activity recognition with machine learning aiming at clinical applications. Sensors (Basel) 2025 Jun 17;25(12):3780. doi: 10.3390/s25123780. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Khan A, Hammerla N, Mellor S, Plötz T. Optimising sampling rates for accelerometer-based human activity recognition. Pattern Recognit Lett. 2016 Apr;73:33–40. doi: 10.1016/j.patrec.2016.01.001. doi. [DOI] [Google Scholar]
  • 45.Ioffe S, Szegedy C. In: ICML’15: Proceedings of the 32nd International Conference on Machine Learning. Bach F, Blei D, editors. JMLR; 2015. [14-08-2026]. Batch normalization: accelerating deep network training by reducing internal covariate shift; pp. 448–456.https://proceedings.mlr.press/v37/ioffe15.html URL. Accessed. [Google Scholar]
  • 46.Liu Y, Hou J, Peng Y, Xu Y, Jiang T. Hyperspectral open set classification towards deep networks based on boxplot. IOP Conf Ser Earth Environ Sci. 2021 Mar 1;693(1):012085. doi: 10.1088/1755-1315/693/1/012085. doi. [DOI] [Google Scholar]
  • 47.Kingma DP, Ba J. Adam: a method for stochastic optimization. arXiv. 2014 Dec 22; doi: 10.48550/arXiv.1412.6980. Preprint posted online on. doi. [DOI]
  • 48.Abiad NA. Université Claude Bernard Lyon 1 (Université de Lyon); 2022. [14-08-2026]. A step toward ubiquitous monitoring of real-life gait fall risk factors using non-dedicated inertial sensors [Article in French] [Dissertation]https://theses.fr/2022LYO10148 URL. Accessed. [Google Scholar]
  • 49.Cohen J. A coefficient of agreement for nominal scales. Educ Psychol Meas. 1960 Apr;20(1):37–46. doi: 10.1177/001316446002000104. doi. [DOI] [Google Scholar]
  • 50.Bogduk N. On understanding reliability for diagnostic tests. Interv Pain Med. 2022;1(Suppl 2):100124. doi: 10.1016/j.inpm.2022.100124. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Carcreff L, Gerber CN, Paraschiv-Ionescu A, et al. What is the best configuration of wearable sensors to measure spatiotemporal gait parameters in children with cerebral palsy? Sensors (Basel) 2018 Jan 30;18(2):2. doi: 10.3390/s18020394. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Rahn V, Zhou L, Klieme E, Arnrich B. Optimal sensor placement for human activity recognition with a minimal smartphone–IMU setup. Proc Int Conf Sensor Networks. 2021:37–48. doi: 10.5220/0010269100370048. doi. [DOI] [Google Scholar]
  • 53.Dalton A, O’Laighin G. Comparing supervised learning techniques on the task of physical activity recognition. IEEE J Biomed Health Inform. 2013 Jan;17(1):46–52. doi: 10.1109/TITB.2012.2223823. doi. Medline. [DOI] [PubMed] [Google Scholar]
  • 54.Micó-Amigo ME, Bonci T, Paraschiv-Ionescu A, et al. Assessing real-world gait with digital technology? Validation, insights and recommendations from the Mobilise-D consortium. J Neuroeng Rehabil. 2023 Jun 14;20(1):78. doi: 10.1186/s12984-023-01198-5. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Iglesias G, Talavera E, González-Prieto Á, Mozo A, Gómez-Canaval S. Data augmentation techniques in time series domain: a survey and taxonomy. Neural Comput Appl. 2023 May;35(14):10123–10145. doi: 10.1007/s00521-023-08459-3. doi. Medline. [DOI] [Google Scholar]
  • 56.Mobbs RJ, Perring J, Raj SM, et al. Gait metrics analysis utilizing single-point inertial measurement units: a systematic review. mHealth. 2022;8:9. doi: 10.21037/mhealth-21-17. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Poojary R, Raina R, Kumar Mondal A. Effect of data-augmentation on fine-tuned CNN model performance. IAES Int J Artif Intell. 2021 Mar;10(1):84. doi: 10.11591/ijai.v10.i1.pp84-92. doi. [DOI] [Google Scholar]
  • 58.Zhang L, Wang X, Yang D, et al. Generalizing deep learning for medical image segmentation to unseen domains via deep stacked transformation. IEEE Trans Med Imaging. 2020 Jul;39(7):2531–2540. doi: 10.1109/TMI.2020.2973595. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Trabassi D, Castiglia SF, Bini F, et al. Optimizing rare disease gait classification through data balancing and generative AI: insights from hereditary cerebellar ataxia. Sensors (Basel) 2024 Jun 3;24(11):3613. doi: 10.3390/s24113613. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Reyes C, Leyland KM, Peat G, Cooper C, Arden NK, Prieto-Alhambra D. Association between overweight and obesity and risk of clinically diagnosed knee, hip, and hand osteoarthritis: a population-based cohort study. Arthritis Rheumatol. 2016 Aug;68(8):1869–1875. doi: 10.1002/art.39707. doi. Medline. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Multimedia Appendix 1. Presenting performance metrics.
DOI: 10.2196/95116

Articles from JMIR Biomedical Engineering are provided here courtesy of JMIR Publications Inc.

RESOURCES