Back to all papers

Large language models for pneumonia detection in radiology reports via text analysis.

September 23, 2026pubmed logopapers

Authors

Chen W,Li X,Qu Z,Liu T,Chen B,Huang L,He N,Wang Z,Lyu J

Affiliations (5)

  • Department of Intensive Care Unit, The First Affiliated Hospital of Jinan University, Guangzhou, China.
  • School of Nursing, Jinan University, Guangzhou, China.
  • Department of Critical Care Medicine, Shenzhen People's Hospital, The Second Clinical Medical College, Jinan University, Shenzhen, China.
  • Department of Pharmacy, The First Affiliated Hospital of Jinan University, Guangzhou, China.
  • Clinical Research Center, The First Affiliated Hospital of Jinan University, Guangzhou, China.

Abstract

Pneumonia is a common infection in critically ill patients with poor outcomes, and its identification relies heavily on radiological evidence. Most MIMIC-based pneumonia studies rely on structured codes rather than radiological text, which may limit the precision of pneumonia-related case identification. This study evaluated large language models (LLMs) and retrieval-augmented generation (RAG) frameworks for automated detection of radiographic evidence of pneumonia from radiology reports. Radiological reports from the MIMIC-IV database were analyzed using pre-trained models in an inference-only setting without additional training, fine-tuning, or dataset splitting. Model performance was evaluated using accuracy, precision, sensitivity, specificity, and F1-score, with point estimates calculated from the full dataset and corresponding 95% confidence intervals estimated using 1,000 patient-level clustered bootstrap replicates. Independent evaluation was subsequently performed using a GZ dataset from a tertiary hospital in Guangzhou. RAG generally improved model performance, with gemma3-27b achieving the highest accuracy of 96.4% on the MIMIC-IV dataset and maintaining an accuracy of 87.6% on the GZ dataset. Model performance did not increase linearly with parameter size, suggesting that task-specific model suitability may be more important than parameter scale for this application. Although larger models required longer inference times, their increased computational costs did not consistently translate into proportional performance gains. Overall, LLMs demonstrated high accuracy in interpreting radiology reports for detecting radiographic evidence of pneumonia. The RAG architecture further enhanced robustness and generalizability through knowledge augmentation, providing a methodological basis for automated radiology report analysis and large-scale database curation.

Topics

Journal Article

Ready to Sharpen Your Edge?

Subscribe to join 11k+ peers who rely on RadAISlice. Get the essential weekly briefing that empowers you to navigate the future of radiology.

We respect your privacy. Unsubscribe at any time.