Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Public Health, 15 September 2025

Sec. Aging and Public Health

Volume 13 - 2025 | https://doi.org/10.3389/fpubh.2025.1661298

This article is part of the Research TopicMachine Learning-Driven Insights into Cognitive Aging and Behavioral ChangesView all 4 articles

Development and comparative validation of multiple models for cognitive frailty in older adults residing in nursing homes

Yifei RenYifei RenJie DingJie DingJun LuoJun LuoZhaowen WuZhaowen WuQingqing HuQingqing HuJiajia XuJiajia XuTing Chu
Ting Chu*
  • Department of Nursing, Zhejiang Chinese Medical University, Hangzhou, Zhejiang, China

Objectives: This study aims to develop an optimal predictive model for cognitive frailty (CF) in older adults residing in nursing homes, thereby providing a scientific basis for staff to assess CF risk and implement preventive interventions.

Methods: This study recruited 500 older adults from four nursing homes in Hangzhou, Zhejiang Province, between December 2024 and March 2025 as the modeling cohort. Additionally, we enrolled 112 older adults from another nursing home in Hangzhou from March to April 2025 as the external validation cohort. With 19 variables, we applied k-nearest neighbors (KNN), support vector machine (SVM), logistic regression (LR), random forest (RF), and extreme gradient boosting (XGBoost) algorithms to forecast CF. The predictive performance was assessed through multiple evaluation approaches, including ROC curve evaluation, calibration curve assessment, decision curve analysis, and various classification metrics such as accuracy, precision, recall, Brier score, and the F1-score (with β = 1). Furthermore, Shapley additive explanations (SHAP) value analysis was performed for the optimal model.

Results: Among 500 older adults in nursing homes, 132 (26.4%) exhibited CF. Essential features included the activities of daily living (ADL), frequency of intellectual activities, and age, among others. Five models using different algorithms were developed. The SVM model demonstrated the best predictive performance, with an AUC of 0.932 on the test data. External validation confirmed its accuracy (AUC = 0.751).

Conclusion: Machine learning models, particularly SVM, can effectively predict CF risk in older adults residing in nursing homes. Care facility staff can utilize personal information to assess older adults and identify high-risk individuals for CF at an early stage, providing crucial support for timely interventions and quality of life enhancement.

Introduction

The International Institute of Nutrition and Aging and the International Association of Gerontology and Geriatrics define CF as a clinical syndrome characterized by coexisting mild cognitive impairment and physical frailty, but excludes Alzheimer’s disease and various types of dementia (1). CF represents an early clinical stage that precedes the onset of dementia (2). Unlike other cognitive impairments, the international consensus group highlights that CF stems mainly from physical conditions rather than neurodegenerative disorders. Moreover, CF may serve as a precursor to neurodegenerative processes (3). Reported prevalence rates of CF vary significantly across studies due to differences in operational definitions and population heterogeneity. Specifically, operational definitions combine physical frailty phenotypes with varying cognitive threshold, such as distinct cutoffs on the Mini-Mental State Examination and Montreal Cognitive Assessment. Population heterogeneity manifests through variations in age stratification, comorbidities, socioeconomic factors, and recruitment settings. Studies indicate that the prevalence of CF among older adults ranges from 0.72 to 30.2% in foreign populations (4, 5) and approximately 2.3 to 43.2% in domestic populations (68). Reportedly (6), the prevalence of CF among older adults in China is 24% in nursing homes, 24% in hospitals, and 9% in community settings. Nursing homes serve as the primary setting for older adult care, where residents often present with complex health conditions, including functional impairment, cognitive decline, and multiple chronic comorbidities (9). The confined environment and living conditions in nursing homes, coupled with limited family interaction, restrict physical activity, social engagement, and emotional support from the outside world. This increases older adults’ vulnerability to CF (10). CF elevates the risk of adverse health outcomes, including falls, functional disability, depression, prolonged hospitalization, and mortality (11, 12). Therefore, it is particularly critical to address CF among older adults in nursing homes.

Current CF prediction models, both domestically and internationally, primarily focus on community-dwelling older adults or specific disease populations. There is a critical need to develop a CF prediction model specifically for older adults in residential nursing homes. Most previous studies lacked external validation, and their practical applicability requires further verification. Currently, there is a lack of accurate predictive tools for assessing the risk of CF among older adults in residential nursing homes. The influencing factors of CF are complex, and traditional regression algorithms have limited ability to handle confounding variables, which may compromise the accuracy of predictive models. In contrast, machine learning (ML) replaces conventional predictive modeling approaches by employing computational algorithms to identify complex, non-linear interactions among variables through iterative minimization of prediction errors. It can analyze large-scale datasets and generate models with strong generalizability through ML. Park et al. (13) developed a ML-based risk assessment model for CF using data from 2,404 community-dwelling older adults in the Korean Frailty and Aging Cohort Study. This study addressed a binary classification problem, where participants exhibiting at least one physical frailty phenotype and a Mini-Mental State Examination score ≤ 24 were classified as having CF. A ML methodology incorporating recursive feature elimination and bootstrapping was employed to develop the prediction model. The model demonstrated robust predictive performance (AUC = 0.843, sensitivity = 0.751, specificity = 0.809, accuracy = 0.795), effectively identifying the risk of CF in community-dwelling older adults (13). Currently, ML is widely used in healthcare to improve the accuracy of disease prediction and diagnosis. To date, no ML-based prediction models for CF have been developed specifically for older adults in nursing homes.

Therefore, this study analyzes risk factors for CF among older adults in nursing homes and constructs ML-based risk prediction models. Furthermore, this study emphasizes model interpretability, enabling medical experts to better understand prediction outcomes, thereby providing valuable references for early prevention in nursing homes, particularly crucial in the context of accelerating population aging.

Methods

Study design and population

