ABSTRACT
Objective: This study aims to develop Machine Learning models to predict 30-day unplanned readmissions in cancer patients treated at a private hospital in Brazil.
Methods: This retrospective cohort study included admission records of hospitalizations lasting >24 hours, with a corresponding diagnosis of a solid malignancy. The primary outcome was 30-day unplanned readmission. We tested five supervised Machine Learning algorithms to develop predictive models: a "48-hour" model, which used data from the first 48 hours after admission, and a "discharge" model, which used data from the entire hospitalization. The optimal models were selected based on their median performance (area under the ROC curve [AUC], precision, recall, F1, and Fβ-Score). Model explainability was assessed using SHAP scores (SS).
Results: We analyzed 3,728 admissions from 1,573 cancer patients, with an unplanned 30-day readmission rate of 21.13%. The Random Forest algorithm demonstrated the best-balanced performance for the 48-hour model (AUC = 0.70, IQR= 0.68-0.71), whereas LightGBM performed best for the discharge model (AUC = 0.70, IQR= 0.68-0.72). In both models, the top predictor was prior emergency department visits in the past six months (SS=0.074 and 0.053, respectively). The top 10 predictors included: laboratory values (including lymphocyte count, Gamma-glutamyl transferase, Red Cell Distribution Width, hemoglobin, sodium, monocyte count, hematocrit, and urea), vital signs, and emergency index admission in both models, with colon cancer ranking among the top predictors in the 48-hour model.
Conclusion: The models underscored the significance of prior emergency department visits, laboratory values, and vital signs as key predictors of 30-day unplanned readmission. The timing of laboratory and vitals influenced their predictive strength. Implementing these models could help providers develop personalized care strategies to reduce readmission risk. External validation is needed.
Keywords:
Neoplasms; Patient readmission; Unplanned; Machine learning
Highlights
30-day unplanned readmission rate was 21.13% across the cohort.
Random Forest and LightGBM showed the best-balanced model performance.
Prior Emergency Department visits, labs, and vital signs were key readmission predictors.
Both models achieved median AUC 0.70 with consistent performance.
In Brief
Stabellini et al. developed Machine Learning models (48-hour and discharge) to predict 30-day unplanned readmissions in cancer patients at a private Brazilian hospital. Analyzing 3,728 admissions, Random Forest and LightGBM performed best (AUC 0.70). Prior Emergency Department visits, vitals, and labs were key predictors, offering a promising tool for targeted patient follow-up.
INTRODUCTION
Cancer ranks as either the first or second leading cause of death in individuals under 70 years of age in 112 out of 183 countries, contributing significantly to the global burden of Disability-Adjusted Life Years, as reported by the World Health Organization.(1-3) In 2020, approximately 19.3 million new cancer cases and nearly 10.0 million cancer-related deaths were recorded worldwide.(1) In Brazil, the largest country in South America and the fifth largest nation globally, with an estimated population of 203.1 million, there were approximately 704,000 new cancer cases in 2023.(4,5)
The growing demand for cancer services, the increasing complexity of treatments, and an aging population are driving the rising costs of cancer care.(6,7) Inpatient hospitalizations such as unplanned readmissions represents a major component of the cost of cancer care, as patients with cancer exhibit higher rates of hospitalization and unplanned readmissions compared to the general population.(8-12) In the United States (US) healthcare system, unplanned readmissions in the general population alone are estimated to incur expenses ranging from 15 to 20 billion dollars annually.(13) Cancer itself and the complications arising from anti-cancer treatments can pose various post-discharge challenges.(14) Hospitalized oncology patients, often older, exhibit locally advanced or metastatic disease, malnutrition, substantial symptom burden, varying degrees of dependency, and multiple comorbidities.(14-16) Consequently, reducing unplanned hospital readmissions has the potential to alleviate healthcare costs, enhance healthcare quality, and improve the overall patient experience.(17,18)
Prediction represents an effective approach to mitigate unplanned readmissions, and while validated methods such as the LACE and HOSPITAL scores exist for the general population, they demonstrate limited performance when applied to patients with cancer.(19-22) Consequently, there is a need for cancer-specific stratification tools to assess readmission risk. To address this, recent advancements in the field have embraced the utilization of Machine Learning (ML) techniques, which possess the capability to handle the growing volume of diverse healthcare data and seamlessly integrate with electronic medical records.(23-28) Machine learning models have demonstrated superior performance compared to conventional models commonly employed for the general population.(23-28)
Our group has recently developed a cancer-specific ML model, designed and validated using data from a large hybrid academic-community practice in the US, that has been shown to perform well in predicting unplanned 30-day readmissions.(29) However, to the best of our knowledge, there is currently a lack of models specifically developed or validated for middle-income countries. We hypothesize that many of the factors identified in our US-based model are also significant predictors in the Brazilian population.
OBJECTIVE
Therefore, the main objective of this study is to construct machine learning models (a "48-hour" model, which includes data from the first 48 hours after admission, and a "discharge" model, which includes data from the entire hospitalization) to predict 30-day unplanned readmissions in patients with cancer treated at a private hospital in Brazil.
METHODS
Study setting
The study was conducted at Hospital Israelita Albert Einstein, located in São Paulo, Brazil. Einstein is a 600-bed facility that provides comprehensive care, ranging from secondary to quaternary services, within the private healthcare sector.
Data source and study design
This retrospective cohort study utilized data extracted from electronic medical records (EMR), information sourced from the oncology department, and administrative database records pertaining to medical admissions at Einstein spanning from July 2018 to August 2023.
We included admission records for hospitalizations lasting longer than 24 hours with a corresponding International Classification of Diseases (ICD)-10 diagnosis of solid tumors. Admissions of patients under the age of 18 years, transfers to other facilities, voluntary discharges, in-hospital deaths, and missing 30-day readmission data were excluded (Table 1S, Supplementary Material). Each hospitalization was treated as an independent index admission. Thus, a single patient with multiple admissions may contribute multiple rows to the dataset, with each row corresponding to a distinct hospitalization.
The Institutional Ethics Committee approved the study protocol of the Hospital Israelita Albert Einstein, CAAE: 54221421.1.0000.0071; #5.685.205, waiving the informed consent requirement due to the low confidentiality breach risk, further reduced by data pseudonymization.
Outcome
The primary outcome was a 30-day unplanned hospital readmission, defined as a nonelective readmission (therefore, a hospitalization categorized as trauma, emergency, or of an urgent nature in the EMR) that occurred within 30 days from the last discharge.(29)
Covariates
With an aim to develop generalizable models, we incorporated an array of covariates that are readily accessible from common EMR and administrative databases. These covariates encompassed a diverse spectrum, including sociodemographic parameters, admission-specific details, vital sign recordings, prognostic risk scores, diagnostic tests, and medical procedures conducted, blood test results, and information spanning the six months antecedent to the index admission. Admission-specific covariates included the cause of admission, admission categorization, ICD-10 diagnostic codes, vital sign profiles, and other pertinent factors (Table 2S, Supplementary Material).
Continuous and integer covariates were summarized using statistical metrics including mean, standard deviation, median, and minimum and maximum values. For categorical variables, we used one-hot encoding to convert them into dummy variables.(30)
Statistical analysis
The data were stratified based on the occurrence of 30-day unplanned readmissions and were presented as absolute values and percentages for categorical variables, together with mean and standard deviation (SD) for normally distributed continuous variables, and median and interquartile range (IQR) for non-normally distributed continuous variables. Categorical variable comparisons were conducted using the Pearson χ2 test. Data distribution assumptions for continuous variables were checked through histograms and the Kolmogorov-Smirnov test. Subsequently, Student's t-tests were applied for normally distributed factors, and nonparametric Kruskal-Wallis tests were used for non-normally distributed factors.
Covariates that exhibited constant values (with >95% of passages having identical values), continuous variables with more than 20% missing data, categorical variables with more than 2% missing values, and outliers (identified through histograms and box plots, based on clinical implausibility) were excluded from the analysis. A p<0.05 was considered statistically significant.
Data split
Data stratification was performed based on the study outcome, using patient records for this purpose. To maintain data integrity and prevent any risk of data leakage, we ensured that a patient's record did not concurrently appear in both the training and testing datasets.(31) In other words, if a patient had multiple admissions, each distinct encounter was exclusively assigned to either the training or testing dataset, but not both. Subsequently, the data was randomly divided to ensure that the distribution across two or more datasets accurately represented the overall dataset.
The dataset was split into approximately 80% for training and 20% for testing. The encounters and their corresponding patient records used for testing were consistent for both the 48-hour and discharge models. During the modeling phase, we implemented a repeated stratified cross-validation strategy to fine-tune the readmission models.(32,33) This approach involved dividing the training dataset into "k" parts or "folds" and repeating the process "n" times. In each iteration, the model is trained on k-1 parts and validated on the remaining fold. In total, we employed five folds and ten repetitions, resulting in 50 iterations.
Algorithms, and hyperparameter optimization
We tested five supervised ML algorithms to develop the predictive models: logistic regression, random forest (an ensemble of decision trees known for its robustness and ability to prevent overfitting), LightGBM (an optimized Gradient Boosting implementation designed for memory efficiency and handling large datasets), ExtraTree (similar to random forest but with an extra level of randomness in node split point selection), and HistGradientBoosting (an efficient variant of Gradient Boosting using histograms to discretize the input space, particularly suitable for large datasets).(34)
Each algorithm has specific hyperparameters (predefined settings guiding the algorithm's training process) that need optimization to enhance model accuracy and efficiency.(35) Manually selecting the ideal hyperparameters can be a complex and time-consuming task due to the wide range of possible combinations. To automate and optimize this process, we used the NGOpt optimization algorithm, which conducts a structured search in the hyperparameter space to find the combination maximizing the model's performance.(36) The algorithm employs an iterative approach that integrates Bayesian estimation, gradient, and evolutionary strategies, allowing it to dynamically adapt and effectively explore and adjust hyperparameters.(36)
Our optimization criterion was the Fβ-Score, with β=2.(37) We chose this metric due to the data imbalance in the outcome. The value of β=2 was selected to give more weight to sensitivity (recall) at the expense of precision. This decision prioritizes the correct identification of all readmission cases (increasing recall), even if it may result in more false positives (decreasing precision). This approach is particularly important in medical contexts, where it is preferable to err on the side of caution, generating false positives, rather than missing cases, which would result in false negatives.(29,38)
Feature selection
The goal of this stage was to identify and retain variables with the highest predictive relevance, eliminating those whose contribution to the model is minimal.(39,40) This process also helps reduce the model's complexity, improving interpretability and facilitating the deployment and operationalization process.(39,40) The methodology was applied to each of the study's algorithms.
We used an iterative methodology based on SHAP Values (SHapley Additive exPlanations), which provide a metric of each variable's contribution to the model's predictions.(41) This strategy offers an efficient explanatory insight into the impact of variables on ML model predictions.
The feature selection process was conducted using SHAP values in conjunction with stratified five-fold training. During each modeling iteration, the model was fitted using previously optimized hyperparameters, and the importance of each variable was assessed by averaging the absolute SHAP values on the validation data. Subsequently, the average of these values was calculated for each variable across all iterations. Variables with SHAP values above zero were selected and ranked in descending order of importance. We then implemented an iterative process to assess and remove variables that exhibited high correlation with other more important variables, following the SHAP value ranking. The variable correlation was determined using the Pearson coefficient for numerical variables and the Cramér-V coefficient for categorical variables. The correlation threshold was 0.8. Variables that displayed a correlation above this threshold with more important variables according to SHAP values were removed from the model.
Next, we applied the Recursive Feature Elimination method, using the average of absolute SHAP values to evaluate variable importance.(42,43) In this iterative method, the model was initially fitted with all variables, and after repeated five-fold execution, the removal of the variable with the lowest average SHAP value was considered. This removal was only executed if it resulted in an improvement in the average Fβ-Score metric. The process continued until the removal of additional variables no longer resulted in an improvement in the Fβ-Score.
After concluding the variable selection process, we conducted a second hyperparameter optimization, now with the reduced set of variables. This final step aimed to enhance the calibration of hyperparameters for the set after feature selection, maximizing the model's performance.
Performance metrics and explainability
The performance of the models was analyzed by applying multiple evaluation metrics, all calculated individually for each iteration during the cross-validation process, as well as for the isolated test set at the beginning of the study.(44,45)
Firstly, we used Precision, which measures the proportion of positive predictions correctly identified by the model.(44) We followed this with the assessment of Recall, which expresses the proportion of true positive cases correctly identified by the model.(44) To consolidate these two metrics, we calculated the F1-Score, which is the harmonic mean of Precision and Recall.(44) The F1-Score provides a balanced performance measure in situations where classes are unevenly distributed. Recognizing the importance of placing more emphasis on Recall in our context, we also computed the Fβ-Score, with β=2 (implying that Recall is twice as important as Precision in the harmonic mean).
To assess the trade-off between Precision and Recall, we turned to the PRAUC metric (Area under the Precision-Recall Curve).(38) A larger area under this curve indicates a better balance between Precision and Recall. Additionally, we used the ROC-AUC (Area under the Receiver Operating Characteristic Curve) to understand the model's ability to distinguish between readmission and non-readmission.(45,46) A higher value for this metric indicates greater effectiveness of the model in class differentiation.(46)
Finally, we calculated the Brier Score to quantify the accuracy of the probabilities predicted by the model.(45) This score measures the discrepancy between predicted probabilities and actual results, with a lower score indicative of better predictions.(45)
For metrics that depend on a threshold (Precision, Recall, F1, and Fβ-Score) to be calculated, the cutoff was determined using the Youden method.(47) The Youden method is used to determine the cutoff that optimizes the balance between Sensitivity (Recall) and Specificity in the ROC curve.(47)
The optimal models for both the "48 hours" and "discharge" predictions were selected by balancing the best median performance across all evaluated metrics for each ML method. Model explainability was assessed using SHAP scores (SS), which quantify the contribution of each feature to an individual patient's predicted risk.(41) In simple terms, each prediction starts from a baseline value, and the SHAP scores indicate how much each feature increases or decreases the predicted risk relative to that baseline.(48) Mathematically, a prediction, f(x), can be expressed as a fixed base value plus the sum of the SHAP values: (48) For example, if the baseline predicted risk of readmission is 10%, a patient with a history of multiple emergency visits might have a SHAP score of +15% for that feature, increasing their predicted risk to 25%. Conversely, a feature with a SHAP score of −5% would reduce the predicted risk to 20%.
In addition, we performed Decision Curve Analysis to assess the clinical utility of each selected model across a range of threshold probabilities, with a clinical focus on identifying patients at higher risk for the outcome. Given this objective, we prioritized higher sensitivity to minimize missed cases. Furthermore, model performance was evaluated on an independent holdout test set following probability calibration.
Software and packages
The study was performed in Python 3.10.6 with the following libraries: sickit-learn 1.2.2, scipy 1.10, LightGBM 3.3.5, XGBoost 1.7.5, Nevergrad v0.11.0 and SHAP 0.41.(49)
RESULTS
Population
We analyzed 3,728 admissions from 1,573 patients (Table 1; Figure 1). The median age was 65 years (IQR, 54-76). Most admissions were from male cancer patients (51%). The median Charlson comorbidity score was 5 (IQR 3-6). The most frequent solid tumor diagnosis was gastrointestinal tract cancer (32.38%). Since their cancer diagnosis, 67.74% of patients received radiotherapy, whereas 84.53% underwent chemotherapy. Most admissions were classified as urgent (51.72%). The median length of stay was four days (IQR 2-8). The unplanned 30-day readmission rate for the entire cohort was 21.13%.
CONSORT diagram illustrating patient exclusions based on each criterion, leading to the final analyzed cohort
When comparing patient characteristics (Table 1), we found that, considering data obtained up to the index admission, patients who experienced a 30-day unplanned readmission, compared with those who did not, exhibited the following: lower rates of surgical admissions (20.2% versus 26.7%, p<0.001), higher rates of urgency admissions (70.9% versus 26.7%, p<0.001), a longer length of stay in days (median of 5 [IQR 3-10] versus 4 [IQR 2-7], p<0.001), an extended length of stay in previous admissions (median of 3 [IQR 0-6] versus 0 [IQR 0-4], p<0.001), a higher median of previous admissions (1 [IQR 0-2] versus 0 [IQR 0-2], p<0.001), a higher median of visits to the emergency department (ED) in the last six months (1 [IQR 0-2] versus 0 [IQR 0-1], p<0.001), higher median Charlson scores (5 [IQR 3.75-7] versus 5 [IQR 3-6], p=0.01), higher median LACE index (12 [IQR 9-14] versus 9 [IQR 7-12], p<0.001), higher rates of digestive organ neoplasia (36.8% versus 31.2%, p=0.003), and higher rates of radiotherapy (85% versus 79.8%, p=0.001).
Model with covariates from the first 48 hours after admission (48-hour model)
The Random Forest method demonstrated the most well-balanced performance for the 48-hour model (Table 2 and Table 3S, Figure 1S, Figure 2S, Supplementary Material).
Performance metrics of the ML algorithms that performed best in predicting 30-day unplanned readmission in the "48-hour" model and the "discharge" model
The top 10 predictors of an unplanned 30-day readmission, ranked by the Random Forest 48-hour model (Figure 2), included the following: (a) ED visits in the last six months (SS=0.074); (b) Emergency or urgency index admission (SS=0.049); (c) Maximum lymphocyte value (SS=0.043); (d) Mean sodium value (SS=0.023); (e) Mean Red Cell Distribution Width (RDW) value (SS=0.019); (f) Mean lymphocytes value (SS=0.012); (g) Mean urea value (SS=0.011); (h) Minimum hemoglobin value (SS=0.008); (i) Minimum heart rate value (SS=0.006); (j) Colorectal cancer diagnosis (SS=0.006).
SHAP (SHapley Additive exPlanations) analysis from the "48-hour" Random Forest model, ranking the top-20 predictors of 30-day Unplanned Readmission in patients with cancer. Positive SHAP values (on the right side of the line) favor the outcome. The color gradient indicates the feature values/categories
Model with covariates from the entire admission (discharge model)
The LightGBM method demonstrated the most well-balanced performance for the discharge model (Table 2 and Table 3S, Figures 1S and 2S, Supplementary Material).
The top 10 predictors of an unplanned 30-day readmission, ranked by the LightGBM discharge model, were (Figure 3): (a) ED visits in the last six months prior to index admission (SS=0.053); (b) Mean lymphocyte values (SS=0.043); (c) Absolute Lymphocytes value at discharge (SS=0.031); (d) Emergency or urgency index admission (SS=0.029); (e) Mean Gamma-glutamyl transferase (GGT) values (SS=0.028); (f) Maximum RDW value (SS=0.001); (g) Absolute Monocyte value at discharge (SS=0.001); (h) GGT outside the normal range (SS=0.001); (i) Minimum hematocrit value (SS=0.001); (j) Total number of GGT values outside the normal range (SS=0.001).
SHAP (SHapley Additive exPlanations) analysis from the "discharge" LightGBM model, ranking the top-20 predictors of 30-day Unplanned Readmission in patients with cancer. Positive SHAP values (on the right side of the line) favor the outcome. The color gradient indicates the feature values/categories
DISCUSSION
To the best of our knowledge, this is the first study to build two distinct ML models for predicting 30-day unplanned readmissions in patients with cancer in Brazil or in other middle-income countries. Using data from a private institution in the country, we developed a "48-hour" model and a "discharge" model. Our results show that prior ED visits within the past six months, laboratory values (including lymphocyte count, GGT, RDW, hemoglobin, sodium, monocyte count, hematocrit, and urea), and vital signs (such as heart rate) are key predictors of 30-day unplanned readmissions in this population. These two predictive models demonstrated good performance and could be utilized to help identify cancer patients at higher risk of unplanned readmissions, who might benefit from targeted monitoring and closer follow-up.
This project builds upon a 30-day unplanned readmission model developed and published by our group for the US population, while adapting it to the Brazilian context.(29) Brazil and the US have distinct cancer epidemiology and different profiles in terms of social determinants of health (SDOH), resulting in Brazilian cancer patients facing distinct barriers and adversities compared to their US counterparts.(50-52) Unlike the US model, this current Brazilian model did not include SDOH data due to its unavailability, though the US model showed that including SDOH data did not improve prediction accuracy.(29) While the US model incorporated data from the entire index admission for each patient, the Brazilian models focused on admissions rather than individuals and were stratified into two models: one using data from the first 48 hours and the other using data from the admission time only.(29) The ML approach that performed best in the Brazilian discharge model was LightGBM, which also had the top performance in the US model.(29) Both models identified prior unplanned readmissions and specific lab data (anion gap, hematocrit, platelets, hemoglobin, sodium, and mean corpuscular hemoglobin) as key predictors of 30-day unplanned readmissions.(29) However, the US model also identified additional predictors, such as the Charlson Comorbidity Index, discharge site, percentage of appointments attended, and the number of medications administered during admission.(29) Furthermore, the US model demonstrated better performance with an AUC of 0.80 compared to 0.70 for both the Brazilian discharge and 48-hour models.(29) Nevertheless, these results should be interpreted with caution, as the models were developed using different methodologies and distinct datasets.
In the Brazilian population, older patients with cancer have been shown to have an approximately three-fold higher risk of 30-day unplanned readmission, and cancer diagnosis was the only significant predictor of this outcome in multivariable regression models.(53) The same study reported a 30-day unplanned readmission rate of 12.5% in the analyzed population, which included both cancer and non-cancer patients.(53) Among patients with cancer, a 30-day readmission rate of 33.5% was reported at a Brazilian tertiary cancer center.(54) Our study reports a 30-day unplanned readmission rate of 21.1%, consistent with the 21.3% reported in our US model study, and aligns with the literature, which indicates that unplanned readmission rates in cancer patients can reach as high as 30%.(29)
Unplanned readmissions in those diagnosed with cancer are influenced by demographic and clinical factors, including age, race, ethnicity, insurance status, comorbidities, cancer type, cancer stage, mental health conditions, and length of stay.(55-57) A retrospective cohort study conducted at a tertiary cancer center in São Paulo, Brazil, found that among patients diagnosed with solid tumors, unplanned admissions were characterized by a mean age of 62 years, with the majority being female (51.6%).(54) These patients had a median Charlson Comorbidity Index of 6 (IQR 4-6), and unplanned admissions were more common among those with breast cancer, followed by colon cancer, and among patients undergoing systemic treatment.(54) The study also revealed that the most common symptoms at admission were pain, nausea, and dyspnea, with a median length of stay of six days (IQR 3-10), and approximately 50% of patients were readmitted within 90 days.(54) Our demographic findings are consistent with these results, showing similar patterns in patients with a 30-day unplanned readmissions, particularly in terms of age, Charlson score, length of stay, and cancer type.
Despite evidence to the contrary, neither of our models suggested that demographic factors influence unplanned hospital readmissions because demographic information was not among the key predictors.(55-57) Instead, ED visits in the last six months, laboratory values, and vital signs emerged as the top predictors of 30-day unplanned readmissions in cancer patients in Brazil. The lead predictive performance of ED visits in the last six months may reflect "high-utilizers" or "super-utilizers" patients with high needs and extensive healthcare utilization, accounting for a significant portion of ED visits, hospitalizations, and readmissions.(58) This may also represent patients whose cancer is progressing, worsening their health and increasing their susceptibility to conditions that lead to admissions and subsequent unplanned readmissions.(59) The importance of laboratory values and vital signs aligns with literature showing that, in patients receiving systemic cancer treatment, abnormal lab results are linked to a higher risk of hospitalization.(16,60,61) Our study adds to this by demonstrating that the timing of when a lab result or vital sign is recorded during admission can influence its predictive weight for a 30-day unplanned readmission. It is interesting that RDW was identified by the model as a significant laboratory factor given that prior research has shown RDW values to have a negative correlation with lifespan in murine studies evaluating the impact of dietary restrictions on lifespan.(62)
It is noteworthy that Brazil has a dual healthcare system composed of the universal public system, the Sistema Único de Saúde (SUS), and a supplementary private sector.(63) Approximately 70-75% of the Brazilian population relies exclusively on SUS for healthcare services, whereas only about 25% have access to private health insurance, which is generally associated with people holding higher socioeconomic status.(64-66) Consequently, patients treated in private hospitals such as Einstein may differ from the broader Brazilian population in socioeconomic characteristics and access to healthcare resources. Compared with many public or community hospitals across Brazil that predominantly serve SUS-dependent populations, Einstein functions as a high-complexity center with greater technological resources and access to specialized care. In this regard, the institutional structure and clinical capabilities of Einstein may resemble those of large academic medical centers in high-income countries, including the US.(67) Therefore, the results of this study should be interpreted with caution in the context of other institutions or populations.
Our study has several limitations. Despite employing multiple approaches to minimize model bias (such as data splitting, cross-validation, testing multiple ML methodologies, Recursive Feature Elimination) the models were not externally validated. Additionally, although we used the Fβ-Score, the imbalance between readmissions and non-readmissions may have biased record selection (reflecting a high rate of "high-utilizers") and inflated model performance. Social and bureaucratic factors (e.g., marital status, social support, health insurance, and reimbursement policies) may influence decisions to admit or readmit patients and were not accounted for in our models. The single-center, private-practice setting may also have biased the results toward a population with better socioeconomic and health conditions. Furthermore, some patients may have been lost to follow-up or sought care at other institutions. The use of retrospective data limited the available covariates, and some important factors, such as SDOH, were either unavailable or had a high rate of missing data. The use of EMR data may contain inconsistencies and missing information related to the data entry process and procedures (e.g., regarding staging information, which could not be included in the study due to the high rate of missingness [>90%]). The use of ICD codes to define cancer types may lead to underrepresentation and inconsistencies.
CONCLUSION
This study developed two distinct ML models (the "48-hour model" [which incorporates data from the first 48 hours of admission], and the "discharge model" [which includes data from the entire admission]) to predict 30-day unplanned readmissions in cancer patients in Brazil, using commonly available data. The models showed good performance and highlighted the importance of previous emergency department visits, laboratory values, and vital signs as predictors of this outcome. Additionally, the timing of laboratory or vital signs impacted their predictive weight. From a clinical practice perspective, while external validation is needed, these models could be implemented (as standalone tools or integrated into electronic medical records) to identify patients at high risk for 30-day unplanned readmission. This would enable providers to develop personalized care strategies to mitigate risk, such as closer follow-up through telemedicine, the use of remote monitoring tools, and/or multidisciplinary home care. Future research should focus on the external validation of our models, prospective design and implementation, multi-center studies, larger cohorts, the inclusion of a broader range of covariates, the integration of social determinants of health data, and the evaluation of implementation strategies.
DATA AVAILABILITY
The Hospital Israelita Albert Einstein database is available at the institution and has access restricted to researchers with IRB approval.
ACKNOWLEDGMENTS
Nickolas Stabellini was supported through funding from the Sociedade Beneficente Israelita Brasileira Albert Einstein on the program "Marcos Lottenberg & Marcus Wolosker International Fellowship for Physicians Scientist - Case Western."
REFERENCES
- 1 Sung H, Ferlay J, Siegel RL, Laversanne M, Soerjomataram I, Jemal A, et al. Global Cancer Statistics 2020: GLOBOCAN Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries. CA Cancer J Clin. 2021;71(3):209-49.
-
2 World Health Organization (WHO). Global Health Estimates: Leading causes of death. Geneva: WHO;. [cited 2023 July 12]. Available from: https://www.who.int/data/gho/data/themes/mortality-and-global-health-estimates/ghe-leading-causes-of-death
» https://www.who.int/data/gho/data/themes/mortality-and-global-health-estimates/ghe-leading-causes-of-death -
3 World Health Organization (WHO). Global Health Estimates. Life expectancy and leading causes of death and disability. Geneva: WHO; [cited 2023 July 12]. Available from: https://www.who.int/data/gho/data/themes/mortality-and-global-health-estimates
» https://www.who.int/data/gho/data/themes/mortality-and-global-health-estimates -
4 Instituto Brasileiro de Geografia e Estatística (IBGE).2022 Census. Rio de Janeiro: IBGE; [citado 2023 Jul 12]. Disponível em: https://www.ibge.gov.br/en/statistics/social/population/22836-2020-census-censo4.html
» https://www.ibge.gov.br/en/statistics/social/population/22836-2020-census-censo4.html - 5 Santos MO, Lima FC, Martins LF, Oliveira JF, Almeida LM, Cancela MC. Estimativa de Incidência de Câncer no Brasil, 2023-2025. Rev Bras Cancerol. 2023 6;69(1):1.
- 6 Committee on Improving the Quality of Cancer Care: Addressing the Challenges of an Aging Population; Board on Health Care Services; Institute of Medicine. Delivering High-Quality Cancer Care: Charting a New Course for a System in Crisis. Levit L, Balogh E, Nass S, Ganz PA, editors. Washington (DC): National Academies Press (US); 2013 Dec 27.
- 7 Mariotto AB, Yabroff KR, Shao Y, Feuer EJ, Brown ML. Projections of the cost of cancer care in the United States: 2010-2020. J Natl Cancer Inst. 2011;103(2):117-28.
- 8 Bekelman JE, Halpern SD, Blankart CR, Bynum JP, Cohen J, Fowler R, et al.; International Consortium for End-of-Life Research (ICELR). Comparison of Site of Death, Health Care Utilization, and Hospital Expenditures for Patients Dying With Cancer in 7 Developed Countries. JAMA. 2016;315(3):272-83.
- 9 Graham KL, Auerbach AD, Schnipper JL, Flanders SA, Kim CS, Robinson EJ, et al. Preventability of Early Versus Late Hospital Readmissions in a National Cohort of General Medicine Patients. Ann Intern Med. 2018;168(11):766-74.
- 10 Manzano JM, Lin H, Zhao H, Halm J, Suarez-Almazor ME. Derivation and Validation of the Cancer READMIT Score: a readmission risk scoring system for patients with solid tumor malignancies. JCO Oncol Pract. 2022;18(1):e117-28.
- 11 Brooks GA, Li L, Sharma DB, Weeks JC, Hassett MJ, Yabroff KR, et al. Regional variation in spending and survival for older adults with advanced cancer. J Natl Cancer Inst. 2013;105(9):634-42.
-
12 The American Cancer Society (ACS). Cancer Facts & Figures 2022. American Cancer Society. Hagerstown: ACS; [cited 2022 Jul 14]. Available from: https://www.cancer.org/research/cancer-facts-statistics/all-cancer-facts-figures/cancer-facts-figures-2022.html
» https://www.cancer.org/research/cancer-facts-statistics/all-cancer-facts-figures/cancer-facts-figures-2022.html - 13 Jencks SF, Williams MV, Coleman EA. Rehospitalizations among patients in the Medicare fee-for-service program. N Engl J Med. 2009;360(14):1418-28.
- 14 Guven DC, Ceylan F, Cakir IY, Cesmeci E, Sayinalp B, Yesilyurt B, et al. Evaluation of early unplanned readmissions and predisposing factors in an oncology clinic. Support Care Cancer. 2021;29(7):4159-64.
- 15 Mohile SG, Fan L, Reeve E, Jean-Pierre P, Mustian K, Peppone L, et al. Association of cancer with geriatric syndromes in older Medicare beneficiaries. J Clin Oncol. 2011;29(11):1458-64.
- 16 Brooks GA, Kansagra AJ, Rao SR, Weitzman JI, Linden EA, Jacobson JO. A clinical prediction model to assess risk for chemotherapy-related hospitalization in patients initiating palliative chemotherapy. JAMA Oncol. 2015;1(4):441-7.
- 17 Malcolm MP, Middleton A, Haas A, Ottenbacher KJ, Graham JE. Variation in facility-level rates of all-cause and potentially preventable 30-day hospital readmissions among medicare fee-for-service beneficiaries after discharge from postacute inpatient rehabilitation. JAMA Netw Open. 2019;2(12):e1917559.
- 18 Bell JF, Whitney RL, Reed SC, Poghosyan H, Lash RS, Kim KK, et al. Systematic Review of Hospital Readmissions Among Patients With Cancer in the United States. Oncol Nurs Forum. 2017;44(2):176-91.
- 19 Donzé JD, Williams MV, Robinson EJ, Zimlichman E, Aujesky D, Vasilevskis EE, et al. International validity of the hospital score to predict 30-day potentially avoidable hospital readmissions. JAMA Intern Med. 2016;176(4):496-502.
- 20 van Walraven C, Dhalla IA, Bell C, Etchells E, Stiell IG, Zarnke K, et al. Derivation and validation of an index to predict early death or unplanned readmission after discharge from hospital to the community. CMAJ. 2010;182(6):551-7.
- 21 Robinson R, Hudali T. The HOSPITAL score and LACE index as predictors of 30 day readmission in a retrospective study at a university-affiliated community hospital. PeerJ. 2017;5:e3137.
- 22 Jones SL, Cheon O, Manzano JM, Park AK, Lin HY, Halm JK, et al. Comparison of LACE and HOSPITAL Readmission Risk Scores for CMS Target and Nontarget Conditions. Am J Med Qual. 2022;37(4):299-306.
- 23 Beam AL, Kohane IS. Big Data and Machine Learning in Health Care. JAMA. 2018;319(13):1317-8.
- 24 Chen JH, Asch SM. Machine learning and prediction in medicine - beyond the peak of inflated expectations. N Engl J Med. 2017;376(26):2507-9.
- 25 Huang Y, Talwar A, Chatterjee S, Aparasu RR. Application of machine learning in predicting hospital readmissions: a scoping review of the literature. BMC Med Res Methodol. 2021;21(1):96.
- 26 Donzé J, Aujesky D, Williams D, Schnipper JL. Potentially avoidable 30-day hospital readmissions in medical patients: derivation and validation of a prediction model. JAMA Intern Med. 2013;173(8):632-8.
- 27 Min X, Yu B, Wang F. Predictive modeling of the hospital readmission risk from patients’ claims data using machine learning: a case study on COPD. Sci Rep. 2019;9(1):2362.
- 28 Morgan DJ, Bame B, Zimand P, Dooley P, Thom KA, Harris AD, et al. Assessment of machine learning vs standard prediction rules for predicting hospital readmissions. JAMA Netw Open. 2019;2(3):e190348.
- 29 Stabellini N, Nazha A, Agrawal N, Huhn M, Shanahan J, Hamerschlak N, et al. Thirty-day unplanned hospital readmissions in patients with cancer and the impact of social determinants of health: a machine learning approach. JCO Clin Cancer Inform. 2023;7(7):e2200143.
- 30 Hancock JT, Khoshgoftaar TM. Survey on categorical data for neural networks. J Big Data. 2020;7(1):28.
- 31 Lones MA. Avoiding common machine learning pitfalls. Patterns. 2024; 5(10):101046.
- 32 Stone M. Cross-validatory choice and assessment of statistical predictions. J R Stat Soc Series B Stat Methodol. 1974;36(2):111-33.
- 33 Geisser S. The predictive sample reuse method with applications. J Am Stat Assoc. 1975;70(350):320-8.
- 34 Sarker IH. Machine learning: algorithms, real-world applications and research directions. SN Comput Sci. 2021;2(3):160.
-
35 Agrawal T. Hyperparameter Optimization in Machine Learning: Make Your Machine Learning and Deep Learning Models More Efficient. Berkeley, CA: Apress; 2021 [cited 2023 Nov 2]. Available from: http://link.springer.com/10.1007/978-1-4842-6579-6 doi:10.1007/978-1-4842-6579-6
» https://doi.org/10.1007/978-1-4842-6579-6» http://link.springer.com/10.1007/978-1-4842-6579-6 - 36 Bennet P, Doerr C, Moreau A, Rapin J, Teytaud F, Teytaud O. Nevergrad: black-box optimization platform: ACM. 2021;14(1):8-15.
-
37 scikit-learn. [cited 2026 Apr 22]. fbeta_score. Available from: https://scikit-learn/stable/modules/generated/sklearn.metrics.fbeta_score.html
» https://scikit-learn/stable/modules/generated/sklearn.metrics.fbeta_score.html - 38 Saito T, Rehmsmeier M. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS One. 2015;10(3):e0118432.
- 39 Pudjihartono N, Fadason T, Kempa-Liehr AW, O’Sullivan JM. A review of feature selection methods for machine learning-based disease risk prediction. Front Bioinform. 2022;2:927312. Review.
- 40 Cai J, Luo J, Wang S, Yang S. Feature selection in machine learning: A new perspective. Neurocomputing. 2018;300:70-9.
- 41 Zahedipour M, Saniee Abadeh M, Shojaei S. Alzheimer's disease prediction via an explainable CNN using genetic algorithm and SHAP values. PLoS One. 2026;21(1):e0337800.
-
42 scikit-learn. [cited 2023 Nov 2]. 1.13. Feature selection. Available from: https://scikit-learn/stable/modules/feature_selection.html
» https://scikit-learn/stable/modules/feature_selection.html -
43 Applied Predictive Modeling. SpringerLink. [cited 2023 Nov 2]. Available from: https://link.springer.com/book/10.1007/978-1-4614-6849-3
» https://link.springer.com/book/10.1007/978-1-4614-6849-3 - 44 Hicks SA, Strümke I, Thambawita V, Hammou M, Riegler MA, Halvorsen P, et al. On evaluation metrics for medical applications of artificial intelligence. Sci Rep. 2022;12(1):5979.
- 45 Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, et al. Assessing the performance of prediction models: a framework for traditional and novel measures. Epidemiology. 2010;21(1):128-38.
- 46 Zou KH, O’Malley AJ, Mauri L. Receiver-operating characteristic analysis for evaluating diagnostic tests and predictive models. Circulation. 2007;115(5):654-7.
- 47 Youden WJ. Index for rating diagnostic tests. Cancer. 1950;3(1):32-5.
- 48 Stabellini N, Dmukauskas M, Bittencourt MS, Cullen J, Barda AJ, Moore JX, et al. Social determinants of health and racial disparities in cardiac events in breast cancer. J Natl Compr Canc Netw. 2023;21(7):705-714.e17.
-
49 Python.org. [cited 2024 Sep 28]. Python Release Python 3.10.6. Available from: https://www.python.org/downloads/release/python-3106/
» https://www.python.org/downloads/release/python-3106/ - 50 Orlandini LF, Antonio MV, Espreafico CR Jr, Bosquesi PL, Poli-Neto OB, de Andrade JM, Dos Reis FJC, et al. Epidemiological Analyses Reveal a High Incidence of Breast Cancer in Young Women in Brazil. JCO Glob Oncol. 2021;7:81-88.
-
51 Nascimento I. Healthcare Systems in Brazil and the United States: A Comparative Analysis. Kennesaw State University [dissertation]. 2013. [cited 2026 Apr 29]. Available from: https://digitalcommons.kennesaw.edu/etd/567
» https://digitalcommons.kennesaw.edu/etd/567 - 52 Abdalla SM, Hernandez M, Fazaludeen Koya S, Rosenberg SB, Robbins G, Magana L, et al. What matters for health? Public views from eight countries. BMJ Glob Health. 2022;7(6):e008858.
- 53 dos Santos FS, Reis AM. Hospital readmission within 30 days of older adults hospitalized in a public hospital. Braz J Pharm Sci. 2022;58:e19099.
- 54 Hidalgo Filho CM, Lazar Neto F, Sobottka VP, Rocha JW, Stangler LT, Andrade HG, et al. Unplanned hospital admissions in patients with solid tumors in brazil: causes and progressive disease's impact on outcomes. JCO Glob Oncol. 2024;10:e2400063.
- 55 Whitney RL, Bell JF, Tancredi DJ, Romano PS, Bold RJ, Joseph JG. Hospitalization rates and predictors of rehospitalization among individuals with advanced cancer in the year after diagnosis. J Clin Oncol. 2017; 35(31):3610-7.
- 56 Burhenn P, Sun CL, Scher KS, Hsu J, Pandya P, Chui CY, et al. Predictors of hospital readmission among older adults with cancer. J Geriatr Oncol. 2020;11(7):1108-14.
- 57 Hwang S, Urbanowicz R, Lynch S, Vernon T, Bresz K, Giraldo C, et al. Toward predicting 30-day readmission among oncology patients: identifying timely and actionable risk factors. JCO Clin Cancer Inform. 2023;7(7):e2200097.
- 58 Ng SH, Rahman N, Ang IY, Sridharan S, Ramachandran S, Wang DD, et al. Characterization of high healthcare utilizer groups using administrative data from an electronic medical record database. BMC Health Serv Res. 2019;19(1):452.
- 59 Muhandiramge J, Orchard SG, Warner ET, van Londen GJ, Zalcberg JR. Functional decline in the cancer patient: a review. Cancers (Basel). 2022;14(6):6.
- 60 Enright K, Grunfeld E, Yun L, Moineddin R, Ghannam M, Dent S, et al. Population-based assessment of emergency room visits and hospitalizations among women receiving adjuvant chemotherapy for early breast cancer. J Oncol Pract. 2015;11(2):126-32.
- 61 Handley NR, Schuchter LM, Bekelman JE. Best practices for reducing unplanned acute care for patients with cancer. J Oncol Pract. 2018;14(5):306-13.
- 62 Di Francesco A, Deighan AG, Litichevskiy L, Chen Z, Luciano A, Robinson L, et al. Dietary restriction impacts health and lifespan of genetically diverse mice. Nature. 2024;634(8034):684-92.
- 63 Paim J, Travassos C, Almeida C, Bahia L, Macinko J. The Brazilian health system: history, advances, and challenges. Lancet. 2011;377(9779):1778-97.
- 64 Portugal MF, Teivelis MP, Silva MF, Stabellini N, Fioranelli A, Szlejf C, et al. Endovascular correction of isolated descending thoracic aortic disease: a descriptive analysis of 1,344 procedures over 10 years in the public health system of São Paulo. Clinics (Sao Paulo). 2021;76:e2332.
- 65 Wolosker N, da Silva MF, Portugal MF, Stabellini N, Zerati AE, Szlejf C, et al. Epidemiological analysis of lower limb revascularization for peripheral arterial disease over 12 years on the public healthcare system in Brazil. J Vasc Bras. 2022 2;21:e20210215.
- 66 Coube M, Nikoloski Z, Mrejen M, Mossialos E. Persistent inequalities in health care services utilisation in Brazil (1998-2019). Int J Equity Health. 2023;22(1):25.
-
67 World's Best Hospitals 2026. Top 250. Newsweek Digital; 2026 [cited 2026 Mar 13]. Available from: https://rankings.newsweek.com/worlds-best-hospitals-2026
» https://rankings.newsweek.com/worlds-best-hospitals-2026








