Automated Tuberculosis and Lung Cancer Codetection using Dual-Path ConvNet–ViT HybridFramework Architecture
Abstract
Tuberculosis (TB) and lung cancer remain leading causes of mortality worldwide, emphasizing the need forreliable automated diagnostic systems. Existing deep learning approaches typically address segmentation andclassification as independent tasks or rely on loosely coupled hybrid architectures, limiting joint optimization andinterpretability. To address these limitations, this work proposes a Dual-Path ConvNet–Vision Transformer (ViT)hybrid framework for simultaneous pulmonary disease classification and lesion segmentation. Unlike fully sharedmulti-task models, the proposed design integrates convolutional feature extraction for classification with transformerbased global context modeling for segmentation, followed by feature-level fusion to enhance diagnostic consistency.The framework is evaluated on the IQ-OTH/NCCD dataset, achieving an accuracy of 0.950, recall of 0.951, precisionof 0.947, specificity of 0.975, F1-score of 0.949, and AUC of 0.963. Results demonstrate that the proposed hybridapproach provides robust and interpretable performance for pulmonary disease co-analysis while maintainingarchitectural flexibility.