SMIDS Sperm Morphology
microscopic image classification
2 min read
Models based on the EfficientNet-B0 and ResNet50 architectures are designed to analyze stained microscopic images from the SMIDS dataset. They classify images into three categories: abnormal sperm (abnormal), non-sperm debris (non-sperm debris), and normal sperm (normal). Isolating debris into a separate class prevents the model from mistakenly classifying it as cells. This solution is useful for biomedical researchers, developers of diagnostic tools, and those working with cellular microscopy.
Key features
- EfficientNet-B0 efficiency: the model outperforms ResNet50 in accuracy across five-fold cross-validation (85.08% versus 79.19%) and contains approximately 5 times fewer parameters.
- Three classification classes: clear separation into normal cells, abnormal cells, and foreign inclusions.
- ONNX availability: in addition to the PyTorch format, the repository includes ready-to-use ONNX files (opset 17) for working without installing a heavy framework.
- Research checkpoints: weights obtained during stratified five-fold cross-validation.
What you can do
- Microscopy analysis: apply the model for automated primary sorting and evaluation of individual cell crops.
- Pipeline integration: use PyTorch inference scripts for batch processing of images in .bmp or .png format.
- Quick launch via ONNX: deploy the model using onnxruntime in lightweight environments without PyTorch dependencies.
- Scientific experiments: explore accuracy and macro-F1 metrics on your own medical or educational datasets.
Example
Running prediction via the command line for cell image files:
python inference.py sample1.bmp sample2.bmp --model efficientnet_b0
# sample1.bmp normal 0.912 ok
# sample2.bmp abnormal 0.641 REVIEWRead more
DetailsMetrics and training details:
• Dataset: SMIDS (3,000 images split into train, validation, and test).
• Accuracy on held-out test split: 85.21% for EfficientNet-B0 and 78.81% for ResNet50.
• Input requirements: RGB image, resize to 224×224 pixels, normalization according to ImageNet standards.
• License: CC BY 4.0 (for research purposes only, not a medical device).










Comments