Abstract
Background: Recovery after total hip arthroplasty (THA) and total knee arthroplasty (TKA) is typically assessed with infrequent clinic-based evaluations that may not reflect patients’ everyday mobility. Smartphone inertial sensors enable scalable, repeated gait measurement in real-world settings, but the extent to which prompted walking tests reflect daily life walking during recovery is not well defined.
Objective: The objective of this study was to characterize week-by-week recovery trajectories after THA and TKA using high-frequency smartphone sensor data and quantify the difference between prompted in-app walking tests and passive daily life background walking.
Methods: We analyzed longitudinal smartphone-based gait measurements from 735 patients (THA, n=350; TKA, n=385) who underwent unilateral surgery between July 2022 and October 2025. Nine spatiotemporal gait parameters were monitored over the first 15 postoperative weeks across 2 conditions: prompted “in-app” walks and passively captured “background” walks. Recovery trajectories were evaluated using Kaplan-Meier time-to-baseline analyses, linear mixed-effects models, and comparison of late-stage plateau levels (weeks 11‐15) using estimated marginal means of the models.
Results: Across all parameters, THA patients returned to preoperative baseline levels faster than TKA patients, with mean trajectories generally approaching baseline by week 4 for THA versus weeks 6 to 8 for TKA. Linear mixed-effects models showed that surgical procedure type significantly influenced recovery trajectory for all parameters except single support of the unaffected leg. All gait parameters except stance asymmetry and single support of the unaffected leg exhibited persistent differences through the late-recovery plateau (weeks 11‐15). We also compared prompted “in-app” walks with passively captured background walking. Prompted and passive walking showed systematic divergence in both THA and TKA; prompted assessments generally indicated faster or more complete return to baseline than passive daily life walking. Finally, preoperative gait level was strongly associated with postoperative trajectories, with baseline-stratified analyses showing distinct patterns of recovery between groups.
Conclusions: High-frequency smartphone gait assessment quantifies procedure-specific recovery dynamics and demonstrates that prompted tests and passive daily life measurements capture distinct, noninterchangeable functional signals. Parameters from prompted walks plateaued while those from passively captured walks were still changing; prompted testing alone therefore captures only one component of returning function, highlighting the additional information that passive, real-world gait monitoring can provide.
doi:10.2196/97657
Keywords
Introduction
Total hip arthroplasty (THA) and total knee arthroplasty (TKA) are highly successful orthopedic surgeries that restore mobility for millions of people with end-stage arthritis [,]. Their volume is substantial and growing; over 3.7 million Americans underwent THA or TKA from 2021 to 2024 [], and projections indicate that the annual volume for THA and TKA could increase by 176% and 139%, respectively, by 2040, compared to 2019 volumes []. This escalating demand establishes total joint arthroplasty (TJA) as a major component of the health care system, making the optimization of postoperative recovery a critical public health priority.
Conventional methods for monitoring patient recovery after TJA have significant limitations and provide an incomplete picture of a patient’s functional status []. The standard of care relies on infrequent, in-person clinical visits featuring practitioner-dependent assessments such as the Timed Up and Go test []. These appointments offer only brief snapshots of function in a controlled setting and correlate poorly with a patient’s actual daily activities. This episodic model limits a clinician’s insight into the patient’s day-to-day progress and challenges, hindering proactive intervention. Furthermore, the common practice of limiting complication surveillance to the acute recovery phase has been shown to miss a substantial number of adverse events, revealing a systemic gap in long-term patient monitoring [].
Another key challenge in postarthroplasty care is the discordance between subjective patient-reported outcome measures (PROMs) and objective, performance-based metrics []. While PROMs are vital for capturing the patient’s perspective on function, pain, and quality of life, studies show that early improvements in these scores often do not align with objectively measured functional gains [,]. Patients frequently report feeling significantly better long before objective measures, such as walk speed or mobility, return to normal levels. This may partly reflect that patients often associate recovery with meaningful pain relief, even when objective mobility remains impaired. However, pain relief is unlikely to be the only explanation, and the broader point remains that perceived recovery and measured physical performance can differ substantially. This issue is compounded by low patient completion rates for long-term PROMs, which can introduce bias into the data []. This disconnect highlights the need for granular, individualized, and objective monitoring tools that can characterize function beyond self-assessment.
Previous studies have attempted to establish such recovery benchmarks and expected trajectories [-]. However, these efforts are often limited in scope, focusing on a single metric or joint, or on limited follow-up periods with infrequent data collection time points, which fail to capture the continuous, dynamic nature of the recovery process.
The widespread availability of smartphones with built-in inertial measurement units (IMUs) offers a validated and scalable solution to the limitations of traditional monitoring. A growing body of research confirms the reliability of smartphone-based systems for measuring key gait parameters like walk speed, cadence, and asymmetry in real-world environments [-]. These systems show strong correlation with gold-standard laboratory equipment. This technology shifts measurement from the clinic to the patient’s daily life, enabling the continuous, high-frequency collection of objective functional data that is more representative of true mobility []. Digital health platforms like the OneStep system leverage these capabilities to create objective recovery benchmarks and track individual progress with unprecedented detail.
While remote monitoring provides a wealth of objective data, a critical nuance essential for understanding true recovery is often overlooked: the distinction between a patient’s functional capacity—what they are capable of doing under observation or during a prompted task—and their habitual daily performance—what they actually do in an unobserved, unguarded state [-]. This distinction is vital, as the goal of rehabilitation is not merely to enable a patient to perform a task correctly, but to restore normal, noncompensatory movement as an automatic pattern in daily life.
This study presents week-by-week gait trajectories after THA and TKA, measured using a smartphone-based system, to guide more precise postoperative monitoring and rehabilitation. Specifically, we compare the 15-week recovery trajectories of THA and TKA patients across 9 gait parameters and quantify differences between prompted in-app walks, treated as a proxy for functional capacity, and passively captured background walking, treated as a proxy for habitual performance.
Methods
Cohort
This study analyzed deidentified data collected from commercial users (N=735) of the OneStep gait monitoring system during routine postoperative care and recovery monitoring between July 2022 and October 2025. Data were not collected specifically for this research but were generated as part of standard app use. Starting from all patients with a recorded THA or TKA, we sequentially applied eligibility criteria based on surgery type, data availability, and preoperative recording requirements.
Ethical Considerations
This study used secondary, deidentified data collected during routine use of a commercial gait monitoring platform. Users provided consent at onboarding for their deidentified data to be used in aggregate for research purposes. The authors determined that the secondary analysis met the criteria for exemption from institutional review board oversight under the US Federal Policy for the Protection of Human Subjects (Common Rule), 45 CFR §46.104(d)(4)(ii) []. For the research analysis, information was recorded in a manner such that the identities of individuals could not readily be ascertained directly or through identifiers linked to the data. The investigators did not contact individuals and did not attempt, and will not attempt, to reidentify them. The study was conducted in accordance with applicable privacy and ethical standards.
Gait Data Collection
Gait was measured before and after surgery with OneStep’s smartphone gait analysis system (software versions 2.18.0‐4.0.0; Celloscope Ltd). shows the measurement screen of the mobile app. Patients carried their phones in a pants pocket while walking. The sensors of the phone’s IMU record 3-dimensional acceleration and gyroscope data at a sampling frequency of 50 Hz and upload the data to secure servers. No calibration is required. The inertial motion data are split into individual strides, and a supervised convolutional neural network then assigns each stride to a joint (physical activity, device body position) class; strides that are not assigned to the walking class or a pants pocket body position are excluded from the analyses reported here []. A proprietary deep learning framework is then used to detect which side the phone was carried on and compute standard spatiotemporal gait measures for each step. This framework was trained using a gold-standard gait measurement system (the C-Mill VR+ instrumented treadmill; Motek) to generate ground truth labels for simultaneous phone measurements from a variety of healthy and unhealthy walkers; these results were then validated against a selection of gold-standard gait measurement methods [-]. The software is compatible with almost all modern smartphones, as most smartphones contain the necessary IMU hardware, and is compatible with both iOS and Android operating systems. Although the gait analysis system has not been validated specifically in a post-TJA population, it has been validated in cohorts with a variety of moderate to severe gait abnormalities [,].

