<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Aging</journal-id><journal-id journal-id-type="publisher-id">aging</journal-id><journal-id journal-id-type="index">31</journal-id><journal-title>JMIR Aging</journal-title><abbrev-journal-title>JMIR Aging</abbrev-journal-title><issn pub-type="epub">2561-7605</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v9i1e90705</article-id><article-id pub-id-type="doi">10.2196/90705</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Predicting Frailty Trajectories Using Interpretable Machine Learning Among Older Adults Following Hip Surgery: Prospective Longitudinal Study</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Huang</surname><given-names>Jingying</given-names></name><degrees>MSN</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Fan</surname><given-names>Qinqin</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Shi</surname><given-names>Huiqin</given-names></name><degrees>BSN</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Chen</surname><given-names>Jiaojiao</given-names></name><degrees>MSN</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Gao</surname><given-names>Hongbo</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Gu</surname><given-names>Kailai</given-names></name><degrees>BSN</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Yang</surname><given-names>Jin</given-names></name><degrees>MSN</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib></contrib-group><aff id="aff1"><institution>Sir Run Run Shaw Hospital</institution><addr-line>No. 3, Qingchun East Road</addr-line><addr-line>Hangzhou</addr-line><addr-line>Zhejiang</addr-line><country>China</country></aff><aff id="aff2"><institution>Shanghai Maritime University</institution><addr-line>Shanghai</addr-line><country>China</country></aff><aff id="aff3"><institution>Zhejiang Chinese Medical University</institution><addr-line>Hangzhou</addr-line><country>China</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Gray</surname><given-names>Michelle</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Cedeno-Veloz</surname><given-names>Bernardo</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Mun</surname><given-names>Kyung-Ryoul</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Jingying Huang, MSN, Sir Run Run Shaw Hospital, No. 3, Qingchun East Road, Hangzhou, Zhejiang, China, 86 17757173794; <email>h.j.y@163.com</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>16</day><month>6</month><year>2026</year></pub-date><volume>9</volume><elocation-id>e90705</elocation-id><history><date date-type="received"><day>02</day><month>01</month><year>2026</year></date><date date-type="rev-recd"><day>11</day><month>05</month><year>2026</year></date><date date-type="accepted"><day>28</day><month>05</month><year>2026</year></date></history><copyright-statement>&#x00A9; Jingying Huang, Qinqin Fan, Huiqin Shi, Jiaojiao Chen, Hongbo Gao, Kailai Gu, Jin Yang. Originally published in JMIR Aging (<ext-link ext-link-type="uri" xlink:href="https://aging.jmir.org">https://aging.jmir.org</ext-link>), 16.6.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Aging, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://aging.jmir.org">https://aging.jmir.org</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://aging.jmir.org/2026/1/e90705"/><abstract><sec><title>Background</title><p>Postoperative frailty is highly prevalent among older adults undergoing hip surgery and is closely linked to poor clinical outcomes. Despite growing interest in understanding its progression, the temporal patterns of frailty remain underexplored. Moreover, there is a lack of validated models that can predict frailty trajectories and stratify patients by risk in the early postoperative period.</p></sec><sec><title>Objective</title><p>This study aimed to identify distinct frailty trajectories within 6 months following hip surgery in older adults and to explore their associated predictors. An interpretable machine-learning model was developed and internally validated for individualized risk prediction and was implemented as a clinically accessible web-based calculator.</p></sec><sec sec-type="methods"><title>Methods</title><p>This prospective longitudinal observational study was conducted among older adults undergoing hip surgery at a tertiary hospital in China. Frailty assessments were performed preoperatively and at 1, 3, and 6 months postoperatively. A total of 209 participants who completed the 6-month follow-up were included in the analysis. Frailty was assessed using the Frailty Index, and group-based trajectory modeling was applied to identify distinct frailty progression patterns. Predictive variables were selected using the least absolute shrinkage and selection operator regression. An interpretable Extreme Gradient Boosting (XGBoost) model was developed using a 60:40 training-test data split. Model performance was evaluated in terms of discrimination, calibration, and clinical utility. Interpretability was assessed using SHAP (Shapley Additive Explanations) at both the global and individual levels.</p></sec><sec sec-type="results"><title>Results</title><p>Three distinct frailty trajectories were identified: low-fluctuation frailty (55/209, 26%), high-improvement frailty (81/209, 39%), and high-deterioration frailty (73/209, 35%). Twelve predictors grounded in the Health Ecology Model were selected, spanning individual characteristics, interpersonal networks, and the living environment. The XGBoost model demonstrated excellent discrimination, with a microaverage area under the receiver operating characteristic curve of 0.98 (95% CI 0.96&#x2010;0.99) in the training set and 0.93 (95% CI 0.90&#x2010;0.96) in the test set. Calibration was acceptable, with a weighted Brier score of 0.0852. Decision curve analysis showed favorable clinical utility across a range of threshold probabilities. A web-based risk calculator was developed to facilitate personalized frailty trajectory prediction.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>The XGBoost model demonstrated strong predictive performance and interpretability, enabling the early identification of older patients at risk for adverse frailty trajectories following hip surgery. This tool may support targeted interventions and improve perioperative care in geriatric populations.</p></sec></abstract><kwd-group><kwd>frailty trajectory</kwd><kwd>hip surgery</kwd><kwd>predictive model</kwd><kwd>Extreme Gradient Boosting</kwd><kwd>XGBoost</kwd><kwd>Shapley Additive Explanations</kwd><kwd>SHAP analysis</kwd><kwd>frailty</kwd><kwd>aging</kwd><kwd>older adults</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Population aging has emerged as a significant global public health challenge. With shifting demographic structures, the incidence of orthopedic conditions among older adults has risen substantially. In 2000, there were an estimated 1.6 million hip fracture cases worldwide, a number projected to increase to 6.3 million by 2050 [<xref ref-type="bibr" rid="ref1">1</xref>]. Hip osteoarthritis is also common in older adults, with an incidence of up to 10%, and its end-stage form leads to significant pain and disability, severely impacting quality of life [<xref ref-type="bibr" rid="ref1">1</xref>]. For conditions such as hip fractures and advanced hip osteoarthritis, hip surgery remains the primary treatment, effectively alleviating pain, restoring joint function, and improving patient outcomes [<xref ref-type="bibr" rid="ref2">2</xref>]. Notably, approximately 85% of patients undergoing hip surgery are aged 60 years or older and often present with multimorbidity and frailty [<xref ref-type="bibr" rid="ref3">3</xref>].</p><p>Frailty is an age-related clinical syndrome characterized by a progressive decline in physiological function and multisystem reserve, which impairs the ability to withstand stressors, such as illness, trauma, or surgery, and increases vulnerability to adverse outcomes [<xref ref-type="bibr" rid="ref4">4</xref>,<xref ref-type="bibr" rid="ref5">5</xref>]. A growing body of evidence has identified frailty as an independent predictor of poor postoperative outcomes, including falls, functional decline, rehospitalization, and mortality [<xref ref-type="bibr" rid="ref6">6</xref>-<xref ref-type="bibr" rid="ref8">8</xref>]. Among older patients undergoing surgery, the prevalence of frailty ranges from 41.8% to 50.3% and may reach up to 65% in those undergoing hip surgery [<xref ref-type="bibr" rid="ref9">9</xref>,<xref ref-type="bibr" rid="ref10">10</xref>]. This elevated prevalence reflects the dual impact of both the underlying health status and surgical stress. On the one hand, hip fracture itself is often associated with frailty-related conditions such as sarcopenia, impaired balance, and malnutrition. On the other hand, perioperative factors such as prolonged bed rest, pain, and reduced mobility can accelerate muscle loss and disrupt homeostasis, further depleting physiological reserves through endocrine, metabolic, and immune dysregulation [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>]. Common postoperative complications, including delirium and infection, may further delay recovery and exacerbate functional deterioration. Even 1 year after surgery, frailty remains present in 25.6% to 27.7% of patients [<xref ref-type="bibr" rid="ref13">13</xref>].</p><p>Importantly, frailty is increasingly recognized as a dynamic and potentially reversible condition. Its core principle emphasizes that early identification and proactive intervention can delay or even reverse its progression [<xref ref-type="bibr" rid="ref14">14</xref>]. The distinct phases of postoperative recovery, rehabilitation, and stabilization provide a critical window to observe changes in frailty status. These trajectories are shaped by factors such as baseline reserve, perioperative complications, and psychosocial conditions. While some patients recover steadily, others experience worsening frailty and increased dependency [<xref ref-type="bibr" rid="ref15">15</xref>]. Studies suggest that frailty trajectory patterns better predict outcomes than static measurements, with rapid deterioration or high variability indicating increased risk [<xref ref-type="bibr" rid="ref16">16</xref>]. These findings underscore the need for tools that can identify frailty trajectories early and guide intervention timing. While previous studies have examined frailty trajectories in various disease contexts, only a few have developed predictive models [<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref18">18</xref>]. These models are typically restricted to specific populations, rely on a narrow set of variables, and employ conventional statistical approaches, limiting their robustness and generalizability. Furthermore, static frailty assessment tools, such as the Clinical Frailty Scale and the FRAIL Scale, fail to capture the multidimensional, nonlinear nature of frailty progression. Therefore, there is a pressing need for predictive models that integrate multilevel risk factors and offer strong interpretability.</p><p>The Health Ecology Model (HEM) offers a comprehensive framework for viewing health as the outcome of interactions among individual, behavioral, and environmental factors [<xref ref-type="bibr" rid="ref19">19</xref>]. It emphasizes that health is determined by personal characteristics (eg, age, sex, body weight, psychological status, and lifestyle), as well as by social support, living conditions, economic status, and broader policy environments. This perspective aligns with the multifactorial etiology of frailty, which is shaped by both intrinsic and extrinsic factors [<xref ref-type="bibr" rid="ref18">18</xref>,<xref ref-type="bibr" rid="ref20">20</xref>]. Methodologically, Extreme Gradient Boosting (XGBoost) is a robust ensemble learning algorithm well-suited for modeling high-dimensional, nonlinear data and performs reliably even with relatively small sample sizes. SHAP (Shapley Additive Explanations), grounded in cooperative game theory, enhances the interpretability of machine-learning models by quantifying the global and individual-level contributions of each feature to prediction outcomes [<xref ref-type="bibr" rid="ref21">21</xref>].</p><p>Therefore, guided by the HEM, this study integrates predictors across individual, behavioral, and environmental domains to construct an interpretable XGBoost-based predictive model for frailty trajectories within 6 months following hip surgery in older patients. SHAP is used to visualize and interpret the contribution of key predictors, and a web-based calculator is developed for clinical applications. This study aims to support the stratification of patients into distinct frailty trajectory subgroups, enabling more precise screening, targeted intervention, and optimized allocation of health care resources.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Study Design</title><p>This was a prospective, longitudinal cohort study, reported in accordance with the 2024 TRIPOD + AI (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2014;Artificial Intelligence) guidelines for the development and validation of multivariable prediction models [<xref ref-type="bibr" rid="ref22">22</xref>].</p></sec><sec id="s2-2"><title>Population</title><p>This study employed convenience sampling to recruit older adults who underwent hip surgery under general anesthesia at a tertiary hospital in China between March 2024 and March 2025. Eligible patients were followed prospectively for 6 months postoperatively, with follow-up assessments conducted from March 2024 to September 2025.</p><p>Inclusion criteria were age 60 years or older; scheduled for elective hip surgery, including total hip arthroplasty, hemiarthroplasty, or internal fixation; and sufficient communication ability to complete study assessments. Exclusion criteria were severe psychiatric disorders that prevented adequate cooperation; substantial hearing or visual impairments that precluded completion of questionnaires; palliative status (ie, life expectancy &#x003C;6 &#x202F;mo); or current enrollment in other studies likely to affect frailty outcomes. Participants were withdrawn if they were lost to follow-up due to relocation or hospital transfer, voluntarily withdrew consent, or died of causes unrelated to the study protocol.</p><p>Baseline data and preoperative frailty assessments were collected through face-to-face interviews conducted by trained researchers. Follow-up assessments at 1, 3, and 6 months postoperatively were conducted via structured telephone interviews.</p></sec><sec id="s2-3"><title>Sample Size</title><p>As there is currently no universally accepted sample size calculation method for trajectory-based multiclass machine-learning prediction models, the sample size was pragmatically estimated using a conventional epidemiological formula to ensure adequate baseline cohort representativeness. The required sample size was calculated as follows [<xref ref-type="bibr" rid="ref23">23</xref>]: <inline-formula><mml:math id="ieqn1"><mml:mstyle><mml:mrow><mml:mstyle displaystyle="false"><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mfrac><mml:mi>Z</mml:mi><mml:mi>&#x03B4;</mml:mi></mml:mfrac><mml:mo>)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mrow><mml:mover><mml:mi>&#x03D5;</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mover><mml:mi>&#x03D5;</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mstyle></mml:mrow></mml:mstyle></mml:math></inline-formula>, where <italic>Z</italic> is the critical value at a 95% CI, <inline-formula><mml:math id="ieqn2"><mml:mrow><mml:mover><mml:mi>&#x03D5;</mml:mi><mml:mo>&#x2227;</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula> is the estimated incidence of frailty, and <italic>&#x03B4;</italic> is the acceptable margin of error. Based on a pilot study indicating a 6-month postoperative frailty incidence of 14% and setting <italic>d</italic> at 5%, the calculated sample size was 185. After accounting for a 10% attrition rate, the final target sample size was set at no fewer than 206 cases to ensure the epidemiological representativeness of the baseline cohort.</p></sec><sec id="s2-4"><title>Ethical Considerations</title><p>Ethical approval for the study was obtained from the Ethics Committee of Sir Run Run Shaw Hospital, Zhejiang University School of Medicine (number 2024-2687-01). Informed consent was obtained from all participants before the study commenced.</p></sec><sec id="s2-5"><title>Outcomes Definition</title><p>Frailty was assessed preoperatively and at 1, 3, and 6 months postoperatively using a modified Frailty Index (FI) based on the cumulative deficit model developed by Rockwood and Mitnitski [<xref ref-type="bibr" rid="ref24">24</xref>]. Tailored to the clinical characteristics of older adults undergoing hip surgery, we developed a 37-item population-specific FI covering 6 domains: chronic diseases, mental health, activities of daily living (ADLs), cognitive function, and symptoms/signs. Although several predictive variables share conceptual domains with components of the FI, none of the specific indicators used to construct the FI were directly included as predictors in the model. FI scores ranged from 0 to 1, with higher scores indicating greater frailty. A score &#x003C;0.25 was classified as nonfrail and a score &#x2265;0.25 was classified as frail [<xref ref-type="bibr" rid="ref25">25</xref>]. The full list of FI items is provided in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s2-6"><title>Candidate Predictor Variables</title><p>Based on a review of the literature and expert consultation, potential risk factors were explored within the HEM, encompassing individual characteristics, behavioral and psychological factors, interpersonal networks, and the living environment. Key individual characteristics included demographic and socioeconomic factors (eg, gender, marital status, education level, and income), physiological indicators (high-sensitivity C-reactive protein [hsCRP]), health behaviors (smoking and drinking), and clinical history (number of comorbidities and surgery type). Functional status was assessed using the Barthel Index for ADLs, with scores indicating varying levels of independence [<xref ref-type="bibr" rid="ref26">26</xref>]. Nutritional status was evaluated via the Mini Nutritional Assessment&#x2013;Short Form [<xref ref-type="bibr" rid="ref27">27</xref>], with scores categorizing participants as malnourished, at risk, or well-nourished.</p><p>Behavioral and psychological factors, including depressive symptoms, were measured using the 5-item Geriatric Depression Scale, while sleep quality was assessed using the Pittsburgh Sleep Quality Index. For interpersonal networks, family function was assessed using the Family APGAR (Adaptability, Partnership, Growth, Affection, Resolve) Index [<xref ref-type="bibr" rid="ref28">28</xref>], and social support was measured using the Social Support Rating Scale. Finally, environmental factors were evaluated using a self-developed Living Environment Questionnaire (LEQ), which assesses home adaptability, perceived environmental burden, community resource accessibility, and residential satisfaction. The LEQ demonstrated strong content validity and was tailored to the needs of older adults. Detailed descriptions of these variables and the respective scales are provided in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s2-7"><title>Statistical Analysis</title><p>A complete-case analysis was conducted. Missing data primarily arose from loss to follow-up during the longitudinal assessments, and participants with incomplete follow-up data were excluded from the analysis. To assess the missing data mechanism, the Little test for missing completely at random (MCAR) was performed. In addition, baseline characteristics between participants included in the final analysis and those who were lost to follow-up were compared to evaluate the potential for selection bias. Categorical variables are expressed as frequencies and percentages. Differences between the training and test sets were assessed using the chi-square test. Continuous variables with a normal distribution are presented as mean (SD), while nonnormally distributed variables are shown as median (IQR). Depending on the data distribution, the <italic>t</italic> test or the Mann-Whitney <italic>U</italic> test was applied.</p><p>Group-based trajectory modeling was utilized to identify frailty trajectories in older patients with hip fractures. The optimal model was selected based on clinical relevance, fit indices, and classification quality, with a preference for simpler models with fewer groups. Model fit was evaluated using the following criteria [<xref ref-type="bibr" rid="ref29">29</xref>]: (1) Bayesian Information Criterion (BIC): lower values indicate a better fit; (2) average posterior probability (AvePP): AvePP greater than 0.7 for all groups, with the smallest group proportion exceeding 5%; (3) odds of correct classification (OCC): OCC was greater than 5; (4) relative entropy (E<sub>k</sub>): E<sub>k</sub> was higher than 0.8.</p><p>The data were randomly split into training and test sets in a 60:40 ratio using stratified sampling to preserve the original distribution of the 3 frailty trajectory classes across the dataset. To prevent overfitting, LASSO (least absolute shrinkage and selection operator) regression was applied to the training set for high-dimensional feature selection. The L1 regularization term enabled simultaneous variable selection and coefficient shrinkage. Model performance was evaluated using 10-fold cross-validation, with the optimal penalty parameter (&#x03BB;) selected according to the 1 SE rule to ensure model parsimony and generalizability. To evaluate potential overlap and multicollinearity among predictors, variance inflation factors (VIFs) were calculated for variables retained after LASSO selection. A VIF &#x003C;5 was considered to indicate no significant multicollinearity [<xref ref-type="bibr" rid="ref30">30</xref>].</p><p>The selected features were used to construct the XGBoost model. Because no trajectory class represented an extremely small proportion of the sample, no additional class imbalance handling strategies (eg, oversampling or SMOTE [Synthetic Minority Oversampling Technique]) were applied during model training. To improve model robustness and reduce overfitting, regularization and subsampling strategies were incorporated into the XGBoost model. During training, a 3-fold inner cross-validation was employed to estimate performance. For the test set, the area under the receiver operating characteristic curve, accuracy, <italic>F</italic><sub>1</sub>-score, sensitivity, and specificity were computed. The calibration curve was used to compare predicted probabilities with actual outcomes across frailty trajectories. Decision curve analysis was performed to assess net clinical benefit. Finally, SHAP values were used to interpret the XGBoost model, ranking feature importance based on the mean absolute SHAP values. The XGBoost model was deployed on a cloud platform [<xref ref-type="bibr" rid="ref31">31</xref>] using the &#x201C;Shiny&#x201D; package, creating an online prediction calculator for frailty trajectories following hip surgery.</p><p>Statistical analysis and graphical representations were performed using IBM SPSS 26.0, R 4.5.1 (R Core Team), and Python 3.9 (Python Software Foundation), with the &#x201C;traj,&#x201D; &#x201C;glmnet,&#x201D; &#x201C;xgboost,&#x201D; and &#x201C;shap&#x201D; packages. All statistical tests were 2-sided, and statistical significance was set at &#x03B1;=.05.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Characteristics of Participants</title><p>A total of 300 patients were screened for the study, of whom 78 were excluded due to severe hearing impairment, significant visual decline, communication barriers, or other factors. Four patients with incomplete data were also excluded, leaving 218 patients enrolled. <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref> presents the flowchart of the participants included in this study. During the follow-up period, 9 participants were lost to follow-up at 6 months, yielding an attrition rate of 4.1%. Given that frailty trajectories were identified using group-based trajectory modeling based on 3 repeated follow-up assessments, participants with incomplete longitudinal data were excluded to ensure the stability and interpretability of trajectory classification. To evaluate the missing data mechanism, we conducted a missing data analysis (<xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>). The Little MCAR test indicated that the missing data were consistent with the assumption of MCAR (<italic>&#x03C7;</italic>&#x00B2;<sub>4</sub>=3.750, <italic>P</italic>=.44). In addition, no significant differences were observed in baseline characteristics between participants retained in the analysis and those lost to follow-up (<xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>), suggesting a low risk of selection bias.</p></sec><sec id="s3-2"><title>Frailty Prevalence and Trajectories</title><p>Frailty levels among older patients undergoing hip surgery exhibited a dynamic trend, with an initial increase followed by a gradual decline. The prevalence of frailty was 70.81% (148/209) before surgery, peaked at 84.21% (176/209) at 1 month postoperatively, and subsequently decreased to 63.16% (132/209) at 3 months and 45.45% (95/209) at 6 months.</p><p>A 3-class trajectory model demonstrated the best fit based on BIC, AvePP, and E<sub>k</sub> values (<xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>). It showed the lowest BIC change (59.36). All classes had AvePP values greater than 0.7 and OCC values exceeding 5. The E<sub>k</sub> was 0.905, indicating high classification precision. Therefore, the 3-trajectory model was selected to characterize postoperative frailty trajectories among older adults undergoing hip surgery. Based on the estimated intercepts and slopes, trajectory 0 was labeled as low-fluctuation frailty, comprising 55 out of 209 individuals (26%), with a lower baseline frailty level, a modest increase at 1 month, and a subsequent decline. Trajectory 1 was labeled as high-improvement frailty, including 81 out of 209 (39%) individuals who had a higher baseline frailty level and experienced continuous functional recovery. Trajectory 2 was labeled as high-deterioration frailty, consisting of 73 out of 209 (35%) individuals who started with a high frailty level and demonstrated progressive worsening over time. Detailed parameter estimates and visual representations are provided in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>. Given the distinct clinical patterns observed among the 3 classes, a multiclass modeling approach was employed to support the subsequent predictive analysis.</p></sec><sec id="s3-3"><title>Predictor Variable Selection</title><p>A total of 209 participants were randomly assigned to a training set (n=126) and a testing set (n=83) in a 60:40 ratio. The training set was used for model development, while the testing set was reserved for independent performance evaluation. Baseline demographic and clinical characteristics were compared between the 2 sets, with statistically significant differences observed only in marital status and type of medical insurance (<xref ref-type="table" rid="table1">Table 1</xref>).</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Comparison of baseline characteristics between the training and test sets.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Variables</td><td align="left" valign="bottom">Total (N=209)</td><td align="left" valign="bottom">Training set (n=126)</td><td align="left" valign="bottom">Test set (n=83)</td><td align="left" valign="bottom"><italic>&#x03C7;</italic><sup>2</sup> (<italic>df</italic>) or <italic>Z</italic> value</td><td align="left" valign="bottom"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="top">Age (y), median (IQR)</td><td align="left" valign="top">74 (68-83)</td><td align="left" valign="top">75 (68-83)</td><td align="left" valign="top">74 (68-82)</td><td align="left" valign="top">&#x2212;3.343<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">.73</td></tr><tr><td align="left" valign="top">Gender, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.720 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.40</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male</td><td align="left" valign="top">66 (31.6)</td><td align="left" valign="top">37 (29.4)</td><td align="left" valign="top">29 (34.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female</td><td align="left" valign="top">143 (68.4)</td><td align="left" valign="top">89 (70.6)</td><td align="left" valign="top">54 (65.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Marital status, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">6.326 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.01</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With spouse</td><td align="left" valign="top">58 (27.8)</td><td align="left" valign="top">27 (21.4)</td><td align="left" valign="top">31 (37.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Without spouse</td><td align="left" valign="top">151 (72.2)</td><td align="left" valign="top">99 (78.6)</td><td align="left" valign="top">52 (62.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Education level, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">3.023 (3)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.39</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Primary or below</td><td align="left" valign="top">135 (64.6)</td><td align="left" valign="top">79 (62.7)</td><td align="left" valign="top">56 (67.5)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Middle school</td><td align="left" valign="top">47 (22.5)</td><td align="left" valign="top">33 (26.2)</td><td align="left" valign="top">14 (16.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>High school</td><td align="left" valign="top">20 (9.6)</td><td align="left" valign="top">10 (7.9)</td><td align="left" valign="top">10 (12)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>College or above</td><td align="left" valign="top">7 (3.3)</td><td align="left" valign="top">4 (3.2)</td><td align="left" valign="top">3 (3.6)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Type of work, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">2.574 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.28</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Manual labor</td><td align="left" valign="top">125 (59.8)</td><td align="left" valign="top">71 (56.3)</td><td align="left" valign="top">54 (65.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mental labor</td><td align="left" valign="top">64 (30.6)</td><td align="left" valign="top">40 (31.7)</td><td align="left" valign="top">24 (28.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unemployed or other</td><td align="left" valign="top">20 (9.6)</td><td align="left" valign="top">15 (11.9)</td><td align="left" valign="top">5 (6.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Residence place, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">1.669 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.20</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Rural</td><td align="left" valign="top">117 (56.0)</td><td align="left" valign="top">66 (52.4)</td><td align="left" valign="top">51 (61.4)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Urban</td><td align="left" valign="top">92 (44.0)</td><td align="left" valign="top">60 (47.6)</td><td align="left" valign="top">32 (38.6)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Live arrangement, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">1.752 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.19</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Alone</td><td align="left" valign="top">41 (19.6)</td><td align="left" valign="top">21 (16.7)</td><td align="left" valign="top">20 (24.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With family members</td><td align="left" valign="top">168 (80.4)</td><td align="left" valign="top">105 (83.3)</td><td align="left" valign="top">63 (75.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Monthly income (&#xFFE5;), n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.182 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.91</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;1000</td><td align="left" valign="top">68 (32.5)</td><td align="left" valign="top">42 (33.3)</td><td align="left" valign="top">26 (31.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1000~5000</td><td align="left" valign="top">107 (51.2)</td><td align="left" valign="top">63 (50.0)</td><td align="left" valign="top">44 (53.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003E;5000</td><td align="left" valign="top">34 (16.3)</td><td align="left" valign="top">21 (16.7)</td><td align="left" valign="top">13 (15.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Medical insurance, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">3.873 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.049</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Yes</td><td align="left" valign="top">10 (4.8)</td><td align="left" valign="top">6 (4.3)</td><td align="left" valign="top">4 (1.2)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>No</td><td align="left" valign="top">199 (95.2)</td><td align="left" valign="top">117 (92.9)</td><td align="left" valign="top">82 (98.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">BMI (kg/m<sup>2</sup>), n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.515 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.77</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;18.5</td><td align="left" valign="top">24 (11.5)</td><td align="left" valign="top">15 (11.9)</td><td align="left" valign="top">9 (10.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>18.5~24</td><td align="left" valign="top">113 (54.1)</td><td align="left" valign="top">70 (55.6)</td><td align="left" valign="top">43 (51.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003E;24</td><td align="left" valign="top">72 (34.4)</td><td align="left" valign="top">41 (32.5)</td><td align="left" valign="top">31 (37.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Albumin (g/L), n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.430 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.51</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;40</td><td align="left" valign="top">138 (66.0)</td><td align="left" valign="top">81 (64.3)</td><td align="left" valign="top">57 (68.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x2265;40</td><td align="left" valign="top">71 (34.0)</td><td align="left" valign="top">45 (35.7)</td><td align="left" valign="top">26 (31.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">hsCRP<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup> (mg/L), n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.160 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.69</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x2265;6</td><td align="left" valign="top">130 (62.2)</td><td align="left" valign="top">77 (61.1)</td><td align="left" valign="top">53 (63.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;6</td><td align="left" valign="top">79 (37.8)</td><td align="left" valign="top">49 (38.9)</td><td align="left" valign="top">30 (36.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Smoking status, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">4.117 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.13</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Current smoker</td><td align="left" valign="top">14 (6.7)</td><td align="left" valign="top">5 (4.0)</td><td align="left" valign="top">9 (10.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Never smoker</td><td align="left" valign="top">172 (82.3)</td><td align="left" valign="top">108 (85.7)</td><td align="left" valign="top">64 (77.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Former smoker</td><td align="left" valign="top">23 (11.0)</td><td align="left" valign="top">13 (10.3)</td><td align="left" valign="top">10 (12.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Drinking status, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">2.194 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.33</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Current drinking</td><td align="left" valign="top">36 (17.2)</td><td align="left" valign="top">18 (14.3)</td><td align="left" valign="top">18 (21.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Never drinking</td><td align="left" valign="top">160 (76.6)</td><td align="left" valign="top">99 (78.6)</td><td align="left" valign="top">61 (73.5)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Former drinking</td><td align="left" valign="top">13 (6.2)</td><td align="left" valign="top">9 (7.1)</td><td align="left" valign="top">4 (4.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Number of teeth, median (IQR)</td><td align="left" valign="top">14 (8-18)</td><td align="left" valign="top">14 (8-18)</td><td align="left" valign="top">14 (8-18)</td><td align="left" valign="top">&#x2212;0.079<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">.94</td></tr><tr><td align="left" valign="top">Number of comorbidities, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">1.352 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.25</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x2265;2</td><td align="left" valign="top">101 (48.3)</td><td align="left" valign="top">65 (51.6)</td><td align="left" valign="top">36 (43.4)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;2</td><td align="left" valign="top">108 (51.7)</td><td align="left" valign="top">61 (48.4)</td><td align="left" valign="top">47 (56.6)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Surgery type, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.947 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.62</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Hip internal fixation</td><td align="left" valign="top">58 (27.8)</td><td align="left" valign="top">32 (25.4)</td><td align="left" valign="top">26 (31.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Total hip arthroplasty</td><td align="left" valign="top">88 (42.1)</td><td align="left" valign="top">54 (42.9)</td><td align="left" valign="top">34 (41.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Hemiarthroplasty</td><td align="left" valign="top">63 (30.1)</td><td align="left" valign="top">40 (31.7)</td><td align="left" valign="top">23 (27.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Social activity frequency, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">2.046 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.15</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x2265;3 times per week</td><td align="left" valign="top">147 (70.3)</td><td align="left" valign="top">84 (66.7)</td><td align="left" valign="top">63 (75.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;3 times per week</td><td align="left" valign="top">62 (29.7)</td><td align="left" valign="top">42 (33.3)</td><td align="left" valign="top">20 (24.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Activities of daily living, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">3.997 (3)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.26</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Complete dependence</td><td align="left" valign="top">6 (2.9)</td><td align="left" valign="top">5 (4.0)</td><td align="left" valign="top">1 (1.2)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Severe dependence</td><td align="left" valign="top">46 (22.0)</td><td align="left" valign="top">25 (19.8)</td><td align="left" valign="top">21 (25.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Moderate dependence</td><td align="left" valign="top">120 (57.4)</td><td align="left" valign="top">77 (61.1)</td><td align="left" valign="top">43 (51.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mild dependence</td><td align="left" valign="top">37 (17.7)</td><td align="left" valign="top">19 (15.1)</td><td align="left" valign="top">18 (21.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Nutritional status, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">1.565 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.46</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Malnourished</td><td align="left" valign="top">36 (17.2)</td><td align="left" valign="top">25 (19.8)</td><td align="left" valign="top">11 (13.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>At risk</td><td align="left" valign="top">64 (30.6)</td><td align="left" valign="top">38 (30.2)</td><td align="left" valign="top">26 (31.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Normal</td><td align="left" valign="top">109 (52.2)</td><td align="left" valign="top">63 (50.0)</td><td align="left" valign="top">46 (55.4)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Depressive, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.512 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.47</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Yes</td><td align="left" valign="top">19 (9.1)</td><td align="left" valign="top">10 (7.9)</td><td align="left" valign="top">9 (10.8)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>No</td><td align="left" valign="top">190 (90.9)</td><td align="left" valign="top">116 (92.1)</td><td align="left" valign="top">74 (89.2)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Sleep quality, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">0.013 (1)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.91</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Poor</td><td align="left" valign="top">74 (35.4)</td><td align="left" valign="top">45 (35.7)</td><td align="left" valign="top">29 (34.9)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Good</td><td align="left" valign="top">135 (64.6)</td><td align="left" valign="top">81 (64.3)</td><td align="left" valign="top">54 (65.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Family function, n (%)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top">2.221 (2)<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup></td><td align="left" valign="top">.33</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Severe dysfunction</td><td align="left" valign="top">62 (29.7)</td><td align="left" valign="top">40 (31.7)</td><td align="left" valign="top">22 (26.5)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Moderate dysfunction</td><td align="left" valign="top">74 (35.4)</td><td align="left" valign="top">47 (37.3)</td><td align="left" valign="top">27 (32.5)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Good family functioning</td><td align="left" valign="top">73 (34.9)</td><td align="left" valign="top">39 (31.0)</td><td align="left" valign="top">34 (41.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Social support level, median (IQR)</td><td align="left" valign="top">30 (27-34)</td><td align="left" valign="top">30 (27-33)</td><td align="left" valign="top">30 (27-34)</td><td align="left" valign="top">&#x2212;0.218<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">.83</td></tr><tr><td align="left" valign="top">Living environment score, median (IQR)</td><td align="left" valign="top">12 (11-14)</td><td align="left" valign="top">12 (11-14)</td><td align="left" valign="top">12 (11-14)</td><td align="left" valign="top">&#x2212;0.243<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">.81</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>Mann-Whitney <italic>U</italic> test.</p></fn><fn id="table1fn2"><p><sup>b</sup>Chi-square test.</p></fn><fn id="table1fn3"><p><sup>c</sup>hsCRP: high-sensitivity C-reactive protein. </p></fn></table-wrap-foot></table-wrap><p>Twenty-five candidate predictors were entered into the LASSO regression for feature selection. Using the 1 SE criterion (&#x03BB;=0.0342), 12 variables were retained, including age, gender, living arrangement, albumin, hsCRP, drinking status, teeth number, comorbidities number, ADLs, nutritional status, social support level, and living environment. The feature selection process is illustrated in <xref ref-type="fig" rid="figure1">Figure 1</xref>, with additional details provided in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>. Multicollinearity diagnostics showed that the VIF values of the retained predictors ranged from 1.07 to 1.67, with all values below 5, indicating no evidence of significant multicollinearity. Detailed results are presented in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>. These variables were subsequently incorporated into the XGBoost model to predict postoperative frailty trajectories and to explore the relative contribution of each predictor to the classification outcomes.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Feature selection using the LASSO (least absolute shrinkage and selection operator) regression model. (A) LASSO coefficient profiles of the 25 candidate predictors. (B) Selection of the optimal tuning parameter (&#x03BB;) using 10-fold cross-validation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="aging_v9i1e90705_fig01.png"/></fig></sec><sec id="s3-4"><title>Model Development and Evaluation</title><p>To optimize XGBoost performance, key hyperparameters were tuned using grid search and cross-validation to improve model generalizability and accuracy. The model achieved excellent discriminative performance, with microaverage area under the receiver operating characteristic curve of 0.98 (95% CI 0.96&#x2010;0.99) in the training set (<xref ref-type="fig" rid="figure2">Figure 2A</xref>) and 0.93 (95% CI 0.90&#x2010;0.96) in the testing set (<xref ref-type="fig" rid="figure2">Figure 2B</xref>). Additional metrics, including accuracy, <italic>F</italic><sub>1</sub>-score, sensitivity, and specificity, are presented in <xref ref-type="table" rid="table2">Table 2</xref>. Calibration curves (<xref ref-type="fig" rid="figure2">Figure 2C</xref>) closely approximated the 45&#x00B0; line, indicating good agreement between predicted and observed probabilities, with a weighted Brier score of 0.085. Decision curve analysis demonstrated consistently greater net clinical benefit across a range of threshold probabilities compared to the &#x201C;treat-all&#x201D; and &#x201C;treat-none&#x201D; strategies, supporting the model&#x2019;s potential for clinical applications (<xref ref-type="fig" rid="figure2">Figure 2D</xref>).</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>The values of the evaluation metrics for the multiclass trajectory model in the test set.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Trajectory model</td><td align="left" valign="bottom">AUC<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> (95% CI)</td><td align="left" valign="bottom">Accuracy (95% CI)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score (95% CI)</td><td align="left" valign="bottom">Sensitivity (95% CI)</td><td align="left" valign="bottom">Specificity (95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">Frailty low fluctuation</td><td align="left" valign="top">0.91 (0.84-0.96)</td><td align="left" valign="top">0.88 (0.82-0.93)</td><td align="left" valign="top">0.87 (0.81-0.92)</td><td align="left" valign="top">0.88 (0.82-0.93)</td><td align="left" valign="top">0.88 (0.82-0.93)</td></tr><tr><td align="left" valign="top">Frailty high improvement</td><td align="left" valign="top">0.86 (0.77-0.94)</td><td align="left" valign="top">0.85 (0.78-0.91)</td><td align="left" valign="top">0.83 (0.76-0.89)</td><td align="left" valign="top">0.80 (0.72-0.87)</td><td align="left" valign="top">0.85 (0.78-0.91)</td></tr><tr><td align="left" valign="top">Frailty high deterioration</td><td align="left" valign="top">0.98 (0.96-1.00)</td><td align="left" valign="top">0.96 (0.93-0.99)</td><td align="left" valign="top">0.97 (0.94-1.00)</td><td align="left" valign="top">0.95 (0.92-0.98)</td><td align="left" valign="top">0.98 (0.95-1.00)</td></tr><tr><td align="left" valign="top">Overall</td><td align="left" valign="top">0.93 (0.90-0.96)</td><td align="left" valign="top">0.89 (0.84-0.94)</td><td align="left" valign="top">0.89 (0.83-0.94)</td><td align="left" valign="top">0.87 (0.80-0.93)</td><td align="left" valign="top">0.90 (0.85-0.95)</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>AUC: area under the receiver operating characteristic curve.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Predictive performance and clinical utility of the frailty trajectory models. (A) Receiver operating characteristic (ROC) curves for the training set. (B) ROC curves for the test set. (C) Calibration plot of the Extreme Gradient Boosting (XGBoost) model. (D) Decision curve analysis (DCA) of the XGBoost model. AUC: area under the ROC curve. Dashed and dotted lines indicate the strategies of treating &#x201C;all&#x201D; or &#x201C;no&#x201D; patients, respectively.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="aging_v9i1e90705_fig02.png"/></fig></sec><sec id="s3-5"><title>Model Interpretation</title><p>The SHAP algorithm was used to visualize and interpret the contribution of each predictor to the frailty trajectory model. As shown in <xref ref-type="fig" rid="figure3">Figure 3A</xref>, the bar plot displays the mean SHAP values of the 12 selected predictors, reflecting their average impact on the model output. ADLs had the greatest predictive importance, followed by the number of comorbidities and the number of teeth. <xref ref-type="fig" rid="figure3">Figure 3B</xref> presents the SHAP value distributions for each feature, with color gradients from blue (low values) to red (high values) representing the magnitude of each predictor and its influence on individual predictions.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>SHAP (Shapley Additive Explanations)&#x2013;based interpretation of the Extreme Gradient Boosting (XGBoost) frailty trajectory model. (A) Feature importance ranked by mean absolute SHAP values. (B) The beeswarm plot showing the distribution and direction of SHAP values for each feature. (C) The SHAP waterfall plot for an illustrative patient from the low-fluctuation frailty trajectory. (D) The SHAP waterfall plot for an illustrative patient from the high-deterioration frailty trajectory. ADL: activities of daily living; hsCRP: high-sensitivity C-reactive protein; MNA-SF: Mini Nutritional Assessment&#x2013;Short Form.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="aging_v9i1e90705_fig03.png"/></fig><p>To visualize case-specific model explanations, <xref ref-type="fig" rid="figure3">Figure 3C and D</xref> presents SHAP waterfall plots for illustrative patients from the low-fluctuation and high-deterioration frailty trajectories, respectively. For these samples, the predicted model outputs were &#x2212;0.555 and &#x2212;0.043, compared with baseline values of &#x2212;0.226 and 0.037. For the low-fluctuation trajectory, favorable living environments and higher teeth counts showed strong negative contributions to the model output, offsetting the positive contributions of age and hsCRP. In contrast, the high-deterioration trajectory was primarily characterized by positive contributions from comorbidities and ADL limitations, whereas nutritional status, social support, dental health, and age contributed negatively to the model output.</p><p>A web-based frailty trajectory prediction calculator was developed and is freely available online [<xref ref-type="bibr" rid="ref32">32</xref>]. The user interface of the application is shown in <xref ref-type="fig" rid="figure4">Figure 4</xref>. This tool allows users to input key patient characteristics and obtain estimated probabilities for each frailty trajectory class, which may support frailty risk assessment and individualized management planning.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>(A) Web-based calculator for predicting the probability of frailty trajectories following hip surgery. (B) Prediction result. hsCRP: high-sensitivity C-reactive protein; MNA-SF: Mini Nutritional Assessment&#x2013;Short Form.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="aging_v9i1e90705_fig04.png"/></fig></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study identified 3 distinct postoperative frailty trajectories among older adults following hip surgery: low fluctuation, high improvement, and high deterioration. These findings highlight that frailty after hip surgery is a dynamic process with substantial interindividual variability rather than a static condition. By moving beyond traditional binary outcomes [<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref18">18</xref>], this trajectory-based approach provides a more nuanced understanding of recovery patterns that are often obscured in aggregate analyses. Furthermore, by integrating multidimensional predictors within the HEM, we developed a prediction model that demonstrated good discrimination and calibration performance. Collectively, these findings provide a basis for early risk stratification and the development of targeted, individualized intervention strategies in postoperative care.</p><p>Although the overall prevalence of frailty followed a rise-then-fall trajectory over the 6-month postoperative period, consistent with prior studies such as Huang et al [<xref ref-type="bibr" rid="ref33">33</xref>], this general trend concealed the diversity of individual recovery paths. The early peak in frailty may be attributed to systemic inflammatory responses, catabolic stress, and functional limitations induced by postoperative pain, while the subsequent decline likely reflects recovery mechanisms, including tissue healing, pain relief, and rehabilitation engagement. Trajectory modeling in this study revealed 3 distinct frailty patterns: low fluctuation, high improvement, and high deterioration. These heterogeneous trajectories suggest that despite experiencing the same surgical stressor, older patients vary substantially in their recovery due to differences in baseline physiological reserve, comorbid conditions, social support, and environmental context.</p><p>A closer examination of these subgroups further highlights their clinical relevance. The low fluctuation group, despite having a relatively low baseline frailty level, experienced a notable increase at 1 month postoperatively. This transient deterioration may indicate reduced physiological resilience. Prior studies suggest that abrupt fluctuations in frailty may signal underlying instability and predict adverse events such as falls or rehospitalization more accurately than static frailty status [<xref ref-type="bibr" rid="ref34">34</xref>]. For this group, interventions should aim to maintain functional stability by implementing prehabilitation, early mobilization, multimodal pain control, and prevention of iatrogenic complications [<xref ref-type="bibr" rid="ref12">12</xref>]. In contrast, the high-improvement group demonstrated a steady recovery trajectory, likely reflecting reversible functional impairments driven primarily by hip pathology. These patients may benefit from standard rehabilitation care without intensive resource input, allowing health care systems to prioritize those at greater risk. The high-deterioration group represents a clinically vulnerable subgroup with persistent decline, suggesting unresolved physiological or psychosocial deficits. Comprehensive geriatric assessments and tailored multidisciplinary interventions are warranted for this population, ideally guided by frameworks such as the World Health Organization (WHO)&#x2019;s ICOPE (Integrated Care for Older People), which emphasizes multidomain support targeting mobility, cognition, nutrition, sensory function, and social engagement [<xref ref-type="bibr" rid="ref35">35</xref>,<xref ref-type="bibr" rid="ref36">36</xref>].</p><p>Based on the identified frailty trajectories, we developed a predictive model to support early risk identification and targeted intervention. Guided by the HEM, the model incorporated variables spanning individual characteristics, interpersonal networks, and living environment. Although some key predictors (eg, ADLs, comorbidity burden, and nutritional status) are conceptually related to domains of the FI, the multicollinearity analysis did not indicate significant statistical overlap among the predictors. This suggests that, despite conceptual relatedness, these variables do not represent redundant information from a statistical perspective. Nevertheless, these factors may partly reflect baseline vulnerability. Therefore, the model should not be interpreted as predicting frailty trajectory class membership entirely independent of baseline frailty severity. Instead, it is more appropriately viewed as an early risk stratification tool that integrates multidimensional information. Consistent with this interpretation, the SHAP analysis identified ADLs, number of comorbidities, number of teeth, age, and living environment as the top contributors to the model predictions.</p><p>In line with previous research [<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref37">37</xref>], this study confirmed that impaired ADLs and a greater number of comorbidities were the strongest predictors of frailty deterioration. These variables represent fundamental aspects of functional dependence and chronic disease burden. Declining ADLs reflect a depletion of multisystem physiological reserves and may initiate a downward cycle in which the reduced function limits physical activity, weakens muscle strength, and accelerates frailty progression [<xref ref-type="bibr" rid="ref37">37</xref>]. Similarly, multimorbidity contributes through persistent low-grade inflammation, polypharmacy, and cumulative organ damage, ultimately undermining mobility and physiological stability [<xref ref-type="bibr" rid="ref38">38</xref>]. For individuals with impaired ADLs and multiple comorbidities, the early implementation of interventions such as individualized rehabilitation, optimized management of chronic conditions, and comprehensive medication review may be essential to interrupt this adverse trajectory [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. In addition, age and teeth number were identified as important predictors. While age reflects irreversible biological decline, tooth loss serves as a modifiable marker of oral frailty. Reduced dentition in older adults impairs chewing function and nutritional intake, which in turn promotes sarcopenia and accelerates frailty [<xref ref-type="bibr" rid="ref41">41</xref>]. These findings highlight the importance of incorporating oral health screening into perioperative management, along with timely interventions such as denture repair, chewing function training, and personalized nutrition support [<xref ref-type="bibr" rid="ref14">14</xref>].</p><p>Among the identified predictors, living environment was the only environmental factor ranked among the top 5, highlighting its important role in frailty progression. Although the LEQ was a self-developed instrument, its core domains are conceptually aligned with the WHO age-friendly environment framework [<xref ref-type="bibr" rid="ref42">42</xref>]. Previous studies have shown that environmental factors such as housing safety, community resources, social participation, and perceived environmental support are closely associated with frailty and its progression in older adults [<xref ref-type="bibr" rid="ref43">43</xref>-<xref ref-type="bibr" rid="ref45">45</xref>]. Notably, our findings demonstrated that living environment independently predicted frailty trajectories beyond individual-level characteristics. This finding is consistent with recent evidence showing that more positive perceptions of community environments are associated with lower frailty risk [<xref ref-type="bibr" rid="ref46">46</xref>], as well as the findings of Mak et al [<xref ref-type="bibr" rid="ref47">47</xref>], who reported sustained effects of environmental factors on frailty progression. For older adults undergoing hip surgery, environmental barriers after discharge may limit rehabilitation adherence and increase the risks of falls and readmission, thereby accelerating frailty progression. These findings emphasize the need to extend clinical care beyond hospital settings by incorporating environmental risk assessments into discharge planning and transitional care. Practical strategies may include predischarge home safety evaluations, caregiver education, and community linkage interventions to foster a more supportive recovery environment and reduce frailty-related risks [<xref ref-type="bibr" rid="ref48">48</xref>].</p><p>In addition to the core predictors, the model identified several supplementary variables, including living arrangement, gender, nutritional status, drinking behavior, social support, albumin, and hsCRP. Although these variables contributed less individually, they enriched the understanding of frailty trajectories from physiological, behavioral, and demographic perspectives. These results indicate the importance of combining model-based risk identification with comprehensive biopsychosocial assessments to detect individualized frailty risk profiles and guide targeted interventions. Building on this, implementing a Fracture Liaison Service (FLS) may offer an effective integrative care pathway [<xref ref-type="bibr" rid="ref49">49</xref>]. Through its structured components of assessment, education, intervention, and follow-up, Fracture Liaison Service enables continuous, coordinated management for older adults with hip fractures, supporting the transition from early risk prediction to precise clinical action.</p></sec><sec id="s4-2"><title>Limitations</title><p>This study has several limitations. First, it was a prospective single-center study with a relatively small sample size, focusing exclusively on older patients undergoing elective hip surgery under general anesthesia, which may limit the generalizability of the findings to broader populations such as individuals receiving emergency surgery, regional anesthesia, or in other age groups. In addition, the relatively limited sample size for multiclass machine-learning modeling may increase the risk of overfitting and unstable feature selection despite the use of LASSO-based dimensionality reduction and internal cross-validation. Therefore, both the current prediction model and the associated web-based calculator should be considered exploratory and proof-of-concept tools rather than clinically deployable systems. Prospective multicenter external validation, calibration assessment, and health-economic evaluation are warranted before routine clinical integration.</p><p>Second, a complete case analysis was used to handle missing data. Although the Little MCAR test suggested a completely-at-random mechanism and no baseline differences were observed between retained and excluded participants, departures from this assumption cannot be ruled out. If missingness were related to the severity of frailty or the presence of comorbidities, this could introduce bias and potentially affect trajectory classification and model performance. Therefore, the findings should be interpreted with caution. Future studies may consider more robust approaches for handling missing data, where appropriate, to further assess the robustness of the results.</p><p>Third, although the model incorporated multilevel predictors guided by the socioecological framework, some important but difficult-to-measure confounders, such as genetic predisposition or deeper physiological reserves, may have been missed. Future studies could leverage technologies such as wearable devices and multiomics approaches to improve measurement precision and expand variable inclusion. Finally, the 6-month follow-up period may capture only early or acute frailty changes and fail to reflect long-term trajectories. Longer follow-up and analytical methods such as competing risk models may help differentiate between temporary functional decline and persistent frailty, thus identifying critical intervention windows.</p></sec><sec id="s4-3"><title>Conclusion</title><p>This study developed and internally validated a proof-of-concept machine-learning model to predict frailty trajectories within 6 months after hip surgery in older adults. Grounded in the HEM, the model integrated multidimensional predictors and showed good performance in discrimination, calibration, and clinical utility. Key contributing factors included functional status, comorbidity burden, oral health, age, and living environment. The model was translated into a web-based tool to support early identification and personalized frailty management; it currently serves as a foundational step. Comprehensive external validation across diverse clinical settings is strictly required before this tool can be deployed in routine clinical practice. These findings provide methodological and practical support for shifting perioperative care toward a proactive and individualized approach.</p></sec></sec></body><back><ack><p>The authors thank Kaiqing Zhou (Shanghai Maritime University) for assistance with the data analysis and valuable discussion. They would like to express their gratitude for the funding provided, which enabled the completion of this study. During the preparation of this manuscript, generative artificial intelligence tools were used solely for English language editing and text polishing. The authors have thoroughly reviewed and edited the content and remain fully responsible for the accuracy, originality, and integrity of the final manuscript.</p></ack><notes><sec><title>Funding</title><p>This work was supported by grants from the Department of Zhejiang Health Science and Technology Project Science and Technology (grant number 2025KY081).</p></sec><sec><title>Data Availability</title><p>The datasets generated and/or analyzed during this study are available from the corresponding author upon reasonable request. To ensure methodological transparency and reproducibility in compliance with the TRIPOD+AI (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2014;Artificial Intelligence) guidelines, the machine-learning pipelines (LASSO [least absolute shrinkage and selection operator] and Extreme Gradient Boosting&#x2013;SHAP [Shapley Additive Explanations]) are publicly available on GitHub [<xref ref-type="bibr" rid="ref50">50</xref>].</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization: JH</p><p>Data curation: JH, QF, HG</p><p>Formal analysis: JH, HG</p><p>Funding acquisition: JH</p><p>Investigation: JH, KG, JC</p><p>Methodology: QF, HG</p><p>Project administration: JH</p><p>Visualization: JH, HG, HS, JY</p><p>Writing &#x2013; original draft: JH</p><p>Writing &#x2013; review and editing: HS, YJ, KG, JC</p><p>All authors read, reviewed, and approved the final manuscript.</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">ADL</term><def><p>activity of daily living</p></def></def-item><def-item><term id="abb2">APGAR</term><def><p>Adaptability, Partnership, Growth, Affection, Resolve</p></def></def-item><def-item><term id="abb3">AvePP</term><def><p>average posterior probability</p></def></def-item><def-item><term id="abb4">BIC</term><def><p>Bayesian Information Criterion</p></def></def-item><def-item><term id="abb5">FI</term><def><p>Frailty Index</p></def></def-item><def-item><term id="abb6">HEM</term><def><p>Health Ecology Model</p></def></def-item><def-item><term id="abb7">ICOPE</term><def><p>Integrated Care for Older People</p></def></def-item><def-item><term id="abb8">LASSO</term><def><p>least absolute shrinkage and selection operator</p></def></def-item><def-item><term id="abb9">LEQ</term><def><p>Living Environment Questionnaire</p></def></def-item><def-item><term id="abb10">MCAR</term><def><p>missing completely at random</p></def></def-item><def-item><term id="abb11">OCC</term><def><p>odds of correct classification</p></def></def-item><def-item><term id="abb12">SHAP</term><def><p>Shapley Additive Explanations</p></def></def-item><def-item><term id="abb13">SMOTE</term><def><p>Synthetic Minority Oversampling Technique</p></def></def-item><def-item><term id="abb14">TRIPOD+AI</term><def><p>Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2014;Artificial Intelligence</p></def></def-item><def-item><term id="abb15">WHO</term><def><p>World Health Organization</p></def></def-item><def-item><term id="abb16">XGBoost</term><def><p>Extreme Gradient Boosting</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ridha</surname><given-names>M</given-names> </name><name name-style="western"><surname>Al-Jabri</surname><given-names>T</given-names> </name><name name-style="western"><surname>Stelzhammer</surname><given-names>T</given-names> </name><name name-style="western"><surname>Shah</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Oragui</surname><given-names>E</given-names> </name><name name-style="western"><surname>Giannoudis</surname><given-names>PV</given-names> </name></person-group><article-title>Osteosynthesis, hemiarthroplasty, total hip arthroplasty in hip fractures: all I need to know</article-title><source>Injury</source><year>2024</year><month>03</month><volume>55</volume><issue>3</issue><fpage>111377</fpage><pub-id pub-id-type="doi">10.1016/j.injury.2024.111377</pub-id><pub-id pub-id-type="medline">38324951</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ong</surname><given-names>T</given-names> </name><name name-style="western"><surname>Vindlacheruvu</surname><given-names>M</given-names> </name></person-group><article-title>A commentary update on NICE CG124. Hip fracture:management (2023)</article-title><source>Age Ageing</source><year>2023</year><month>06</month><day>1</day><volume>52</volume><issue>6</issue><fpage>afad110</fpage><pub-id pub-id-type="doi">10.1093/ageing/afad110</pub-id><pub-id pub-id-type="medline">37389557</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Chen</surname><given-names>CL</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>CM</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>CY</given-names> </name><etal/></person-group><article-title>Frailty is associated with an increased risk of major adverse outcomes in elderly patients following surgical treatment of hip fracture</article-title><source>Sci Rep</source><year>2019</year><month>12</month><day>13</day><volume>9</volume><issue>1</issue><fpage>19135</fpage><pub-id pub-id-type="doi">10.1038/s41598-019-55459-2</pub-id><pub-id pub-id-type="medline">31836751</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dent</surname><given-names>E</given-names> </name><name name-style="western"><surname>Hanlon</surname><given-names>P</given-names> </name><name name-style="western"><surname>Sim</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Recent developments in frailty identification, management, risk factors and prevention: a narrative review of leading journals in geriatrics and gerontology</article-title><source>Ageing Res Rev</source><year>2023</year><month>11</month><volume>91</volume><fpage>102082</fpage><pub-id pub-id-type="doi">10.1016/j.arr.2023.102082</pub-id><pub-id pub-id-type="medline">37797723</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>SK</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>QJ</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>P</given-names> </name><etal/></person-group><article-title>The impact of frailty on clinical outcomes of older patients undergoing enhanced recovery after lumbar fusion surgery: a prospective cohort study</article-title><source>Int J Surg</source><year>2024</year><month>08</month><day>1</day><volume>110</volume><issue>8</issue><fpage>4785</fpage><lpage>4795</lpage><pub-id pub-id-type="doi">10.1097/JS9.0000000000001594</pub-id><pub-id pub-id-type="medline">38729123</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Eslami</surname><given-names>MH</given-names> </name><name name-style="western"><surname>Saadeddin</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Rybin</surname><given-names>DV</given-names> </name><name name-style="western"><surname>Doros</surname><given-names>G</given-names> </name><name name-style="western"><surname>Siracuse</surname><given-names>JJ</given-names> </name><name name-style="western"><surname>Farber</surname><given-names>A</given-names> </name></person-group><article-title>Association of frailty index with perioperative mortality and in-hospital morbidity after elective lower extremity bypass</article-title><source>J Vasc Surg</source><year>2019</year><month>03</month><volume>69</volume><issue>3</issue><fpage>863</fpage><lpage>874</lpage><pub-id pub-id-type="doi">10.1016/j.jvs.2018.07.050</pub-id><pub-id pub-id-type="medline">30527215</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lunca</surname><given-names>S</given-names> </name><name name-style="western"><surname>Morarasu</surname><given-names>S</given-names> </name><name name-style="western"><surname>Rouet</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Frailty increases morbidity and mortality in patients undergoing oncological liver resections: a systematic review and meta-analysis</article-title><source>Ann Surg Oncol</source><year>2024</year><month>10</month><volume>31</volume><issue>10</issue><fpage>6514</fpage><lpage>6525</lpage><pub-id pub-id-type="doi">10.1245/s10434-024-15571-8</pub-id><pub-id pub-id-type="medline">38856830</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Song</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Huo</surname><given-names>H</given-names> </name><name name-style="western"><surname>Zhao</surname><given-names>P</given-names> </name></person-group><article-title>The impact of frailty on adverse outcomes in geriatric hip fracture patients: a systematic review and meta-analysis</article-title><source>Front Public Health</source><year>2022</year><volume>10</volume><fpage>890652</fpage><pub-id pub-id-type="doi">10.3389/fpubh.2022.890652</pub-id><pub-id pub-id-type="medline">35844855</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Partridge</surname><given-names>JSL</given-names> </name><name name-style="western"><surname>Ryan</surname><given-names>J</given-names> </name><name name-style="western"><surname>Dhesi</surname><given-names>JK</given-names> </name><collab>CPOC-BGS perioperative frailty guideline group</collab></person-group><article-title>New guidelines for the perioperative care of people living with frailty undergoing elective and emergency surgery-a commentary</article-title><source>Age Ageing</source><year>2022</year><month>11</month><day>2</day><volume>51</volume><issue>11</issue><fpage>afac237</fpage><pub-id pub-id-type="doi">10.1093/ageing/afac237</pub-id><pub-id pub-id-type="medline">36436009</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="thesis"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>Q</given-names> </name></person-group><article-title>Construction of a predictive model for new-onset frailty in elderly patients after hip fracture surgery [Thesis in Chinese]</article-title><year>2023</year><publisher-name>Shanxi Medical University</publisher-name></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wong</surname><given-names>BLL</given-names> </name><name name-style="western"><surname>Chan</surname><given-names>YH</given-names> </name><name name-style="western"><surname>O&#x2019;Neill</surname><given-names>GK</given-names> </name><name name-style="western"><surname>Murphy</surname><given-names>D</given-names> </name><name name-style="western"><surname>Merchant</surname><given-names>RA</given-names> </name></person-group><article-title>Frailty, length of stay and cost in hip fracture patients</article-title><source>Osteoporos Int</source><year>2023</year><month>01</month><volume>34</volume><issue>1</issue><fpage>59</fpage><lpage>68</lpage><pub-id pub-id-type="doi">10.1007/s00198-022-06553-1</pub-id><pub-id pub-id-type="medline">36197493</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Andaloro</surname><given-names>S</given-names> </name><name name-style="western"><surname>Cacciatore</surname><given-names>S</given-names> </name><name name-style="western"><surname>Risoli</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Hip fracture as a systemic disease in older adults: a narrative review on multisystem implications and management</article-title><source>Med Sci (Basel)</source><year>2025</year><month>07</month><day>11</day><volume>13</volume><issue>3</issue><fpage>89</fpage><pub-id pub-id-type="doi">10.3390/medsci13030089</pub-id><pub-id pub-id-type="medline">40700118</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pan</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Li</surname><given-names>F</given-names> </name></person-group><article-title>Analysis of factors associated with postoperative frailty in elderly patients with femoral neck fracture [Article in Chinese]</article-title><source>Pract Geriatr</source><year>2020</year><volume>34</volume><issue>5</issue><fpage>447</fpage><lpage>450</lpage><pub-id pub-id-type="doi">10.3969/j.issn.1003-9198.2020.05.009</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Jia</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Liang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Huo</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Expert consensus on perioperative frailty management for elderly hip fracture patients [Article in Chinese]</article-title><source>J Orthop Clin Res</source><year>2025</year><volume>10</volume><issue>2</issue><fpage>65</fpage><lpage>71</lpage><pub-id pub-id-type="doi">10.19548/j.2096-269x.2025.02.001</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Miao</surname><given-names>X</given-names> </name><name name-style="western"><surname>Guo</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Exploration of frailty trajectories and their associations with health outcomes in older gastric cancer survivors undergoing radical gastrectomy: a prospective longitudinal observation study</article-title><source>Eur J Surg Oncol</source><year>2024</year><month>02</month><volume>50</volume><issue>2</issue><fpage>107934</fpage><pub-id pub-id-type="doi">10.1016/j.ejso.2023.107934</pub-id><pub-id pub-id-type="medline">38160495</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dent</surname><given-names>E</given-names> </name><name name-style="western"><surname>Martin</surname><given-names>FC</given-names> </name><name name-style="western"><surname>Bergman</surname><given-names>H</given-names> </name><name name-style="western"><surname>Woo</surname><given-names>J</given-names> </name><name name-style="western"><surname>Romero-Ortuno</surname><given-names>R</given-names> </name><name name-style="western"><surname>Walston</surname><given-names>JD</given-names> </name></person-group><article-title>Management of frailty: opportunities, challenges, and future directions</article-title><source>Lancet</source><year>2019</year><month>10</month><day>12</day><volume>394</volume><issue>10206</issue><fpage>1376</fpage><lpage>1386</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(19)31785-4</pub-id><pub-id pub-id-type="medline">31609229</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gou</surname><given-names>D</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>H</given-names> </name><name name-style="western"><surname>Min</surname><given-names>C</given-names> </name><etal/></person-group><article-title>An interactive dynamic online nomogram for predicting the frailty trajectories among older people with chronic heart failure</article-title><source>J Affect Disord</source><year>2025</year><month>08</month><day>1</day><volume>382</volume><fpage>201</fpage><lpage>209</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2025.04.033</pub-id><pub-id pub-id-type="medline">40246084</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Miao</surname><given-names>X</given-names> </name><name name-style="western"><surname>Guo</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Ding</surname><given-names>L</given-names> </name><etal/></person-group><article-title>A dynamic online nomogram for predicting the heterogeneity trajectories of frailty among elderly gastric cancer survivors</article-title><source>Int J Nurs Stud</source><year>2024</year><month>05</month><volume>153</volume><fpage>104716</fpage><pub-id pub-id-type="doi">10.1016/j.ijnurstu.2024.104716</pub-id><pub-id pub-id-type="medline">38412776</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>McLeroy</surname><given-names>KR</given-names> </name><name name-style="western"><surname>Bibeau</surname><given-names>D</given-names> </name><name name-style="western"><surname>Steckler</surname><given-names>A</given-names> </name><name name-style="western"><surname>Glanz</surname><given-names>K</given-names> </name></person-group><article-title>An ecological perspective on health promotion programs</article-title><source>Health Educ Q</source><year>1988</year><volume>15</volume><issue>4</issue><fpage>351</fpage><lpage>377</lpage><pub-id pub-id-type="doi">10.1177/109019818801500401</pub-id><pub-id pub-id-type="medline">3068205</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>C</given-names> </name><name name-style="western"><surname>Sirikul</surname><given-names>W</given-names> </name><name name-style="western"><surname>Buawangpong</surname><given-names>N</given-names> </name></person-group><article-title>Social frailty in community-dwelling older adults: a scoping review</article-title><source>BMC Geriatr</source><year>2025</year><month>05</month><day>13</day><volume>25</volume><issue>1</issue><fpage>329</fpage><pub-id pub-id-type="doi">10.1186/s12877-025-05971-0</pub-id><pub-id pub-id-type="medline">40360975</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Takefuji</surname><given-names>Y</given-names> </name></person-group><article-title>Beyond XGBoost and SHAP: unveiling true feature importance</article-title><source>J Hazard Mater</source><year>2025</year><month>05</month><day>5</day><volume>488</volume><fpage>137382</fpage><pub-id pub-id-type="doi">10.1016/j.jhazmat.2025.137382</pub-id><pub-id pub-id-type="medline">39879771</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Collins</surname><given-names>GS</given-names> </name><name name-style="western"><surname>Moons</surname><given-names>KGM</given-names> </name><name name-style="western"><surname>Dhiman</surname><given-names>P</given-names> </name><etal/></person-group><article-title>TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods</article-title><source>BMJ</source><year>2024</year><month>04</month><day>16</day><volume>385</volume><fpage>e078378</fpage><pub-id pub-id-type="doi">10.1136/bmj-2023-078378</pub-id><pub-id pub-id-type="medline">38626948</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Riley</surname><given-names>RD</given-names> </name><name name-style="western"><surname>Ensor</surname><given-names>J</given-names> </name><name name-style="western"><surname>Snell</surname><given-names>KIE</given-names> </name><etal/></person-group><article-title>Calculating the sample size required for developing a clinical prediction model</article-title><source>BMJ</source><year>2020</year><month>03</month><day>18</day><volume>368</volume><fpage>m441</fpage><pub-id pub-id-type="doi">10.1136/bmj.m441</pub-id><pub-id pub-id-type="medline">32188600</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rockwood</surname><given-names>K</given-names> </name><name name-style="western"><surname>Mitnitski</surname><given-names>A</given-names> </name></person-group><article-title>Frailty in relation to the accumulation of deficits</article-title><source>J Gerontol A Biol Sci Med Sci</source><year>2007</year><month>07</month><volume>62</volume><issue>7</issue><fpage>722</fpage><lpage>727</lpage><pub-id pub-id-type="doi">10.1093/gerona/62.7.722</pub-id><pub-id pub-id-type="medline">17634318</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hoogendijk</surname><given-names>EO</given-names> </name><name name-style="western"><surname>Afilalo</surname><given-names>J</given-names> </name><name name-style="western"><surname>Ensrud</surname><given-names>KE</given-names> </name><name name-style="western"><surname>Kowal</surname><given-names>P</given-names> </name><name name-style="western"><surname>Onder</surname><given-names>G</given-names> </name><name name-style="western"><surname>Fried</surname><given-names>LP</given-names> </name></person-group><article-title>Frailty: implications for clinical practice and public health</article-title><source>Lancet</source><year>2019</year><month>10</month><volume>394</volume><issue>10206</issue><fpage>1365</fpage><lpage>1375</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(19)31786-6</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mahoney</surname><given-names>FI</given-names> </name><name name-style="western"><surname>Barthel</surname><given-names>DW</given-names> </name></person-group><article-title>Functional evaluation: the Barthel Index</article-title><source>Md State Med J</source><year>1965</year><month>02</month><volume>14</volume><fpage>61</fpage><lpage>65</lpage><pub-id pub-id-type="medline">14258950</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Soysal</surname><given-names>P</given-names> </name><name name-style="western"><surname>Isik</surname><given-names>AT</given-names> </name><name name-style="western"><surname>Arik</surname><given-names>F</given-names> </name><name name-style="western"><surname>Kalan</surname><given-names>U</given-names> </name><name name-style="western"><surname>Eyvaz</surname><given-names>A</given-names> </name><name name-style="western"><surname>Veronese</surname><given-names>N</given-names> </name></person-group><article-title>Validity of the Mini-Nutritional Assessment Scale for evaluating frailty status in older adults</article-title><source>J Am Med Dir Assoc</source><year>2019</year><month>02</month><volume>20</volume><issue>2</issue><fpage>183</fpage><lpage>187</lpage><pub-id pub-id-type="doi">10.1016/j.jamda.2018.07.016</pub-id><pub-id pub-id-type="medline">30262439</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Smilkstein</surname><given-names>G</given-names> </name><name name-style="western"><surname>Ashworth</surname><given-names>C</given-names> </name><name name-style="western"><surname>Montano</surname><given-names>D</given-names> </name></person-group><article-title>Validity and reliability of the family APGAR as a test of family function</article-title><source>J Fam Pract</source><year>1982</year><month>08</month><volume>15</volume><issue>2</issue><fpage>303</fpage><lpage>311</lpage><pub-id pub-id-type="medline">7097168</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nagin</surname><given-names>DS</given-names> </name><name name-style="western"><surname>Odgers</surname><given-names>CL</given-names> </name></person-group><article-title>Group-based trajectory modeling in clinical research</article-title><source>Annu Rev Clin Psychol</source><year>2010</year><volume>6</volume><issue>1</issue><fpage>109</fpage><lpage>138</lpage><pub-id pub-id-type="doi">10.1146/annurev.clinpsy.121208.131413</pub-id><pub-id pub-id-type="medline">20192788</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Akinwande</surname><given-names>MO</given-names> </name><name name-style="western"><surname>Dikko</surname><given-names>HG</given-names> </name><name name-style="western"><surname>Samson</surname><given-names>A</given-names> </name></person-group><article-title>Variance inflation factor: as a condition for the inclusion of suppressor variable(s) in regression analysis</article-title><source>Open J Stat</source><year>2015</year><volume>05</volume><fpage>754</fpage><lpage>767</lpage><pub-id pub-id-type="doi">10.4236/ojs.2015.57075</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="web"><source>shinyapps.io</source><access-date>2026-06-04</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.shinyapps.io/">https://www.shinyapps.io/</ext-link></comment></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="web"><source>Frailty Trajectory Prediction Calculator</source><access-date>2026-06-05</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://huangjingying-hub.github.io/Frailty-Calculator/">https://huangjingying-hub.github.io/Frailty-Calculator/</ext-link></comment></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>K</given-names> </name><name name-style="western"><surname>Ding</surname><given-names>S</given-names> </name><name name-style="western"><surname>Zhou</surname><given-names>H</given-names> </name><name name-style="western"><surname>Cai</surname><given-names>Y</given-names> </name></person-group><article-title>Study on frailty trajectories and influencing factors in lung transplant patients [Article in Chinese]</article-title><source>Chin J Nurs</source><year>2023</year><volume>58</volume><issue>9</issue><fpage>1088</fpage><lpage>1095</lpage><pub-id pub-id-type="doi">10.55111/j.issn2709-1961.202304134</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stow</surname><given-names>D</given-names> </name><name name-style="western"><surname>Matthews</surname><given-names>FE</given-names> </name><name name-style="western"><surname>Hanratty</surname><given-names>B</given-names> </name></person-group><article-title>Frailty trajectories to identify end of life: a longitudinal population-based study</article-title><source>BMC Med</source><year>2018</year><month>09</month><day>21</day><volume>16</volume><issue>1</issue><fpage>171</fpage><pub-id pub-id-type="doi">10.1186/s12916-018-1148-x</pub-id><pub-id pub-id-type="medline">30236103</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Duchesneau</surname><given-names>ED</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>DH</given-names> </name><name name-style="western"><surname>St&#x00FC;rmer</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Frailty trajectories following adjuvant chemotherapy and mortality in older women with breast cancer</article-title><source>JAMA Netw Open</source><year>2025</year><month>03</month><day>3</day><volume>8</volume><issue>3</issue><fpage>e250614</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2025.0614</pub-id><pub-id pub-id-type="medline">40072432</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="report"><article-title>Integrated Care for Older People (ICOPE): guidance for person-centred assessment and pathways in primary care, second edition</article-title><year>2024</year><access-date>2026-06-03</access-date><publisher-name>World Health Organization</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://iris.who.int/server/api/core/bitstreams/7516b015-e205-43d1-883f-01f2c31af261/content">https://iris.who.int/server/api/core/bitstreams/7516b015-e205-43d1-883f-01f2c31af261/content</ext-link></comment></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Du</surname><given-names>J</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Zeng</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Frailty trajectories and determinants in Chinese older adults: a longitudinal study</article-title><source>Geriatr Nurs</source><year>2024</year><volume>59</volume><fpage>131</fpage><lpage>138</lpage><pub-id pub-id-type="doi">10.1016/j.gerinurse.2024.06.015</pub-id><pub-id pub-id-type="medline">39002503</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Toh</surname><given-names>JJY</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>H</given-names> </name><name name-style="western"><surname>Soh</surname><given-names>YY</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>XV</given-names> </name></person-group><article-title>Prevalence and health outcomes of polypharmacy and hyperpolypharmacy in older adults with frailty: a systematic review and meta-analysis</article-title><source>Ageing Res Rev</source><year>2023</year><month>01</month><volume>83</volume><fpage>101811</fpage><pub-id pub-id-type="doi">10.1016/j.arr.2022.101811</pub-id><pub-id pub-id-type="medline">36455791</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Izquierdo</surname><given-names>M</given-names> </name><name name-style="western"><surname>Ram&#x00ED;rez-V&#x00E9;lez</surname><given-names>R</given-names> </name><name name-style="western"><surname>Fiatarone Singh</surname><given-names>MA</given-names> </name></person-group><article-title>Integrating exercise and medication management in geriatric care: a holistic strategy to enhance health outcomes and reduce polypharmacy</article-title><source>Lancet Healthy Longev</source><year>2025</year><month>09</month><volume>6</volume><issue>9</issue><fpage>100763</fpage><pub-id pub-id-type="doi">10.1016/j.lanhl.2025.100763</pub-id><pub-id pub-id-type="medline">41015054</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ruiz</surname><given-names>JG</given-names> </name><name name-style="western"><surname>Dent</surname><given-names>E</given-names> </name><name name-style="western"><surname>Morley</surname><given-names>JE</given-names> </name><etal/></person-group><article-title>Screening for and managing the person with frailty in primary care: ICFSR consensus guidelines</article-title><source>J Nutr Health Aging</source><year>2020</year><volume>24</volume><issue>9</issue><fpage>920</fpage><lpage>927</lpage><pub-id pub-id-type="doi">10.1007/s12603-020-1492-3</pub-id><pub-id pub-id-type="medline">33155616</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dibello</surname><given-names>V</given-names> </name><name name-style="western"><surname>Zupo</surname><given-names>R</given-names> </name><name name-style="western"><surname>Sardone</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Oral frailty and its determinants in older age: a systematic review</article-title><source>Lancet Healthy Longev</source><year>2021</year><month>08</month><volume>2</volume><issue>8</issue><fpage>e507</fpage><lpage>e520</lpage><pub-id pub-id-type="doi">10.1016/S2666-7568(21)00143-4</pub-id><pub-id pub-id-type="medline">36098000</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="report"><article-title>Age-friendly environments in Europe: indicators, monitoring and assessments</article-title><year>2018</year><access-date>2026-05-07</access-date><publisher-name>World Health Organization, Regional Office for Europe</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://iris.who.int/server/api/core/bitstreams/cf9f2ba0-85f5-45ed-a786-fe6b7e97f09f/content">https://iris.who.int/server/api/core/bitstreams/cf9f2ba0-85f5-45ed-a786-fe6b7e97f09f/content</ext-link></comment></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Clegg</surname><given-names>A</given-names> </name><name name-style="western"><surname>Young</surname><given-names>J</given-names> </name><name name-style="western"><surname>Iliffe</surname><given-names>S</given-names> </name><name name-style="western"><surname>Rikkert</surname><given-names>MO</given-names> </name><name name-style="western"><surname>Rockwood</surname><given-names>K</given-names> </name></person-group><article-title>Frailty in elderly people</article-title><source>Lancet</source><year>2013</year><month>03</month><day>2</day><volume>381</volume><issue>9868</issue><fpage>752</fpage><lpage>762</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(12)62167-9</pub-id><pub-id pub-id-type="medline">23395245</pub-id></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mori</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Tsuji</surname><given-names>T</given-names> </name><name name-style="western"><surname>Watanabe</surname><given-names>R</given-names> </name><name name-style="western"><surname>Hanazato</surname><given-names>M</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>YR</given-names> </name><name name-style="western"><surname>Kondo</surname><given-names>K</given-names> </name></person-group><article-title>Built environments and frailty in older adults: the JAGES longitudinal study using mediation analysis</article-title><source>J Am Med Dir Assoc</source><year>2023</year><month>11</month><volume>24</volume><issue>11</issue><fpage>1677</fpage><lpage>1682</lpage><pub-id pub-id-type="doi">10.1016/j.jamda.2023.06.023</pub-id><pub-id pub-id-type="medline">37541649</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gale</surname><given-names>CR</given-names> </name><name name-style="western"><surname>Westbury</surname><given-names>L</given-names> </name><name name-style="western"><surname>Cooper</surname><given-names>CJA</given-names> </name></person-group><article-title>Social isolation and loneliness as risk factors for the progression of frailty: the English longitudinal study of ageing</article-title><source>Age Ageing</source><year>2018</year><month>05</month><day>1</day><volume>47</volume><issue>3</issue><fpage>392</fpage><lpage>397</lpage><pub-id pub-id-type="doi">10.1093/ageing/afx188</pub-id><pub-id pub-id-type="medline">29309502</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ye</surname><given-names>B</given-names> </name><name name-style="western"><surname>Li</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>L</given-names> </name><name name-style="western"><surname>Gong</surname><given-names>K</given-names> </name><name name-style="western"><surname>Bao</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Gao</surname><given-names>J</given-names> </name></person-group><article-title>Perceived environmental age friendliness and frailty among community-dwelling older adults</article-title><source>JAMA Netw Open</source><year>2026</year><month>02</month><day>2</day><volume>9</volume><issue>2</issue><fpage>e2558619</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2025.58619</pub-id><pub-id pub-id-type="medline">41670998</pub-id></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mak</surname><given-names>JKL</given-names> </name><name name-style="western"><surname>Kuja-Halkola</surname><given-names>R</given-names> </name><name name-style="western"><surname>Bai</surname><given-names>G</given-names> </name><etal/></person-group><article-title>Genetic and environmental influences on longitudinal frailty trajectories from adulthood into old age</article-title><source>J Gerontol A Biol Sci Med Sci</source><year>2023</year><month>02</month><day>24</day><volume>78</volume><issue>2</issue><fpage>333</fpage><lpage>341</lpage><pub-id pub-id-type="doi">10.1093/gerona/glac197</pub-id><pub-id pub-id-type="medline">36124734</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>H</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>B</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>L</given-names> </name><name name-style="western"><surname>Zhao</surname><given-names>X</given-names> </name></person-group><article-title>Links between life-course SES and frailty trajectory moderated by community environment resources: person-environment fit perspective</article-title><source>Adv Life Course Res</source><year>2023</year><month>12</month><volume>58</volume><fpage>100580</fpage><pub-id pub-id-type="doi">10.1016/j.alcr.2023.100580</pub-id><pub-id pub-id-type="medline">38054872</pub-id></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Patel</surname><given-names>S</given-names> </name><name name-style="western"><surname>Daniels</surname><given-names>NF</given-names> </name><name name-style="western"><surname>Lim</surname><given-names>JA</given-names> </name><name name-style="western"><surname>Zhou</surname><given-names>AK</given-names> </name><name name-style="western"><surname>Thahir</surname><given-names>A</given-names> </name><name name-style="western"><surname>Krkovic</surname><given-names>M</given-names> </name></person-group><article-title>The importance of fracture liaison services to the healthcare system: a review</article-title><source>Curr Rheumatol Rev</source><year>2023</year><volume>19</volume><issue>1</issue><fpage>36</fpage><lpage>41</lpage><pub-id pub-id-type="doi">10.2174/1573397118666220510162127</pub-id><pub-id pub-id-type="medline">35538826</pub-id></nlm-citation></ref><ref id="ref50"><label>50</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>J</given-names> </name></person-group><article-title>Frailty-trajectory-prediction repository</article-title><source>GitHub</source><access-date>2026-06-11</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://github.com/HuangJingying-hub/Frailty-Trajectory-Prediction">https://github.com/HuangJingying-hub/Frailty-Trajectory-Prediction</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Variables and measurements.</p><media xlink:href="aging_v9i1e90705_app1.docx" xlink:title="DOCX File, 26 KB"/></supplementary-material><supplementary-material id="app2"><label>Multimedia Appendix 2</label><p>Participant characteristics and missing data.</p><media xlink:href="aging_v9i1e90705_app2.docx" xlink:title="DOCX File, 66 KB"/></supplementary-material><supplementary-material id="app3"><label>Multimedia Appendix 3</label><p>Frailty trajectory modeling (group-based trajectory modeling).</p><media xlink:href="aging_v9i1e90705_app3.docx" xlink:title="DOCX File, 68 KB"/></supplementary-material><supplementary-material id="app4"><label>Multimedia Appendix 4</label><p>Predictor selection and multicollinearity.</p><media xlink:href="aging_v9i1e90705_app4.docx" xlink:title="DOCX File, 18 KB"/></supplementary-material></app-group></back></article>