[Paper Review] Benchmarking YOLOv5 and YOLOv7 models with DeepSORT for droplet tracking applications
This study benchmarks YOLOv5 and YOLOv7 object detectors combined with DeepSORT for real-time droplet tracking in microfluidic videos. Despite YOLOv7's 10% faster inference, real-time tracking (≥30 fps) is only achieved with lighter YOLO models due to high computational overhead from DeepSORT, especially on GPU and CPU configurations with heavier models.
Tracking droplets in microfluidics is a challenging task. The difficulty arises in choosing a tool to analyze general microfluidic videos to infer physical quantities. The state-of-the-art object detector algorithm You Only Look Once (YOLO) and the object tracking algorithm Simple Online and Realtime Tracking with a Deep Association Metric (DeepSORT) are customizable for droplet identification and tracking. The customization includes training YOLO and DeepSORT networks to identify and track the objects of interest. We trained several YOLOv5 and YOLOv7 models and the DeepSORT network for droplet identification and tracking from microfluidic experimental videos. We compare the performance of the droplet tracking applications with YOLOv5 and YOLOv7 in terms of training time and time to analyze a given video across various hardware configurations. Despite the latest YOLOv7 being 10% faster, the real-time tracking is only achieved by lighter YOLO models on RTX 3070 Ti GPU machine due to additional significant droplet tracking costs arising from the DeepSORT algorithm. This work is a benchmark study for the YOLOv5 and YOLOv7 networks with DeepSORT in terms of the training time and inference time for a custom dataset of microfluidic droplets.
Motivation & Objective
- To evaluate the performance of YOLOv5 and YOLOv7 models in conjunction with DeepSORT for droplet tracking in microfluidic videos.
- To compare training time, inference speed, and real-time tracking capability across various YOLO model variants and hardware setups.
- To identify optimal model and hardware configurations that achieve real-time droplet tracking (≥30 fps) while balancing accuracy and computational cost.
- To provide a comprehensive benchmark for researchers selecting YOLO-based pipelines for droplet tracking applications.
Proposed method
- Trained YOLOv5 and YOLOv7 models on a custom microfluidic droplet dataset using the same hyperparameters and hardware (NVIDIA V100 GPU).
- Applied DeepSORT for multi-object tracking, using deep association metrics to link detections across frames.
- Evaluated performance using mean Average Precision (mAP) at IoU thresholds from 0.5 to 0.95.
- Measured inference time per frame on both CPU and GPU (RTX 3070 Ti) for all model variants, including separate YOLO and DeepSORT component times.
- Conducted benchmarking across multiple YOLO variants: YOLOv5s, m, l, x, s6, m6, l6, x6, and YOLOv7-tiny, x, base, w6, e6, d6, e6e.
- Analyzed the trade-off between detection accuracy (mAP) and inference speed, particularly focusing on the impact of model size on DeepSORT tracking latency.

Experimental results
Research questions
- RQ1How do YOLOv5 and YOLOv7 models compare in terms of training time and mAP accuracy for droplet detection on a custom microfluidic dataset?
- RQ2What is the inference speed of YOLOv5 and YOLOv7 models combined with DeepSORT across different hardware configurations (CPU and GPU)?
- RQ3Which model configurations achieve real-time droplet tracking (≥30 fps) on the tested hardware?
- RQ4How does the computational cost of DeepSORT compare to YOLO inference time, especially for heavier models?
- RQ5What is the trade-off between detection accuracy and real-time performance when selecting YOLO model variants?
Key findings
- YOLOv7 models achieved approximately 10% faster inference than YOLOv5 counterparts on the same hardware (RTX 3070 Ti GPU).
- Despite faster YOLO inference, real-time tracking (≥30 fps) was only achieved with lighter YOLO models (e.g., YOLOv5s, YOLOv7-tiny) due to high DeepSORT tracking overhead.
- On GPU, YOLOv5s and YOLOv7-tiny achieved 34.27 fps and 34.48 fps respectively, meeting real-time requirements.
- Heavier models like YOLOv5x6 and YOLOv7-d6 failed to achieve real-time performance, with inference rates below 12 fps.
- mAP values saturated to unity after 20 epochs for both YOLOv5 and YOLOv7, with no significant difference in mean mAP across IoU thresholds.
- DeepSORT contributed consistently to tracking time (~0.015–0.03 sec/frame), which became a bottleneck for heavier YOLO models on both CPU and GPU.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.