Abstract
Tuberculosis (TB), caused by Mycobacterium tuberculosis (M.tb), remains a major global health challenge, with approximately 10.8 million new cases and 1.25 million deaths reported in 2023. Human responses to M.tb are heterogeneous with clinical outcomes including bacterial clearance, asymptomatic latent M.tb infection, and severe fatal pulmonary TB. Here, we aim to address knowledge gaps in the organization of M.tb granulomas by identifying cell-based spatial features indicating asymptomatic lung infection. To address this gap, which cannot be directly studied in humans, we used lung sections from M.tb-infected Diversity Outbred mice with acute pulmonary TB, asymptomatic M.tb infection, or chronic pulmonary TB that were stained for T cells, B cells, macrophages, and bronchiolar epithelial cells by multiplexed immunofluorescence. We first developed a new, accurate model to automatically segment lung granulomas, detect/quantify the cell types within granulomas, and extract the location of immune cells in granulomas for each disease state. Analysis of model-derived results shows that lung granulomas from asymptomatic mice have a characteristic spatial profile consisting of higher CD4+ and CD8a+ T cell densities, closer B cell proximity to bronchiolar epithelium, and increased T cell-macrophage proximity in asymptomatic M.tb infection. Next, we propose a second novel approach to utilize a large language model (LLM) to independently decode complex cellular patterns within granulomas, and distinguish key immunological signatures: balanced immune expression in asymptomatic M.tb mice, dysfunctional responses with low cellularity in acute TB, and highest immune-cell abundance in chronic TB. Overall, the results from this study show that lung granulomas in asymptomatic infection are characterized by increased T cell density, increased numbers of peribronchiolar B cells, and T cells closer to macrophages as compared to acute and chronic TB. These methods and results help establish an automated pipeline to extract and analyze data from multiplexed fluorescence images and provide a foundation to better understand how granuloma architecture varies by disease state.
1. Introduction
Tuberculosis (TB), an infectious disease caused by the bacterial pathogen Mycobacterium tuberculosis (M.tb), remains a substantial global health threat. Epidemiological studies estimate that about one-quarter of the global population has been infected with M.tb [1]. In 2023, the global burden of TB reached 10.8 million new cases, an increase from 10.1 million cases in 2020 [1]. In adult humans, infection with M.tb results in a clinical spectrum including acute fulminant pulmonary TB with rapid progression to death within weeks; chronic pulmonary TB with slower lung-damaging progression often lasting years; and asymptomatic infection (e.g., incipient TB, latent M.tb infection (LTBI)); and clearance [2,3]. Symptoms of pulmonary TB are cough, fever, weight loss, and cachexia, due to tissue-destructive inflammation [4]. Notably, most humans with asymptomatic LTBI who progress to active pulmonary TB do so in the absence of identifiable risk factors [5], underscoring the multifactorial determinants of pulmonary TB progression, unpredictable nature of reactivation, and the need to improve our understanding of granulomas in different disease states, including asymptomatic LTBI.
M.tb infection initiates granuloma formation [6], which is the hallmark of infection that develops in response to molecular and cellular interactions between immune cells and bacterial components [7]. Granuloma formation is believed to begin with activation, recruitment and aggregation of leukocytes surrounding M.tb-infected macrophages, creating a protective barrier that limits bacterial dissemination [6], restricts M.tb replication and maintains LTBI. The spatial organization of immune cells within granulomas across different disease states, particularly the proximity of immune cells, macrophages, T cells, B cells, and bronchiolar epithelial cells and how these spatial relationships differ between asymptomatic LTBI, acute pulmonary TB, and chronic active TB are not fully known. Since controlled M.tb lung infection experiments cannot be directly performed in humans, we used lung sections from M.tb-infected DO mice. Each DO mouse represents a heterozygous mosaic of DNA inherited from eight founder strains [8,9], and when infected with M.tb, DO mice recapitulate human TB pathology more accurately than inbred strains of mice [10,11]. Here, we used multiplexed immunofluorescence imaging (mIF) of lung tissue sections from DO mice, to study and visualize the spatial location of CD19+ B cells, CD4+ helper T cells, CD8a+ cytotoxic T cells, EpCAM+ epithelial cells, and IBA1+ macrophages.
Given the structural complexity of granulomas, manual analysis cannot capture the spatially relevant relationships amongst immune cells and epithelial cells. The transition from traditional histopathology examination of glass slides to whole-slide imaging (WSI), combined with advances in high-speed data transfer and cost-effective storage, has enabled deep learning-based identification of complex histopathological patterns and feature quantification that is not possible by visual examination [12–18]. This advancement supported several new discoveries, including our prior work on imaging biomarkers in lung granulomas of M.tb-infected mice with and without BCG vaccination, and accurate prediction of gene expression based on granulomas [2,14,16,19].
Despite recent progress in applying deep learning to hematoxylin and eosin (H&E)–stained whole-slide images for tuberculosis phenotyping, these approaches remain biologically limited. H&E-based models primarily rely on global morphological pattern recognition, thereby obscuring cellular specificity and spatial immune interactions that are central to tuberculosis pathogenesis. Critical biological processes, including immune cell recruitment, compartmentalization, and cell–cell proximity within granulomas, cannot be resolved from H&E staining alone, as immune cell subtypes and functional states are visually indistinguishable. As a result, while H&E-based deep learning models can achieve disease-state classification, they provide less insight into the immune cell types that contribute to acute pulmonary TB, asymptomatic infection, and chronic pulmonary TB in DO mice. In contrast, mIF imaging enables simultaneous, cell-type–specific visualization of immune and epithelial populations and allows explicit quantification of spatial relationships within granulomas.
Previous studies in humans with pulmonary TB have shown that granuloma necrosis is at the center of granulomas, and is a distinguishing feature of DO mice with acute pulmonary TB [20–23], while an abundance of B-cells in perivascular and peribronchiolar cuffs identifies asymptomatic infection in DO mice [3]. The spatial relationship between immune cells and bronchiolar epithelial cells was a key motivation for using mIF imaging, yet manual quantification of these spatial patterns across entire lung sections was intractable. To address this limitation, we present an end-to-end framework that automates granuloma segmentation, classifies TB states more accurately than previous H&E-based methods, and quantifies spatial relationships between immune cell populations in granulomas. We replicate and validate the peribronchiolar B-cell signature of asymptomatic infection [3] using an independent method. By measuring the distance between CD19+ B-cells and bronchiolar epithelial cells in mIF images, we show that asymptomatic mice exhibit significantly closer B-cell-epithelial cell proximity than DO mice with acute pulmonary TB (“progressors” that survive less than 60 days) or chronic pulmonary TB (“controllers” that survive greater than 60 days), independently confirming previous findings [3] using automated spatial analysis. Finally, we integrate large language models to interpret complex cellular patterns by synthesizing cell identities, spatial coordinates, expression intensities, and attention-derived importance scores, extracting biologically interpretable insights that distinguish TB disease states. This approach also addresses the limitations of traditional hypothesis-driven methods, which, while valuable, can be constrained by fixed assumptions and human bias, potentially overlooking the complex, multi-dimensional biological patterns that emerge from integrating multi-modal data. By identifying relationships across these diverse data modalities without predetermined hypotheses, LLMs enable discovery of novel biological insights that may be difficult to capture through conventional statistical methods alone. Overall, this study integrates mIF imaging, attention-based MIL, and LLM-driven interpretation to characterize granuloma-level cellular and spatial patterns associated with distinct TB disease states in a genetically diverse animal model.
2. Materials and methods
2.1. Ethics statement
All lung tissue sections analyzed in this study were archived specimens generated from previously conducted M.tb infection experiments at Tufts University. These experiments were performed under protocols approved by the Institutional Animal Care and Use Committee (IACUC) at Tufts University (protocol numbers: G2012-53, G2015-33, G2018-33, and G2020-121). Experimental procedures involving M.tb were approved by the Institutional Biosafety Committee (IBC) at Tufts University under registration numbers GRIA04, GRIA10, GRIA17, and 2020-G61. No new animal experiments were performed specifically for the present study. All animal handling and experimental procedures adhered to institutional guidelines for the ethical treatment of laboratory animals.
2.2. Experimental animals and tissue samples
Our dataset comprises 48 mIF lung tissue sections, a small, curated subsample of preserved and processed lung tissue samples archived in paraffin blocks from our previous studies and obtained from 48 individual M.tb mice [3,22,24,25]. The experimentally infected DO mice represent three distinct disease states: Progressors (n = 15), Asymptomatic (n = 17), and Controllers (n = 16). Samples for mIF analysis were retrospectively selected from the archived cohorts to capture the full range of bacterial burden and survival outcomes within each disease class while maintaining relatively balanced group sizes for downstream analysis. These mice were infected with M. tb Erdman strain by aerosol with a retained lung dose of 25–100 colony forming units (CFU) [24]. Tissue sections were collected at the time of euthanasia, which varied by disease outcome: Progressors were euthanized between 22 and 51 days post-infection (= 27.05 days) of infection reflecting acute pulmonary TB, Controllers were euthanized between 114 and 418 days post-infection (= 255 days) reflecting chronic pulmonary TB, and Asymptomatic mice showed no clinical signs of disease throughout the observation period and were euthanized between 48 and 50 days post-infection (= 49 days). These disease classifications were determined based on clinical and histopathological criteria as described in previous studies [3,25].
Predetermined humane endpoints for euthanasia were severe weakness or lethargy, respiratory distress, or a body condition score below 2 [3,24]. The lung sections in this dataset were from 48 mice euthanized by CO2 asphyxiation followed by vital organ removal in accordance with AVMA with the duration of M.tb infection corresponding to 418 days for the longest surviving Controller. Animal health and behavior were monitored daily for routine observations and body weights taken at least once per week with increased frequency instituted if consecutive weight loss was detected. Standard animal care and housing included ventilated HEPA-filtered racks, controlled light:dark cycles (12:12 hours), sterile corncob bedding, sterile paper nestlets, and enrichment, cage changes at least every other week, and sterile food and acidified water provided ad libitum. Tufts University Institutional Animal Care and Use Committee reviewed and approved all procedures on live animals under protocols G2012-53, G2015-33, G2018-33, and G2020-121, and the committee required predetermined euthanasia criteria as listed above. Biosafety Level 2 and Biosafety Level 3 practices were approved by Tufts University’s Institutional Biosafety Committee. Post-infection euthanasia timing and lung bacterial burden across the three disease states are summarized in Table 1.
Table 1. Summary of post-infection euthanasia day and lung M.tb bacterial burden across disease states. Euthanasia day and lung CFU ranges are shown for Progressors (n = 15), Asymptomatic (n = 17), and Controllers (n = 16). Values represent the range and mean (μ) for each group. Bacterial burden is reported as CFU per lung. Progressors were euthanized within 60 days of infection reflecting acute pulmonary TB; Asymptomatic mice showed no clinical signs of disease; and Controllers were euthanized after 60 days reflecting chronic pulmonary TB.
| Disease states | Post-infection euthanasia day | Bacterial burden (CFU) |
|---|---|---|
| Progressor | 22–51 (= 27.05) | 5,855,856–450,450,450 ( = 270,132,856.4) |
| Asymptomatic | 48–50 ( = 49) | 42,793–380,630,631 ( = 24,219,541.71) |
| Controller | 114–418 ( = 255) | 1,576,577–12,612,612,613 ( = 1,072,447,056.5) |
2.3. Staining protocol
Tissue sections were stained using a tyramide signal amplification (TSA)-based protocol. In each staining cycle, a primary-secondary antibody complex was applied, followed by covalent deposition of the fluorophore onto the tissue via tyramide signal amplification. The primary-secondary antibody complex was then stripped iteratively using heat and a low-pH citrate buffer, while the covalently bound fluorophore signal was retained in the tissue. This cycle was repeated sequentially for each target marker (CD4+, CD8a+, CD19+, EpCAM+, and IBA1+) on the same tissue section, enabling simultaneous visualization of all five immune and epithelial cell populations without cross-reactivity between staining rounds.
2.4. Computational framework for granuloma segmentation, disease-state classification, and spatial interpretation
Previous studies have established that granuloma necrosis is at the center of granulomas, and a distinguishing feature of super susceptible progressor DO mice [20–23], while B-cells in perivascular and peribronchiolar cuffs identify asymptomatic latent infection [3]. The spatial relationship between B-cells and bronchiolar epithelial cells was a key motivation for developing mIF imaging, yet manual quantification of these spatial patterns across entire lung sections remains intractable. To address this limitation, we present an end-to-end framework that automates granuloma segmentation, classifies disease states with substantial improvements over H&E-based methods, and quantifies spatial relationships between immune cell populations at the granuloma level. In this section, we discuss the methodology of our framework in detail. Our dataset consists of entire lung sections, requiring an initial step to segment the TB granulomas. From the segmented images, we then train a deep learning model to predict disease state. Finally, we use an LLM to interpret the spatial patterns of immune cells within high-attention regions identified by our classification model, extracting biologically meaningful insights that distinguish the three disease states. The entire workflow of our framework is presented in Fig 1.
Fig 1. An overview of our proposed framework.

