Article Text

Development, assessment and validation of a novel prediction nomogram model for risk identification of tracheobronchial tuberculosis in patients with pulmonary tuberculosis
  1. Qian Qiu1,
  2. Siju Li2,
  3. Yong Chen3,
  4. Xiaofeng Yan4,
  5. Song Yang4,
  6. Shi Qiu5,
  7. Anzhou Peng4 and
  8. Yaokai Chen6
  1. 1Post-Doctoral Research Center, Chongqing Public Health Medical Center, Chongqing, China
  2. 2Emergency Department, Chongqing Public Health Medical Center, Chongqing, China
  3. 3Department of Endocrinology, First Affiliated Hospital of Anhui Medical University, Hefei, China
  4. 4Division of Tuberculosis, Chongqing Public Health Medical Center, Chongqing, China
  5. 5Department of Nutrition, The Seventh Medical Center of Chinese PLA General Hospital, Beijing, China
  6. 6Division of Infectious Diseases, Chongqing Public Health Medical Center, Chongqing, China
  1. Correspondence to Yaokai Chen; yaokaichen{at}hotmail.com; Dr Anzhou Peng; penganzhou2010{at}163.com

Abstract

Objective Tracheobronchial tuberculosis (TBTB), a specific subtype of pulmonary tuberculosis (PTB), can lead to bronchial stenosis or bronchial occlusion if not identified early. However, there is currently no available means for predicting the risk of associated TBTB in PTB patients. The objective of this study was to establish a risk prediction nomogram model for estimating the associated TBTB risk in every PTB patient.

Methods A retrospective cohort study was conducted with 2153 PTB patients. Optimised characteristics were selected using least absolute shrinkage and selection operator regression. Multivariate logistic regression was applied to build a predictive nomogram model. Discrimination, calibration and clinical usefulness of the prediction model were assessed using C-statistics, receiver operator characteristic curves, calibration plots and decision analysis. The developed model was validated both internally and externally.

Results Among all PTB patients who underwent bronchoscopies (n=2153), 40.36% (n=869) were diagnosed with TBTB. A nomogram model incorporating 11 predictors was developed and displayed good discrimination with a C-statistics of 0.782, a sensitivity of 0.661 and a specificity of 0.762 and good calibration with a calibration-in-the-large of 0.052 and a calibration slope of 0.957. Model’s discrimination was favourable in both internal (C-statistics, 0.782) and external (C-statistics, 0.806) validation. External validation showed satisfactory accuracy (sensitivity, 0.690; specificity, 0.804) in independent cohort. Decision curve analysis showed that the model was clinically useful when intervention was decided on at the exacerbation possibility threshold of 2.3%–99.2%. A clinical impact curve demonstrated that our model predicted high-risk estimates and true positives.

Conclusion We developed a novel and convenient risk prediction nomogram model that enhances the risk assessment of associated TBTB in PTB patients. This nomogram can help identify high-risk PTB patients who may benefit from early bronchoscopy and aggressive treatment to prevent disease progression.

  • Tuberculosis
  • Bacterial Infection
  • Clinical Epidemiology

Data availability statement

Data are available on reasonable request. The majority of the data generated or analysed during this study are included in the published article. Data unavailable in the study may be obtained from the corresponding authors on reasonable request.

http://creativecommons.org/licenses/by-nc/4.0/

This is an open access article distributed in accordance with the Creative Commons Attribution Non Commercial (CC BY-NC 4.0) license, which permits others to distribute, remix, adapt, build upon this work non-commercially, and license their derivative works on different terms, provided the original work is properly cited, appropriate credit is given, any changes made indicated, and the use is non-commercial. See: http://creativecommons.org/licenses/by-nc/4.0/.

Statistics from Altmetric.com

Request Permissions

If you wish to reuse any or all of this article please use the link below which will take you to the Copyright Clearance Center’s RightsLink service. You will be able to get a quick price and instant permission to reuse the content in many different ways.

WHAT IS ALREADY KNOWN ON THIS TOPIC

  • Tracheobronchial tuberculosis (TBTB) is often associated with pulmonary TB (PTB) disease and its late stages may result in bronchial stenosis or even bronchial occlusion. Early diagnosis and treatment are critical in preventing permanent lung damage. Yet, there are no means available for predicting associated TBTB risk in patients with PTB based on electronic clinical healthcare records, rather only on associated health conditions and epidemiological information.

WHAT THIS STUDY ADDS

  • We developed and validated a novel and simple nomogram based on retrospective, descriptive and non-interventional cohort investigation, incorporating 11 readily obtainable clinical parameters to aid in calculating the risk of associated TBTB in PTB patients. The nomogram was found to have favourable accuracy, reasonable discriminative ability and easy accessibility.

HOW THIS STUDY MIGHT AFFECT RESEARCH, PRACTICE OR POLICY

  • The prevalence of TB-induced tracheobronchial stenosis varies as a function of the prevalence of TB. However, due to a high degree of bronchostenosis beyond the initial period of TBTB, enhancing risk assessment of associated TBTB in PTB patients using an accessible quantitative tool, especially in low/middle-income countries, is necessary.

Background

