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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

MedMLX: On-Device Medical Imaging AI for Apple Silicon

Arsalan Saleem, Alfredo Sandoval, Joseph Sandoval
4 links
medRxiv
Medical Image Segmentation Techniques
preprint

MedMLX: On-Device Medical Imaging AI for Apple Silicon

Arsalan Saleem, Alfredo Sandoval, Joseph Sandoval
preprint en

Abstract

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.

medRxiv
The University of Texas Medical Branch at Galveston (US)
Good health and well-being
Medical Image Segmentation Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon