Classification (src/infer.py, src/model.py)¶
MobileViT Engine (src/model.py)¶
- Model: MobileViT-S (~5.6M parameters).
- Why: Combines the local inductive bias of CNNs with the global receptive field of Vision Transformers. This allows it to capture subtle chromatin textural changes in small regions at near-real-time speeds on edge devices.
Inference Loops (src/infer.py)¶
Prepares cell-level bounding boxes and feeds them directly through the MobileViT model.
Contains the logic for batch inferencing, evaluating precision/recall/F1-score across all 5 clinical categories, and appending raw softmax probabilities onto the Cell data contracts.
Categories Assessed¶
Superficial-Intermediate(Normal)Parabasal(Normal)Metaplastic(Benign/Reactive)Koilocytotic(Low Grade Lesion)Dyskeratotic(High Grade Lesion)