Nationwide EHR-Based Chronic Rhinosinusitis Prediction Using Demographic-Stratified Models

arXiv cs.LG Papers

Summary

This paper presents a nationwide EHR-based chronic rhinosinusitis prediction model using demographic-stratified models and a hybrid feature-selection pipeline, achieving an overall AUC of 0.8461 on data from the All of Us Research Program.

arXiv:2605.05213v1 Announce Type: new Abstract: Chronic rhinosinusitis (CRS) is a common heterogeneous inflammatory disorder that causes substantial morbidity and healthcare costs. CRS is difficult to identify early from routine encounters, as symptom presentations overlap with common conditions such as allergic rhinitis, and heterogeneous phenotypes further obscure risk patterns. Prior predictive studies often rely on single-institutional cohorts , which reduce population-level generalizability. To overcome this, we leveraged nationwide longitudinal EHR data from the \textit{All of Us} Research Program to predict CRS diagnosis using two years of pre-diagnostic history. To address extreme feature sparsity and dimensionality in coded EHR data, we implemented a hybrid feature-selection pipeline that combines prevalence-based statistical screening with model-based importance ranking, compressing approximately 110,000 candidate codes into 100 interpretable features. To capture demographic heterogeneity, we trained demographic stratified models across six adult sex and life-stage subgroups with subgroup-specific hyperparameter tuning. Our framework achieved an overall AUC of 0.8461, improving discrimination by 0.0168 over the best baseline. These results demonstrate that routinely collected EHR data may support population-representative CRS risk stratification and inform earlier triage and referral prioritization in primary care.
Original Article
View Cached Full Text

Cached at: 05/08/26, 06:25 AM

