Skip to main content
PLOS One logoLink to PLOS One
. 2021 Nov 4;16(11):e0259203. doi: 10.1371/journal.pone.0259203

Diagnostic accuracy of adenosine deaminase for pleural tuberculosis in a low prevalence setting: A machine learning approach within a 7-year prospective multi-center study

Alberto Garcia-Zamalloa 1,2,*, Diego Vicente 3,4, Rafael Arnay 5, Arantzazu Arrospide 6,7,8,9, Jorge Taboada 10, Iván Castilla-Rodríguez 5,9, Urko Aguirre 8,9,11, Nekane Múgica 12, Ladislao Aldama 12, Borja Aguinagalde 13, Montserrat Jimenez 14, Edurne Bikuña 14, Miren Begoña Basauri 15, Marta Alonso 3, Emilio Perez-Trallero 3; with the Gipuzkoa Pleura Group Consortium
Editor: Frederick Quinn16
PMCID: PMC8568264  PMID: 34735491

Abstract

Objective

To analyze the performance of adenosine deaminase in pleural fluid combined with other parameters routinely measured in clinical practice and assisted by machine learning algorithms for the diagnosis of pleural tuberculosis in a low prevalence setting, and secondly, to identify effusions that are non-tuberculous and most likely malignant.

Patients and methods

We prospectively analyzed 230 consecutive patients diagnosed with lymphocytic exudative pleural effusion from March 2013 to June 2020. Diagnosis according to the composite reference standard was achieved in all cases. Pre-test probability of pleural tuberculosis was 3.8% throughout the study period. Parameters included were: levels of adenosine deaminase, pH, glucose, proteins, and lactate dehydrogenase, red and white cell counts and lymphocyte percentage in pleural fluid, as well as age. We tested six different machine learning-based classifiers to categorize the patients. Two different classifications were performed: a) tuberculous/non-tuberculous and b) tuberculous/malignant/other.

Results

Out of a total of 230 patients with pleural effusion included in the study, 124 were diagnosed with malignant effusion and 44 with pleural tuberculosis, while 62 were given other diagnoses. In the tuberculous/non-tuberculous classification, and taking into account the validation predictions, the support vector machine yielded the best result: an AUC of 0.98, accuracy of 97%, sensitivity of 91%, and specificity of 98%, whilst in the tuberculous/malignant/other classification, this type of classifier yielded an overall accuracy of 80%. With this three-class classifier, the same sensitivity and specificity was achieved in the tuberculous/other classification, but it also allowed the correct classification of 90% of malignant cases.

Conclusion

The level of adenosine deaminase in pleural fluid together with cell count, other routine biochemical parameters and age, combined with a machine-learning approach, is suitable for the diagnosis of pleural tuberculosis in a low prevalence scenario. Secondly, non-tuberculous effusions that are suspected to be malignant may also be identified with adequate accuracy.

Introduction

Tuberculosis remains a major global public health problem: in 2019, 10 million people developed tuberculosis and it caused 1.5 million deaths, with around 5.4% of the cases diagnosed in the World Health Organization (WHO) European region and WHO region of the Americas [1]. Extrapulmonary disease is the initial presentation in about 25% of patients, involving lymph nodes and primarily the pleura [2]; as a result, tuberculosis is currently one of the most frequent causes of exudative pleural effusion worldwide [3]. Tuberculous pleural effusion (TPE) is a paucibacillary manifestation of tuberculosis, and bacteriological tests in pleural fluid have historically given suboptimal results, leading to a search for biomarkers in pleural fluid and the use of aggressive diagnostic techniques like pleural biopsy [4].

Adenosine deaminase (ADA) has proven to be the most useful and cost-effective biomarker in pleural fluid, but based on the Bayesian interpretation of its diagnostic accuracy, it is currently only accepted as a rule-out test in low prevalence scenarios. The most accepted cut-off value is 40 U/l [57]. In 2012, we reported a retrospective study in a local scenario of decreasing incidence from 1998 to 2008, and showed that combining ADA>40 U/l and lymphocyte percentage >50% in pleural fluid the diagnostic accuracy of the former increased substantially, especially in low-to-intermediate incidence settings [8]. We decided to conduct a multicenter prospective study with diagnosis according to the composite reference standard in all patients included, in a low prevalence scenario and with 10-fold larger population.

Using the data collected in this study, we aimed to determine the most accurate machine learning algorithm for the classification of patients (a) according to the presence of tuberculosis and (b) into three categories: tuberculous, malignant or other. Machine Learning is the science of giving computers the ability to learn from data. A machine learning system is trained rather than explicitly programmed. That is, such a system is presented with many examples relevant to a task, and it finds a statistical structure in these examples that, eventually, allows it to come up with rules for automating the task [9]. Machine learning algorithms constitute a powerful tool which are becoming useful in clinical medicine for the integration of multiple variables and subsequent estimation of the likelihood of a given diagnosis [10, 11].

Materials and methods

Data source

This prospective observational study was conducted in one tertiary hospital (Donostia University Hospital), three regional hospitals (Deba Behea Hospital, Goi Urola Hospital, Bidasoa Hospital), and two private health clinics (Gipuzkoa Polyclinic and Asuncion Clinic), offering a total of approximately 1,725 beds and all located in the province of Gipuzkoa, Basque Country, Spain, with a population of 720,000.

The mean annual incidence rate of tuberculosis in Gipuzkoa from 2013 to 2020 was 14 cases per 100,000 population (and it remained under 20 cases per 100,000 throughout this period) [12]. Data collection has been highly reliable in Gipuzkoa since 1995, and a Tuberculosis Control Program was implemented across the entire region of the Basque Country in 2003 [13].

For the purpose of this study and following the approach of previous authors since the nineteen-nineties, the term “prevalence” was used to refer to the number of cases of a specific type of pleural effusion divided by the total number of pleural effusions studied in a given clinical setting: in other words, the “pre-test probability” [14, 15]. A prevalence of less than 10% is considered low [16]. Overall, 1,177 cases of pleural effusion were diagnosed in Gipuzkoa throughout the period 2013–2020, and 45 of them were tuberculous; hence, the local prevalence of TPE was 3.8%.

Due to the fact that virtually all cases of TPE become exudative and lymphocytic [1719], and given our limited funding and the high cost of some tests (e.g., the Xpert MTB/RIF polymerase chain reaction [PCR] test for Mycobacterium tuberculosis—MTB -, which was performed in all cases), we decided to include only lymphocytic exudative pleural fluid samples in this study. During the whole study period, the first pleural fluid sample was only exudative and neutrophilic in 1 out of the 45 patients diagnosed with TPE; his case was included in the prevalence calculation, but his data were not included in the rest of the analysis.

We considered it appropriate to conduct this prospective study following a PIRTO strategy:

  • P (Population): patients aged 16 years or older diagnosed with lymphocytic exudative pleural effusion from March 2013 to June 2020 in a low prevalence setting like ours

  • I (Index Test): ADA level in pleural fluid, combined with patients´ age and routine pleural fluid parameters obtained from the first pleural fluid sample, and using machine learning algorithms

  • R (Reference test): diagnosis according to the composite reference standard for TPE, that is, culture positive for MTB or Xpert MTB/RIF assay positive for MTB in pleural fluid, pleural tissue or sputum; or granulomatous inflammation in pleural tissue

  • T (Target condition): diagnostic accuracy of the aforementioned parameters for TPE in a low prevalence setting

  • O (Outcome): results obtained, in terms of sensitivity, specificity, and area under the receiver operating characteristic curve (AUC) from two different machine learning approaches: tuberculous/other and tuberculous/malignant/other.

We report the above items by following the STARD guidelines [20]. Inclusion criteria in the study were: 1) age over 16 years, 2) de novo diagnosis of pleural effusion that is both exudative (according to Light´s criteria [21]) and lymphocytic (defined as a lymphocytes accounting for more than 50% of nucleated cells in pleural fluid [2]) in nature, and 3) etiology of the effusion determined according to the composite reference standard. Patients were not included in the study if they had a history of any disease that could explain the development of a pleural effusion (e.g., patients previously diagnosed with lung cancer who developed pleural effusion).

Further, patients in whom no definitive diagnosis was reached were not included in the study. When more than one thoracocentesis was performed, only the results (routine biochemical parameters, cell count and ADA level) from the first pleural fluid sample were included in the statistical analysis, but all samples were taken into account for obtaining the gold standard diagnosis of every patient (e.g., positive culture or malignant cells in a subsequent sample).

Through the whole period of study all the clinical information and reference standard results were available to all the members of the Consortium.

All patients gave written informed consent to their inclusion in the study before diagnostic procedures were performed. Only one patient was a minor. She was seventeen years old and her parents signed the informed consent. The protocol was evaluated and approved by the Clinical Research Ethics Committee of Euskadi (Record number 11/12).

All included patients reported demographic data (age, sex and nationality) and underwent the following types of testing:

  • Pleural fluid tests including measurement of pH, glucose, protein, lactate dehydrogenase, and ADA levels, total and differential red and white cell counts, cytology, aerobic and anaerobic cultures, Lowenstein-Jensen medium and BACTEC MGIT (BACTEC Mycobacteria Growth Indicator Tube 960 System; BD Diagnostic Instrument Systems, Sparks, Maryland, USA) cultures, and Xpert MTB/RIF assays for MTB, as well as assessment of serum glucose, protein and LDH levels

  • Aerobic, Lowenstein-Jensen medium and BACTEC MGIT cultures, along with cytology, of any spontaneous or induced sputum, when it was possible to obtain such samples

  • Chest computed tomography (CT)

  • Screening for human immunodeficiency virus (HIV), in line with the Tuberculosis Control Program for all patients diagnosed with tuberculosis implemented in the Basque Country since 2003 [13]

  • Fibrobronchoscopy, depending on the CT findings, samples taken being sent for histopathological examination, aerobic and anaerobic cultures, Lowenstein-Jensen and BACTEC MGIT cultures, as well as Xpert MTB/RIF assays for MTB

  • Pleural biopsy (either closed or thoracoscopic), when necessary to reach a diagnosis, samples taken being sent for histopathological exam examination, aerobic and anaerobic cultures, and Lowenstein-Jensen and BACTEC MGIT cultures, as well as Xpert MTB/RIF assays for MTB.

