Editor’s introduction
The study analyzed medical claims data to predict all-cause readmissions within 30 days of discharge. It compared four models—Logistic Regression, Random Forest, Support Vector Machines, and a model using Principal Component Analysis—evaluating performance via the Area Under Curve (AUC) metric. The Random Forest model achieved the highest AUC, indicating superior predictive performance.
Introduction
More than a trillion dollars are being spent annually in the healthcare industry partly due to the latest technology not being used to its fullest in healthcare. Machine Learning techniques can have a huge impact in reducing the healthcare costs that are expected to increase in the coming years. Patients’ readmissions to the hospitals are one of the reasons for the increasing costs in healthcare. Readmissions often occur due to poor treatment provided to the patients, more specifically, they are often caused by premature discharges or communication breakdown between patients and the healthcare team while the patient is being discharged.
Unplanned Hospital Readmission is defined as an unexpected readmission to the same hospital within 28 or 30 days of being discharged. However, the literature has widely used 30 days within the context of measurement of Hospital Readmissions. Unplanned Hospital Readmission rate is considered as a performance indicator to measure a hospital’s quality of care.
Literature Survey
As per the Affordable Care Act of 2010, hospitals reimburse a partial amount to the patients readmitted to the hospital within 30 days from discharge. As these readmissions are costly and considered as an indication of poor quality, many studies have been performed to identify various factors that play crucial roles in predicting possible readmissions thereby alleviating revenue losses. As the hospital readmissions are driven by the nature of the population, a few studies involved deeper analysis to provide richer and nuanced explanation of readmissions. In one of the previous analyses on 30 day hospital readmissions, medical conditions like Chronic Obstructive Pulmonary Disorder (COPD), Total Hip Arthroplasty (THA) etc were used primarily. In this analysis, both parametric and non-parametric statistical models and machine learning techniques like Gradient Boosting, Neural Networks and Decision Trees were used and the primary metric used for performance evaluation was Area Under Curve (AUC). Another study was performed to predict 30-day hospital readmission in COPD patients. This study, apart from the medical factors contributing towards a readmission, incorporated cost and proposed several methods to directly incorporate cost into the prediction.
A few studies focussed on all-cause readmissions where predictive models were built with various types of predictors. These studies included fixed patient attributes such as morbidity burden, maternity and disability etc while most focussed on general patient attributes such as previous acute hospital stays, accumulated days, count of emergency department episodes etc. One of the studies involving prediction of all cause readmissions involved prediction of post discharge death and analysed the deterioration of model performance in population having multiple admissions per patient. A few studies that used LACE index analysed its poor peformance in some older population.
Data Description
The data for this study has been obtained from various health insurance providers in the USA. The demographics data, medical claims data and the pharmacy claims data are collected from these providers. The fields present in each of the datasets are desribed in the following sections.
Demographics Data
Demographics data is the statistical data which describes the characteristics of a population such as Age, Gender, Income, Race, Education, Employement etc. For the purpose of this study Gender, Age, Ethnicity and Scheme Type are considered as the demographic features of a person. TABLE I describes each of the above mentioned fields.
Medical Claims Data
Medical claims data is the information available in medical billing claims forms filled on behalf of a population. This information is gathered from the medical claims submitted by health care providers to the health insurers. The information obtained from these providers is at an individual claim level and consists of the following fields, Service Start Date, Service End Date, Primary Diagnosis Code, Other Diagnosis Codes, CPT Code. The description for each of these fields is given in TABLE II.
Pharmacy Claims Data
The pharmacy claims data is obtained from the health insurers. This data contains the information related to the drugs prescribed by a doctor - name of the drug, quantity, prescription date, purchase date, price of the drugs etc. For the purpose of this study, Service Date (purchase date) and the NDC Code (a unique 10-digit numeric identifier assigned to each medication) are considered. The description of these two fields is given in TABLE III.
Data Processing
In this study, we have conducted predictive modelling at the episode-level. The target variable is whether a patient was readmitted within 30 days or not after being discharged. Hence the target variable is a binary variable. The objective of this experiment is to construct predictive models to determine how various factors impact a patient’s re-hospitalization. The process of finding an episode is explained in the following paragraphs. Let us consider the Medical Claims TABLE IV, Demographics TABLE VIII and Pharmacy Claims Table TABLE VI for explaining the data processing steps.
As the medical claims data is at an individual claim level (which can be observed from TABLE IV) and not at the episode level, certain methods of identifying an admission were followed. An admission can be identified by the inpatient CPT codes (99231-99236, 99224-99226, 99281-99285, 99291-99292) and the discharge can be identified by 99238, 99239, 99217. But the discharge CPT codes are not used often and hence this method could not be used. The length of stay heuristic is followed here which states that, Two individual claims are grouped together as a part of an episode if the difference between the service end date of the first claim and the service start date of the second claim is less than 10 days.
After the admissions of each user are found, an admission is treated as a readmission if the difference between the previous admission and the current admission is less than or equal to 30 days. If a particular admission is a readmission, it is removed from the list of admissions and added to the readmission list. In our data this grouping resulted in 40,358 admissions of which 1,880 are readmissions resulting in 4.65% readmission rate.
In the medical claims TABLEIV, claim with ClaimID C2 has the inpatient CPT code. Claims C2 and C3 are grouped together as the difference between service end date and start date of the two claims is less than 10 days. Since the difference between the dates for C3 and C4 is greater than 10 days and less than 30 days, C4 is considered to be a readmission. Similary, the claims are grouped for User2 as well. The admissions table after grouping the claims using the above mentioned process is shown in TABLE V.
The predictor variables considered for this study are Comorbidities, Demographics, Length of Stay, Medications during the admission, Number of previous admissions, Number of previous emergency department admissions, Admitting Diagnosis, Number of previous hospital visits, and Admission procedures. All the predictor variables have been derived from the available data and the extraction process of each feature is explained in the following paragraphs. To illustrate the process of extracting each feature, the admissions TABLE V is considered.
Comorbidities
Comorbidity is the presence of one or more additional diseases co-occurring with a primary disease. For the purpose of this study we considered the following comorbidities - CHF, Valvular, PHTN, PVD, HTN, HTNcx, Paralysis, NeuroOther, Pulmonary, DM, DMcx, Hypothyroid, Renal, Liver, PUD, HIV, Lymphoma, Mets, Tumor, Rheumatic, Coagulopathy, Obesity, WeightLoss, FluidsLytes, BloodLoss, Anemia, Alcohol, Drugs, Psychoses, Depression. Each of these comorbidities map to a set of ICD codes. Based on the field ”Other Diagnosis Codes” in the medical claims data the comorbidities during each admission are identified. For each admission in the TABLE V, the comorbidities present are shown in Table TABLE VII.
Demographics
The demographic features considered in this study include Gender, Age Group, Ethnicity, Income Level and Scheme Type. Age group is derived by discretizing the Age into five groups Touch [0-20), Millennials [20-37), GenX [37-49), Boomers [49-68) and Swing (68+). The demographic features of each user in the admissions TABLE V are shown in TABLE VIII.
Length of Stay
The Length of Stay (LOS) of each admission is derived by subtracting the admission date (which is the service start date of the episode) from the discharge date (which is the service end date of the episode). This a numerical feature and can take values starting from 0. For each admission in the TABLE V, the length of stay is indicated in TABLE IX.
Medications
The NDC codes of the drugs taken during the admission are fetched from the pharmacy claims. These NDC codes are categorized into 100 groups using GPI level 2 categorization. For exampple, a drug with NDC Code 6057541121 will have 60 (first two digits) as its GPI level 2 category. These 100 categories take binary values.For each admission in the TABLE V, the medications taken are shown in TABLE X.
Number of Previous Admissions
Using the derived admissions data from the medical claims data, the number of previous admissions for each admission is derived by taking the count of admissions whose admission date is before the service start date of the current admission. This is a numerical feature and the value is a whole number. For each admission in the TABLE V, the number of previous admissions is shown in TABLE XI.
Number of Previous Emergency Department Admissions
The emergency department admissions are identified by the set of CPT codes 99281-99285 and these admissions are filtered from the admission data. The number of previous emergency admissions is derived by taking the count of emergency admissions whose admission date is before the service start date of the current admission. This is a numerical feature and the value is a whole number. For each admission in the TABLE V, the number of previous emergency department admissions is shown in TABLE XII.
Number of previous hospital visits
In the medical claims data, hospital visits can be identified by the following CPT Codes 99218-99223 and 99251-99254. The number of previous hospital visits is obtained by taking the count of claims whose service end date is before the service start date of the current admission. For each admission in the TABLE V, the number of previous hospital visits is shown in TABLE XIV.
Admission Procedures
The procedures taken during an admission are identified through the CPT codes. Using the start and end dates of an admission, the CPT codes from the medical claims generated between these dates are considered. As the number of CPT codes is huge, they are categorized into 242 groups using the Clinical Classification Software (CCS). The Clinical Classifications Software (CCS) procedure categorization scheme that can be employed in many types of projects analyzing data on procedures. CCS is based on the International Classification of Diseases, a uniform and standardized coding system. The procedure codes are collapsed into a smaller number of clinically meaningful categories that are sometimes more useful for presenting descriptive statistics than the individual codes. For each admission in the TABLE V, the procedures undertaken are shown in TABLE XV.
Data Modelling and Results
A key objective of this study was to construct predictive models that can predict whether a patient will be readmitted within 30 days, after being discharged from a hospital unit. After extracting the features all the categorical variables are split into multiple binary columns based on the number of levels. Multiple models with response as Readmission were built on the dataset using different prediction tools and their performances were compared. The predictive models are based on Logistic Regression, Principal Component Analysis, Random Forest and Support Vector Machines. The dataset for modelling is split into two sets (80% of the data as training set and 20% as testing set).
Logistic Regression
Two logistic regression models were built one using all the predictor variables (A) and the other using important variables given by log likelihood feature selection (B). Model A has a Train AUC of 0.716 and Test AUC of 0.663 whereas Model B has a Train AUC of 0.691 and Test AUC of 0.659. The metrics of performance are shown in TABLE XVI. These results show that the model with all variables has better performance compared to the model with important variables.
Principal Component Analysis based Regression
As the modelling ready dataset has very high number of features, Principal Component Analysis(PCA) is performed before and after feature selection on variables. After the PCA, two logistic regression models are built one without feature selection (C) and with feature selection (D). Model C yielded a Train AUC of 0.699 and a Test AUC of 0.655 whereas Model D yielded a Train AUC of 0.684 and a Test AUC of 0.660. The metrics of performance are shown in TABLE XVI.
Conclusion
Reducing the readmission rate is one of the primary actions that can help in achieving a reduction in healthcare expenses. Different strategies can be implemented using the results from predictive modelling. The ability to recognize patients at high risk of readmission is an important step to improve the quality of care. This also helps in targeting interventions to lower the risk of readmission. In this project, we built models to predict all-cause readmissions using medical claims data. Random Forest classification model had the best AUC value. As a part of future work, we aim to build predictive models focussing on specific medical conditions. Pre-index-admission and Post-index-admission data can be used along with the admission data to understand the crucial causes behind a readmission.


