Introduction
Accurate prediction of lung nodule malignancy from Computed Tomography (CT) scans is critical for early lung cancer intervention. Despite the success of deep learning in medical imaging, most existing models treat malignancy prediction as a standard classification task using "one-hot" labels. This approach often fails to capture the continuous nature of cancer progression and ignores the rich semantic descriptions provided by radiologists during diagnosis.
Radiologists do not merely assign a binary label; they evaluate specific morphological attributes—such as spiculation, lobulation, and margin—to justify their findings. This paper introduces CLIP-Lung, a novel framework that incorporates this "radiologist wisdom" into the training process. By adapting the Contrastive Language-Image Pre-training (CLIP) architecture, the model aligns visual features with textual attributes, leading to improved diagnostic accuracy and enhanced clinical interpretability.
Methodology
CLIP-Lung leverages a vision-language approach to bridge the gap between visual patterns and semantic knowledge. The framework consists of several key innovations designed to handle the specificities of medical imaging data.
Channel-wise Conditional Prompt (CCP)
Standard vision-language models often use static text prompts. However, medical images require more granular alignment. The CCP module splits image feature maps into distinct groups and uses them to generate learnable, image-conditioned text prompts. This ensures that the model learns a consistent and localized relationship between specific visual textures (e.g., a jagged edge) and their corresponding descriptive terms (e.g., "spiculation").
Instance-Specific Attribute Weighting
In datasets like LIDC-IDRI, radiologists provide numerical ratings for various attributes (calcification, sphericity, margin, etc.). CLIP-Lung utilizes these ratings to weight the importance of different text embeddings for each specific image. This allows the model to prioritize the most relevant semantic features for a given nodule, providing a much more precise training signal than simple binary classification.
Triple Alignment Loss
The model is optimized using a tripartite contrastive loss strategy:
- Image-Class Alignment: Matches the visual representation to the final diagnosis (benign, unsure, or malignant).
- Image-Attribute Alignment: Matches specific image regions to descriptive semantic attributes.
- Class-Attribute Alignment: Ensures the model's internal representation of "malignancy" is semantically consistent with high-risk attributes like "high spiculation."
Notably, the text branch is only utilized during the training phase. During inference, the model operates as a unimodal vision system, requiring only the CT image. This ensures high performance without any additional computational overhead in a clinical setting.
Experimental Results
Dataset and Setup
The study utilized the LIDC-IDRI dataset, the gold standard for lung nodule research, containing CT scans from 1,010 patients. The authors evaluated the model across three sub-datasets:
- LIDC-A: A three-class setup (benign, unsure, malignant).
- LIDC-B: Trained on three classes but tested only on benign and malignant cases.
- LIDC-C: A standard binary classification setup.
Performance Metrics
CLIP-Lung demonstrated significant improvements over baseline models. On the LIDC-A dataset, the model achieved an accuracy of 60.9%, outperforming standard Cross-Entropy models (54.2%) and specialized ordinal regression methods like CORF (56.8%). The model also showed superior F1-scores, particularly in reducing false negatives for malignant nodules—a critical metric in oncology.
Discussion and Insights
Latent Space Rectification
A key insight from this research is that textual knowledge acts as a "rectifier" for the model's latent space. In traditional unimodal models, visually similar nodules with different clinical outcomes often cluster together, leading to misclassification. By incorporating text, the model is forced to separate these samples based on clinically relevant features that may be subtle in the raw pixel data but are clearly defined in the semantic space.
Explainability by Design
Because CLIP-Lung is trained to align images with specific descriptive words, its internal attention mechanisms naturally align with radiologist logic. Qualitative analysis using Grad-CAM visualizations showed that CLIP-Lung precisely highlights regions corresponding to lobulation and spiculation. Unlike baseline models that often produce blurry or irrelevant attention maps, CLIP-Lung provides a "white box" justification for its predictions, which is essential for clinical adoption.
Conclusion and Future Work
CLIP-Lung represents a significant step forward in integrating domain-specific textual knowledge into medical AI. By moving beyond simple labels and embracing the descriptive language of radiologists, the framework achieves state-of-the-art results and improved interpretability. While the model currently faces challenges in identifying "unsure" nodules—often due to contradictory annotations in the source data—future work will focus on incorporating broader textual knowledge, such as full-length radiologist reports, to further refine diagnostic precision.
Summary updated