A. mIF images are processed using the IF-UNet++ model to segment granulomas. The resulting segmentation outputs are divided into patches for further analysis. B. These patches are fed into a MIL model to predict disease-state classification. A trained MIL model, along with an LLM, integrates MIL-derived features and immune cell spatial patterns to infer immune cell patterns.
2.4.1. Segmentation of granulomas from lung tissue sections.
The objective of the segmentation component is to accurately delineate tuberculosis granulomas from multiplex immunofluorescence whole-slide images, thereby defining biologically meaningful regions for downstream spatial and disease-state analysis. Each lung section contains complex and heterogeneous tissue architecture, necessitating an automated approach capable of capturing granuloma boundaries across diverse immune phenotypes. To this end, we employ an immunofluorescence-adapted UNet++ architecture (IF-UNet++), which leverages multiscale feature aggregation and dense skip connections to preserve fine-grained cellular and structural information across multiple immunofluorescence channels.
To study the granulomas, we first identify granulomas from mouse lung WSIs. Given WSIs, we extract M non-overlapping patches, where M may vary per WSI depending on its size. Each input patch comprises H × W pixels across D immunofluorescence channels, with each channel corresponding to a distinct cellular marker. The corresponding ground truth segmentation mask ∈ represents a binary mask delineating the granuloma boundary. This yields a dataset 𝒟 comprising paired patches () and its ground truth (). Our objective is to learn a mapping function f: → that accurately predicts the segmentation mask for each input patch .
We propose an IF-UNet++ architecture [26] optimized for immunofluorescence image segmentation to learn this mapping function f. Unlike cell segmentation tools such as Cellpose [27] designed to delineate individual cell boundaries, IF-UNet++ is optimized to identify granuloma-level boundaries, treating each granuloma as a single multicellular functional unit, which is necessary for all downstream spatial analyses. Our architecture employs a nested encoder-decoder structure interconnected through dense skip pathways [26]. The encoder performs progressive downsampling while computing hierarchical feature representations at multiple spatial resolutions. Unlike the standard U-Net, which directly concatenates encoder features with decoder features at matching resolutions, IF-UNet++ introduces intermediate convolution blocks along each skip pathway. These blocks iteratively refine encoder representations before fusion with decoder outputs. At each computational node, we aggregate features from all preceding nodes along the pathway and upsample features from deeper layers through a series of convolution operations, enabling dense information flow across network hierarchies.
We train our network with deep supervision, attaching segmentation heads at multiple semantic levels. The loss function combines binary cross-entropy and Dice coefficient, enabling the model to learn representations at different scales simultaneously. During inference, the final segmentation mask is generated by averaging outputs from all segmentation branches, producing pixel-wise predictions that identify granuloma regions within each patch. The overall loss function for the segmentation model is defined as (Eq. 1):
| (1) |
where represents the batch size, denotes the flattened ground truth segmentation mask for the image, and represents the flattened predicted probability map. This formulation combines two complementary objectives to optimize segmentation performance. The first term represents binary cross-entropy, which measures pixel-wise classification error and encourages accurate probability estimates at each pixel location. The second term corresponds to the Dice coefficient, which quantifies overlap between predicted and ground truth masks. The negative sign converts this into a minimization problem. By minimizing during training, the network learns to generate accurate pixel-wise predictions that effectively segment granulomas from lung tissue sections.
During WSI-level inference, we partition incoming WSI into non-overlapping patches, process each patch independently using f, and reconstruct the full segmentation map by spatially stitching the predicted outputs to generate a complete WSI-level segmentation.
2.4.2 Multiple instance learning for disease state classification.
Whole-slide lung sections from M. tuberculosis–infected mice exhibit substantial intra-slide heterogeneity, with multiple granulomas and surrounding tissue regions contributing differently to disease phenotype. Assigning patch-level disease labels is therefore biologically ill-defined, as disease state emerges from the collective behavior of multiple granulomas rather than from any single localized region. Multiple instance learning (MIL) provides a principled framework for this setting by enabling slide-level classification while allowing the model to learn which granuloma regions are most informative for disease discrimination [28–30]. Importantly, attention-based MIL further permits identification of high-impact regions, offering a direct link between model predictions and biologically meaningful tissue compartments.
In this section, we describe the Multiple Instance Learning (MIL) model [31] used to classify lung tissue sections from M.tb-infected DO mice into three distinct disease states: asymptomatic infection, acute pulmonary tuberculosis in progressors, and chronic pulmonary tuberculosis in controllers.
Our training set consists of N gigapixel-scale WSIs, where each WSI () represents a DO mouse lung tissue section containing one or more granulomas. These WSIs are denoted as bags:
with corresponding disease-state labels
where for , corresponds respectively to asymptomatic, acute, and chronic TB states.
Under the MIL formulation, each WSI is decomposed into a set of non-overlapping image patches (instances),
where denotes the total number of patches extracted from the WSI, and indexes the patches within the WSI. Each patch corresponds to a region with C immunofluorescence channels, and each channel contains a cellular marker (e.g., CD4⁺, CD8a⁺, CD19⁺, EpCAM⁺, IBA1⁺), capturing the spatial and phenotypic diversity of immune microenvironments.
Since patch-level labels {} are unknown during the training process, the model operates under weak supervision, where only bag-level disease states are known. This formulation allows the network to learn discriminative representations by inferring which patches contribute most to the disease state label, despite substantial intra-bag heterogeneity across granulomas. Therefore, we adopt an attention-based Multiple Instance Learning (ABMIL) architecture to perform multi-class disease state classification. The model comprises three primary components: a patch encoder, an attention-based aggregator, and a classifier.
The patch encoder component maps each patch into a high-dimensional embedding D:
using a convolutional neural network (CNN) backbone trained to capture local morphological and cellular spatial features within each patch.
To aggregate patch embeddings into a single bag-level representation, we employ a gated attention mechanism that computes a weighted average over patch features:
where denotes the normalized attention weight for the patch. The weights form a probability distribution over all patches:
with the unnormalized attention logit defined as:
Here, are learned projection matrices, is a learned vector, tanh, sigm denote hyperbolic tangent and sigmoid activations respectively, and represents element-wise multiplication. This gated attention mechanism allows the network to model complex, nonlinear dependencies between patches and their relevance, effectively emphasizing granuloma regions that are most informative for disease state discrimination.
The resulting aggregated embedding serves as a compact, disease-state-specific representation of the WSI, summarizing key morphological and immunological cues across all patches. Then, a fully connected layer with a SoftMax activation outputs a categorical probability distribution over the three disease states. The model is trained using categorical cross-entropy loss. We minimize this loss to enable the network to learn discriminative, attention-weighted feature representations that accurately capture the morphological and immunological signatures associated with distinct TB disease states.
2.4.3. Large language model-based interpretation of spatial patterns.
The intricate spatial organization of immune cells within granulomas requires simultaneous integration of cell types, spatial distributions, expression intensities, and their interdependencies across disease states, demanding consideration of countless feature combinations across hundreds of tissue patches. To address this complexity, we employed a large language model (LLM) [32] to decode complex spatial patterns within high-attention regions of TB granulomas and identify recurring patterns across disease states (Fig 7).
Fig 7. Framework for TB disease state classification and interpretation.