Pleural fluid ADA level was measured using an automated ultraviolet kinetic assay (Roche Diagnostics, Mannheim, Germany). White blood cell count was obtained with a automated hematology analyzer (Sysmex XN-1000, Roche Diagnostics), and a differential count was performed manually, after Wright staining. Mycobacterial cultures were performed on Lowenstein-Jensen medium and also in MGIT 960 culture tubes.

Regarding diagnostic criteria, patients were classified as having 1) tuberculous pleural effusion when cultures or Xpert MTB/RIF assays for MTB in pleural fluid, pleural biopsy or sputum were positive, or when granulomatous inflammation was evident in pleural tissue; 2) malignant pleural effusion (MPE) when malignant cells were found in pleural fluid or pleural biopsy tissue, or paramalignant pleural effusion when cancer was diagnosed de novo, no other cause of pleural effusion was identified and the pleural effusion and tumour were concurrent and developed in parallel, but no malignant cells were demonstrated in the pleural fluid or tissue [22, 23]; 3) parapneumonic effusion when there was any exudative pleural effusion associated with clinical and radiological pneumonia and complete clinical recovery and resolution of abnormal findings with antibiotics as the only treatment; and 4) miscellaneous effusion when they had any other type of pleural effusion with another aetiology and defined by well-established clinical criteria.

Calculation of sample size was performed by using a statistical program (Epidat 3.1). For a sensitivity of 95%, specificity of 90%, prevalence (pre-test probability) of 10%, significance level of 5%, power of 80% and precision of 5%, the minimum sample size was 200 patients. Since a 25% loss was estimated, final sample size was set to 250 patients.

Fig 1 shows a flowchart depicting the patient selection process.

Fig 1. Patient selection process.

Fig 1

Statistical analysis

With the data collected from the patients included, two different analyses were performed. The main analysis used machine learning techniques to classify samples in two categories: tuberculous and non-tuberculous. A secondary analysis used the same techniques to additionally distinguish malignant cases, yielding three categories: tuberculous, malignant and “other”.

Both analyses split the data into a training set (80%) and test set (20%), to maintain the proportion of the three classes in both sets (19.1% tuberculous, 53.9% malignant and 26.9% other). The training and testing processes used the following features: age, ADA level and routine parameters from pleural fluid (pH, glucose, protein, and lactate dehydrogenase levels and total and differential red and white cell counts). S1 Table shows an estimate of the relative importance of these features in the classification process. We carried out a data standardization process before training: for each feature in the training set, we first subtracted the mean value (such that standardized values always had a zero mean), and then divided by the standard deviation (such that the resulting distribution had unit variance). The mean value and standard deviation calculated in the training set were also used in the standardization process of the test set.

As we did not have a priori knowledge about what type of classifier would work best in the proposed problem, six of the most widely used were trained and tested: multi layer perceptron, logistic regression, support vector machine, decision tree, K-nearest neighbors and random forest. We used the Python scikit-learn implementation of these classifiers [24]. A set of different values was considered for each of the classifier parameters [25] in combination with a 5-fold cross validation [26], to determine the combination of parameters that optimized a given metric. In the case of the classification between tuberculous and non-tuberculous, a binary classification problem, we used accuracy, the AUC and the F1 score, which is the harmonic mean of precision and recall [27]. The AUC led to the best parameterizations in this case. In the classification between tuberculous, malignant and other effusions, this being a multiclass classification problem, we used different metrics, namely, the weighted F1 score, balanced accuracy and the one-vs-rest AUC, the last of these yielding the best parameterizations.

In the binary classification problem (tuberculous vs. non-tuberculous), the validation predictions were used to calculate receiver operating characteristic (ROC) [28] and precision-recall (PR) [29] curves in order to obtain decision thresholds that maximized a given metric. The Youden index [30] was used to select a good balance between sensitivity and specificity in the ROC curves. The F1 score was used in the PR curves. It is worth mentioning that these predictions were “clean”, that is, they were obtained from the validation subset using a classifier trained with the rest of subsets within each fold of cross validation. These clean predictions were aggregated to calculate the validation results for each method.

In the three-class classification problem, the goal was to maximize the number of correct classifications of tuberculosis and MPE. Misclassification of samples of the class “Other” was considered a minor problem.

We applied two different approaches to accomplish this task. The first was a classification pipeline that used the previously trained binary classifier in combination with another classifier that distinguished between malignant effusions and the rest (Fig 2). Hence, a sample was analyzed in the first classifier, and if that classifier predicted tuberculosis, that was the final classification for that patient. Otherwise, the second classifier analyzed the sample to predict whether it corresponded to a tumor or some other disease. This second classifier was trained with the same training set as the first one, but not taking into consideration the samples corresponding to tuberculosis.

Fig 2. Classification pipeline.

Fig 2

Classification pipeline.

This first approach had the advantage that the thresholds of the two classifiers could be adjusted seeking to maximize the number of tuberculosis cases that were correctly predicted as such in the first classifier, as well as the number of tumors correctly classified in the second one.

The second approach to solve this problem was a multiclass classifier that distinguished at the same time between tuberculous, malignant and other effusions. Using a single classifier reduced the training effort but complicated the adjustment of the decision thresholds to make it possible to prioritize the prediction of tuberculosis and tumors, over the class “Other”. In addition to all the aforementioned analysis, and considering the dynamics in our previous retrospective study, we also assessed the diagnostic accuracy of ADA level in this “lymphocytic exudative” scenario in terms of sensitivity, specificity, positive predictive value (PPV) and negative predictive value (NPV). Thereafter, we did the same, incorporating all the variables included in the machine learning algorithm. Our aim was to perform a Bayesian analysis of both sets of diagnostic variables.

Results

Overall, 230 out of 1177 episodes of pleural effusion met all the criteria for being included in the study (de novo, exudative, lymphocytic, diagnosis according to the composite reference standard, age over 16 years and written informed consent given). As shown in Table 1, the male:female ratio was 135/95 (58%/42%) and median age 69 years (1st and 3rd quartiles, 55 and 80 years respectively). Further, 12 out of 44 cases of tuberculous pleural effusion were diagnosed in non-Spanish patients (27%, p<0.001), all the clinical and laboratory parameters except cell count and pH differed significantly across the three groups: tuberculous, malignant, parapneumonic/other effusions (opting to merge these last two into a single group for subsequent analysis). Among all the samples, 44 patients were diagnosed with tuberculous pleural effusion (19.1%) and 124 (53.9%) with MPE—77 having lung cancer, 22 non-lung cancer, 10 lymphoma and 15 mesothelioma-, while 28 had parapneumonic effusions (12.1%) and 34 (14.7%) were diagnosed with other non-malignant diseases. All these data are set out in the Supporting Information section: S2 Table. Twenty-three of the 124 cases of MPE (18.5%) were classified as paramalignant: 19 of these patients having lung cancer, 2 non-lung cancer and 2 lymphomatous cancer.

Table 1. Characteristics of patients and pleural fluid samples by diagnosis.

Tuberculous Malignant Parapneumonic / Other effusions
N % N % N % p-value
Total 44 19.1 124 53.9 62 27
Sex 0.21
Male 31 70.4 70 56.4 34 54.8
Female 13 29.6 54 43.6 28 45.2
Nationality <0.001
Spanish 32 72.7 121 97.6 58 93.6
Other 12 27.3 3 2.4 4 6.4
Median P25P75 Median P25P75 Median P25P75
Age, yearsa 54.8 22.2 68.1 12.7 68.8 18.5 0.001
ADA, U/l 72 57.3–81 22 18–27.5 23 19–28 <0.001
pH 7.4 7.4–7.5 7.4 7.4–7.5 7.5 7.4–7.5 0.08
Glucose 84.5 66–96 101 84–120.5 110.5 92–128 <0.001
Cell no. 2315 1338.5–4126 1760.5 1140–2905 1715.5 618–3056 0.06
MNC 93 80–97.8 91.5 79.3–96 75 59–86 <0.001
PMNC 7 2.2–20 8.5 4.05–20.75 25.5 14–41 <0.001
RBC 3650 1805–10000 8000 2840–29300 6950 2700–40000 0.04
LDH, U/l 444.5 266.5–651.5 403 212–623 212.5 165–372 <0.001
Proteins 5 4.6–5.3 4.4 3.8–4.8 4.3 3.5–4.9 <0.001
LDH / ADA 6.1 4.2–10.7 15.5 9–28.4 10.1 7.3–15.9 <0.001

ADA: adenosine deaminase; Cell no: number of cells/mm3; MNC: percentage of mononuclear cells in pleural fluid; PMNC: percentage of polymorphonuclear cells in pleural fluid; RBC: number of red blood cells/mm3. LDH: lactate dehydrogenase.

a Value shown as Mean and Standard deviation.

The diagnostic yield of MTB culture, Xpert MTB/RIF and citology/histopathology both in pleural fluid as in pleural biopsy (closed or guided by thoracoscopy), along with the diagnostic yield of sputum, bronchoalveolar lavage and bronchial biopsy are included in the Supporting Information Section: S3 Table.

There were no cases of TPE with HIV infection in our series. Three patients previously diagnosed with HIV infection developed pleural effusions, in all cases malignant.

Classifying tuberculous vs. non-tuberculous effusions

Figs 3 and 4 show the ROC and PR curves for the binary classifier, respectively.

Fig 3. Receiver operating characteristic curves using validation predictions.

Fig 3

The dots correspond to the points that maximize the Youden index.

Fig 4. Precision-recall curves using validation predictions.

Fig 4

