MedMLX: On-Device Medical Imaging AI for Apple Silicon
Background: Medical imaging research increasingly combines specialized artificial intelligence models for segmentation, detection, image synthesis and report generation. For three-dimensional CT and MRI, these workflows typically run on NVIDIA GPUs with substantial memory. On-device AI on widely available Apple Silicon computers could broaden access to these models for clinical researchers. These computers share a large memory pool between the CPU and GPU, which suits workflows that combine several models. However, few established imaging models run natively on Apple Silicon. Adapting a model to new hardware also requires verifying that its results match the original software. Methods: We developed MedMLX, a collection of 21 established medical imaging models rewritten for Apple Silicon in MLX, Apple's machine learning framework. The collection includes nnU-Net, TotalSegmentator, MedSAM2 and SAM 3. The models segment organs and tumors, detect lung nodules, generate synthetic images and draft radiology reports from CT, MRI, PET/CT, radiographs and endoscopic images. Using public cases from 11 imaging datasets, we compared the models' results with those of the original software run on an Intel CPU and an NVIDIA GPU. Agreement required a Dice coefficient of at least 0.99 for every segmentation label and equivalent criteria for other outputs. We measured memory use and processing time on an Apple M1 Max computer with 64 GB of memory. Results: MedMLX agreed with the original software in 211 of 212 comparisons. The single exception was a brain MRI segmentation. On this case, the original software itself gave different results on the two devices. We illustrated sequential workflows, including anatomical segmentation of a synthetic brain MRI and lesion synthesis guided by organ segmentation. With a memory-saving setting, 19 of the 21 models used less than 16 GB of memory. This setting reduced memory use by a median of 49% and increased processing time by a median of 13%. Conclusions: MedMLX enables on-device AI with established medical imaging models on Apple Silicon computers rather than specialized NVIDIA hardware. The models agree closely with the original software, and most need less than 16 GB of memory.
Authors
- Arsalan Saleem (ORCID: https://orcid.org/0000-0002-9213-967X)
- Alfredo Sandoval (ORCID: https://orcid.org/0000-0002-7230-8325)
- Joseph Sandoval (ORCID: https://orcid.org/0009-0000-9651-4169)
Institutions
- The University of Texas Medical Branch at Galveston (US)
Publication Details
- Journal
- medRxiv
- Published
- 2026-10-29
- DOI
- https://doi.org/10.64898/2026.10.28.26366762
- Primary Topic
- Medical Image Segmentation Techniques
- Type
- preprint