Abstract
Classification of histologic patterns in lung adenocarcinoma is critical for determining tumor grade and treatment for patients. However, this task is often challenging due to the heterogeneous nature of lung adenocarcinoma and the subjective criteria for evaluation. In this study, we propose a deep learning model that automatically classifies the histologic patterns of lung adenocarcinoma on surgical resection slides. Our model uses a convolutional neural network to identify regions of neoplastic cells, then aggregates those classifications to infer predominant and minor histologic patterns for any given whole-slide image. We evaluated our model on an independent set of 143 whole-slide images. It achieved a kappa score of 0.525 and an agreement of 66.6% with three pathologists for classifying the predominant patterns, slightly higher than the inter-pathologist kappa score of 0.485 and agreement of 62.7% on this test set. All evaluation metrics for our model and the three pathologists were within 95% confidence intervals of agreement. If confirmed in clinical practice, our model can assist pathologists in improving classification of lung adenocarcinoma patterns by automatically pre-screening and highlighting cancerous regions prior to review. Our approach can be generalized to any whole-slide image classification task, and code is made publicly available.
Introduction
Lung adenocarcinoma, the most prevalent form of lung cancer, presents a significant diagnostic challenge due to its inherent morphological diversity. Clinical management and patient prognosis are heavily influenced by the tumor's "grade," which is determined by the presence and proportion of five distinct histologic patterns: lepidic, acinar, papillary, micropapillary, and solid. High-grade patterns, specifically micropapillary and solid, are associated with significantly worse outcomes, making their accurate identification paramount.
Despite its importance, the current grading process is hindered by two primary factors. First, approximately 80% of these tumors exhibit a "mixed spectrum" of multiple patterns, requiring pathologists to estimate the relative area of each. Second, the qualitative nature of the criteria used to distinguish these patterns—such as differentiating between acinar and lepidic subtypes—leads to substantial inter-observer variability, even among experienced thoracic pathologists. To address these challenges, we developed an automated deep learning pipeline designed to provide objective, reproducible, and "pathologist-level" classification of these critical histologic patterns.
Methodology
Our approach utilizes a multi-stage deep learning pipeline designed to handle the massive scale of whole-slide images (WSIs).
Patch-Level Classification
The core of the model is a ResNet-18 convolutional neural network. Given that WSIs are too large for direct processing, we employed a sliding window approach to extract 224x224 pixel patches. The model was trained on over 4,000 annotated crops to recognize the five histologic patterns. To ensure robustness against variations in tissue preparation and staining, we applied extensive data augmentation, including color jittering, random rotations, and flips.
Aggregation and Inference
To translate patch-level predictions into a slide-level diagnosis, we implemented a three-step aggregation heuristic:
- Confidence Filtering: Low-confidence predictions are discarded to reduce noise.
- Thresholding: Any pattern constituting less than 5% of the total identified cancerous patches is excluded.
- Pattern Assignment: The most frequent remaining pattern is designated as the "predominant" type, while others are identified as "minor" components.
Experimental Setup
The study utilized a comprehensive dataset of 422 whole-slide images sourced from the Dartmouth-Hitchcock Medical Center. The data was partitioned as follows:
- Training Set: 245 WSIs, providing 4,161 manually annotated crops.
- Development Set: 34 WSIs used for hyperparameter optimization and architecture selection.
- Independent Test Set: 143 WSIs.
To establish a rigorous benchmark, the "ground truth" for the test set was defined by the average labels provided by three independent, board-certified pathologists.
Results and Analysis
The model demonstrated exceptional performance, matching or slightly exceeding human experts in several key metrics.
Slide-Level Performance
On the independent test set, the model achieved a kappa score of 0.525 and a percent agreement of 66.6% with the pathologist consensus. In comparison, the average inter-pathologist agreement was 62.7% with a kappa score of 0.485. Statistical analysis confirmed that the model's performance was within the 95% confidence intervals of the pathologists' agreement, indicating parity with expert human performance.
Patch-Level Accuracy
The underlying patch classifier also showed high reliability. On "classic" examples of the histologic patterns, it achieved an F1 score of 90.4%. The Area Under the Curve (AUC) for all five classes was 0.97 or higher, demonstrating the model's strong discriminative ability even before slide-level aggregation.
The Acinar-Lepidic Challenge
Analysis of disagreements revealed that nearly 40% of errors occurred between the acinar and lepidic subtypes. This reflects a known biological difficulty where these patterns often transition smoothly into one another, creating ambiguous boundaries that challenge both human perception and algorithmic classification.
Discussion and Clinical Implications
The primary advantage of this automated system lies in its precision. While humans estimate area by visual approximation, the model provides a quantitative count of every cancerous patch. This granularity is particularly useful for identifying small but clinically significant high-grade components that might be overlooked during manual review.
By automatically highlighting suspicious regions, the tool can direct a pathologist’s attention to the most critical areas of a slide, potentially reducing diagnostic time and improving accuracy in a clinical pre-screening workflow.
Limitations and Future Work
While promising, the study has limitations. The model was trained on data from a single institution, and its generalizability to different staining protocols requires further validation. Additionally, rare patterns like micropapillary were underrepresented in the training set. Future research will explore pixel-level segmentation using architectures like Mask R-CNN and investigate the potential for predicting genetic mutations directly from histologic images.
Summary updated