Precision-recall curve for each method using the validation predictions. The dots correspond to the points that maximize the F1 score.

Table 2 lists performance scores for each method using three different thresholds: 0.5, the one that maximizes the Youden index on the ROC curve and the one that maximizes the F1 score on the PR curve. KNN was the classifier with the lowest value for the AUC (0.94); Logit and DT achieved an AUC of 0.97; whereas SVC, RF and MLP obtained 0.98.

Table 2. Accuracy (Acc), sensitivity (SEN), specificity (SPF) and F1 score (F1) of all the classifiers in the validation stage, using three different thresholds (T): 0.5, the one that maximizes the Youden index on the receiver operating characteristic curve and the one that maximizes the F1 score on the precision-recall curve, and their confidence intervals at 95% level.

Method T AUC Acc (95% CI) SEN (95% CI) SPF (95% CI) F1 (95% CI)
Threshold: 0.5
Logit 0.5 0.97 0.92 (0.87,0.95) 0.71 (0.54, 0.85) 0.97 (0.92,0.99) 0.77 (0.65, 0.87)
SVC 0.5 0.98 0.97 (0.93,0.99) 0.89 (0.73,0.97) 0.99 (0.95,1.00) 0.91 (0.83, 0.97)
DT 0.5 0.97 0.92 (0.88, 0.96) 0.83 (0.66,0.93) 0.95 (0.90,0.98) 0.81 (0.69, 0.90)
KNN 0.5 0.94 0.91 (0.86,0.95) 0.66 (0.48, 0.81) 0.97 (0.93,0.99) 0.74 (0.60, 0.86)
RF 0.5 0.98 0.94 (0.90,0.97) 0.83 (0.66,0.93) 0.97 (0.92,0.99) 0.84 (0.73, 0.92)
MLP 0.5 0.98 0.96 (0.92,0.98) 0.89 (0.73,0.97) 0.97 (0.93,0.99) 0.89 (0.80, 0.96)
Threshold: max Youden Index
Logit 0.26 0.97 0.93 (0.89, 0.97) 1.00 (0.90,1) 0.92 (0.86,0.96) 0.85 (0.76, 0.92)
SVC 0.29 0.98 0.96 (0.92, 0.98) 0.94 (0.81,0.99) 0.97 (0.92,0.99) 0.90 (0.82, 0.97)
DT 0.25 0.97 0.93 (0.89, 0.97) 0.94 (0.81,0.99) 0.93 (0.88,0.97) 0.85 (0.75, 0.92)
KNN 0.30 0.94 0.93 (0.89,0.97) 0.86 (0.70,0.95) 0.95 (0.91,0.98) 0.83 (0.72, 0.92)
RF 0.19 0.98 0.92 (0.88,0.96) 0.97 (0.85,1.00) 0.91 (0.86,0.95) 0.83 (0.73, 0.91)
MLP 0.17 0.98 0.96 (0.92,0.98) 0.94 (0.81,0.99) 0.97 (0.92,0.99) 0.90 (0.82, 0.97)
Threshold: max F1 score
Logit 0.28 0.97 0.95 (0.90,0.97) 0.97 (0.85,1.00) 0.94 (0.89,0.97) 0.87 (0.78, 0.94)
SVC 0.35 0.98 0.97 (0.93,0.99) 0.91 (0.77,0.98) 0.98 (0.94,1.00) 0.91 (0.84, 0.97)
DT 0.40 0.97 0.94 (0.90,0.97) 0.91 (0.77,0.98) 0.95 (0.90,0.98) 0.85 (0.76, 0.93)
KNN 0.30 0.94 0.93 (0.89,0.97) 0.86 (0.70,0.95) 0.95 (0.91,0.98) 0.83 (0.72, 0.92)
RF 0.43 0.98 0.95 (0.91,0.98) 0.91 (0.77, 0.98) 0.96 (0.91,0.99) 0.88 (0.78,0.95)
MLP 0.17 0.98 0.96 (0.92,0.98) 0.94 (0.81, 0.99) 0.97 (0.92,0.99) 0.90 (0.82, 0.97)

The classifiers with the best set of parameters (S4 Table) and decision thresholds found were trained with the complete training set (184 samples). These classifiers were then tested using the 46 samples of the test set. Table 3 shows the scores for each method using the best threshold found in the validation stage.

Table 3. Threshold (T), area under the curve (AUC), accuracy (Acc), sensitivity (SEN), specificity(SPF) and F1 score (F1) of all the classifiers in the test stage, using the best thresholds found in the validation stage with their confidence intervals at 95% level.

Method T AUC Acc (95% CI) SEN (95% CI) SPF (95% CI) F1 (95% CI)
Logit 0.28 0.98 0.96 (0.85,0.99) 1.00 (0.66,1.00) 0.95 (0.82,0.99) 0.90 (0.71,1.00)
SVC 0.35 0.96 0.93 (0.82,0.99) 0.89 (0.52,1.00) 0.95 (0.82,0.99) 0.84 (0.60,1.00)
DT 0.40 0.96 0.96 (0.85,0.99) 1.00 (0.66,1.00) 0.95 (0.82,0.99) 0.90 (0.71,1.00)
KNN 0.30 0.96 0.91 (0.79,0.98) 0.78 (0.40,0.97) 0.95 (0.82,0.99) 0.78 (0.48,0.96)
RF 0.43 0.98 0.93 (0.82,0.99) 0.89 (0.52,1.00) 0.95 (0.82,0.99) 0.84 (0.63,1.00)
MLP 0.17 0.98 0.93 (0.82,0.99) 0.89 (0.52,1.00) 0.95 (0.82,0.99) 0.84 (0.59,1.00)

In the validation stage, as can be seen in Table 2, the SVC achieved the best results: accuracy of 97%, AUC of 0.98, sensitivity of 91% and specificity of 98% (threshold of 0.35). In the testing phase (Table 3), however, the best results were obtained with the logistic regression: accuracy of 96%, AUC of 0.96, sensitivity of 100% and specificity of 95% (threshold of 0.28).

Classifying tuberculous vs. malignant vs. other effusions

The first approach to performing a three-fold classification used the previous binary classifier for its first stage. The results obtained for the second stage of the pipeline are provided in the Supporting information section: S1 and S2 Figs, S5 and S6 Tables. Considering the validation results for each of the binary classifiers of the pipeline, we decided to use the SVC in both stages.

The pipeline achieved an overall accuracy of 79% in the validation predictions and 80% in the test set. To determine how the three-class classifier behaved in terms of sensitivity and specificity in the two-class problem (Tuberculous and Other), we have combined the results of the classes “Malignant” and “Other” into a single class. By doing this, the sensitivity and specificity would remain the same in the Tuberculous/Other classification, but this type of classifier would also allow us to detect 90% of malignant cases.

The second approach to solve the multiclass classification problem was to train, from scratch, a classifier that could distinguish between tuberculous, malignant and other effusions. The scores obtained with these classifiers are reported in the Supporting Information section: S7 and S8 Tables.

None of these classifiers outperforms the combination of classifiers from the previous section in the validation predictions. As can be seen in Table S6 Table, SVC and decision tree classifiers obtain the best results in terms of accuracy (76% and 74%, respectively). The decision tree achieved a sensitivity of 91% and specificity of 94% in the Tuberculous/Other classification.

As a result, in the validation predictions, we were able to classify correctly 32 out of 35 cases of TPE and 89 out of 98 cases of MPE (sensitivity of 91.4% for TPE and 90.8% for MPE); conversely, a total of 3 additional cases were mistakenly classified as TPE out of 149 non-TPE cases and 29 cases were mistakenly classified as MPE out of 86 non-MPE cases (specificity of 98.0% for TPE and 66.3% for MPE). Furthermore, all 3 cases of TPE misdiagnosed were classified as MPE, theoretically leading to additional diagnostic procedures, and only 6 out of the 98 cases of MPE were misdiagnosed as “Other”, that is, 93.9% of cases of MPE (92/98) were classified as MPE or TPE. The relatively low specificity of the classification for MPE was mainly due to overdiagnosis of MPE amongst cases in the other diagnosis group. Indeed, we deliberately implemented the classification into the three groups prioritizing the overdiagnosis of MPE over its underdiagnosis.

In the test set, we were able to correctly classify 8 out of 9 cases of TPE and 24 out of 26 cases of MPE (sensitivity of 88.8% for TPE and 92.3% for MPE); conversely, a total of 2 additional cases were mistakenly classified as TPE out of 37 non-TPE cases and 6 cases were mistakenly classified as MPE out of 20 non-MPE cases (specificity of 94.5% for TPE and 70.0% for MPE). Only 1 of the 26 cases of MPE was misdiagnosed as “Other”, that is, 96.1% of cases of MPE (25/26) were classified as MPE or TPE.

Performance of the classifiers versus ADA alone

We compared the results of our machine-learning-based classifiers with those derived from using ADA as the only diagnostic criteria. We obtained three thresholds for ADA: default threshold (in this case 40 U/l), the threshold that maximized the Youden index in the ROC curve, and the threshold that maximized the f1-score in the PR curve. It is interesting to note that the threshold that maximized the Youden index with our samples was 40 U/l as well. The threshold that maximized the f1 score in the PR curve was 43 U/l. With these thresholds two set of metrics were extracted:

  • Threshold = 40.00: Accuracy 0.93, Sensitivity 0.97 and Specificity 0.93

  • Threshold = 43.00: Accuracy 0.95, Sensitivity 0.94 and Specificity 0.95

Our classifiers obtained better Sensitivity/Specificity values. For example, Logistic Regression obtained 0,97/0,94 (youden 0.91). SVC and MLP gets 0,94/0,97 (youden 0.91). Also, better Accuracy is obtained with SVC (0,97) and MLP (0,96).

