Validating a low-cost, open-source, locally manufactured workstation and computational pipeline for automated histopathology evaluation using deep learning

Divya Choudhury, James M. Dolezal, Emma Dyer, Sara Kochanny, Siddi Ramesh, Frederick M. Howard, Jayson R. Margalus, Amelia Schroeder, Jefree J. Schulte, Marina Chiara Garassino, Jakob Nikolas Kather, Alexander T. PearsonbioRxiv 2023 · DOI

TL;DR

This paper introduces a remarkably affordable ($200 total) open-source digital pathology workstation built around a Raspberry Pi. It demonstrates that this low-cost setup can achieve comparable deep learning model performance for cancer classification as expensive, standard institutional hardware, paving the way for more accessible cancer diagnostics globally.

What Problem Does This Paper Address?

The paper tackles the significant challenge of equitable global cancer care, particularly in low-resource settings. While advancements in digital pathology and AI offer powerful tools for cancer diagnosis and personalized medicine, their high cost and reliance on expensive hardware create a substantial "diagnostic gap" between high-income and low-income regions. This disparity means that fewer people in lower-income countries benefit from these life-saving technologies, despite the increasing cancer burden in these areas. The authors aim to bridge this gap by developing and validating a low-cost, open-source alternative.

Methods

The core of this work is the development of a low-cost digital pathology workstation and computational pipeline. The hardware comprises a 3D-printed OpenFlexure microscope ($150), a Raspberry Pi 4B ($35), and a Raspberry Pi camera module ($30), totaling around $200. This setup is paired with open-source software, including the Raspbian-OpenFlexure OS and Slideflow, a deep learning inference engine.

For image acquisition, the OpenFlexure microscope captures partial-slide images at 10x magnification. These images, while exhibiting some blur and color distortion, are processed using Slideflow. The deep learning models (an Xception-based architecture) are trained on existing datasets and then validated using images captured by both the low-cost OpenFlexure system and a high-end, commercial 3DHISTECH scanner. The computational analysis is performed on the Raspberry Pi itself, demonstrating real-time inference capabilities.

Datasets

  • TCGA (The Cancer Genome Atlas): Used for training deep learning models.
  • HNSCC (Head and Neck Squamous Cell Carcinoma) dataset: 472 WSIs for HPV status prediction.
  • Lung Cancer dataset: 941 WSIs for lung cancer subtype classification (adenocarcinoma vs. squamous cell carcinoma).
  • UCMC (University of Chicago Medical Center) institutional dataset: Used for external validation of the trained models.
  • Ten HNSCC slides with known HPV status (5 positive, 5 negative).
  • Ten lung cancer slides with known subtypes (5 adenocarcinoma, 5 squamous cell carcinoma).

Key Insights and Ideas

  • Democratizing Diagnostics: The most significant insight is that high-quality digital pathology analysis, powered by deep learning, is achievable with extremely low-cost, open-source hardware. This drastically lowers the barrier to entry for implementing advanced cancer diagnostics.
  • Performance Equivalence: The study demonstrates that images captured with the $200 OpenFlexure system yield comparable deep learning model performance to those captured by a $200,000 institutional scanner. This suggests that significant cost reductions do not necessarily equate to a loss in diagnostic accuracy for certain tasks.
  • Raspberry Pi Power: The Raspberry Pi, a ubiquitous and inexpensive computing platform, is shown to be capable of real-time deep learning inference for histopathology images, making it a viable option for low-resource settings.
  • Open-Source Ecosystem: The reliance on open-source software (Raspbian, Slideflow, Dear ImGui) is crucial for the affordability and accessibility of the entire pipeline.

Key Results

  • Correlation: The correlation (R²) between predictions made on images from the OpenFlexure device and the 3DHISTECH scanner was high: 0.97 for HNSCC HPV status and 0.87 for lung cancer subtype.
  • AUROC:
    • HNSCC HPV Status: Patient-level AUROC was 0.92 (3DHISTECH) vs. 1.00 (OpenFlexure); Tile-level AUROC was 0.71 (3DHISTECH) vs. 0.75 (OpenFlexure).
  • Lung Cancer Subtype: Patient-level AUROC was 1.0 (3DHISTECH) vs. 1.0 (OpenFlexure); Tile-level AUROC was 0.91 (3DHISTECH) vs. 0.95 (OpenFlexure).
  • Inference Speed: The standard Xception architecture achieved ~1 image/second on the Raspberry Pi. Faster architectures like MobileNet achieved up to 28.50 img/sec at smaller tile sizes.
  • WSI Processing: Whole slide image (WSI) predictions on the Raspberry Pi took approximately 15 minutes for a typical slide, utilizing 4GB of RAM and requiring a 1GB swap file.

Limitations and Future Work

  • Validation Data Size: The study acknowledges the small quantity of validation data used for testing.
  • Limited Models Tested: Only a few deep learning models were evaluated.
  • Informative Regions: The study intentionally used highly informative regions of tissue for image capture, which may not fully represent the challenges of analyzing entire slides with varying tissue quality.
  • Site/Batch Effects & Domain Shift: Potential issues related to data distribution and domain shift were not explored.
  • Higher-Level Features: The ability to identify and predict higher-level features (e.g., receptor status, microsatellite instability) from lower-resolution images was not investigated.
  • Demographic Representation: The TCGA training data primarily comes from the US and Europe, which may limit model performance on populations with different demographic profiles.
  • Future Work:
    • Image Quality Optimization: Exploring strategies to computationally augment lower-quality images or train models on datasets reflecting low-cost device quality.
  • Stain Normalization: Investigating the impact of stain normalization on model performance.
  • Design Improvements: Ongoing work on the OpenFlexure microscope to improve image quality, reduce costs, and enhance ease of assembly and transport, including an automated WSI capture mechanism.
  • Broader Applications: Testing prediction of higher-level phenotypes, grading, and treatment response, and expanding to other cancer types.

Summary updated

Abstract

Abstract Deployment and access to state-of-the-art diagnostic technologies remains a fundamental challenge in providing equitable global cancer care to low-resource settings. The expansion of digital pathology in recent years and its interface with computational biomarkers provides an opportunity to democratize access to personalized medicine. Here we describe a low-cost platform for digital side capture and computational analysis composed of open-source components. The platform provides low-cost ($200) digital image capture from glass slides and is capable of real-time computational image analysis using an open-source deep learning (DL) algorithm and Raspberry Pi ($35) computer. We validate the performance of deep learning models’ performance using images captured from the open-source workstation and show similar model performance when compared against significantly more expensive standard institutional hardware.
BibTeX
@misc{choudhury2023validating,
  author = {Divya Choudhury and James M. Dolezal and Emma Dyer and Sara Kochanny and Siddi Ramesh and Frederick M. Howard and Jayson R. Margalus and Amelia Schroeder and Jefree J. Schulte and Marina Chiara Garassino and Jakob Nikolas Kather and Alexander T. Pearson},
  title = {{Validating a low-cost, open-source, locally manufactured workstation and computational pipeline for automated histopathology evaluation using deep learning}},
  year = {2023},
  doi = {10.1101/2023.04.19.537544},
  howpublished = {bioRxiv},
}
Figure