Nine gait parameters were analyzed for this study: cadence, single support percentage of the affected (ie, the leg upon which the operation was performed) and unaffected leg; stance asymmetry; double support percentage; step length of the affected and unaffected leg; stride length; and walk speed. Stance asymmetry is defined as the difference between the stance percentage of the 2 legs; that is, the percent of stride time each leg is in contact with the ground. For this study, it was calculated as the stance percentage of the unaffected leg minus the stance percentage of the affected leg. We used the signed value of stance asymmetry, rather than its absolute value, because the direction of asymmetry is clinically relevant in TJA, where one leg is affected.
Walk Types
We used 2 kinds of recordings:
- In-app walks. Patients opened the OneStep mobile app, started a recording, placed the phone in a pocket, and walked in a straight line (with 180° turns as necessary) on a flat surface for about 60 seconds.
- Background walks. With permissions enabled, the app ran in the background and automatically recorded motion when it detected pocket-carried walking during daily life.
In-App Walk Collection
In-app walks were collected before and after surgery when patients chose to initiate a recording; no fixed recording schedule or surgeon-directed reminders were used. Recordings were performed in patients’ own environments. App instructions directed patients to walk on a clear, straight path, to turn around and walk back and forth if the available path was too short, and to walk at a comfortable pace. Data processing and filtering are described above in Gait Data Collection.
Background Walk Collection
Background walks represent a particular challenge for data collection because walks can be taken in a variety of contexts (indoors vs outdoors, with or without shoes, on various terrains, straight-line walking or curved paths, etc) and because the patient can walk with their smartphone in a position other than the pants pocket. In addition, daily walking can occur in short bursts of 5 seconds or less, which have qualitatively different attributes than more extended walking bouts.
To account for these factors, the background gait analysis pipeline performs several steps. First, only walking bouts of 30 seconds or longer are analyzed. Second, any steps taken while not walking in a straight line are filtered out before analysis, and walking bouts with too few straight strides are flagged and filtered out. Straight-line walking was identified from gyroscope-derived heading after the sensor data were oriented to the direction of motion. Third, phone position (pocket vs nonpocket) is detected by a deep learning framework that was trained on examples of motion data from phones placed in the pocket and in a variety of other locations (hand, bag, shirt pocket, etc). Any walk that is detected as not being from the pants pocket is filtered out. Finally, gait measurements may differ between prompted and background conditions, as has been shown previously for this gait analysis system []. Therefore, as described below, in-app and background data are normalized separately to their respective presurgery baseline values. By normalizing in-app and background walks separately, lower background values at a given postsurgery week are interpreted relative to the patient’s own presurgery background walks, not relative to their in-app walks. This distinction is important because raw background and in-app values may differ for reasons unrelated to recovery, including phone position, walking environment, and walking path. The analysis therefore asks whether background gait returns to its own baseline more slowly than in-app gait, rather than whether background gait has lower absolute parameter values.
Preoperative Baseline
Inclusion required at least one in-app gait recording and one background gait recording in the 14 days before surgery; patients without such data were excluded. If multiple recordings were available, their gait measures were averaged to define that patient’s baseline. Baselines were calculated separately for in-app and background walks.
Aggregation and Normalization
For each patient, postoperative walks were grouped by week since surgery (days 1‐7, 8‐14, etc) and averaged to create weekly values. The patient’s baseline was then subtracted from each weekly value to express change from baseline. To describe population-level recovery, these normalized values were averaged across patients contributing data in that postoperative week. Analyses used available data only (weekly sample sizes varied); no temporal interpolation or imputation was performed.
Statistical Analysis
To quantify differences between recovery trajectories, 3 methods were used. First, Kaplan-Meier analysis was used to determine whether time to first observed return to preoperative baseline differed between conditions. For parameters where a higher value is considered healthier (cadence, single support, step and stride length, and walk speed), time to return to baseline was considered the first week after surgery during which the parameter value was equal to or higher than the preoperative baseline level; for parameters where a lower value is healthier (double support and stance asymmetry), the first week in which the value was equal to or lower than baseline was used. A sustained crossing was not required because consecutive weekly observations were unavailable for many participants; requiring them would have excluded a large proportion of the cohort. Concretely, the Kaplan-Meier curve for a given parameter shows, for each postoperative week, the fraction of patients who had reached their own presurgery gait level by that week; a curve that rises sooner or reaches a higher fraction indicates faster or more complete return to baseline. A log-rank test (or a multivariate log-rank test, in cases where more than 2 Kaplan-Meier curves were being compared) was used to determine significance.
Second, we used linear mixed-effects models to test whether postoperative recovery trajectories differed between conditions. For each gait parameter, we fitted a model with fixed effects for postoperative week (modeled using a B-spline basis), condition (eg, THA vs TKA; in-app vs background; preoperative baseline level), age, and gender, and included interactions between the spline basis for week and each covariate of interest to test for differences in trajectory shape (time-varying effects) rather than only overall level shifts. A patient-specific random intercept was included to account for repeated measures within individuals. Postoperative week was represented with a B-spline basis of degree 1 and 4 degrees of freedom.
To test the importance of each fixed effect, we performed nested-model likelihood ratio tests by refitting reduced models that excluded one term at a time (condition, age, or gender) and its interactions, holding all remaining fixed effects, the postsurgery week specification, and random effects constant. The likelihood ratio statistic was computed as 2(ℓfull − ℓreduced), where ℓ is the maximized log-likelihood, and P values were obtained by comparing this statistic to a chi-square distribution with degrees of freedom equal to the difference in the number of estimated parameters between the full and reduced models.
Third, to compare parameter levels of late-stage plateaus, we computed estimated marginal means (EMMs) from the linear mixed-effects models. We defined the plateau as weeks 11 to 15 postsurgery and, for each condition, obtained the model-predicted mean over this window with age fixed at its sample mean and gender averaged by its observed proportions. Statistical significance of the difference in means between conditions was assessed with a Wald test, from which we report z scores and P values, along with 95% CIs.
All P values for all tests were adjusted using Benjamini-Hochberg false discovery rate correction over all P values in the analysis type (Kaplan-Meier, linear mixed-effects models, and EMMs). Statistical and modeling work was performed using Python and the Python packages lifelines, statsmodels, and SciPy; R and the R packages lme4, emmeans, and splines were used for the EMM analysis.
Results
Patient Demographics
Data were analyzed from 735 patients who underwent THA (n=350) or TKA (n=385). Baseline characteristics, including age distribution and gender composition used for subgroup analyses, are summarized in . The 2 cohorts had similar demographics: the THA cohort had a mean age of 69.6 (SD 7.6) years and included 56% (197/350) of women, while the TKA cohort had a mean age of 70.9 (SD 6.9) years and included 59% (227/385) of women. Figure S1 in shows the age distributions of the 2 cohorts. Preoperative baseline parameters differed slightly by gender, age, and procedure (Figure S2 in ). summarizes cohort assembly and filtering.
| Characteristic | THA (n=350) | TKA (n=385) |
| Male participants, n (%) | 153 (44) | 158 (41) |
| Female participants, n (%) | 197 (56) | 227 (59) |
| Age (y), mean (SD) | 69.6 (7.6) | 70.9 (6.9) |
| Age of male participants (y), mean (SD) | 69.2 (7.8) | 70.9 (7.6) |
| Age of female participants (y), mean (SD) | 69.9 (7.4) | 70.9 (6.3) |
| Recorded in-app walks, n | 8183 | 7289 |
| Left-side surgery, n | 191 | 214 |
| Right-side surgery, n | 159 | 171 |
aTHA: total hip arthroplasty.
bTKA: total knee arthroplasty.

Recovery Trajectories After THA Versus TKA
Across all 9 gait parameters, average values relative to the preoperative baseline were lower after TKA than after THA in postoperative week 1. The mean THA trajectory returned to baseline by about week 4, whereas mean TKA trajectories reached baseline later, between weeks 6 to 8 ( and Figure S3 in ). Kaplan-Meier analysis showed significant differences between THA and TKA in time to return to baseline for all parameters except single support of the unaffected leg (Figure S4 in ). Linear mixed-effects models showed that adding THA versus TKA status significantly improved fit for all gait parameters except single support of the unaffected leg (Figure S5 in ).

After crossing baseline, both procedures showed stable trajectories in weeks 11 to 15, with minimal week-to-week fluctuation. However, on average, THA patients reached a healthier level relative to the preoperative baseline than TKA patients at this plateau stage in all parameters except stance asymmetry and single support of the unaffected leg, and for most parameters, this difference reached an appreciable change in magnitude (Table S1 in ). For example, the difference in EMM at weeks 11 to 15 for walk speed was 0.14 m/s, exceeding the commonly used 0.1 m/s threshold for a clinically meaningful change in walk speed [].
In the final weeks, some parameters showed unusual fluctuations or shifts in plateau level. This likely reflects diminishing and variable weekly sample sizes, as not every patient recorded an in-app walk each week and recordings tend to decline over time ( and Figure S6 and Table S2 in ). This incompleteness may similarly affect the other analyses, including the Kaplan-Meier curves, and raises the possibility of survivorship bias if patients who continued contributing data differed systematically from those who did not; we consider these issues further in the Discussion.