(A) mIF imaging workflow from lung tissue to WSI generation. (B) Deep learning pipeline integrating cell type identification, spatial analysis, and LLM-based decoding to interpret disease-specific patterns. (C) Disease state characterizations: Progressor (low cellularity, weak immune response), Asymptomatic (balanced immune control), and Controller (high cellularity, strong inflammatory response).
We provided the model with comprehensive quantitative information for each granuloma patch, including: (1) predicted disease state (asymptomatic, chronic pulmonary TB, acute pulmonary TB), (2) cell types (CD19+, CD4+, CD8a+, EpCAM+, IBA1+), (3) spatial location of cells, (4) expression intensity values for each cell, (5) patch-level attention scores derived from the ABMIL model indicating discriminative capability, and (6) spatial coordinates defining patch positions within the granuloma structure. We tasked the model with identifying distinct cellular and spatial patterns that differentiate the three disease groups.
2.4.4. Implementation details.
For training the IF-UNet++ segmentation model, we employed five-fold cross-validation to ensure robust performance evaluation and model selection, using a batch size of 16 and a learning rate of 1 × 10−3. In each fold, 80% of the data was used for training, with 10% randomly selected from the training set for validation and the remaining 20% held out for testing. We monitored validation performance across all folds and selected the model with the best validation loss for granuloma segmentation for subsequent disease state classification, ensuring that the segmentation model generalized well to unseen data before being integrated into the downstream classification pipeline. For the ABMIL model, we employed five-fold cross-validation (70%/10%/20%) split with a learning rate of 1 × 10−4, and a batch size of 1.
3. Results
The overall goal of this study is to develop an end-to-end framework capable of segmenting granulomas from lung tissue sections, classifying TB disease states, utilizing LLMs for identifying cellular patterns, and spatial quantification of cellular composition in M.tb-infected DO mice. In this section, we present the performance of IF-UNet++, disease state classification, and an interpretation of cellular patterns using an LLM.
3.1. Granuloma segmentation using IF-UNet++
Accurate delineation of granulomas is critical for extracting informative features and training reliable disease state classification models. Granuloma boundary annotations were delineated by a board-certified pathologist, providing biologically accurate and consistent ground truth segmentation masks for model training. Notably, deep learning segmentation models learn by identifying recurring patterns in training data; inconsistent or contradictory annotations would prevent the model from learning a coherent decision boundary, resulting in poor generalization. Our segmentation network, IF-UNet++, effectively segmented granulomas, achieving an Intersection over Union (IoU) of 93.22% on the training set and 90.57% on the independent test set. The IoU metric serves as a comprehensive surrogate for granuloma morphological accuracy, implicitly encoding agreement in size, shape, spatial extent, and boundary fidelity within a single unified measure. The high IoU of 90.57% achieved on the held-out partitions within five-fold cross validation therefore serves not only as a measure of model accuracy, but also as indirect quantitative evidence that the underlying annotations were consistent and reproducible across the dataset. Beyond quantitative evaluation, segmentation results were mapped back to the original mIF images and qualitatively reviewed by a board-certified pathologist, who confirmed that the predicted granuloma boundaries were spatially concordant with true granulomatous structures across all disease phenotypes. These results highlight its strong generalization ability and robust segmentation performance. Representative examples of the segmentation output are shown in Fig 2. Panels A, B, and C illustrate automated granuloma segmentation across the three disease states: Progressor (survive < 60 days); asymptomatic infection, and controller (survive greater than 60 days) [3], with predicted granuloma boundaries outlined in yellow. The segmentation outputs exhibit high spatial concordance with granulomatous structures across all disease phenotypes, underscoring the model’s ability to accurately capture granulomas within complex pulmonary microenvironments. Panel D presents the confusion matrix demonstrating our framework’s classification performance, achieving high accuracy in distinguishing between the three TB disease states with minimal misclassification.
Fig 2. IF-UNet++ granuloma segmentation across disease states and classification performance.

