/ Модель

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

Лицензия
MIT
Архитектура
organcnn · dense
Опубликована
29 окт 2026

organcnn

Классификация изображенийИзображение → label3 профессии

Компактная 3D-CNN для классификации 28×28×28 КТ-объёмов органов по 11 классам в бенчмарке OrganMNIST3D.

56скачиваний за 30 дней0лайковвеса обновлены29 окт 2026

Бенчмарки

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

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

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

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

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

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

OrganCNN — компактная 3D-сверточная нейросеть, разработанная автором репозитория habib-analyst и обученная с нуля для классификации трёхмерных медицинских изображений. Она обрабатывает одно объёмное КТ-изображение размером 28×28×28 и относит его к одному из 11 классов органов, включая парные органы с обозначением стороны тела. Модель содержит 105 307 параметров; в репозитории представлены форматы safetensors и ONNX. Для входа требуется нормализация по статистикам обучающей выборки OrganMNIST3D.

На тестовой части OrganMNIST3D модель показала точность 0,8574 и macro AUC 0,9860. Её основная слабость — путаница между левой и правой сторонами: такие ошибки составляют 53 из 87 неверных предсказаний. Результаты получены на небольших объёмах из бенчмарка, а разрыв между валидацией и тестом указывает на ограниченную переносимость. Лицензия — MIT. Модель предназначена для исследовательского и бенчмаркового использования, не оценивалась на клинических КТ и не подходит для диагностики или планирования лечения.

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

  • классификация органов на небольших КТ-объёмах OrganMNIST3D
  • сравнение компактных 3D-сверточных моделей на медицинском бенчмарке
  • воспроизведение и анализ ошибок классификации органов с учётом стороны тела

Ограничения

Модель часто путает левую и правую стороны парных органов и заметно уступает приведённому в README бенчмарку 3D ResNet-18. Она обучена на уменьшенных объёмах OrganMNIST3D, не оценивалась на клинических КТ и не предназначена для диагностики или планирования лечения.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

OrganCNN — OrganMNIST3D 11-class organ classifier

A compact 3D CNN (105,307 parameters), designed and trained from scratch for multi-class classification of 28×28×28 CT bounding-box volumes into 11 body organs, released with something most model uploads don't have: a script that re-derives every headline metric from the shipped weights and data, so the numbers below are checkable, not just claimed.

Read the weak spots plainly, because they are the interesting part: the model's dominant failure is left/right anatomy. Of its 87 test errors, 53 (61%) are confusions between the left and right member of an organ pair — 26 femur-left volumes read as femur-right (femur-left recall 0.5692, the weakest class) and 20 kidney-right volumes read as kidney-left (recall 0.6471). The training run deliberately used no flip/permutation augmentation — flipping a volume changes the correct laterality label — yet the 28³ bounding boxes still carry too little orientation context for the model to reliably tell left from right. Both lungs, by contrast, are classified perfectly (21/21 each). It is the portfolio's first multi-class 3D model and its second volumetric one (after VesselCNN).

Research and benchmark use only. This is a 28×28×28 benchmark model trained on downsampled CT bounding boxes. It is not a medical device, it has never been evaluated on clinical CT data, and it must not be used for diagnosis or treatment planning.

Verified results — OrganMNIST3D test split (n = 610)

MetricValueSource
Accuracy0.8574 (523/610)reproduced 2026-10-29
Macro AUC (one-vs-rest)0.9860reproduced 2026-10-29
Balanced accuracy0.8780reproduced 2026-10-29
Majority-class baseline0.1131reproduced 2026-10-29
Best validation balanced accuracy0.9673 (epoch 24)recorded at training time
Best validation AUC (macro OvR)0.9994 (epoch 24)recorded at training time

Note the validation–test gap (validation accuracy 0.9689 vs. test 0.8574): the validation split comes from the source dataset's training scans while the test split comes from different source scans, and the checkpoint was selected on the validation split. The gap is reported here, not smoothed over; read the test numbers as the headline.

Per-class results on the test split (all reproduced):