Recovery Trajectories of In-App Versus Background Measurements
We next compared recovery trajectories from prompted in-app walks with those from passive background activity. In both THA and TKA, differences in recovery trajectories between these 2 types of walking were observed ( and Figure S7 in ). Kaplan-Meier analysis did not show significant differences in time to return to baseline between in-app and background walking, except for walk speed and step length of the unaffected leg after THA (Figure S8 in ). However, linear mixed-effects models showed that adding in-app versus background status significantly improved fit for all gait parameters, most at a very high level of significance (Figure S9 in ). The level of the late-stage plateau differed significantly between in-app and background walking after THA for all parameters except stance asymmetry and single support of the unaffected leg. Effect sizes were generally of a lower magnitude than those of the plateau differences between THA and TKA, although the difference in walk speed was 0.14 m/s, the same as the difference between THA and TKA (Table S1 in ). The plateau levels after TKA differed significantly between in-app and background walking in cadence, step length of both legs, stride length, and walk speed; however, effect sizes were much lower than even those of in-app versus background walking in THA, including a difference in walk speed of 0.07 m/s (Table S1 in ).

Recovery Trajectories by Age and Gender
We performed these analyses with populations stratified by gender and age ( and Figures S10 and S11 in ). By gender, trajectories were visually highly similar for THA (male, n=153; female, n=197) and TKA (male, n=158; female, n=227). By age, patterns were likewise highly similar across groups in THA (<65 y: n=86; 65‐75 y: n=173; 75+ y: n=91) and TKA (<65 y: n=76; 65‐75 y: n=200; 75+ y: n=109). Kaplan-Meier analysis showed no difference in time to return to baseline between gender or age groups for any parameter (Figures S12 and S13 in ). Although adding age or gender to the linear mixed-effects models significantly improved model performance for many parameters (Figures S5 and S9 in ), the significance of those improvements was generally many orders of magnitude lower than that observed when adding condition (eg, THA vs TKA, in-app vs background).

Weekly measurement counts by age and gender are shown in Table S2 in .
Recovery Trajectories by Preoperative Baseline
In addition to splitting patients by age and gender, we investigated whether preoperative baseline gait level was associated with postoperative recovery trajectories. Patients were split into 3 groups, representing the upper, middle, and lower thirds of preoperative baseline levels for each parameter. These splits were done independently for each parameter. Recovery trajectories varied greatly between the 3 groups ( and Figure S14 in ). The highest-level walkers before surgery had the greatest decline in gait parameters in the week immediately following surgery and, by week 15, had reached only approximately their preoperative baseline on average. In contrast, the lowest-level walkers had a smaller decline immediately after surgery and, on average, reached well past their preoperative baseline by week 15. Kaplan-Meier and linear mixed-effects model analyses confirmed that these trajectories were significantly different for all parameters, in both THA and TKA and for in-app and background walking (Figures S15 and S16 in ). It should be noted that, in absolute terms, the highest-baseline group maintained better gait values at week 15 than the lowest-baseline group. However, the lowest-baseline group showed larger improvements relative to its own baseline (Figure S17 in ).

