Title: A Two-Stage Detection–Tracking Framework for Stable Apple Quality Inspection in Dense Conveyor-Belt Environments Journal: Nuclear Physics B

Keonvin Park, Aditya Pal, Jin Hong Mok · 2026

Read Title: A Two-Stage Detection–Tracking Framework for Stable Apple Quality Inspection in Dense Conveyor-Belt Environments Journal: Nuclear Physics B by Keonvin Park, Aditya Pal, Jin Hong Mok (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-19278.txt.

Introduction

On a fruit packing line, apples rush past in dense crowds, and judging quality from single snapshots is not enough: a grade must stay stable as each apple moves through view. Keonvin Park and two colleagues build a two-stage video system for that conveyor-belt setting. An orchard-trained detector first finds each apple in the frame, and a tracker then follows it across frames so its identity persists.

A defect classifier, fine-tuned on healthy and defective fruit, scores cropped views of each apple, and results are combined across the whole track rather than trusted from one frame alone. That track-level pooling steadies the verdict against blur, overlap, and brief occlusions. The system aims to give packing lines consistent grades at speed, in the crowded, moving conditions where still-image methods falter.

Catalog record

CREATORKeonvin Park, Aditya Pal, Jin Hong Mok
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE18 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2602-19278

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Title: A Two-Stage Detection–Tracking Framework for Stable Apple Quality Inspection in Dense Conveyor-Belt Environments Journal: Nuclear Physics B Keonvin Park, Aditya Pal, Jin Hong Mok Abstract Industrial fruit inspection systems must operate reliably under dense multi-object interactions and continuous motion, yet most existing works evaluate detection or classification at the image level without ensuring temporal stability in video streams. We present a two-stage detection–tracking framework for stable multi-apple quality inspection in conveyor-belt environments. An orchard-trained YOLOv8 model performs apple localization, followed by ByteTrack multi-object tracking to maintain persistent identities. A ResNet18 defect classifier, fine-tuned on a healthy–defective fruit dataset, is applied to cropped apple regions. Track-level aggregation is introduced to enforce temporal consistency and reduce prediction oscillation across frames. We define video-level industrial metrics such as track-level defect ratio and temporal consistency to evaluate system robustness under realistic processing conditions. Results demonstrate improved stability compared to frame-wise inference, suggesting that integrating tracking is essential for practical automated fruit grading systems. † † graphicalabstract: † † highlights: Proposes a preliminary two-stage detection–tracking framework for automated apple quality inspection in dense conveyor-belt environments. Integrates an orchard-trained YOLOv8 detector with ByteTrack to ensure persistent object identities across video frames. Employs a ResNet18-based defect classifier, fine-tuned on a healthy–defective fruit dataset, for per-apple quality prediction. Introduces track-level aggregation to stabilize defect decisions and mitigate frame-wise prediction inconsistency. Defines video-level industrial quality metrics, including track-level defect ratio and temporal stability, for conveyor-based evaluation. 1 Introduction Automated fruit quality inspection plays a critical role in modern agricultural processing and grading systems. In industrial conveyor-belt environments, apples are densely arranged and continuously transported, requiring real-time, stable, and reliable quality assessment. Traditional manual inspection is labor-intensive and subjective, motivating the development of computer vision-based grading systems. Recent advances in deep learning have significantly improved object detection performance, with models such as YOLO achieving high accuracy and real-time speed in diverse scenarios [ 1 , 3 ] . In agricultural contexts, fruit detection has been extensively studied in orchard environments, where models are trained to localize fruits under natural lighting and background conditions [ 4 , 5 ] . However, most existing works focus primarily on image-level detection or classification, without explicitly addressing object-level temporal consistency in video streams. In industrial settings, quality inspection requires not only detecting apples but also ensuring stable per-object decisions across consecutive frames. Frame-wise classification can produce fluctuating predictions due to motion blur, occlusion, and illumination variation, leading to unreliable grading outcomes. Multi-object tracking algorithms such as ByteTrack [ 7 ] enable persistent identity assignment, offering a mechanism to enforce object-level temporal reasoning. In parallel, defect classification for fruit grading has been widely explored using convolutional neural networks [ 12 , 13 ] . Nevertheless, most approaches evaluate classification performance on static image datasets, without integration into a video-based multi-object pipeline. The gap between image-level benchmarks and video-level industrial deployment remains underexplored. To address these limitations, we propose a two-stage detection–tracking framework for stable apple quality inspection in dense conveyor-belt environments. First, an orchard-trained YOLOv8 detector localizes apples in industrial conveyor videos. Second, ByteTrack is applied to assign persistent identities across frames. For each tracked apple, a ResNet18-based defect classifier, initialized with ImageNet weights and fine-tuned on a healthy–defective fruit dataset, predicts quality categories. Track-level aggregation is employed to stabilize defect decisions and mitigate frame-wise prediction oscillation. Furthermore, we introduce video-level industrial quality metrics, including track-level defect ratio and temporal consistency, to evaluate system performance beyond conventional image-based accuracy. Our preliminary study demonstrates that incorporating tracking significantly improves decision stability compared to frame-wise classification, highlighting the importance of temporal modeling for practical industrial fruit grading systems. 2 Related Work 2.1 Fruit Detection in Agricultural Environments Deep learning-based fruit detection has been extensively studied in orchard settings. Early approaches employed region-based convolutional neural networks for fruit localization [ 4 ] . With the emergence of one-stage detectors such as YOLO [ 1 ] , real-time fruit detection has become feasible in field robotics and harvesting applications. Recent works leverage improved YOLO variants and attention mechanisms for enhanced robustness [ 6 ] . However, these approaches predominantly operate on static images and do not address object-level temporal consistency in industrial conveyor environments. 2.2 Multi-Object Tracking Multi-object tracking (MOT) aims to associate detections across frames to maintain consistent identities. Classical evaluation metrics such as CLEAR MOT [ 8 ] quantify tracking performance. Recent tracking-by-detection paradigms have achieved strong results by associating detection boxes across frames. ByteTrack [ 7 ] improves tracking robustness by associating both high- and low-confidence detections, making it suitable for dense and dynamic scenes. While MOT has been widely adopted in surveillance and autonomous driving, its integration into industrial fruit grading remains limited. 2.3 Fruit Defect and Quality Classification Defect detection and quality assessment of fruits have been explored using convolutional neural networks and transfer learning strategies. Mohanty et al. [ 12 ] demonstrated the effectiveness of deep CNNs for plant disease classification. Surveys in agricultural vision highlight defect classification as a key task in post-harvest management [ 13 ] . Nevertheless, most prior works evaluate classification models on curated static datasets, without considering dense multi-object video scenarios or track-level temporal stabilization. 2.4 Domain Shift and Industrial Deployment Gap Models trained in orchard environments often experience performance degradation when deployed in processing facilities due to domain shift [ 14 , 15 ] . Differences in lighting, background, object arrangement, and motion dynamics introduce distribution shifts that challenge generalization. Despite extensive research on domain adaptation and generalization, few studies examine how image-level agricultural models behave when deployed in industrial conveyor-belt videos. Our work bridges these gaps by integrating detection, tracking, and defect classification into a unified video-based quality inspection framework, explicitly addressing temporal stability and industrial evaluation metrics. 3 Methods We propose a two-stage detection–tracking framework for stable apple quality inspection in conveyor-belt videos. The system consists of (1) apple detection using YOLOv8, (2) multi-object tracking via ByteTrack, and (3) defect classification using a ResNet18 model with track-level aggregation for temporal stabilization. 3.1 Apple Detection Given an input video consisting of frames \{F_{t}\}_{t=1}^{T} , we first detect apples in each frame using a pretrained YOLOv8 detector [ 3 ] . The detector produces a set of bounding boxes: \mathcal{D}_{t}=\{b_{t}^{1},b_{t}^{2},\dots,b_{t}^{N_{t}}\} (1) where N_{t} denotes the number of detected apples at frame t . 3.2 Multi-Object Tracking To maintain persistent object identities across frames, we apply ByteTrack [ 7 ] . The tracker associates detections across consecutive frames and assigns a unique track ID i to each apple instance. This produces track trajectories: \mathcal{T}_{i}=\{b_{t_{1}}^{i},b_{t_{2}}^{i},\dots,b_{t_{k}}^{i}\} (2) where k denotes the track length. Tracking enables object-level reasoning and prevents frame-wise identity switching in dense conveyor environments. 3.3 Defect Classification For each detected bounding box, we crop the corresponding apple region and classify its quality using a ResNet18 model [ 9 ] , initialized with ImageNet weights and fine-tuned on the Healthy-Defective dataset [ 11 ] . Given a cropped region x_{t}^{i} , the classifier outputs a predicted defect class: y_{t}^{i}=f_{\text{ResNet18}}(x_{t}^{i}) (3) where y_{t}^{i}\in\{0,1,\dots,C-1\} represents the defect category. 3.4 Track-Level Aggregation Frame-wise predictions may fluctuate due to motion blur, occlusion, or illumination changes. To enforce temporal consistency, we aggregate predictions across each track. For track i , we collect all

Read the complete text