Regarding the Bayesian analysis of the diagnostic accuracy of two sets of diagnostic variables and with a pre-test probability of 3.8%:

  • for ADA >40 U/l (plus lymphocyte percentage > 50%), sensitivity, specificity, PPV and NPV were 97%, 93%, 35% and 100% respectively.

  • for the whole set of variables included in the machine learning algorithms, sensitivity, specificity, PPV and NPV were 91%, 98%, 64% and 100% respectively.

Pre- and post-test probabilities of both diagnostic options are shown in Fig 5. Additionally, Table 4 lists the aforementioned parameters with respect to the corresponding pre-test probability up to 50%. Notably, for a pre-test probability of 10% (the upper limit of low prevalence) and using the full set of variables included in the machine learning algorithms, the PPV already reaches 83.5% and NPV remains at 99%.

Fig 5. Post-test probability of TPE after positive (top) or negative (bottom) results of 1) ADA>40 U/l plus implicit lymphocyte percentage >50% alone or 2) in addition to age and routine pleural fluid parameters included in the machine learning algorithms; for different pre-test probabilities of disease.

Fig 5

Table 4. Comparative table of Bayesian probabilities of test parameters used: ADA > 40 U/l (plus lymphocyte percentage > 50%) versus the whole set of variables included in the machine learning algorithms.

PPV: positive predictive value. NPV: negative predictive value.

ADA + LYM All
Sensitivity 98% 91%
Specificity 93% 98%
Pre-test probability PPV NPV PPV NPV
5% 42.4% 99.9% 70.5% 99.5%
10% 60.8% 99.7% 83.5% 99.0%
15% 71.2% 99.6% 88.9% 98.4%
20% 77.8% 99.4% 91.9% 97.8%
30% 85.7% 99.0% 95.1% 96.2%
40% 90.3% 98.4% 96.8% 94.2%
50% 93.3% 97.6% 97.8% 91.6%

Discussion

Our study has prospectively analyzed the performance of non-invasive and straightforward diagnostic methods combining ADA level with routine parameters in pleural fluid and age, in the diagnosis of TPE using a machine learning approach, in a setting with a low-to-intermediate incidence of general TB (14 cases/100,000 population/year) and low prevalence scenario for TPE (3.8%). Secondly, we have sought to distinguish among non-tuberculous effusions those which are most likely to be malignant.

The definitive diagnosis of TPE remains a challenge due to its paucibacillary nature, and many attempts have been made to find an alternative method to the more invasive and hazardous pleural biopsy. Biomarkers, rapid cultures and PCR-based techniques have been the main focus of research over recent decades [3133]. Measurement of pleural fluid ADA has shown a uniformly high diagnostic performance for TPE in five major consecutive meta-analyses with a mean sensitivity and specificity of 92–93% and 90–92% respectively for a diagnostic threshold of >40 U/l [3438].

Following the Bayesian interpretation of its diagnostic accuracy, this biomarker is optimal as a rule-in test in high TB prevalence settings, and it is currently considered useful as a rule-out test in low prevalence scenarios [5, 31, 32]. Many other biomarkers have also been extensively studied for the same purpose, unstimulated interferon-gamma (best sensitivity of 89% and specificity of 97%) [39, 40] and interleukin-27 (best sensitivity of 96% and specificity of 99%) [4143] being the most accurate, but they lack the historical success, low cost, availability and simplicity of ADA measurement [39, 44]. Furthermore, concerns regarding the accuracy of ADA in immunocompromised patients have been extensively allayed: it retains a high utility for the diagnosis of TPE in all HIV-infected patients, even those with low CD4 counts [45, 46] and in renal transplant recipients [47].

The etiological spectrum of pleural effusions obviously depends on the population studied: in developing countries, tuberculosis and bacterial infections are by far the commonest causes; conversely, in developed countries, more than 90% of pleural effusions are caused by congestive heart failure, malignancy, pneumonia and pulmonary embolism [42, 48]. In this sense, the pre-test probability of a disease decisively affects the value of a given diagnostic tool, but the combination of various tests or parameters could theoretically improve the post-test probability of a given suspected disease, as has been found in our retrospective study and others [8, 49, 50]. Specifically, in 2012, we were able to demonstrate that the addition of lymphocyte percentage >50% to ADA>40 U/l in pleural fluid increased the specificity and the PPV of the latter, mostly in low-to-intermediate incidence scenarios. Some other authors have reported their experience with ADA subsequently in intermediate-low [51] and low [5254] incidence settings, with promising results.

In our current study, we expanded the number of parameters to be combined with ADA, and we performed a statistical analysis through the classification of all cases by a machine learning approach into three groups, our main goal being to correctly classify cases of TPE, and in a second step, we sought to also do the same with cases of MPE, even if these would be overdiagnosed. In relation to this, if we exclude parapneumonic effusions and acute inflammatory exudates, which are usually neutrophilic (even cases of TPE in the first 24–96 hours), most of the remaining types of pleural effusion are lymphocytic, suggesting non-acute disease, and differential diagnosis between TPE and MPE remains one of the most pressing challenges in this scenario [49, 5560].

As a result, and in line with the data described above concerning the three-fold classification pipeline, in the validation predictions, we were able to classify those cases of TPE with a sensitivity and specificity of 91.4% and 98.0% respectively. In regard to MPE cases we obtained a sensitivity of 90.8% and a specificity of 66.2% (due to prioritization of overdiagnosis). Besides, the corresponding parameters were similar in the test set (sensitivity and specificity 88.8% and 94.5% for TPE; and 92.3% and 70.0% for MPE). We have been able to find three reports regarding diagnosis of pleural tuberculosis by artificial intelligence based diagnostic models [6163]. All of them obtained a sensitivity and specificity over 90%, but some essential differences should be pointed out when comparing with ours: first and foremost, they are performed in very high prevalence scenarios (namely, China and Brazil, accounting for 96 out of 137, 73 out of 140 and 192 out of 443 patients diagnosed with TPE respectively); second, patients with clinical diagnosis of tuberculosis and improvement with antituberculous treatment are included, or even only microbiologically confirmed cases by culture are admitted in one of the studies [62].

Furthermore and regarding the Bayesian analysis of the accuracy of any parameter and/or diagnostic tool for the presumptive diagnosis of TPE, in this prospective study, we have been able to achieve even better results than in our previous retrospective study [8] with the combination of the full set of parameters included in the machine learning algorithm, all of them easy to obtain in routine clinical practice: the addition of the routine parameters and age had the benefit of improving the specificity and PPV with respect to using ADA (plus implicit lymphocytic percentage >50% in all pleural fluids), in a low prevalence scenario. Notably, for a TPE prevalence of 3.8%, specificity and PPV increased from 93 to 98% and from 35% to 64% respectively (Fig 5).

Some additional results deserve to be highlighted:

  • Pleural fluid culture yielded MTB in 25 out of 44 first samples (56%), and additionally, in 3 subsequent samples (63%), probably due to the use of the BACTEC MGIT semi-automated system, which is known to provide a higher and faster yield than solid media, with a reported sensitivity of as high as 63% in pleural fluid samples in general [64] and even 79% in samples from HIV-positive patients [65]. Pleural tissue sample culture yielded MTB from 7 out of 12 closed biopsies performed (58%) and 7 out of 9 thoracoscopic biopsies (77%).

  • Regarding the performance of the Xpert MTB/RIF assay, in our study, it detected MTB genome in 5 out of 44 pleural fluid samples (11%), 6 out of 12 closed pleural biopsy specimens (50%) and 6 out of 9 pleural thoracoscopic biopsy specimens (66%) (combined sensitivity in pleural tissue samples of 57%). The specificity reached 100% and no cases of rifampin resistance were identified. The difference in terms of sensitivity between pleural fluid and pleural tissue samples is evident. Overall, the sensitivity of molecular analysis of pleural fluid remains insufficient. In a recent Cochrane analysis on the diagnostic accuracy of the Xpert MTB/RIF assay for extrapulmonary tuberculosis, only five studies were found including pleural fluid and the composite reference standard, these reporting a sensitivity of 13–29% and specificity of 97–100% [66]. This low sensitivity might be due to small numbers of bacilli or even related to local intrinsic inhibitors or intracellular sequestration of mycobacteria [31].

    The novel next-generation Xpert MTB/RIF Ultra lowers the detection limit from 112.6 CFUs/mL to 15.6 CFUs/mL and shows promising results: in a recent multicenter study, it showed a sensitivity of 44% and specificity of 98% in pleural fluid compared to the composite reference standard, [67]. Data regarding the performance of this assay in pleural tissue samples and against the composite reference standard is scarce: the aforementioned Cochrane analysis only found a single study on this topic including 55 patients, 14 out of them with tuberculous effusions, and with surprising and disappointing results (sensitivity of 0%, specificity of 98%) [66]. Subsequently, three additional studies of 73, 113 and 27 patients diagnosed with TPE and who underwent thoracoscopic pleural biopsy reported a sensitivity of the Xpert MTB/RIF assay of 45%, 69% and 85%, respectively in pleural tissue samples against the composite reference standard [6870]. Our study showed a five-fold higher sensitivity of the Xpert MTB/RIF assay in pleural tissue compared to pleural fluid (57% versus 11%), and close to that obtained with culture of pleural fluid (56%) or closed biopsy pleural specimens (58%). Despite showing low sensitivity, PCR-based techniques in pleural fluid are currently considered useful because they are not invasive and their specificity is universally optimum; additionally, the Xpert MTB/RIF assay detects rifampicin resistance with sensitivity and specificity of 95% and 98.8% respectively [32]. On the other hand, the performance of the Xpert MTB/RIF assay in pleural tissue samples is close to that of MTB culture, making it, in our opinion, a diagnostic tool that should be considered.