Despite the implementation of improved tuberculosis (TB) control programmes and strategies, approximately 10.6 million people worldwide contracted TB in 2021. Although this number has been declining slowly in recent years, this positive trend was reversed during the COVID-19 pandemic. Until the COVID-19 pandemic, TB was the leading cause of death from a single infectious agent, ranking above HIV/AIDS.1 TB is caused by the aerobic bacillus Mycobacterium tuberculosis (MTB) and is spread when patients expel bacteria into the air by, for example, coughing. The disease typically affects the lungs, causing pulmonary TB (PTB), but can also affect other sites, causing extrapulmonary TB (EPTB). Of the 6.4 million new cases recorded in 2021 and 5.3 million cases (83%) had PTB.2 TB remains a major threat to public health and can lead to high rates of disability and mortality, which confers a heavy burden on both families and society at large.

Tracheobronchial TB (TBTB), which is characterised by a tuberculous infection of the trachea and/or bronchi, is a specific subtype of PTB and is closely associated with TB disease of the lungs.3 TBTB incidence ranges between 5.88% and 50% in PTB patients across different centres.4–6 Low patient adherence with chemotherapeutic regimens as well as increased bacterial drug resistance in patients with TBTB may result in bronchial stenosis or even bronchial occlusion, which may be caused by repetitively unhealed scar, which may result in partial or total pulmonary atelectasis, eventually destroying the corresponding lung.7 Incidence of stenosis may reach 68% within 6 months and is greater than 90% long term.8 This process may irreversibly impair lung physiology, resulting in respiratory failure and death. Early diagnosis and treatment of TBTB is, therefore, of uttermost importance to avoid permanent lung damage.

TBTB appears to have a preponderance in female in their second and third decades of life.3 8 Cough is the most common symptom, followed by sputum production, weight loss, haemoptysis, chest pain and dyspnoea.3 9 Clinical findings are heterogeneous and can include a focal wheeze and decreased air entry on auscultation.10 Because the signs and symptoms are non-specific, the diagnosis of TBTB should be made using a combination of a high index of clinical suspicion, clinical findings, radiology and sputum/tissue histopathological analysis. Thus, considering the demographic and clinical characteristics that tend to favour the occurrence of TBTB, it is vital to construct a comprehensive analytic model to accurately estimate the associated TBTB risk of every PTB patient. A predictive model is likely to help physicians perform targeted examinations in identified high-risk patients, and make expeditious and effective therapeutic decisions for these patients.

In recent years, the nomogram has been considered to be a viable and effective predictive tool for disease diagnostics and assessment of prognostic outcomes.11 12 Several medical nomograms have been developed for the clinical diagnosis of TB and osteoarticular TB.13 14 However, none has been developed for predicting associated TBTB risk in patients with PTB. In this study, we proposed to explore the clinical attributes of PTB patients with comorbid TBTB and assess possible predictors of TBTB to identify potential risk factors. In this study, we have established and validated a risk prediction nomogram for TBTB, and assessed its calibration and discrimination to determine the model’s validity. Finally, the model’s prospective clinical value as a potential tool for reducing tracheobronchial complications of PTB and improving long-term outcomes in affected patients was assessed.

Materials and methods

Patients and study design

This was a non-interventional, retrospective cohort study. Confirmed PTB patients admitted to the Chongqing Public Health Medical Center from January 2018 to December 2019 were enrolled as our primary cohort. The diagnosis of PTB is definitively established by isolation of MTB from a bodily secretion or fluid (eg, culture of sputum, bronchoalveolar lavage or pleural fluid) or tissue (eg, pleural biopsy or lung biopsy).15 For external validation, PTB patients who were admitted to the same hospital between January 2020 and January 2021 were screened, using identical criteria. All patients underwent CT imaging and received bronchoscopic examination. A patient history of chronic diseases, TB medical history, hospitalisation history for TB, anti-TB treatment and TB-related complications were recorded and analysed.

Data collection

We collected data on epidemiological data including demographics (age, gender), diagnosis information, clinical presentation (symptoms and signs), disease progression (the duration of the illness, treatment process and treatment outcomes), laboratory tests (sputum culture, TB DNA testing, drug susceptibility testing, etc), radiological imaging (CT scans of the chest), treatment history, underlying chronic diseases, medical history and bronchoscopic examination during the hospital admission, from electronic medical records for inpatients by using data collection forms. Length of hospital stay was also recorded. A trained team of three physicians and researchers independently entered and cross-checked data in a computerised database. If any core data were missing, clarification was sought with the coordinators, who subsequently contacted clinicians responsible for the treatment of the patients. At the same time, medical histories and hospitalisation information were obtained by accessing paper-based medical records to enhance the completeness of information collection as much as possible.

Patient and public involvement

No patients were involved in the design or conduct of this study.

Patient identities and other private information were filtered and anonymised, and therefore, the requirement for informed consent was waived by the relevant authorities for this study. Access to study data was provided to the authors by the Medical Affairs Administration Section of Chongqing Public Health Medical Center.

Diagnostic criteria for PTB and TBTB

