A Log-Linear Analytics Approach to Cost Model Regularization for Inpatient Stays through Diagnostic Code Merging
Chi-Ken Lu, David Alonge, Nicole Richardson, Bruno Richard
TL;DR
This work tackles instability in high-dimensional cost modeling for inpatient stays by examining how ICD-10 code granularity affects OLS coefficient stability. It pairs explicit regularization (Ridge) with an implicit regularization mechanism achieved by truncating ICD-10 codes to fewer characters, which increases the Hessian trace $tr(\tilde{X}'\tilde{X})$ and reduces coefficient variance. A new coefficient-consistency metric $\eta$ based on Spearman correlation is introduced to quantify stability across data splits. Empirically, finer ICD-10 granularity yields higher predictive accuracy (approx. $R^2_{test}=0.41$) but lower coefficient stability, while reducing granularity improves consistency and robustness, with DRG/HCC groupings offering additional stability but varying in predictive performance. The findings provide a practical, interpretable approach to robust risk adjustment in healthcare cost modeling by leveraging implicit regularization through code aggregation, with implications for policy and clinical coding practices.
Abstract
Cost models in healthcare research must balance interpretability, accuracy, and parameter consistency. However, interpretable models often struggle to achieve both accuracy and consistency. Ordinary least squares (OLS) models for high-dimensional regression can be accurate but fail to produce stable regression coefficients over time when using highly granular ICD-10 diagnostic codes as predictors. This instability arises because many ICD-10 codes are infrequent in healthcare datasets. While regularization methods such as Ridge can address this issue, they risk discarding important predictors. Here, we demonstrate that reducing the granularity of ICD-10 codes is an effective regularization strategy within OLS while preserving the representation of all diagnostic code categories. By truncating ICD-10 codes from seven characters to six or fewer, we reduce the dimensionality of the regression problem while maintaining model interpretability and consistency. Mathematically, the merging of predictors in OLS leads to increased trace of the Hessian matrix, which reduces the variance of coefficient estimation. Our findings explain why broader diagnostic groupings like DRGs and HCC codes are favored over highly granular ICD-10 codes in real-world risk adjustment and cost models.
