Saltar al contenido
ModelPublicadoExterno
Descargar

EyeeSEE

Repository: Nj-1111/EyeeSEE Dataset: Nj-1111/GlaucomaDataset Demo: Nj-1111/EyeeSEE (Spaces)

TipoOtherVersiónRevision 0564502Ccalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
355 MB
Versión
vRevision 0564502
Actualizado
9 oct 2026
Descargas
0
Fuente
Hugging Face

Descripción de la fuente

EyeeSEE — Glaucoma Segmentation Model

Repository: Nj-1111/EyeeSEE
Dataset: Nj-1111/Glaucoma_Dataset
Demo: Nj-1111/EyeeSEE (Spaces)


Model Description

EyeeSEE is a U-Net segmentation model trained to delineate the Optic Disc and Optic Cup in retinal fundus photographs for automated glaucoma screening. It is the core inference engine of a Clinical Decision Support System (CDSS) that computes deterministic clinical metrics — vCDR, ISNT rim thickness, and three-tier risk stratification — from predicted segmentation masks.

Monte Carlo Dropout is used at inference time to produce a per-prediction uncertainty score, flagging low-confidence cases for clinical review.


Model Architecture

ComponentDetail
ArchitectureU-Net with skip connections
InputGrayscale fundus image, 512 × 512
Output3-class segmentation map (Background / Optic Disc / Optic Cup)
Base filters64
DropoutDropout2d, rate = 0.1
Parameters~31M
UncertaintyMonte Carlo Dropout (N passes at inference)

Training

DetailValue
DatasetNj-1111/Glaucoma_Dataset
Training images~13,300
Validation images~770
OptimizerAdam, lr = 5e-5
Loss0.5 × Dice + 0.5 × Weighted CrossEntropy
Class weightsBackground 0.1 · Disc 1.5 · Cup 3.0
HardwareKaggle GPU (T4)
FrameworkPyTorch 2.x

Dataset

Nj-1111/Glaucoma_Dataset

Curated from three public sources with a unified preprocessing pipeline:

SourceDescription
EyePACSLarge-scale diabetic retinopathy screening dataset
SMDGStructured multi-disease glaucoma dataset
REFUGE2Retinal Fundus Glaucoma Challenge (segmentation reference)

Split:

SplitImages
Train~13,300
Validation~770
Test~770

Each image is labelled as NRG (Non-Referable Glaucoma / Normal) or RG (Referable Glaucoma).


Clinical Metrics (Phase 3 Pipeline)

After segmentation, the following are computed deterministically:

vCDR — Vertical Cup-to-Disc Ratio
Vertical diameter of cup ÷ vertical diameter of disc. Primary glaucoma screening metric.

vCDRClinical Interpretation
< 0.65Healthy
0.65 – 0.80Glaucoma Suspect
> 0.80High Risk

ISNT Rule
Neuro-retinal rim thickness measured in four quadrants. Healthy eyes satisfy: Inferior > Superior > Nasal > Temporal. Violation is an early indicator of glaucomatous damage.

Risk Stratification
Three-tier output: Healthy · Glaucoma Suspect · High Risk.


Checkpoints

Checkpoints are saved to checkpoints/ during training and named:

checkpoints/checkpoint_epoch_NNN.pt

Each checkpoint contains model weights, optimiser state, scheduler state, validation metrics, and best validation loss.

To load the latest checkpoint for inference:

from checkpoint_loader import load_model_for_inference
from model import UNet

model = UNet(in_channels=1, n_classes=3, base_filters=64, dropout=0.3)
model = load_model_for_inference(
    model=model,
    repo_id="Nj-1111/EyeeSEE",
    epoch=None,         # None = latest
    token="hf_..."
)

Inference

Via HuggingFace Spaces UI

Visit huggingface.co/spaces/Nj-1111/EyeeSEE, upload a fundus image (JPEG or PNG), and click Analyse.