PTB and TBTB were separately defined according to the listed criteria and ‘Diagnosis and Treatment Guideline for Tracheobronchial Tuberculosis’.16 17 Briefly, TBTB was diagnosed based on visible lesions under bronchoscopy and either (1) positive acid-fast bacilli (AFB) in a sputum smear, brushing smear or bronchial alveolar lavage fluid, (2) positive MTB culture or (3) histopathological diagnosis of TB. Drug-resistant PTB patients, patients with a positive HIV test, patients with malignancy and predicted survival of less than 6 months, and patients with contraindications to bronchoscopy (such as severe hypoxaemia, respiratory failure, recent cardiovascular event or uncontrolled arrhythmia) were excluded.16 The exclusion criteria for drug-resistant TB in our study were based on the following criteria: (1) Patients with confirmed drug-resistant TB, including multidrug resistant TB and extensively drug-resistant TB, as determined by microbiological testing or clinical diagnosis, were excluded. (2) Patients with a history of previous treatment for drug-resistant TB or a documented history of resistance to first-line anti-TB drugs were excluded. (3) Patients with a documented history of non-adherence or failure of first-line anti-TB treatment were excluded.

Bronchoscopic examination

Bronchoscopy is a common diagnostic method used for the diagnosis and therapy of TB, especially as a relatively simple and effective method to directly observe the presence of airway luminal wall lesions. All clinical practices used in our study followed relevant guidelines for bronchoscopic examination and treatment for PTB.18–20 As an invasive procedure, bronchoscopy requires the skill of a well-trained pulmonologist and formal written consent from every patient before being performed. In the clinic, every patient who was examined via bronchoscopy was required to sign a disclaimer detailing the aims, methods, merits and risks of the procedure in detail. PTB patients underwent bronchoscopic examination based on the attending physician’s medical advice and the patient’s informed consent in the normal course of medical treatment. This study did not involve private patient information or any adjustment in clinical treatment. Also, the study guidelines did not permit the collection or assessment of any samples other than approved study data.

Based on the Chinese guidelines for classification of TBTB,17 bronchoscopic subtypes of TBTB are described as inflammatory infiltration, ulceration necrosis, granulation hyperplasia, scar stricture, tracheobronchomalacia and lymphatic fistula. Bronchial brushings or lavage were performed to identify AFB and transbronchial biopsies were conducted to confirm the pathological diagnosis of TBTB. The type and location of the lesion and bronchoscopic classification were recorded.

Statistical analysis

R (V.3.6.3) and GraphPad Prism (V.8.02) were both used for statistical analysis. R packages used in this study were ‘epiDisplay’, ‘glmnet’, ‘Hmisc’, ‘rmda’, ‘rms’, ‘vcd’, ‘ggDCA’, ‘pROC’ and ‘ROCR’. Statistical significance levels were two sided. A p<0.05 was considered statistically significant. In the demographic, clinical and laboratory data, continuous measurements that were normally distributed were expressed as the mean (±SD), and continuous measurements that did not have a normal distribution were expressed as the median (IQR), and were compared between two groups using an independent samples t-test or the Mann-Whitney U test. Categorical variables were presented as the amount (%), and compared with the χ2 test or Fisher’s exact test. The degree of association between two categorical variables was described using the phi coefficient, Cramer’s V coefficient and Pearson’s contingency coefficient.

Feature selection

Of the 44 clinical characteristics from 1894 patients in the entire cohort, 22 variables with limited association to TBTB incidence were excluded, such as symptoms: dizziness, headache, nasal congestion, hoarseness, sore throat, difficulty breathing, anorexia, nausea, vomiting, abdominal pain, diarrhoea, abdominal distension, body aches, weight loss, fatigue, etc, as well as various bacterial and molecular test results from sputum and BALF, bronchoscopy examination results (including affected sites, subtypes under microscopy, degree of tracheal or bronchial stenosis, extent of lesions and lesion types), and multiple treatment methods and outcomes under bronchoscopy. The remaining 22 variables include complete data for all patients. Second, variables of underlying diseases with an incidence rate of approximately less than 5% were excluded. Finally, 19 variables were included in the model analysis. The least absolute shrinkage and selection operator (LASSO) method was used to determine the optimal risk factor predictive features of TBTB patients.21 Features with non-zero coefficients using the LASSO regression model were selected. Additionally, part of the feature definitions was described in online supplemental appendix 1.

Prediction nomogram model development

A multivariable logistic regression analysis was performed to develop a predictive model, by integrating features selected from the LASSO regression model.22 The risk prediction model was developed with all potential predictors applied based on the multivariable logistic analysis. Using this model, the predicted patient exacerbation risk was calculated.23 The risk score calculation formula was as follows: risk score=feature1×coef1+feature2×coef2+ …+featuren×coefn (coef: regression coefficients of features obtained from multivariable logistic analysis, n: total number of diagnostic-related features). Based on this formula, the risk score for each patient was calculated. The receiver operator characteristic (ROC) curve was plotted and the Youden index (sensitivity+specificity−1) was calculated to determine the optimal cut-off value for the risk score. Using the cut-off value as the threshold, TBTB patients were classified into high-risk and low-risk groups.

Apparent performance of the nomogram model

To assess the model calibration, calibration curves were plotted, and the Hosmer-Lemeshow test was performed. Calibration-in-the-large was assessed by the regression curve intercept, while the calibration slope showing the degree of miscalibration was determined by the regression slope of the linear predictor.24

