Background: Computer-aided detection (CAD) of tuberculosis (TB) on chest radiographs is recommended by the World Health Organization (WHO) for screening and triage, and a triage test should reach at least 90% sensitivity and 70% specificity.
Objective: To evaluate a transparent, segmentation-based approach to TB detection and to compare its performance with the WHO triage target.
Methods: The NLM Montgomery County chest X-ray set was used (138 posteroanterior radiographs from 134 patients; 58 with TB, 80 normal), with expert lung masks and radiology readings. A compact U-Net was trained to segment lung fields using patient-grouped five-fold cross-validation. A total of 110 intensity, texture (grey-level co-occurrence and local binary pattern) and left–right asymmetry features were computed for the upper, middle and lower zone of each lung. Logistic regression and random forests were evaluated with 20 repetitions of patient-grouped cross-validation.
Results: The U-Net segmented lungs with a mean Dice coefficient of 0.970, but agreement was lower for TB than normal radiographs (0.960 vs 0.978, p = 4 × 10⁻⁶); the four worst segmentations all excluded opaque, diseased lung such as pleural effusion. Lung-field features classified TB with an area under the receiver operating characteristic curve (AUROC) of 0.882 (manual masks) and 0.895 (U-Net masks), versus 0.815 for fixed image regions without lung masks. Upper-zone features alone reached an AUROC of 0.849, versus 0.592 for middle and 0.653 for lower zones. At 70% specificity, sensitivity was 86.2% (95% CI 76.4– 94.6%) with manual masks and 91.4% (80.0–98.4%) with U-Net masks. Sensitivity was lower for inactive or healed disease (78.9%) than active disease (89.5%). False positives were concentrated in older healthy individuals (42% vs 13% under 40 years).
Conclusions: Interpretable lung-field analysis approaches but does not reliably meet the WHO triage target on this dataset, with the target met at best marginally and with wide uncertainty. Larger, prospective validation attending to disease activity and age is required.
Keywords: TuberculosisChest RadiographyComputer-Aided DetectionLung SegmentationTexture AnalysisTarget Product Profile
Tuberculosis remains the leading cause of death from a single infectious agent; an estimated 10.7 million people fell ill with TB and 1.23 million died from it in 2024 [1]. Many cases are never diagnosed or notified, and early detection through systematic screening and triage is central to TB prevention and control. Chest radiography is highly sensitive for pulmonary TB, but its interpretation requires trained readers who are scarce in high-burden settings. Since 2021, WHO has recommended computer-aided detection (CAD) software as an alternative to human readers for screening and triage in individuals aged 15 years and older [2]. For a triage test, WHO’s target product profile (TPP) specifies a minimum sensitivity of 90% and specificity of 70% [3].
Deep learning CAD products now achieve high accuracy in large evaluations [4], [5], [6], but they are typically proprietary, require large training sets and give little insight into the image features that drive their decisions. Shortcut learning, in which models rely on burned-in labels, devices or patient positioning rather than on lung pathology, is a well-documented risk for chest radiograph classifiers [7], [8]. Interpretable approaches that restrict analysis to segmented lung fields and use explicit intensity and texture features [9] are less prone to such shortcuts, can be developed on small local datasets and make it possible to check whether the model attends to the lung regions where TB is expected.
This study evaluates such an approach on a public dataset of real radiographs with expert lung masks and radiology readings [10]. It asks four questions: how accurately a compact U-Net segments the lung fields, particularly in diseased lungs; how well zone-wise lung-field features distinguish TB from normal radiographs; which lung zones carry the most information; and whether performance meets the WHO triage target, overall and in clinically relevant subgroups.
The Montgomery County chest X-ray set was collected by the TB control programme of the Department of Health and Human Services of Montgomery County, Maryland, USA, and released by the U.S. National Library of Medicine [10]. It contains 138 posteroanterior radiographs (4,020 × 4,892 or 4,892 × 4,020 pixels; 12-bit, provided as PNG), of which 80 are normal and 58 show manifestations of TB, together with manual segmentation masks of both lungs [11] and a text file with the patient’s sex, age and the radiologist’s reading. The data were obtained from a public repository that includes the complete set [12]. Three patients had more than one radiograph (two with two and one with three images, identified from cross-references in the readings and identical reports), giving 134 patients. Across the 138 radiographs, patients were aged 4–89 years (median 40); 74 radiographs were from female and 63 from male patients, and one had no recorded sex. Because three patients contributed more than one radiograph, these counts are at the image level. Patients with TB were older than those with normal radiographs (median 47 vs. 33.5 years). The readings of TB cases were coded as active or other findings (n = 38), inactive or healed disease, such as calcified granulomas or stable scars (n = 19), or no report (n = 1); 13 mentioned pleural involvement and 37 mentioned the upper lobes or apex. Figure 1 shows real radiographs with the expert masks and readings. The images are anonymised and publicly released.
Images were resized to 512 × 512 pixels. A compact U-Net [13] (five resolution levels with 8–96 channels) was trained on 256 × 256-pixel images with a combined binary cross-entropy and Dice loss, the Adam optimiser and light intensity augmentation for 40 epochs. Five-fold cross-validation, stratified by diagnosis and grouped by patient, was used so that every radiograph was segmented by a model that had not seen that patient. Predicted masks were upsampled to 512 × 512 pixels, the two largest connected components were kept and assigned to the right or left lung by position, and agreement with the expert masks was measured by the Dice coefficient.
Each radiograph was enhanced with contrast-limited adaptive histogram equalisation [14]. Each lung was divided into upper, middle and lower thirds of its vertical extent, and for each of the six zones 12 features were computed: mean, standard deviation, skewness, kurtosis and 10th and 90th percentiles of intensity; grey-level co-occurrence contrast, homogeneity, energy and correlation (32 grey levels, distances 2 and 4 pixels, two directions) [15]; and the entropy and non-uniform fraction of uniform local binary patterns [16]. The absolute left–right difference of each zone feature (36 asymmetry features), the lung area as a fraction of the image and the right-to-left area ratio were added, giving 110 features. Features were computed with expert masks, with U-Net masks and, as a control without lung segmentation, with two fixed rectangular boxes covering the left and right halves of the chest. Image processing used scikit-image [17] and PyTorch [18].
L2-regularised logistic regression (standardised features, C = 0.05) and random forests [19] (500 trees) were evaluated with five-fold cross-validation, stratified by diagnosis and grouped by patient [20], repeated 20 times with different splits [21]. The AUROC was computed for each repetition, and the out-of-fold scores averaged over repetitions were used for ROC analysis. In line with the WHO TPP [3], sensitivity at a specificity of at least 70% and specificity at a sensitivity of at least 90% were reported, with 95% confidence intervals from 2,000 bootstrap samples of patients. To identify where the information lies, logistic regression was also trained on subsets of features: each zone level, the asymmetry features, intensity or texture features only and lung shape only. At the operating point with at least 70% specificity, sensitivity was compared between subgroups of TB cases defined from the readings, and the false-positive rate between age groups and sexes. Reporting follows the relevant items of STARD 2015 [22].
The U-Net segmented the lung fields with a mean Dice coefficient of 0.970 (median 0.977, fold means 0.967–0.978). Agreement was significantly lower for radiographs with TB than for normal radiographs (mean 0.960 vs. 0.978; Mann–Whitney p = 4 × 10−6). Four radiographs had a Dice coefficient below 0.90, all from TB patients. In each of them, the network excluded opaque lung that the expert had included within the lung boundary: a large right pleural effusion, a right pleural peel with atelectasis, a right effusion with upper-lobe infiltrate and active TB with heart failure (Figure 2). Segmentation errors were therefore concentrated in exactly the regions that carry the pathology.
Table 1 and Figure 3 (left) summarise the classification results. With features from the expert lung masks, logistic regression reached a mean AUROC of 0.882 ± 0.010 over 20 repetitions, and with features from the U-Net masks 0.895 ± 0.009; these ranges are standard deviations over the 20 repetitions, not confidence intervals, and they overlapped widely. Without lung segmentation, features from fixed image regions gave a clearly lower AUROC of 0.815 ± 0.016. Logistic regression performed better than random forests in all settings. At the operating point with at least 70% specificity, the sensitivity of logistic regression was 86.2% (95% CI 76.4–94.6%) with expert masks and 91.4% (80.0–98.4%) with U-Net masks, and at 90% sensitivity the specificity was 53.8% and 70.0%. The model using U-Net masks therefore touched the WHO minimum triage target at its point estimate, but the lower confidence limits of both sensitivity and specificity lay well below the target, and the model using expert masks did not reach it.
Mean ± SD over Repetitions; Operating Points and 95% Confidence Intervals (Patient Bootstrap) Are from Scores Averaged over Repetitions. The WHO Minimum Triage Target is Sensitivity ≥ 90% with Specificity ≥ 70%.
| Features | Classifier | AUROC (Mean ± SD) | AUROC, Pooled (95% CI) | Sensitivity at Sp ≥ 70% (%) | Specificity at Se ≥ 90% (%) |
|---|---|---|---|---|---|
| Lung fields, expert masks | Logistic regression | 0.882 ± 0.010 | 0.888 (0.826–0.941) | 86.2 (76.4–94.6) | 53.8 (40.7–84.7) |
| Random forest | 0.860 ± 0.009 | 0.866 (0.798–0.927) | 86.2 (76.8–94.5) | 45.0 (18.2–83.9) | |
| Lung fields, U-Net masks | Logistic regression | 0.895 ± 0.009 | 0.903 (0.848–0.949) | 91.4 (80.0–98.4) | 70.0 (55.7–87.5) |
| Random forest | 0.857 ± 0.008 | 0.865 (0.801–0.924) | 87.9 (76.6–95.7) | 47.5 (25.6–82.9) | |
| Fixed regions, no lung mask | Logistic regression | 0.815 ± 0.016 | 0.821 (0.747–0.888) | 79.3 (65.5–90.0) | 45.0 (28.4–70.7) |
| Random forest | 0.802 ± 0.014 | 0.812 (0.731–0.887) | 75.9 (65.1–89.1) | 37.5 (22.1–68.6) |
Feature subsets showed a clear zonal pattern (Figure 3, right). Features from the upper zones of both lungs alone reached an AUROC of 0.849 ± 0.011, close to that of all features, whereas middle-zone (0.592) and lower-zone (0.653) features were much weaker. Left–right asymmetry features alone gave 0.805, reflecting the frequently unilateral distribution of disease. Texture features (0.855) were more informative than intensity features (0.824), and lung area and the right-to-left area ratio carried little information (0.543). The model thus relied mainly on texture in the upper lung zones, where post-primary TB typically manifests.
At the operating point with at least 70% specificity (expert masks, logistic regression; overall sensitivity 86.2%, specificity 75.0%), sensitivity was 89.5% for active disease or other findings (34 of 38) but 78.9% for inactive or healed disease (15 of 19) (Table 2). Sensitivity was similar with and without pleural involvement (84.6% and 86.7%) and with and without upper-lobe involvement (86.5% and 85.7%), but lower when the reading described only left-sided disease (70.6%, 12 of 17) than right-sided (94.4%) or bilateral disease (92.3%); the remaining 10 of the 58 TB readings did not specify laterality. False positives were strongly associated with age: 42.4% of normal radiographs from individuals aged 40 years or older were classified as TB, compared with 12.8% of those under 40. Sensitivity was also higher in men (94.6%) than in women (71.4%), although these groups overlapped with the age groups and were small.
| Group | N | Classified as TB (%) |
|---|---|---|
| TB: active disease or other findings | 38 | 89.5 |
| TB: inactive or healed disease | 19 | 78.9 |
| TB: pleural involvement / none | 13 / 45 | 84.6 / 86.7 |
| TB: left only / right only / bilateral | 17 / 18 / 13 | 70.6 / 94.4 / 92.3 |
| TB: women / men | 21 / 37 | 71.4 / 94.6 |
| TB: age < 40 / ≥ 40 years | 21 / 37 | 81.0 / 89.2 |
| Normal: age < 40 years (false positives) | 47 | 12.8 |
| Normal: age ≥ 40 years (false positives) | 33 | 42.4 |
This study shows that a transparent pipeline, consisting of lung segmentation and zone-wise intensity and texture features with a linear classifier, distinguishes TB from normal chest radiographs on real data with an AUROC of about 0.88–0.90. This is similar to the performance originally reported on this dataset with a larger feature set [9] and below that of commercial deep learning products evaluated on large populations [4]. Restricting the analysis to the lung fields improved the AUROC by about 0.07 compared with fixed image regions, which supports the value of segmentation both for accuracy and for preventing models from learning from labels, markers and anatomy outside the lungs [7], [8]. The radiographs in Figure 1 carry burned-in text and markers that a whole-image model could exploit.
The zonal analysis provides a plausibility check that black-box models lack. The upper zones carried almost all of the discriminative information, in agreement with the predilection of post-primary TB for the apical and posterior segments of the upper lobes, and asymmetry features were informative because disease is often unilateral. Such explicit evidence makes it easier for clinicians and programme managers to judge whether a CAD system is detecting disease for the right reasons.
Measured against the WHO triage target [3], however, the results are sobering. Only the U-Net-mask model reached 90% sensitivity at 70% specificity, and with 58 TB cases the lower confidence limit of sensitivity was 80%. A triage test that misses one in five cases would not be acceptable, and the evidence on this dataset is insufficient to show that the target is met. Two subgroup findings are relevant for programme use. First, inactive or healed disease was detected less often than active disease. In screening, detection of old lesions is not a goal in itself, but such lesions still trigger confirmatory testing, so the case mix strongly affects the observed sensitivity. Second, false positives were concentrated in older individuals, whose radiographs more often show age-related changes. Because TB patients in this dataset were older than controls, part of the apparent discrimination may reflect age rather than TB, and in older screening populations the specificity would probably be lower than estimated here. Threshold selection for CAD should therefore consider the age structure of the target population, in line with WHO guidance that CAD thresholds should be calibrated for the population in which the software is used [2].
A further observation concerns segmentation. Although the U-Net reached a high average Dice coefficient, its largest errors occurred in diseased lungs, where it excluded opaque regions such as pleural effusions. The slightly higher AUROC with U-Net masks should therefore not be interpreted as better segmentation; excluding diseased lung changes the zone boundaries and features in ways that may happen to be discriminative here but are unlikely to generalise. Segmentation quality should be reported separately for abnormal radiographs, and pipelines should be robust to masks that miss diseased regions.
The study has limitations. The dataset is small (58 TB cases), comes from a single low-burden screening programme and was acquired with one system; the reference standard is the radiologist’s reading supported by clinical information rather than bacteriological confirmation for every case, and the coding of subgroups from free-text readings is approximate. Repeated radiographs of three patients were handled by grouping, but other undetected repeats cannot be excluded. Only hand-crafted features and simple classifiers were evaluated, and no external test set was available. Subgroup estimates are based on small numbers and should be regarded as exploratory.
On real chest radiographs from the Montgomery County TB screening programme, an interpretable pipeline of U-Net lung segmentation and zone-wise texture features detected TB with an AUROC of 0.88–0.90, with most of the information located in the upper lung zones. Restricting analysis to the lung fields clearly improved performance over fixed image regions. Segmentation errors were concentrated in diseased lungs, and the WHO minimum triage target of 90% sensitivity at 70% specificity was reached at best marginally and with wide uncertainty. Sensitivity was lower for inactive disease, and false positives were concentrated in older individuals. Interpretable CAD can help to understand and audit TB detection, but any system intended for screening or triage must be validated prospectively in the target population, with bacteriological confirmation and with operating thresholds chosen for the local age structure and case mix.
The authors acknowledge the Department of Health and Human Services of Montgomery County, Maryland, USA, and the U.S. National Library of Medicine for creating and releasing the Montgomery County chest X-ray set, and the maintainers of the public repository used to obtain it, and the researchers whose works have been cited in this study.
| Author | CRediT roles |
|---|---|
| Sadyrova Nurgul | Methodology, Software, Formal analysis, Writing – original draft, Visualization, Funding acquisition |
| Muratov Zhanibek | Methodology, Software, Validation, Investigation, Data curation, Supervision |
| Tashpolotova Anarkan | Conceptualization, Software, Formal analysis, Resources, Writing – original draft, Visualization, Project administration, Funding acquisition |
This research has received no external funding.
No conflict of interest.
Not Applicable. The study used only publicly available, anonymised images.
Not Applicable. The study is a secondary analysis of publicly available, anonymised images and involved no human participants.
This study uses the publicly available NLM Montgomery County chest X-ray set [10], obtained from a public repository [12]. No new datasets were created. The analysis code is available from the corresponding author on reasonable request.
Generative AI tools were not used to generate the scientific content, data, analyses or results of this study. Any AI-assisted language editing was reviewed and revised by the authors, who take full responsibility for the content of this article.
Sadyrova Nurgul, holds the post of associate professor in the Department of Clinical Disciplines at Jalal-Abad International University, located in Manas, Kyrgyzstan. As corresponding author of this article, Sadyrova Nurgul is the contact for its evaluation of interpretable lung-field texture analysis of chest radiographs for tuberculosis triage, measured against the World Health Organization target product profile. Email: sadyrova.n73@mail.ru
Muratov Zhanibek, is a full professor whose principal appointment lies in the Department of Clinical Disciplines, Jalal-Abad International University, Kyrgyzstan. Further affiliations link Muratov Zhanibek with Osh State University and Osh International Medical University. The present paper, on segmentation quality and zonal patterns in automated tuberculosis screening from chest X-rays, lists Muratov Zhanibek as second author.
Tashpolotova Anarkan, teaches at lecturer grade within the Department of Clinical Disciplines of Jalal-Abad International University in Manas. Tashpolotova Anarkan joined the author team of this study, which examined how U-Net lung masks, upper-zone texture features and patient age shape the accuracy of computer-aided tuberculosis detection on the Montgomery County radiographs.
Sadyrova Nurgul, Muratov Zhanibek, Tashpolotova Anarkan. (2026). Interpretable lung-field texture analysis of chest radiographs for tuberculosis triage: Segmentation, zonal patterns and the WHO target product profile. Journal of Prevention, Diagnosis and Management of Human Diseases (JPDMHD), 6(2), 54–62. https://doi.org/10.55529/jpdmhd.62.54.62