This study utilized a convenience sampling approach to recruit participants from two phases: (a) 500 older adults were enrolled from four nursing homes in Hangzhou, Zhejiang Province, between December 2024 and March 2025; (b) An additional 112 older adults were recruited from another nursing home in the same region during March to April 2025. Participants were included if the older adults were age 60 years or older, had a minimum documented residence of 3 months within the nursing home facility, maintained preserved cognitive and communication function sufficient for study procedures, and provided documented informed consent. Individuals were excluded if they had: a formal diagnosis of Alzheimer’s disease or any other form of dementia; a history of intellectual disabilities or a history of psychiatric disorders; significant communication impairments that would compromise data collection reliability; or concurrent active participation in other interventional clinical trials.

All questionnaires were collected by a single researcher during consistent time periods to ensure assessment reliability. This study adhered to the principles outlined in the Declaration of Helsinki. All participants provided written informed consent. The study protocol was approved by the Ethics Committee of Zhejiang Chinese Medical University (No. 20241129–3).

Sample size calculation

The minimum sample size for the model was calculated based on the Events per Variable rule (14). This rule requires a sample size of at least 10 times the number of independent variables. With an estimated 10 variables to be included in this study and a reported prevalence of CF among older adults in Chinese nursing homes of approximately 24% (6), and accounting for 20% potential attrition, the required sample size was calculated as follows: 10 variables * 10 * 24% * (1 + 20%) ≈ 500 participants (15). The final sample size satisfied the empirical rule of having at least 10 events per candidate predictor variable (16).

CF identification

Diagnosis of CF required meeting all of the following criteria based on established assessment standards and mild cognitive impairment guidelines (1): (1) Fried Phenotype score 3–5 (17); (2) education-adjusted Mini-Mental State Examination (MMSE) scores (18–20 for illiterate, 21–24 for primary education, 25–27 for secondary education or higher) (18); and (3) dementia was excluded using the Clinical Dementia Rating (CDR) scale, with a diagnosis of CF requiring a CDR score of 0.5 (19).

Candidate variables

Based on a review of domestic and international literature and expert consensus (2022), we included 19 predictors spanning four key domains: sociodemographic factors, health status indicators, physical function measures, and lifestyle factors.

Sociodemographic factors encompassed the following variables: age, gender (male/female), marital status (widowed, spouse alive, or never married), education level (illiterate, primary education, secondary education, or college/university and above), and post-retirement occupation (farmer, laborer, intellectual, or other). Health status indicators included: self-rated health (very poor, poor, fair, good, or very good), chronic pain (yes/no), history of falls (yes/no), depression (yes/no), and nutritional status (normal, at risk of malnutrition, or malnourished). Physical function measures comprised: ADL (normal, declined, or severely impaired), grip strength (reduced/normal), gait speed (slow/normal), body mass index – BMI (<19 kg/m2, 19-21 kg/m2, 21-23 kg/m2, or ≥23 kg/m2), and sleep duration (<6 h, 6–9 h, or >9 h). Lifestyle factors were defined as: exercise frequency (0, 1–2, or ≥3 times/week), intellectual activities frequency (0, 1–2, or ≥3 times/week), smoking history (never smoker, former smoker, or current smoker), and drinking history (never drinker, former drinker, or current drinker).

Intellectual activities encompassed cognitively stimulating pursuits such as internet use, newspaper reading, calligraphy, painting, musical instrument playing, chess, and mahjong (20). Chronic pain is characterized by persistent nociception beyond the expected duration of tissue healing, typically manifested as pain lasting at least 3 months (23). BMI is calculated by dividing an individual’s weight in kilograms by the square of their height in meters (kg/m2). Grip strength was measured twice for each hand using a digital dynamometer, with the highest value from the four measurements used for analysis. Gait speed was assessed by measuring the time taken to walk 6 meters at a habitual pace. Nutritional status was assessed using the Mini-Nutritional Assessment Short-Form (24). Depressive symptoms were assessed using the 5-item Geriatric Depression Scale (25). Functional status was assessed using the ADL scale (26).

Feature selection

During data preprocessing, label encoding was applied to all categorical variables. To ensure consistent representation of CF across datasets, the modeling cohort (n = 500) was randomly split into training (70%, n = 350) and testing sets (30%, n = 150) using stratified sampling based on CF status. This resulted in similar minority proportions: (91/350) in the training set and (41/150) in the test set. The training set was used for model development, while the test set was used for both hyperparameter tuning and performance evaluation. Feature selection was performed using the least absolute shrinkage and selection operator (LASSO) algorithm, with the identified predictors subsequently incorporated into the predictive model. Feature selection reduces dimensionality to enhance model generalizability while mitigating overfitting risks.

Model development

K-nearest neighbors, a non-parametric learning model, excels at capturing local patterns and is well-suited for modeling non-linear relationships in smaller sample sizes. SVM addresses complex non-linear classification problems through kernel functions. LR serves as an interpretable linear baseline for validating linear relationships. RF and XGBoost, as ensemble tree models, effectively handle high-dimensional feature interactions and collinearity, with XGBoost offering further optimized computational efficiency. Moreover, given the limited sample size of the dataset, tree-based models (RF, XGBoost) demonstrate superior resistance to overfitting compared to deep learning models. Simultaneously, as the dataset contains categorical features, tree models inherently support the processing of discrete values. Therefore, this study employs five ML algorithms—KNN, SVM, LR, RF, and XGBoost—to construct the prediction models. To mitigate overfitting, we optimized the hyperparameters using 10-fold cross-validation on the training set and evaluated the model’s generalizability with an independent test set. Additionally, 112 older adults from other nursing homes were enrolled as an external validation cohort. Finally, SHAP analysis was applied to enhance the interpretability of the optimal model.

Model evaluation and interpretation

The ROC curve assessments were performed for all five models. To evaluate classification performance, accuracy, precision, recall, Brier score, and the F1 score were calculated for all models across training and validation datasets. Additionally, calibration curves were generated to assess the agreement between the predicted probabilities of a model and the actual observed probabilities. Finally, we used decision curve analysis to assess the clinical applicability of the models.

Statistical analyses

This study used R 4.4.3 and Python 3.13 for statistical analysis and predictive modeling. A comprehensive two-way analysis was performed for all variable types using a generalized linear model: continuous variables were analyzed with two-way analysis of variance; binary categorical variables with binary logistic regression; ordinal categorical variables with ordinal regression; and nominal polytomous variables with multinomial logistic regression. The significance level for all hypothesis tests was set at α = 0.05. A p-value < 0.05 was considered statistically significant.

