Artificial Intelligence for early detection of lung cancer in General Practitioners' clinical notes: a retrospective observational cohort study

Publication date

2025-05

Authors

Schut, Martijn C.
Luik, Torec T.
Vagliano, Iacopo
Rios, Miguel
Helsper, Charles WISNI 0000000391974769
van Asselt, Kristel M.ORCID 0000-0001-9679-2177
de Wit, Niek J.ORCID 0000-0002-0273-8290ISNI 000000036993359X
Abu-Hanna, Ameen
van Weert, Henk C.P.M.

Editors

Advisors

Supervisors

Document Type

Article

Collections

Open Access logo

License

cc_by

Abstract

Background The journey of >80% of patients diagnosed with lung cancer starts in general practice. About 75% of patients are diagnosed when it is at an advanced stage (3 or 4), leading to >80% mortality within 1 year at present. The long-term data in GP records might contain hidden information that could be used for earlier case finding of patients with cancer. Aim To develop new prediction tools that improve the risk assessment for lung cancer. Design and setting Text analysis of electronic patient data using natural language processing and machine learning in the general practice files of four networks in the Netherlands. Method Files of 525 526 patients were analysed, of whom 2386 were diagnosed with lung cancer. Diagnoses were validated by using the Dutch cancer registry, and both structured and free-text data were used to predict the diagnosis of lung cancer 5 months before diagnosis (4 months before referral). Results The algorithm could facilitate earlier detection of lung cancer using routine general practice data. Discrimination, calibration, sensitivity, and specificity were established under various cut-off points of the prediction 5 months before diagnosis. Internal validation of the best model demonstrated an area under the curve of 0.88 (95% confidence interval [CI] = 0.86 to 0.89), which shrunk to 0.79 (95% CI = 0.78 to 0.80) during external validation. The desired sensitivity determines the number of patients to be referred to detect one patient with lung cancer. Conclusion Artificial intelligence-based support enables earlier detection of lung cancer in general practice using readily available text in the patient files of GPs, but needs additional prospective clinical evaluation.

Keywords

early detection, general practice, lung cancer, machine learning, natural language processing, oncology, Family Practice, Journal Article

Citation

Schut, M C, Luik, T T, Vagliano, I, Rios, M, Helsper, C W, van Asselt, K M, de Wit, N, Abu-Hanna, A & van Weert, H C P M 2025, 'Artificial Intelligence for early detection of lung cancer in General Practitioners' clinical notes : a retrospective observational cohort study', The British journal of general practice : the journal of the Royal College of General Practitioners, vol. 75, no. 754, doi.org/10.3399/BJGP.2023.0489, pp. e316-e322. https://doi.org/10.3399/BJGP.2023.0489