Currently submitted to: JMIR Medical Informatics
Date Submitted: Apr 29, 2026
Open Peer Review Period: May 13, 2026 - Jul 8, 2026
(closed for review but you can still tweet)
NOTE: This is an unreviewed Preprint
Warning: This is a unreviewed preprint (What is a preprint?). Readers are warned that the document has not been peer-reviewed by expert/patient reviewers or an academic editor, may contain misleading claims, and is likely to undergo changes before final publication, if accepted, or may have been rejected/withdrawn (a note "no longer under consideration" will appear above).
Peer review me: Readers with interest and expertise are encouraged to sign up as peer-reviewer, if the paper is within an open peer-review period (in this case, a "Peer Review Me" button to sign up as reviewer is displayed above). All preprints currently open for review are listed here. Outside of the formal open peer-review period we encourage you to tweet about the preprint.
Citation: Please cite this preprint only for review purposes or for grant applications and CVs (if you are the author).
Final version: If our system detects a final peer-reviewed "version of record" (VoR) published in any journal, a link to that VoR will appear below. Readers are then encourage to cite the VoR instead of this preprint.
Settings: If you are the author, you can login and change the preprint display settings, but the preprint URL/DOI is supposed to be stable and citable, so it should not be removed once posted.
Submit: To post your own preprint, simply submit to any JMIR journal, and choose the appropriate settings to expose your submitted version as preprint.
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
An Open-Source Python MRI Viewer for Volumetric Brain Imaging Education in Radiology: Tutorial
ABSTRACT
Background:
Background. Radiologists routinely interpret volumetric imaging studies in clinical picture archiving and communication systems (PACS), but few have direct experience with the raw data formats, programming libraries, and code-based tools that underlie the artificial intelligence (AI) systems they are increasingly asked to evaluate and deploy. Recent multi-institutional surveys demonstrate that radiology residents favor inclusion of formal AI and machine learning instruction in residency curricula and prefer hands-on learning over lectures alone, yet most existing curricula remain didactic. Open-source tools that lower the technical barrier to volumetric image manipulation are needed to support this shift toward applied informatics literacy.
Objective:
Objective. This tutorial describes the design, implementation, and educational application of a lightweight, browser-executable Python-based magnetic resonance imaging (MRI) viewer intended to introduce radiology trainees, medical students, and AI researchers to volumetric data structures and code-based image manipulation. The objective is to lower the technical and infrastructural barrier to imaging informatics literacy through a reproducible, open-source, openly licensed tool that requires no local software installation.
Methods:
Methods. The viewer was implemented in Python 3.13 using NiBabel for Neuroimaging Informatics Technology Initiative (NIfTI) parsing, NumPy for array manipulation, Plotly for interactive grayscale slice rendering, and scikit-image for marching cubes surface extraction. The tool comprises two modules: a scroll-based 2D slice viewer with axial, sagittal, and coronal navigation, and a 3D mesh viewer for volumetric surface visualization. The publicly available Stanford Artificial Intelligence in Medicine and Imaging (AIMI) Brain Metastasis dataset was used as the volumetric data source. The complete tool was deployed in a Google Colab cloud notebook to remove local installation requirements.
Results:
Results. The viewer loads NIfTI-formatted MRI volumes (256 × 256 × 150 voxels) and renders interactive multiplanar grayscale slices with mouse-scroll and button-based navigation, replicating the slice-traversal experience of clinical PACS without requiring DICOM infrastructure or proprietary software. The 3D mesh module uses an intensity-thresholded marching cubes isosurface to produce a rotatable volumetric rendering. The complete codebase, including the data loading workflow, viewer modules, and design rationale, is available as an interactive Colab notebook accessible through any modern web browser.
Conclusions:
Conclusions. This tutorial provides radiologists, trainees, and imaging researchers with a code-level entry point into volumetric data manipulation. By using openly licensed libraries and a publicly available dataset, the viewer supports reproducible educational deployment, prototyping for downstream AI workflows, and interdisciplinary collaboration between radiologists and developers. Limitations include the absence of DICOM workflow support, formal usability evaluation, and segmentation or registration capability.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.