ClassRecallPrecisionSupport
liver0.9855 (68/69)0.971469
kidney-right0.6471 (44/68)0.936268
kidney-left0.8261 (57/69)0.670669
femur-right0.9231 (60/65)0.652265
femur-left0.5692 (37/65)0.902465
bladder0.9091 (60/66)0.923166
heart0.9286 (26/28)1.000028
lung-right1.0000 (21/21)1.000021
lung-left1.0000 (21/21)1.000021
spleen0.9130 (63/69)0.875069
pancreas0.9565 (66/69)0.942969

The failure analysis (full record in assets/evaluation_results.json) is dominated by one pattern: laterality. The top confusion pairs are femur-left → femur-right (26 of 65 femur-left volumes; 40% of the class), kidney-right → kidney-left (20 of 68; 29%), then a small spleen ↔ kidney-left exchange (6 + 5). Left/right pair confusions total 53 of 87 errors. Errors are also mostly unconfident — mean predicted probability 0.4882 on errors vs. 0.7801 on correct predictions — with one loud exception in the packaged samples: a bladder volume read as liver at 0.814 confidence. The first five misclassified test volumes are all laterality errors.

Context, not a claim of parity: the MedMNIST v2 paper's reference ResNet-18 (3D) reports AUC 0.996 / ACC 0.907 on this dataset — a model roughly 300× this one's size. OrganCNN (0.9860 / 0.8574) does not match it; the gap, and where it concentrates (laterality), is documented rather than hidden.

Quickstart

pip install "git+https://github.com/habib-analyst/organcnn.git"
from organcnn import load_model, predict

model = load_model("model.safetensors")
result = predict(model, "assets/samples/most_confident_correct_74.npy")
# {'label': 'bladder', 'confidence': 0.998, 'probabilities': {...}}

Inputs are single volumes: a .npy path or a NumPy array of shape (28, 28, 28), uint8 as released. Preprocessing contract (identical to training): /255 → normalize with the OrganMNIST3D train-split mean/std (0.50092 / 0.28022, scalar — the volumes are single-channel). Labels are the MedMNIST v2 OrganMNIST3D order: 0 liver, 1 kidney-right, 2 kidney-left, 3 femur-right, 4 femur-left, 5 bladder, 6 heart, 7 lung-right, 8 lung-left, 9 spleen, 10 pancreas (see config.json).

ONNX: organcnn.onnx takes the same normalized (N, 1, 28, 28, 28) float tensor and returns logits.

Verify it yourself

python examples/verify_metrics.py

This re-evaluates the shipped weights on the bundled test split (assets/organmnist3d_test.npz) and compares against the training record. On 2026-10-29 it printed ALL HEADLINE METRICS REPRODUCED — accuracy, macro AUC, balanced accuracy, the full 11×11 confusion matrix, and all per-class recalls matched exactly.

python examples/predict_demo.py   # packaged samples + first misclassifications
python -m pytest -q               # 8 tests: formats agree, metrics files agree, parity

The demo is honest about the weak spots by construction: the four packaged samples were selected by a fixed rule (see assets/samples/index.json) that includes the first misclassified volume (a femur-left read as femur-right) and the most confident error (a bladder read as liver at 0.814). Of the four, two are classified correctly and two are errors, and the demo prints all four.

Model details

  • Architecture: 3 conv blocks (16→32→64 channels, 3×3×3 convolutions, BatchNorm, ReLU, max-pool, dropout) + global-average-pooling head with a single linear layer — the same compact family as the sibling SonoCNN / PathoCNN / VesselCNN releases, with an 11-way head. The GAP head is deliberate: a flattened MLP head would add ~1.4M parameters against only 971 training volumes. 105,307 trainable parameters; 0.4 MB in safetensors.
  • Training: from scratch on the OrganMNIST3D train split (971 volumes), AdamW (lr 2e-3, weight decay 1e-4, OneCycle cosine over 30 epochs), batch 32, seed 42. Loss: class-weighted cross-entropy with weights N/(11·n_class) — from 0.7676 for the five 115-volume classes to 2.2634 for the two 39-volume lung classes — because heart (40) and the lungs (39 each) have a third of the data of the largest classes. All 30 epochs ran; the shipped weights are the epoch-24 checkpoint, selected by best validation balanced accuracy (ties by macro OvR AUC). Summed epoch time was 3,898 s (~65 min) on a 2-core CPU; the run was interrupted once by the environment after epoch 7 and resumed losslessly from the per-epoch checkpoint (see training_log.txt).
  • Augmentation: none — deliberately. The VesselCNN sibling trains with octahedral (flip/permutation) augmentation because its label is a local shape property. Here, several labels are orientation: a flipped kidney-right volume is a kidney-left volume. Using that augmentation without a label remap would train on corrupted labels, so this run uses no geometric augmentation at all. The irony is recorded in the failure analysis: even without augmentation corrupting laterality, left/right confusion is still the dominant error — the bounding boxes themselves carry weak orientation signal at 28³.

