Clinical Priors Guided Lung Disease Detection in 3D CT Scans

Kejin Lu, Jianfa Bai, Qingqiu Li, Runtian Yuan, Jilan Xu, Junlin Hou, Yuejie Zhang, Rui FengarXiv 2026

TL;DR

This paper introduces a gender-aware, two-stage deep learning framework designed to improve lung disease classification in 3D CT scans. By explicitly predicting a patient's gender and routing the scan to a gender-specific classifier, the model effectively mitigates the performance degradation typically caused by severe data and demographic imbalances without sacrificing overall accuracy.

What Problem Does This Paper Address?

Automated lung disease classification using 3D computed tomography (CT) scans is a powerful tool for early diagnosis, but real-world medical datasets present two major hurdles: severe class imbalance and demographic heterogeneity.

Deep learning models trained on imbalanced data naturally bias toward majority classes, severely underperforming on minority categories. Compounding this issue, clinical studies show that the prevalence and visual characteristics of lung diseases often vary significantly across demographic groups (such as gender). When a dataset is skewed—for instance, having far more male than female examples for a specific cancer type—a standard classifier struggles to generalize. The authors aim to bridge this gap by incorporating gender as an explicit clinical prior to guide the network.

Methods

The authors propose a two-stage pipeline that splits the classification task based on predicted demographic information:

  1. Preprocessing: Irrelevant regions (like the upper neck and lower abdomen) are discarded from the 3D CT volume to focus the network purely on lung structures. The remaining slices are resized and normalized.
  2. Stage I (Gender Classification): The processed CT volume is fed into a backbone network $f(\cdot)$ to extract high-level semantic features. These features are passed to a fully connected layer and a Softmax function to predict the patient's gender. This stage is optimized using standard cross-entropy loss.
  3. Stage II (Gender-Specific Disease Classification): Based on the predicted gender from Stage I, the CT scan is dynamically routed to one of two independent disease classifiers: a Male-Specific Classifier ($D_m$) or a Female-Specific Classifier ($D_f$).

Both downstream classifiers are trained to predict one of four categories (Adenocarcinoma, Squamous Cell Carcinoma, COVID-19, or Normal) using a weighted cross-entropy loss, which penalizes the misclassification of minority classes more heavily.

Figure 1. Overview of the proposed gender-aware two-stage framework.

Datasets

The framework was evaluated on a chest CT dataset annotated with both disease labels and patient gender. The dataset contains four categories with varying degrees of demographic balance:

  • Adenocarcinoma, COVID-19, and Normal: Relatively balanced distributions between male and female patients.
  • Squamous Cell Carcinoma: Highly imbalanced, featuring a significantly larger number of male cases than female cases in the training set.
Table 1. Dataset distribution

Key Insights and Ideas

  • Demographics as a Routing Mechanism: Instead of simply adding gender as a feature vector alongside image embeddings (which models can easily ignore), this architecture uses gender as a hard routing switch. This forces the network to learn distinct, gender-specific imaging representations.
  • Targeting the Tail: The primary benefit of this approach is seen in the minority classes. By isolating the female samples of Squamous Cell Carcinoma (which only had 5 training instances), the female-specific classifier can focus on learning from that specific subgroup without being overwhelmed by the features of the majority male group.

Key Results

The proposed gender-aware framework was compared against a baseline model that did not incorporate gender information:

  • Macro-F1 Score Improvement: The Macro-F1 score increased noticeably from 0.8223 (baseline) to 0.8482 (gender-aware). This indicates a much better balance between precision and recall across all categories, particularly the underrepresented ones.
  • Stable Overall Performance: Overall accuracy saw a minor increase from 86.45% to 86.49%. While the Macro-AUC dropped slightly (from 0.9394 to 0.9361), the authors note this marginal difference is an acceptable trade-off for the substantial gains in F1-score for difficult, limited-sample categories like Squamous Cell Carcinoma.

Limitations and Future Work

The authors acknowledge a marginal decrease in Macro-AUC compared to the baseline model. Additionally, while the routing mechanism successfully mitigates gender bias, splitting the dataset into gender-specific tracks inherently reduces the number of training samples available to each individual sub-classifier.

Future extensions of this work could explore integrating other critical demographic priors—such as age or ethnicity—or applying this conditional routing framework to other highly imbalanced medical imaging domains.

Summary updated

BibTeX
@misc{lu2026clinical,
  author = {Kejin Lu and Jianfa Bai and Qingqiu Li and Runtian Yuan and Jilan Xu and Junlin Hou and Yuejie Zhang and Rui Feng},
  title = {{Clinical Priors Guided Lung Disease Detection in 3D CT Scans}},
  year = {2026},
  eprint = {2603.15143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.15143},
}
Figure