ROC curves were computed to quantify the performance of the model concerning its discrimination, and the area under the curve (AUC, also known as C-statistics) was calculated. The performance of the model at different cut-off points was evaluated using various metrics, including sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV) and accuracy.

Validation of the nomogram model

Internal validation

Internal validation was achieved via the bootstrapping statistical technique (10 000 bootstrap resamples), to determine a relatively corrected C-statistics of the model-building process, including all previous potential predictors.

External validation

The externally validated nomogram model was assessed with an independent validation cohort. The logistic regression formula calculated from the primary cohort was applied to the external cohort, and total points for each patient were calculated. Logistic regression in the external cohort was then assessed using the total points as a factor. The ROC curve and C-statistics were then computed based on the regression analysis.

Clinical use

A decision curve analysis (DCA) and clinical impact curves were used to evaluate the clinical effectiveness of the model.25 The x-axis of the DCA plot represents the threshold probability. In the risk assessment tool, the probability of patients being diagnosed with the disease is denoted as Pi. When Pi reaches a certain threshold (denoted as Pt), it is classified as positive, and treatment measures are taken. At this point, there will be benefits for patients who receive treatment but also harms for non-patients who receive treatment and costs for patients who are not treated. The y-axis represents the net benefit (NB), which is the difference between benefits and costs after treatment. The plot_roc_components function using ‘rmda’ R package plotted the probability distribution of false positives and true positives for the ROC curve across a range of risk thresholds.

Results

Diagnosis and incidence of TBTB

Of 7328 consecutive patients with TB hospitalised at Chongqing Public Health Medical Center during study period of the primary cohort, 2152 of 6190 PTB patients underwent bronchoscopy, and 1894 patients met inclusion criteria and were enrolled in this study. Among these 1894 patients, 753 were diagnosed with TBTB. The prevalence of PTB-associated TBTB in this population was 39.76% (753/1894), while it was calculated to be 44.79% (116/259) in the validation cohort. The overall prevalence of TBTB in PTB is 40.36% (869/2153). There was no statistically significant difference in TBTB prevalence between the two cohorts (p=0.137). Of the 753 patients diagnosed with TBTB in the primary cohort, 295 (39.2%) were sputum smear positive, 182 (24.2%) were MTB culture-positive, 403 (53.5%) were bronchial brush smear positive and 319 (42.4%) were bronchial brush culture positive.

Clinical characteristics of TBTB

In the comparison of baseline data between the primary and validation cohorts, we observed that there were minimal significant differences in most variables in online supplemental appendix 2. These included the prevalence of comorbid TBTB or EPTB, gender, age, smoking status, underlying diabetes and certain clinical symptoms and signs (such as cough, sputum, haemoptysis, fever and the presence of lung cavity). This lack of significant differences justified the utilisation of these cohorts as appropriate primary and validation sets for the model. However, statistically significant differences did emerge in other variables. These variables encompassed the presence of hypertension, other symptoms and signs (chest pain and chest discomfort, night sweats, tachypnoea and atelectasis), the duration of symptoms, results from pulmonary function tests, anti-TB treatment history and the number of previous hospitalisations.

PTB patient characteristics in the primary and validation cohorts were shown in table 1. The primary cohort of TBTB patients (median age 33 years, range 16–77 years) consisted of 271 (35.99%, median age 39 years) males and 482 (64.01%, median age 31 years) females (table 1). Compared with PTB patients without TBTB, TBTB patients were more likely to be female, were more likely not to have EPTB, were more likely to be non-smokers, were more likely to have an anti-TB treatment history, and were more likely to have multiple previous hospitalisations (all p<0.01; table 1).

Table 1

Demographic and clinical characteristics of patients in the primary and validation cohorts

The common symptoms of TBTB included cough (88.6%), presence of sputum (47.4%), tachypnoea (19.7%), fever (12.6%), haemoptysis (11.4%), chest discomfort (8.4%) and chest pain (5.8%). Furthermore, the preceding first three symptoms accounted for the majority of symptoms in the TBTB patients, compared with patients without TBTB (all p<0.05), whereas fever (12.6% vs 16%), haemoptysis (11.4% vs 15.5%) and chest pain (5.8% vs 9.8%) accounted for a much smaller proportion of symptoms.

According to chest CT results, 23.6% of TBTB patients had pulmonary cavitation, and only 6.5% had atelectasis; however, this accounted for a greater percentage of CT findings than in patients without TBTB. There were no mathematical differences in rates of underlying diseases (diabetes and hypertension) and results of pulmonary function testing between the two study populations.

Selection of features

Of the 44 clinical characteristics from 1894 patients in the entire cohort, 22 characteristics were chosen based on the criteria for variable inclusion. Three variables, that is, cardiovascular disease, hypertension and chronic pulmonary disease, were excluded because of the low proportion present (0.63%, 1.8% and 5.07%, respectively). To determine the critical but simple predictors used to assess the risk of TBTB accompanied by PTB, PTB, all 1894 patients were included for further screening using the LASSO method in the primary cohort. As a result, 17 potential predictors (figure 1A,B) that had non-zero coefficients in the LASSO regression model were selected out of the 19 features tested. The selected features included EPTB, gender, age, smoking, diabetes, cough, sputum, tachypnoea, haemoptysis, fever, chest pain, chest discomfort, pulmonary function test, lung cavity, atelectasis, anti-TB treatment history and the number of previous hospitalisations.

