In this study, we developed an automated workflow for evaluating the density of CD3+ and CD8+ cells in the tumour regions on IHC-stained WSIs of NSCLC, and further proposed an immune scoring system “I-score” based on the automated assessed cell density. Here, CD8A is linked to non-small cell lung carcinoma.