Related Experiment Video
Updated: Sep 8, 2025

Local Anesthetic Thoracoscopy for Undiagnosed Pleural Effusion
Published on: November 10, 2023
Machine learning for predicting the diagnosis of tuberculous versus malignant pleural effusion: External validation
Alberto Garcia-Zamalloa1, Rafael Arnay2, Iván Castilla-Rodriguez2
1Respiratory and Pleural Diseases Group. Biogipuzkoa Health Research Institute. Internal Medicine Service, Osakidetza/Basque Health Service, Mendaro Hospital, Spain.
Objective:
To perform an external validation of a previously reported machine learning (ML) approach for predicting the diagnosis of pleural tuberculosis.
Patients And Methods:
We defined two cohorts: a Training group, comprising 273 out of 1,220 effusions from our prospective study (2013-2022); and a Testing group, from a retrospective analysis of 360 effusions from 832 consecutive patients in Bajo Deba health district (1996-2012). All the effusions included were exudative and lymphocytic. In Training and Testing groups respectively, 49 and 104 cases were tuberculous, 143 and 92 were malignant, and 81 and 164 were diagnosed with "other diseases"; pre-test probabilities of pleural tuberculosis were 4% and 12.7%. Variables included were: age, pH, adenosine deaminase, glucose, protein, and lactate dehydrogenase levels, and white cell counts (total and differential) in pleural fluid. We used two ML classifiers: binary (tuberculous and non-tuberculous), and three-class (tuberculous, malignant, and others); and compared them with Bayesian analysis.
Results:
The best binary classifier yielded a sensitivity of 88%, specificity of 98%, and accuracy of 95%. The best three-class classifier achieved the same accuracy and correctly classified 83% (77/92) of malignant cases. The ML models yielded higher positive predictive values than Bayesian analysis based on ADA > 40 U/l and lymphocyte percentage ≥ 50% (92%).
Conclusions:
This external validation confirms the good performance of the previously reported ML approach for predicting the diagnosis of pleural tuberculosis based on exudative and lymphocytic pleural effusions, and for discriminating the cases most likely to be malignant. Additionally, ML was more accurate than the Bayesian approach in our study.
More Related Videos
07:15Machine Learning Algorithms for Early Detection of Bone Metastases in an Experimental Rat Model
Published on: August 16, 2020
04:09Predicting Treatment Response to Image-Guided Therapies Using Machine Learning: An Example for Trans-Arterial Treatment of Hepatocellular Carcinoma
Published on: October 10, 2018
Related Concept Videos
Pulmonary Tuberculosis IV
Several diagnostic approaches are used to detect TB. The conventional method is the Tuberculin Skin Test (TST), also known as the Mantoux test. However, this method has...
Pulmonary Tuberculosis III
The first classification is based on the development of the disease, and it includes the following categories:
Pleural Effusion II: Symptoms and Management
A pleural effusion is the abnormal collection of fluid between the parietal and visceral pleura layers of tissue that form the lining of the lungs and chest cavity. It can occur independently or due to surrounding parenchymal diseases, such as infection, malignancy, or inflammatory conditions.
Clinical Manifestations:
Pulmonary Tuberculosis II
Here is a detailed explanation of its pathophysiology:
Transmission: The process begins when a person inhales droplet nuclei containing M. tuberculosis. These are typically released into the air when an individual with pulmonary or...
Pleural Effusion I: Introduction
There are two main types of pleural effusion: transudative and exudative. They are differentiated using Light's...