Figure 1

Selection of demographic, clinical and laboratory result features using the LASSO model. (A) Fivefold cross-validation with minimum criteria was used for optimal parameter (lambda) selection of the LASSO model. A partial likelihood binomial deviance curve is plotted against log (lambda). Vertical lines are drawn at the best values with 1-SE criteria. (B) LASSO coefficient profiles of all 40 characteristics were plotted against the log (lambda) sequence. Seven characteristics are shown with non-zero coefficients at the value chosen by fivefold cross-validation, marked by the vertical line. LASSO, least absolute shrinkage and selection operator.

Multivariate analysis for TBTB

During multivariate logistic regression analysis, most selected features were identified as the related risk factors of patients with comorbid TBTB, except for age, haemoptysis, fever, chest discomfort, lung cavity and anti-TB treatment history (online supplemental appendix 3). No multicollinearity issues between different variables were encountered during our study computations. In this regard, our large sample size potentially mitigated the risk of multicollinearity problems. We, thus, concluded that 11 potential risk factors of TBTB harboured stable and meaningful estimation of β-coefficients in our study. There were no interaction terms among these variables. Compared with male patients, female PTB patients were associated with a higher risk of concomitant TBTB (OR 2.148, 95% CI 1.68 to 2.754). The greater the number of previous hospitalisations a PTB patient has, the greater the risk of secondarily acquired associated TBTB, and in particular, the risk of concomitant TBTB in patients with 5 or more previous hospitalisations for TB was significantly higher than those who had not been hospitalised for TB (OR 53.162, 95% CI 8.408 to 1120.401) (figure 2, online supplemental appendix 3).

Figure 2

Forest plot showing the results of multivariate analysis for associated TBTB in PTB patients. EPTB, extrapulmonary tuberculosis; PTB, pulmonary tuberculosis; TBTB, tracheobronchial tuberculosis.

Based on the 11 variables and their regression coefficients, we calculated the risk scores for each PTB sample. By plotting the ROC curve, we determined the optimal cut-off value for risk scores to be −0.288. Using this value, we divided the patients into a high-risk group (N=770) and a low-risk group (N=1124). Among them, 64.68% of patients in the high-risk group combined with TBTB, while 22.69% of patients in the low-risk group combined with TBTB. Notably, the proportion of PTB patients with comorbid TBTB was higher in the high-risk group than in the low-risk group (χ2=336.37, p<0.0001). The risk grouping of PTB patients showed a significant positive association with comorbid TBTB, with a moderate correlation (phi coefficient: 0.421; contingency coefficient: 0.388; Cramer’s V: 0.421). These results indicate that PTB patients in the high-risk group scores are more likely to combine with TBTB.

Development of the TBTB risk prediction model

A risk prediction nomogram model incorporating the aforementioned predictive variables was developed, with a ranked risk of between 0.1 and 0.9 (figure 3). Among all the included variables, not having EPTB had a risk score of 18, female gender=19, non-smoker=15, no diabetes=11, cough=27, sputum production=16, tachypnoea=9, no chest pain=10, abnormal pulmonary function test=6, atelectasis=31 and the number of previous hospitalisations for TB (1–2 times=22; 3–4 times=55; more than 5 times=100) (online supplemental appendix 4). A total score was obtained by calculating the sum of all the individual scores based on the patient’s clinical risk variables. The calculated risk of TBTB is shown by the corresponding value on the ‘total points’ axis (figure 3).

Figure 3

Risk prediction nomogram for associated TBTB in PTB patients. Points derived from the listed characteristics are added together to obtain ‘total points’, and the predicted risk of exacerbation is the corresponding value of ‘risk of exacerbation’. EPTB, extrapulmonary tuberculosis; PTB, pulmonary tuberculosis; TBTB, tracheobronchial tuberculosis.

According to this nomogram, the total scores calculated in this model were also categorised into three levels of risk based on their probability of associated TBTB. Those with total scores ranging from 0 to 59 had a less than 10% probability of exacerbation and were considered low risk, while those with scores between 79 and 104 had a 20%–40% probability of exacerbation, and were considered intermediate risk. Those with scores higher than 114 had a more than 50% probability of exacerbation and were considered high risk.

Apparent performance of the TBTB risk nomogram

The TBTB risk nomogram model was shown to have a good correlation between estimated and actual progression in the primary cohort. The calibration plots demonstrated a close-to-ideal calibration slope of 0.957 (95% CI 0.261 to 1.704), and an estimated calibration-in-the-large of 0.052 (95% CI −0.359 to 0.47). Thus, the model was well-calibrated for the primary cohort (figure 4A). The Hosmer-Lemeshow test was non-significant (p=0.956), demonstrating a perfect fit. To evaluate the accuracy of our model, an ROC analysis of the patients was performed. The obtained AUC, using a cut-off value of −0.288, was 0.782 (95% CI 0.761 to 0.803), with a sensitivity of 0.661 and a specificity of 0.762, The NPV was calculated to be 0.773, and the PPV was 0.647, with an overall accuracy of 0.722, demonstrating reasonable accuracy (figure 4B). These results demonstrated that the exacerbation nomogram had high prediction efficacy and reasonable discriminative ability in our primary cohort.

