Search bioRxiv⌕ Search

bioRxiv · 10.1101/2023.06.02.543494

HistoMIL: a Python package for training Multiple Instance Learning models on histopathology slides

Abstract

Haematoxilin and eosin (H&E) stained slides are commonly used as the gold standard for disease diagnosis. Remarkable progress in the deep learning field in recent years has enabled the detection of complex molecular patterns within such histopathology slides, suggesting automated approaches could help inform pathologists decisions. In this context, Multiple Instance Learning (MIL) algorithms have been shown to outperform Transfer Learning (TL) based methods for a variety of tasks. However, there is still a considerable complexity to implementing and using such methods for computational biology research and clinical practice. We introduce HistoMIL, a Python package designed to simplify the implementation, training, and inference process of MIL-based algorithms for computational pathologists and biomedical researchers. In HistoMIL, we have integrated a self-supervised learning-based module to train the feature encoder, a full pipeline encompassing TL as well as three MIL algorithms, namely ABMIL (1), DSMIL (2), and TransMIL (3). By utilising the PyTorch Lightning framework (4), HistoMIL enables effortless customization of training intricacies and implementation of novel algorithms. We illustrate the capabilities of HistoMIL by building predictive models for 2,487 cancer hallmark genes on breast cancer histology slides from The Cancer Genome Atlas, on which we demonstrate AUROC performances of up to 85%. Cell proliferation processes were most easily detected, shedding light on the opportunities but also limitations of applying deep learning for gene expression detection. The HistoMIL package is proposed as a tool to simplify the implementation and usage of deep learning tasks for researchers.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Pan, S., Secrier, M.. 2023-06-06. HistoMIL: a Python package for training Multiple Instance Learning models on histopathology slides. https://doi.org/10.1101/2023.06.02.543494

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

NAE1-Dependent Protein Neddylation Preserves Endothelial Identity and Vascular Integrity

Background: Endothelial dysfunction is a central driver of cardiovascular and inflammatory diseases, yet the post-translational mechanisms that preserve endothelial homeostasis remain incompletely understood. Protein neddylation, the covalent conjugation of a ubiquitin-like modifier, regulates diverse cellular processes, yet its physiological role in the vascular endothelium remains unknown. This study investigated whether protein neddylation is required to preserve endothelial identity and vascular homeostasis. Methods: We generated tamoxifen-inducible endothelial-specific Nae1 knockout mice to inhibit neddylation and combined bulk RNA sequencing, single-cell and single-nucleus transcriptomics, quantitative proteomics, biochemical analyses, and gain- and loss-of-function approaches to define the role of endothelial neddylation in vascular homeostasis and inflammatory injury. Results: Endothelial-specific Nae1 deletion caused rapid mortality associated with vascular leakage, platelet accumulation, inflammation, and multi-organ injury. Multi-omics analyses demonstrated profound loss of endothelial identity, characterized by suppression of core endothelial programs and activation of inflammatory, procoagulant, and pyroptotic pathways. Single-cell analyses revealed progressive endothelial dysfunction culminating in depletion of the endothelial population and remodeling of the vascular niche. Mechanistically, endothelial neddylation deficiency activated gasdermin D (GSDMD)- and gasdermin E (GSDME)-dependent pyroptosis, whereas dual inhibition of GSDMD and GSDME markedly attenuated inflammatory transcriptomic remodeling, vascular injury, hepatocyte death, immune cell infiltration, and platelet accumulation. Translational analyses demonstrated reduced endothelial neddylation in experimental endotoxemia and decreased expression of neddylation pathway components in human atherosclerosis and COVID-19 datasets. Conversely, restoration of endothelial neddylation partially reversed inflammatory endothelial transcriptomic reprogramming in vivo. Conclusions: NAE1-dependent protein neddylation is an essential regulator of endothelial identity and vascular integrity. Loss of endothelial neddylation promotes gasdermin-dependent pyroptosis and thrombo-inflammatory vascular injury, whereas restoration of the neddylation pathway mitigates inflammatory endothelial dysfunction. These findings identify endothelial neddylation as a fundamental mechanism maintaining vascular homeostasis and a potential therapeutic target for cardiovascular and inflammatory diseases.

pathology↗

Compartmentalization of Transcripts During Antibody Mediated Rejection in Renal Transplants

We used Digital Spatial Profiling to localize transcripts in glomeruli and tubulointerstitial compartments in a series of 4 biopsies from a patient diagnosed with acute antibody-mediated rejection (AMR). The 4 biopsies included: a baseline protocol biopsy 25 days after transplantation; a 3 month biopsy diagnosed as acute AMR; a biopsy 4 months after treatment with intravenous immunoglobulin (IVIg) showing ongoing AMR with a mild increase in tubulointerstitial fibrosis; and a biopsy 7 months later with resolution of glomerulitis. Glomeruli were captured in regions of interest (ROIs) for whole exome sequencing. Compared to baseline glomeruli, 17 transcripts were increased and 39 decreased in the 3 subsequent biopsies (> 2-fold and p < 0.005). Increased signatures for macrophages correlated with increased numbers of CD68 positive cells imaged in the corresponding glomeruli. The Human Cell Atlas classified the 39 transcripts decreased during the initial rejection as characteristic of podocytes and this gene signature did not recover in the subsequent 2 biopsies. Additional ROIs encompassing areas of tubulointerstitial fibrosis disclosed signatures for memory B cells in the acute AMR sample. Treatment with IVIg did not eliminate the B cell signal in the subsequent biopsy. Collectively these data demonstrate a compartmentalization of injury processes. Innate immune cells including macrophages were located in glomerular and tubulointerstitial compartments, whereas, adaptive immune cells including memory B cells localized to the tubulointerstitial compartment. Furthermore, podocyte transcripts were decreased in glomeruli and did not recover with treatment indicating a vulnerability of these cells to acute AMR.

pathology↗

Multiparametric grading of glaucoma severity by histopathology can enable post-mortem substratification of disease state

Neurodegeneration in glaucoma patients is clinically identified through longitudinal assessment of structure-function changes, including intraocular pressure, cup-to-disc ratios from fundus images, and optical coherence tomography imaging of the retinal nerve fiber layer. Use of human post-mortem ocular tissue for basic research is rising in the glaucoma field, yet there are challenges in assessing disease stage and severity, since tissue donations with informed consent are often unaccompanied by detailed pre-mortem clinical information. Further, the interpretation of disease severity based solely on anatomical and morphological assessments by histology can be affected by differences in death-to-preservation time and tissue processing. These are difficult confounders that cannot be easily controlled. As pathogenesis and molecular mechanisms can vary depending on the stage and severity of glaucoma, there is a need for the field to maximize use of donated tissue to better understand the molecular mechanisms of glaucoma and develop new therapeutic hypotheses. Further, there is a lack of consensus around the molecular RNA and protein markers that can be used to classify glaucoma severity. Here, we describe a multiparametric grading system that combines structural measurements of the retinal nerve fiber layer with linear regression and principal component analyses of molecular markers of retinal ganglion cells and glia (RBPMS, NEFL, IBA1 and GFAP) to stratify post-mortem glaucoma eyes by the severity of disease. Our findings show that a quantitative grading approach can stratify post-mortem glaucoma samples with minimal clinical histories into at least three severity groups and suggest that this type of approach may be useful for researchers aiming to maximize insights derived from eye bank donor tissue.

pathology↗