Fig. 3: Visualization of prognostic TIL features in TCGA-LUAD and TCGA-LUSC.

a–h represent the TIL density measures in LUAD. a, e show the original WSIs from a high-risk and a low-risk case, respectively. b, f show example tiles of size 2048 by 2048 pixels from them. c, g show the corresponding TIL maps highlighting the TILs in yellow and non-TILs in blue. TIL density in the low-risk patient is prominently higher than in the high-risk patient. i–p represent the visualization of Euclidean distance to three nearest neighbors of each TIL in LUSC and the distance was measured from the centroid of each TIL. i, m show the original 40× WSIs from a high-risk and a low-risk case from D2test using MH&ELUSC, respectively. j, n show example tiles of size 2048 by 2048 pixels from them. k, o show the corresponding TIL maps highlighting the TILs in yellow and non-TILs in blue. The TIL distribution is sparser in a high-risk patient as compared to a low-risk patient.