Nesne Tespitinde Model Değerlendirme ve Görsel Denetim: mAP@50 vs. mAP@50-95, Güven Eşiği Kalibrasyonu ve GT vs. Pred Hata Teşhisi
Bir nesne tespiti (object detection) modelinin eğitimi bittiğinde ilk bakılan sayı neredeyse her zaman mAP@50 olur. Ancak gerçek üretim sistemlerinde en pahalı sürprizler tam olarak burada başlar: mAP@50 'si %66 görünen bir model sahada neredeyse kullanılamaz halde olabilir; ya da mAP@50 'si daha düşük olan bir mimari, Precision/Recall dengesi sayesinde üretimde çok daha az hata üretebilir.…
Object detection model evaluation is a critical step after training. While mAP@50 is often the first metric examined, the most serious issues arise in production systems. In the final section of the Data-Driven Object Detection Training series (Series 2 - Section 11), four fundamental evaluation gates—mAP@50 vs. mAP@50-95, Precision/Recall trade-off, custom confidence threshold calibration, and GT vs. Pred image inspection—are examined through real-world case studies.
The mAP@50 metric alone is misleading, as seen in four diverse domains: traffic signs, microscope slides, dermatological lesions, and pressure vessels. For instance, YOLOv9c on traffic signs achieves high mAP@50 (87.66%) but poor mAP@50-95 (-13.6 points). Similarly, RF-DETR-Base on dermatological lesions shows a large gap (-24.4 points) between mAP@50 (81.17%) and mAP@50-95 (56.80%), reflecting high false negatives. A chart demonstrates this widening disparity across domains and model architectures.
Precision and Recall often present conflicting priorities. While many developers choose models based on raw mAP@50 scores, the cost of false positives and false negatives can be vastly different in real-world scenarios. For example, in dermatological lesion detection, RF-DETR-Base prioritizes precision (79.23%) over recall (74.71%), minimizing false alarms. Conversely, YOLO26l (768px) on dermatological lesions prioritizes recall (79.71%) to detect all potential cases, even if it increases false positives.
By default, many models use a confidence threshold of 0.25, but this often leads to imbalanced true positive rates. Transformer-based models like DETR and CNN-based models like YOLO require careful calibration. A custom Python/NumPy function provides a method to automatically determine the optimal confidence threshold that balances F1 score and a minimum recall requirement, allowing models to be tuned for specific production needs.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to