CoolFace
Modelpublic

AurevinP/cervical-cytology-mobilevit-sipakmed

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
Model Card

๐Ÿ”ฌ Cervical Cytology Classifier (MobileViT-S)

This model is a fine-tuned MobileViT-Small designed to classify individual cervical cells into 5 distinct morphological categories. It serves as the classification engine for the broader Cervical Cytology AI Workflow Simulation.

โš ๏ธ Disclaimer: This model is a research proof-of-concept trained on the SIPaKMeD dataset. It is NOT a certified medical device and should not be used for clinical diagnosis.

๐ŸŽฏ Model Intention

This model is designed to be lightweight enough for edge deployment (simulating digital pathology integration) while maintaining high sensitivity for abnormal cell types.

๐Ÿ“Š Class Labels & Performance

The model classifies cells in 224x224 frame of a slide into:

IDLabelDescription
0dyskeratoticAbnormal (Squamous cell carcinoma)
1koilocytoticAbnormal (HPV infection indicator)
2metaplasticBenign (Normal variation)
3parabasalBenign (Normal variation)
4superficial_intermediateBenign (Normal variation)

Metrics (Test Set):

  • โ€”Accuracy: ~92%
  • โ€”Macro F1: 93%
  • โ€”Recall (Abnormal Classes): 93%

๐Ÿ›  Usage

python
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image

# Load Model
repo_name = "AurevinP/cervical-cytology-mobilevit-sipakmed"
processor = AutoImageProcessor.from_pretrained(repo_name)
model = AutoModelForImageClassification.from_pretrained(repo_name)

# Inference
image = Image.open("path/to/slide_patch.jpg")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
predicted_class = logits.argmax(-1).item()

print(f"Prediction: {model.config.id2label[predicted_class]}")

โš™๏ธ Training Details

  • โ€”Dataset: SIPaKMeD (Syrto et al.)
  • โ€”Preprocessing: Color normalization, Center Crop, Resize.
  • โ€”Optimizer: AdamW / SGD
  • โ€”Loss: CrossEntropy with Class Weights (to handle imbalance)

๐Ÿ“œ License

MIT License