Agent SPI-WSI: In context learning for computationally spatial pathwayinferring on whole slide histopathology images conditioned on bulk RNAsequencing using pathologist in the loop.
Vashistha, R.; Brosda, S.; Belle, C. J.; Aoude, L. G.; Waddell, N.; Ghosh, S.; Cooper, C.; Barbour, A. P.; Vegh, V.
Show abstract
Bulk RNA sequencing, while cost-effective compared to high-resolution spatial transcriptomics, averages gene expression across heterogeneous cell populations and thus lacks spatial context. To address this limitation, we introduce a structured, human-guided, multi-stage computational AI agent SPI-WSI, that iteratively generates, evaluates, and refines biologically informative natural-language prompts, thereby localizing bulk-derived pathway activity within histopathology slides. Our pipeline uses in-context prompting in large language models (LLMs) to adapt dynamically to the task of prompt generation. Candidate prompts are first produced by the LLM and then subjected to a secondary pathologist critiquing by the same LLM that cross-references PubMed to ensure both biological plausibility and specificity. Each approved prompt against their image tile is scored using the vision language foundation model (CONCH). We benchmarked different LLMs, Gemini 2.0, Gemini 2.5, Claude 3.7 and Claude 4.0, and found that Claude 4.0 achieves the highest cosine similarity (0.7) between image and prompt embeddings. Pathologist-driven scoring and manual segmentation confirm that our method accurately identifies clusters of spatial pathological morphologies. In addition, we have validated the method against ground-truth spatial transcriptomic spots using inhouse and public datasets. Overall, the trend emphasized by ground-truth spatial RNA sequencing prompts is closely aligned with those from bulk prompt. This pathologist-in-the-loop workflow enables large-scale, reproducible tissue profiling and grounds AI-driven spatial annotations.
Matching journals
The top 9 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Teacher-student collaborated multiple instance learning for pan-cancer PDL1 expression prediction from histopathology slides 95%
- METI: Deep profiling of tumor ecosystems by integrating cell morphology and spatial transcriptomics 95%
- ROSIE: AI generation of multiplex immunofluorescence staining from histopathology images 95%
Similar papers in this journal
- SHEST: Single-cell-level artificial intelligence from haematoxylin and eosin morphology for cell type prediction and spatial transcriptomics reconstruction 96%
- StereoMM: A Graph Fusion Model for Integrating Spatial Transcriptomic Data and Pathological Images 94%
- Benchmarking computational methods for multi-omics biomarker discovery in cancer 94%
Similar papers in this journal
- SpaGene: A Deep Adversarial Framework for Spatial Gene Imputation 92%
- Comparative Analysis of Pathology Foundation Models for Automated Detection of Tertiary Lymphoid Structures in H&E-Stained Digital Pathology Images 92%
- PatternExtract: A facile, scalable pipeline for point pattern generation from spatial imaging data 92%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.