/ Модель

Характеристики

Лицензия
CC BY 4.0
Библиотека
keras
Опубликована
17 сен 2026

ivcmassist

Сегментация изображенийИзображение → mask

Набор ResUNet-моделей на Keras для сегментации роговичных нервов и дендритных клеток на изображениях прижизненной конфокальной микроскопии.

96скачиваний за 30 дней0лайковвеса обновлены17 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель yansonng/ivcmassist — набор весов ResUNet на Keras 3 для сегментации роговичных нервов подбазального сплетения и дендритных клеток на мозаиках прижизненной конфокальной микроскопии (IVCM). Для нервов опубликованы две версии, обученные на разном количестве фрагментов мозаик; модель дендритных клеток общая для обеих версий. Сети принимают одноканальные фрагменты размером 384×384 пикселя и выделяют фон и нервы либо фон и два типа дендритных клеток. Для обработки больших мозаик изображения нужно разбивать на фрагменты и объединять маски.

Модель предназначена для исследовательского анализа изображений IVCM, включая построение масок нервных волокон и дендритных клеток. Лицензия — CC BY 4.0. Модель не является медицинским устройством и не валидирована для клинических решений; обучение проводилось на мозаиках с конкретным полем зрения, масштабом и слоем роговицы. Изображения с другими устройствами, увеличением или слоями не проверялись, а мозаики меньше входного размера сегментировать нельзя.

Сценарии применения

  • создание масок роговичных нервов на мозаиках IVCM
  • сегментация дендритных клеток первого типа на изображениях IVCM
  • сегментация дендритных клеток второго типа на изображениях IVCM
  • подготовка масок для исследовательского анализа роговичного нервного сплетения
  • обработка больших мозаик IVCM фрагментами 384×384 пикселя

Ограничения

Модель не является медицинским устройством и не валидирована для клинических решений. Она обучена на IVCM-мозаиках с определёнными параметрами съёмки; другие устройства, масштабы и слои роговицы не проверялись, а изображения меньше 384×384 пикселя обработать нельзя.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

IVCM mosaic segmentation: corneal nerves and dendritic cells

ResUNet weights for segmenting corneal sub-basal nerves and dendritic cells in in-vivo confocal microscopy (IVCM) mosaics. Mosaics are much larger than the models' 384x384 input, so they are segmented tile by tile and the tiles are blended back together. The code that does this will be linked here once its repository is public.

Files

Two sets are published, v1 and v2. They differ only in the nerve model; the dendritic cell model is the same file in both.

FileUsed inSegmentsSizeSHA-256
mosaic_nerves_v1.kerasv1corneal nerves133.0 MBf9e6bdca92b877e92f4ed8b609ae0ec36519e04f93744c84d5dabf535e33e197
mosaic_nerves_v2.kerasv2corneal nerves133.0 MB2f4b2f9ec62fd0f37567505021d87db435af02ae91e59b56285f4e7fb6badde1
mosaic_dc.kerasv1 and v2dendritic cells, types 1 and 2133.3 MBd91a188d3c69094f9686221f52685fc643ac803073480da2d9f5c887fc43b58c
  • v1: nerve model trained on 1,213 IVCM images plus 637 mosaic crops.
  • v2: newer nerve model trained on 16,313 mosaic crops.

Models

Both architectures are residual U-Nets taking a 384x384 single-channel tile, but they are not the same network:

ModelEncoder levelsBase filtersClassesMask valuesParameters
nerves (v1, v2)464background, nerve0, 25533,156,994
dendritic cells532background, type 1, type 20, 127, 25533,227,235

The files are Keras 3 archives with the optimizer state removed. Load them without compiling; no custom objects are needed:

import os
os.environ["KERAS_BACKEND"] = "torch"
import keras

model = keras.models.load_model("mosaic_nerves_v2.keras", compile=False)

Usage

To segment a whole mosaic and remove dendritic cells from the nerve mask, use the tiling code from the repository:

hf download yansonng/ivcmassist --local-dir weights

python scripts/predict.py --image mosaic.tif --model weights/mosaic_nerves_v2.keras --output nerves.tif
python scripts/predict.py --image mosaic.tif --model weights/mosaic_dc.keras --output dc.tif
python scripts/subtract_dc.py --nerves-mask nerves.tif --dc-mask dc.tif --output nerves_clean.tif

The nerve models label part of each dendritic cell as nerve. Measure nerves on nerves_clean.tif; the raw nerve mask gives inflated nerve lengths.

Relationship to the article

This work builds on Ji, Song et al., Scientific Reports 16, 1620 (2026), which evaluated segmentation on individual IVCM images. The article was published on 2026-01-13. Both mosaic nerve models were trained after that (v1 on 2026-02-15, v2 on 2026-05-18), so neither is the nerve model evaluated there, and the article reports no mosaic results. The dendritic cell model was trained earlier, on 2025-04-17.

Intended use and limitations

  • Research use only. Not a medical device and not validated for clinical decisions.
  • Trained on IVCM mosaics of the corneal sub-basal nerve plexus with a 400 um field of view sampled at 384 px (about 1.042 um/px). Other devices, magnifications and corneal layers have not been tested.
  • The released code reproduces the study's reference masks bit-for-bit on CUDA. On CPU a few borderline pixels can differ (measured: 0.0015%).
  • A mosaic smaller than 384x384 pixels cannot be segmented.

Citation

@article{ji2026deep,
  title   = {Deep learning-based segmentation and density estimation of corneal nerves and dendritic cells from In Vivo confocal microscopy images},
  author  = {Ji, Meichen and Song, Yan and Roth, Jenny and Dashti, Ava and Lazo, Jorge and Lincke, Alisa and Macedo, Ant{\'o}nio Filipe Teixeira and L{\"o}we, Welf and Lagali, Neil},
  journal = {Scientific Reports},
  volume  = {16},
  number  = {1},
  pages   = {1620},
  year    = {2026},
  doi     = {10.1038/s41598-025-34412-6}
}

License

The weights are released under CC-BY-4.0. The code in the repository is licensed separately under Apache-2.0.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · keras

Нельзя запустить

Keras/TensorFlow-модели рантайм не загружает.

Ревизия весов
513675c

0 моделей