What OrganCNN is not

  • Not a clinical tool. It classifies 28³ benchmark bounding boxes derived from CT scans, not patients or scans — and it cannot reliably tell a left femur from a right one. Nothing about it transfers to a diagnostic workflow.
  • Not state of the art, or close. The reference ResNet-18 (3D) scores AUC 0.996 / ACC 0.907 on this dataset (above); this model's 0.9860 / 0.8574 trails it, with the deficit concentrated in two classes. The release exists because its numbers are verified and its failure modes are documented, not because it tops a leaderboard.
  • Not laterality-safe. 61% of its errors swap left and right. Any use that cares which side an organ is on — which is most conceivable uses — is out of scope for these weights.
  • Not trained on private or clinical data. Only the public OrganMNIST3D benchmark (below).
  • Confidences are not calibrated. Softmax outputs are rankings, not probabilities of being right: the most confident error in the test split scores 0.814, and correct predictions average only 0.7801.

Data and attribution

OrganMNIST3D is part of MedMNIST v2 (Yang et al., MedMNIST v2 — A large-scale lightweight benchmark for 2D and 3D biomedical image classification, Scientific Data 2023). Its source is the same as that of the Organ{A,C,S}MNIST datasets: 3D CT images from the Liver Tumor Segmentation Benchmark (LiTS), with bounding-box annotations of 11 body organs from another study providing the labels; Hounsfield-Unit values were windowed to gray-scale, and OrganMNIST3D uses the 3D bounding boxes directly, resized to 28×28×28. The dataset is licensed CC BY 4.0; assets/organmnist3d_test.npz (the official test split only) is redistributed here for metric reproduction, with attribution. The source file used for training is Zenodo record 10519652, md5 a0c5a1ff56af4f155c46d46fbb45a2fe (full data card: DATA.md). Split hygiene was verified in the foreground at build time: zero exact-duplicate volumes across splits, and the splits derive from disjoint source CT scans (115/16/70) by the dataset authors' construction. The MIT license of this repository covers the code and the trained weights, not the dataset.

Files

FileContents
model.safetensorsRelease weights (safetensors)
organcnn.onnxONNX export (logits)
config.jsonArchitecture + preprocessing config
DATA.mdDataset card: source, hashes, splits, class balance, caveats
training_log.txtPer-epoch training log, including the interruption/resume record
src/organcnn/model.py (architecture), infer.py (loading + prediction API)
scripts/train.pyThe exact training script that produced the weights (resumable)
scripts/evaluate.pyTest evaluation + failure analysis + sample packaging
scripts/export_onnx.pyONNX export + parity check
scripts/download_data.shDataset fetch with MD5 verification
examples/predict_demo.pyPackaged samples + first misclassifications, printed honestly
examples/verify_metrics.pyFull metric reproduction from the artifacts
assets/organcnn.ptTraining checkpoint (state dict + selection record)
assets/organcnn_metrics.jsonTraining record + test metrics
assets/evaluation_results.jsonReproduced test metrics + full failure analysis
assets/organmnist3d_test.npzOrganMNIST3D official test split (CC BY 4.0, see attribution)
assets/samples/Four test volumes (.npy) + index.json with measured predictions

License

MIT for code and weights (see LICENSE). Dataset under CC BY 4.0 as above.

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

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

GPU в ailist

Универсальный рантайм · image-classification

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

Архитектура organcnn неизвестна transformers в образе рантайма.

Класс архитектуры
OrganCNN
Ревизия весов
8528e7c

0 моделей