Results

Study population characteristics

This study enrolled 500 older adults from nursing homes, among whom 132 (26.4%) developed CF. To validate the prediction model, we recruited 112 older adults from another nursing home. CF was identified in 30 participants (26.8%). Table 1 presents the baseline characteristics of participants with and without CF. The results showed that ADL, intellectual activities frequency, age, depression, exercise frequency, education level, nutritional status, marital status, self-rated health, history of falls, BMI, post-retirement occupation, drinking history, gait speed, and chronic pain were statistically significant (p < 0.05).

Table 1
www.frontiersin.org

Table 1. The characteristics of CF and non-CF patients in nursing homes.

Most disparities between CF and non-CF groups were consistent across modeling and validation sets. Notable interactions (p < 0.01) occurred in education level, self-rated health, sleep duration, and gait speed, suggesting cohort-specific effects in these domains.

Feature selection

This study included a total of 19 predictors. We used LASSO regression 10-fold cross-validation to select significant predictors of CF of the older adult in nursing homes (Figure 1). Ten feature variables were selected for the model, including ADL, frequency of intellectual activities, age, depression status, physical activity frequency, education level, nutritional status, marital status, self-rated health status, and history of fall.

Figure 1
Panel A shows a coefficient path plot with variables like age, BMI, and sleep plotted against log lambda, indicating how coefficients change with regularization. Panel B displays a plot of binomial deviance against log lambda with red dots, illustrating the model's performance at different levels of regularization.

Figure 1. Screening variables based on LASSO regression. (A) Path diagram of the variable regression coefficient. (B) Cross-validation plot of the LASSO regression analysis. LASSO, least absolute shrinkage and selection operator.

Model performance

We constructed five different ML models, including SVM, RF, KNN, LR, and XGBoost, and evaluated their performance to predict CF. Table 2 details the performance metrics of all five models. KNN exhibited substantial degradation from train to test in accuracy (0.916 → 0.885), precision (0.905 → 0.817), F1-score (0.907 → 0.881), and AUC (0.976 → 0.945), despite recall improvement (0.909 → 0.955) (Figures 2A,B). XGBoost showed similar declines in accuracy (0.912 → 0.895), precision (0.952 → 0.895), F1-score (0.896 → 0.880), and AUC (0.970 → 0.964), though recall increased (0.847 → 0.865). Among test set performances, XGBoost achieved the highest AUC (0.964) and best Brier score (0.075), while KNN had the highest recall (0.955) but lowest precision (0.817). There may be overfitting in KNN and XGBoost. RF demonstrated balanced metrics (accuracy: 0.865, precision: 0.852, recall: 0.843, F1: 0.847, AUC: 0.951, Brier: 0.102). RF maintained minimal AUC reduction (0.953 → 0.951) with consistent performance across all metrics. LR showed exceptional stability with near-identical accuracy (0.863 → 0.860) and F1-score (0.841 → 0.841), plus modest changes in other metrics (precision: 0.876 → 0.851, recall: 0.809 → 0.831, AUC: 0.940 → 0.932, Brier: 0.096 → 0.107). SVM exhibited controlled declines in accuracy (0.876 → 0.860), precision (0.917 → 0.859), and F1-score (0.851 → 0.839), with AUC (0.938 → 0.932) and recall (0.794 → 0.820) remaining comparable. Models without significant overfitting included RF, LR, and SVM. The results of the confusion matrix for the test set are shown in Figure 3A.

Table 2
www.frontiersin.org

Table 2. Models performance by different algorithms.

Figure 2
(A) ROC curve comparison for several models: SVM, RF, KNN, Logistic, and XGBoost. SVM has AUC of 0.94 and XGBoost 0.97. (B) Similar ROC curve comparison with AUC ranging from SVM at 0.93 to XGBoost at 0.96. (C) Calibration plot showing accuracy plots for various models; models close to the diagonal are well-calibrated. (D) Another calibration plot with models showing different calibration qualities. (E) Decision curve analysis shows net benefit versus threshold probability for each model. (F) Similar decision curve analysis with a new data set; curves show varying net benefits. (G) Final decision curve analysis exhibiting slightly different trends in net benefit.

Figure 2. ROC curves, calibration plots, and decision curves based on different models in the training and testing sets. (A) ROC curves of the training set. (B) ROC curves of the testing set. (C) Calibration plots of the training set. (D) Calibration plots of the testing set. (E) Decision curves of the training set. (F) Decision curves of the testing set. (G) Decision curves of the external validation set.

Model calibration was assessed using calibration curves (Figures 2C,D) and the Brier score (Table 2). Both RF and XGBoost demonstrate strong alignment with the ideal calibration line across most probability ranges, consistent with their relatively low test-set Brier scores (RF: 0.102; XGBoost: 0.075). SVM maintains close proximity to the ideal curve in low-to-mid probabilities but exhibits slight deviations in high-probability regions, aligning with its moderate Brier score (0.105). KNN shows significant miscalibration in low-probability zones despite achieving a competitive Brier score (0.092), suggesting that this global metric may partially mask localized inaccuracies. LR displays systematic deviations in low-to-medium probabilities and the highest Brier score (0.107), indicating pronounced calibration challenges.

Figure 3
Panel A and B show confusion matrices. Panel A: True labels zero and one predicted accurately 99 and 73 times, with 12 and 16 misclassifications. Panel B: True labels zero and one predicted accurately 59 and 38 times, with 14 and 21 misclassifications. Both matrices use a color scale on the right.

Figure 3. Confusion matrix of the SVM. (A) Confusion matrix of the test set. (B) Confusion matrix of the external validation set.

The decision curve analysis for both training and testing datasets revealed distinct performance characteristics among the evaluated ML models (Figures 2E,F). The XGBoost model demonstrated superior net benefit across most threshold probabilities in both datasets, although its performance was slightly diminished in the testing set, suggesting potential overfitting. Conversely, the KNN model exhibited robust performance on the training set but a significant decline on the testing set, indicative of overfitting. The LR and SVM models showed moderate and consistent net benefits across both datasets. Notably, the RF model, which underperformed on the training set, displayed improved performance on the testing set.