Our study does have some limitations: only patients with lymphocytic exudative pleural effusions were included in this prospective study. This decision was influenced by financial limitations and guided by the fact that virtually all tuberculous pleural effusions become lymphocytic [1719], and that the differential diagnosis between TPE and MPE remains a great concern in just this scenario. As noted above, only one additional patient diagnosed with TPE showed a first pleural fluid sample that was neutrophilic, and this underlines the value of our results. The relatively limited number of patients is mainly due to the low prevalence of the tuberculous disease in our clinical setting; nevertheless, statistical power is guaranteed and enough as we expressed in the Material and Methods section. On the other hand, the main strengths of our study lie in its prospective and multicenter nature, along with the certainty of the diagnosis in all patients included; in this regard, the homogeneity of well differentiated populations makes the use of Machine Learning feasible with fewer patients.

Conclusion

In conclusion, ADA combined with age and routine pleural fluid parameters in a machine learning approach is suitable for the diagnosis of tuberculous pleural effusion in a low prevalence area. Secondly, discrimination (at the expense of overdiagnosis) of cases of malignant pleural effusion is an added benefit in this scenario.

Supporting information

S1 Fig. Receiver operating characteristic curve for each method using the validation predictions of the binary classification problem where the positive class is malignant and the negative class is other.

All training samples have been used except the ones identified as Tuberculous. The dots correspond to the points that maximize the Youden index.

(TIF)

S2 Fig. Precision-recall curve for each method using the validation predictions of the binary classification problem where the positive class is malignant and the negative class is other.

All training samples have been used except the ones identified as Tuberculous. The dots correspond to the points that maximize the F1 score.

(TIF)

S1 Table. Relative importance of features in the classification process.

The Random Forest classifier allows estimating the relative importance of each variable in the classification process. In view of the results, and in accordance with all the previously reported studies, in this classification process, “ADA” is the most important variable, followed by “age”. The rest of the variables are less useful, but we decided not to remove any of them a priori, but rather let each Machine Learning method assign a relative importance to each of them.

(PDF)

S2 Table. Classification of patients by etiology.

(PDF)

S3 Table. Methods and comparative diagnostic yield regarding tuberculous and malignant pleural effusions.

(PDF)

S4 Table. Parameters of the classifiers.

Logistic Regression (Logit). Support Vector Machine (SVC). Decision Tree (DT). K-Nearest Neighbors (KNN). Multi Layer Perceptron (MLP).

(PDF)

S5 Table. Validation results of the binary classification problem where the positive class is malignant and the negative class is other.

All training samples have been used except the ones identified as Tuberculous. Area under the curve (AUC), accuracy (Acc), sensitivity (SEN), specificity (SPF) and F1 score (F1) of all the classifiers using three different thresholds: 0.5, the one that maximizes the Youden index in the receiver operating characteristic curve and the one that maximizes the F1 score in the precision-recall curve.

(PDF)

S6 Table. Test results of the binary classification problem where the positive class is malignant and the negative class is other.

All test samples have been used except the ones identified as Tuberculous. Threshold (T), area under the curve (AUC), accuracy (Acc), sensitivity (SEN), specificity(SPF) and F1 score (F1) of all the classifiers, using the best thresholds found in the validation stage.

(PDF)

S7 Table. Multiclass classifier scores (Tuberculous, malignant and other).

Accuracy (Acc), balanced accuracy (bAcc), weighted F1 score (wF1) and Area Under the Curve using one-vs-rest strategy (AUC) of all classifiers using the validation samples.

(PDF)

S8 Table. Multiclass classifier scores (Tuberculous, malignant and other).

Accuracy (Acc), balanced accuracy (bAcc), weighted F1 score (wF1) and area under the curve using one-vs-rest strategy (AUC) of all classifiers using the test samples.

(PDF)

Acknowledgments

Lead author of Consortium: Cilla C M.D. Ph. D. Microbiology Service. Donostia University Hospital. CARLOSGUSTAVOSANTIAGO.CILLAEGUILUZ@osakidetza.eus

Cuñado A. Internal Medicine Service. Mendaro Hospital. AMAIA.CUNADOEIZAGUIRRE@osakidetza.eus, Moreno A. Internal Medicine Service. Mendaro Hospital. ANA.MORENORODRIGO@osakidetza.eus, Maiz A. Internal Medicine Service. Mendaro Hospital. ARANZAZU.MAIZEGANA@osakidetza.eus, Azcune A. Infectious Diseases Unit. Donostia University Hospital. ARKAITZ.AZCUNEGALPARSORO@osakidetza.eus, Labeguerie B. Pneumology Service. Donostia University Hospital. BENAT.LABEGUERIEARENAZA@osakidetza.eus, De la Guerra C. Internal Medicine Service. Mendaro Hospital. CARLA.DELAGUERRAACEBAL@osakidetza.eus, Martinez C. Internal Medicine Service. Mendaro Hospital. CINTIAMARIA.MARTINEZMATEU@osakidetza.eus, Sanchez E. Internal Medicine Service. Policlínica Gipuzkoa. Eloyyolanda@gmail.com, Montero E. Internal Medicine Service. Mendaro Hospital. ESPERANZA.MONTEROAPARICIO@osakidetza.eus, Michel FJ. Pneumolgy Service. Donostia University Hospital. FRANCISCOJAVIER.MICHELDELAROSA@osakidetza.eus, Acosta F. Internal Medicine Service. Mendaro Hospital. FEDERICORAMON.ACOSTAMAESTRE@osakidetza.eus, Bonache F. Internal Medicine Service. Mendaro Hospital. Fran.bonache@gmail.com, Urcelay G. Biochemistry Laboratory. Mendaro Hospital. MARIAGORETTI.URCELAYZALDUA@osakidetza.eus, De los Santos I. Pneumology Service. Mendaro Hospital. IDANIA.DELOSSANTOSVENTURA@osakidetza.eus, Perez I. Pneumology Service. Donostia University Hospital. IDOIA.PEREZSAMPEDRO@osakidetza.eus, Salegui I. Pneumology Service. Donostia University Hospital. INAKI.SALEGIETXEBESTE@osakidetza.eus, Sayago I. Pneumology Service. Asuncion Clinic. itxasos@telefonica.net, Zabaleta J. Thoracic Surgery Service. Donostia University Hospital. JON.ZABALETAJIMENEZ@osakidetza.eus, Iribarren JA. Infectious Diseases Unit. Donostia University Hospital. JOSEANTONIO.IRIBARRENLOYARTE@osakidetza.eus, Royo JI. Pneumology Service. Donostia University Hospital. JOSEIGNACIO.ROYOGUTIERREZ@osakidetza.eus, Garces JL. Internal Medicine Service. Policlinica Gipuzkoa. dr.jlgarces@gmail.com, Vaquero JM. Internal Medicine Service. Mendaro Hospital. JOSEMARIA.VAQUEROHERNANDEZ@osakidetza.eus, Izquierdo JM. Thoracic Surgery Service. Donostia University Hospital. JOSEMIGUEL.IZQUIERDOELENA@osakidetza.eus, Mendiola I. Microbiology Service. Mendaro Hospital. JOSUNE.MENDIOLAARZA@osakidetza.eus, Miguel JA. Pneumology Service. Bidasoa Hospital. JUANANTONIO.MIGUELARCE@osakidetza.eus, Merino JL. Internal Medicine Service. Policlinica Gipuzkoa. juanluismerino@msn.com, De Juan MD. Immunology Service. Donostia University Hospital. MARIADOLORES.DEJUANECHAVARRI@osakidetza.eus, Alvarez M. Internal Medicine Service. Mendaro Hospital. MARIA.ALVAREZDECASTRO@osakidetza.eus, Temprano M. Pneumology Service. Goi Deba Hospital. MIKEL.TEMPRANOGOGENOLA@osakidetza.eus, Zubeltzu M. Pneumology Service. Donostia Universitary Hospital. MIKEL.ZUBELTZUSESE@osakidetza.eus, Azcue N. Microbiology Service. Donostia Universitary Hospital. MIRENNEKANE.AZCUEALBIZU@osakidetza.eus, De Andres N. Internal Medicine Service. Mendaro Hospital. NEREA.ANDRESIMAZ@osakidetza.eus, Casanova Y. Internal Medicine Service. Policlinica Gipuzkoa. ycasanov4@gmail.com, Bernardo P. Internal Medicine Service. Mendaro Hospital. MARIAPILAR.BERNARDOGALAN@osakidetza.eus, Fuentes S. Pneumology Service. Mendaro Hospital. SHANDRA.FUENTESPICADO@osakidetza.eus, Dorronsoro S. Pneumology Service. Urola Hospital. SILVIA.DORRONSOROQUINTANA@osakidetza.eus, Chic S. Pneumology Service. Mendaro Hospital. SUSANA.CHICPALACIN@osakidetza.eus, Camino X. Infectious Diseases Unit. Donostia University Hospital. XABIER.CAMINOORTIZDEBARRON@osakidetza.eus.

Data Availability

All relevant data are within the manuscript and its Supporting information files.

Funding Statement

As we state in the manuscript, our study was supported by grant PI2016111036 to Dr. Diego Vicente from the Office of Health Research and Innovation of the Department of Health of the Basque Government. Funding was mainly used for payment of Xpert MTB/RIF in pleural fluid and tissue samples. There was no role of the funders regarding the study design, data collection, medical decisions or preparation of the manuscript.