Discussion
Principal Findings
Using longitudinal smartphone-based gait analysis, we characterized week-by-week recovery trajectories after THA and TKA across multiple spatiotemporal measures. On average, THA patients returned to their preoperative baseline by about week 4, while TKA patients did so between weeks 6 to 8, and THA patients reached a higher plateau thereafter. These differences match clinical experience and prior reports comparing postoperative mobility between procedures, which show that recovery is slower and pain persists for longer in TKA compared to THA [,].
A key finding is the significant difference between prompted in-app walks and passive background walking across many gait parameters. This pattern highlights the well-documented discordance between functional capacity and habitual performance [-], which may persist for years after surgery []. However, this discordance cannot be attributed solely to behavioral compensation because the 2 walking modalities are collected under fundamentally different conditions. In-app walks are performed on a flat surface under deliberate conditions, while background walks occur across heterogeneous real-world environments. Terrain type systematically influences gait parameters: energy expenditure and stride variability change substantially across surface conditions, from sidewalk to gravel to grass, and these differences are detectable by body-worn inertial sensors []. Walking context also matters, as indoor and outdoor walking shape distinct digital mobility signatures in ways that averaged measures can obscure []. Bout length is another well-established confounder of passively collected gait measures. Walking speed increases systematically with bout length, yet most real-world walking occurs in short bouts. Consequently, passive gait measures that are aggregated without accounting for bout length may not reflect gait capacity at longer sustained efforts [,]. This effect influences both the magnitude and reliability of extracted gait features across a range of clinical populations []. In the context of TKA, prearthroplasty individuals already exhibit shorter gait bouts and reduced daily walking activity compared with healthy peers [], suggesting that passive gait measurements in this cohort are shaped not only by gait quality but also by activity patterns reflecting pain, fatigue, and behavioral avoidance.
The environmental and behavioral factors described above represent sources of structural heterogeneity in background walking that cannot be fully eliminated by algorithmic filtering. To mitigate these potential confounders, we adopted a within-person normalization approach, in which in-app and background walks were each normalized separately to their respective presurgery baselines. Any stable systematic differences between the 2 walk types arising from environmental context, walking or bout characteristics, or other persistent factors are thereby incorporated into the baseline and subtracted out. The comparison of interest is therefore not whether background and in-app parameter values differ in absolute terms: they do, and the absolute presurgery and postsurgery values for both walk types are reported here. Rather, the key comparison in this study is whether the rate and completeness of return to each condition’s own baseline differ between the in-app and background walks. Using this normalized framework, background gait consistently returns to its own presurgery level more slowly than in-app gait. We cannot fully exclude the possibility that the ecological composition of background walks shifts after surgery; for instance, early recovery may involve a greater proportion of short indoor walking bouts that differ systematically from presurgery background activity. (Because our analysis included only walking bouts lasting at least 30 s, we were unable to characterize the full distribution of walking bout lengths and contexts over the recovery period.) That being said, a shift such as this would still suggest that the patient has not returned to their regular presurgery daily walking behavior, even as their conscious gait has returned to its presurgery state. Nevertheless, the normalization approach substantially mitigates the concern that the observed divergence simply reflects a fixed structural difference between walk types, and the consistency of the pattern across the gait parameters in 2 surgical cohorts supports its robustness. Collectively, these results indicate that prompted and passively captured walks follow different recovery trajectories, and that prompted testing alone would place the point at which gait parameters stabilize earlier than the passive data indicate. What stabilization in either measure represents clinically and functionally, and which trajectory better reflects meaningful recovery, will require studies anchored to patient-reported or clinical outcomes.
Surprisingly, age- and gender-stratified trajectories appeared similar across both procedures, suggesting that the overall shape and timing of recovery, when normalized to each patient’s own baseline, are broadly robust at the population level. Although age and gender improved model fit for several parameters, the magnitude of improvement was small relative to procedure type and walk context, and neither factor was associated with differences in time to baseline in Kaplan-Meier analyses. This is at least partially at odds with prior literature, which has identified age and sex as meaningful predictors of post-TJA outcomes, though with important nuance. For TKA specifically, Pua et al [] found older age to be among the strongest predictors of lower postoperative gait speed in a longitudinal cohort, and the large meta-analysis by Olsen et al [], covering over 11,000 patients, identified better preoperative physical function as correlated with better 1-year physical function after TKA, though age and sex effects were inconsistent across the included studies. For THA, the predictor literature is less definitive: a systematic review by Hofstede et al [] covering 35 studies and over 138,000 patients found that results for age, gender, and comorbidity were conflicting across studies, with preoperative function being the most consistently identified predictor. Examining both procedures jointly, Kennedy et al [] followed 152 THA and TKA patients across the first 4 postoperative months and found that gender and baseline preoperative function both shaped early recovery trajectories, with women tending to present with greater preoperative disability and showing correspondingly different recovery curves. The apparent absence of age and gender effects in the current study should not be taken as evidence that these factors are clinically irrelevant. A key feature of our design likely attenuates them: because trajectories are normalized to each patient’s own preoperative baseline, the analysis asks whether different groups of patients recover relative to where they started at a different rate, not whether they reach the same absolute gait level. Since absolute gait capacity differs systematically by age and sex at baseline, normalization effectively controls for these differences, which could explain why trajectory shapes converge even when absolute gait levels do not. The finding that older patients do not take longer to return to their own preoperative baseline, while their actual gait parameter values remain lower than those of younger patients, is meaningful in its own right: it suggests that the relative recovery process is broadly consistent across demographic groups, even if absolute functional levels diverge.
In contrast, recovery trajectories differed substantially by preoperative gait level. Patients with the poorest preoperative baseline gait performance exhibited the largest improvement relative to baseline, likely reflecting greater room for improvement. In contrast, patients with higher preoperative baseline gait performance showed smaller relative gains, likely because they began closer to their functional ceiling. Nevertheless, when postoperative gait was evaluated using absolute rather than baseline-normalized values, these higher-functioning patients still achieved higher absolute postoperative gait levels. Thus, relative improvement and absolute gait performance capture distinct aspects of recovery and should be interpreted together. These phenomena are well documented in the TJA literature. Across TKA studies, preoperative gait function, quadriceps strength, and overall physical function have consistently predicted postoperative performance-based outcomes, gait-speed recovery, and 1-year physical function, while lower baseline function and higher BMI have been associated with poorer absolute outcomes [,,,]. At the same time, patients with higher preoperative gait function may show smaller relative gains or even early functional decline, consistent with our finding that the highest-baseline group returned only approximately to its own preoperative level by week 15 []. Similar patterns have been reported after THA: patients with worse preoperative function often improve more, but do not reach the absolute postoperative function achieved by those who started at a higher level [,].
Taken together, the results of this study support recovery targets that are individualized to each patient’s baseline function rather than defined by a single absolute threshold. Whether the difference in baseline is due to demographic considerations or individual variation, valuable clinical information is lost when recovery is evaluated solely against population-based gait parameter values. A patient who walks slowly before surgery and returns to that level has a different clinical interpretation than a higher-functioning patient who fails to recover to their own preoperative level. Thus, both the absolute level of gait performance and the trajectory of recovery relative to baseline provide distinct and complementary clinical information.
Limitations
Within this observational study, we did not have access to and therefore did not control for all factors known to affect recovery, such as surgical approach, implant type, perioperative protocols, rehabilitation protocols, pain level, or comorbidities []. Further, no anthropometric normalization was performed (eg, normalizing stride length by patient height) because such data were also unavailable. Age was available for patients, and we grouped patients using clinically meaningful age ranges rather than equal-sized groups. This allowed us to compare age categories that are more interpretable clinically, but the resulting uneven group sizes should be considered when interpreting the age-stratified analyses.
We chose to use the return to preoperative baseline as the primary metric in this study, for the reasons described above. However, because most patients expect to achieve better function and/or less pain than they experienced in the weeks before surgery, a return to baseline should not be conflated with full recovery. In this study, the data did not allow for an analysis focused on, for example, reaching a clinically meaningful level above the presurgery baseline, since many patients had not exceeded their baseline by a noticeable margin by week 15. Future studies in this vein should aim to extend the timeline of data collection so as to be able to directly assess recovery beyond baseline.
Time to return to baseline, as calculated with Kaplan-Meier analysis, used the first week in which the patient reached their presurgery level. This definition may overestimate the speed of recovery in patients whose first crossing of baseline was transient. Functional recovery after TJA can fluctuate because of pain, fatigue, activity level, or other short-term factors, and a patient who reaches baseline in 1 week may fall below baseline in a subsequent week. The Kaplan-Meier results should therefore be interpreted as time to first observed return to baseline, rather than time to sustained recovery beyond baseline.
While smartphone-based data collection vastly increases the number of subjects it is possible to include in these types of studies, one downside compared with using dedicated hardware is that there is much more missing data within a subject’s dataset. Adherence and phone-carriage behaviors (whether people carry their phones in their pants pockets while walking) influence who contributes data over time, and environmental variability can affect background measurements as well. For this reason, we do not see multiple passive walking bouts per day in many subjects, whereas previous studies using more dedicated measurement systems do find walking bouts at that frequency, although in cohort sizes more than an order of magnitude smaller than our study [,].
We summarized cohorts without imputing missing weeks, so missingness could relate to recovery status. Further, diminishing sample sizes in later weeks (particularly for in-app walks) reduce statistical power and make late-week estimates highly sensitive to outliers. This analysis may also be subject to survivorship bias because patients who continued contributing data at later weeks may not be representative of the original cohort. In particular, if continued participation is related to recovery status, the observed results may reflect both true recovery and the changing composition of the patients who remained under observation. Therefore, the values at later weeks should be interpreted with caution.
Passive data collection depends on the patient carrying their smartphone in a pants pocket, which may introduce selection bias. Our filtering methods for removing walks in which the smartphone was outside the pants pocket could also have failed to filter some such walks, introducing noisy and unreliable data into the dataset. In addition, as discussed above, passively collected data reflect walking undertaken in a variety of conditions, which makes such data inherently different from prompted data collection. This fact is mitigated by our normalization of the in-app and background data separately to their respective presurgery levels, but there could still be an effect; for example, if the types of passive walks undertaken after surgery differ systematically from those taken before surgery. Finally, our analysis ended at 15 weeks after surgery, so later improvements or setbacks were not captured.
Conclusions and Implications for Future Research
Despite these limitations, this study provides a robust quantitative characterization of gait-parameter recovery trajectories in the first 15 weeks after TJA at weekly resolution and demonstrates the power of smartphone-based gait analysis to generate longitudinal datasets at scale. The differences in in-app and background walking that we observed suggest that clinical decisions, such as when to taper walking aids or advance activity, could benefit from incorporating passive background metrics rather than relying solely on prompted tests. However, studies that directly assess these questions are needed before any concrete clinical recommendations can be made. Further analyses of this dataset could quantify within-week heterogeneity, identify early signals associated with delayed recovery, and cluster longitudinal trajectories to define distinct recovery trajectory profiles. Defining and validating these profiles and linking them to clinical correlates could support clearer counseling and targeted interventions. Beyond this dataset, future work should extend follow-up, link trajectories to complications and PROMs, and incorporate factors such as BMI, height, and rehabilitation exposure.
Acknowledgments
The authors would like to thank the clinical teams and patients who participated in the recovery monitoring program. We also acknowledge the support of the OneStep engineering team for their assistance in data extraction and technical documentation of the gait analysis framework. Special thanks to Glen Pridham from the Weizmann Institute of Science for his advice on statistical analysis.
Generative AI Use
Generative AI ChatGPT (GPT-4o; OpenAI) was used during the preparation of this manuscript to assist with writing code for some analyses, assist with the initial drafting of standard end sections, and refine the linguistic clarity of the technical discussion. Claude (claude-opus-5-5; Anthropic) was used during copyediting. The authors reviewed and edited all AI-generated content and take full responsibility for the final manuscript.
Funding
This study was supported by Celloscope Ltd (OneStep).
Data Availability
Aggregate data from this study are provided in , containing weekly group-level data organized by procedure, walk type, postoperative week, and gait parameter. Participant-level data cannot be shared because users of the OneStep platform consented only to the use of their deidentified data in aggregate for research purposes. Raw sensor data and proprietary intermediate data structures are not publicly available.
Authors' Contributions
Conceptualization: LST, YYN
Data curation: LST
Formal analysis: LST
Investigation: LST
Methodology: LST, YYN
Project administration: YYN, BM, OYL
Software: LST, EG-H
Supervision: YYN, BM, OYL
Visualization: LST
Writing – original draft: LST, EG-H
Writing – review & editing: LST, EG-H, YYN, BM, OYL, PAL
Conflicts of Interest
LST, EG-H, and YYN are employees of Celloscope Ltd (OneStep), the company that developed the smartphone gait analysis system evaluated in this study. BM, OYL, PAL, and their respective institutions declare no conflicts of interest.
Multimedia Appendix 1
Supplementary figures and tables supporting the analysis of postoperative gait recovery after total hip and total knee arthroplasty.
PDF File, 9118 KBMultimedia Appendix 2
Aggregate (group-level) mean values of the 9 gait parameters analyzed in this study, provided for each combination of procedure (total hip arthroplasty, total knee arthroplasty), walk type (in-app, background), and week (preoperative baseline through week 15 postsurgery).
ZIP File, 19 KBReferences
- Patel N, Golwala P. Approaches for total hip arthroplasty: a systematic review. Cureus. Feb 2023;15(2):e34829. [CrossRef] [Medline]
- Lee YS. Comprehensive analysis of pain management after total knee arthroplasty. Knee Surg Relat Res. Jun 1, 2017;29(2):80-86. [CrossRef] [Medline]
- American Joint Replacement Registry (AJRR): 2025 annual report. American Academy of Orthopaedic Surgeons (AAOS); 2025. URL: https://www.aaos.org/registries/publications/ajrr-annual-report/ [Accessed 2026-01-10]
- Shichman I, Roof M, Askew N, et al. Projections and epidemiology of primary hip and knee arthroplasty in Medicare patients to 2040-2060. JB JS Open Access. 2023;8(1):e22.00112. [CrossRef] [Medline]
- Wainwright TW, Kehlet H. Functional recovery following hip and knee arthroplasty: subjective vs. objective assessment? Acta Orthop. Sep 15, 2022;93:739-741. [CrossRef] [Medline]
- Podsiadlo D, Richardson S. The timed “Up & Go”: a test of basic functional mobility for frail elderly persons. J Am Geriatr Soc. Feb 1991;39(2):142-148. [CrossRef] [Medline]
- Muscatelli S, Zheng H, Muralidharan A, Tollemar V, Hallstrom BR. Limiting the surveillance period to 90 days misses a large portion of infections in the first year after total hip and knee arthroplasty. Arthroplast Today. 2022;16:90-95. [CrossRef] [Medline]
- Garabedian M, Legler J, Benzouak T, Baskaran S, Mutch J, Albers A. Efficacy of lower-limb wearables to assess recovery following total hip or knee arthroplasty: a systematic review and meta-analysis. J Arthroplasty. May 2026;41(5):1548-1561. [CrossRef] [Medline]
- Wu KA, Kugelman DN, Goel RK, et al. How do patient-reported outcomes correlate with real-time objective measures of function after total knee arthroplasty? A prospective study using daily gait metrics. J Arthroplasty. Jul 2025;40(7):1711-1718. [CrossRef] [Medline]
- Guild GN 3rd, Najafi F, DeCook CA, et al. Evaluating knee recovery beyond patient reports: a comparative study of smart implantable device-derived gait metrics versus patient-reported outcome measures in total knee arthroplasty. J Arthroplasty. Dec 2024;39(12):2961-2969.e1. [CrossRef] [Medline]
- Wang K, Eftang CN, Jakobsen RB, Årøen A. Review of response rates over time in registry-based studies using patient-reported outcome measures. BMJ Open. Aug 6, 2020;10(8):e030808. [CrossRef] [Medline]
- Fary C, Cholewa J, Abshagen S, et al. Stepping beyond counts in recovery of total knee arthroplasty: a prospective study on passively collected gait metrics. Sensors (Basel). Jun 14, 2023;23(12):5588. [CrossRef] [Medline]
- Pua YH, Seah FJT, Clark RA, Lian-Li Poon C, Tan JWM, Chong HC. Factors associated with gait speed recovery after total knee arthroplasty: a longitudinal study. Semin Arthritis Rheum. Apr 2017;46(5):544-551. [CrossRef] [Medline]
- Halvorson RT, Torres-Espin A, Cherches M, Callahan M, Vail TP, Bailey JF. Predicting recovery following total hip and knee arthroplasty using a clustering algorithm. Arthroplast Today. 2024;27:101395. [CrossRef] [Medline]
- Christensen JC, Stanley EC, Oro EG, et al. The validity and reliability of the OneStep smartphone application under various gait conditions in healthy adults with feasibility in clinical practice. J Orthop Surg Res. Sep 14, 2022;17(1):417. [CrossRef] [Medline]
- Marom P, Brik M, Agay N, et al. The reliability and validity of the OneStep smartphone application for gait analysis among patients undergoing rehabilitation for unilateral lower limb disability. Sensors (Basel). Jun 2, 2024;24(11):3594. [CrossRef] [Medline]
- Contreras C, Stanley EC, Deschamps-Prescott C, et al. Evaluation of smartphone technology on spatiotemporal gait in older and diseased adult populations. Sensors (Basel). Sep 9, 2024;24(17):5839. [CrossRef] [Medline]
- Bea T, Chaabene H, Freitag CW, Schega L. Psychometric characteristics of smartphone-based gait analyses in chronic health conditions: a systematic review. J Funct Morphol Kinesiol. Apr 16, 2025;10(2):133. [CrossRef] [Medline]
- Wu KA, Kugelman DN, Rosas S, et al. Improved walking steadiness following total hip arthroplasty compared to total knee arthroplasty. Arthroplast Today. 2025;35:101802. [CrossRef] [Medline]
- Tomey KM, Sowers MR. Assessment of physical functioning: a conceptual model encompassing environmental factors and individual compensation strategies. Phys Ther. Jul 2009;89(7):705-714. [CrossRef] [Medline]
- Hassija N, Hill E, Dawes H, Mayo NE. Comparability of methods for remotely assessing gait quality. Sensors (Basel). Jun 14, 2025;25(12):3733. [CrossRef] [Medline]
- Foucher KC, Thorp LE, Orozco D, Hildebrand M, Wimmer MA. Differences in preferred walking speeds in a gait laboratory compared with the real world after total hip replacement. Arch Phys Med Rehabil. Sep 2010;91(9):1390-1395. [CrossRef] [Medline]
- Rozanski G, Putrino D. Recording context matters: differences in gait parameters collected by the OneStep smartphone application. Clin Biomech (Bristol). Oct 2022;99:105755. [CrossRef] [Medline]
- 45 CFR § 46.104 — exempt research. Electronic Code of Federal Regulations (eCFR). URL: https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-A/part-46/subpart-A/section-46.104 [Accessed 2026-10-07]
- Naveh Y, Davidson S, Shussman T. System, method and computer program product for assessment of a user’s gait. Sep 17, 2020. URL: https://patents.google.com/patent/US20200289027A1/en [Accessed 2026-10-17]
- Perera S, Mody SH, Woodman RC, Studenski SA. Meaningful change and responsiveness in common physical performance measures in older adults. J Am Geriatr Soc. May 2006;54(5):743-749. [CrossRef] [Medline]
- Judd DL, Wolfe P, LeDoux CV, Hogan C, Dayton MR, Stevens-Lapsley JE. Trajectories of functional performance and muscle strength recovery differ after total knee and total hip replacement: a performance-based, longitudinal study. Int J Rehabil Res. Sep 2019;42(3):211-216. [CrossRef] [Medline]
- Kawaguchi K, Kuwakado S, Otsuka H, et al. Comparison between total hip and knee arthroplasty on short-term performance-based outcomes and factors associated with the improvement of gait function during post-acute inpatient rehabilitation. J Clin Med. Oct 24, 2024;13(21):6381. [CrossRef] [Medline]
- Vissers MM, Bussmann JB, de Groot IB, Verhaar JAN, Reijman M. Physical functioning four years after total hip and knee arthroplasty. Gait Posture. Jun 2013;38(2):310-315. [CrossRef] [Medline]
- Kowalsky DB, Rebula JR, Ojeda LV, Adamczyk PG, Kuo AD. Human walking in the real world: interactions between terrain type, gait parameters, and energy expenditure. PLoS One. 2021;16(1):e0228682. [CrossRef] [Medline]
- Kirk C, Rehman RZU, Galna B, et al. Toward an understanding of real-world mobility in Parkinson’s: insights from enhanced contextualisation using GPS-derived location and data-driven modeling of walking speed. Front Aging Neurosci. 2026;18:1746429. [CrossRef] [Medline]
- Mueller A, Hoefling HA, Muaremi A, et al. Continuous digital monitoring of walking speed in frail elderly patients: noninterventional validation study and longitudinal clinical trial. JMIR mHealth uHealth. Nov 27, 2019;7(11):e15191. [CrossRef] [Medline]
- Shah VV, McNames J, Harker G, et al. Effect of bout length on gait measures in people with and without Parkinson’s disease during daily life. Sensors (Basel). Oct 12, 2020;20(20):5769. [CrossRef] [Medline]
- Boekesteijn RJ, Keijsers NLW, Defoort K, et al. Real-world gait and turning in individuals scheduled for total knee arthroplasty. Clin Biomech (Bristol). Oct 2024;119:106332. [CrossRef] [Medline]
- Olsen U, Lindberg MF, Rose C, et al. Factors correlated with physical function 1 year after total knee arthroplasty in patients with knee osteoarthritis: a systematic review and meta-analysis. JAMA Netw Open. Jul 1, 2022;5(7):e2219636. [CrossRef] [Medline]
- Hofstede SN, Gademan MGJ, Vliet Vlieland TPM, Nelissen R, Marang-van de Mheen PJ. Preoperative predictors for outcomes after total hip replacement in patients with osteoarthritis: a systematic review. BMC Musculoskelet Disord. May 17, 2016;17:212. [CrossRef] [Medline]
- Kennedy DM, Hanna SE, Stratford PW, Wessel J, Gollish JD. Preoperative function and gender predict pattern of functional recovery after hip and knee arthroplasty. J Arthroplasty. Jun 2006;21(4):559-566. [CrossRef] [Medline]
- Kluge F, Hannink J, Pasluosta C, et al. Pre-operative sensor-based gait parameters predict functional outcome after total knee arthroplasty. Gait Posture. Oct 2018;66:194-200. [CrossRef] [Medline]
- Devasenapathy N, Maddison R, Malhotra R, Zodepy S, Sharma S, Belavy DL. Preoperative quadriceps muscle strength and functional ability predict performance-based outcomes 6 months after total knee arthroplasty: a systematic review. Phys Ther. Jan 1, 2019;99(1):46-61. [CrossRef] [Medline]
- Hewlett-Smith N, Pope R, Furness J, Simas V, Hing W. Prognostic factors for inpatient functional recovery following total hip and knee arthroplasty: a systematic review. Acta Orthop. Jun 2020;91(3):313-318. [CrossRef] [Medline]
- Casey HL, Shah VV, Muzyka D, et al. Gait characteristics in people with Friedreich ataxia: daily life versus clinic measures. Front Neurol. 2025;16:1544453. [CrossRef] [Medline]
Abbreviations
| EMM: estimated marginal mean |
| IMU: inertial measurement unit |
| PROM: patient-reported outcome measure |
| THA: total hip arthroplasty |
| TJA: total joint arthroplasty |
| TKA: total knee arthroplasty |
Edited by Junhong Zhou; submitted 08.Apr.2026; peer-reviewed by Hsuan-Lun Lu, Ramon Boekesteijn, Theodora Plavoukou; final revised version received 24.Sep.2026; accepted 07.Oct.2026; published 30.Oct.2026.
Copyright© Levi S Teitz, Einat Granot-Hershkovitz, Pei-An Lee, On-Yee Lo, Brad Manor, Yuval Y Naveh. Originally published in JMIR mHealth and uHealth (https://mhealth.jmir.org), 30.Oct.2026.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR mHealth and uHealth, is properly cited. The complete bibliographic information, a link to the original publication on https://mhealth.jmir.org/, as well as this copyright and license information must be included.

