Submitted:
09 September 2025
Posted:
10 September 2025
You are already at the latest version
Abstract
Background: Pneumothorax (PTX) requires rapid recognition in emergency and critical care. Lung ultrasound (LUS) offers a fast, radiation-free alternative to computed tomography (CT), but its accuracy is limited by operator dependence. Artificial intelligence (AI) may standardize interpretation and improve performance. Methods: This retrospective single-center study included 46 patients (23 with CT-confirmed PTX and 23 controls). Sixty B-mode and M-mode frames per patient were extracted using a Clarius C3 HD3 wireless device, yielding 2,760 images. CT served as the diagnostic reference. Two transformer-based models, Vision Transformer (ViT) and DINOv2, were trained and tested under two scenarios: random frame split and patient-level split. Model performance was evaluated using accuracy, sensitivity, specificity, F1-score, and area under the ROC curve (AUC). Results: Both transformers achieved high diagnostic accuracy, with B-mode images outperforming M-mode inputs. In Scenario 1, ViT reached 99.1% accuracy, while DINOv2 achieved 97.3%. In Scenario 2, which avoided data leakage, DINOv2 performed best in the B-mode region (90% accuracy, 80% sensitivity, 100% specificity, F1-score 88.9%). ROC analysis confirmed strong discriminative ability, with AUC values of 0.973 for DINOv2 and 0.964 for ViT on B-mode images. Conclusions: AI-assisted LUS substantially improves PTX detection, with transformers—particularly DINOv2—achieving near-expert accuracy. Larger multicenter datasets are required for validation and clinical integration.