References

  • 1.Global tuberculosis report 2019. Geneva: World Health Organization; 2020. https://www.who.int/tb/publications/global_report/en/.
  • 2. Cohen LA, Light RW. Tuberculous pleural effusion. Turkish thoracic journal. 2015;16(1):1. doi: 10.5152/ttd.2014.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Shaw JA, Irusen EM, Diacon AH, Koegelenberg CF. Pleural tuberculosis: a concise clinical review. The clinical respiratory journal. 2018;12(5):1779–1786. doi: 10.1111/crj.12900 [DOI] [PubMed] [Google Scholar]
  • 4. Porcel JM. Advances in the diagnosis of tuberculous pleuritis. Annals of translational medicine. 2016;4(15):282–288. doi: 10.21037/atm.2016.07.23 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Porcel JM. Biomarkers in the diagnosis of pleural diseases: a 2018 update. Therapeutic advances in respiratory disease. 2018;12:1–11. doi: 10.1177/1753466618808660 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Skouras VS, Magkouta SF, Psallidas I, Tsilioni I, Maragozidis P, Gourgoulianis KI, et al. Interleukin-27 improves the ability of adenosine deaminase to rule out tuberculous pleural effusion regardless of pleural tuberculosis prevalence. Infectious Diseases. 2015;47(7):477–483. doi: 10.3109/23744235.2015.1019919 [DOI] [PubMed] [Google Scholar]
  • 7. Skouras VS, Kalomenidis I. Pleural fluid tests to diagnose tuberculous pleuritis. Current Opinion in Pulmonary Medicine. 2016;22(4):367–377. doi: 10.1097/MCP.0000000000000277 [DOI] [PubMed] [Google Scholar]
  • 8. Garcia-Zamalloa A, Taboada-Gomez J. Diagnostic accuracy of adenosine deaminase and lymphocyte proportion in pleural fluid for tuberculous pleurisy in different prevalence scenarios. PloS one. 2012;7(6):e38729. doi: 10.1371/journal.pone.0038729 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Chollet F. Deep Learning with Python. Manning Publications Co.; 2017.
  • 10.Bishop CM. Pattern recognition and machine learning. springer; 2006.
  • 11. Leha A, Hellenkamp K, Unsöld B, Mushemi-Blake S, Shah AM, Hasenfuß G, et al. A machine learning approach for the prediction of pulmonary hypertension. PloS one. 2019;14(10):e0224453. doi: 10.1371/journal.pone.0224453 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Memorandum 2019. Epidemiological Surveillance Unit of Gipuzkoa. Health Department. Basque Government; 2019. http://www.euskadi.eus/contenidos/información/memorias_epidemiologica/es_def/adjuntos/2019/memoria2019-gipuzkoa.pdf.
  • 13.Tuberculosis Prevention and Control Program. Workgroup. Consensus document.; 2001. https://www.ogasun.ejgv.euskadi.eus/r51-catpub/es/k75aWebPublicacionesWar/k75aObtenerPublicacionDigitalServlet?R01HNoPortal=true&N_LIBR=051622&N_EDIC=0001&C_IDIOM=es&FORMATO=.pdf.
  • 14. Valdés L, Alvarez D, San José E, Penela P, Valle JM, García-Pazos JM, et al. Tuberculous pleurisy: a study of 254 patients. Archives of internal medicine. 1998;158(18):2017–2021. doi: 10.1001/archinte.158.18.2017 [DOI] [PubMed] [Google Scholar]
  • 15. Porcel JM. Tuberculous pleural effusion. Lung. 2009;187(5):263. doi: 10.1007/s00408-009-9165-3 [DOI] [PubMed] [Google Scholar]
  • 16. Liu Q, Yu YX, Wang XJ, Wang Z, Wang Z. Diagnostic accuracy of interleukin-27 between tuberculous pleural effusion and malignant pleural effusion: a meta-analysis. Respiration. 2018;95:469–477. doi: 10.1159/000486963 [DOI] [PubMed] [Google Scholar]
  • 17. Vorster MJ, Allwood BW, Diacon AH, Koegelenberg CF. Tuberculous pleural effusions: advances and controversies. Journal of thoracic disease. 2015;7(6):981. doi: 10.3978/j.issn.2072-1439.2015.02.18 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. He J, Zhang R, Shen Y, Wan C, Zeng N, Qin J, et al. Diagnostic accuracy of interleukin-22 and adenosine deaminase for tuberculous pleural effusions. Current Research in Translational Medicine. 2018;66(4):103–106. doi: 10.1016/j.retram.2018.08.002 [DOI] [PubMed] [Google Scholar]
  • 19. Sahn S, Huggins J, San José M, Alvarez-Dobano J, Valdes L. Can tuberculous pleural effusions be diagnosed by pleural fluid analysis alone? The International journal of tuberculosis and lung disease. 2013;17(6):787–793. doi: 10.5588/ijtld.12.0892 [DOI] [PubMed] [Google Scholar]
  • 20. Cohen JF, Korevaar DA, Altman DG, Bruns DE, Gatsonis CA, Hooft L, et al. STARD 2015 guidelines for reporting diagnostic accuracy studies: explanation and elaboration. BMJ open. 2016;6(11):e012799. doi: 10.1136/bmjopen-2016-012799 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Light RW. Pleural diseases. Lippincott Williams & Wilkins; 2001.
  • 22. Herrera-Lara S, Fernández-Fabrellas E, Samper GJ, Buades JM, Lapiedra RA, Moreno AP, et al. Predicting malignant and paramalignant pleural effusions by combining clinical, radiological and pleural fluid analytical parameters. Lung. 2017;195(5):653–660. doi: 10.1007/s00408-017-0032-3 [DOI] [PubMed] [Google Scholar]
  • 23. Ferreiro L, Suárez-Antelo J, Valdés L. Pleural procedures in the management of malignant effusions. Annals of Thoracic Medicine. 2017;12(1):3. doi: 10.4103/1817-1737.197762 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. 2011;12:2825–2830. [Google Scholar]
  • 25. LaValle SM, Branicky MS, Lindemann SR. On the relationship between classical grid search and probabilistic roadmaps. The International Journal of Robotics Research. 2004;23(7-8):673–692. doi: 10.1177/0278364904045481 [DOI] [Google Scholar]
  • 26. Kohavi R, et al. A study of cross-validation and bootstrap for accuracy estimation and model selection. In: Ijcai. vol. 2. Montreal, Canada; 1995. p. 1137–1145. [Google Scholar]
  • 27.Goutte C, Gaussier E. A probabilistic interpretation of precision, recall and F-score, with implication for evaluation. In: European conference on information retrieval. Springer; 2005. p. 345–359.
  • 28. Bradley AP. The use of the area under the ROC curve in the evaluation of machine learning algorithms. Pattern recognition. 1997;30(7):1145–1159. doi: 10.1016/S0031-3203(96)00142-2 [DOI] [Google Scholar]
  • 29.Boyd K, Eng KH, Page CD. Area under the precision-recall curve: point estimates and confidence intervals. In: Joint European conference on machine learning and knowledge discovery in databases. Springer; 2013. p. 451–466.
  • 30. Ruopp MD, Perkins NJ, Whitcomb BW, Schisterman EF. Youden Index and optimal cut-point estimated from observations affected by a lower limit of detection. Biometrical Journal: Journal of Mathematical Methods in Biosciences. 2008;50(3):419–430. doi: 10.1002/bimj.200710415 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Antonangelo L, Faria CS, Sales RK. Tuberculous pleural effusion: diagnosis & management. Expert review of respiratory medicine. 2019;13(8):747–759. doi: 10.1080/17476348.2019.1637737 [DOI] [PubMed] [Google Scholar]
  • 32.Shaw JA, Ahmed L, Koegelenberg CF. Effusions related to TB. Maskell NA, Laursen CB, Lee YCG, et al Pleural Disease (ERS Monograph) Sheffield, European Respiratory Society. 2020; p. 172–192. 10.1183/2312508X.10023819 [DOI]
  • 33. Pérez-Rodriguez E, Castro DJ. The use of adenosine deaminase and adenosine deaminase isoenzymes in the diagnosis of tuberculous pleuritis. Current opinion in pulmonary medicine. 2000;6(4):259–266. doi: 10.1097/00063198-200007000-00002 [DOI] [PubMed] [Google Scholar]
  • 34. Palma RM, Bielsa S, Esquerda A, Martínez-Alonso M, Porcel JM. Diagnostic accuracy of pleural fluid adenosine deaminase for diagnosing tuberculosis. Meta-analysis of Spanish studies. Archivos de Bronconeumología (English Edition). 2019;55(1):23–30. doi: 10.1016/j.arbr.2018.11.007 [DOI] [PubMed] [Google Scholar]
  • 35. Greco S, Girardi E, Masciangelo R, Capoccetta G, Saltini C. Adenosine deaminase and interferon gamma measurements for the diagnosis of tuberculous pleurisy: a meta-analysis. The International Journal of Tuberculosis and Lung Disease. 2003;7(8):777–786. [PubMed] [Google Scholar]
  • 36. Liang QL, Shi HZ, Wang K, Qin SM, Qin XJ. Diagnostic accuracy of adenosine deaminase in tuberculous pleurisy: a meta-analysis. Respiratory medicine. 2008;102(5):744–754. doi: 10.1016/j.rmed.2007.12.007 [DOI] [PubMed] [Google Scholar]
  • 37. Aggarwal AN, Agarwal R, Sehgal IS, Dhooria S. Adenosine deaminase for diagnosis of tuberculous pleural effusion: A systematic review and meta-analysis. PloS one. 2019;14(3):e0213728. doi: 10.1371/journal.pone.0213728 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38. Morisson P, Neves DD. Evaluation of adenosine deaminase in the diagnosis of pleural tuberculosis: a Brazilian meta-analysis. Jornal Brasileiro de Pneumologia. 2008;34(4):217–224. doi: 10.1590/S1806-37132008000400006 [DOI] [PubMed] [Google Scholar]
  • 39. Jiang J, Shi HZ, Liang QL, Qin SM, Qin XJ. Diagnostic value of interferon-γ in tuberculous pleurisy: a metaanalysis. Chest. 2007;131(4):1133–1141. doi: 10.1378/chest.06-2273 [DOI] [PubMed] [Google Scholar]
  • 40. Meldau R, Peter J, Theron G, Calligaro G, Allwood B, Symons G, et al. Comparison of same day diagnostic tools including Gene Xpert and unstimulated IFN-γ for the evaluation of pleural tuberculosis: a prospective cohort study. BMC pulmonary medicine. 2014;14(1):58. doi: 10.1186/1471-2466-14-58 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41. Yang WB, Liang QL, Ye ZJ, Niu CM, Ma WL, Xiong XZ, et al. Cell origins and diagnostic accuracy of interleukin 27 in pleural effusions. PLoS One. 2012;7(7):e40450. doi: 10.1371/journal.pone.0040450 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42. Wang W, Zhou Q, Zhai K, Wang Y, Liu JY, Wang XJ, et al. Diagnostic accuracy of interleukin 27 for tuberculous pleural effusion: two prospective studies and one meta-analysis. Thorax. 2018;73(3):240–247. doi: 10.1136/thoraxjnl-2016-209718 [DOI] [PubMed] [Google Scholar]
  • 43. Li M, Zhu W, Khan RSU, Saeed U, Wang R, Shi S, et al. Accuracy of interleukin-27 assay for the diagnosis of tuberculous pleurisy: A PRISMA-compliant meta-analysis. Medicine. 2017;96(50). doi: 10.1097/MD.0000000000009205 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44. Udwadia ZF, Sen T. Pleural tuberculosis: an update. Current opinion in pulmonary medicine. 2010;16(4):399–406. doi: 10.1097/MCP.0b013e328339cf6e [DOI] [PubMed] [Google Scholar]
  • 45. Riantawan P, Chaowalit P, Wongsangiem M, Rojanaraweewong P. Diagnostic value of pleural fluid adenosine deaminase in tuberculous pleuritis with reference to HIV coinfection and a Bayesian analysis. Chest. 1999;116(1):97–103. doi: 10.1378/chest.116.1.97 [DOI] [PubMed] [Google Scholar]
  • 46. Baba K, Hoosen AA, Langeland N, Dyrhol-Riise AM. Adenosine deaminase activity is a sensitive marker for the diagnosis of tuberculous pleuritis in patients with very low CD4 counts. PLoS one. 2008;3(7):e2788. doi: 10.1371/journal.pone.0002788 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47. Krenke R, Korczynski P. Use of pleural fluid levels of adenosine deaminase and interferon gamma in the diagnosis of tuberculous pleuritis. Current opinion in pulmonary medicine. 2010;16(4):367–375. doi: 10.1097/MCP.0b013e32833a7154 [DOI] [PubMed] [Google Scholar]
  • 48. Light RW. Pleural effusion. New England Journal of Medicine. 2002;346(25):1971–1977. doi: 10.1056/NEJMcp010731 [DOI] [PubMed] [Google Scholar]
  • 49. Valdés L, San-José E, Ferreiro L, Golpe A, González-Barcala FJ, Toubes ME, et al. Predicting malignant and tuberculous pleural effusions through demographics and pleural fluid analysis of patients. The Clinical Respiratory Journal. 2015;9(2):203–213. doi: 10.1111/crj.12125 [DOI] [PubMed] [Google Scholar]
  • 50. Santos AP, Corrêa RdS, Ribeiro-Alves M, Soares da Silva ACO, Mafort TT, Leung J, et al. Application of Venn’s diagram in the diagnosis of pleural tuberculosis using IFN-γ, IP-10 and adenosine deaminase. PloS one. 2018;13(8):e0202481. doi: 10.1371/journal.pone.0202481 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51. Michot JM, Madec Y, Bulifon S, Thorette-Tcherniak C, Fortineau N, Noël N, et al. Adenosine deaminase is a useful biomarker to diagnose pleural tuberculosis in low to medium prevalence settings. Diagnostic Microbiology and Infectious Disease. 2016;84(3):215–220. doi: 10.1016/j.diagmicrobio.2015.11.007 [DOI] [PubMed] [Google Scholar]
  • 52. Arnold DT, Bhatnagar R, Fairbanks LD, Zahan-Evans N, Clive AO, Morley AJ, et al. Pleural fluid adenosine deaminase (pfADA) in the diagnosis of tuberculous effusions in a low incidence population. PloS one. 2015;10(2):e0113047. doi: 10.1371/journal.pone.0113047 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53. Blakiston M, Chiu W, Wong C, Morpeth S, Taylor S. Diagnostic performance of pleural fluid adenosine deaminase for tuberculous pleural effusion in a low-incidence setting. Journal of clinical microbiology. 2018;56(8). doi: 10.1128/JCM.00258-18 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54. Sivakumar P, Marples L, Breen R, Ahmed L. The diagnostic utility of pleural fluid adenosine deaminase for tuberculosis in a low prevalence area. The International Journal of Tuberculosis and Lung Disease. 2017;21(6):697–701. doi: 10.5588/ijtld.16.0803 [DOI] [PubMed] [Google Scholar]
  • 55.Antonangelo L, Vargas FS, Genofre EF, OLIVEIRA CMNd, Teixeira LR, Sales RKBd, et al. Differentiating between tuberculosis-related and lymphoma-related lymphocytic pleural effusions by measuring clinical and laboratory variables: Is it possible? Jornal Brasileiro de Pneumologia. 2012;. [DOI] [PubMed]
  • 56. Tang Y, Zhang J, Huang H, He X, Zhang J, Ou M, et al. Pleural IFN-γ release assay combined with biomarkers distinguished effectively tuberculosis from malignant pleural effusion. BMC Infectious Diseases. 2019;19(1):55. doi: 10.1186/s12879-018-3654-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57. Porcel JM, Vives M. Differentiating tuberculous from malignant pleural effusions: a scoring model. Medical Science Monitor. 2003;9(5):CR175–CR180. [PubMed] [Google Scholar]
  • 58. Light RW. Pleural effusions. Medical Clinics. 2011;95(6):1055–1070. doi: 10.1016/j.mcna.2011.08.005 [DOI] [PubMed] [Google Scholar]
  • 59. Gao Y, Ou Q, Wu J, Zhang B, Shen L, Chen S, et al. Potential diagnostic value of serum/pleural fluid IL-31 levels for tuberculous pleural effusion. Scientific Reports. 2016;6:20607. doi: 10.1038/srep20607 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60. Nakajima Y, Kuribayashi K, Ishigaki H, Tada A, Negi Y, Minami T, et al. Adenosine Deaminase in Pleural Effusion and Its Relationship with Clinical Parameters in Patients with Malignant Pleural Mesothelioma. Cancer Investigation. 2020;38(6):356–364. doi: 10.1080/07357907.2020.1776313 [DOI] [PubMed] [Google Scholar]
  • 61. Seixas J, Faria J, Souza Filho J, Vieira A, Kritski A, Trajman A, et al. Artificial neural network models to support the diagnosis of pleural tuberculosis in adult patients. The International journal of tuberculosis and lung disease. 2013;17(5):682–686. doi: 10.5588/ijtld.12.0829 [DOI] [PubMed] [Google Scholar]
  • 62. Li C, Hou L, Sharma BY, Li H, Chen C, Li Y, et al. Developing a new intelligent system for the diagnosis of tuberculous pleural effusion. Computer methods and programs in biomedicine. 2018;153:211–225. doi: 10.1016/j.cmpb.2017.10.022 [DOI] [PubMed] [Google Scholar]
  • 63. Ren Z, Hu Y, Xu L. Identifying tuberculous pleural effusion using artificial intelligence machine learning algorithms. Respiratory research. 2019;20(1):1–9. doi: 10.1186/s12931-019-1197-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64. Ruan SY, Chuang YC, Wang JY, Lin JW, Chien JY, Huang CT, et al. Revisiting tuberculous pleurisy: pleural fluid characteristics and diagnostic yield of mycobacterial culture in an endemic area. Thorax. 2012;67(9):822–827. doi: 10.1136/thoraxjnl-2011-201363 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65. Luzze H, Elliott AM, Joloba ML, Odida M, Oweka-Onyee J, Nakiyingi J, et al. Evaluation of suspected tuberculous pleurisy: clinical and diagnostic findings in HIV-1-positive and HIV-negative adults in Uganda. The international journal of tuberculosis and lung disease. 2001;5(8):746–753. [PubMed] [Google Scholar]
  • 66. Kohli M, Schiller I, Dendukuri N, Dheda K, Denkinger CM, Schumacher SG, et al. Xpert® MTB/RIF assay for extrapulmonary tuberculosis and rifampicin resistance. Cochrane Database of Systematic Reviews. 2018;8(8). doi: 10.1002/14651858.CD012768.pub2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67. Wang G, Wang S, Yang X, Sun Q, Jiang G, Huo F, et al. Accuracy of Xpert MTB/RIF Ultra for the Diagnosis of Pleural TB in a Multicenter Cohort Study. Chest. 2020;157(2):268–275. doi: 10.1016/j.chest.2019.07.027 [DOI] [PubMed] [Google Scholar]
  • 68. Christopher DJ, Dinakaran S, Gupta R, James P, Isaac B, Thangakunam B. Thoracoscopic pleural biopsy improves yield of Xpert MTB/RIF for diagnosis of pleural tuberculosis. Respirology. 2018;23(7):714–717. doi: 10.1111/resp.13275 [DOI] [PubMed] [Google Scholar]
  • 69. Li C, Liu C, Sun B, Zhang W, Wang Y, Sun J, et al. Performance of Xpert® MTB/RIF in diagnosing tuberculous pleuritis using thoracoscopic pleural biopsies. BMC Infectious Diseases. 2020. doi: 10.1186/s12879-020-05578-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70. Gao S, Wang C, Yu X, Teng T, Shang Y, Jia J, et al. Xpert MTB/RIF Ultra enhanced tuberculous pleurisy diagnosis for patients with unexplained exudative pleural effusion who underwent a pleural biopsy via thoracoscopy: A prospective cohort study. International Journal of Infectious Diseases. 2021;106:370–375. doi: 10.1016/j.ijid.2021.04.011 [DOI] [PubMed] [Google Scholar]