Figure 4

Apparent performance of risk prediction nomogram for associated TBTB in PTB patients. (A) Calibration curve of risk prediction nomogram. Predicted TBTB risk is shown on the x-axis, and diagnosed TBTB is shown on the y-axis. Perfect prediction by an ideal model is denoted by the diagonal dotted line, and the performance of the nomogram is denoted by the solid line, with better prediction shown by a closer fit. (B) The receiver operating characteristic (ROC) curve for the risk prediction nomogram predicting the 11 clinical features. (C) ROC curve of the validation cohort. AUC, area under the curve; PTB, pulmonary tuberculosis; TBTB, tracheobronchial tuberculosis.

Validation of the risk prediction model

Internal validation

The model was subjected to bootstrapping statistical validation to further test its performance, yielding a relatively corrected C-statistics of 0.782 (95% CI 0.760 to 0.802), which indicates a good discriminative and predictive capability.

External validation

For all patients in the validation cohort, data for all 11 risk variables to be used in our nomogram model were available. Our model was also relatively well calibrated, and the Hosmer-Lemeshow test was non-significant (p=0.732) in the validation cohort (figure 4C). The ROC curve for the model, with an AUC of 0.806 (sensitivity, 0.690; specificity, 0.804) and an accuracy of 0.753, demonstrated good accuracy for the validation cohort (figure 4D).

Clinical use

The DCA results demonstrated that if the patient and doctor threshold probability was >2.3% and <99.2%, respectively, using this model for TBTB risk prediction would provide more benefit than intervening for all patients or intervening for none. Within this wide range, the NB was comparable with several overlaps (figure 5A). For example, if we choose to predict the concomitant TBTB with a 40% threshold probability and treatment, then for every 100 patients using our model, 17 patients would benefit without harming anyone else. Furthermore, the clinical impact curve that was used to predict the risk stratification of 1000 associated TBTB patients visually displayed those who were presumed to be at high risk, and true positives within the high-risk threshold range of 3%–100% (figure 5B). For example, 456 out of 1000 patients would be deemed high risk if a 40% risk threshold was used, with about 280 of these being true severe or critical cases. Additionally, by plotting the components of the ROC curve, including the true positive rates and false positive rates, at different high-risk thresholds, we illustrated the relationships among the probability distribution of false and true positive rates, the risk threshold, and the cost–benefit ratio in both the primary and validation cohorts. These relationships were depicted in figure 5C,D. More details about the true positive rates and false positive rates by high-risk thresholds were shown in online supplemental appendix 5. By plotting the probability distribution of false positives and true positives in the ROC curve, clinicians can adjust the diagnostic results based on specific risk assessment thresholds to achieve more accurate patient classification and prediction. Selecting an appropriate threshold allows healthcare professionals to balance the trade-offs between false positives and true positives according to specific clinical needs and treatment objectives, enabling them to make optimal diagnostic decisions.

Figure 5

Decision curve analysis and clinical impact curve of the nomogram for associated TBTB in PTB patients. (A) Decision curve analysis. The thick blue line represents the prediction nomogram. The thin solid lines represent the assumption that all or no PTB patients progress to associated TBTB condition. The clinic net benefit was calculated for the risk prediction nomogram with risk threshold, and the red dashed lines represent a net benefit of 0.17 (x-axis) with a threshold probability of 0.4 (y-axis). (B) The clinical impact curve. The red solid line (number of high-risk patients) denotes how many of every 1000 patients would be deemed high risk for each risk threshold, and true positives are denoted by the blue dashed line. The correspondence between the high-risk threshold and cost–benefit ratio is represented by the two horizontal axes. (C) The probability distribution plot of false and true positive rates of ROC curve with the risk threshold and the cost–benefit ratio in the primary cohort. (D) The probability distribution plot of false and true positive rates of ROC curve with the risk threshold and the cost–benefit ratio in the validation cohort. PTB, pulmonary tuberculosis; ROC, receiver operator characteristic; TBTB, tracheobronchial tuberculosis.

Discussion

In our study, we performed a comprehensive demographic and clinical characteristics-based disease profiling analysis in PTB patients with or without associated TBTB and developed a nomogram model for predicting concomitant TBTB. This nomogram contains 11 clinical attributes, including female gender, non-coexisting EPTB, non-smoker, non-coexisting diabetes, cough, sputum production, tachypnoea, no chest pain, abnormal pulmonary function test, atelectasis and multiple hospitalisations for TB, which performed well with reasonable discriminatory ability, and clinical usefulness in both the primary and validation cohorts.

