Thus, our DL models achieved a high-precision score of PD-L1 (22C3) in lung adenocarcinoma and lung squamous cell carcinoma in both sampling methods (surgery and needle biopsy). This evidence concerns the gene CD274 and squamous cell lung carcinoma.