Decision Letter 0

Frederick Quinn

17 May 2021

PONE-D-21-13738

Diagnostic accuracy of adenosine deaminase for pleural tuberculosis in a low prevalence setting: a machine learning approach within a 7-year prospective multi-center study

PLOS ONE

Dear Dr. Garcia-Zamalloa,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript. If you will need significantly more time to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: http://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Frederick Quinn

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1) Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2) You indicated that you had ethical approval for your study. In your Methods section, please ensure you have also stated whether you obtained consent from parents or guardians of the minors included in the study or whether the research ethics committee or IRB specifically waived the need for their consent.

3) One of the noted authors is a group or consortium [Gipuzkoa Pleura Group Consortium]. In addition to naming the author group, please list the individual authors and affiliations within this group in the acknowledgments section of your manuscript. Please also indicate clearly a lead author for this group along with a contact email address.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Partly

Reviewer #2: Partly

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: I Don't Know

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: No

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: In this study, the authors investigated the diagnostic value of routine parameters of pleural effusion for tuberculosis pleurisy. Machine learning approaches were used to combine these parameters. I have some comments.

(1) Introduction: the definition of machine learning should be introduced.

(2) The manuscript should be reported following the STARD guideline.

(3) A flowchart should be used to depict the patient selection process.

(4) The discussion section should be shortened, and the readability needs to be improved.

