Impact of JPEG compression on YOLO-based road scene object detection in visible and thermal images
Abstract
Object detection is a fundamental component of road-scene perception systems used in autonomous driving, where visual data are often compressed to meet storage and bandwidth constraints. While image compression reduces transmission costs, it may introduce distortions that adversely affect detection accuracy. This study investigates the impact of JPEG compression on seven recent YOLO models (YOLOv5m, YOLOv7, YOLOv8m-YOLOv12m), evaluated on visible (VIS) and long wave infrared (LWIR) images from the M3FD dataset. A balanced subset containing daytime and nighttime scenes is used, and ten compressed versions are generated with quality factor (QF) values ranging from 50 to 5. Results show that YOLOv12m achieves the highest global performance for VIS images, particularly during the day, while YOLOv10m excels under low-light conditions. For LWIR data, YOLOv8m performs best overall, with YOLOv12m showing advantages at night. Detection performance decreases gradually for QF values from 50 to 20, but drops sharply below QF=20, highlighting the importance of maintaining moderate image quality. Across intersection over union (IoU) thresholds, LWIR maintains more stable mAP than VIS, demonstrating its robustness under varying illumination. These findings provide quantitative insights into how JPEG compression and imaging modality affect modern YOLO detectors, informing reliable deployment under bandwidth and storage constrained environments.