HistoColAi: An Open-Source Web Platform for Collaborative Digital Histology Image Annotation with AI-Driven Predictive Integration

Cristian Camilo Pulgarín-Ospina, Rocío del Amor, Adrián Colomera, Julio Silva-Rodríguez, Valery NaranjoarXiv 2023

TL;DR

HistoColAi is an open-source, web-based platform designed to streamline digital pathology workflows by enabling collaborative annotation of gigapixel Whole Slide Images (WSIs). By integrating a semi-supervised AI model that generates predictive heatmaps, the platform drastically cuts down manual annotation times from hours to under three minutes per slide.

What Problem Does This Paper Address?

Digital pathology relies heavily on Whole Slide Images (WSIs)—massive, gigapixel-resolution digital scans of tissue biopsies. Training deep learning models to automatically detect diseases requires vast amounts of high-quality, annotated data. However, manually drawing boundaries around tumor regions on these massive images is incredibly tedious and time-consuming for pathologists.

Existing software tools are often desktop-bound, difficult to install, closed-source, or lack collaborative features. There is a critical need for an intuitive, open-source, web-based platform where multiple pathologists can collaborate seamlessly and leverage AI to accelerate the annotation process.

Methods

The authors introduce HistoColAi, a web platform built on a standard LAMP (Linux, Apache, MySQL, PHP) backend and a lightweight JavaScript frontend.

Figure 2: Application stack overview is divided into two parts: frontend (Client Side, A box); this part runs over the browser as a web service and is coded in HTML, CSS, and JS. The backend (Server Side, B and C box) runs over the server and has a LAMP stack; Linux as OS, Apache as a web server, PHP backend language, MySQL for a database.

Key technical components include:

  • WSI Handling: To serve massive gigapixel images over the web smoothly, HistoColAi uses pyvips to slice WSIs into Deep Zoom Image (.dzi) tile pyramids. These are rendered dynamically on the client side using the OpenSeadragon library, allowing smooth zooming and panning.
  • AI-Assisted Workflow: The platform incorporates a "teacher-student" semi-supervised deep learning paradigm. A "teacher" model is trained on a small set of expert-annotated tissue patches. This teacher then generates pseudo-labels for a larger unlabelled dataset to train a more robust "student" model.
  • Predictive Integration: The student model's patch-level predictions are combined using bilinear interpolation to create a WSI-level heatmap. This heatmap is thresholded into a binary mask and automatically loaded into the user interface as a pre-annotation. Pathologists-in-training can then quickly accept, reject, or refine these boundaries using Paper.js drawing tools.
Figure 1: Overview of the use case workflow. A Each WSI is converted to ”dzi” format and uploaded to the system for visualisation in a web environment. Once uploaded, expert pathologists annotate regions of interest (tumoral regions) on a few images. B The images annotated by the experts are used to train the deep learning model and automatically predict the tumoral regions of all WSIs (master-student approach). Note that the model is trained at patch-level due to the large size of the WSIs. C The patch-level predictions are combined to obtain a prediction map (heat map) over the entire WSI. These maps are thresholded to obtain masks of tumoral regions that are fed into the system. DThese masks, obtained by the model, are validated by a set of pathologists in training.

Datasets

The platform was validated using the CR-AI4SkIN dataset, which consists of 271 WSIs collected from two Spanish hospitals (University Clinic Hospital of Valencia and San Cecilio University Hospital in Granada). The dataset focuses on cutaneous spindle cell (CSC) neoplasms and spans seven distinct types of skin tumors, including both benign lesions (like leiomyomas and dermatofibromas) and malignant ones (like leiomyosarcomas and spindle cell melanomas).

Key Insights and Ideas

  • The Power of Pre-Annotation: Instead of starting from a blank canvas, giving annotators an AI-generated "rough draft" fundamentally changes the annotation bottleneck. It shifts the human role from tedious creation to efficient verification.
  • Web-Native Collaboration: Moving the workflow to the browser eliminates installation friction and enables crowdsourced multi-annotator setups, which are vital for establishing consensus on ambiguous medical images.
  • The "Atypia" Challenge: The AI model struggled most with dermatofibrosarcoma (dfs) and spindle cell melanoma (mfc). This is because these tumor cells often lack clear cellular atypia (abnormal appearance) or closely resemble normal scar tissue, highlighting exactly where human expertise remains absolutely indispensable.

Key Results

  • Model Performance: The embedded deep learning model achieved solid baseline performance on the expert-annotated subset, with an overall accuracy of 87.46% and an F1-score of 90.63%.
  • Time Savings: In a usability study with 10 pathologists-in-training, the AI-driven pre-annotations reduced the average time to analyze and label a massive WSI to just 2 minutes and 49 seconds.
  • High Agreement: There was strong agreement between the AI model's predictions and the non-expert consensus, yielding a tumor detection recall ($Recall_T$) of 90.66%.

Limitations and Future Work

While HistoColAi successfully demonstrates a massive speedup, the authors note that less experienced pathologists still frequently confuse closely related benign and malignant tissues (e.g., mislabeling a malignant leiomyosarcoma as a benign leiomyoma). Future work will focus on improving the AI model's discriminative power on these borderline cases and expanding the platform's deployment to handle other cancer modalities beyond skin neoplasms.

Summary updated

BibTeX
@misc{pulgarinospina2023histocolai,
  author = {Cristian Camilo Pulgarín-Ospina and Rocío del Amor and Adrián Colomera and Julio Silva-Rodríguez and Valery Naranjo},
  title = {{HistoColAi: An Open-Source Web Platform for Collaborative Digital Histology Image Annotation with AI-Driven Predictive Integration}},
  year = {2023},
  eprint = {2307.07525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.07525},
}
Figure