* This article is based on an actual analysis project; however, in light of the confidentiality agreement (NDA) with the client, while maintaining the framework of the medical and healthcare field, specific details such as disease names and variables have been substantially altered from the actual case. We ask for your understanding in advance.
This case verified, using advanced machine-learning algorithms, how accurately the over-time change patterns of subjective symptom evaluations that patients input daily themselves (patient-reported outcomes: PRO), in a remote-monitoring system for chronic heart-failure patients, can predict the future “risk of emergency hospitalization due to acute exacerbation.”
In clinical research, the greatest obstacle when predicting serious adverse health events such as “severe deterioration,” “death,” and “emergency hospitalization” is the “extreme imbalance of the data.” In everyday monitoring data, cases that actually lead to emergency hospitalization account for only a few percent of the whole. Applying general statistical analysis or machine learning as-is to such skewed data produces a fatal flaw: the model achieves a high surface-level accuracy rate merely by predicting that “everyone is safe (will not be hospitalized),” while overlooking the dangerous signs that truly must be found.
Through this analysis, I aimed to combine cutting-edge sampling techniques for resolving extreme data imbalance with an algorithm that automatically extracts the truly important signs from a vast number of variables, and to build a high-accuracy predictive model that incorporates the complex interactions among variables. By placing at its core the random-forest method, which integrates many decision trees rather than a single decision tree, and further performing meticulous tuning through Bayesian optimization, Dr.DataScience provided solid objective evidence toward establishing an “early-warning system” that the clinical setting can truly rely on.
In this case, using the daily questionnaire data of the app (shortness of breath, fatigue, lower-limb edema, quality of sleep, etc.) transmitted daily from chronic heart-failure patients recuperating at home, what was required was to quantitatively identify “patients with what kind of symptom trajectory are prone to causing emergency hospitalization in the near future.”
Conventional alert criteria in the clinical setting tended to depend on a simple single-time-point score evaluation, such as “issue a warning if today’s shortness-of-breath score exceeds a threshold.” However, actual acute exacerbations do not occur suddenly; powerful precursors lurk within dynamic change patterns, such as “fatigue has gradually worsened over the past three days” and “not a transient shortness of breath, but a poor condition continuing for several days.” Because the provided data were daily repeated-record data, I needed to create as many as several hundred patterns of new features (evaluation variables) indicating “the degree of change over the most recent days” and “the continuity of the condition” relative to the time of last confirmation, and to identify the true risk factors among them.
The main objective of the analysis was to build a machine-learning model that can capture, with high accuracy, the extremely small number of “emergency-hospitalization events (positive cases)” among the follow-up data of several thousand patients, and to clarify which pattern of symptom trajectory (e.g., three consecutive days of worsening fatigue) is the most powerful predictor. Also, because in the medical setting too many “false alarms (false positives)” increase the burden on healthcare workers and lead to alerts being ignored, an important challenge was to discern the optimal balance between “recall,” which does not overlook patients in a dangerous state, and “precision,” which indicates the accuracy of the warnings.
This analysis used an integrated database of daily remote-monitoring data and electronic medical records collected over a long period from several thousand patients belonging to a particular wide-area medical network. To perform the analysis, I logically converted all the daily string and graded-rating data into numbers, and extracted and shaped them into a complete dataset with no missing values. The main variables analyzed were as follows.
In this case, to prevent the model’s predictive dysfunction caused by the extreme skew of the response variable and to make high-accuracy predictions from combinations of several hundred complex variables, I selected and applied the following advanced machine-learning methods and statistical approaches.
As a result of the rigorous accuracy evaluation using cross-validation, it was confirmed that setting the SMOTE-NC over-sampling multiplier excessively high (for example, 10-fold) improved the apparent accuracy on the training data but showed signs of “overfitting,” in which the predictive accuracy on unseen test data declined. As a result of analyzing the variation in the indicators in detail, the “8-fold amplification” model—which maximizes the capture rate of hospitalized patients while suppressing overfitting—was identified as the most generalizable optimal model.
The optimized random-forest model showed an extremely excellent discriminative ability of 0.91 on the evaluation index AUC (area under the ROC curve). The clinically most important “recall (the proportion of patients who actually went to emergency hospitalization who were correctly warned in advance as being at risk of hospitalization)” reached 0.76, confirming that it greatly prevents the oversight of dangerous patients. At the same time, the “precision (the proportion of patients for whom a warning was issued who actually went to emergency hospitalization)” was 0.46, proving that, compared with conventional simple-threshold alerts (whose precision often remains below 10%), it can greatly reduce the “excessive false alarms” that exhaust healthcare workers.
Furthermore, as a result of analyzing the variable importance (an index showing how much each contributed to the model’s prediction) extracted by the Boruta algorithm, it was quantitatively clarified that, more than a single day’s “worsening of the shortness-of-breath score,” the “trajectory pattern in which the shortness-of-breath score worsens in stages for three consecutive days” and the “pattern in which the worsening of lower-limb edema and the decline in quality of sleep occur in the same period” had overwhelmingly higher importance in predicting emergency hospitalization (for example, the presence of a particular continuous-worsening pattern was evaluated as having an importance score 2.61 times higher than other variables).
In this case, Dr.DataScience created a predictive model at a level usable in the field by applying the latest machine-learning approaches to the fated challenge of clinical data—”overwhelming data imbalance” that general statistical methods cannot handle.