🦷 Dental Panoramic X-Ray 32-Tooth Instance Segmentation (YOLOv8-seg)
This repository hosts a trained YOLOv8 Nano Segmentation (yolov8n-seg) model specialized in the automated identification, numbering, and pixel-level segmentation of all 32 individual adult teeth on 2D panoramic dental radiographs (Orthopantomograms / OPG scans).
📊 Model Performance
Trained for 100 epochs on a dedicated dental panoramic radiograph dataset:
| Metric | Score |
|---|---|
| Mask mAP@50 | 94.4% |
| Box mAP@50 | 94.8% |
| Precision | 89.8% |
| Recall | 91.0% |
| Inference Speed | ~12.2 ms (real-time ~80 FPS on GPU) |
| Model Size | 3.39M parameters (~7.0 MB) |
🚀 How to Use in Python
You can easily download and use this model directly from Python using huggingface_hub and ultralytics:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# 1. Download weights directly from Hugging Face
model_path = hf_hub_download(
repo_id="promitbhattacharjee/dental-panoramic-xray-segmentation",
filename="best.pt"
)
# 2. Load model
model = YOLO(model_path)
# 3. Predict on your dental X-ray
results = model.predict(source="path/to/dental_xray.jpg", conf=0.25, save=True)
# 4. Access segmented teeth
for box, mask in zip(results[0].boxes, results[0].masks):
tooth_name = model.names[int(box.cls[0])]
confidence = float(box.conf[0])
print(f"Detected {tooth_name} with {confidence*100:.1f}% confidence")
🦷 Numbering System
Follows the universal dental numbering system:
- Tooth 1 to 16: Upper Jaw (Maxilla) from right to left
- Tooth 17 to 32: Lower Jaw (Mandible) from left to right
📜 License
Licensed under AGPL-3.0 in accordance with Ultralytics YOLOv8 licensing terms.