Directional Alignment Penalty: A Lightweight Localization Loss for Improved Bounding Box Regression in YOLOv8
Open Access
- 20 August 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (16) , 8286
Abstract
Accurate localization of bounding boxes is a prerequisite for enabling vision-driven precision agriculture pipelines, as downstream tasks such as morphological feature extraction, growth monitoring, and digital-twin synchronization depend directly on the geometric quality of the detected boxes. Distance-IoU (DIoU) and Complete-IoU (CIoU) improve upon simple overlap-based objectives by incorporating a normalized center-distance term into the regression loss, along with the overlap and, for CIoU, an aspect-ratio penalty, but that term remains embedded in a single composite formulation with an implicit, non-adjustable weight. We propose a Directional Alignment Penalty (DAP), an auxiliary localization regularizer that introduces an independently weighted normalized center-displacement term into the bounding-box regression objective without modifying the detector architecture. The proposed DAP-YOLOv8 increased mAP@0.5:0.95 from 51.69% to 53.76% and mAP@0.5 from 80.03% to 80.36% while preserving precision and recall; repeated-seed experiments further showed that the improvement in fine-grained localization was consistent across random initializations on a purpose-built oyster-mushroom (Pleurotus ostreatus) dataset collected from a real-world smart greenhouse. Results show that explicitly modeling the center-distance factor as an independent and tunable component can improve fine-grained localization without sacrificing the computational efficiency of the base detector, thereby providing a lightweight plug-in extension for agricultural detection and digital-twin applications.Keywords
This publication has 15 references indexed in Scilit:
- A COMPREHENSIVE MULTISENSORY LEARNING APPROACH FOR OYSTER MUSHROOM MATURITY DETECTION IN GREENHOUSESThe Journal "Agriculture and Forestry", 2026
- A novel dataset of annotated oyster mushroom images with environmental context for machine learning applicationsData in Brief, 2024
- Monitoring Mushroom Growth with Machine LearningAgriculture, 2023
- Focal and efficient IOU loss for accurate bounding box regressionNeurocomputing, 2022
- Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance SegmentationIEEE Transactions on Cybernetics, 2021
- Image Processing Technology in AgricultureJournal of Physics: Conference Series, 2021
- Using channel pruning-based YOLO v4 deep learning algorithm for the real-time and accurate detection of apple flowers in natural environmentsComputers and Electronics in Agriculture, 2020
- Systematic literature review of implementations of precision agricultureComputers and Electronics in Agriculture, 2020
- Deep learning in agriculture: A surveyComputers and Electronics in Agriculture, 2018
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016