A Study on Real-time Object Detection using Deep Learning
Organizations: Department of Computer Science and Engineering, GITAM University, India, 561203
Abstract
Object detection has compelling applications over a range of domains, including human-computer interfaces, security and video surveillance, navigation and road traffic monitoring, transportation systems, industrial automation healthcare, the world of Augmented Reality (AR) and Virtual Reality (VR), environment monitoring and activity identification. Applications of real time object detection in all these areas provide dynamic analysis of the visual information that helps in immediate decision making. Furthermore, advanced deep learning algorithms leverage the progress in the field of object detection providing more accurate and efficient solutions. There are some outstanding deep learning algorithms for object detection which includes, Faster R CNN(Region-based Convolutional Neural Network),Mask R-CNN, Cascade R-CNN, YOLO (You Only Look Once), SSD (Single Shot Multibox Detector), RetinaNet etc. This article goes into great detail on how deep learning algorithms are used to enhance real time object recognition. It provides information on the different object detection models available, open benchmark datasets, and studies on the use of object detection models in a range of applications. Additionally, controlled studies are provided to compare various strategies and produce some illuminating findings. Last but not least, a number of encouraging challenges and approaches are offered as suggestions for further investigation in both relevant deep learning approaches and object recognition.
Figures & tables
| CNN Variation | Details | Application |
|---|---|---|
| LeNet (1998) | First CNN architecture for digit recognition. | Recognition of digits (for instance, MNIST dataset)[41]. |
| AlexNet (2012) | Advanced the use of deep CNNs featuring ReLU activation and training on GPUs | Visual categorization (e.g., ImageNet contest)[42][43] |
| ZFNet (2013) | Enhanced AlexNet by modifying filter dimensions and integrating feature visualization techniques. | Image classification and interpretability [44] |
| VGGNet (2014) | Used deeper architectures with small 3x3 filters. Demonstrated the importance of network depth. | Image categorization, attribute extraction for transfer learning.[45] |
| GoogLeNet (Inception-v1) (2014) | Introduced inception modules with multi-scale convolutions and dimensionality reduction (1x1 convolutions). | Object detection and image categorization [46]. |
| ResNet (2015) | Implemented residual learning and skip connections to support extremely deep networks (reaching 152 layers). | Image categorization, object recognition, healthcare imaging [47]. |
| YOLO Variations | Details |
|---|---|
| YOLOv1 (2016) | The first version of YOLO [24] introduced the concept of performing object detection in a single pass through the network. It divided the image into a grid, predicting bounding boxes and class probabilities for each cell. While it was significantly faster than previous methods, YOLOv1 had lower accuracy, especially when detecting smaller objects. |
| YOLOv2 (2017) | YOLOv2 [27], also known as "YOLO9000," introduced several improvements, including a more powerful backbone network (Darknet-19), higher grid resolution, and the ability to detect over 9,000 object categories. It also incorporated batch normalization and anchor boxes, significantly boosting both detection accuracy and speed. |
| YOLOv3 (2018) | YOLOv3 [28] improved its architecture by adopting Darknet-53 as the backbone, providing a deeper and more efficient network compared to Darknet-19. It introduced multi-scale predictions, enabling better detection of objects across different sizes. This enhancement significantly improved the model’s ability to identify small objects and increased accuracy, particularly in complex scenarios. |
| YOLOv4 (2020) | YOLOv3 enhanced its architecture by integrating Darknet-53 as the backbone, offering a deeper and more efficient network than Darknet-19. It introduced multi-scale predictions, allowing for improved detection of objects of varying sizes [29]. These advancements significantly boosted the model with enhanced accuracy, especially in challenging and complex environments. |
| Variations of YOLOv4 (2020) | YOLOv4-CSP [30]- Uses the CSPDarknet53 backbone for improved feature extraction, optimizing speed and accuracy in real-time applications. YOLOv4-tiny [31]- It is a fast, lightweight version for real-time detection on resource-limited devices, prioritizing speed over accuracy for low-latency applications. Scaled-YOLOv4 [32]-Scaled-YOLOv4 optimizes YOLOv4 for scalability, using CSPNet, PANet, and SPP to enhance accuracy and speed. |
| YOLOv5 (2020) | YOLOv5 [33], developed by Ultralytics, is a widely adopted variant known for its speed, versatility, and ease of use. It introduced multiple model sizes (small, medium, large) to suit different hardware configurations. With an optimized training process, YOLOv5 enhances performance across various datasets, making it highly efficient for real-time object detection applications. |
| Name of the Model(Year) | Base Architecture | Data Set | Model Trained on | Mean-Average Precision (mAp) | Frames Per Second (FPS) |
| YOLOv1 (2016) | Inspired by GoogleNet. It has replaced the inception module with a (1 x 1) convolution followed by (3 x 3) convolution filters | VOC Pascal Dataset. | Darknet framework | 63.4% | 45 |
| YOLOv2 (2017) | Darknet-19 backbone of YOLOv2 was inspired by VGG & ResNet. A typical darknet-19 framework consists of 19 convolutional layers and 5 max-pooling layers | PASCAL VOC 2007 Test Set, COCO | ImageNet, COCO | 67.8% | 67 |
| YOLOv3 (2018) | Darknet-53 is the backbone of YOLOv3. It has 53 convolution layers with (3 x 3) and (1 x1) convolutional filters and it uses residual connections like ResNet | COCO | COCO, PASCAL VOC 2007 and VOC 2012 | 57.9% | 50 |
| YOLOv4 (2020) | CSPDarknet-53 is the backbone of YOLOv4, it is the improved version of Darknet-53. Cross-Stage Partial (CSP) connections are used for better gradient flow and reduced computation. | COCO, PASCAL VOC 2007 and VOC 2012 | COCO, ImageNet | 65.7% | 62 |
| YOLOv5 (2020) | YOLOv5 is completely written in PyTorch, CSP module is used for feature extraction, FPN and PANet is there for better multi-scale detection | COCO | COCO | 36.7(s),50.7(x) | 156(s), 72(x) |
| YOLOv6 (2022) | It uses a RepVGG or CSPStackRep-style backbone and BiFPN (Bidirectional Feature Pyramid Network) | COCO | COCO | 35.9(N),52.5(N) | 1231(N), 420(N) |
| Dataset | Description | Type of Images | Dataset Source |
|---|---|---|---|
| DUTS | DUTS is a large saliency detection dataset with 10,553 training and 5,019 testing images, sourced from ImageNet DET and SUN datasets. It includes challenging cases, with pixel-level annotations by 50 individuals. | Living and non-living species | Kaggle |
| Car Detection | The dataset contains media of cars in all views. Here we see 1001 images for training and 175 for testing | cars | Kaggle |
| Gun Detection | Images folder contains pictures in jpeg format. Labels folder holds txt files where each file’s first line shows the number of items in the matching image, and the following lines include the coordinates of the box outlining the item. | Guns | Kaggle |
| Human Face detection | A varied collection of images showing human faces from different races, ages, and angles, intended to build an impartial dataset that contains coordinates of facial areas suitable for training models that detect objects. | Human Faces | Kaggle |
| Brain tumor detection | The datasets JPGs exported at their native size and are separated by plane (Axial, Coronal and Sagittal). Here we see 310 images for training and 75 for testing | Brain Tumor | Kaggle |
| 26 Class Object Detection Dataset | This Dataset contains labeled images of 26 common city and outdoor objects, including vehicles, traffic signs, pedestrians, and natural elements. | City elements | Kaggle |
| Algorithm | mAP(%) | IoU | Inference Time(ms) | Model Size (MB) |
| YOLOv4 | 91.3 | 88.5 | 22 | 250 |
| Faster R-CNN | 93.5 | 90.8 | 120 | 500 |
| SSD | 87.4 | 83.2 | 18 | 95 |
| RetinaNet | 90.8 | 88.0 | 30 | 120 |
| DETR | 89.6 | 87.5 | 45 | 150 |
| EfficientDet | 92.1 | 89.2 | 25 | 75 |
| Algorithm | Accuracy(%) | Precision(%) | Recall(%) | F1-Score(%) | Inference Time(ms) | Model Size(MB) |
| Custom CNN | 80.5 | 79.8 | 80.1 | 80.0 | 5 | 10 |
| Alex Net | 85.3 | 84.5 | 84.8 | 84.6 | 20 | 230 |
| VGG | 92.4 | 92.0 | 92.2 | 92.1 | 35 | 528 |
| RestNet | 94.5 | 94.2 | 94.4 | 94.3 | 25 | 98 |
| MobileNet | 89.7 | 89.3 | 89.5 | 89.4 | 10 | 14 |
| EfficientDet | 95.1 | 94.8 | 94.9 | 94.9 | 20 | 36 |
| Algorithm | mAP(%) | Recall(%) | Precision(%) | Inference Time(ms) |
| Faster RCNN | 88.4 | 91.2 | 87.6 | 150 |
| YOLOv4 | 85.6 | 88.0 | 85.0 | 25 |
| SSD | 82.4 | 84.2 | 81.5 | 18 |
| RetinaNet | 86.5 | 89.5 | 85.7 | 40 |
| CenterNet | 87.3 | 89.8 | 86.4 | 30 |
| Cascade RCNN | 90.1 | 92.7 | 89.5 | 200 |
| Algorithm | PCK(%) | mAP(%) | Inference Time(ms) | Model Size(MB) |
| OpenPose | 85.3 | 80.1 | 35 | 200 |
| HRNet | 90.2 | 87.5 | 50 | 220 |
| PoseNet | 78.5 | 70.3 | 12 | 50 |
| DeepPose | 70.5 | 65.1 | 25 | 150 |
| Algorithm | F-measure | MAE | S-measure | Inference Time (ms) |
| U-Net | 0.78 | 0.045 | 0.85 | 20 |
| RFCN | 0.85 | 0.032 | 0.88 | 25 |
| PiCANet | 0.90 | 0.020 | 0.91 | 40 |
| DSS | 0.87 | 0.028 | 0.90 | 28 |
| Algorithm | Task | mAP | IoU(%) | Inference Time (ms) | Model Size (MB) |
| YOLOv4 | Object Detection | 91.4 | - | 22 | 240 |
| Faster R-CNN | Object Detection | 94.2 | - | 120 | 512 |
| Mask R-CNN | Object Detection+ Segmentation | 92.8 | - | 150 | 600 |
| UNet | Semantic Segmentation | - | 83.2 | 20 | 30 |
| LaneNet | Lane Detection | - | 89.1 | 18 | 50 |
| Algorithm | Precision | Recall | F1-Score | mAP | FPS |
| MTCNN | 0.904 | 0.880 | 0.891 | 0.883 | 15 |
| Faster R-CNN | 0.936 | 0.885 | 0.910 | 0.891 | 8 |
| YOLOv4 | 0.879 | 0.860 | 0.865 | 0.865 | 62 |
| SSD | 0.873 | 0.840 | 0.854 | 0.848 | 30 |
| RetinaFace | 0.940 | 0.910 | 0.925 | 0.905 | 18 |
| DETR | 0.913 | 0.900 | 0.907 | 0.890 | 12 |
| Algorithm | Accuracy(↑) | TAR@FAR=0.1%(↑) | EER(↓) |
|---|---|---|---|
| DeepFace | 97.35% | 91.50% | 3.5% |
| FaceNet | 99.63% | 97.00% | 0.9% |
| VGGFace | 98.95% | 95.20% | 1.2% |
| DeepID | 98.97% | 95.40% | 1.1% |
| SphereFace | 99.42% | 96.90% | 0.8% |
| CosFace | 99.73% | 97.40% | 0.7% |
Object Detection
Object detection locates and classifies objects in images or video, balancing localization accuracy, robustness, and inference speed.
See all 624 papers