External validation

In the external validation dataset (Table 3), the XGBoost model achieved the highest AUC (0.785), but exhibited substantial declines in accuracy (0.462), precision (0.454), F1 score (0.624), and probability calibration (Brier: 0.346). In contrast, SVM maintained the highest stability across metrics (accuracy: 0.735; precision: 0.731; F1: 0.685) with the best calibration performance (Brier: 0.214). The remaining models (LR, RF, KNN) demonstrated comparatively weaker overall performance and suboptimal calibration (Brier: 0.226–0.261). Collectively, while XGBoost showed suboptimal performance in external validation, SVM displayed balanced metric outcomes and superior probability calibration. The results of the confusion matrix for the external validation set are shown in Figure 3B.

Table 3
www.frontiersin.org

Table 3. Models performance on the external validation set.

Decision curve analysis was further performed to evaluate clinical utility (Figure 2G). While XGBoost achieved the highest AUC (0.785), its precision collapse (0.454) translates to a negative net benefit in decision curve analysis beyond 30% risk thresholds. This means deploying XGBoost unmodified would cause net clinical harm – misallocating resources to false positives. Conversely, SVM’s balanced precision (0.731) and recall (0.644) sustain positive net benefit across screening-relevant thresholds (10–60%), affirming its role as the safest implementation choice.

Interpretability analysis

The SHAP analysis of the SVM model on both the test set and the external validation set revealed consistent directional influences of key features on the predicted risk of CF (Figure 4A). Features such as ADL, intellectual activities, age, exercise, depression, and nutrition demonstrated a stable impact direction across both datasets. The external validation set SHAP plots (Figure 4B) had minor variations in order, such as depression and exercise, suggesting a consistent directional effect across datasets, but with slight variations in relative significance. Feature importance ranking of the test set (Figure 4C) confirmed ADL and intellectual activities as the most critical predictors within the model’s logic, followed by age, depression, exercise, education, nutrition, marital status, self-rated health, and history of falls. Critically, this consistency in SHAP values indicates that the model relies on a similar set of predictors and interprets their impact directionally in the same way when making predictions on both cohorts. It does not, however, imply that the underlying distributions of these features are similar between cohorts (Table 1).

Figure 4
Panel A displays a SHAP value plot showing the impact of features like ADL and cognitive activity on model output, with feature values ranging from low (blue) to high (pink). Panel B shows a similar SHAP plot for a different model. Panel C illustrates a bar chart of SVM feature importance, indicating ADL as the most critical feature, followed by cognitive activity and age.

Figure 4. SHAP value plot for the SVM model. (A) SHAP analysis of the test set. (B) SHAP analysis of the external validation set. (C) Variable importance ranking plot of the test set.

Discussion

This study developed and validated predictive models for CF among older adults in residential nursing homes using five distinct machine-learning algorithms. The SVM model demonstrated the best predictive performance, with an AUC of 0.932 on the test data. Our findings identify 10 key predictors of CF in institutionalized older adults: ADL, intellectual activities frequency, marital status, exercise frequency, depression, self-rated health, nutritional status, history of falls, age, and education level.

Our analysis reveals critical insights for deploying CF prediction models in real-world settings. While XGBoost demonstrated superior discriminative power during development (AUC: 0.964), its performance significantly declined in external validation—exhibiting substantial reductions in accuracy (0.462), precision (0.454), and F1 score (0.624) (Table 3). This contrast underscores XGBoost’s sensitivity to cohort heterogeneity, as evidenced by distribution shifts in education, nutrition, sleep duration, and functional status (Table 1). Consequently, we identify SVM as the optimal model for clinical implementation due to its balanced and stable metrics across both development (accuracy: 0.860–0.876; F1: 0.839–0.851) and external validation (accuracy: 0.735; F1: 0.685). Crucially, SVM’s metric stability directly translates to sustained positive net benefit across thresholds 10–60%, whereas XGBoost’s discriminative advantage (AUC = 0.785) is negated by precision-driven harm beyond 30% thresholds. This divergence underscores that algorithm selection for public health deployment must prioritize clinical utility over purely statistical metrics.

Two factors explain this divergence in generalizability: First, algorithmic robustness – SVM’s maximum-margin principle inherently mitigates overfitting to local feature noise, whereas XGBoost amplifies biases in underrepresented subpopulations. This proves particularly impactful given the external cohort’s higher illiteracy and malnutrition rates. Second, clinical feasibility – while all models maintained AUC > 0.7, SVM’s consistency across accuracy (0.735), precision (0.731), and F1 (0.685) minimizes implementation risk compared to XGBoost’s precision-recall tradeoffs. Rather than invalidating the models, these performance gaps highlight the necessity for context-aware deployment. In summary, SVM emerges as the most reliable model for real-world CF screening.

Despite robust performance during internal development and testing (Table 2), all models exhibited a significant decline in predictive performance on the external validation set (Table 3), highlighting a critical limitation in generalizability. This performance gap likely stems from substantial differences between cohorts in key predictors of CF—particularly education level, occupation, ADL, nutritional status, and self-rated health—as shown in Table 1. Such population heterogeneity reflects real-world clinical diversity and underscores the challenge of deploying models across settings. To bridge this gap, future research should prioritize adaptive techniques, for instance Platt scaling and other domain adaptation methods, to align models with target populations, alongside rigorous multi-site validation frameworks such as internal-external cross-validation or prospective studies to quantify real-world performance. These strategies represent the necessary steps toward reliable clinical tools.

Our study identified ADL as a significant predictor of CF in institutionalized older adults. This finding aligns with existing evidence demonstrating that individuals with ADL impairments face substantially higher risks of CF compared to those with intact functional abilities (27). The proposed pathophysiology suggests that ADL decline reduces physical activity levels, leading to decreased secretion of brain-derived neurotrophic factors and diminished cerebral blood flow – both of which may accelerate cognitive deterioration (28). The study found that nutritional status and physical activity frequency also influence CF in older adults. One study showed that participants who engaged in regular physical activity had a lower risk of CF compared to those who were inactive (29). Regular exercise and good nutritional status can effectively improve muscle strength and physical function in older adults, thereby reducing the risk of CF (30).