Representative examples of automated granuloma segmentation in lung tissue sections from DO mice across three disease states: (A) Progressor (acute pulmonary TB), (B) Asymptomatic (latent infection), and (C) Controller (chronic pulmonary TB). Each panel shows the original mIF image with predicted granuloma boundaries outlined in yellow. (D) Confusion matrix showing the classification performance of our framework in distinguishing between the three disease states.
3.2. Granuloma-level analysis of immune cell populations
Statistical comparisons of immune cell abundance across disease states were performed using nonparametric tests because cell counts were non-normally distributed across granulomas. Group-wise differences were assessed followed by post hoc pairwise comparisons with appropriate multiple-testing correction. These analyses confirm that observed differences in immune cell composition across Progressor, Asymptomatic, and Controller groups reflect systematic biological variation rather than sampling variability.
To characterize the cellular heterogeneity underlying different TB disease states, we quantified the distribution of immune cell populations within each granuloma across the three disease groups (Fig 3, Supplementary Figure S1 (S1 File)). CD4+ T helper cells demonstrated a progressive increase in Asymptomatic in comparison with Progressor and with intermediate levels observed in Controllers (Fig 3A). CD8a+ cytotoxic T cells were most abundant in the Asymptomatic group compared to both the Progressor and Controller groups (Fig 3B). CD19+ B cells showed relatively sparse distribution across all disease states, with slightly elevated levels in Controllers (Fig 3C). EpCAM+ epithelial cell abundance was comparable across groups, suggesting similar cellular composition (Fig 3D). These cells were confirmed to be bronchiolar epithelial cells based on the anatomic structure highlighted by board-certified pathologists. Notably, IBA1+ macrophages exhibited substantially higher macrophage density in Asymptomatic mice compared to both Progressor and Controller groups. When examining total cell abundance (Fig 4, Supplementary Figure S2 (S1 File)), Controller granulomas consistently exhibited the highest absolute cell counts across all immune cell types, including CD4+ T cells, CD8a+ T cells, CD19+ B cells, EpCAM+ epithelial cells, and IBA1+ macrophages. Total immune-cell abundance across the three disease states is shown in Fig 4 and Supplementary Figure S2 (S1 File).
Fig 3. Density of immune cell populations per unit granuloma area across TB disease states.

Box plots show density of cells, reported as density per unit granuloma area for (A) CD4+ T cells, (B) CD8a+ T cells, (C) CD19+ B cells, (D) IBA1+ macrophages, and (E) EpCAM+ epithelial cells across three disease groups: Progressor, Asymptomatic, and Controller. Each dot represents one granuloma; box plots show median, interquartile range, and whiskers extending to 1.5 × IQR.
Fig 4. Total numbers of immune cells in granulomas across TB disease states.

Box plots showing cell abundance for (A) CD4+ T cells, (B) CD8a+ T cells, (C) CD19+ B cells, (D) IBA1+ macrophages, and (E) EpCAM+ epithelial cells across three disease groups: Progressor, Asymptomatic TB, and Controller, (F) Total number of immune cells per lung tissue section. Each dot (4A-4E) represents one granuloma; box plots show median, interquartile range, and whiskers extending to 1.5 × IQR.
3.3. Deep learning accurately predicts disease states from granulomas
To differentiate between DO mice with asymptomatic M.tb infection, from progressors with acute pulmonary TB, and controllers with chronic pulmonary TB, we trained and evaluated our model on segmented granuloma regions. Our mIF-based classification model achieved an AUC of 0.982, with 90.0% accuracy, 91.1% sensitivity, and 95.1% specificity. In comparison, our previous H&E-based approach attained an AUC of 0.884, sensitivity of 71.9%, and specificity of 89.9% (Table 2). For multi-class evaluation, the reported AUC corresponds to a macro-averaged one-vs-rest formulation across the three disease states. These results demonstrate substantial performance improvements, particularly in sensitivity, highlighting the value of cell-type-specific spatial information provided by mIF imaging for disease state classification.
Table 2. Performance comparison of disease state classification methods. Our model was evaluated using five-fold cross-validation to classify lung tissue sections into three disease states: asymptomatic infection, acute pulmonary TB, and chronic pulmonary TB. Values in parentheses represent 95% confidence intervals.
| Method | AUC | Accuracy | Sensitivity | Specificity |
|---|---|---|---|---|
| Koyuncu et al. [3] | 0.884 (0.862 - 0.903) |
– | 71.90% (63.2 - 80.4) |
89.90% (87.3 - 92.1) |
| Ours | 0.982 (0.953 - 1.00) |
90.00% (81.0–98.94) |
91.11% (82.9–99.23) |
95.08% (90.64 - 99.52) |
3.4. B-cells in asymptomatic infection near bronchiolar epithelial cells
To validate the peribronchiolar B-cell signature identified in a previous study [3] and demonstrate the practical utility of our framework for spatial analysis, we quantified the distance between CD19+ B-cells and bronchiolar epithelial cells across disease states (Fig 5). Figure 5A presents a polar coordinate visualization of a representative granuloma from each disease state, illustrating the spatial distribution of immune cells as a function of distance from the center of the granuloma. Figure 5B shows that Asymptomatic mice exhibit shorter distances between each bronchiolar epithelial cell and its nearest B-cell compared to both Progressors and Controllers, indicating closer spatial association and independently confirming the peribronchiolar B-cell signature [3] using mIF imaging and automated spatial analysis, validating previous observations through a complementary methodology.
Fig 5. Spatial organization of B-cells in granulomas from M.tb-infected DO mice.