Among our enrolled 2153 PTB patients, the number of the validation cohort collected from January 2020 to January 2021 decreased sharply (about 70%) from the primary cohort enrolled from January 2018 to December 2019. Given the impact of the COVID-19 outbreak on the continuity of hospital-based TB services in the survey of China,26 the dramatic decline in enrolled TB hospitalisations in the validation cohort from January 2020 to January 2021 during the pandemic is almost certainly the result of changes in care seeking and access attributable to COVID-19, compared with the same period of 2019 in primary cohort. Most TB services, including diagnosis inpatient and outpatient care, decreased substantially during the COVID-19 emergency response phase (January to March 2020). There were three main drivers for these changes: (1) TB hospitals were temporarily converted to designated COVID-19 hospitals to handle the expected pandemic surge. For example, our hospital had been designated as a COVID-19 hospital in Chongqing and shifted at least some fraction of designated (range, 40%–100%) TB beds for COVID-19 care in 2020, and also dispatched professional TB staff for COVID-19 service (30%–100%). (2) TB hospitals reduced the number of consultations and hospitalisations to reduce the risk of nosocomial transmission of COVID-19. Our hospital set stricter indications for TB hospitalisation than had previously been used. Only those patients with severe TB, such as patients with haemoptysis, with massive pleural effusion, or those with drug-resistant TB, would be admitted to the hospital. (3) Consistent with WHO guidelines,27 hospitals reduced the usage of bronchoscopy for TB patients. The rate of reduction reached a median of 67% (24%–100%) during the emergency response phase and by 27.5% (6%–90%) in the mitigation phase (April 2020) in 13 TB hospitals from thirteen provinces in different parts of mainland China.26 Further, concerns about SARS-CoV-2 transmission in health facilities and on public transportation may have prevented individuals from seeking TB diagnosis or care.26

In our comparative analysis of baseline data between the primary and validation cohorts, we observed that there were no statistically significant differences in the incidence rates of concomitant TBTB or EPTB, gender, age, smoking status, the presence of diabetes, cough, sputum production, haemoptysis, fever and the presence of lung cavity. This absence of significant differences supports the use of these cohorts as suitable primary and validation cohorts for the model. Additionally, the decision to employ these datasets for model development is further reinforced by the lack of statistical disparities in these key variables between the two datasets. However, our analysis did reveal significant differences in several variables when comparing baseline data between the primary and validation cohorts. Specifically, the validation cohort exhibited a higher prevalence of hypertension, the presence of chest pain, chest discomfort, night sweat or tachypnoea, the occurrence of atelectasis, a shorter duration of symptoms (≤4 weeks), normal pulmonary function test results, no prior anti-TB treatment history, and a greater number of previous hospitalisations (≥1) compared with the primary cohort. These baseline differences are likely influenced by the unique circumstances of the COVID-19 pandemic, the hospital’s stricter admission criteria for TB, and changes in testing protocols (eg, reduced pulmonary function tests). Nevertheless, in subsequent analyses when using the validation set, our model continued to demonstrate similarly strong performance as in the primary cohort. Thus, while these differences exist, the nomogram model remains valuable for predicting TBTB risk. However, healthcare providers should be aware of these variations when applying the model, considering the evolving clinical landscape and changing healthcare practices.

Bacteriological examination of sputum smear, that is, AFB staining and microscopy is a common TBTB test with low diagnostic yield,28 which is consistent with findings in our study. In our primary cohort, 39.2% of patients were sputum smear-positive, and 24.2% of patients were sputum MTB culture-positive. The AFB smear and culture yield from BAL is known to be higher than that of sputum examination. Sputum analysis combined with specimens obtained via bronchoscopy in TBTB has a variable diagnostic yield of from 17% to 79%.8 29 In our study, 53.5% were bronchial brush smear positive, and 42.4% were bronchial brush culture positive. However, this relatively unimpressive diagnostic performance is far from sufficient for accurate TBTB diagnosis.

Several prediction models for predicting suspected PTB infection based on nosocomial populations have been published recently and may improve the diagnosis of PTB.30 31 In addition, Wang et al32 have created a CT-based predictive nomogram model to predict the risk of primary progressive PTB in children. A nomogram using body mass index, fasting blood glucose and triglyceride levels was used to identify high-risk patients that could form part of the target population for screening for diabetes mellitus.33 Several TBTB risk factors have been reported in the past, such as female gender, relatively young age (in the second or third decade of life), clinical symptoms and atelectasis, among others.10 16 34 However, no specific TBTB risk prediction model exists. In our study, a nomogram for predicting TBTB was developed based on 11 readily accessible features of PTB patients. The variables included in our nomogram were filtered by LASSO regression analysis, considered superior for selecting potential predictors than univariate analysis.35 Furthermore, we evaluated the clinical significance of these predictors. There is a consensus that TBTB appears to have a preponderance in females. It is hypothesised that females tend to expectorate less frequently than men due to social norms, thus leading to endobronchial stasis of secretions and potential susceptibility to subsequent MTB infection.3 Also, female bronchi are generally structurally narrower than those of men, and this has been considered to make females theoretically more susceptible to TBTB.16 28 It is known that frequent smokers are less likely to develop TBTB, as such, females are more likely to develop TBTB due to the lower prevalence of smoking.36 Further longitudinal observational studies are required to extricate and define the specific risk differences between females and males in this respect.