The CF in older adults residing in nursing homes was significantly associated with the frequency of intellectual activities, consistent with prior research findings (22). Protective effects against cognitive decline have been observed with routine intellectual engagement, such as playing mahjong or using smartphones, among community-dwelling older adults. These activities may enhance neuroplasticity and bolster cognitive reserve, thereby mitigating the progression of cognitive impairment (3).

Depression is a significant risk factor for CF in older adults, consistent with previous research (31, 32). A longitudinal study found that older adults with depression had twice the likelihood of developing CF compared to their non-depressed counterparts (33). The underlying mechanisms may involve chronic inflammation, impaired neuroplasticity, and reduced social engagement, collectively contributing to accelerated cognitive decline (34). A history of falls is recognized as a risk factor for CF. In a study by Peng et al., community-dwelling older adults with a fall history exhibited a significantly higher risk of CF compared to their non-fall counterparts (35). Potential mechanisms include traumatic brain injury, reduced physical activity, and psychological stress, all of which may contribute to impaired brain function and subsequent cognitive decline (36).

Regarding sociodemographic characteristics, marital status was identified as a significant factor influencing CF among institutionalized older adults. Zhang et al. (37) found that widowed older adults face significantly higher risks of developing CF. Furthermore, our analysis confirmed age as another critical determinant affecting CF progression in this population. Multiple longitudinal studies have established a robust association between advanced age and CF (3840). The cumulative effect of neurodegenerative changes and progressive neuronal damage with aging contributes significantly to the gradual decline in cognitive function observed in older populations (41). Higher educational attainment is significantly associated with a reduced risk of CF in older adults. A recent study demonstrated that both education level and household per capita consumption were independently linked to CF, with higher education serving as a robust protective factor (42). Higher educational attainment is associated with greater cognitive reserve and improved access to health-related resources. Older adults with higher literacy levels frequently engage in activities such as newspaper reading and news viewing, which may enhance cognitive stimulation and reduce the risk of CF (43).

Among the 10 predictors identified, ADL, intellectual activities, nutritional status, exercise frequency, and depression represent highly actionable targets for nursing home interventions. These can be efficiently assessed using validated tools including the Barthel Index for ADL (44), Mini Nutritional Assessment-Short Form for nutrition (45), and Patient Health Questionnaire-2 for depression (46), and addressed through evidence-based protocols such as WHO-recommended chair exercises (47), targeted protein supplementation (48), and staff-facilitated group reminiscence therapy. While education, age, and marital status serve as non-modifiable risk stratification markers to identify high-risk residents for intensified monitoring, intellectual activities warrant pragmatic implementation through structured group interventions. We recommend daily 30-min music therapy sessions to enhance auditory processing, biweekly group reminiscence therapy using visual prompts to stimulate episodic memory, and weekly puzzle-based cognitive games adapted for mobility limitations (49). These low-burden strategies leverage existing staff resources while providing standardized cognitive engagement. Prioritizing these modifiable factors within implementation frameworks optimizes resource allocation in institutional settings.

Our findings provide novel insights into CF prediction and prevention strategies for older adults in residential nursing homes, with several key clinical implications. First, this multicenter study involving five nursing homes enhances the reliability of the results. Second, the model incorporates internationally validated scales, such as ADL scale, ensuring broad applicability across different care settings. Third, five distinct ML algorithms were compared, with SVM demonstrating optimal performance and superior stability. Finally, external validation (AUC = 0.751 for the SVM model) confirmed the model’s generalizability.

Limitations of the study

This study has several limitations. First, the cross-sectional design precludes causal inferences between CF and its associated factors. Secondly, due to the significant differences in the key predictive factors of cognitive decline among different cohorts, the prediction performance of the model on the external validation set has significantly declined. Third, not all potential predictors of CF, such as biochemical markers, were included in the analysis. Fourth, label encoding may artificially establish an ordinal relationship on nominal categorical variables. Future research will develop models incorporating more comprehensive predictive features derived from longitudinal cohorts. Additionally, one-hot encoding should be applied to purely nominal features. To enhance generalizability, adaptive techniques—such as model recalibration and domain adaptation—must be prioritized for population alignment, alongside implementing a rigorous multi-site validation framework to quantify real-world performance.

Conclusion

In this study, ADL, intellectual activities, and age emerged as the most significant predictors of CF. We developed and validated a CF prediction model for residential nursing homes using five ML algorithms, with SVM demonstrating optimal generalizability across internal and external datasets. The model maintained clinically applicable predictive performance while leveraging distributed feature dependencies. This tool may assist nursing homes in early identification of high-risk individuals, enabling targeted interventions to delay cognitive decline.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

Ethics statement

The studies involving humans were approved by Ethics Committee of Zhejiang Chinese Medical University (No. 20241129–3). The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation in this study was provided by the participants’ legal guardians/next of kin.

Author contributions

YR: Writing – original draft, Data curation. JD: Writing – review & editing, Conceptualization. JL: Writing – original draft, Visualization, Conceptualization. ZW: Writing – original draft, Visualization, Data curation. QH: Writing – original draft, Supervision, Data curation. JX: Writing – original draft, Data curation, Visualization. TC: Supervision, Data curation, Writing – review & editing.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by the Research Project of the Zhejiang Provincial Medical and Health Science and Technology Plan, grant number 2024KY127 and the 2024 Student Research Fund Project of Zhejiang Chinese Medical University.

Acknowledgments

We would like to extend our gratitude to the older adult and staff for their cooperation in conducting this study.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Abbreviations

ADL, Activities of daily living; BMI, Body mass index; CF, Cognitive frailty; KNN, K-nearest neighbors; LASSO, Least absolute shrinkage and selection operator; LR, Logistic regression; ML, Machine learning; RF, Random forest; SHAP, SHapley Additive exPlanations; SVM, Support vector machine; XGBoost, Extreme gradient boosting.

References

