Highlights
Public health relevance—How does this work relate to a public health issue?
- Chronic illness burden is unevenly distributed across US counties, where social, environmental, behavioral, and healthcare-related factors often interact.
- This study integrates four publicly available datasets spanning five domains—health burden, social conditions, environmental exposure, behavioral factors, and COVID-19-related measures—to characterize chronic illness vulnerability across 2911 counties.
Public health significance—Why is this work of significance to public health?
- The proposed framework combines 12 indicators across five domains to provide a multidimensional perspective on county-level vulnerability.
- Four machine-learning models and two explainability methods were used to examine the consistency and reproducibility of the composite index.
Public health implications—What are the key implications or messages for practitioners, policy makers and/or researchers in public health?
- The resulting index may assist public health agencies in identifying counties that warrant additional investigation and prioritization.
- Because the framework relies entirely on publicly available data, researchers and policymakers can periodically update the index as new data become available.
Abstract
Chronic illness burden is unevenly distributed across US counties, with some counties experiencing overlapping challenges related to healthcare access, socioeconomic disadvantage, environmental exposure, and chronic disease burden. Several multidimensional frameworks, including the Social Vulnerability Index, Environmental Justice Index, and Pandemic Vulnerability Index, have highlighted the importance of integrating multiple determinants of vulnerability. This study presents an interpretable machine learning-based multi-model framework for constructing and characterizing a county-level chronic illness vulnerability index. The framework integrates five domains: health burden, social conditions, environmental exposure, behavioral factors, and COVID-19-related measures. Four publicly available 2023 datasets were merged into a 12-feature dataset covering 2911 US counties, and a weighted domain score was used to classify counties into low-, medium-, and high-vulnerability categories. Because the class labels were constructed directly from these variables, the resulting categories should be interpreted as an author-defined composite index rather than an independent health outcome. Four machine-learning models, including Random Forest, XGBoost, MLP (Multilayer Perceptron), and TabNet, were evaluated individually and as a majority-vote ensemble. SHAP and LIME were independently applied to interpret model behavior, and the explainability analyses were restricted to model interpretation rather than causal inference. The ensemble reproduced the three-tier classification with an accuracy of 94.68% and an ROC-AUC (Receiver Operating Characteristic–Area Under the Curve) of 0.9974 on 583 held-out counties. Because the class label is a deterministic function of the same 12 features, these results should be interpreted as measures of index reconstruction rather than prediction of an independent outcome; a penalized multinomial logistic regression achieved 98.97% reconstruction accuracy, further indicating the largely linear structure of the index. COPD prevalence ranked first according to both SHAP and LIME across all four models, reflecting the weighting structure of the index rather than an independent causal effect. Six of the twelve features received identical rankings from both methods, and no feature moved more than three positions. The framework relies entirely on publicly available data and provides a reproducible approach for county-level characterization of chronic illness vulnerability.
1. Introduction
Chronic illness rates across US counties are not evenly spread. Counties in rural Appalachia, the Southeast, and some border regions report Chronic Obstructive Pulmonary Disease (COPD), obesity, and physical inactivity at rates two to three times above the national average [1,2,3]. These gaps reflect structural disadvantages that compound over time: geographic isolation limits healthcare access [2,4], poverty contributes to food and housing insecurity [5], and pollution exposure accumulates disproportionately in communities with fewer political and economic resources [6]. The result is a persistent pattern of health disparity where the counties bearing the highest chronic illness burden are the same counties with the fewest resources to address it. The COVID-19 pandemic sharpened this divide: counties with high pre-existing chronic disease burden saw much higher mortality rates, pointing to the value of identifying at-risk populations before a crisis rather than during one [7]. Composite indices are widely used to characterize population-level vulnerability and support public health decision-making [4,8,9,10].
Prior work on county-level vulnerability grew quickly after 2020. Mehta et al. [11] trained XGBoost on county demographic and health data and reached around 71% sensitivity predicting COVID-19 vulnerability in March 2020. Tiwari et al. [12] combined socioeconomic and racial disparity data into a vulnerability index and found approximately 18.3% of counties in the very high tier. McCoy et al. [3] used ensemble machine learning (ML) across health, environmental, and demographic features and found smoking prevalence to be the strongest predictor of county-level COVID-19 mortality.
Two gaps remain in the existing work based on the authors’ current understanding. First, none of the studies above combined behavioral, environmental, social, and pandemic data with four different model architectures in one framework. Second, most reported only accuracy and F1 without checking whether the features driving predictions match clinical knowledge. A model reaching 92% accuracy because it weights traffic proximity above smoking and COPD tells a public health planner nothing useful. Social disadvantage and biological vulnerability are not independent: housing instability raises stress and reduces preventive care visits, food insecurity impairs immune function, and pollution exposure accelerates lung disease. A framework that treats these as separate inputs rather than an integrated signal cannot capture how they compound in at-risk communities. Liu and Luo [13] evaluated ML models across racial, gender, and insurance subgroups and found that adding social-determinant features improved overall performance, while significant performance differences remained across many subgroups. Their findings highlight the importance of evaluating subgroup performance and potential model bias.
This paper addresses both gaps. Four publicly available datasets CDC PLACES, EPA EJScreen, CDC BRFSS (Behavioral Risk Factor Surveillance System), and the New York Times COVID-19 county dataset were merged at the county level into 12 features across five health domains for 2911 counties. Four ML models were trained: Random Forest [14], XGBoost [15], MLP, and TabNet [16]. TabNet applies sequential sparse attention to tabular data and was included to provide an attention-based neural architecture for comparison with the other model families. The four ML models were combined by majority vote. SHAP (SHapley Additive exPlanations) [17] and LIME (Local Interpretable Model-agnostic Explanations) [18] were each run on all four models, and their feature rankings were compared. PCA (Principal Component Analysis) and autoencoder compression experiments tested whether the 12 features carry redundant information. This paper extends our preliminary work by incorporating additional datasets, multiple ML models, ensemble learning, explainability analyses, and robustness assessments [19]. The main contributions are:
- A county-level dataset was constructed by integrating four publicly available 2023 data sources: CDC PLACES 2023, EPA EJScreen 2023, CDC BRFSS SMART 2023, and New York Times COVID-19 county-level records—covering 2911 counties, 12 features, and five domains (health, behavioral, social, environmental, and COVID-19-related factors).
- A framework for constructing and characterizing a county-level chronic illness vulnerability index. Because the index categories are deterministic functions of the input variables, the ML models are evaluated according to how consistently they reproduce the author-defined composite index rather than their ability to predict an independent outcome. The ensemble improves on Random Forest (p = 0.0005) according to the McNemar test and shows no significant difference from XGBoost (p = 0.6291), MLP (p = 0.0987), or TabNet (p = 0.8388).
- A comparative analysis of four ML models that evaluates the consistency of index reconstruction across different model families. Random Forest, XGBoost, MLP, and TabNet were evaluated across multiple data splits and robustness analyses to assess whether the reconstruction patterns remain stable across different learning architectures.
- A sensitivity analysis based on SHAP and LIME applied independently to all four ML models. Six of twelve features ranked identically by both methods; no feature moved more than three positions. COPD ranked first across all models and both methods. This result is consistent with the comparatively greater contribution of the health domain, since COPD prevalence is the sole variable within the highest-weighted domain of the composite index.
- Dimensionality-reduction experiments at 6, 7, and 8 principal components showed that PCA matched or exceeded the 12-feature XGBoost baseline, whereas the autoencoder produced lower performance at all three tested dimensions.
By identifying which counties carry the highest chronic illness burden and which social, behavioral, and environmental factors drive that burden, this framework gives public health agencies a data-driven basis for prioritizing resources toward the populations that face the greatest structural disadvantage and the least capacity to manage chronic disease on their own. The class label in this framework is computed from the same 12 features, so the modeling results characterize how well the index can be reconstructed rather than how well an external outcome can be forecast.
Although several previous studies developed vulnerability indices related to COVID-19 outcomes, their objectives, populations, and outcome variables differ from those considered in the present work. Consequently, these studies are not directly comparable to a county-level chronic illness vulnerability index. Nevertheless, these studies provide valuable methodological insights because they integrate heterogeneous data sources, apply machine-learning methods to geographically aggregated data, and employ explainability techniques to identify influential factors. The present study builds upon these methodological advances while focusing specifically on chronic illness vulnerability and integrating health, social, environmental, behavioral, and pandemic-related factors within a unified framework.
2. Literature Review
Prior county-level health studies have examined chronic disease burden, environmental exposure, behavioral risk, social determinants, and pandemic outcomes largely in isolation. This review covers the most relevant work across each domain and identifies what no single prior study is addressed together. From a conceptual perspective, vulnerability reflects the combined influence of disease burden, environmental exposure, susceptibility, access to care, and resilience or adaptive capacity. Existing frameworks, including the CDC/ATSDR Social Vulnerability Index (SVI), the Environmental Justice Index (EJI), the Area Deprivation Index (ADI), the County Health Rankings framework, and territorial fragility indices, emphasize different components of vulnerability. Rather than replacing these existing frameworks, the proposed index is intended to complement them by integrating multiple domains within a unified and interpretable framework.
2.1. CDC PLACES and Chronic Disease Surveillance
Greenlund et al. [2] described the PLACES methodology, which applies multilevel regression and poststratification to BRFSS survey responses from 2019–2020 to produce county-level estimates for 29 chronic disease measures across all US counties. Measures include COPD prevalence, obesity, current smoking, physical inactivity, diabetes, hypertension, and depression, all reported as age-adjusted percentages. Because PLACES estimates are generated through multilevel regression and poststratification rather than direct county-level measurements, the resulting estimates are subject to uncertainty associated with the underlying small-area estimation procedure. In the present study, these estimates were treated as observed values, and uncertainty propagation was beyond the scope of the analysis. Howard and Odoi [20] examined county-level COPD prevalence in Florida using 2019 data from Florida Health CHARTS and County Health Rankings and Roadmaps. They identified six statistically significant high-prevalence spatial clusters. The cluster with the highest prevalence ratio, 1.68, included ten counties in north-central Florida. In the multivariable analysis, current smoking prevalence and asthma prevalence were significant predictors of county-level COPD prevalence. Khalili et al. [21] examined census-tract-level relationships among air pollution, social vulnerability, and health outcomes in Harris County, Texas. Their analysis included PM2.5, diesel particulate matter, nitrogen dioxide, and ozone, together with health outcomes such as COPD, asthma, coronary heart disease, and stroke. The study reported geographic variation in both environmental burden and health outcomes and found that greater social vulnerability was associated with higher prevalence of several respiratory and cardiovascular conditions.
2.2. EPA EJScreen and Environmental Burden
The EPA EJScreen tool [22] publishes 11 environmental justice indicators at the census block group level across the US, derived from national air quality monitoring networks and dispersion modeling. The three indicators used in this study are PM2.5 annual average (μg/m3), summer ozone (ppb), and traffic proximity and volume index. Liu et al. [23] conducted a meta-analysis of 35 cohort studies and found that ambient PM2.5 exposure was associated with increased risk of respiratory tract diseases, including significant associations with wheezing, cough, and lower respiratory illness in children. Rowangould et al. [6] compared EPA EJScreen’s traffic-proximity indicator with fine-scale roadway air-pollution dispersion modeling in the Houston Ship Channel region. They found low-to-moderate correlations between the original EJScreen indicator and modeled PM2.5 concentrations and showed that refinements using smaller spatial units and road-segment length improved the screening measure.
2.3. BRFSS and Behavioral Risk
The BRFSS collects data from over 400,000 US adults per year on smoking status, BMI, and physical activity using telephone interviews, with state-level stratified sampling [24]. Dwyer-Lindgren et al. [1] applied small-area estimation to BRFSS data from 2001 to 2011 across 3143 counties, using county age–sex demographic data and state-level BRFSS responses to generate county obesity and physical inactivity estimates. They found that county obesity prevalence ranged from 12.9% to 47.3%, with the highest rates concentrated in Mississippi, Alabama, and West Virginia. McCoy et al. [3] used BRFSS-derived smoking prevalence alongside 60 other county-level features including population density, household income, race composition, pre-existing conditions, and EPA air quality metrics. Their gradient boosting and random forest ensemble identified smoking prevalence and preventable disease burden as the top predictors of COVID-19 mortality per capita.
2.4. Social Determinants
Kushel et al. [5] analyzed data from 16,651 low-income adults included in the National Survey of American Families. They found that housing instability and food insecurity were independently associated with poorer access to ambulatory care, including delayed medical care and medications, as well as greater use of acute healthcare services. These findings show that difficulties meeting basic housing and food needs can affect healthcare access even among individuals who are not homeless. Wolfson and Leung [7] surveyed 1478 low-income US adults between 19 and 24 March 2020 to examine food insecurity during the early stage of the COVID-19 pandemic. Forty-four percent of respondents were food insecure. Food-insecure adults were also more likely to report difficulties meeting basic needs during the pandemic, indicating that existing socioeconomic disadvantage was associated with greater vulnerability during the early public-health emergency. Liu and Luo [13] evaluated machine-learning models for hyperchloremia prediction across racial, gender, and insurance subgroups. Incorporating social-determinant features improved overall model performance, but significant performance differences remained across many subgroups. Their findings illustrate the importance of examining subgroup performance and potential bias when machine-learning models are applied to health data.
2.5. COVID-19 Vulnerability
Mehta et al. [11] used 44 county-level predictors including population density, age distribution, pre-existing conditions (COPD, diabetes, cardiovascular disease), healthcare capacity (ICU beds per capita), and mobility data to train XGBoost models, achieving around 71% sensitivity and approximately 94% specificity for classifying county COVID-19 vulnerability in March 2020. Marvel et al. [25] built the Pandemic Vulnerability Index by combining COVID-19 case counts, death rates, and recovery estimates with CDC Social Vulnerability Index scores, healthcare capacity metrics, and county infection rate trajectories across all 3141 US counties. Tiwari et al. [12] combined 38 variables from CDC, US Census, and American Community Survey data including poverty rate, minority population percent, disability rate, housing crowding, uninsured rate, and age distribution above 65, finding that 18.3% of counties fell in the very high vulnerability tier and 75.57% of racial minority populations lived in high or very high vulnerability counties. Because the present study relies on county-level aggregates, the reported associations should not be interpreted as individual-level relationships, and the possibility of ecological fallacy should be considered when interpreting the findings.
2.6. Machine Learning Models and Explainability Analysis
Random Forest [14] and XGBoost [15] are standard methods for county-level health prediction. TabNet [16] applies sequential sparse attention to tabular data. PCA [26] reduces dimensionality linearly. SHAP [17] scores features using cooperative game theory. LIME [18] fits a local linear proxy through perturbation. Applying both methods to the same models and comparing their rankings provide a way to assess whether the interpretation is consistent across different explanation approaches. Interpretable ML has been applied to respiratory and environmental health outcomes, including cardiorespiratory disease with pollutant data [27] and asthma outcomes with explainable AI [28]. Composite risk measures have also been built by combining multi-criteria weighting with machine learning [29]. The studies reviewed here generally used one or two model architecture, rarely applied both SHAP and LIME, and did not directly compare PCA and autoencoder compression for county-level health data. Table 1 summarizes the comparison.
Table 1.
Comparison of Existing Studies and the Proposed Research Framework.
3. Research Questions and Hypotheses
Based on the above, four research questions (RQs) guided the design of this study.
RQ1: To what extent can different ML models approximate the categories generated by the author-defined composite index, and what does this comparison reveal about the structure and reproducibility of the index?
RQ2: When four ML models from different architectural families (Random Forest, XGBoost, MLP, TabNet) are trained on the same county-level health data, does any single model consistently outperforms the others, and does a majority vote ensemble reproduce the index categories more consistently than the best individual model as measured by the McNemar test?
RQ3: Are the feature importance rankings produced by SHAP and LIME consistent enough across all four ML models to support public health decision-making, or do the rankings change depending on which explanation method or model is used?
RQ4: Does the 12-feature county vulnerability dataset have a predominantly linear or nonlinear covariance structure, as measured by comparing classification performance of linear PCA compression against nonlinear autoencoder compression at the same number of components?
Three hypotheses were formulated before model training:
H1.
The majority vote ensemble will beat Random Forest and XGBoost with statistical significance (, McNemar test) but will show no significant improvement over MLP because MLP’s two hidden layers are flexible enough to approximate the same decision boundary that the four-model combination captures collectively. Failure to detect statistically significant differences should not be interpreted as evidence of equivalence between models because a formal equivalence or non-inferiority analysis was not performed.
H2.
COPD prevalence will rank first in both SHAP and LIME, above smoking ( with COPD), because COPD reflects accumulated disease burden over many years while smoking measures current behavior, and accumulated burden is a more stable county-level signal.
H3.
At matched 8-dimension compression, PCA will outperform an autoencoder because strong pairwise correlations in the data, including food–housing insecurity () and smoking–COPD (), point to a predominantly linear covariance structure. At more aggressive compression (6 dimensions), the autoencoder may capture nonlinear variance that PCA discards.
4. Dataset Collection, Preprocessing, and ML Techniques for Analyzing Interdependent Health System
4.1. Study Design and Data Flow
This study constructs a composite county-level chronic illness vulnerability index from four public data sources for a single period (2023, with cumulative COVID-19 counts spanning 2020–2023) and characterizes how well ML models reproduce the resulting index categories. It is not a longitudinal or prognostic study, and it does not forecast future disease incidence.
The four data sources were CDC PLACES (county-level chronic disease and social measures), EPA EJScreen (census-tract environmental measures aggregated to county), CDC BRFSS SMART (metropolitan and micropolitan behavioral measures mapped to county through a CBSA-to-county crosswalk), and the New York Times COVID-19 county dataset. All data sources were merged on the five-digit county FIPS code. EJScreen tract-level PM2.5, ozone, and traffic-proximity values were aggregated to the county level by calculating the arithmetic mean across census tracts within each county. BRFSS SMART estimates were mapped from metropolitan and micropolitan statistical areas to their member counties using a CBSA-to-county crosswalk. For counties without BRFSS SMART coverage, the corresponding CDC PLACES county-level estimates were used as fallback values for the behavioral indicators.
Counties were required to be available in the core PLACES and EJScreen datasets and to have all twelve features after application of the specified BRFSS SMART fallback and COVID-19 missing-data procedures. Counties that could not be matched by FIPS or remained incomplete after these procedures were excluded. The final analytic dataset contained 2911 of the 3143 US counties, spanning 46 states. Five states, Alaska, Connecticut, Hawaii, Kentucky, and Pennsylvania, are absent entirely because of missing coverage during the merge; their absence, including three populous states, limits national coverage and is noted as a limitation. Missing values within included counties were handled as described in Table 2 and the imputation paragraph.
Table 2.
Features, sources, and processing steps.
The data-processing steps were applied in the following order. (1) The four data sources were collected. (2) EJScreen tract-level PM2.5, ozone, and traffic-proximity values were aggregated to the county level using arithmetic means across census tracts within each county. BRFSS SMART values were mapped from metropolitan and micropolitan areas to member counties through a CBSA-to-county crosswalk. (3) The datasets were merged on the five-digit county FIPS code, and the inclusion and exclusion criteria were applied, yielding 2911 counties. (4) Missing values were imputed: median fill for food insecurity, housing insecurity, and traffic proximity; CDC PLACES model-based estimates for behavioral variables in counties without BRFSS SMART coverage; and zero for the five counties missing COVID-19 counts. (5) COVID-19 case counts and death counts were converted to rates per 100,000 population to reduce the influence of county population size and improve comparability across counties. (6) The 12 features were min-max scaled, averaged into five domain scores, combined into the weighted vulnerability score, and split at the 33rd and 67th percentiles into the Low, Medium, and High classes; this step constructs the index that serves as the label. (7) The labeled data were split into training, validation, and test sets (80/10/10, 70/10/20, and 60/10/30 splits). (8) A StandardScaler was fit on the training set only and applied to the validation and test sets. (9) Each model was trained on the training set, tuned on the validation set, and evaluated on the test set; the five-fold cross-validation refits the scaler within each fold.
Steps 1 through 6 construct the composite index and its class labels, and steps 7 through 9 train and evaluate the models. To avoid data leakage in model evaluation, all model feature scaling (step 8) was fit on the training set only and refit inside each cross-validation fold, so no test-set statistics entered model training. The index construction in steps 1 through 6 uses statistics computed over all counties, because the index is a single composite measure defined over the full set of counties rather than a quantity predicted from held-out data. Because the class label is a deterministic function of the same 12 features, the accuracy and ROC-AUC values measure how consistently each model reproduces this fixed index, not out-of-sample forecasting; the high accuracy reflects that reproducibility, not leakage, as shown by the penalized logistic regression recovering the index at 98.97%.
4.2. Data Collection and Integration Across Interdependent Health Systems
Four interdependence datasets were merged on the five-digit county FIPS (Federal Information Processing Standards) code. The paper shows how the datasets can be merged and analyzed using ML models. Table 2 summarizes the data source and major processing steps associated with each feature.
Median imputation was applied where county-level values were missing: food insecurity and housing insecurity (657 counties each, 22.6%), and traffic proximity (a small number of counties). Median imputation was performed during source-level preprocessing before the datasets were merged and before construction of the composite index. Food insecurity, housing insecurity, and traffic proximity were median-imputed within their respective source datasets. The three behavioral variables were not median-imputed; counties without BRFSS SMART coverage were instead assigned the corresponding CDC PLACES county-level estimates. This hybrid approach was adopted because BRFSS SMART provides estimates derived from metropolitan and micropolitan populations rather than complete county-level coverage, whereas PLACES provides county-specific estimates generated through small-area estimation procedures. Consequently, neither source should be regarded as universally preferable, and the resulting framework should be interpreted as a pragmatic combination of the two approaches. Five counties absent from the NYT COVID-19 dataset were assigned zero cases and deaths. This treats absence of reported data as absence of recorded burden; because only five of 2911 counties are affected, the choice does not materially influence the index or the classification.
4.2.1. CDC PLACES 2023: Community-Level Health Indicators
The 2025 release of CDC PLACES (https://data.cdc.gov/500-Cities-Places/PLACES-Local-Data-for-Better-Health-County-Data-20/swc5-untb, (accessed on 19 April 2026)) [2] contains 2023 model-year estimates for 29 health measures, computed via multilevel regression and poststratification on BRFSS survey data. The file was filtered to seven measures. Four were kept as main features: COPD prevalence, uninsured percent, food insecurity, and housing insecurity. Three more (smoking, obesity, physical inactivity) were kept as fallback values for counties outside BRFSS SMART coverage. A pivot table was built using LocationID zero-padded to five digits as the county key. The uncertainty associated with the underlying small-area estimation procedures were not propagated through the composite index and therefore represents an important limitation of the present study.
4.2.2. EPA EJScreen 2023: Environmental Justice Indicators
The tract-level EJScreen (https://zenodo.org/records/14767363, accessed on 19 April 2026) file [22] was used. Each row is a census tract with an 11-digit GEOID. The first five characters give the county FIPS. PM2.5 (PM25), ozone (OZONE), and traffic proximity (PTRAF) were averaged across all tracts in each county. Rows without a matching county name were dropped. Remaining missing traffic proximity values were median-filled.
4.2.3. CDC BRFSS SMART 2023: Selected Metropolitan and Micropolitan Area Risk Trends
The standard Behavioral Risk Factor Surveillance System (BRFSS) provides estimates primarily at the state level and therefore cannot be directly applied to county-level analyses. Consequently, the CDC BRFSS SMART dataset (MMSA2023.xpt) was used because it provides weighted estimates for selected metropolitan and micropolitan statistical areas (MSAs) [24]. The dataset was imported using the pyreadstat package. Three behavioral indicators were included in the analysis: smoking prevalence (_RFSMOK3), obesity prevalence (_RFBMI5), and physical inactivity (_PA150R4). Missing, refused, and incomplete responses were excluded from the analysis.
MMSA codes were mapped to county Federal Information Processing Standards (FIPS) codes using the 2023 Census Core-Based Statistical Area (CBSA) delineation file. Each county within an MSA was assigned the corresponding weighted prevalence estimate. Approximately 15–20% of U.S. counties are rural and fall outside designated metropolitan or micropolitan statistical areas and therefore do not have BRFSS SMART estimates. For these counties, the corresponding CDC PLACES 2023 estimates for smoking prevalence, obesity prevalence, and physical inactivity were used as substitute values. PLACES provides model-based county-level estimates for more than 3000 U.S. counties using multilevel regression and post-stratification techniques, making it a suitable alternative when direct local survey estimates are unavailable. When both BRFSS SMART and PLACES estimates were available for the same county, the BRFSS SMART estimate was retained because it was derived from local survey responses rather than from model-based state-level estimates.
4.2.4. COVID-19 Data: Community-Level Transmission and Outcomes
Cumulative case and death counts came from the NYT COVID-19 county dataset on GitHub (https://github.com/nytimes/covid-19-data, accessed on 29 April 2026). The dataset covers January 2020 through May 2023, when the NYT discontinued county-level updates. The file was sorted by date and the last row per county FIPS was taken as the final cumulative count. Counties with no records were set to zero. These cumulative counts were then divided by county population, taken from the CDC PLACES total population field, and expressed per 100,000 residents. Raw counts are dominated by a small number of high-population counties, so normalization removes that population-size bias and lets the COVID measures reflect burden intensity rather than county size.
Cases and deaths were selected because they are the only COVID-19 metrics available for all 3000+ US counties in a consistent format. County-level hospitalization rates, Long COVID prevalence, excess mortality, and repeat infection counts were not publicly available at county resolution for the full study period. These cumulative totals reflect the acute pandemic burden from 2020–2023. They do not capture post-pandemic chronic effects such as Long COVID disability or the health consequences of repeat infections, which are noted as a limitation of this feature set.
4.2.5. Data Harmonization and Missing-Value Management
PLACES and EJScreen were joined by inner join on FIPS, keeping counties present in both. BRFSS behavioral estimates and COVID counts were left-joined. All median imputation was done within each source before merging. The final dataset has 2911 counties and 12 features with no missing values.
Figure 1 shows the Pearson correlation matrix. The strongest correlations included food insecurity and housing insecurity at , smoking and COPD at , and smoking and physical inactivity at . COVID-19 cases and deaths showed a more moderate correlation of after conversion to per-capita rates. These high correlations are consistent with PCA retaining 96.7% of the variance with eight components. PCA outperformed the autoencoder at all three tested compression levels (6, 7, and 8 dimensions), suggesting that linear combinations of the original variables preserved more information for index reconstruction under the tested configurations.
Figure 1.
Pearson correlation matrix for the 12 features. Smoking–COPD: r = 0.81. Smoking–physical inactivity: r = 0.78. Food–housing insecurity: r = 0.98. COVID cases–deaths: r = 0.37, 70/10/20 split.
4.3. Vulnerability Index Design and Computation
The proposed framework was designed to construct and characterize a county-level chronic illness vulnerability index rather than predict an independent health outcome. The composite score was derived directly from the twelve input variables representing health burden, social conditions, environmental exposure, behavioral factors, and COVID-19-related measures. Consequently, the resulting class labels are deterministic functions of these variables and should be interpreted as author-defined categories rather than externally validated outcomes. The ML models therefore evaluate the extent to which different architectures reproduce the index rather than their ability to predict an independent outcome.
The goal of this framework is not disease prediction. It produces a reproducible classification of county vulnerability categories derived entirely from publicly available health indicators. The outcome variable is a composite score constructed from the same public data sources, not an independently observed clinical endpoint. This distinction matters for how the results should be read. Because the class label is a function of the same 12 features given to the models, the accuracy and ROC-AUC values in Section 5 measure how consistently each model reproduces the composite index, not how well it forecasts an outside outcome. The framework identifies which counties share patterns of chronic illness burden, social disadvantage, and environmental exposure. It does not claim to forecast future disease incidence.
A composite vulnerability score was constructed by combining information from five domains into a single measure for supervised classification. Each feature was first normalized to the interval [0, 1] using Min-Max scaling. Domain scores were then calculated by averaging the normalized variables within each domain. The final vulnerability score was computed as
where, H denotes the health domain (COPD prevalence), C denotes the COVID-19 domain (cases and deaths per 100,000 population), S denotes the social domain (food insecurity, housing insecurity, and uninsured status), E denotes the environmental domain (PM2.5 exposure, ozone exposure, and traffic proximity), and B denotes the behavioral domain (smoking prevalence, obesity prevalence, and physical inactivity).
The domain weights were defined as , , , , and . The health domain received the largest weight because COPD prevalence reflects accumulated disease burden and was therefore considered a direct indicator of current vulnerability. The COVID-19, social, and environmental domains received equal weights because no evidence supported assigning greater importance to one domain over the others. The behavioral domain received a slightly lower weight because smoking, obesity, and physical inactivity were regarded as modifiable risk factors rather than indicators of existing disease burden. The weighting strategy was based on domain knowledge, and the objective of integrating multiple dimensions of chronic illness vulnerability within a unified framework. Because the health domain contains only a single variable, COPD prevalence contributes proportionally more to the overall score than variables belonging to domains with multiple indicators. Consequently, the prominence of COPD in the SHAP and LIME analyses should be interpreted within the context of the weighting strategy itself.
These domain weights imply the following effective per-variable weights (Table 3): COPD prevalence carries 0.25, each COVID-19 variable 0.10, each social and environmental variable 0.067, and each behavioral variable 0.05. COPD therefore carries the largest single weight, so its first-place ranking in the SHAP and LIME analysis follows from the index construction rather than from independent discovery.
Table 3.
Effective per-variable weight implied by the domain weights.
Normalizing COVID-19 to per-capita rates changed the vulnerability class of 9.3% of counties compared with an absolute-count version. Under absolute counts the COVID domain contributed almost no variation because a few high-population counties dominated the range; per-capita rates give the domain meaningful spread across counties, which is reflected in the reclassification.
Weight Sensitivity
The domain weights were determined from public-health considerations rather than optimized mathematically. The construction of composite indices and their associated uncertainty analyses follows established approaches described in the literature [8,9]. To assess the robustness of the framework, we examined the extent to which county classifications changed under alternative weighting schemes. Under equal domain weighting (0.20 assigned to each of the five domains), 96.6% of counties retained their original classification. Under a fully data-driven weighting strategy based on the first principal component of the standardized feature matrix, 87.7% of counties retained their original classification (Table 4). These results indicate that the proposed framework is relatively stable under equal weighting but is more sensitive to a purely data-driven weighting approach. This behavior is expected because the first principal component redistributes weight toward strongly correlated social and behavioral variables while reducing the influence of the single-variable health domain.
Table 4.
Stability of county classifications under alternative weighting schemes relative to the original weighting strategy.
4.4. Imputation Sensitivity
Because food and housing insecurity were imputed for 22.6% of counties, we tested whether the imputation method affects the classification. We re-imputed the median-filled cells with K-nearest-neighbor imputation () and with mean imputation, rebuild the index, and compared the resulting classes to the median-imputed version. KNN imputation left 97.2% of counties in the same class, and mean imputation left 97.8%. The classification is therefore stable to the imputation method. This follows from the strong correlations among the variables (Figure 1): food and housing insecurity are highly correlated with each other and with COPD, so the imputed values are constrained by the correlated features regardless of the fill method.
The continuous vulnerability score served as the primary quantity throughout the analysis, whereas the tertile-based categories were introduced to facilitate interpretation and comparison across counties. Consequently, the threshold values should be interpreted as operational categories rather than clinically validated boundaries. Counties were split at the 33rd and 67th percentile into Low, Medium, and High. The result was 971 Low, 970 Medium, 970 High counties. A three-class categorical scheme was used rather than a continuous score for two reasons. First, public health resource allocation is inherently categorical: a planner directing screening resources needs to know which counties to prioritize, not a decimal score. Second, tertile splits produce balanced class sizes, which prevents the model from being dominated by the majority class during training. The continuous vulnerability score is still computed and reported; the classification layer sits on top of it. Figure 2 shows the score distributions by class.
Figure 2.
Distribution of county vulnerability scores across the three classes. Low counties cluster around 0.20, Medium around 0.27, and High around 0.33. The three groups show clear separation with minimal overlap.
Because the class labels were defined directly from the composite score, the separation observed in Figure 2 reflects the thresholding procedure itself and should not be interpreted as independent evidence supporting the validity of the classification framework.
4.5. ML Models for Index Reconstruction and Vulnerability Assessment
4.5.1. ML Models and Hyperparameter Settings
Four ML models were chosen to cover distinct architectural families. Random Forest and XGBoost are tree-based ensemble methods with strong track records in county-level health prediction [3,14,15]. MLP was included as a neural network baseline that captures nonlinear interactions without sequential structure. TabNet was added because its step-wise sparse attention mechanism makes each prediction more interpretable than a standard neural network and because it had not previously been applied to county-level chronic illness vulnerability assessment [16]. Four ML architecturally distinct model families were selected so that findings shared across all models would be less likely to arise from the assumptions of a single architecture.
All simulations were implemented in Python 3.10.11 using NumPy 2.1.3, Pandas 2.3.1, Scikit-learn 1.6.1, XGBoost 3.0.2, PyTorch 2.5.1, and PyTorch TabNet 4.1.0. Hyperparameters were selected through repeated validation experiments rather than exhaustive grid search because the objective of this study was to compare the behavior of multiple model families instead of maximizing the performance of a single model. The search process considered alternative values for the number of trees, tree depth, learning rate, hidden-layer size, batch size, and attention parameters. Accuracy, precision, recall, F1 score, and ROC–AUC were used as the principal evaluation metrics. Unless otherwise specified, all experiments used a random seed of 42.
A 70/10/20 stratified split produced 2037 training counties, 291 validation counties, and 583 test counties. StandardScaler was fitted exclusively on the training data and subsequently applied to the validation and testing datasets. A single data partition may lead to optimistic estimates of model performance. Therefore, additional robustness analyses were performed using 80/10/10 and 60/10/30 splits, five-fold cross-validation, repeated five-fold cross-validation, multi-seed experiments, bootstrap analysis, and leave-one-state-out validation. Spatial dependence between counties may affect model generalization performance, making geographically informed validation procedures particularly important [31]. These analyses demonstrated that the results remained stable across multiple data partitions, random seeds, and geographic regions. Simulation hyperparameters for the four ML models are described as follows:
Random Forest [14]: 200 trees, maximum depth of 10, Gini impurity criterion, bootstrap sampling enabled, and random state 42.
XGBoost [15]: 200 estimators, maximum depth of 6, learning rate 0.1, subsample ratio 0.8, column-sampling ratio 0.8, softmax objective function, and random state 42.
MLP [32]: Hidden layers containing 64 and 32 neurons, ReLU activation, Adam optimization, cross-entropy loss function, L2 regularization, early stopping, a maximum of 300 iterations, and random state 42.
TabNet [16]: , , , , , patience = 20, batch size = 256, sparsemax attention, Adam optimization, and random state 42.
4.5.2. Majority Vote Ensemble for Robust Final Classification
Each county received one prediction from each model. A class needs three or four votes to be assigned. For two-to-two ties, MLP decided. Figure 3 shows the architecture.
Figure 3.
Majority vote ensemble. Four independent predictions are combined. Three or four matching votes determine the output, and MLP resolves two-to-two splits.
4.5.3. Split Validation and Cross-Validation: Ensuring Robust Model Evaluation
All models were tested on 80/10/10, 70/10/20, and 60/10/30 splits. Five-fold stratified cross-validation with StandardScaler inside each fold was performed for Random Forest, XGBoost, and MLP. Repeated cross-validation (five folds repeated five times), multi-seed analysis (20 random seeds), bootstrap confidence intervals, and leave-one-state-out validation was also performed to assess model stability across data partitions and geographic regions.
4.6. Explainability: Interpreting Model Behavior and Feature Influence
TreeExplainer was used for Random Forest and XGBoost. KernelExplainer with 100 background samples were used for MLP and TabNet. All explanations used in the 583 test counties. For LIME, a LimeTabularExplainer was built on the test set distribution. Global importance averaged weights across 50 counties per class. Local explanations used 1000 perturbation samples.
4.7. Dimensionality Reduction Techniques for Model Simplification
Because the framework contains only twelve input variables, dimensionality reduction was included as an exploratory analysis rather than as a necessary preprocessing step. PCA was fitted on the training set for 6, 7, and 8 components. The dimensions 6, 7, and 8 were selected as representative levels of moderate compression in order to examine the trade-off between dimensionality reduction and information preservation.
The autoencoder had architecture for , trained with MSE loss, Adam (learning rate = 0.001), and 100 epochs. XGBoost was the downstream classifier for both. Only one autoencoder architecture and one downstream classifier were considered because the purpose of this analysis was exploratory rather than exhaustive. Future work may examine additional architecture, reconstruction metrics, confidence intervals, and alternative classifiers.
5. Results of the Vulnerability Modeling Framework
5.1. Individual ML Model Performance
The accuracy and ROC-AUC values below measure reproduction of the composite index, since the class label is derived from the same 12 input features. MLP was the best single model at 96.40%, followed by TabNet at 95.03%. XGBoost reached 94.17%, while Random Forest was lowest at 91.77%. The ensemble reached 94.68%, placing it below MLP and TabNet but above XGBoost and Random Forest. Table 5 shows full results for the 70/10/20 split.
Table 5.
Test results for all five configurations (70/10/20), recomputed on the per-capita COVID dataset.
Figure 4.
Accuracy on the 70/10/20 split. MLP achieved the highest test accuracy, followed by TabNet, the majority-vote ensemble, XGBoost, and Random Forest. The McNemar test found no statistically significant difference between the ensemble and MLP (p = 0.0987).
Table 6.
Test accuracy across three split configurations, per-capita COVID data.
5.2. Cross-Validation for Performance Stability and Generalization
The cross-validation was run for Random Forest, XGBoost, and MLP. TabNet was excluded from cross-validation because of its sequential attention mechanism and epoch-based training make each fold significantly more expensive computationally; the three-split stability results in Table 6 serve as the equivalent stability check for TabNet. All three models had standard deviations near or below 1% across the five folds (Table 7), meaning the results do not depend on which counties happened to be in the test set.
Table 7.
Five-fold cross-validation (Mean ± Standard deviation).
To confirm the results do not depend on single data split or random seed, we ran repeated stratified cross-validation (5 folds repeated 5 times, 25 fits per model) and a multi-seed analysis (20 random 70/10/20 data splits). Table 8 reports both. Standard deviations were nearly 1% for all three models under both procedures, and the multi-seed test accuracy ranged only about 3 to 4 points across the 20 seeds. Combined with the leave-one-state-out spatial validation in Table 9, these checks show the classification is stable across folds, seeds, and geographic partitions. TabNet was excluded from these repeated procedures for the same computational reason it was excluded from cross-validation.
Table 8.
Repeated cross-validation and multi-seed stability (per-capita data). Repeated CV: 5 folds × 5 repeats. Multi-seed: 20 random 70/10/20 train–validation–test splits.
Table 9.
Leave-one-state-out spatial validation. Each model is trained on all counties outside one state and tested on that state, averaged over 46 states.
5.3. Spatial Validation
The cross-validation above draws training and test counties at random, which can overstate generalization because neighboring counties tend to have similar vulnerability profiles and can fall on both sides of the split. To test transfer to an unseen region, we ran leave-one-state-out validation: each model was trained on all counties outside one state and tested on the held-out state, averaged over 46 states in the dataset. Mean accuracy was 90.5% for Random Forest, 93.7% for XGBoost, and 97.2% for MLP, with between-state standard deviations of 3 to 7 points (Table 9). The lowest per-state accuracy, 66.7%, came from states with very few counties, where a single misclassified county moves the percentage sharply. Spatial validation shows that the models still separate the index categories in unseen states, though performance is more variable across states than the random-split figures suggest, and cross-region transfer should be read with that variability in mind.
5.4. Statistical Tests: Evaluating Group Differences and Model Significance
McNemar tests showed that the ensemble outperformed Random Forest (p = 0.0005). The differences between the ensemble and XGBoost (p = 0.6291), MLP (p = 0.0987), and TabNet (p = 0.8388) were not statistically significant. For the ensemble versus MLP comparison, MLP was correct while the ensemble was incorrect for 20 counties, whereas the ensemble was correct while MLP was incorrect for 10 counties. Similar discordant patterns were observed for the remaining comparisons.
The absence of statistically significant differences should not be interpreted as evidence of equivalence among the models. Rather, these results indicate that the observed differences were insufficient to establish statistically significant performance differences for the present dataset. The ensemble’s value therefore lies primarily in improving consistency across multiple model architectures rather than maximizing predictive performance.
To test whether the four-model ensemble is necessary, we compared it against simpler baselines on the same features (Table 10). A standard penalized multinomial logistic regression reached 0.9897, above the ensemble’s 0.9468, and was stable across 20 random splits (mean 0.9885, standard deviation 0.0049). A depth-5 decision tree reached 0.8096. That a linear model recovers the index better than the ensemble confirms two things: the ensemble adds no predictive value over a single model, consistent with the McNemar result that it does not significantly outperform the MLP, and the index is close to a linear function of its inputs, which is expected since it is a weighted sum of the features. This supports parsimony: a single interpretable model is sufficient to reproduce the index.
Table 10.
Baseline comparators on the 12 features (70/10/20, per-capita data).
As the most direct baseline, we recomputed the class labels straight from the index formula, with no model: each feature was min-max scaled, averaged into the five domain scores, combined with the domain weights, and split at the same tertile thresholds. This arithmetic reproduces the stored class for 100% of counties, which is expected because the label is a deterministic function of the 12 features. This confirms that the composite index, not a learned relationship, defines the classes, and that the model accuracies in this study measure how closely each model reproduces this formula. The penalized logistic regression (Table 10) recovering the index at 98.97% is the linear-model counterpart of the same point.
5.5. Sensitivity, Specificity, and Confusion Matrix for Assessing Classification Performance
Table 11 gives per-class sensitivity () and specificity (). No county was misclassified directly between the Low and High classes; every error occurred between adjacent classes. High vulnerability had the lowest sensitivity (0.9072), driven by 18 High counties classified as Medium, while Low had the highest sensitivity (0.9692). Medium-class sensitivity was 0.9639. This adjacent-class error pattern is expected because counties near the tertile boundaries are the hardest to separate. Figure 5 shows the confusion matrix.
Table 11.
Per-class sensitivity and specificity for the ensemble, on per-capita COVID data.
Figure 5.
Confusion matrix on 583 test counties. The bottom-left cell (High classified as Low) holds 0 county out of 583.
5.6. ROC-AUC: Measuring Model Discrimination Ability
Macro ROC-AUC was 0.9974. Soft ensemble probabilities were averaged from all four models’ predict_proba outputs. The macro ROC-AUC represents the average discrimination performance across the Low, Medium, and High one-versus-rest classification tasks. For the High class specifically, the ensemble achieved an AUC of 0.9987. These values indicate that the model probability scores strongly separate the index-defined classes across a range of decision thresholds. Figure 6 and Figure 7 show the curves.
Figure 6.
Ensemble ROC curves (one-vs-rest). Low AUC = 0.9987, Medium = 0.9948, High = 0.9987.
Figure 7.
ROC curves for all five configurations on the High class. MLP achieved an AUC of 0.9988, and the ensemble achieved 0.9987.
Table 12 lists the optimal threshold per model for the High class. For each model, the decision threshold for the High class was selected on the validation set as the point maximizing Youden’s J (sensitivity plus specificity minus one), then applied unchanged to the test set. Choosing the threshold on validation rather than test avoids tuning a parameter on the data used to report performance.
Table 12.
AUC and optimal thresholds for the High class, thresholds selected on the validation set and evaluated on the test set (per-capita data).
The threshold column shows the probability cutoff, chosen on the validation set, at which each model balances sensitivity and specificity for the High class. At its validation-selected threshold of 0.5287, MLP reached test-set sensitivity of 0.9639 and specificity of 0.9871 for the High class, the strongest balance among the models.
5.7. Cost-Weighted Error and Outlier Analysis: Evaluating High-Risk Misclassifications
A cost matrix assigned 0 for correct, 1 for one-class error, and 2 for two-class error. Of 583 counties, 552 (94.7%) had cost 0, 31 (5.3%) had cost 1, and 0 (0.0%) had cost 2. Mean cost was 0.0532 on a 0–2 scale. IQR outlier detection identified 3 outlier counties (0.51%); all three were classified correctly (100%), compared with 94.66% accuracy among the 580 non-outlier counties. Table 13 lists all extended metrics.
Table 13.
All evaluation metrics for the ensemble (70/10/20), per-capita COVID data.
5.8. SHAP and LIME for Local and Global Model Interpretation
The SHAP and LIME results below describe how each model uses the features to reproduce the index. They quantify which features the models rely on, not which factors cause chronic illness vulnerability. Because the index is a weighted function of the features, a feature’s importance here reflects its role in the index formula and the model’s use of it, and should not be read as a causal effect on health.
5.8.1. Feature Importance Rankings
Table 14 reports the mean absolute SHAP values for the High class for each model together with a descriptive cross-model average. COPD prevalence ranked first in every model. Traffic proximity ranked among the lowest-importance features in every model and had the lowest descriptive cross-model average. Based on the descriptive cross-model average, COVID-19 deaths ranked third, while COPD prevalence ranked first. COVID-19 deaths moved up from near the bottom of the ranking in the absolute-count analysis because per-capita normalization increased the variation in the COVID-19 measures across counties and therefore, their contribution to index reconstruction. The absolute SHAP magnitudes varied across the four models because the models have different internal structures and output scales. Mean absolute SHAP values were therefore examined both within each model and as a descriptive cross-model summary. The cross-model averages were used to summarize the overall pattern of feature importance, but they were not interpreted as directly comparable effect sizes across model architectures. Greater emphasis was placed on whether the same features consistently appeared among the higher- or lower-ranked variables across the individual models.
Table 14.
Mean absolute SHAP values by feature and model (High class), per-capita COVID data.
Figure 8 shows LIME feature importance bars for all four models separately. COPD prevalence is the longest bar in every panel, and Traffic Proximity is the shortest. The relative ordering within each panel is consistent with the averaged SHAP ranking in Table 14.
Figure 8.
LIME mean absolute feature weights for all four models (all vulnerability classes). COPD prevalence ranks first in every model panel. COVID cases and traffic proximity are among the lowest-ranked features across the four models.
Figure 9 shows LIME importance aggregated at the domain level across all four models. Health and Behavioral domains score among the highest in every model. After per-capita normalization the COVID domain is no longer the lowest; it now sits near the Environmental and Social domains, and is the lowest domain only in the MLP and TabNet models, while Environmental is lowest in Random Forest and XGBoost.
Figure 9.
Domain-level LIME importance across all four models. Health and Behavioral domains score among the highest in every model. COVID is no longer the lowest domain across all four; after normalization it sits mid-range, lowest only in the two neural models. The pattern that health and behavioral factors dominate holds regardless of model type.
5.8.2. Rank Comparison to Assess Agreement in Feature or County Rankings
Table 15 shows SHAP and LIME rankings side by side. Six of twelve features got the same rank from both. The largest gap was three positions (obesity: rank 10 by SHAP, rank 7 by LIME). Both methods placed COPD first, COVID deaths third, and traffic proximity last. SHAP distributes credit across correlated features using all possible subsets; LIME perturbs one feature at a time. Some rank movement within a correlated group is expected from this difference in method, and does not change the finding that COPD leads in both and that COVID deaths are now a top three feature after per-capita normalization.
Table 15.
SHAP vs. LIME feature rankings.
Figure 10 shows the same comparison visually. Features where both bars reach the same depth has rank agreement; the small divergence in the correlated middle features (smoking, food insecurity, uninsured) is visible but contained.
Figure 10.
SHAP vs. LIME rank comparison across all 12 features. Lower rank values indicate greater importance. COPD and traffic proximity agree exactly at ranks 1 and 12, respectively. Obesity shows the largest rank difference between the two methods, at three positions, while several other features differ by one or two positions.
5.9. Features Importance Analysis
To assess how much the COVID-19 and COPD features each contribute to classification, XGBoost was run three times on the 70/10/20 split with different feature sets (Table 16). Model A used all 12 features. Model B removed COVID-19 cases and deaths (10 features). Model C removed COPD prevalence (11 features). All other hyperparameters and the train/test split were kept identical.
Table 16.
Feature contribution analysis using XGBoost (70/10/20 split).
Removing the two COVID features dropped accuracy by 5.15 percentage points (94.17% to 89.02%), the largest change of the three ablations, and removing COPD prevalence dropped it by 3.95 percentage points (94.17% to 90.22%). This reverses the absolute-count result, where removing COVID left accuracy essentially unchanged and the COVID features appeared redundant. The reversal follows directly from normalization. With raw cumulative counts the COVID domain score was near constant across counties, so the models could reproduce the index without the COVID features; with per-capita rates the domain has real spread that correlates with chronic disease burden (Figure 1), so the COVID features now carry information the other ten cannot fully replace. Both COPD and the per-capita COVID rates contribute meaningfully to reproducing the index, which is consistent with the index drawing on all five domains rather than a single feature.
5.10. Dimensionality Reduction: Reducing Feature Complexity and Enhancing Model Stability
Table 17 shows results for PCA and autoencoder at all three compression levels (6, 7, and 8 dimensions) on the 70/10/20 split, compared to the 12-feature baseline. PCA at 6 components slightly exceeded the 12-feature baseline, while the autoencoder stayed below it at every level.
Table 17.
PCA and autoencoder results across compression levels, using per-capita COVID data.
PCA and the autoencoder behave differently here. PCA at 6 components reached 0.9521, slightly above the 0.9417 twelve-feature baseline, and PCA stayed at or above the baseline at 7 and 8 components as well. The autoencoder was below the baseline at every level, best at 6 components (0.9178). The PCA result is non-monotonic across dimensions, with 6 components scoring higher than 7 and 8, so these single-split numbers should be read with care rather than as a strict ordering. The practical reading is that a small set of principal components carries essentially all the information the 12 features hold for reproducing the index, which is consistent with the strong correlations among the features, while the autoencoder’s nonlinear compression loses a little separation at these sizes. Because the framework contains only twelve variables, the dimensionality-reduction analysis was intended primarily as an exploratory investigation rather than a necessary preprocessing step. The dimensions 6, 7, and 8 were selected as representative levels of moderate compression.
5.11. Bootstrap Confidence Intervals
To quantify uncertainty in ensemble performance on the held-out test set, bootstrap resampling was applied [33]. The 583 test counties were resampled with replacement 1000 times and accuracy, F1, sensitivity, and specificity were measured on each sample (Table 18).
Table 18.
Bootstrap 95% confidence intervals for ensemble metrics (1000 resamples, 583 test counties), per-capita COVID data.
All four intervals are narrow. Accuracy ranged from 92.97% to 96.40% across 1000 bootstrap resamples, a span of 3.43 percentage points. Macro specificity ranged from 96.44% to 98.18%, a span of 1.74 percentage points. These intervals indicate relatively low sampling variability in the ensemble performance estimates on the held-out test set.
5.12. Calibration Analysis
Figure 11 shows calibration curves for the ensemble model on each vulnerability class. A well-calibrated model follows the diagonal line: when it assigns 80% probability to a class, that class is actually correct around 80% of the time.
Figure 11.
Calibration curves for the ensemble model (one-vs-rest). The dashed diagonal represents perfect calibration. All three classes approach the ideal line at high predicted probabilities, although deviations are visible at low-to-intermediate confidence levels.
All three classes approach the ideal calibration line at high predicted probabilities, while visible deviations occur in the low-to-intermediate probability ranges. The Medium class shows a comparatively smoother transition across probability bins, whereas the Low and High classes show larger deviations at several intermediate confidence levels.
5.13. Geographic Distribution
Figure 12 shows the geographic distribution of county vulnerability classes across the contiguous United States.
Figure 12.
County-level chronic illness vulnerability across the contiguous US (2023). Green = Low vulnerability, Orange = Medium vulnerability, Red = High vulnerability, Grey = counties missing from the merged dataset. High vulnerability counties concentrate in the Southeast, rural Appalachia, and parts of the South-Central region. Low vulnerability counties are most common in the Pacific Northwest, upper Midwest, and New England. Pennsylvania, Kentucky, and Connecticut are shown in grey because of missing data during dataset merging. Alaska and Hawaii are not displayed because the map is restricted to the contiguous United States. This figure was created by the authors using Python 3.10.11, GeoPandas 1.1.3, and Matplotlib 3.10.3, based on the U.S. Census Bureau 2023 Cartographic Boundary county shapefile.
The map should be interpreted cautiously because several states and counties were excluded during data integration owing to incomplete data availability. Consequently, the geographic distribution reflects the subset of counties available after the data-merging process rather than the complete set of United States counties. The geographic pattern broadly resembles the feature-ranking results. However, the geographic distribution and the explainability analyses were derived from the same dataset and the same composite index, so the map should not be interpreted as independent confirmation of the SHAP or LIME results. Counties ranked High are the same regions were COPD, smoking, obesity, and food insecurity rates are highest. The geographic distribution should be interpreted as a descriptive visualization of the index classes. Because the map and the explainability analyses were derived from the same underlying variables and composite index, the geographic pattern does not provide independent validation of the SHAP or LIME rankings.
6. Discussion and Interpretation of Key Findings
The proposed ensemble framework reproduced the three-tier classification with an accuracy of 94.68% and an ROC-AUC of 0.9974. Because the class labels were derived directly from the same variables used as model inputs, these findings should be interpreted as evidence of index reproducibility rather than prediction of an independent outcome. The use of four distinct model families (Random Forest, XGBoost, MLP, and TabNet) allowed us to evaluate the consistency of the results across different learning architectures. Features identified consistently by multiple models and by both SHAP and LIME are therefore less likely to represent artifacts associated with a particular model. COPD prevalence ranked first in both SHAP and LIME. Smoking also ranked high and correlates with COPD at r = 0.81, but they were scored separately and COPD still came out ahead. This ordering follows from the index construction rather than from an independent finding: COPD is the only feature in the highest weight domain, so it contributes more to the score than any feature in a domain whose weight is split among several inputs. COPD may also function as a proxy for broader chronic respiratory vulnerability: counties with high COPD tend to also have elevated rates of asthma and long-term environmental exposure, all of which contribute to the same vulnerability pattern. COPD carried greater information for reconstructing the author-defined index than current behavioral variables. Although COPD prevalence may reflect accumulated physiological burden at the population level, the ecological nature of the present analysis prevents direct interpretation at the individual level and does not permit conclusions regarding physiological reserve or multimorbidity among individual residents.
COPD ranked first in every model, followed by smoking and, after per-capita normalization, COVID-19 deaths in third place. PM2.5 ranked fifth in the descriptive cross-model SHAP summary. Several behavioral and social variables also ranked among the more influential features, while ozone and traffic proximity remained near the lower end of the ranking. The per-capita COVID-19 measures contributed more strongly to index reconstruction than in the earlier absolute-count analysis, with COVID-19 deaths moving into the top three features.
The ranking of the COVID-19 variables should not be interpreted as evidence that pandemic burden is unimportant for chronic illness vulnerability. Earlier analysis based on absolute counts were strongly influenced by county population size. Consequently, the present study relies upon per-capita measures, which provide a more meaningful comparison across counties and substantially alter the relative importance of the COVID-related variables. Under per-capita rates, COVID-19 deaths ranked third in the SHAP ordering, and removing the two COVID-19 features reduced XGBoost accuracy by 5.15 percentage points, compared with a 3.95-percentage-point reduction when COPD prevalence was removed (Table 16), a reversal of the absolute-count result. Two measurement points explain the pattern within the COVID features. First, COVID-19 case counts from 2020–2022 reflect testing availability rather than true infection rates; rural counties with limited testing access systematically underreported cases, so COVID deaths carry a stronger signal than COVID cases. Second, COVID deaths correlate positively with COPD (r = 0.56) and smoking, so, the COVID rates track chronic disease burden rather than duplicating a single feature. Several social variables, particularly food insecurity and uninsured prevalence, ranked above ozone and traffic proximity, while PM2.5 retained a mid-range position in the feature rankings. Counties classified as High vulnerability are disproportionately those with high poverty, limited healthcare access, and geographic isolation, the same counties were chronic disease has accumulated over decades.
The SHAP–LIME comparison showed clear agreement at the top and bottom of the ranking. The three features with the biggest gaps (obesity, smoking, food insecurity) differ between the two methods. SHAP and LIME handle correlated features differently, so some rank movement within that group is expected. Agreement between the highest-ranked and lowest-ranked features demonstrate consistency across the explanation methods. However, intermediate-ranked variables may also provide valuable information for public health planning and intervention strategies and therefore should not be disregarded.
PCA and the autoencoder behaved differently on the compressed feature sets. PCA at 6 components reached 95.21%, slightly above the 94.17% twelve-feature XGBoost baseline, while the autoencoder stayed below it at every level. A compact set of principal components therefore, carries essentially all the information the 12 features hold for reproducing the index, which is consistent with strong correlations among the features.
MLP at 96.40% was the best single model, followed by TabNet at 95.03%, while the ensemble reached 94.68%. The McNemar test showed not statistically significant difference between the ensemble and MLP (p = 0.0987). However, the absence of statistical significance should not be interpreted as proof of equivalence. A single MLP is sufficient for this task. The ensemble is still useful as a cross-model comparison because of the four architecturally different models provide complementary evidence about the reproducibility of the index. Its value in this study lies in comparing consistency across model families rather than achieving the highest reconstruction accuracy.
7. Conclusions and Implications
This study presented an interpretable framework for constructing and characterizing a county-level chronic illness vulnerability index using four publicly available 2023 datasets. Because the vulnerability classes were derived directly from the same variables used as model inputs, the proposed framework should be interpreted as a method for index construction and reproduction rather than prediction of an independent outcome.
The majority-vote ensemble consisting of Random Forest, XGBoost, MLP, and TabNet reproduced the index with an accuracy of 94.68% and an ROC-AUC of 0.9974 across 583 held-out counties. Under the default three-class predictions, the High-vulnerability class had a sensitivity of 90.72% and a specificity of 99.49%, with no direct misclassifications between the Low and High classes.
COPD prevalence ranked first in both the SHAP and LIME analyses, while smoking prevalence remained among the higher-ranked features. However, these findings should be interpreted within the context of the weighting structure and design of the composite index rather than as evidence of causal relationships. Six of the twelve variables received identical rankings from both explainability methods, indicating substantial agreement in model interpretation.
The dimensionality-reduction analysis further demonstrated that a relatively small set of principal components preserved most of the information contained in the original variables. PCA achieved performance comparable to that of the full feature set, whereas the autoencoder produced consistently lower performance, suggesting that linear combinations of the original variables captured much of the information required to reproduce the index.
From a public health perspective, the proposed framework may help identify counties that warrant additional assessment of chronic disease burden, social disadvantage, environmental exposure, and behavioral risk factors. However, the resulting classifications should be interpreted as preliminary indicators intended to support local investigation rather than as definitive rules for policy implementation or resource allocation.
Because the analysis was cross-sectional and ecological, the findings should not be interpreted as evidence of causality or as indicators of the relative effectiveness of specific interventions. Future work should focus on validating the index using independent epidemiological outcomes, incorporating additional data sources, evaluating alternative weighting strategies and examining temporal changes in vulnerability patterns.
The framework relies entirely on publicly available data and can be updated periodically as new datasets become available, providing a transparent and reproducible approach for characterizing county-level chronic illness vulnerability.
8. Limitations and Considerations
Several limitations should be considered when interpreting these findings. First, the analysis is circular by construction because the class labels are deterministic functions of the same 12 variables used as model inputs. Consequently, the reported accuracy and ROC-AUC values measure index reproducibility rather than predictive performance. Second, the use of random county splits does not fully account for spatial dependence among neighboring counties. Leave-one-state-out validation provided a more realistic assessment of geographic generalizability. Third, because the analysis was conducted in the county level, the results are subject to ecological fallacy and should not be interpreted as indicators of individual risk [34].
County-level aggregation may also obscure substantial variation within counties. Furthermore, the weighting scheme was based on domain knowledge rather than data-driven optimization, although the sensitivity analysis demonstrated that the classification framework remained relatively stable under alternative weighting strategies. Counties located near classification boundaries were more sensitive to changes in weighting than counties farther from the thresholds.
Approximately 15–20% of counties lacked BRFSS SMART coverage and therefore relied on PLACES model-based estimates. In addition, five states (Pennsylvania, Kentucky, Connecticut, Alaska, and Hawaii) were excluded because of incomplete data availability, limiting the geographic representativeness of the analysis. Age distribution, race and ethnicity, and income were not incorporated directly into the index, and differences in age adjustment across data sources may have introduced additional heterogeneity.
The COVID-19 variables reflect cumulative pandemic exposure rather than long-term post-pandemic health outcomes. Furthermore, SHAP and LIME rankings were calculated using 2023 data only, and the stability of these rankings over time remains uncertain. Because the vulnerability categories were defined using tertiles, future work should determine whether threshold values should remain fixed or be recalculated annually.
The index has not yet been validated against independent outcomes, such as hospitalization or mortality data, or against established indices, including Social Vulnerability Index. Future studies will examine external validation, temporal trends, alternative weighting strategies, and individual-level analyses to further refine the framework.
Author Contributions
Data curation, Formal analysis, Investigation, Methodology, Visualization, and Writing—original draft, R.S.; Conceptualization, Supervision, and Writing—review and editing, M.M.R.; Funding acquisition and Supervision, B.S.; Writing—review and editing, Resources, and Investigation, M.G.W.; Writing—review and editing and Investigation, R.K.; Writing—review and editing and Investigation, T.R.; Writing—review and editing and Investigation, M.S. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the Center for Midstream Management and Science at Lamar University, Texas. The views expressed are those of the authors and do not necessarily represent those of the funding agency. Any opinions, findings, and conclusions or recommendations expressed in this paper are those of the authors and do not necessarily reflect the views of the funding agencies.
Institutional Review Board Statement
Not applicable. This study used publicly available, aggregated, county-level data and did not involve human subjects or animals.
Informed Consent Statement
Not applicable. This study did not involve human subjects.
Data Availability Statement
The code, the analytical dataset, and reproducibility documentation are publicly available at https://github.com/Ronish32809/county-chronic-illness-vulnerability, (accessed on 12 June 2026). The raw source data is publicly available from CDC PLACES, EPA EJScreen, CDC BRFSS SMART, and the New York Times COVID-19 repository.
Acknowledgments
The authors would like to thank all collaborators and supporting institutions for their contributions to this research. We also acknowledge the assistance provided during data collection, analysis, and manuscript preparation. The constructive feedback and guidance from colleagues greatly strengthened the quality of this work. During the preparation of this manuscript, the first author used Claude 3 (Anthropic) and GPT-4 to assist with grammar correction, code refinement, and improvement of wording in selected sections of the manuscript. After using this tool, the authors (first authored) reviewed and edited the content as needed and take full responsibility for the final publication. The study design, research questions, data collection, data analysis, model development, results, interpretation, and conclusions were conceived, conducted, and verified entirely by the first author. No AI tool was used to generate the study findings, analyses, tables, figures, or scientific conclusions. All AI-generated suggestions were carefully reviewed, modified when necessary, and approved by the first author before incorporation into the manuscript. The first author accepts full responsibility for the content and integrity of this work.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Dwyer-Lindgren, L.; Freedman, G.; Engell, R.E.; Fleming, T.D.; Lim, S.S.; Murray, C.J.L.; Mokdad, A.H. Prevalence of Physical Activity and Obesity in US Counties, 2001–2011: A Road Map for Action. Popul. Health Metr. 2013, 11, 7. [Google Scholar] [CrossRef] [Scilit]
- Greenlund, K.J.; Lu, H.; Wang, Y.; Matthews, K.A.; LeClercq, J.M.; Lee, B.; Carlson, S.A. PLACES: Local Data for Better Health. Prev. Chronic Dis. 2022, 19, 210459. [Google Scholar] [CrossRef] [Scilit]
- McCoy, D.; Mgbara, W.; Horvitz, N.; Getz, W.M.; Hubbard, A. Ensemble Machine Learning of Factors Influencing COVID-19 Across US Counties. Sci. Rep. 2021, 11, 11777. [Google Scholar] [CrossRef] [Scilit]
- Cutter, S.L.; Boruff, B.J.; Shirley, W.L. Social Vulnerability to Environmental Hazards. Soc. Sci. Q. 2003, 84, 242–261. [Google Scholar] [CrossRef] [Scilit]
- Kushel, M.B.; Gupta, R.; Gee, L.; Haas, J.S. Housing Instability and Food Insecurity as Barriers to Health Care Among Low-Income Americans. J. Gen. Intern. Med. 2006, 21, 71–77. [Google Scholar] [CrossRef] [Scilit]
- Rowangould, D.; Rowangould, G.; Craft, E.; Niemeier, D. Validating and Refining EPA’s Traffic Exposure Screening Measure. Int. J. Environ. Res. Public Health 2019, 16, 3. [Google Scholar] [CrossRef] [Scilit]
- Wolfson, J.A.; Leung, C.W. Food Insecurity and COVID-19: Disparities in Early Effects for US Adults. Nutrients 2020, 12, 1648. [Google Scholar] [CrossRef] [Scilit]
- Nardo, M.; Saisana, M.; Saltelli, A.; Tarantola, S.; Hoffman, A.; Giovannini, E. Handbook on Constructing Composite Indicators: Methodology and User Guide; OECD Publishing: Paris, France, 2008. [Google Scholar]
- Saisana, M.; Saltelli, A.; Tarantola, S. Uncertainty and Sensitivity Analysis Techniques as Tools for the Quality Assessment of Composite Indicators. J. R. Stat. Soc. Ser. A 2005, 168, 307–323. [Google Scholar] [CrossRef] [Scilit]
- Flanagan, B.E.; Gregory, E.W.; Hallisey, E.J.; Heitgerd, J.L.; Lewis, B. A Social Vulnerability Index for Disaster Management. J. Homel. Secur. Emerg. Manag. 2011, 8, 1–22. [Google Scholar] [CrossRef] [Scilit]
- Mehta, M.; Julaiti, J.; Griffin, P.; Kumara, S. Early Stage Machine Learning–Based Prediction of US County Vulnerability to the COVID-19 Pandemic: Machine Learning Approach. JMIR Public Health Surveill. 2020, 6, e19446. [Google Scholar] [CrossRef] [Scilit]
- Tiwari, A.; Dadhania, A.V.; Ragunathrao, V.A.B.; Oliveira, E.R.A. Using Machine Learning to Develop a Novel COVID-19 Vulnerability Index (C19VI). Sci. Total Environ. 2021, 773, 145650. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Luo, Y. Assessing Social Determinants-Related Performance Bias of Machine Learning Models: A Case of Hyperchloremia Prediction in ICU Population. arXiv 2021, arXiv:2111.09507. [Google Scholar]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
- Arik, S.O.; Pfister, T. TabNet: Attentive Interpretable Tabular Learning. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Palo Alto, CA, USA, 2021; Volume 35, pp. 6679–6687. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.I. A Unified Approach to Interpreting Model Predictions. Adv. Neural Inf. Process. Syst. 2017, 30, 4765–4774. [Google Scholar]
- Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 1135–1144. [Google Scholar] [CrossRef] [Scilit]
- Shrestha, R.; Rana, M.M.; Sun, B.; Sun, F.; Witvliet, M.G.; Kostandy, R. An Interpretable XGBoost and GPT-Assisted Data Lakehouse Model for Predicting Community-Level Chronic Illness and Long COVID Vulnerability Scores. In 4th Graduate Conference; Lamar University: Beaumont, TX, USA, 2026; Available online: https://www.lamar.edu/graduate-studies/_files/documents/4th-annual-graduate-research-conference-program.pdf (accessed on 13 June 2026).
- Howard, S.; Odoi, A. Spatial Patterns and Sociodemographic Predictors of Chronic Obstructive Pulmonary Disease in Florida. PeerJ 2024, 12, e17771. [Google Scholar] [CrossRef] [Scilit]
- Khalili, A.; Vines, W.E.; Rifai, H.S. A Place-Based County-Level Study of Air Quality and Health in Urban Communities. Sustainability 2025, 17, 5368. [Google Scholar] [CrossRef] [Scilit]
- Besse, H.; Rojas-Rueda, D. Environmental justice mapping tools in the United States: A review of national and state tools. Sci. Total Environ. 2025, 962, 178449. [Google Scholar] [CrossRef] [Scilit]
- Liu, Q.; Xu, C.; Ji, G.; Liu, H.; Shao, W.; Zhang, C.; Gu, A.; Zhao, P. Effect of Exposure to Ambient PM2.5 Pollution on the Risk of Respiratory Tract Diseases: A Meta-Analysis of Cohort Studies. J. Biomed. Res. 2017, 31, 130–142. [Google Scholar] [CrossRef] [Scilit]
- Centers for Disease Control and Prevention. Behavioral Risk Factor Surveillance System (BRFSS). 2023. Available online: https://www.cdc.gov/brfss/index.html (accessed on 23 April 2026).
- Marvel, S.W.; House, J.S.; Wheeler, M.; Song, K.; Zhou, Y.H.; Wright, F.A.; Chiu, W.A.; Rusyn, I.; Motsinger-Reif, A.; Reif, D.M. The COVID-19 Pandemic Vulnerability Index (PVI) Dashboard: Monitoring County-Level Vulnerability Using Visualization, Statistical Modeling, and Machine Learning. Environ. Health Perspect. 2021, 129, 17701. [Google Scholar] [CrossRef] [Scilit]
- Jolliffe, I.T.; Cadima, J. Principal Component Analysis: A Review and Recent Developments. Philos. Trans. R. Soc. A 2016, 374, 20150202. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Telesca, V.; Rondinone, M. An Interpretable Machine Learning Framework for Analyzing the Interaction Between Cardiorespiratory Diseases and Meteo-Pollutant Sensor Data. Sensors 2025, 25, 4864. [Google Scholar] [CrossRef] [Scilit]
- Mahmood, S.; Hasan, R.; Hussain, S.; Adhikari, R. An Interpretable and Generalizable Machine Learning Model for Predicting Asthma Outcomes: Integrating AutoML and Explainable AI Techniques. World 2025, 6, 15. [Google Scholar] [CrossRef] [Scilit]
- Chowdhury, J.; Mahmud, T.; Tasnim, F.; Sharmin, S.; Nawal, S.; Papri, U.H.; Dolon, S.A.; Alam, M.E.; Hossain, M.S.; Andersson, K. A Hybrid MCDM and Machine Learning Framework for Thalassemia Risk Assessment in Pregnant Women. Diagnostics 2025, 15, 2833. [Google Scholar] [CrossRef] [Scilit]
- The New York Times. Coronavirus (COVID-19) Data in the United States. 2023. Available online: https://github.com/nytimes/covid-19-data (accessed on 29 April 2026).
- Roberts, D.R.; Bahn, V.; Ciuti, S.; Boyce, M.S.; Elith, J.; Guillera-Arroita, G.; Hauenstein, S.; Lahoz-Monfort, J.J.; Schroder, B.; Thuiller, W.; et al. Cross-Validation Strategies for Data with Temporal, Spatial, Hierarchical, or Phylogenetic Structure. Ecography 2017, 40, 913–929. [Google Scholar] [CrossRef] [Scilit]
- Rumelhart, D.E.; Hinton, G.E.; Williams, R.J. Learning Representations by Back-Propagating Errors. Nature 1986, 323, 533–536. [Google Scholar] [CrossRef] [Scilit]
- Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman and Hall: New York, NY, USA, 1994. [Google Scholar]
- Robinson, W.S. Ecological Correlations and the Behavior of Individuals. Am. Sociol. Rev. 1950, 15, 351–357. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











