Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Mar 12:17:100437.
doi: 10.1016/j.jpi.2025.100437. eCollection 2025 Apr.

Fast TILs-A pipeline for efficient TILs estimation in non-small cell Lung cancer

Affiliations

Fast TILs-A pipeline for efficient TILs estimation in non-small cell Lung cancer

Nikita Shvetsov et al. J Pathol Inform. .

Abstract

The prognostic relevance of tumor-infiltrating lymphocytes (TILs) in non-small cell Lung cancer (NSCLC) is well-established. However, manual TIL quantification in hematoxylin and eosin (H&E) whole slide images (WSIs) is laborious and prone to variability. To address this, we aim to develop and validate an automated computational pipeline for the quantification of TILs in WSIs of NSCLC. Such a solution in computational pathology can accelerate TIL evaluation, thereby standardizing the prognostication process and facilitating personalized treatment strategies. We develop an end-to-end automated pipeline for TIL estimation in Lung cancer WSIs by integrating a patch extraction approach based on hematoxylin component filtering with a machine learning-based patch classification and cell quantification method using the HoVer-Net model architecture. Additionally, we employ randomized patch sampling to further reduce the processed patch amount. We evaluate the effectiveness of the patch sampling procedure, the pipeline's ability to identify informative patches and computational efficiency, and the clinical value of produced scores using patient survival data. Our pipeline demonstrates the ability to selectively process informative patches, achieving a balance between computational efficiency and prognostic integrity. The pipeline filtering excludes approximately 70% of all patch candidates. Further, only 5% of eligible patches are necessary to retain the pipeline's prognostic accuracy (c-index = 0.65), resulting in a linear reduction of the total computational time compared to the filtered patch subset analysis. The pipeline's TILs score has a strong association with patient survival and outperforms traditional CD8 immunohistochemical scoring (c-index = 0.59). Kaplan-Meier analysis further substantiates the TILs score's prognostic value. This study introduces an automated pipeline for TIL evaluation in Lung cancer WSIs, providing a prognostic tool with potential to improve personalized treatment in NSCLC. The pipeline's computational advances, particularly in reducing processing time, and clinical relevance demonstrate a step forward in computational pathology.

Keywords: Automated quantification; Computational pathology; Deep learning; Explainable AI; Frugal AI; Machine learning; Non-small cell Lung cancer; Resource-efficient AI; Tumor-infiltrating lymphocytes; Whole slide images.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this article.

Figures

Fig. 1
Fig. 1
Proposed pipeline for evaluating TILs density in WSI. Results include the heatmap visualization of processed patches and TILs score for WSI.
Fig. 2
Fig. 2
Per patch TILs score visualization. (1) Original WSI, (2) all patch candidates, (3) 5% of patch candidates. The heatbar corresponds to TIL density scores for the patches in (2) and (3).
Fig. 3
Fig. 3
Patch extraction reduction process with tissue mask and H-component thresholding.
Fig. 4
Fig. 4
Patch classification step visualization: (1) color-coded patch classification, (2) patch selection, based on classes.
Fig. 5
Fig. 5
Kaplan–Meier curves for CD8 IHC score.
Fig. 6
Fig. 6
Kaplan–Meier curves for TILs score.

Similar articles

References

    1. Cifci D., Veldhuizen G.P., Foersch S., Kather J.N. AI in computational pathology of cancer: Improving diagnostic workflows and clinical outcomes? Annu Rev Cancer Biol. Apr. 2023;7(1)
    1. Acs B., Rantalainen M., Hartman J. Artificial intelligence as the next step towards precision pathology. J Intern Med. Jul. 2020;288(1):62–81. - PubMed
    1. Gooden M.J.M., de Bock G.H., Leffers N., Daemen T., Nijman H.W. The prognostic influence of tumour-infiltrating lymphocytes in cancer: a systematic review with meta-analysis. Br J Cancer. Jun. 2011;105(1):93–103. - PMC - PubMed
    1. Salgado R., et al. The evaluation of tumor-infiltrating lymphocytes (TILs) in breast cancer: recommendations by an International TILs Working Group 2014. Ann Oncol. Feb. 2015;26(2):259–271. - PMC - PubMed
    1. Hendry S., et al. Assessing tumor-infiltrating lymphocytes in solid tumors: a practical review for pathologists and proposal for a standardized method from the international Immuno-oncology biomarkers working group: part 2: TILs in melanoma, gastrointestinal tract carcinomas, non-small cell Lung carcinoma and mesothelioma, endometrial and ovarian carcinomas, squamous cell carcinoma of the head and neck, genitourinary carcinomas, and primary brain tumors. Adv Anat Pathol. Nov. 2017;24(6):311–335. doi: 10.1097/PAP.0000000000000161. - DOI - PMC - PubMed

LinkOut - more resources