1. Kelaiditi, E, Cesari, M, Canevelli, M, van Kan, GA, Ousset, PJ, Gillette-Guyonnet, S, et al. Cognitive frailty: rational and definition from an (I.A.N.A./I.A.G.G.) international consensus group. J Nutr Health Aging. (2013) 17:726–34. doi: 10.1007/s12603-013-0367-2

PubMed Abstract | Crossref Full Text | Google Scholar

2. Shimada, H, Doi, T, Lee, S, Makizako, H, Chen, LK, and Arai, H. Cognitive frailty predicts incident dementia among community-dwelling older people. J Clin Med. (2018) 7:250. doi: 10.3390/jcm7090250

PubMed Abstract | Crossref Full Text | Google Scholar

3. Sugimoto, T, Arai, H, and Sakurai, T. An update on cognitive frailty: its definition, impact, associated factors and underlying mechanisms, and interventions. Geriatr Gerontol Int. (2022) 22:99–109. doi: 10.1111/ggi.14322

PubMed Abstract | Crossref Full Text | Google Scholar

4. Wada, A, Makizako, H, Nakai, Y, Tomioka, K, Taniguchi, Y, Sato, N, et al. Association between cognitive frailty and higher-level competence among community-dwelling older adults. Arch Gerontol Geriatr. (2022) 99:104589. doi: 10.1016/j.archger.2021.104589

PubMed Abstract | Crossref Full Text | Google Scholar

5. Inoue, T, Shimizu, A, Satake, S, Matsui, Y, Ueshima, J, Murotani, K, et al. Association between osteosarcopenia and cognitive frailty in older outpatients visiting a frailty clinic. Arch Gerontol Geriatr. (2022) 98:104530. doi: 10.1016/j.archger.2021.104530

PubMed Abstract | Crossref Full Text | Google Scholar

6. Liu, J, Xu, S, Wang, J, Yan, Z, Wang, Z, Liang, Q, et al. Prevalence of cognitive frailty among older adults in China: a systematic review and meta-analysis. BMJ Open. (2023) 13:e066630. doi: 10.1136/bmjopen-2022-066630

PubMed Abstract | Crossref Full Text | Google Scholar

7. Lin, X, Nian, Z, Yang, L, Qing, Z, Zhenjun, N, and Yanlin, H. Prevalence and influencing factors of cognitive frailty among Chinese older adults: a systematic review and meta-analysis. Int J Nurs Pract. (2024) 30:e13306. doi: 10.1111/ijn.13306

PubMed Abstract | Crossref Full Text | Google Scholar

8. Zhang, T, Ren, Y, Shen, P, Jiang, S, Yang, Y, Wang, Y, et al. Prevalence and associated risk factors of cognitive frailty: a systematic review and meta-analysis. Front Aging Neurosci. (2021) 13:755926. doi: 10.3389/fnagi.2021.755926

Crossref Full Text | Google Scholar

9. Sahin, UK, and Acaröz, S. Predictors of the disability in activities of daily living in nursing home residents: a descriptive study. Exp Aging Res. (2025) 51:257–70. doi: 10.1080/0361073x.2024.2421686

PubMed Abstract | Crossref Full Text | Google Scholar

10. Pastor-Barriuso, R, Padrón-Monedero, A, Parra-Ramírez, LM, García López, FJ, and Damián, J. Social engagement within the facility increased life expectancy in nursing home residents: a follow-up study. BMC Geriatr. (2020) 20:480. doi: 10.1186/s12877-020-01876-2

PubMed Abstract | Crossref Full Text | Google Scholar

11. Paganini-Hill, A, Clark, LJ, Henderson, VW, and Birge, SJ. Clock drawing: analysis in a retirement community. J Am Geriatr Soc. (2001) 49:941–7. doi: 10.1046/j.1532-5415.2001.49185.x

PubMed Abstract | Crossref Full Text | Google Scholar

12. Panza, F, D'Introno, A, Colacicco, AM, Capurso, C, Parigi, AD, Capurso, SA, et al. Cognitive frailty: predementia syndrome and vascular risk factors. Neurobiol Aging. (2006) 27:933–40. doi: 10.1016/j.neurobiolaging.2005.05.008

PubMed Abstract | Crossref Full Text | Google Scholar

13. Park, C, Kim, N, Won, CW, and Kim, M. Predicting cognitive frailty in community-dwelling older adults: a machine learning approach based on multidomain risk factors. Sci Rep. (2025) 15:18369. doi: 10.1038/s41598-025-00844-3

PubMed Abstract | Crossref Full Text | Google Scholar

14. Moons, KG, Royston, P, Vergouwe, Y, Grobbee, DE, and Altman, DG. Prognosis and prognostic research: what, why, and how? BMJ. (2009) 338:b375. doi: 10.1136/bmj.b375

PubMed Abstract | Crossref Full Text | Google Scholar

15. Riley, RD, Ensor, J, Snell, KIE, Harrell, FE Jr, Martin, GP, Reitsma, JB, et al. Calculating the sample size required for developing a clinical prediction model. BMJ. (2020) 368:m441. doi: 10.1136/bmj.m441

PubMed Abstract | Crossref Full Text | Google Scholar

16. van Smeden, M, Moons, KG, de Groot, JA, Collins, GS, Altman, DG, Eijkemans, MJ, et al. Sample size for binary logistic prediction models: beyond events per variable criteria. Stat Methods Med Res. (2019) 28:2455–74. doi: 10.1177/0962280218784726

PubMed Abstract | Crossref Full Text | Google Scholar

17. Fried, LP, Tangen, CM, Walston, J, Newman, AB, Hirsch, C, Gottdiener, J, et al. Frailty in older adults: evidence for a phenotype. J Gerontol A Biol Sci Med Sci. (2001) 56:M146–56. doi: 10.1093/gerona/56.3.m146

Crossref Full Text | Google Scholar

18. Katzman, R, Zhang, MY, Ouang Ya, Q, Wang, ZY, Liu, WT, Yu, E, et al. A Chinese version of the mini-mental state examination; impact of illiteracy in a Shanghai dementia survey. J Clin Epidemiol. (1988) 41:971–8. doi: 10.1016/0895-4356(88)90034-0