(5) Two studies have investigated the clinical utility of machine learning approaches for TPE diagnostics (Respir Res. 2019 Oct 16;20(1):220.; Comput Methods Programs Biomed. 2018 Jan;153:211-225.). These two studies should be mentioned, and the strengthes of the current study should be discussed.

(6) Parameters used in machine learning algorithms should be reported.

(7) 95%CI should be added to each table.

(8) Line 348: is this a retrospective study?

(9) The term “validation dataset” should be modified as “training dataset.”

(10) The major limitation of this study is the small sample size.

(11) Methods: the software and packages used for machine learning should be reported.

Reviewer #2: The title is inappropriate as several other parameters besides ADA were used to train the algorithm for machine learning.

The notion that pretest probability remained 3.8% during the entire study period is incorrect. The denominator for this assumption includes all pleural effusions, while authors studied only lymphocytic exudative effusions.

During the study period, the entire province had only 45 patients of tuberculous pleural effusion. 44 of these were included in the present study. This appears to be a biased sample since all the lymphocytic exudative pleural effusions in the province don’t appear to have been included.

Patients where no definitive diagnosis could be reached were excluded, as were patients with any disease that could clearly explain the effusion. This should not have been done. Rather they could have used as the validation set for checking the accuracy of the algorithm.

I am still not sure whether the complicated machine learning algorithm actually improved diagnostic accuracy or not. Firstly, there is no clarity on why a particular set of variables were selected to train the algorithm. It is quite possible that less or more may have been better. One cannot decipher the contribution of each parameter towards the overall decision-making. In particular, the overall sensitivity of the algorithm for lymphocytic exudates was lower than that of ADA, but the specificity was higher. The same result could have been easily obtained by shifting the arbitrarily defined ADA threshold of 40 U/L to another value. Authors need to describe the diagnostic accuracy of ADA at different thresholds. For a confirmatory test, high specificity and acceptable sensitivity are needed, and this can be easily achieved using ADA alone.

The meaning and interpretation of the figures on ROC curves, precision-recall curves, and confusion matrices is not clear to me, not it has been adequately explained. I am not an expert in machine learning techniques, and neither is most of the readership of this journal.

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

Decision Letter 1

Frederick Quinn

6 Sep 2021

PONE-D-21-13738R1

Diagnostic accuracy of adenosine deaminase for pleural tuberculosis in a low prevalence setting: a machine learning approach within a 7-year prospective multi-center study

PLOS ONE

Dear Dr. Garcia-Zamalloa,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript. If you will need significantly more time to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: http://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Frederick Quinn

Academic Editor

PLOS ONE

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: No

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: No

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: No

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: No

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: In this study, the authors investigated the diagnostic accuracy of conventional biomarkers for TPE. The strength of this study is machine learning analysis, which has been proved to be a valuable method to improve the diagnostic accuracy of biomarkers. I have some comments.

1. The current version of the manuscript is too long. The readability of the manuscript is poor. I strongly suggest authors shorten the length of the manuscript to make it more clear and focus. The current version of the manuscript is entirely unacceptable.

2.Figures 5, 6, 7, 8, 9, and 10 should be deleted because sensitivity and specificity have been reported in Table 2 and Table 3. In machine learning analysis, it is meaningless to report the results of the training cohort.

3. AUC should be reported in table 2.

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

PLoS One. 2021 Nov 4;16(11):e0259203. doi: 10.1371/journal.pone.0259203.r004

Author response to Decision Letter 1


29 Sep 2021

Reviewer #1: In this study, the authors investigated the diagnostic accuracy of conventional biomarkers for TPE. The strength of this study is machine learning analysis, which has been proved to be a valuable method to improve the diagnostic accuracy of biomarkers. I have some comments.

Thank you for your comments. Please find below a point by point reply.

1. The current version of the manuscript is too long. The readability of the manuscript is poor. I strongly suggest authors shorten the length of the manuscript to make it more clear and focus. The current version of the manuscript is entirely unacceptable.

We regret that the reviewer found the manuscript difficult to read. Due to the nature of the contribution of the manuscript and the scope of the journal, we are aiming at three different groups of potential readers: clinicians, clinicians with solid training in statistics, and mathematicians/statisticians. We have tried to achieve a delicate balance between the depth provided to technical details and the clarity required to make our contribution accessible to clinicians who may be only interested in the application. A thorough explanation of technical details is unavoidable both to enhance the transparency of the methods and results, and to allow replicability.

Despite of all previously mentioned, we have done our best to make the manuscript easier and shorter whenever possible.

2.Figures 5, 6, 7, 8, 9, and 10 should be deleted because sensitivity and specificity have been reported in Table 2 and Table 3. In machine learning analysis, it is meaningless to report the results of the training cohort.

Thank you for your comment. Following your recommendation we have removed these figures.

3. AUC should be reported in table 2.

Thank you for your comment. Following your recommendation we have included the area under the curve in Table 2.

Attachment

Submitted filename: Response to reviewer.pdf

Decision Letter 2

Frederick Quinn

15 Oct 2021

Diagnostic accuracy of adenosine deaminase for pleural tuberculosis in a low prevalence setting: a machine learning approach within a 7-year prospective multi-center study

PONE-D-21-13738R2

Dear Dr. Garcia-Zamalloa,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at http://www.editorialmanager.com/pone/, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Frederick Quinn

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: The quality of the manuscript has been improved, and the current version is acceptable.

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Acceptance letter

Frederick Quinn

22 Oct 2021

PONE-D-21-13738R2

Diagnostic accuracy of adenosine deaminase for pleural tuberculosis in a low prevalence setting: a machine learning approach within a 7-year prospective multi-center study

Dear Dr. Garcia-Zamalloa:

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now with our production department.

If your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information please contact onepress@plos.org.

If we can help with anything else, please email us at plosone@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Frederick Quinn

Academic Editor

PLOS ONE

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Fig. Receiver operating characteristic curve for each method using the validation predictions of the binary classification problem where the positive class is malignant and the negative class is other.

    All training samples have been used except the ones identified as Tuberculous. The dots correspond to the points that maximize the Youden index.

    (TIF)

    S2 Fig. Precision-recall curve for each method using the validation predictions of the binary classification problem where the positive class is malignant and the negative class is other.

    All training samples have been used except the ones identified as Tuberculous. The dots correspond to the points that maximize the F1 score.

    (TIF)

    S1 Table. Relative importance of features in the classification process.

    The Random Forest classifier allows estimating the relative importance of each variable in the classification process. In view of the results, and in accordance with all the previously reported studies, in this classification process, “ADA” is the most important variable, followed by “age”. The rest of the variables are less useful, but we decided not to remove any of them a priori, but rather let each Machine Learning method assign a relative importance to each of them.

    (PDF)

    S2 Table. Classification of patients by etiology.

    (PDF)

    S3 Table. Methods and comparative diagnostic yield regarding tuberculous and malignant pleural effusions.

    (PDF)

    S4 Table. Parameters of the classifiers.

    Logistic Regression (Logit). Support Vector Machine (SVC). Decision Tree (DT). K-Nearest Neighbors (KNN). Multi Layer Perceptron (MLP).

    (PDF)

    S5 Table. Validation results of the binary classification problem where the positive class is malignant and the negative class is other.

    All training samples have been used except the ones identified as Tuberculous. Area under the curve (AUC), accuracy (Acc), sensitivity (SEN), specificity (SPF) and F1 score (F1) of all the classifiers using three different thresholds: 0.5, the one that maximizes the Youden index in the receiver operating characteristic curve and the one that maximizes the F1 score in the precision-recall curve.

    (PDF)

    S6 Table. Test results of the binary classification problem where the positive class is malignant and the negative class is other.

    All test samples have been used except the ones identified as Tuberculous. Threshold (T), area under the curve (AUC), accuracy (Acc), sensitivity (SEN), specificity(SPF) and F1 score (F1) of all the classifiers, using the best thresholds found in the validation stage.

    (PDF)

    S7 Table. Multiclass classifier scores (Tuberculous, malignant and other).

    Accuracy (Acc), balanced accuracy (bAcc), weighted F1 score (wF1) and Area Under the Curve using one-vs-rest strategy (AUC) of all classifiers using the validation samples.

    (PDF)

    S8 Table. Multiclass classifier scores (Tuberculous, malignant and other).

    Accuracy (Acc), balanced accuracy (bAcc), weighted F1 score (wF1) and area under the curve using one-vs-rest strategy (AUC) of all classifiers using the test samples.

    (PDF)

    Attachment

    Submitted filename: response_to_reviewers.pdf

    Attachment

    Submitted filename: Response to reviewer.pdf

    Data Availability Statement

    All relevant data are within the manuscript and its Supporting information files.


    Articles from PLoS ONE are provided here courtesy of PLOS

    RESOURCES