Background: Tumor-infiltrating lymphocytes (TILs) represent a crucial component of the tumor microenvironment and play a significant role in antitumor immunity. Their presence has shown prognostic and predictive relevance across various epithelial cancers. This study aimed to perform a cross-sectional, quantitative assessment of TILs across major epithelial malignancies using AI-driven digital pathology algorithms. Materials and Methods: A total of 300 formalin-fixed, paraffin-embedded tissue sections from patients with histologically confirmed epithelial malignancies—including breast, lung, colorectal, and head & neck cancers—were retrospectively analyzed. Digitized whole-slide images (WSIs) were processed using a validated deep learning-based TIL quantification algorithm. TIL densities were calculated as the number of lymphocytes per mm² of stromal area. Statistical comparisons were made using one-way ANOVA followed by Tukey’s post hoc test, with p-values <0.05 considered statistically significant. Results: Among the 300 tumor samples, the mean TIL density (cells/mm²) was highest in triple-negative breast cancer (432.5 ± 65.3), followed by head and neck squamous cell carcinoma (387.4 ± 52.8), non-small cell lung carcinoma (296.8 ± 48.9), and colorectal adenocarcinoma (215.1 ± 41.2). Statistically significant differences in TIL densities were observed across tumor types (p < 0.001). The algorithm demonstrated high reproducibility with an inter-rater reliability (ICC) of 0.91. Increased TIL density was associated with early-stage tumors in breast and lung cancer cohorts. Conclusion: Digital quantification of TILs using AI-based pathology tools provides a consistent and scalable method for comparative immunological profiling across epithelial malignancies. The observed variability in TIL distribution highlights the importance of tumor-specific immune landscapes in prognostic and therapeutic stratification.
Tumor-infiltrating lymphocytes (TILs) have emerged as critical mediators of the host immune response within the tumor microenvironment, and their presence has been associated with favorable clinical outcomes in a wide range of epithelial malignancies (1,2). TILs reflect ongoing antitumor immune activity and have been recognized as both prognostic and predictive biomarkers, particularly in cancers such as triple-negative breast cancer, non-small cell lung carcinoma, and colorectal carcinoma (3,4). The Immunoscore—based on TIL density and distribution—has been proposed as a standardized approach to immune classification of tumors, offering complementary insights alongside traditional TNM staging (5).
With advancements in digital pathology and artificial intelligence (AI), the quantification of TILs has shifted from subjective visual estimation to objective, reproducible metrics derived from whole-slide imaging (6). Automated image analysis algorithms trained on histopathological features can accurately detect lymphocyte populations within stromal and intratumoral compartments, enhancing consistency and scalability of immune profiling across tumor types (7). This approach also enables high-throughput comparative studies across multiple cancer types, which is essential for identifying common and distinct patterns in tumor immune microenvironments.
Despite the growing interest in TIL-based biomarkers, limited studies have conducted large-scale, cross-sectional evaluations of TIL densities across different epithelial malignancies using standardized digital methods. The current study aims to fill this gap by quantitatively assessing TILs in major epithelial cancers using validated digital pathology algorithms. The goal is to establish comparative immunological baselines and explore the potential of TIL quantification in clinical stratification and immunotherapy planning.
This cross-sectional study included a total of 300 formalin-fixed, paraffin-embedded (FFPE) tumor specimens from patients diagnosed with epithelial malignancies, including breast (n=75), lung (n=75), colorectal (n=75), and head and neck cancers (n=75).
Each tissue block was sectioned at 4 µm thickness and stained with hematoxylin and eosin (H&E) using standardized protocols. The stained slides were then digitized using a high-resolution whole-slide scanner (40× magnification). The resulting whole-slide images (WSIs) were analyzed using a commercially validated, AI-driven digital pathology platform designed to identify and quantify TILs within the tumor-associated stromal regions.
The algorithm segmented stromal compartments and identified mononuclear lymphocytes based on morphological criteria. TIL density was expressed as the number of lymphocytes per square millimeter (cells/mm²) of stromal area. Three representative tumor regions per slide were selected for analysis to ensure consistency, and the average TIL density per case was calculated.
Statistical analysis was performed using SPSS version 25.0. Mean TIL densities were compared among cancer types using one-way ANOVA, followed by Tukey’s post hoc test for pairwise group comparisons. Statistical significance was considered at p < 0.05. Interobserver reliability of the digital platform was assessed using intraclass correlation coefficient (ICC) on a randomly selected subset of 30 slides reviewed independently by two pathologists.
The study included 300 cases of epithelial malignancies distributed evenly across four cancer types: breast carcinoma, lung carcinoma, colorectal carcinoma, and head and neck squamous cell carcinoma (HNSCC). The mean age of the patients was 58.3 ± 10.4 years, with a female predominance noted in breast cancer cases (Table 1).
Quantitative analysis of TILs using the AI-based digital pathology algorithm revealed significant variability in lymphocyte densities among tumor types (p < 0.001). The highest mean TIL density was observed in triple-negative breast cancer (TNBC) cases, with an average of 432.5 ± 65.3 cells/mm², followed by HNSCC at 387.4 ± 52.8 cells/mm². Non-small cell lung carcinoma (NSCLC) showed a moderate mean density of 296.8 ± 48.9 cells/mm², while colorectal adenocarcinoma exhibited the lowest mean TIL count at 215.1 ± 41.2 cells/mm² (Table 2).
Post hoc analysis confirmed statistically significant pairwise differences between colorectal cancer and the other three cancer types (p < 0.01). However, differences between TNBC and HNSCC were not statistically significant (p = 0.064). Interobserver reliability for TIL quantification was excellent, with an intraclass correlation coefficient (ICC) of 0.91 (95% CI: 0.86–0.95), indicating high consistency of the digital algorithm.
Furthermore, stratification of cases based on tumor stage revealed that early-stage tumors (Stage I–II) in breast and lung cancers exhibited higher TIL densities compared to advanced-stage tumors (Stage III–IV), suggesting an inverse relationship between TIL infiltration and disease progression (Table 3).
Table 1. Demographic Distribution of Study Population
Cancer Type |
Number of Cases (n) |
Mean Age (years) |
Gender (F:M) |
Breast Cancer |
75 |
55.6 ± 8.9 |
72:3 |
Lung Cancer |
75 |
60.2 ± 9.7 |
26:49 |
Colorectal Cancer |
75 |
59.3 ± 11.2 |
34:41 |
Head & Neck Cancer |
75 |
58.0 ± 11.6 |
29:46 |
Table 2. Mean Tumor-Infiltrating Lymphocyte (TIL) Densities across Cancer Types
Cancer Type |
Mean TIL Density (cells/mm²) |
Standard Deviation |
Triple-Negative Breast CA |
432.5 |
±65.3 |
Head & Neck SCC |
387.4 |
±52.8 |
Non-Small Cell Lung CA |
296.8 |
±48.9 |
Colorectal Adenocarcinoma |
215.1 |
±41.2 |
Table 3. Mean TIL Densities by Tumor Stage in Breast and Lung Cancer
Cancer Type |
Stage I–II TILs (cells/mm²) |
Stage III–IV TILs (cells/mm²) |
p-value |
Breast CA |
457.2 ± 62.3 |
401.6 ± 58.7 |
0.018 |
Lung CA |
322.4 ± 50.1 |
271.3 ± 46.4 |
0.025 |
As shown in Tables 2 and 3, digital pathology effectively discriminated between cancer types and stages based on TIL density, underscoring the clinical relevance of automated immune profiling in oncology.
This study quantitatively evaluated tumor-infiltrating lymphocytes (TILs) across major epithelial malignancies using artificial intelligence (AI)-assisted digital pathology algorithms. Our findings revealed significant differences in TIL densities between tumor types, with the highest infiltration observed in triple-negative breast cancer (TNBC) and the lowest in colorectal adenocarcinoma. These results are consistent with existing literature suggesting that immunogenic tumors like TNBC and head and neck squamous cell carcinoma (HNSCC) often exhibit a more active immune microenvironment (1,2).
The observed elevated TIL densities in TNBC align with prior studies where high TIL levels have been linked to better prognosis and response to chemotherapy and immunotherapy (3,4). Similarly, high TIL levels in HNSCC have been associated with improved survival outcomes, possibly due to the viral etiology in a subset of these cancers, such as HPV-positive tumors, which are more immunologically active (5,6). In contrast, colorectal cancer showed the lowest TIL infiltration, particularly in microsatellite-stable tumors, which typically have a less immunogenic profile (7,8).
Digital pathology offers a reproducible and scalable method for TIL quantification. Traditional manual assessment is often subject to interobserver variability and lacks standardization (9). Our algorithm demonstrated a high intraclass correlation coefficient (ICC = 0.91), supporting the utility of AI in improving diagnostic accuracy and reproducibility. These findings echo previous reports validating machine learning tools for TIL evaluation in breast and lung cancer histopathology (10,11).
Interestingly, our stratified analysis revealed that early-stage tumors exhibited significantly higher TIL densities compared to advanced stages, particularly in breast and lung cancers. This inverse relationship may reflect immune evasion mechanisms adopted by tumors during progression, such as upregulation of checkpoint molecules and recruitment of immunosuppressive cells (12,13). These dynamics highlight the importance of assessing immune infiltration in the early disease course, potentially guiding therapeutic decisions.
The integration of TIL quantification into routine pathology could serve multiple roles—from risk stratification to predicting response to immune checkpoint inhibitors (14). Several clinical trials have demonstrated the predictive role of TILs in selecting candidates for PD-1/PD-L1 inhibitors, especially in lung and breast cancers (15,6). Moreover, the Immunoscore—based on TIL density and distribution—has been adopted in colorectal cancer as a complement to TNM staging and is associated with recurrence risk and survival (1).
Despite the strengths of our study, including a multicancer cohort and standardized AI-based analysis, certain limitations must be acknowledged. The retrospective design and lack of immunophenotypic classification of lymphocytes (e.g., CD8+, FOXP3+) limit mechanistic insights. Additionally, tumor heterogeneity and sampling bias in tissue sections could influence TIL measurements. Future studies incorporating multiplex immunohistochemistry and spatial transcriptomics may offer deeper insights into the functional immune landscape (8,9).
In conclusion, this study supports the feasibility and clinical relevance of AI-driven TIL quantification across epithelial malignancies. The differences in TIL infiltration patterns among cancer types and stages reinforce the need for tumor-specific immune profiling. As precision oncology evolves, integrating digital immunopathology into routine diagnostic workflows can enhance prognostic assessments and guide immunotherapeutic strategies.