Crossref Full Text | Google Scholar

19. O'Bryant, SE, Waring, SC, Cullum, CM, Hall, J, Lacritz, L, Massman, PJ, et al. Staging dementia using clinical dementia rating scale sum of boxes scores: a Texas Alzheimer's research consortium study. Arch Neurol. (2008) 65:1091. doi: 10.1001/archneur.65.8.1091

Crossref Full Text | Google Scholar

20. Huang, JH, Wang, QS, Zhuo, RM, Su, XY, Xu, QY, Jiang, YH, et al. Institutional residence protects against cognitive frailty: a cross-sectional study. Inquiry. (2023) 60:469580231220180. doi: 10.1177/00469580231220180

PubMed Abstract | Crossref Full Text | Google Scholar

21. Liu, S, Hu, Z, Guo, Y, Zhou, F, Li, S, and Xu, H. Association of sleep quality and nap duration with cognitive frailty among older adults living in nursing homes. Front Public Health. (2022) 10:963105. doi: 10.3389/fpubh.2022.963105

PubMed Abstract | Crossref Full Text | Google Scholar

22. Gao, J, Bai, D, Chen, H, Chen, X, Luo, H, Ji, W, et al. Risk factors analysis of cognitive frailty among geriatric adults in nursing homes based on logistic regression and decision tree modeling. Front Aging Neurosci. (2024) 16:1485153. doi: 10.3389/fnagi.2024.1485153

PubMed Abstract | Crossref Full Text | Google Scholar

23. Jackson, T, Thomas, S, Stabile, V, Shotwell, M, Han, X, and McQueen, K. A systematic review and Meta-analysis of the global burden of chronic pain without clear etiology in low- and middle-income countries: trends in heterogeneous data and a proposal for new assessment methods. Anesth Analg. (2016) 123:739–48. doi: 10.1213/ane.0000000000001389

PubMed Abstract | Crossref Full Text | Google Scholar

24. Rubenstein, LZ, Harker, JO, Salvà, A, Guigoz, Y, and Vellas, B. Screening for undernutrition in geriatric practice: developing the short-form mini-nutritional assessment (MNA-SF). J Gerontol A Biol Sci Med Sci. (2001) 56:M366–72. doi: 10.1093/gerona/56.6.m366

PubMed Abstract | Crossref Full Text | Google Scholar

25. Rinaldi, P, Mecocci, P, Benedetti, C, Ercolani, S, Bregnocchi, M, Menculini, G, et al. Validation of the five-item geriatric depression scale in elderly subjects in three different settings. J Am Geriatr Soc. (2003) 51:694–8. doi: 10.1034/j.1600-0579.2003.00216.x

PubMed Abstract | Crossref Full Text | Google Scholar

26. Lawton, MP, and Brody, EM. Assessment of older people: self-maintaining and instrumental activities of daily living. The Gerontologist. (1969) 9:179–86. doi: 10.1093/geront/9.3_Part_1.179

PubMed Abstract | Crossref Full Text | Google Scholar

27. Lu, S, Xu, Q, Yu, J, Yang, Y, Wang, Z, Zhang, B, et al. Prevalence and possible factors of cognitive frailty in the elderly with hypertension and diabetes. Front Cardiovasc Med. (2022) 9:1054208. doi: 10.3389/fcvm.2022.1054208

PubMed Abstract | Crossref Full Text | Google Scholar

28. Zhang, Y, Xia, H, Jiang, X, Wang, Q, and Hou, L. Prevalence and outcomes of cognitive frailty among community-dwelling older adults: a systematic review and meta-analysis. Res Gerontol Nurs. (2024) 17:202–12. doi: 10.3928/19404921-20240621-01

PubMed Abstract | Crossref Full Text | Google Scholar

29. Liu, Z, Hsu, FC, Trombetti, A, King, AC, Liu, CK, Manini, TM, et al. Effect of 24-month physical activity on cognitive frailty and the role of inflammation: the LIFE randomized clinical trial. BMC Med. (2018) 16:185. doi: 10.1186/s12916-018-1174-8

PubMed Abstract | Crossref Full Text | Google Scholar

30. Huang, J, Zeng, X, Ning, H, Peng, R, Guo, Y, Hu, M, et al. Development and validation of prediction model for older adults with cognitive frailty. Aging Clin Exp Res. (2024) 36:8. doi: 10.1007/s40520-023-02647-w

PubMed Abstract | Crossref Full Text | Google Scholar

31. Zhao, Y, Huo, X, Du, H, Lai, X, Li, Z, Zhang, Z, et al. Moderating effect of instrumental activities of daily living on the relationship between loneliness and depression in people with cognitive frailty. BMC Geriatr. (2025) 25:121. doi: 10.1186/s12877-025-05700-7

PubMed Abstract | Crossref Full Text | Google Scholar

32. Ren, J, Zhang, W, Liu, Y, Fan, X, Li, X, and Song, X. Prevalence of and factors associated with cognitive frailty in elderly patients with chronic obstructive pulmonary disease: a cross-sectional study. Medicine. (2024) 103:e39561. doi: 10.1097/md.0000000000039561

PubMed Abstract | Crossref Full Text | Google Scholar

33. Ghanbarnia, MJ, Hosseini, SR, Ahangar, AA, Ghadimi, R, and Bijani, A. Prevalence of cognitive frailty and its associated factors in a population of Iranian older adults. Aging Clin Exp Res. (2024) 36:134. doi: 10.1007/s40520-024-02790-y

PubMed Abstract | Crossref Full Text | Google Scholar

34. Bai, Y, Chen, Y, Tian, M, Gao, J, Song, Y, Zhang, X, et al. The relationship between social isolation and cognitive frailty among community-dwelling older adults: the mediating role of depressive symptoms. Clin Interv Aging. (2024) 19:1079–89. doi: 10.2147/cia.S461288

PubMed Abstract | Crossref Full Text | Google Scholar

35. Peng, S, Zhou, J, Xiong, S, Liu, X, Pei, M, Wang, Y, et al. Construction and validation of cognitive frailty risk prediction model for elderly patients with multimorbidity in Chinese community based on non-traditional factors. BMC Psychiatry. (2023) 23:266. doi: 10.1186/s12888-023-04736-6