Keywords:
1. Introduction
1.1. Clinical Background
1.2. State of the Art in AI-Assisted Pneumothorax Diagnosis with Ultrasound
1.2.1. Early Feasibility Studies (Animal and Phantom Models)
1.2.2. Deep Learning on Simulated and Augmented Data
1.2.3. Clinical Data-Based AI Models
1.2.4. Prospective and Comparative Validation Studies
2. Material and Methods
2.1. Study Design and Participants
2.2. Lung Ultrasound Acquisition Protocol
2.3. Reference Standard and Data Collection
2.4. Visual Characteristics of Pneumothorax Images
2.5. Statistical Analysis
2.6. Transformers
2.6.1. Vision Transformer
2.6.2. DINOv2
2.7. Evaluation Metrics
2.8. Experimental Setup and Training Details
3. Results
4. Discussion
4.1. Comparison with Existing Literature
4.2. Clinical Implications
4.3. Strengths and Limitations
5. Conclusions
Author Contributions
Funding
Ethical Statement
Data Availability Statement
AI Disclosure Statement
Declaration of Competing Interest
References
- Zhang M, Liu ZH, Yang JX, Gan JX, Xu SW, You XD, Jiang GY. Rapid detection of pneumothorax by ultrasonography in patients with multiple trauma. Crit Care. 2006;10(4):R112. PMCID: PMC1751015. [CrossRef] [PubMed]
- Abu Arab W, Abdulhaleem M, Eltahan S, Elhamami M. Comparative study between bedside chest ultrasound and chest CT scan in the diagnosis of traumatic pneumothorax. Cardiothorac Surg, 2021;29(1):15. [CrossRef]
- Omar HR, Abdelmalak H, Mangar D, Rashad R, Helal E, Camporesi EM. Occult pneumothorax, revisited. J Trauma Manag Outcomes. 2010 Oct 29;4:12. PMCID: PMC2984474. [CrossRef] [PubMed]
- Boice EN, Hernandez Torres SI, Knowlton ZJ, Berard D, Gonzalez JM, Avital G, Snider EJ. Training Ultrasound Image Classification Deep-Learning Algorithms for Pneumothorax Detection Using a Synthetic Tissue Phantom Apparatus. J Imaging. 2022 Sep 11;8(9):249. PMCID: PMC9502699. [CrossRef] [PubMed]
- Lichtenstein DA, Mezière GA. Relevance of lung ultrasound in the diagnosis of acute respiratory failure: the BLUE protocol. Chest. 2008 Jul;134(1):117-25. Epub 2008 Apr 10. Erratum in: Chest. 2013 Aug;144(2):721. PMCID: PMC3734893. [CrossRef] [PubMed]
- Alrajhi K, Woo MY, Vaillancourt C. Test characteristics of ultrasonography for the detection of pneumothorax: a systematic review and meta-analysis. Chest. 2012 Mar;141(3):703-708. Epub 2011 Aug 25. [CrossRef] [PubMed]
- Ebrahimi A, Yousefifard M, Mohammad Kazemi H, Rasouli HR, Asady H, Moghadas Jafari A, Hosseini M. Diagnostic Accuracy of Chest Ultrasonography versus Chest Radiography for Identification of Pneumothorax: A Systematic Review and Meta-Analysis. Tanaffos. 2014;13(4):29-40. PMCID: PMC4386013. [PubMed]
- Kim DJ, Bell C, Jelic T, Sheppard G, Robichaud L, Burwash-Brennan T, Chenkin J, Lalande E, Buchanan I, Atkinson P, Thavanathan R, Heslop C, Myslik F, Lewis D. Point of Care Ultrasound Literature Primer: Key Papers on Focused Assessment With Sonography in Trauma (FAST) and Extended FAST. Cureus. 2022 Oct 6;14(10):e30001. PMCID: PMC9637006. [CrossRef] [PubMed]
- Chen L, Zhang Z. Bedside ultrasonography for diagnosis of pneumothorax. Quant Imaging Med Surg. 2015 Aug;5(4):618-23. PMCID: PMC4559988. [CrossRef] [PubMed]
- Mathew CS, Dias E, Kalathikudiyil Sreedharan J, Al Ahmari M, Trujillo L, West A, Karthika M. Lung ultrasound in respiratory therapy: a global reflective survey. Multidiscip Respir Med. 2024 Jul 2;19(1):980. PMCID: PMC11229826. [CrossRef] [PubMed]
- Jaščur M, Bundzel M, Malík M, Dzian A, Ferenčík N, Babič F. Detecting the absence of lung sliding in lung ultrasounds using deep learning. Appl Sci, 2021;11(15):6976. [CrossRef]
- Taylor AG, Mielke C, Mongan J. Automated detection of moderate and large pneumothorax on frontal chest X-rays using deep convolutional neural networks: A retrospective study. PLoS Med. 2018 Nov 20;15(11):e1002697. PMCID: PMC6245672. [CrossRef] [PubMed]
- Röhrich S, Schlegl T, Bardach C, Prosch H, Langs G. Deep learning detection and quantification of pneumothorax in heterogeneous routine chest computed tomography. Eur Radiol Exp. 2020 Apr 17;4(1):26. PMCID: PMC7165213. [CrossRef] [PubMed]
- Montgomery S, Li F, Funk C, Peethumangsin E, Morris M, Anderson JT, Hersh AM, Aylward S. Detection of pneumothorax on ultrasound using artificial intelligence. J Trauma Acute Care Surg. 2023 Mar 1;94(3):379-384. Epub 2022 Nov 28. [CrossRef] [PubMed]
- Nekoui M, Seyed Bolouri SE, Forouzandeh A, Dehghan M, Zonoobi D, Jaremko JL, Buchanan B, Nagdev A, Kapur J. Enhancing Lung Ultrasound Diagnostics: A Clinical Study on an Artificial Intelligence Tool for the Detection and Quantification of A-Lines and B-Lines. Diagnostics (Basel). 2024 Nov 12;14(22):2526. PMCID: PMC11593069. [CrossRef] [PubMed]
- Trovato G, Russo M. Artificial Intelligence (AI) and Lung Ultrasound in Infectious Pulmonary Disease. Front Med (Lausanne). 2021 Nov 25;8:706794. PMCID: PMC8655241. [CrossRef] [PubMed]
- VanBerlo B, Wu D, Li B, Rahman MA, Hogg G, VanBerlo B, Tschirhart J, Ford A, Ho J, McCauley J, Wu B, Deglint J, Hargun J, Chaudhary R, Dave C, Arntfield R. Accurate assessment of the lung sliding artefact on lung ultrasonography using a deep learning approach. Comput Biol Med. 2022 Sep;148:105953. Epub 2022 Aug 9. [CrossRef] [PubMed]
- Qiang X, Wang Q, Liu G, Song L, Zhou W, Yu M, Wu H. Use video comprehension technology to diagnose ultrasound pneumothorax like a doctor would. Front Physiol. 2025 May 27;16:1530808. PMCID: PMC12148891. [CrossRef] [PubMed]
- Summers SM, Chin EJ, Long BJ, Grisell RD, Knight JG, Grathwohl KW, Ritter JL, Morgan JD, Salinas J, Blackbourne LH. Computerized Diagnostic Assistant for the Automatic Detection of Pneumothorax on Ultrasound: A Pilot Study. West J Emerg Med. 2016 Mar;17(2):209-15. Epub 2016 Mar 2. PMCID: PMC4786248. [CrossRef] [PubMed]
- Summers SM, Chin EJ, April MD, Grisell RD, Lospinoso JA, Kheirabadi BS, Salinas J, Blackbourne LH. Diagnostic accuracy of a novel software technology for detecting pneumothorax in a porcine model. Am J Emerg Med. 2017 Sep;35(9):1285-1290. Epub 2017 Apr 1. [CrossRef] [PubMed]
- Lindsey T, Lee R, Grisell R, Vega S, Veazey S. Automated pneumothorax diagnosis using deep neural networks. In: Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications. Cham (Switzerland) and Madrid (Spain): Springer International Publishing; 2019. p 723–731.
- Kulhare S, Zheng X, Mehanian C, Gregory C, Zhu M, Gregory K, Xie H, Jones JM, Wilson B. Ultrasound-based detection of lung abnormalities using single shot detection convolutional neural networks. In: Simulation, Image Processing, and Ultrasound Systems for Assisted Diagnosis and Navigation. Berlin/Heidelberg (Germany): Springer; 2018. p 65–73.
- Mehanian C, Kulhare S, Millin R, Zheng X, Gregory C, Zhu M, Xie H, Jones J, Lazar J, Halse A, et al. Deep learning-based pneumothorax detection in ultrasound videos. In: Smart Ultrasound Imaging and Perinatal, Preterm and Paediatric Image Analysis. Berlin/Heidelberg (Germany): Springer; 2019. p 74–82.
- Clausdorff Fiedler H, Prager R, Smith D, Wu D, Dave C, Tschirhart J, Wu B, Van Berlo B, Malthaner R, Arntfield R. Automated Real-Time Detection of Lung Sliding Using Artificial Intelligence: A Prospective Diagnostic Accuracy Study. Chest. 2024 Aug;166(2):362-370. Epub 2024 Feb 15. [CrossRef] [PubMed]
- Yang C, Zhao H, Wang A, Li J, Gao J. Comparison of lung ultrasound assisted by artificial intelligence to radiology examination in pneumothorax. J Clin Ultrasound. 2024 Oct;52(8):1051-1055. Epub 2024 Jun 29. [CrossRef] [PubMed]
- Gómez-Guzmán MA, Jiménez-Beristain L, García-Guerrero EE, Aguirre-Castro OA, Esqueda-Elizondo JJ, Ramos-Acosta ER, Galindo-Aldana GM, Torres-Gonzalez C, Inzunza-Gonzalez E. Enhanced multi-class brain tumor classification in MRI using pre-trained CNNs and transformer architectures. Technologies (Basel). 2025;13(9):379. [CrossRef]
- Azad R, Kazerouni A, Heidari M, Khodapanah Aghdam E, Molaei A, Jia Y, Jose A, Roy R, Merhof D. Advances in medical image analysis with vision Transformers: A comprehensive review. Med Image Anal. 2024 Jan;91:103000. [CrossRef]
- Kilimci ZH, Yalcin M, Kucukmanisa A, Mishra AK. Advancing heart disease diagnosis with vision-based transformer architectures applied to ECG imagery. Image Vis Comput. 2025 Oct;162:105666. [CrossRef]
- Espejo-Garcia B, Güldenring R, Nalpantidis L, Fountas S. Foundation vision models in agriculture: DINOv2, LoRA and knowledge distillation for disease and weed identification. Comput Electron Agric. 2025 Dec;239:110900. [CrossRef]
- Kittichai V, Kaewthamasorn M, Chaiphongpachara T, Laojun S, Saiwichai T, Naing KM, Tongloy T, Boonsang S, Chuwongin S. Enhance fashion classification of mosquito vector species via self-supervised vision transformer. Sci Rep. 2024 Dec 28;14:31517. [CrossRef]
- Qian C, Cao J, Mao Y, Liu K, Zhu P, Sang J. PolaCount: Text-specified zero-shot object counting with pyramid polarity-aware cross-attention. Neurocomputing. 2025 Nov 1;652:131135. [CrossRef]
- Fu Y, Lei Y, Wang T, Curran WJ, Liu T, Yang X. Deep learning in medical image registration: a review. Phys Med Biol. 2020 Oct 22;65(20):20TR01. PMCID: PMC7759388. [CrossRef] [PubMed]
- Sultan LR, Haertter A, Al-Hasani M, Demiris G, Cary TW, Tung-Chen Y, Sehgal CM. Can Artificial Intelligence Aid Diagnosis by Teleguided Point-of-Care Ultrasound? A Pilot Study for Evaluating a Novel Computer Algorithm for COVID-19 Diagnosis Using Lung Ultrasound. AI (Basel). 2023 Dec;4(4):875-887. Epub 2023 Oct 10. PMCID: PMC10623579. [CrossRef] [PubMed]
- Beshara M, Bittner EA, Goffi A, Berra L, Chang MG. Nuts and bolts of lung ultrasound: utility, scanning techniques, protocols, and findings in common pathologies. Crit Care. 2024 Oct 7;28(1):328. PMCID: PMC11460009. [CrossRef] [PubMed]









