Abstract
Magnetic resonance imaging (MRI) has great potential to improve prostate cancer diagnosis. It can spare men with a normal exam from undergoing invasive biopsy while making biopsies more accurate in men with lesions suspicious for cancer. Yet, the subtle differences between cancer and confounding conditions, render the interpretation of MRI challenging. The tissue collected from patients that undergo pre-surgical MRI and radical prostatectomy provides a unique opportunity to correlate histopathology images of the entire prostate with MRI in order to accurately map the extent of prostate cancer onto MRI. Here, we introduce the RAPSODI (framework for the registration of radiology and pathology images. RAPSODI relies on a three-step procedure that first reconstructs in 3D the resected tissue using the serial whole-mount histopathology slices, then registers corresponding histopathology and MRI slices, and finally maps the cancer outlines from the histopathology slices onto MRI. We tested RAPSODI in a phantom study where we simulated various conditions, e.g., tissue specimen rotation upon mounting on glass slides, tissue shrinkage during fixation, or imperfect slice-to-slice correspondences between histology and MRI. Our experiments showed that RAPSODI can reliably correct for rotations within $\pm15^{\circ}$ and shrinkage up to 10%. We also evaluated RAPSODI in 89 patients from two institutions that underwent radical prostatectomy, yielding 543 histopathology slices that were registered to corresponding T2 weighted MRI slices. We found a Dice coefficient of 0.98$ \pm $0.01 for the prostate, prostate boundary Hausdorff distance of 1.71$ \pm $0.48 mm, a urethra deviation of 2.91$ \pm $1.25 mm, and a landmark deviation of 2.88$ \pm $0.70 mm between registered histopathology images and MRI. Our robust framework successfully mapped the extent of disease from histopathology slices onto MRI.
Introduction
While Magnetic Resonance Imaging (MRI) is a powerful tool for detecting prostate cancer, interpreting these images is notoriously difficult. Subtle differences between cancerous tissue and benign confounding conditions lead to high variability among even expert radiologists. To improve diagnostic accuracy and train robust machine learning models, researchers require a reliable "ground truth."
Histopathology—the examination of thin slices of resected prostate tissue under a microscope—serves as this gold standard. However, mapping 2D histology slices back to a 3D MRI volume is technically challenging. Resected tissue undergoes significant deformation: it rotates when mounted on slides, shrinks during chemical fixation, and warps once removed from the body. The RAPSODI framework was developed to automate this registration process, providing a robust and repeatable method for spatial integration.
The RAPSODI Framework
The RAdiology Pathology Spatial Open-Source multi-Dimensional Integration (RAPSODI) framework utilizes a hierarchical three-step workflow to ensure high-fidelity alignment:
- 3D Histology Reconstruction: Serial 2D histopathology slices are aligned to one another to create a coherent 3D volume. This step ensures internal consistency of the tissue stack before attempting to match it to the MRI.
- Pairwise MRI-Histology Registration: The reconstructed volume is registered to T2-weighted MRI. This involves rigid and affine transformations to correct for global rotation and shrinkage, followed by deformable registration using Free-Form Deformations (FFD) to account for local tissue warping.
- Label Mapping: Pathologist-defined cancer outlines are projected from the histology coordinates directly onto the MRI space.
RAPSODI is implemented as an open-source plugin for 3D Slicer, facilitating its use in clinical research environments.
Experimental Evaluation
The framework was validated using three distinct datasets:
- Digital Phantom: A simulated 3D model used to stress-test the algorithm against known rotations (0-40°), shrinkage (0-30%), and slice misalignments.
- Internal Cohort (C1): 74 patients from Stanford Hospital. These cases utilized patient-specific 3D-printed molds to guide physical slicing, helping maintain slice correspondence with the MRI.
- Public Cohort (C2): 16 patients from The Cancer Imaging Archive (TCIA). This cohort presented greater challenges due to endorectal coil deformations and quadrant-based histology.
Results and Clinical Insights
RAPSODI demonstrated high precision across both simulated and real-world data. In the patient cohorts, the framework achieved a Dice similarity coefficient of 0.98 ± 0.01 for the prostate gland, indicating nearly perfect overlap. The boundary accuracy (Hausdorff distance) was measured at 1.71 ± 0.48 mm, while internal landmark deviation was 2.88 ± 0.70 mm.
Beyond technical metrics, the framework provides critical clinical insights. Qualitative results confirm that cancer borders visible on MRI often underestimate the true extent of the tumor as revealed by histology. RAPSODI allows for the precise quantification of this discrepancy, which is vital for improving surgical planning and focal therapy.
Conclusion and Future Work
RAPSODI offers a robust, automated solution for registering radiology and pathology images, taking approximately 6-8 minutes per patient. While highly accurate, the framework faces challenges at the prostate apex and base, where rapid shape changes make slice correspondence difficult. Future work will focus on improving accuracy in these regions and reducing the minimal manual initialization currently required for unusual artifacts. The source code has been released to support multi-institutional research and the development of next-generation diagnostic AI.
Summary updated