The most common symptoms of TBTB are cough, sputum production and dyspnoea, which are presumed to be related to the prevailing endobronchial inflammation in the trachea and bronchi of patients with TBTB.37 Chest pain is often a symptom when lesions develop or extend to the lungs, pleura, blood vessels and nerves of the pulmonary system, and only present in 15%–25% of TBTB patients,28 thus not a good indicator of TBTB caused by bronchial or tracheal MTB. Our results confirmed that the absence of chest pain in a specific individual was likely to be associated with a relatively increased risk of TBTB. Pulmonary function tests tend to detect TBTB only after the disease progresses to the stage of tracheobronchial stenosis, with significant central airway narrowing. If a patient develops tracheobronchial stenosis, then, depending on the specific airway involved, the patient is very likely to progress to post-obstructive pneumonia or atelectasis in that specific region of the lung.3 Our results indicated that abnormal pulmonary function test results and atelectasis were also risk factors for predicting associated TBTB. Overall, the 11 risk variables used in our nomogram are readily available in a clinical setting. The nomogram showed reasonable discriminatory ability and good calibration, and DCA evaluation demonstrated its clinical usefulness. Since bronchoscopy is not yet fully or freely available in some TB-endemic areas, and many TB patients are sputum-free or have sputum-negative TB, our relatively cost-free nomogram is likely to be useful in screening for TBTB in these MTB-infected patients.

Using statistically derived risk factors, this study has established a prediction model for TBTB patients with relatively high precision. Both internal and external validation calculations showed favourable calibration power and reasonable discrimination, and internally and externally validated consistent C-statistics demonstrated that this model can be applied to a larger sample size with good expected accuracy. PTB patients with a calculated risk (via our nomogram) of TBTB of over 50% are very likely to have associated TBTB, and may, therefore, benefit from early bronchoscopy to detect endobronchial MTB involvement, and timely local therapy, which may include intratracheal instillation, aerosol therapy, surgery or bronchoscopic interventional procedures.38 39

This study has several limitations. First, our model demonstrates moderate discrimination, with high specificity and low sensitivity for the early diagnosis of TBTB in PTB patients. Additional potential risk factors for concomitant TBTB need to be elucidated and added to our model, which could potentially increase the overall accuracy of TBTB screening. Second, as this was a retrospective population study, selection bias may be inherent in our study and findings. Third, the data are derived from an exclusively Southwest China population. There are known regional variations in the prevalence of TBTB; therefore, whether our nomogram applies to other regions or ethnic groups requires further verification in multicentre studies. Further large-scale, prospective non-randomised studies should be conducted to identify accurate risk factors for TBTB in PTB patients. Additionally, another important limitation of our study is the potential selection bias associated with bronchoscopy, which may limit the generalisability of our findings to all PTB patients. The application of our nomogram to patients who did not undergo bronchoscopy requires further validation to assess its accuracy in this subpopulation.

Conclusion

This study developed and validated a novel and simple nomogram, incorporating 11 readily obtainable clinical features to aid in calculating the risk of associated TBTB in PTB patients with favourable accuracy, reasonable discriminative ability and easy accessibility. With the estimation of an individual’s TBTB risk, necessary bronchoscopy can be expeditiously performed, appropriate diagnostic and therapeutic measures can be rapidly taken, risk of progression to tracheobronchial stenosis can be effectively reduced, and TBTB patient morbidity and mortality rates can be significantly improved.

Data availability statement

Data are available on reasonable request. The majority of the data generated or analysed during this study are included in the published article. Data unavailable in the study may be obtained from the corresponding authors on reasonable request.

Ethics statements

Patient consent for publication

Ethics approval

All study procedures were approved by the Ethics Committee of Chongqing Public Health Medical Center (project decision number: 2020-064-02-KY).

Acknowledgments

We would like to thank Jie Qiu of the Department of Engineering Physics, Tsinghua University, for providing programming assistance. We would also like to thank Dr. Vijay Harypursat of the Division of Infectious Diseases, Chongqing Public Health Medical Center, for English language revision, copy-editing and language enhancement to the English text of this manuscript.

References

Supplementary materials

Footnotes

  • QQ and SL contributed equally.

  • Contributors QQ and AP: conceptualisation. QQ, AP, SL and YC: data collection. QQ: software. QQ and SQ: methodology. SQ: validation. QQ: statistical analysis. AP and SL: investigation. XF, YC, SY and MH: resources. AP: data curation. QQ and AP: writing-original draft preparation. QQ and YC: writing-review and editing. QQ: visualisation. XY and JX: supervision. YC and JX: project administration. QQ: funding acquisition, guarantor. All authors read and approved the final manuscript.

  • Funding This study was funded by grants from the Chongqing Natural Science Foundation, China (cstc2019jcyj-msxmX0028, cstc2021jcyj-msxmX0449), from the Joint Scientific Research Foundation by Chongqing Municipal Health Commission and Chongqing Municipal Bureau of Science & Technology, China (2018MSXM013, 2019QNXM038, 2022WSJK006) and the Youth Innovation Fund of Chongqing Public Health Medical Center, China (2019QNKYXM01).

  • Competing interests None declared.

  • Patient and public involvement Patients and/or the public were not involved in the design, or conduct, or reporting, or dissemination plans of this research.

  • Provenance and peer review Not commissioned; externally peer reviewed.

  • Supplemental material This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.