Via Python Client

from gradio_client import Client, handle_file

client = Client("Nj-1111/EyeeSEE")
result = client.predict(
    file_path=handle_file("fundus.jpg"),
    api_name="/analyse"
)

text_report = result[0]
pdf_path    = result[1]
print(text_report)

Via REST API

# JSON report
curl -X POST https://nj-1111-eyeesee.hf.space/predict \
  -F "[email protected]"

# PDF report
curl -X POST https://nj-1111-eyeesee.hf.space/predict/pdf \
  -F "[email protected]" --output report.pdf

Programmatic (Python)

from phase3pipeline import Phase3Pipeline

pipeline = Phase3Pipeline(
    repo_id="Nj-1111/EyeeSEE",
    epoch=None,
    mc_passes=10,
    token="hf_..."
)

import cv2
image  = cv2.imread("fundus.jpg")
result = pipeline.run(image)

print(result["report"]["vcdr"])
print(result["report"]["risk_level"])

Limitations

  • Segmentation masks are trained on synthetic circular approximations of the disc and cup. Performance on pathological cases may be reduced until real ground-truth annotations are incorporated.
  • vCDR thresholds are population-level estimates and do not account for disc size, ethnicity, or myopia.
  • Eye laterality (nasal/temporal swap between left and right eyes) is not currently handled. ISNT values should be interpreted directionally with caution.
  • This model has not been validated in a clinical trial. It is a research prototype.

Intended Use

UseStatus
Research and academic study✓ Intended
Preliminary screening assistance✓ Intended with supervision
Clinical diagnosis without ophthalmologist review✗ Not intended
Standalone medical device✗ Not intended

Disclaimer

This model is a research prototype and is NOT a certified medical device.
All outputs must be validated by a qualified ophthalmologist before any clinical action is taken.
The authors accept no liability for clinical decisions made on the basis of this model's output.


Citation

If you use this model or dataset in your research, please cite:

@misc{eyeesee2025,
  author    = {Nj-1111},
  title     = {EyeeSEE: Glaucoma Clinical Decision Support System},
  year      = {2025},
  publisher = {HuggingFace},
  url       = {https://huggingface.co/Nj-1111/EyeeSEE}
}

Fuentes

1 fuente
Hugging FacePrincipalVersión 056450214ca18808424bbfb3c2f3b56de654305a
huggingface.co/Nj-1111/EyeeSEE/tree/056450214ca18808424bbfb3c2f3b56de654305a

Verificado 25 ago

Artefactos del modelo

51 artefactos

checkpoints/checkpoint_epoch_019.pt

pt · 355 MB · SHA-256 12f81b13a1db…477b · Hugging Face

Descargar

checkpoints/checkpoint_epoch_020.pt

pt · 355 MB · SHA-256 a9c7ac0e46c8…be13 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_021.pt

pt · 355 MB · SHA-256 205b76984087…c46b · Hugging Face

Descargar

checkpoints/checkpoint_epoch_022.pt

pt · 355 MB · SHA-256 4c57622db93f…dda6 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_023.pt

pt · 355 MB · SHA-256 0b9cb61c4b04…6384 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_024.pt

pt · 355 MB · SHA-256 da734e9763aa…8349 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_025.pt

pt · 355 MB · SHA-256 76a736646d5d…bb9b · Hugging Face

Descargar

checkpoints/checkpoint_epoch_026.pt

pt · 355 MB · SHA-256 10cc8da59b2c…0ce4 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_027.pt

pt · 355 MB · SHA-256 f5b8ea60a622…0c1f · Hugging Face

Descargar

checkpoints/checkpoint_epoch_028.pt

pt · 355 MB · SHA-256 7425f9cc3b1e…d744 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_029.pt

pt · 355 MB · SHA-256 41359916be81…6f45 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_030.pt

pt · 355 MB · SHA-256 8b40204826a3…f2fb · Hugging Face

Descargar

checkpoints/checkpoint_epoch_031.pt

pt · 355 MB · SHA-256 6b08630577a2…6fab · Hugging Face

Descargar

checkpoints/checkpoint_epoch_032.pt

pt · 355 MB · SHA-256 76b3c81a17ab…ebfe · Hugging Face

Descargar

checkpoints/checkpoint_epoch_033.pt

pt · 355 MB · SHA-256 23824365f800…edfd · Hugging Face

Descargar

checkpoints/checkpoint_epoch_034.pt

pt · 355 MB · SHA-256 c3a941bc10a5…3c60 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_035.pt

pt · 355 MB · SHA-256 4c66819ac93a…2668 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_036.pt

pt · 355 MB · SHA-256 e365e611e642…8548 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_037.pt

pt · 355 MB · SHA-256 daf2f684bcc9…cb2e · Hugging Face

Descargar

checkpoints/checkpoint_epoch_038.pt

pt · 355 MB · SHA-256 bb3b41a6a25f…49ef · Hugging Face

Descargar

checkpoints/checkpoint_epoch_039.pt

pt · 355 MB · SHA-256 1a2d4f4d709b…9018 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_040.pt

pt · 355 MB · SHA-256 9cf8ab548d1a…423a · Hugging Face

Descargar

checkpoints/checkpoint_epoch_041.pt

pt · 355 MB · SHA-256 d077fb6994db…5d74 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_042.pt

pt · 355 MB · SHA-256 ede4d6be071d…5219 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_043.pt

pt · 355 MB · SHA-256 1ba04d1d09f9…5372 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_044.pt

pt · 355 MB · SHA-256 2f135b3f8ed7…f37f · Hugging Face

Descargar

checkpoints/checkpoint_epoch_045.pt

pt · 355 MB · SHA-256 ac869537ebb4…196d · Hugging Face

Descargar

checkpoints/checkpoint_epoch_046.pt

pt · 355 MB · SHA-256 ff46b8b0a6f3…232e · Hugging Face

Descargar

checkpoints/checkpoint_epoch_047.pt

pt · 355 MB · SHA-256 2be1bd22ea7d…d8ef · Hugging Face

Descargar

checkpoints/checkpoint_epoch_048.pt

pt · 355 MB · SHA-256 5802b1eff2b6…78a4 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_049.pt

pt · 355 MB · SHA-256 91c22399b550…7e4a · Hugging Face

Descargar

checkpoints/checkpoint_epoch_050.pt

pt · 355 MB · SHA-256 3995996c7183…fa4f · Hugging Face

Descargar

checkpoints/checkpoint_epoch_051.pt

pt · 355 MB · SHA-256 a3aecef321c6…0087 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_052.pt

pt · 355 MB · SHA-256 1eb42be9b52e…bc77 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_053.pt

pt · 355 MB · SHA-256 5566aa715a51…8a1a · Hugging Face

Descargar

checkpoints/checkpoint_epoch_054.pt

pt · 355 MB · SHA-256 37e2212ecae0…203c · Hugging Face

Descargar

checkpoints/checkpoint_epoch_055.pt

pt · 355 MB · SHA-256 7aa1dd974944…d5e4 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_056.pt

pt · 355 MB · SHA-256 97d4a7e2ce77…8377 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_057.pt

pt · 355 MB · SHA-256 ce86992b833d…070e · Hugging Face

Descargar

checkpoints/checkpoint_epoch_1.pt

pt · 355 MB · SHA-256 242908ba0b26…62c7 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_10.pt

pt · 355 MB · SHA-256 fd42e45d29ab…d698 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_12.pt

pt · 355 MB · SHA-256 3d7613c37c01…18c2 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_13.pt

pt · 355 MB · SHA-256 f5c93ff8bab7…5672 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_14.pt

pt · 355 MB · SHA-256 7eca35c941e3…0661 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_16.pt

pt · 355 MB · SHA-256 6b0579d0e46a…0688 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_18.pt

pt · 355 MB · SHA-256 9b7685272764…3f92 · Hugging Face

Descargar

checkpoints/checkpoint_epoch_2.pt

pt · 355 MB · SHA-256 dcc7b55f1729…cc2a · Hugging Face

Descargar

checkpoints/checkpoint_epoch_4.pt

pt · 355 MB · SHA-256 75aa55ea2c9f…45ec · Hugging Face

Descargar

checkpoints/checkpoint_epoch_7.pt

pt · 355 MB · SHA-256 8cd9341d571a…07cc · Hugging Face

Descargar

checkpoints/checkpoint_epoch_8.pt

pt · 355 MB · SHA-256 359cafd5fad6…ac3d · Hugging Face

Descargar

checkpoints/checkpoint_epoch_9.pt

pt · 355 MB · SHA-256 3cd99d86c214…44d0 · Hugging Face

Descargar

Extractos de fuentes

2 extractos

--- license: openrail datasets: - Nj-1111/Glaucoma_Dataset pipeline_tag: image-segmentation --- # EyeeSEE — Glaucoma Segmentation Model **Repository:** `Nj-1111/EyeeSEE` **Dataset:** [`Nj-1111/Glaucoma_Dataset`](https://huggingface.co/datasets/Nj-1111/Glaucoma_Dataset) **Demo:** [`Nj-1111/EyeeSEE` (Spaces)](https://huggingface.co/spaces/Nj-1111/EyeeSEE) --- ## Model Description EyeeSEE is a U-Net segmentation model trained to delineate the **Optic Disc** and **Optic Cup** in retinal fundus photographs for automated glaucoma screening. It is the core inference engine of a Clinical Decision Support System (CDSS) that computes deterministic clinical metrics — vCDR, ISNT rim thickness, and three-tier risk stratification — from predicted segmentation masks. Monte Carlo Dropout is used at inference time to produce a per-prediction uncertainty score, flagging low-confidence cases for clinical review. --- ## Model Architecture | Component | Detail | |---|---| | Architecture | U-Net with skip connections | | Input | Grayscale fundus image, 512 × 512 | | Output | 3-class segmentation map (Background / Optic Disc / Optic Cup) | | Base filters | 64 | | Dropout | Dropout2d, rate = 0.1 | | Parameters | ~31M | | Uncertainty | Monte Carlo Dropout (N passes at inference) | --- ## Training | Detail | Value | |---|---| | Dataset | Nj-1111/Glaucoma_Dataset | | Training images | ~13,300 | | Validation images | ~770 | | Optimizer | Adam, lr = 5e-5 | | Loss | 0.5 × Dice + 0.5 × Weighted CrossEntropy | | Class weights | Background 0.1 · Disc 1.5 · Cup 3.0 | | Hardware | Kaggle GPU (T4) | | Framework | PyTorch 2.x | --- ## Dataset **[`Nj-1111/Glaucoma_Dataset`](https://huggingface.co/datasets/Nj-1111/Glaucoma_Dataset)** Curated from three public sources with a unified preprocessing pipeline: | Source | Description | |---|---| | EyePACS | Large-scale diabetic retinopathy screening dataset | | SMDG | Structured multi-disease glaucoma dataset | | REFUGE2 | Retinal Fundus Glaucoma Challenge (segmentation reference) | **Split:** | Split | Images | |---|---| | Train | ~13,300 | | Validation | ~770 | | Test | ~770 | Each image is labelled as **NRG** (Non-Referable Glaucoma / Normal) or **RG** (Referable Glaucoma). --- ## Clinical Metrics (Phase 3 Pipeline) After segmentation, the following are computed deterministically: **vCDR — Vertica...

Source context: 0 downloads · 2 likes · Pipeline image-segmentation · Repo Nj-1111/EyeeSEE