A healthcare company is building a model to predict patient readmission within 30 days. They have structured electronic health records (EHR) data with 200 features. The data includes missing values, categorical variables with high cardinality (e.g., diagnosis codes), and a severe class imbalance (5% readmission). They need to deploy a model on SageMaker that is interpretable and achieves high recall for the positive class. Which combination of techniques should they use?
XGBoost handles missing values, SMOTE addresses imbalance, SHAP provides interpretability.
Why this answer
XGBoost natively handles missing values, making it well-suited for EHR data with missing entries. SMOTE addresses the severe class imbalance by generating synthetic samples of the minority class, which improves recall. SHAP feature selection provides interpretability by identifying the most influential features, and deploying as a SageMaker endpoint enables real-time predictions.
This combination directly meets the requirements of high recall and interpretability.
Exam trap
The trap here is that candidates often choose logistic regression (Option B) for interpretability without considering the practical issues of high-cardinality categorical variables and class imbalance, or they select deep learning (Option D) for its flexibility but overlook the strict interpretability requirement in healthcare.
How to eliminate wrong answers
Option B is wrong because logistic regression with one-hot encoding on high-cardinality categorical variables (e.g., diagnosis codes) leads to a massive feature explosion, causing overfitting and poor generalization; random undersampling discards majority class data, which can reduce recall for the minority class. Option C is wrong because PCA reduces dimensionality by creating uninterpretable linear combinations of features, which contradicts the interpretability requirement, and linear SVM with class weights may not capture complex interactions in EHR data, often yielding lower recall than tree-based methods. Option D is wrong because deep neural networks with embeddings are inherently less interpretable than tree-based models, making it difficult to explain predictions in a healthcare setting, and oversampling the minority class without synthetic generation can lead to overfitting.