BackgroundTuberculosis (TB) remains a global health crisis, with complex molecular mechanisms that are not fully understood. Traditional pathway analysis methods fail to capture the intricate non-linear relationships within biological networks.MethodsWe developed a novel artificial intelligence framework integrating graph neural networks (GNNs), transformer architectures, and multimodal deep learning to decipher TB pathway mechanisms. Our approach constructs a comprehensive pathway-gene interaction network from three critical pathways (Tuberculosis hsa05152, Antigen processing hsa04612, and NF-κB signaling hsa04064) and employs three interconnected models: (1) a Graph Convolutional Network for learning pathway-gene relationships, (2) a Transformer encoder for pathway activity prediction, and (3) a multimodal fusion model with attention mechanisms integrating transcriptomic, pathway, and clinical data. The framework was trained and validated on 467 clinical samples and 529 transcriptomic samples from five GEO datasets.ResultsThe Transformer model achieved strong performance in pathway activity prediction (R2 = 0.97, MSE = 0.014), demonstrating high accuracy in capturing pathway activation patterns. The multimodal fusion model achieved strong predictive performance (accuracy 88.2%, AUC-ROC 0.90) in clinical outcome prediction, with attention analysis revealing adaptive weighting of different data modalities. Network analysis identified 27 shared genes between Tuberculosis and Antigen processing pathways, and 18 shared genes between Tuberculosis and NF-κB pathways, indicating coordinated immune regulation. Key pathway-gene interactions were identified, including critical roles of IFNG, TNF, IL1B, and NF-κB signaling components.ConclusionThis study represents the first comprehensive application of GNNs and multimodal deep learning to TB pathway analysis. Our framework provides novel insights into TB pathogenesis, identifies potential therapeutic targets, and demonstrates the power of AI-driven approaches for understanding complex disease mechanisms. The interpretability of our models through attention mechanisms enables translation of computational findings into actionable biological insights, with significant implications for precision medicine and personalized TB treatment strategies.