| Pneumothorax (n=23) | Healthy (n=23) | p-value | |
|---|---|---|---|
| Age, median (Q1-Q3) | 59 (41 - 65.5) | 55 (41 - 65.5) | 0.964 |
| Male, n (%) | 18 (78.3) | 18 (78.3) | 1 |
| BMI, median (Q1-Q3) | 23 (20.5 - 25.5) | 22 (21 - 27) | 0.658 |
| Right Sided, n (%) | 12 (52.2) | 13 (56.5) | 0.767 |
| Smoking, n (%) | 15 (65.2) | 16 (69.6) | 0.753 |
| COPD, n (%) | 8 (34.8) | 8 (34.8) | 1 |
| Dataset | Scenario 1 | Scenario 2 |
|---|---|---|
| Training | 342 (62%) | 312 (56.6%) |
| Validation | 99 (17.9%) | 120 (21.7%) |
| Test | 111 (20.1%) | 120 (21.7%) |
| Total | 552 (100%) | 552 (100%) |
| Learning rate | 0.001 |
| Optimizer | Adam |
| Loss function | Mean Squared Error |
| Weight decay | 0.0001 |
| Batch size | 256 |
| num_epochs | 30 |
| Image size | 72 |
| Patch size | 6 |
| Scenario | Mode | Models | Acc | Rec | Pre | F1-score |
|---|---|---|---|---|---|---|
| 1 | M-mode | DinoV2 | 95.5 | 90.91 | 100.0 | 95.24 |
| ViT | 81.98 | 69.09 | 92.68 | 79.17 | ||
| B-mode | DinoV2 | 97.3 | 94.55 | 100.0 | 97.2 | |
| ViT | 99.1 | 98.21 | 100.0 | 99.1 | ||
| 2 | M-mode | DinoV2 | 80.0 | 75.0 | 83.33 | 78.95 |
| ViT | 70.0 | 80.0 | 66.67 | 72.73 | ||
| B-mode | DinoV2 | 90.0 | 80.0 | 100.0 | 88.89 | |
| ViT | 87.5 | 75.0 | 100.0 | 85.71 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).