(A) Polar plot of a representative granuloma showing spatial distribution of cells (Progressor: red, Asymptomatic: blue, Controller: green). Concentric circles indicate normalized radial distance from granuloma centroid. Each point represents the distance between each bronchiolar epithelial cell with the nearest CD19+ B cell. (B) Mean distance between bronchiolar epithelial cells and nearest CD19+ B cell. Each point represents one mouse (averaged across all granulomas), demonstrating closest proximity in Asymptomatic.
3.5. Spatial relationships between T cells and macrophages reveal disease-specific immune organization
To further characterize the spatial immune architecture within TB granulomas, we quantified the proximity between T cell populations (CD4+ and CD8a+) and IBA1+ macrophages across the three disease states (Fig 6). Figures 6A and 6B present the mean distances between CD4+ T cells and nearest macrophages, and CD8a+ T cells and nearest macrophages, respectively, across Asymptomatic, Controller, and Progressor groups. To assess whether T cells were positioned within functional proximity to macrophages, we defined a threshold of 75 μm radius as the spatial range for potential T cell-macrophage interactions based on [33]; this radius was converted to 150 pixels (75 μm / 0.5 = 150 px) using the spatial resolution of 0.5 mpp of our WSIs. While both CD4+ and CD8a+ T cells showed variable distances to macrophages across individual mice, the overall proximity patterns differed among disease states with the smallest mean distance between T cells and macrophages in asymptomatic mice in comparison with other groups. Figure 6C presents a two-dimensional visualization comparing the proportion of CD4+ cells within 75 μm of macrophages versus the proportion of CD8a+ cells within 75 μm of macrophages for each mouse. This analysis revealed distinct clustering patterns: Asymptomatic mice exhibited higher proportions of both T cell subsets in close proximity to macrophages, suggesting coordinated immune cell positioning that may facilitate effective pathogen control. Controllers displayed intermediate spatial patterns, while Progressors showed more dispersed and variable T cell-macrophage relationships, potentially reflecting impaired immune coordination. Figure 6D quantifies these observations, showing that Asymptomatic maintains the highest proportion of both CD4+ and CD8a+ T cells within 75 μm of macrophages, followed by Progressors with preferential CD4+ proximity and reduced CD8a+ proximity, and Controllers showing balanced but reduced overall T cell-macrophage proximity compared to Asymptomatic. These spatial profiling results demonstrate that the physical organization of T cells relative to macrophages differs systematically across TB disease states, with closer T cell-macrophage proximity in Asymptomatic potentially reflecting more effective immune surveillance and pathogen containment within granulomas.
Fig 6. Spatial profiling of T cell-macrophage proximity in TB granulomas.

(A) Swarm plot presenting a mean distance between CD4+ T cells and nearest IBA1 + macrophage per mouse. Each point represents one mouse (averaged across all granulomas); red dashed lines indicate mean values. (B) Swarm plot presenting mean distance between CD8a+ T cells and nearest IBA1+ macrophage. (C) Scatter plot showing joint T-cell proximity to macrophages. Each point represents one mouse, with x-axis showing the proportion of CD4+ T cells within 75 μm of macrophages and y-axis showing the proportion of CD8a+ T cells within 75 μm of macrophages. (D) Bar plot comparing the proportion of CD4+ and CD8a+ T cells within 75 μm radius of each macrophage across the three disease states, demonstrating differential spatial organization patterns characteristic of each TB disease phenotype.
3.6. Interpreting Disease-specific spatial patterns using large language models
Multi-modal large language models have demonstrated promising capabilities for analyzing histopathology images [34-36]. Recent approaches [34,35] enable automated quantification and interpretation of morphological markers in large data cohorts, addressing key limitations of manual quantification, which is time-consuming and subject to interobserver variability. Here, we leverage an LLM [32,37] as an integrative reasoning engine to synthesize multi-modal computational outputs (cell identities, spatial coordinates, expression intensities, and attention scores) into interpretable biological narratives, enabling an automated hypothesis-free pattern discovery across complex spatial immune phenotypes. Using this approach, LLMs [32,38,39] serve as a higher-level interpretive layer that summarizes recurring, disease-specific immune architectures across high-impact granuloma regions. The LLM-based spatial interpretation framework is illustrated in Fig 7. We tasked the model with identifying distinct cellular and spatial patterns that differentiate the three disease groups.
The following are the findings of the LLM:
Progressors are characterized by relatively low overall cellularity and dysfunctional expression of immune cells. While CD4+ T cells are numerically present, their expression is notably low.
Asymptomatic mice display a balanced cellular landscape with moderate overall cellularity and expression. A well-coordinated expression of macrophages, CD4+ and CD8a+ T cells, and epithelial cells. This immune response indicates effective pathogen containment without inducing excessive inflammation or tissue damage, representing an optimal host-pathogen equilibrium.
Controllers exhibit the highest overall cellularity and widespread, intense immune expression level across all cell types. High expression of CD4+ and CD8a+ T cells, B cells, and macrophages signifies a robust, hyper-inflammatory response. This aggressive, broad-spectrum immune mobilization effectively contains the pathogen but likely contributes to significant immunopathology due to excessive inflammation and tissue damage.
Importantly, these interpretations were derived from model-generated quantitative inputs rather than raw image data. The identified patterns were concordant with independently quantified differences in cellular abundance and spatial proximity, supporting their biological plausibility.
3.7. Spatial organization of immune and epithelial cell populations in relation to lung M.tb burden across disease states
To examine whether the spatial organization of immune cells is associated with lung bacterial burden, we computed Spearman correlation coefficients between the log-transformed mean distance of each immune cell with its nearest immune cell and M.tb CFU per lung, stratified by disease group (Fig 8). The results reveal that spatial-bacterial relationships are disease-state-specific rather than uniform across groups. Asymptomatic mice exhibited the most consistent associations between T cell spatial positioning and bacterial burden, suggesting that T cell proximity within granulomas is meaningfully coupled to bacterial containment in this group. In contrast, Progressors and Controllers showed more variable spatial-bacterial relationships across immune populations, respectively.
Fig 8. Correlation between spatial distribution of immune cells and M.tb burden across disease states.