PubMed Abstract | Crossref Full Text | Google Scholar

36. Xu, X, Ding, N, He, J, Zhao, R, Gu, W, Ge, X, et al. Associations between reversible and potentially reversible cognitive frailty and falls in community-dwelling older adults in China: a longitudinal study. BMC Geriatr. (2025) 25:224. doi: 10.1186/s12877-025-05872-2

PubMed Abstract | Crossref Full Text | Google Scholar

37. Zhang, S, Wang, Q, Wang, X, Qi, K, Zhou, Y, and Zhou, C. Pet ownership and cognitive frailty among Chinese rural older adults who experienced a social loss: is there a sex difference? Soc Sci Med. (2022) 305:115100. doi: 10.1016/j.socscimed.2022.115100

PubMed Abstract | Crossref Full Text | Google Scholar

38. Cao, M, Tang, B, Yang, L, and Zeng, J. A machine learning-based model for predicting the risk of cognitive frailty in elderly patients on maintenance hemodialysis. Sci Rep. (2025) 15:2525. doi: 10.1038/s41598-025-86715-3

PubMed Abstract | Crossref Full Text | Google Scholar

39. Yu, Q, and Yu, H. Development and validation of a risk prediction model for cognitive frailty in elderly patients with type 2 diabetes mellitus. J Clin Nurs. (2025) 34:3261–75. doi: 10.1111/jocn.17508

PubMed Abstract | Crossref Full Text | Google Scholar

40. Guo, J, Zhang, Y, Yang, Y, Lin, L, and Shen, T. Prevalence and risk factors of cognitive frailty in patients with cardiovascular disease: a hospital-based cross-sectional study. Medicine. (2024) 103:e40761. doi: 10.1097/md.0000000000040761

PubMed Abstract | Crossref Full Text | Google Scholar

41. Aguilar-Navarro, SG, Mimenza-Alvarado, AJ, Yeverino-Castro, SG, Caicedo-Correa, SM, and Cano-Gutiérrez, C. Cognitive frailty and aging: clinical characteristics, pathophysiological mechanisms, and potential prevention strategies. Arch Med Res. (2025) 56:103106. doi: 10.1016/j.arcmed.2024.103106

PubMed Abstract | Crossref Full Text | Google Scholar

42. Hou, D, Sun, Y, Liu, Z, Sun, H, Li, Y, and Wang, R. A longitudinal study of factors associated with cognitive frailty in middle-aged and elderly population based on the health ecology model. J Affect Disord. (2024) 352:410–8. doi: 10.1016/j.jad.2024.02.014

PubMed Abstract | Crossref Full Text | Google Scholar

43. Brunner, EJ, Shipley, MJ, Ahmadi-Abhari, S, Valencia Hernandez, C, Abell, JG, Singh-Manoux, A, et al. Midlife contributors to socioeconomic differences in frailty during later life: a prospective cohort study. Lancet Public Health. (2018) 3:e313–22. doi: 10.1016/s2468-2667(18)30079-3

PubMed Abstract | Crossref Full Text | Google Scholar

44. Sainsbury, A, Seebass, G, Bansal, A, and Young, JB. Reliability of the Barthel index when used with older people. Age Ageing. (2005) 34:228–32. doi: 10.1093/ageing/afi063

PubMed Abstract | Crossref Full Text | Google Scholar

45. Kaiser, MJ, Bauer, JM, Ramsch, C, Uter, W, Guigoz, Y, Cederholm, T, et al. Validation of the mini nutritional assessment short-form (MNA-SF): a practical tool for identification of nutritional status. J Nutr Health Aging. (2009) 13:782–8. doi: 10.1007/s12603-009-0214-7

PubMed Abstract | Crossref Full Text | Google Scholar

46. Kroenke, K, Spitzer, RL, and Williams, JB. The patient health questionnaire-2: validity of a two-item depression screener. Med Care. (2003) 41:1284–92. doi: 10.1097/01.Mlr.0000093487.78664.3c

PubMed Abstract | Crossref Full Text | Google Scholar

47. Chodzko-Zajko, WJ, Proctor, DN, Fiatarone Singh, MA, Minson, CT, Nigg, CR, Salem, GJ, et al. American College of Sports Medicine position stand. Exercise and physical activity for older adults. Med Sci Sports Exerc. (2009) 41:1510–30. doi: 10.1249/MSS.0b013e3181a0c95c

PubMed Abstract | Crossref Full Text | Google Scholar

48. Deutz, NE, Bauer, JM, Barazzoni, R, Biolo, G, Boirie, Y, Bosy-Westphal, A, et al. Protein intake and exercise for optimal muscle function with aging: recommendations from the ESPEN expert group. Clin Nutr. (2014) 33:929–36. doi: 10.1016/j.clnu.2014.04.007

PubMed Abstract | Crossref Full Text | Google Scholar

49. Hill, NT, Mowszowski, L, Naismith, SL, Chadwick, VL, Valenzuela, M, and Lampit, A. Computerized cognitive training in older adults with mild cognitive impairment or dementia: a systematic review and meta-analysis. Am J Psychiatry. (2017) 174:329–40. doi: 10.1176/appi.ajp.2016.16030360

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: machine learning, cognitive frailty, nursing home, model development, older adult

Citation: Ren Y, Ding J, Luo J, Wu Z, Hu Q, Xu J and Chu T (2025) Development and comparative validation of multiple models for cognitive frailty in older adults residing in nursing homes. Front. Public Health. 13:1661298. doi: 10.3389/fpubh.2025.1661298

Received: 07 July 2025; Accepted: 28 August 2025;
Published: 15 September 2025.

Edited by:

Jaiteg Singh, Chitkara University, India

Reviewed by:

Charmayne Mary Lee Hughes, Technical University of Berlin, Germany
Eduarda Oliosi, University of Porto, Portugal

Copyright © 2025 Ren, Ding, Luo, Wu, Hu, Xu and Chu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Ting Chu, Y2h1dEB6Y211LmVkdS5jbg==

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.