Enhanced YOLOv12 Through Sliced Contrastive Supervision and Full Scene Fine-Tuning

Real-time detection of objects in drone-based imagery has proven to be a challenging task for even the most state-of-the-art deep learning models. Due to computational limitations, images are often scaled down during training, reducing the feature space and leading to decreased overall accuracy during validation and inference. This work proposes two-stage training strategy and several key improvements to one of the most recent You Only Look Once (YOLO) models, YOLOv12. An extra P2 branch and its corresponding scale were added to the head of the network to improve detection of small-scale objects. An additional CIoU-like penalty term was combined with the standard CIoU-based loss used in YOLO to improve detection accuracy. Finally, a contrastive loss function and an associated embedding branch were introduced to help discriminate between features in the embedding space, grouping instances of the same classes closer together and instances of different objects further apart. The first stage of training leverages these improvements on a sliced, full-resolution version of the VisDrone2019-DET dataset, which maintains 15% overlap between slices, and the second stage continues to leverage these improvements for fine-tuning using the full images in a scaled down configuration to provide full scene context. Results demonstrate a 35.5% Mean Average Precision (mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50:95</sub>) and a 56.6% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50</sub> on the validation split. On the test split, results demonstrate a 36.2% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50:95</sub> and a 57.7% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50</sub>.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3596039
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhanced YOLOv12 Through Sliced Contrastive Supervision and Full Scene Fine-Tuning

Muhammad Farooq, José Alberto Mireles Garza
IEEE Access
Industrial Vision Systems and Defect Detection
article

Enhanced YOLOv12 Through Sliced Contrastive Supervision and Full Scene Fine-Tuning

Muhammad Farooq, José Alberto Mireles Garza
article en

Abstract

Real-time detection of objects in drone-based imagery has proven to be a challenging task for even the most state-of-the-art deep learning models. Due to computational limitations, images are often scaled down during training, reducing the feature space and leading to decreased overall accuracy during validation and inference. This work proposes two-stage training strategy and several key improvements to one of the most recent You Only Look Once (YOLO) models, YOLOv12. An extra P2 branch and its corresponding scale were added to the head of the network to improve detection of small-scale objects. An additional CIoU-like penalty term was combined with the standard CIoU-based loss used in YOLO to improve detection accuracy. Finally, a contrastive loss function and an associated embedding branch were introduced to help discriminate between features in the embedding space, grouping instances of the same classes closer together and instances of different objects further apart. The first stage of training leverages these improvements on a sliced, full-resolution version of the VisDrone2019-DET dataset, which maintains 15% overlap between slices, and the second stage continues to leverage these improvements for fine-tuning using the full images in a scaled down configuration to provide full scene context. Results demonstrate a 35.5% Mean Average Precision (mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50:95</sub>) and a 56.6% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50</sub> on the validation split. On the test split, results demonstrate a 36.2% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50:95</sub> and a 57.7% mAP<sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">50</sub>.

IEEE AccessVol. 13
Lockheed Martin (United States) (US), George Washington University (US)
Openalex Percentile: Top 73%
Industrial Vision Systems and Defect Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhanced YOLOv12 Through Sliced Contrastive Supervision and Full Scene Fine-Tuning — Muhammad Farooq, José Alberto Mireles Garza · IEEE Access (2025) | TGRS Research Map | TGRS