# Nationwide EHR-Based Chronic Rhinosinusitis Prediction Using Demographic-Stratified Models
Source: [https://arxiv.org/html/2605.05213](https://arxiv.org/html/2605.05213)
Yidan Shen†Justina VargheseAkshay R PrabhakarSebastian Guadarrama\-Sistos\-VazquezJiefu ChenMasayoshi TakashimaOmar G\. AhmedRenjie HuXin Fu∗∗\*Corresponding author: Xin Fu

###### Abstract

Chronic rhinosinusitis \(CRS\) is a common heterogeneous inflammatory disorder that causes substantial morbidity and healthcare costs\. CRS is difficult to identify early from routine encounters, as symptom presentations overlap with common conditions such as allergic rhinitis, and heterogeneous phenotypes further obscure risk patterns\. Prior predictive studies often rely on single\-institutional cohorts , which reduce population\-level generalizability\. To overcome this, we leveraged nationwide longitudinal EHR data from theAll of UsResearch Program to predict CRS diagnosis using two years of pre\-diagnostic history\. To address extreme feature sparsity and dimensionality in coded EHR data, we implemented a hybrid feature\-selection pipeline that combines prevalence\-based statistical screening with model\-based importance ranking, compressing approximately 110,000 candidate codes into 100 interpretable features\. To capture demographic heterogeneity, we trained demographic stratified models across six adult sex and life\-stage subgroups with subgroup\-specific hyperparameter tuning\. Our framework achieved an overall AUC of 0\.8461, improving discrimination by 0\.0168 over the best baseline\. These results demonstrate that routinely collected EHR data may support population\-representative CRS risk stratification and inform earlier triage and referral prioritization in primary care\.

## IIntroduction

Chronic rhinosinusitis \(CRS\) is a heterogeneous chronic inflammatory condition of the paranasal sinuses and nasal passage\[[8](https://arxiv.org/html/2605.05213#bib.bib1),[21](https://arxiv.org/html/2605.05213#bib.bib24)\]\. CRS is a major source of chronic morbidity, affecting approximately 11–12% of the population in the United States\[[2](https://arxiv.org/html/2605.05213#bib.bib22)\], imposing a substantial disease burden, being associated with significant reductions in health\-related quality of life and a national financial burden of $22 billion \(2014 USD\) annually in the United States\[[24](https://arxiv.org/html/2605.05213#bib.bib27),[22](https://arxiv.org/html/2605.05213#bib.bib26)\]\. Formal clinical diagnosis of CRS requires objective inflammatory evidence on nasal endoscopy or computed tomography \(CT\), as symptom\-based assessment overestimates prevalence due to overlap with other inflammatory airway conditions such as allergic rhinitis\[[7](https://arxiv.org/html/2605.05213#bib.bib25)\]\. However, not all patients have access to imaging particularly in many primary care settings\. Leveraging routinely collected electronic health record \(EHR\) data to identify potential CRS cases before specialist evaluation may help shift decision\-making from subjective impression to evidence\-driven prediction\.

A recent study applied logistic regression using nasal\-polyp PRS and achieved near\-chance discrimination, suggesting that simple linear models without clinical or environmental covariates have limited utility for predicting CRS\[[12](https://arxiv.org/html/2605.05213#bib.bib5)\]\. In contrast, some studies utilize imaging such as CT and MRI to obtain a better result\[[7](https://arxiv.org/html/2605.05213#bib.bib25),[4](https://arxiv.org/html/2605.05213#bib.bib16)\]; however, CT/MRI is not always available and limits generalizability\. Related work has also leveraged EHR features within established CRS cohorts to predict downstream outcomes\. Ramakrishnan et al\. compared multiple machine\-learning models to classify olfactory dysfunction among CRS patients\[[20](https://arxiv.org/html/2605.05213#bib.bib11)\], and Nuutinen et al\. estimated revision sinus surgery risk using EHR\-derived features with interpretability analyses\[[18](https://arxiv.org/html/2605.05213#bib.bib48)\]\. Hopkins et al\. validated SNOT\-22 as a patient\-reported outcome measure with a clinically interpretable minimal important difference\[[10](https://arxiv.org/html/2605.05213#bib.bib50)\]\. However, they do not predict whether an individual will be diagnosed with CRS\. Moreover, many are derived from single\-institution or care\-intense cohorts that can over\-represent severe or refractory phenotypes and under\-represent the broader heterogeneous population\.

To address these challenges, we utilized a nationwide longitudinal EHR dataset from theAll of UsResearch Program to predict CRS diagnosis using two years of prior medical history of participants\. But coded clinical features are extremely high\-dimensional, sparse, and dominated by weakly informative variables\. This setting is often ill\-posed relative to sample size, introducing noise and computational burdens that degrade predictive performance and increase the risk of overfitting\. To mitigate these issues, we implemented a hybrid feature\-selection pipeline that combines statistical prevalence\-based screening with model\-based feature importance selection, yielding a compact and interpretable feature set and reducing more than 110,000 candidate features to 100 key variables\.

We observed that phenotypic patterns vary by age and sex in our analyses: where males showed an age\-dependent shift toward predominantly structural and polypoid pathology, whereas females exhibited profiles enriched for mucosal inflammation and atopy, with age modulating the progression from acute to more systemic manifestations\. And these observations are supported by prior CRS studies\[[26](https://arxiv.org/html/2605.05213#bib.bib38),[15](https://arxiv.org/html/2605.05213#bib.bib39),[29](https://arxiv.org/html/2605.05213#bib.bib40),[1](https://arxiv.org/html/2605.05213#bib.bib44),[11](https://arxiv.org/html/2605.05213#bib.bib45)\]\. Motivated by these, we applied a demographic\-specific modeling framework\. Specifically, individuals were stratified into six subgroups defined by the intersection of sex and age\-based adult life stages\. Independently tailored predictive models were trained for each subgroup to effectively capture well\-established differences in chronic inflammatory disease presentation and healthcare utilization\. Overall, this demographic\-specific approach achieved an AUC of 0\.8461 and improved discrimination by 0\.0168 relative to the best baseline, demonstrating that explicitly modeling demographic heterogeneity yields measurable gains in CRS risk prediction\. The contributions of this paper are as follows:

- •We observe and leverage the nationwide diversity and richness of factors in theAll of UsEHR cohort\.
- •We introduce a hybrid feature selection framework that compresses more than 110,000 clinical codes to 100 key features\.
- •We propose demographic stratified modeling motivated by pronounced age\-dependent sexual dimorphism in disease phenotypes and progression\.
- •We build six independent models to capture different risk factors in each subgroup\.
- •Our approach demonstrates improved discrimination both overall and across subgroups\.
- •Our approach may facilitate earlier triage and referral prioritization in clinical settings, particularly when diagnostic imaging is unavailable\.

## IIRelated Work

Machine learning \(ML\) has been increasingly utilized to enhance the diagnosis, phenotyping, and prognostic assessment of CRS\. Broadly, prior research focuses on two primary domains: approaches leveraging specialized imaging or genetic modalities, and those utilizing electronic health records \(EHR\)\.

### II\-AGenetic and Imaging\-Based Approaches

A targeted line of research focuses specifically on predicting the presence of CRS Within this scope, genetic susceptibility has been explored using polygenic risk scores \(PRS\) derived from large\-scale biobank cohorts to estimate disease liability across diverse ancestries\[[12](https://arxiv.org/html/2605.05213#bib.bib5)\]\. Complementary approaches leverage objective imaging data from head CT and MRI to define CRS based on Lund\-Mackay thresholds and quantify inflammatory burden beyond symptom reporting\[[7](https://arxiv.org/html/2605.05213#bib.bib25)\]\. Methodologically, linear frameworks such as logistic regression are typically employed in genetic studies to evaluate the predictive utility of cumulative risk alleles\. In contrast, imaging\-centric efforts frequently adopt deep learning and radiomics pipelines to select high\-dimensional signatures from scans for precise phenotype classification\[[4](https://arxiv.org/html/2605.05213#bib.bib16)\]\. However, a primary limitation of the works is the reliance on resource\-intensive data modalities; obtaining genetic sequencing or imaging entails substantial costs and logistical burdens, rendering these approaches unfeasible for routine clinical practice\. Furthermore, existing modeling frameworks exhibit algorithmic shortcomings: linear models often lack the complexity to capture the nonlinear interactions inherent in heterogeneous disease pathways, while deep learning suffers from limited interpretability\.

### II\-BEHR Data Modeling

A parallel body of work utilizes widely accessible EHR and routine clinical data for predictive modeling\. For instance, multicenter prospective cohorts have been leveraged to distinguish olfactory dysfunction from normal smell in CRS patients\[[19](https://arxiv.org/html/2605.05213#bib.bib49)\]\. Similarly, analysis of longitudinal EHR data has been used to predict the individual risk of revision sinus surgery\[[14](https://arxiv.org/html/2605.05213#bib.bib12)\], demonstrating that incorporating longer historical observation windows significantly improves model performance\. In these settings, nonlinear learners such as random forest and decision trees are frequently adopted to capture higher\-order interactions among symptoms and comorbid factors, while remaining relatively interpretable\.

However, these studies rely on relatively small datasets, which presents two significant limitations\. First, because they focus exclusively on characterizing outcomes within an established CRS cohort, these models cannot address the broader challenge of disease screening in the general population\. Second, the restricted scale and scope of these cohorts introduce selection bias and lack population\-level coverage, making it difficult to cross\-validate findings or ensure generalizability across diverse demographic groups\.

![Refer to caption](https://arxiv.org/html/2605.05213v1/Overall.png)Figure 1:Pipeline Overview\. Our framework processes raw data through data pre\-processing, identifies key features via hybrid feature selection, and trains group\-specific models based on demographic stratification strategies\.

## IIIData Preparation

To overcome the limited generalizability of prior chronic rhinosinusitis modeling studies which often constrained to single\-institution EHRs, we leveraged the NIHAll of UsResearch Program, a nationally diverse, longitudinal cohort with EHR data standardized to the OMOP Common Data Model\. However, raw OMOP data are stored as sparse, transactional event logs that are not inherently compatible with standard machine learning algorithms\. To bridge this gap, we implemented a rigorous preprocessing pipeline to transform these irregular longitudinal records into structured, recency\-based feature representations\. This transformation was critical for capturing the temporal dynamics of the disease; by aggregating historical clinical events into fixed\-window vectors based on their proximity to the index date, we enabled the model to prioritize recent, active clinical signals over distant history\. This process effectively converted raw temporal sequences into a unified recency feature table suitable for predictive modeling\.

### III\-ACohort Construction and Target Definition

CRS targets were identified using a rule\-based phenotyping strategy\. To validate the diagnosis and minimize misclassification from isolated coding events, participants were labeled as CRS targets if they had at least two qualifying CRS\-related diagnostic codes recorded within a two\-year period\. All remaining participants who did not meet the CRS target definition were labeled as controls\.

Controls were propensity score–matched to CRS targets to balance demographics and healthcare utilization, using age category, sex at birth, race, ethnicity, and visit frequency category\. Visit frequency was included as a matching criterion to mitigate surveillance \(ascertainment\) bias, since participants with more healthcare encounters have more opportunities to receive CRS\-related diagnoses and recorded comorbidities\. Visit frequency was defined by the average number of relevant healthcare visits within a specified timeframe and categorized as fewer than 12 visits, 12–24 visits, or more than 24 visits\. For CRS Targets, the index date was defined as the first qualifying CRS diagnosis date; for matched controls, the index date was assigned as the same date as their matched CRS target to ensure aligned observation windows\.

### III\-BCohort Balancing and Feature Engineering

Raw electronic health records inherently exhibit severe class imbalance, with CRS targets representing a small minority of the general population\. Training machine learning models on such skewed data typically results in biased classifiers that prioritize specificity \(predicting the majority class\) at the expense of sensitivity \(detecting true targets\)\. To mitigate this and ensure the model effectively learns the signal of the minority class, we employed a down sampling strategy\.

First, participants without any recorded clinical events during the two\-year observation window were excluded to ensure adequate longitudinal information for reliable prediction\. Subsequently, from the remaining pool, controls were then matched 1:1 to CRS targets using nearest\-neighbor matching based on pre\-computed propensity score\. This process yielded a final balanced cohort of 17,560 participants \(ntarget=8,780n\_\{\\text\{target\}\}=8,780,ncontrol=8,780n\_\{\\text\{control\}\}=8,780\) serving as the foundation for both global model training and subgroup analyses\.

To transform raw OMOP data logs into a usable format, we applied the same recency\-based encoding scheme across all domains, including conditions, medications, and procedures\. Specifically, for diagnostic procedures such as endoscopy and imaging, these features capture theutilizationof the service \(i\.e\., the occurrence of the event\) rather than the clinical results or findings\. Unlike traditional binary encoding which merely indicates the presence or absence of a condition, recency encoding captures the temporal proximity of clinical events\. This approach mirrors clinical decision\-making principles, where recent medical interactions typically hold greater prognostic value and relevance to the patient’s current health status than distant historical events\. For each clinical variable, the feature value was defined as the number of days between the most recent occurrence of the event and the index date\. To handle sparsity, events that never occurred or occurred outside the two\-year observation window were assigned a sentinel value of 999,999\. This allows tree\-based models to mathematically segregate missing or remote events from recent, clinically active signals without imputing artificial means\. Finally, to ensure rigorous evaluation and prevent data leakage, all explicit CRS diagnostic codes were removed from the feature set prior to training\.

![Refer to caption](https://arxiv.org/html/2605.05213v1/Feature_Extraction.png)Figure 2:Pipeline of Hybrid Feature Selection

## IVMethodology

As illustrated in the overall pipeline of our approach \(Fig\.[1](https://arxiv.org/html/2605.05213#S2.F1)\), the proposed methodology consists of three core components built upon pre\-processed data\. First, we build a hybrid feature selection framework to select informative features from extremely high\-dimensional data\. Second, we mitigate demographic\-dependent heterogeneity by stratifying participants into six sex\-age subgroups\. Third, we develop stratum\-specific predictive models using XGBoost, with independent hyperparameter optimization for each training regime, resulting in six independently tuned models aligned with clinically interpretable demographic strata\.

### IV\-AHybrid Feature Selection

In order to improve model performance by reducing noise and dimensionality while preserving clinical interpretability, we adopted a two\-stage hybrid feature selection framework that integrates an initial statistical coarse screening with a subsequent model\-driven fine screening to progressively narrow the feature space as shown in Fig\.[2](https://arxiv.org/html/2605.05213#S3.F2)\.

Stage 1: Statistical Coarse Screening

The rawAll of Usdataset includes\>\>110,000 unique standard codes spanning conditions, procedures, and medications\. Modeling such a high\-dimensional, sparse feature space is computationally costly and increases overfitting risk\. We therefore applied a prevalence\-based coarse screen to prioritize variables with the strongest marginal separation between CRS targets and controls\.

For each code, we computed prevalence in the target group and control group and used the absolute prevalence difference,\|Pt​a​r​g​e​t−Pc​o​n​t​r​o​l\|\|P\_\{target\}\-P\_\{control\}\|, as a simple utility score\. Features were ranked by this metric, and the top 1,100 were retained to form an intermediate set: 300 conditions, 500 procedures, and 300 medications\. We intentionally kept this intermediate set relatively broad to avoid discarding weaker yet biologically meaningful signals\. A larger quota was allocated to procedures to reflect their greater coding granularity and heterogeneity, which can be informative for distinguishing CRS care trajectories\. Guided by established epidemiological literature\[[23](https://arxiv.org/html/2605.05213#bib.bib61),[17](https://arxiv.org/html/2605.05213#bib.bib62)\]and discussions with clinical experts, we ensured that our feature set comprehensively encompasses the known medical risk factors for CRS\.

Stage 2: Model\-Based Fine Screening

The prevalence screen captures primarily univariate, near\-linear signals\. To identify features that contribute under multivariate and potentially non\-linear interactions, we performed a second\-stage selection using an optimized XGBoost model\.

Using the 1,100\-feature set, we trained a global XGBoost classifier and ranked features by information\-gain\-based importance\. We retained the top 100 features for downstream modeling to balance parsimony, interpretability, and performance, reducing residual noise while preserving signals relevant to demographic\-stratified analyses\. Quantitatively, this subset accounts for 80\.6% of the total cumulative SHAP value, ensuring that the vast majority of the model’s predictive power is preserved\.

The final feature set spanned clinically coherent CRS signals, including sinonasal conditions like: acute sinusitis, chronic rhinitis, allergic rhinitis; diagnostic procedures, such as the utilization of nasal endoscopy, maxillofacial CT; and common CRS medications, such asfluticasone propionate nasal spray, amoxicillin–clavulanate, oral prednisone\.

TABLE I:Statistics of the study cohort by demographic group\.
### IV\-BDemographic Stratification Strategy

CRS is clinically and biologically heterogeneous, and key disease signals can vary systematically across demographic subgroups\. Consistent with established epidemiological and biological evidence, our cohort exhibited sex\- and age\-dependent differences in the dominant families of CRS\-related signals\.

In our cohort, sex\-conditioned enrichment patterns suggested distinct etiologic profiles\. Males more often showed a predominantly*structural and polypoid*pattern, with greater prevalence of obstruction\- and polyp\-associated signals, but females more often exhibited a*mucosal inflammation and atopy*pattern, with greater prevalence of mucosal\-inflammatory and allergy/atopy\-associated signals\. Prior work reporting sex\-dependent CRS phenotypes and biology provides external support for these sex\-linked signal patterns\[[26](https://arxiv.org/html/2605.05213#bib.bib38),[15](https://arxiv.org/html/2605.05213#bib.bib39),[29](https://arxiv.org/html/2605.05213#bib.bib40)\]\.

We further observed age\-modulated shifts in dominant signal families conditional on sex\. In males, structural/anatomic signals were more prominent in midlife, while polyp\-associated signals became more prominent in older age, consistent with reports of male predilection for polyp\-predominant CRS and higher procedural burden in CRSwNP populations\[[28](https://arxiv.org/html/2605.05213#bib.bib54),[25](https://arxiv.org/html/2605.05213#bib.bib55)\]\. In females, acute localized inflammatory or infectious signals were more prominent at younger and middle ages, whereas older females exhibited greater enrichment of chronic multi\-airway comorbidity signals\. This pattern is supported by evidence of aging\-related inflammatory remodeling and bacteria\-associated CRS profiles\[[1](https://arxiv.org/html/2605.05213#bib.bib44),[11](https://arxiv.org/html/2605.05213#bib.bib45)\], together with the ’united airway’ framework linking upper\- and lower\-airway disease and bronchiectasis comorbidity\[[9](https://arxiv.org/html/2605.05213#bib.bib56),[16](https://arxiv.org/html/2605.05213#bib.bib57)\]\.

Based on these observations, the balanced cohort was partitioned into six mutually exclusive strata defined by the intersection of sex and age\. Age thresholds of 40 and 60 years were used to define young \(age<40<40\), middle\-aged \(40≤age<6040\\leq\\text\{age\}<60\), and older \(age≥60\\geq 60\) subgroups, consistent with commonly adopted categorizations in prior rhinology and chronic disease studies\[[27](https://arxiv.org/html/2605.05213#bib.bib41),[13](https://arxiv.org/html/2605.05213#bib.bib42),[6](https://arxiv.org/html/2605.05213#bib.bib43)\]\. Supporting this stratification strategy, a Kruskal\-Wallis analysis of our cohort revealed that 87 of the top 100 features exhibited statistically significant distributional differences across these six subgroups \(p<0\.05p<0\.05\), confirming substantial heterogeneity\. Six independent predictive models were then trained, one for each demographic stratum\. Baseline characteristics of the stratified cohorts are summarized in Table[I](https://arxiv.org/html/2605.05213#S4.T1)\.

### IV\-CModel Development

To better capture the feature–outcome relationships and data distributions, we constructed an independent model for each strata, allowing each model to learn tailored decision boundaries that reflect the clinical and temporal characteristics unique to its subgroup\.

Given the complex, non\-linear interactions among longitudinal clinical features and their heterogeneous effects across patients, we adopted Extreme Gradient Boosting \(XGBoost\) with decision\-tree base learners\[[3](https://arxiv.org/html/2605.05213#bib.bib29)\]\. XGBoost is well suited to sparse, high\-dimensional EHR data, as it flexibly captures non\-linear relationships while remaining robust to heterogeneous feature scales\. A key advantage in our setting is its built\-in sparsity\-aware split finding mechanism, which enables principled handling of sentinel\-valued features without ad hoc imputation\. During tree construction, sentinel values are treated as a distinct category and are automatically routed to the split direction that maximizes information gain\. This property is particularly important for our recency\-encoded features, where a sentinel value \(999,999999\{,\}999\) represents the absence of prior events, allowing the model to distinguish patients with no history from those with distant or recent events while controlling model complexity through regularization\.

We formulated CRS status prediction as a supervised binary classification task and modeled it using XGBoost\. At boosting iterationtt, the algorithm learns an additive tree ensemble by minimizing a regularized objective:

ℒ\(t\)=∑i=1nl​\(yi,y^i\(t−1\)\+ft​\(xi\)\)\+Ω​\(ft\),\\mathcal\{L\}^\{\(t\)\}=\\sum\_\{i=1\}^\{n\}l\\left\(y\_\{i\},\\hat\{y\}^\{\(t\-1\)\}\_\{i\}\+f\_\{t\}\(x\_\{i\}\)\\right\)\+\\Omega\(f\_\{t\}\),\(1\)wherel​\(⋅\)l\(\\cdot\)denotes the loss function andΩ​\(⋅\)\\Omega\(\\cdot\)penalizes model complexity to encourage parsimonious trees\. Each base learnerftf\_\{t\}is a regression tree fitted to the first\- and second\-order gradients of the loss, enabling efficient optimization and stable convergence\. The regularization term constrains tree structure and leaf weights, allowing the model to capture non\-linear feature interactions while reducing overfitting in high\-dimensional longitudinal clinical data\.

## VExperiment

### V\-AExperiment settings

All sex\-by\-age–stratified models were trained on a single\-machine CPU environment with multi\-threaded parallelization\. For each demographic subgroup, an independent XGBoost model was developed, with hyperparameters optimized using the Bayesian Tree\-structured Parzen Estimator \(TPE\) algorithm over 100 trials to maximize the Area Under the Receiver Operating Characteristic curve \(AUC\-ROC\)\. This subgroup\-specific optimization enabled both hyperparameter values and structural constraints to adapt to variations in risk factor distributions and data density across subpopulations\. The final optimized hyperparameter configurations for these tailored models are summarized in Table[II](https://arxiv.org/html/2605.05213#S5.T2)\. Model performance and hyperparameter robustness were assessed using 10\-fold stratified cross\-validation\.

TABLE II:Hyperparameter of demographic\-specific XGBoost models\.Our proposed method was systematically compared with Random Forest, Support Vector Machine \(SVM\), and deep learning models, all trained and evaluated on the same dataset to ensure a fair and consistent comparison\. Model performance was assessed using a comprehensive suite of evaluation metrics from multiple perspectives: \(1\) AUC\-ROC to quantify the overall discriminative ability of the model; \(2\) F1\-score to reflect performance under class imbalance; \(3\) Sensitivity \(Recall\) to measure the ability to correctly identify targets; and \(4\) Specificity to evaluate the capability to correctly recognize controls\. For binary classification, a threshold of 0\.5 was applied to generate the confusion matrices\.

### V\-BResults

Among the evaluated architectures, our proposed model demonstrated the strongest overall discriminative ability, achieving AUC of0\.8461\(Table[III](https://arxiv.org/html/2605.05213#S5.T3)\) and outperforming the comparative baselines, including XGBoost \(0\.8293\), Random Forest \(0\.8159\), SVM \(0\.8120\), and Deep Learning \(0\.8072\)\. This performance superiority extends to the F1\-score, where our model reached0\.7415, indicating a more robust balance between precision and recall compared to the next best performer \(XGBoost, 0\.7208\)\. Crucially, our method achieved the highest sensitivity of0\.6889, significantly surpassing the standard machine learning approaches\. Although specificity was lower than the global baseline, this trade\-off is clinically advantageous, as higher sensitivity is prioritized in diagnostic screening to ensure affected patients are not overlooked\.

The comparative analysis reveals that our demographic\-specific XGBoost models consistently outperformed the global model across every evaluated subgroup \(Table[IV](https://arxiv.org/html/2605.05213#S5.T4)\)\. Specifically, the tailored models achieved higher AUC values in all six strata, with improvements ranging from\+0\.0076\+0\.0076to\+0\.0278\+0\.0278\. This demonstrates that a stratified modeling strategy preserves distinct risk signals that are otherwise diluted in a unified global approach\.

TABLE III:Overall performance comparisonTABLE IV:Performance comparison across subgroups between the global XGBoost model and demographic\-specific XGBoost models\.

## VIDiscussion

Our analysis of theAll of Uscohort emphasizes that CRS manifests as a spectrum of clinical phenotypes modulated by biological sex and age\. Stratifying this cohort highlights divergences in clinical profiles, ranging from anatomical obstruction in males to systemic airway inflammation in older females\. These findings support the utility of the stratified modeling approach described in Section[IV](https://arxiv.org/html/2605.05213#S4)and appear consistent with epidemiological precedents regarding the heterogeneity of sinonasal disease\[[5](https://arxiv.org/html/2605.05213#bib.bib60)\]\.

### VI\-AClinical Phenotypes and Demographics

Distinct demographic trajectories were observed regarding potential disease etiology, based on prevalence comparisons between each subgroup and the remainder of the cohort\. The male cohort demonstrated an age\-dependent divergence characterized largely by structural and polypoid pathology\. Middle\-aged males \(40\-60\) exhibited a predominantly anatomical profile, showing a significantly elevated rate of septal deviation as compared to the other demographic sub\-groups \(4\.73% vs 2\.20%;P<0\.001P<0\.001\)\. In contrast, elderly males \(≥\\geq60\) exhibited a significantly higher prevalence of nasal polyps \(1\.60% vs 0\.82%;P<0\.001P<0\.001\), observations that align with the established predilection for CRSwNP and may reflect a need for intensive surgical management\[[28](https://arxiv.org/html/2605.05213#bib.bib54),[25](https://arxiv.org/html/2605.05213#bib.bib55)\]\.

Conversely, the female cohort exhibited profiles characterized more by mucosal inflammation and atopy, with age modulating the transition from acute to systemic presentation\. Young females \(18\-40\) exhibited elevated rates of otitis media \(5\.56% vs 2\.72%;P<0\.001P<0\.001\), suggesting a phenotype po\-tentially linked to Eustachian tube dysfunction\. Middle\-aged females \(40\-60\) constituted the primary demographic for acute inflammatory events, with a significantly higher incidence of acute frontal sinusitis \(1\.69% vs 0\.83%;P<0\.001P<0\.001\)\. The elderly female stratum \(≥\\geq60\) shifted toward chronic inflammation and an atopic picture, exhibiting elevated rates of bronchiectasis \(1\.33% vs 0\.86%;P=0\.004P=0\.004\) and fexofenadine usage \(1\.04% vs 0\.70%;P=0\.020P=0\.020\)\. These observations parallel the concept of a systemic inflammatory burden affecting both the upper and lower airways in older populations\[[9](https://arxiv.org/html/2605.05213#bib.bib56),[16](https://arxiv.org/html/2605.05213#bib.bib57)\]\.

Collectively, these distinct phenotypic profiles indicate possible areas for early management and intervention strategies based on sex; such as addressing structural abnormalities in males and optimizing allergic or inflammatory symptom management in females with suspected CRS\.

### VI\-BPhenotypic Consistency and Model Adaptation

The feature importance rankings derived from the stratified models mirror observed demographic divergences, implying the capture of biologically relevant signals\. Male\-specific models prioritized anatomical features:deviated nasal septumwas a dominant predictor \(Rank 2\) for younger men \(18–40\), shifting topolyp of nasal cavity\(Rank 3\) in elderly males \(≥\\geq60\)\. In contrast, female models favored mucosal and inflammatory indicators\. The Female 40–60 model prioritizedallergic rhinitis\(Rank 5\) andasthma\(Rank 8\), while the Female 60\+ group emphasized infectious markers, reinforcing a distinct inflammatory etiology over mechanical obstruction\.

Beyond feature selection, hyperparameter optimization illustrated the algorithm’s adaptation to data availability\. In smaller subgroups, more complex tree ensembles more readily fit stochastic fluctuations and sparse co\-occurrence patterns, so tuning favored conservative capacity control \(e\.g\., shallower depth, stronger regularization, larger minimum leaf size, and stronger subsampling\)\. In larger subgroups, the data supported higher\-capacity configurations to capture nonlinearities and interactions while maintaining stable generalization\.

## VIIConclusion

In this work, we established a predictive framework for Chronic Rhinosinusitis \(CRS\) using longitudinal electronic health record \(EHR\) data from the nationwideAll of UsResearch Program\. We transformed sparse OMOP event logs into recency\-encoded features and used a hybrid selection pipeline to reduce 110,000 candidate codes to 100 interpretable predictors\. To reflect population heterogeneity, we trained sex\-by\-age–stratified XGBoost models with subgroup\-specific hyperparameter tuning\. The grouped strategy improved weighted AUC by 0\.0168 to 0\.8461, with gains in every stratum\. Overall, the results of the work suggest that routine EHR data may enable actionable pre\-diagnostic risk stratification among primary care physicians to prioritize referral and early interventions\.

## References

- \[1\]W\.C\. Andersonet al\.\(2022\)Aging and frailty are associated with inflammatory endotypic shifts in patients with chronic rhinosinusitis\.American Journal of Rhinology & Allergy36\(4\),pp\. 521–528\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p4.1),[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1)\.
- \[2\]Centers for Disease Control and Prevention \(CDC\) and National Center for Health Statistics \(NCHS\)\(2025\)FastStats: chronic sinusitis\.Note:U\.S\. Department of Health & Human ServicesLast reviewed July 22, 2025External Links:[Link](https://www.cdc.gov/nchs/fastats/sinuses.htm)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1)\.
- \[3\]T\. Chen and C\. Guestrin\(2016\)XGBoost: a scalable tree boosting system\.InProceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining,External Links:[Document](https://dx.doi.org/10.1145/2939672.2939785)Cited by:[§IV\-C](https://arxiv.org/html/2605.05213#S4.SS3.p2.1)\.
- \[4\]Y\. Chen, Z\. Xiao, Y\. Yuan,et al\.\(2023\)Deep learning radiomics\-based preoperative prediction of recurrence in chronic rhinosinusitis: a multi\-center study\.Journal of Autoimmunity136,pp\. 103024\.External Links:[Link](https://pmc.ncbi.nlm.nih.gov/articles/PMC10139989/)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.05213#S2.SS1.p1.1)\.
- \[5\]R\. G\. Chiu, A\. Ahn, K\. Eldeirawi,et al\.\(2026\)Biological sex and chronic rhinosinusitis diagnosis and biomarkers\.JAMA Otolaryngology–Head & Neck Surgery152\(1\),pp\. 18–26\.External Links:[Document](https://dx.doi.org/10.1001/jamaoto.2025.3734)Cited by:[§VI](https://arxiv.org/html/2605.05213#S6.p1.1)\.
- \[6\]S\.H\. Choet al\.\(2012\)Age\-related differences in the pathogenesis of chronic rhinosinusitis\.Journal of Allergy and Clinical Immunology129\(3\),pp\. 858–860\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p4.4)\.
- \[7\]D\. D\. de Loos, E\. S\. Lourijsen, M\. A\. M\. Wildeman, N\. J\. M\. Freling, M\. D\. J\. Wolvers, S\. Reitsma, and W\. J\. Fokkens\(2019\)Prevalence of chronic rhinosinusitis in the general population based on sinus radiology and symptomatology\.Journal of Allergy and Clinical Immunology143\(3\),pp\. 1207–1214\.External Links:[Document](https://dx.doi.org/10.1016/j.jaci.2018.12.986)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1),[§I](https://arxiv.org/html/2605.05213#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.05213#S2.SS1.p1.1)\.
- \[8\]W\. J\. Fokkens, V\. J\. Lund, C\. Hopkins, P\. W\. Hellings, R\. Kern, S\. Reitsma, S\. Toppila\-Salmi,et al\.\(2020\)European position paper on rhinosinusitis and nasal polyps 2020\.Rhinology58\(Suppl 29\),pp\. 1–464\.External Links:[Document](https://dx.doi.org/10.4193/Rhin20.601)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1)\.
- \[9\]J\. M\. Guilemany, N\. Angrill, I\. Alobid, S\. Centellas, E\. Prades, J\. Balasch, and J\. Mullol\(2009\)A united airway: bronchiectasis is also associated with chronic rhinosinusitis and nasal polyps\.Archivos de Bronconeumología45\(10\),pp\. 525–526\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1),[§VI\-A](https://arxiv.org/html/2605.05213#S6.SS1.p2.5)\.
- \[10\]C\. Hopkinset al\.\(2009\)Psychometric validity of the 22\-item sinonasal outcome test\.Clinical Otolaryngology34\(5\),pp\. 447–454\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p2.1)\.
- \[11\]P\.H\. Hwanget al\.\(2019\)Chronic rhinosinusitis in elderly patients is associated with an exaggerated neutrophilic pro\-inflammatory response to pathogenic bacteria\.Journal of Allergy and Clinical Immunology143\(6\),pp\. 2098–2107\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p4.1),[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1)\.
- \[12\]S\. Jiang, A\. Nies, T\. Zeller,et al\.\(2023\)Risk prediction models for chronic rhinosinusitis in a german population: insights from a case\-control study on polygenic scores\.Biomedicines11\(10\),pp\. 2729\.External Links:[Document](https://dx.doi.org/10.3390/biomedicines11102729),[Link](https://www.mdpi.com/2227-9059/11/10/2729)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.05213#S2.SS1.p1.1)\.
- \[13\]D\.K\. Kimet al\.\(2020\)Age\-associated changes in chronic rhinosinusitis endotypes\.International Forum of Allergy & Rhinology10\(3\),pp\. 339–347\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p4.4)\.
- \[14\]M\. Lilja, P\. Virkkula, S\. Silén,et al\.\(2022\)Predicting revision endoscopic sinus surgery in chronic rhinosinusitis patients: a machine learning approach\.PLOS ONE17\(4\),pp\. e0267146\.External Links:[Document](https://dx.doi.org/10.1371/journal.pone.0267146),[Link](https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0267146)Cited by:[§II\-B](https://arxiv.org/html/2605.05213#S2.SS2.p1.1)\.
- \[15\]X\. Luet al\.\(2021\)Sex differences in chronic rhinosinusitis: a systematic review\.Rhinology59\(4\)\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p4.1),[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p2.1)\.
- \[16\]S\. Maio, E\. Y\. Sim, H\. F\. Lim, M\. E\. Poh, D\. Y\. Wang, F\. Aminkeng, N\. C\. Tan, P\. Y\. Tiew, and S\. H\. Chotirmall\(2018\)Bronchiectasis with chronic rhinosinusitis is associated with eosinophilic airway inflammation and is distinct from asthma\.Annals of the American Thoracic Society15\(5\),pp\. 525–526\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1),[§VI\-A](https://arxiv.org/html/2605.05213#S6.SS1.p2.5)\.
- \[17\]J\. Min and B\. K\. Tan\(2015\)Risk factors for chronic rhinosinusitis\.Current Opinion in Allergy and Clinical Immunology15\(1\),pp\. 13–20\.External Links:[Document](https://dx.doi.org/10.1097/ACI.0000000000000128)Cited by:[§IV\-A](https://arxiv.org/html/2605.05213#S4.SS1.p4.1)\.
- \[18\]M\. Nuutinenet al\.\(2022\)Predicting revision endoscopic sinus surgery in chronic rhinosinusitis patients: a machine learning approach\.PLOS ONE17\(4\),pp\. e0267146\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p2.1)\.
- \[19\]V\. R\. Ramakrishnan, J\. Arbet, J\. C\. Mace, K\. Suresh, S\. S\. Smith, Z\. M\. Soler, and T\. L\. Smith\(2021\)Predicting olfactory loss in chronic rhinosinusitis using machine learning\.Chemical Senses46\.Cited by:[§II\-B](https://arxiv.org/html/2605.05213#S2.SS2.p1.1)\.
- \[20\]V\. R\. Ramakrishnan, C\. J\. Massey, D\. M\. Beswick,et al\.\(2021\)Predicting olfactory loss in chronic rhinosinusitis using machine learning\.Chemical Senses46\.External Links:[Document](https://dx.doi.org/10.1093/chemse/bjab042),[Link](https://pubmed.ncbi.nlm.nih.gov/34473227/)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p2.1)\.
- \[21\]R\. M\. Rosenfeld, J\. F\. Piccirillo, S\. S\. Chandrasekhar, I\. Brook, K\. A\. Kumar, M\. Kramper, R\. R\. Orlandi, J\. N\. Palmer, Z\. M\. Patel, A\. Peters, S\. A\. Walsh, and M\. D\. Corrigan\(2015\)Clinical practice guideline \(update\): adult sinusitis\.Otolaryngology–Head and Neck Surgery152\(2 Suppl\),pp\. S1–S39\.External Links:[Document](https://dx.doi.org/10.1177/0194599815572097)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1)\.
- \[22\]L\. Rudmik\(2017\)Economics of chronic rhinosinusitis\.Current Allergy and Asthma Reports17\(4\),pp\. 20\.External Links:[Document](https://dx.doi.org/10.1007/s11882-017-0690-5)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1)\.
- \[23\]A\. R\. Sedaghat, E\. C\. Kuan, and G\. K\. Scadding\(2022\)Epidemiology of chronic rhinosinusitis: prevalence and risk factors\.The Journal of Allergy and Clinical Immunology: In Practice10\(6\),pp\. 1395–1403\.External Links:[Document](https://dx.doi.org/10.1016/j.jaip.2022.01.016)Cited by:[§IV\-A](https://arxiv.org/html/2605.05213#S4.SS1.p4.1)\.
- \[24\]K\. A\. Smith, R\. R\. Orlandi, and L\. Rudmik\(2015\)Cost of adult chronic rhinosinusitis: a systematic review\.The Laryngoscope125\(7\),pp\. 1547–1556\.External Links:[Document](https://dx.doi.org/10.1002/lary.25180)Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p1.1)\.
- \[25\]L\. J\. Sowerby and E\. D\. Wright\(2013\)Epidemiology, management, and impact of chronic rhinosinusitis in a canadian population\.Journal of Otolaryngology\-Head & Neck Surgery42\(1\),pp\. 1–7\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1),[§VI\-A](https://arxiv.org/html/2605.05213#S6.SS1.p1.3)\.
- \[26\]W\.W\. Stevenset al\.\(2019\)Dysregulation of the sinonasal microbiome in chronic rhinosinusitis: a sex\-specific analysis\.Journal of Allergy and Clinical Immunology144\(5\)\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p4.1),[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p2.1)\.
- \[27\]B\.K\. Tanet al\.\(2018\)Age\-related prevalence of chronic rhinosinusitis and nasal polyps and their relationships with asthma onset\.PLoS One13\(2\),pp\. e0193175\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p4.4)\.
- \[28\]B\. K\. Tan, R\. K\. Chandra, A\. Pollack, A\. Kato, D\. B\. Conley, A\. T\. Peters, L\. C\. Grammer, R\. P\. Schleimer, and R\. C\. Kern\(2013\)Incidence and associated premorbid diagnoses of patients with chronic rhinosinusitis\.Journal of Allergy and Clinical Immunology131\(5\),pp\. 1350–1360\.Cited by:[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p3.1),[§VI\-A](https://arxiv.org/html/2605.05213#S6.SS1.p1.3)\.
- \[29\]J\. Wuet al\.\(2018\)Estrogen receptors in the sinonasal mucosa: a potential link to sex differences in chronic rhinosinusitis\.International Forum of Allergy & Rhinology8\(2\)\.Cited by:[§I](https://arxiv.org/html/2605.05213#S1.p4.1),[§IV\-B](https://arxiv.org/html/2605.05213#S4.SS2.p2.1)\.

Similar Articles