(A). Log mean distance for CD4+ T cells (B). CD8a+ T cells, (C). CD19+ B cells, (D). IBA1+ macrophages, and (E). EPCAM+ epithelial cells plotted against M.tb burden for each mouse. Each point represents one mouse, colored by disease group: Asymptomatic (blue), Controllers (green), and Progressors (red). Per-group Spearman correlation coefficients (ρ) and associated p-values are shown in each panel legend.
4. Discussion and conclusions
This study presents an end-to-end framework for automated analysis of lung granulomas from M.tb-infected DO mice using mIF images stained for CD4 and CD8a T cell subsets, B cells, macrophages, and bronchiolar epithelial cells. Our framework involves automated granuloma segmentation, disease-state classification, and interpretability analysis to decode the organization of immune cells within TB granulomas, addressing fundamental limitations of manual annotation and traditional H&E-based computational approaches.
Our proposed IF-UNet++ segmentation model achieved robust performance in delineating granulomatous regions, with an IoU of 93.22% on the training set and 90.57% on the independent test set. These results demonstrate strong generalization and establish accurate spatial boundaries, which are essential for downstream feature extraction and disease-state classification (Fig 2). Based on the segmentation outputs, granulomas in Asymptomatic mice may appear morphologically similar in size and shape to those in Progressors on mIF imaging, but the key distinguishing pathological feature of Progressor granulomas is neutrophilic infiltration and necrosis, which is not visible by mIF imaging but is clearly demonstrable by H&E staining, as we have described previously [2,3,14,22,24,25]. Building on these segmentation outputs, our attention-based multiple instance learning (ABMIL) framework achieved substantial improvements in disease-state classification over previous approaches. Compared to our previous H&E-based method, the mIF-based model demonstrated an 11.1% increase in AUC (0.982 vs. 0.884), a 26.7% increase in sensitivity (91.1% vs. 71.9%), and a 5.8% increase in specificity (95.1% vs. 89.9%). These marked performance gains, particularly the substantial enhancement in sensitivity, highlight the value of cell-type-specific spatial information provided by mIF images.
Our spatial and cellular analyses revealed distinct patterns that differentiate TB disease states in DO mice at the granuloma level. When examining density per granuloma area (Fig 3), we observed that CD4+ T cells and CD8a+ T cells were most abundant in Asymptomatic, suggesting a balanced adaptive immune response associated with effective pathogen control. In contrast, IBA1+ macrophages showed substantially higher density in Asymptomatic mice compared to both the Progressor and Controller groups, indicating a well-regulated innate immune response. Analysis of total cell counts (Fig 4) revealed that Controller granulomas consistently exhibited the highest absolute cell numbers across all immune cell types. Critically, our analysis also validated that the peribronchiolar B-cell signature identified in our previous studies [3], where asymptomatic mice demonstrated significantly closer proximity between CD19+ B-cells and bronchiolar epithelial cells compared to Progressor and Controller groups (Fig 5). This independent confirmation through mIF imaging and automated spatial quantification not only validates prior findings but also demonstrates the translational utility of our framework for discovering and validating spatial biomarkers that are associated with protective immunity versus disease progression. These cell-type-specific spatial patterns may provide mechanistic insights into the differential immune responses underlying asymptomatic infection, acute pulmonary TB, and chronic pulmonary TB.
Granuloma organization, the cell types within the granulomas, and the function of immune cells within granulomas and their subregions are important to understanding clinical cases of pulmonary TB in humans and in animal models of M.tb infection [40–44]. However, few studies compare immune cell types across different disease states. Here, our spatial profiling analysis quantifies density per unit area of granuloma, total count per lung tissue section, and distances of immune cells in lung granulomas from DO mice with acute pulmonary TB, asymptomatic infection, and chronic pulmonary TB. Our work reveals that T cell-macrophage proximity patterns are disease-state specific and may serve as functional indicators of immune coordination. Our findings indicate that asymptomatic mice maintain the closest spatial relationships between both CD4+ and CD8a+ T cells and IBA1+ macrophages, with the highest proportions of both T cell subsets positioned within the 75 μm range. This spatial organization may facilitate effective and coordinated pathogen containment mechanisms critical for maintaining control of asymptomatic latent infection. In contrast, progressors exhibited more dispersed and variable T cell-macrophage spatial relationships, potentially reflecting breakdown of organized immune architecture and impaired cell-cell communication necessary for granuloma function. Controllers displayed intermediate patterns, suggesting partially maintained but suboptimal immune coordination. These findings extend beyond simple cell abundance metrics to reveal that the physical organization of immune cells within granulomas is a critical determinant of disease outcome, highlighting the importance of spatial profiling approaches for understanding TB pathogenesis and identifying potential therapeutic targets aimed at restoring functional immune architecture.
Another novel contribution of this work is the integration of LLMs to interpret complex immune organization within TB granulomas. We provided the LLM with comprehensive multi-modal data, including predicted disease states, cell identities, spatial coordinates, protein expression intensities, and patch-level attention scores derived from the model. Through this integrative analysis, the LLM identified disease-specific spatial patterns that were independently validated by our quantitative analyses. For example, the LLM identified coordinated spatial clustering of macrophages, CD4+ T cells, and CD8+ T cells in asymptomatic mice, which was corroborated by the spatial relationship analyses shown in Figs 6A and 6B. Similarly, the LLM’s identification of elevated overall cellularity in controllers was validated by the quantitative measurements presented in Fig 4. These findings provide an automated, scalable framework for discovering distinctive spatial immune patterns within granulomas without requiring pre-defined hypotheses or manual feature selection.
The translational impact of this work is fundamentally enabled by our use of the DO mouse population, which directly addresses a critical barrier in TB research: the failure of traditional inbred mouse models to recapitulate the heterogeneity of human disease. Unlike inbred strains, DO mice capture the broad spectrum of clinical outcomes seen in human populations from LTBI to progressive pulmonary disease, thereby providing an unprecedented animal model for training computational models on biologically realistic disease variability. This genetic diversity not only strengthens the translational relevance of our findings but also enables our framework to learn from granuloma phenotypes that mirror the complex host-pathogen interactions underlying human TB pathogenesis, making our identified spatial biomarkers directly relevant to human disease heterogeneity.
Beyond its application to murine models, the proposed framework is directly extensible to emerging human spatial immunology datasets, including multiplex immunofluorescence and spatial transcriptomics of lung tissue. By explicitly modeling cell-type–specific spatial relationships within granulomas, this approach provides a scalable pathway for translating insights from genetically diverse animal models to human tuberculosis, where similar immune architectures underlie heterogeneous clinical outcomes.
Despite several breakthroughs in this study, there are several limitations. First, our dataset included only 48 mIF-stained lung tissue sections. Although this dataset provided a strong foundation, expanding to larger, multi-institutional cohorts will be essential to fully assess generalizability and clinical applicability. Second, our interpretability analysis focuses on high-attention patches identified by the ABMIL model and relies heavily on a user-defined hyperparameter governing the number of selected regions, ‘K.’ While this strategy prioritizes biologically salient tissue compartments, future work will explore adaptive selection strategies and whole-granuloma reasoning to reduce parameter sensitivity further. Third, while the LLM-based interpretation provides insights into cellular patterns within high-attention regions, this approach has inherent limitations. The LLM operates as a black-box system, making it difficult to fully understand how it integrates spatial coordinates, cell identities, and expression values to generate its interpretations. Given these constraints and the potential for AI-generated misinterpretations, maintaining pathologist oversight remains essential to validate LLM outputs and ensure biological accuracy. Additionally, due to computational constraints, the LLM analyzes only high-attention patches rather than entire granulomas, which may not capture the complete organization of immune cells or address broader biological phenomena occurring at the whole-granuloma or whole-lung level. Furthermore, the LLM’s reasoning is inherently constrained by the specific set of biomarkers included in the study panel, and the patterns it identifies might not always align with or capture the full spectrum of human-identified biological patterns. This discordance may arise because relevant cellular populations or biological processes that are recognizable through other markers or visual morphological features may not be adequately represented in our current marker panel, and hypothesis-free pattern discovery, potentially limiting the LLM’s ability to detect or interpret certain biologically significant phenomena. For instance, while progressors are known to exhibit large neutrophilic infiltrates, the absence of a neutrophil-specific marker in our panel means that the LLM’s interpretations cannot directly assess this phenomenon, and conclusions are necessarily limited to the cellular populations and markers available in the dataset. Finally, a limitation of this study is the absence of functional markers for spatial localization within granulomas. The current mIF panel was designed to identify and spatially quantify major immune and epithelial cell populations, namely CD4+ T cells, CD8a+ T cells, CD19+ B cells, IBA1+ macrophages, and EpCAM+ epithelial cells, but did not include markers of macrophage polarization states such as M1/M2 indicators, or key inflammatory cytokines such as TNFα and IL-1β. The inclusion of such functional markers would provide additional biological context for interpreting the spatial patterns observed across disease states and strengthen the conclusions drawn from spatial proximity analyses. Future studies incorporating functional markers alongside cell identity markers in expanded mIF panels would offer a more comprehensive characterization of the immune microenvironment within granulomas across the Progressor, Asymptomatic, and Controller phenotypes, and are an important direction for subsequent work.
The study also has limitations related to cohort composition and validation. The 48 mIF specimens represent a retrospectively selected subset of archived samples from previously conducted studies, and therefore potential selection bias cannot be excluded. In addition, the Controller group encompassed a broad range of disease durations (114–418 days post-infection). Although these animals met the previously established phenotypic definition of chronic pulmonary TB, the present study was not designed to determine whether cellular composition and spatial immune organization remain constant across different durations of chronic disease. This temporal heterogeneity may therefore contribute to within-group biological variability. Finally, an independent, blinded mIF cohort was not available for external validation. Although model performance was assessed using five-fold cross-validation, future studies should evaluate the locked framework in independently collected and blinded mIF cohorts.
In summary, this study establishes a foundation for automated, interpretable, and biologically grounded characterization of TB granulomas. Our proposed framework achieves precise delineation of TB granulomas, accurate disease-state classification, and interpretation of complex spatial cellular patterns. The substantial improvement over traditional H&E-based methods highlights the advantage of incorporating cell-type–specific spatial information into computational pathology workflows.
Supporting information
Contains Supplementary Figure S1 showing the density of immune cell populations per unit granuloma area across TB disease states with 10% boundary shrinkage applied, and Supplementary Figure S2 showing the total numbers of immune cells in granulomas across TB disease states with 10% boundary shrinkage applied.
(DOCX)
Acknowledgments
We thank Dr. Sam Telford III and the biocontainment staff at the New England Regional Biosafety Laboratory at Tufts University Cummings School of Veterinary Medicine, North Grafton, MA, USA, for support with biosafety level three facilities. We thank the NEIDL Comparative Pathology Laboratory (NCPL) for their support generating the mIF images. The authors gratefully acknowledge the Ohio Supercomputer Center for providing high-performance computing resources under its contract with The Ohio State University College of Medicine. We acknowledge the use of Claude (Anthropic) for grammatical editing during manuscript preparation; all suggestions were reviewed by the authors to ensure scientific accuracy and integrity.
Data Availability
The data underlying the findings of this study are available at: https://doi.org/10.5281/zenodo.18330801.
Funding Statement
The work was supported through National Institutes of Health (NIH) R01 HL145411 (PI: GB) and R01 CA276301 (PI: MKKN). The instruments utilized for IHC and fluorescent whole-slide scanning were acquired with support from NIH SIG grants (S10OD026983 and S10OD030269). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. The funder had no additional role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1.World Health Organization. Global report on infection prevention and control 2024. World Health Organization; 2024. [Google Scholar]
- 2.Tavolara TE, Niazi MKK, Ginese M, Piedra-Mora C, Gatti DM, Beamer G, et al. Automatic discovery of clinically interpretable imaging biomarkers for Mycobacterium tuberculosis supersusceptibility using deep learning. EBioMedicine. 2020;62:103094. doi: 10.1016/j.ebiom.2020.103094 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Koyuncu D, Tavolara T, Gatti DM, Gower AC, Ginese ML, Kramnik I, et al. B cells in perivascular and peribronchiolar granuloma-associated lymphoid tissue and B-cell signatures identify asymptomatic Mycobacterium tuberculosis lung infection in Diversity Outbred mice. Infect Immun. 2024;92(7):e0026323. doi: 10.1128/iai.00263-23 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Achkar JM, Jenny-Avital ER. Incipient and subclinical tuberculosis: defining early disease states in the context of host immune response. J Infect Dis. 2011;204 Suppl 4(Suppl 4):S1179-86. doi: 10.1093/infdis/jir451 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Getahun H, Matteelli A, Abubakar I, Aziz MA, Baddeley A, Barreira D, et al. Management of latent Mycobacterium tuberculosis infection: WHO guidelines for low tuberculosis burden countries. Eur Respir J. 2015;46(6):1563–76. doi: 10.1183/13993003.01245-2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Silva Miranda M, Breiman A, Allain S, Deknuydt F, Altare F. The tuberculous granuloma: an unsuccessful host defence mechanism providing a safety shelter for the bacteria? Clin Dev Immunol. 2012;2012:139127. doi: 10.1155/2012/139127 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Sholeye AR, Williams AR, Loots DT, Tutu van Furth AM, van der Kuip M, Mason S. Tuberculous granuloma: emerging insights from proteomics and metabolomics. Front Neurol. 2022;13:804838. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Yang H, Bell TA, Churchill GA, Pardo-Manuel de Villena F. On the subspecific origin of the laboratory mouse. Nat gene. 2007;39(9):1100–7. [DOI] [PubMed] [Google Scholar]
- 9.Yang H, Wang JR, Didion JP, Buus RJ, Bell TA, Welsh CE, et al. Subspecific origin and haplotype diversity in the laboratory mouse. Nat Genet. 2011;43(7):648–55. doi: 10.1038/ng.847 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Kurtz SL, Rossi AP, Beamer GL, Gatti DM, Kramnik I, Elkins KL. The diversity outbred mouse population is an improved animal model of vaccination against tuberculosis that reflects heterogeneity of protection. mSphere. 2020;5(2):e00097-20. doi: 10.1128/mSphere.00097-20 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Churchill GA, Gatti DM, Munger SC, Svenson KL. The diversity outbred mouse population. Mamm Genome. 2012;23(9):713–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Rehman Akbar A, Sajjad U, Su Z, Li W, Xing F, Ruiz J, et al. CellEcoNet: decoding the Cellular language of pathology with deep learning for invasive lung adenocarcinoma recurrence prediction. arXiv 2025. Aug:arXiv-2508.
- 13.Sajjad U, Akbar AR, Su Z, Knight D, Frankel WL, Gurcan MN, et al. Morphology-aware prognostic model for five-year survival prediction in colorectal cancer from H&E whole slide images. arXiv 2025:arXiv:2510.14800. [DOI] [PMC free article] [PubMed]
- 14.Tavolara TE, Niazi MKK, Gower AC, Ginese M, Beamer G, Gurcan MN. Deep learning predicts gene expression as an intermediate data modality to identify susceptibility patterns in Mycobacterium tuberculosis infected Diversity Outbred mice. EBioMedicine. 2021;67:103388. doi: 10.1016/j.ebiom.2021.103388 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Hörst F, Rempe M, Heine L, Seibold C, Keyl J, Baldini G, et al. Cellvit: vision transformers for precise cell segmentation and classification. Med Image Anal. 2024;94:103143. [DOI] [PubMed] [Google Scholar]
- 16.Sajjad U, Khan Niazi K, Beamer G, Gurcan MN. Clinically interpretable imaging biomarker discovery in BCG-vaccinated mycobacterium tuberculosis-infected diversity outbred mice using deep learning. In: Medical Imaging 2025: Digital and Computational Pathology; 2025. pp. 23. 10.1117/12.3047288 [DOI]
- 17.Su Z, Akbar AR, Sajjad U, Parwani AV, Niazi MK. Streamline pathology foundation model by cross-magnification distillation. arXiv. 2025:arXiv:2509.23097.
- 18.Akbar AR, Sajjad U, Su Z, Li W, Xing F, Ruiz J, et al. Learning the language of histopathology images reveals prognostic subgroups in invasive lung adenocarcinoma patients. Res Sq. 2026:rs-3.
- 19.Tavolara TE, Niazi MKK, Beamer G, Gurcan MN. Identifying lung imaging biomarkers of BCG vaccination after infection with Mycobacterium tuberculosis. In: Medical Imaging 2021: Digital Pathology; 2021. p. 7. 10.1117/12.2581945 [DOI]
- 20.Tavolara TE, Niazi MKK, Ginese M, Piedra-Mora C, Gatti DM, Beamer G, et al. Automatic discovery of clinically interpretable imaging biomarkers for Mycobacterium tuberculosis supersusceptibility using deep learning. EBioMedicine. 2020;62:103094. doi: 10.1016/j.ebiom.2020.103094 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Ahmed M, Thirunavukkarasu S, Rosa BA, Thomas KA, Das S, Rangel-Moreno J, et al. Immune correlates of tuberculosis disease and risk translate across species. Sci Transl Med. 2020;12(528):eaay0233. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Niazi MKK, Dhulekar N, Schmidt D, Major S, Cooper R, Abeijon C, et al. Lung necrosis and neutrophils reflect common pathways of susceptibility to Mycobacterium tuberculosis in genetically diverse, immune-competent mice. Dis Model Mech. 2015;8(9):1141–53. doi: 10.1242/dmm.020867 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Kus P, Gurcan MN, Beamer G. Automatic detection of granuloma necrosis in pulmonary tuberculosis using a two-phase algorithm: 2D-TB. Microorganisms. 2019;7(12):661. doi: 10.3390/microorganisms7120661 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Gatti DM, Tyler AL, Mahoney JM, Churchill GA, Yener B, Koyuncu D, et al. Systems genetics uncover new loci containing functional gene candidates in Mycobacterium tuberculosis-infected Diversity Outbred mice. PLoS Pathog. 2024;20(6):e1011915. doi: 10.1371/journal.ppat.1011915 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Koyuncu D, Niazi MKK, Tavolara T, Abeijon C, Ginese ML, Liao Y, et al. CXCL1: a new diagnostic biomarker for human tuberculosis discovered using Diversity Outbred mice. PLoS Pathog. 2021;17(8):e1009773. doi: 10.1371/journal.ppat.1009773 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Zhou Z, Rahman SM, Tajbakhsh N, Liang J. “Unet++: A nested u-net architecture for medical image segmentation. In: Deep learning in medical image analysis and multimodal learning for clinical decision support: 4th international workshop, DLMIA 2018, and 8th international workshop, ML-CDS 2018, held in conjunction with MICCAI 2018, Granada, Spain, September 20, 2018, proceedings 4; 2018: Springer, pp. 3–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Stringer C, Wang T, Michaelos M, Pachitariu M. Cellpose: a generalist algorithm for cellular segmentation. Nat Method. 2021;18(1):100–6. [DOI] [PubMed]
- 28.Dundar MM, Badve S, Raykar VC, Jain RK, Sertel O, Gurca MN. A multiple instance learning approach toward optimal classification of pathology slides. In: 2010 20th International Conference on Pattern Recognition; 2010. pp. 2732–5. 10.1109/icpr.2010.669 [DOI]
- 29.Dundar MM, Badve S, Bilgin G, Raykar V, Jain R, Sertel O, et al. Computerized classification of intraductal breast lesions using histopathological images. IEEE Trans Biomed Eng. 2011;58(7):1977–84. doi: 10.1109/TBME.2011.2110648 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Sajjad U, Rezapour M, Su Z, Tozbikian GH, Gurcan MN, Niazi MKK. NRK-ABMIL: subtle metastatic deposits detection for predicting lymph node metastasis in breast cancer whole-slide images. Cancers (Basel). 2023;15(13):3428. doi: 10.3390/cancers15133428 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Ilse M, Tomczak J, Welling M. Attention-based deep multiple instance learning. Int Conf Mach Learn. 2018:2127–36.
- 32.Shen M, Li Y, Chen L, Yang Q. From mind to machine: the rise of manus ai as a fully autonomous digital agent. arXiv 2025;arXiv:2505.02024.
- 33.McKeen-Polizzotti L, Henderson KM, Oztan B, Bilgin CC, Yener B, Plopper GE. Quantitative metric profiles capture three-dimensional temporospatial architecture to discriminate cellular functional states. BMC Med Imaging. 2011;11:11. doi: 10.1186/1471-2342-11-11 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Lu MY, Chen B, Williamson DFK, Chen RJ, Zhao M, Chow AK, et al. A multimodal generative AI copilot for human pathology. Nature. 2024;634(8033):466–73. doi: 10.1038/s41586-024-07618-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Afzaal U, Su Z, Sajjad U, Stack T, Lu H, Niu S, et al. HistoChat: instruction-tuning multimodal vision language assistant for colorectal histopathology on limited data. Patterns (N Y). 2025;6(8):101284. doi: 10.1016/j.patter.2025.101284 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Afzaal U, Su Z, Sajjad U, Stack T, Rezapour M, Lu H, et al. Instruction tuning for colorectal histopathology: a multimodal vision-language assistant on human-evaluated data. In: Medical Imaging 2025: Digital and Computational Pathology; 2025. Vol. 13413, pp. 127–34. [DOI] [PMC free article] [PubMed]
- 37.Sajjad U, Akbar A, Khan H, Frankel W, Gurcan M, Parwani A, et al. 711 an AI virtual agent for prognostic interpretation: translating black-box predictions into clinical insights. Lab Invest. 2026;106(3):104998. doi: 10.1016/j.labinv.2025.104998 [DOI] [Google Scholar]
- 38.Amirizaniani M, Martin E, Sivachenko M, Mashhadi A, Shah C. Can LLMs reason like humans? Assessing theory of mind reasoning in LLMs for open-ended questions. In: Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, 2024. pp. 34–44. 10.1145/3627673.3679832 [DOI]
- 39.Li D, Cao S, Griggs T, Liu S, Mo X, Tang E, et al. LLMs can easily learn to reason from demonstrations structure, not content, is what matters! arXiv 2025:arXiv:2502.07374.
- 40.Ulrichs T, Kaufmann SHE. New insights into the function of granulomas in human tuberculosis. J Pathol. 2006;208(2):261–9. doi: 10.1002/path.1906 [DOI] [PubMed] [Google Scholar]
- 41.Marakalala MJ, Raju RM, Sharma K, Zhang YJ, Eugenin EA, Prideaux B, et al. Inflammatory signaling in human tuberculosis granulomas is spatially organized. Nat Med. 2016;22(5):531–8. doi: 10.1038/nm.4073 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Sawyer AJ, Patrick E, Edwards J, Wilmott JS, Fielder T, Yang Q, et al. Spatial mapping reveals granuloma diversity and histopathological superstructure in human tuberculosis. J Exp Med. 2023;220(6):e20221392. doi: 10.1084/jem.20221392 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Gregg RW, Maiello P, Borish HJ, Coleman MT, Reed DS, White AG, et al. Spatial and temporal evolution of lung granulomas in a cynomolgus macaque model of Mycobacterium tuberculosis infection. Radiol Infect Dis. 2018;5(3):110–7. doi: 10.1016/j.jrid.2018.08.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Lin PL, Rodgers M, Smith L, Bigbee M, Myers A, Bigbee C, et al. Quantitative comparison of active and latent tuberculosis in the cynomolgus macaque model. Infect Immun. 2009;77(10):4631–42. doi: 10.1128/iai.00592-09 [DOI] [PMC free article] [PubMed] [Google Scholar]
