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.
Key technical components include:
- WSI Handling: To serve massive gigapixel images over the web smoothly, HistoColAi uses
pyvipsto slice WSIs into Deep Zoom Image (.dzi) tile pyramids. These are rendered dynamically on the client side using theOpenSeadragonlibrary, 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.jsdrawing tools.
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