MEKAWIRE
ExpertarXiv

An Ordering Optimization for Fruit-Vegetable in High-Density Environment based on Genetic Algorithm

Jaehwi Seol, Jeonghyeon Pak, Hyoung Il Son
From the abstract

This paper presents a robotic harvesting method that combines RGB-D fruit localization, GA-based harvest ordering, and waypoint-based robot motion in dense and unstructured crop environments. The global RGB-D camera provides 3D fruit positions for ordering, while the end-effector-mounted camera provides close-range observation during execution.

From the abstract. Our summary is in progress.

Full paper

An Ordering Optimization for Fruit-Vegetable in High-Density Environment based on Genetic Algorithm

Jaehwi Seol, Jeonghyeon Pak, Hyoung Il Son

Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.07293 (PDF).

An Ordering Optimization for Fruit-Vegetable in High-Density Environment based on Genetic Algorithm 

Jaehwi Seol 1,2, Jeonghyeon Pak1,3, and Hyoung Il Son1,3,4*

Abstract

This paper presents a robotic harvesting method that combines RGB-D fruit localization, GA-based harvest ordering, and waypoint-based robot motion in dense and unstructured crop environments. The global RGB-D camera provides 3D fruit positions for ordering, while the end-effector-mounted camera provides close-range observation during execution. The GA determines the harvesting sequence, and static or dynamic waypoints define the intermediate robot motion. The method was evaluated in a controlled laboratory testbed and in four-, five-, and six-fruit field conditions. GA solutions were compared with exhaustive enumeration, and both waypoint offsets were examined by parameter sensitivity analysis. Continuous execution reduced unnecessary Home-return motion, while the dynamic waypoint changed with the remaining fruit distribution without changing the GA sequence. In the field evaluation, the dynamic-waypoint continuous strategy produced 40 collision events and a 70.7% target-approach success rate, compared with 55 collision events and 65.3% for the static-waypoint continuous strategy. Keywords: harvesting robot, genetic algorithm, harvest ordering, fruit perception, dynamic waypoint generation

Jaehwi Seol: [email protected], Jeonghyeon Pak: [email protected], Hyoung Il Son: [email protected],

0000-0003-1382-4415, 0000-0003-1070-9681, 0000-0002-7249-907X.

Department of Convergence Biosystems Engineering, Chonnam National University, 77 Yongbong-ro, Buk-gu, Gwangju 61186, Republic of Korea 2

Kimchi Factory Research Group, World Institute of Kimchi, Gwangju, 61755, Republic of Korea

Interdisciplinary Program in IT-Bio Convergence System, Chonnam National University, 77 Yongbong-ro, Buk-gu, Gwangju 61186, Republic of Korea 4

Research Center for Biological Cybernetics, Chonnam National University, 77 Yongbong-ro, Buk-gu, Gwangju 61186, Republic of Korea ∗

Corresponding author 1

1. Introduction

Agricultural robots, which autonomously execute tasks and make real-time decisions in complex, unstructured environments, have emerged as a viable solution to labor shortages (Seol et al., 2024b). Recent advancements in agricultural automation have facilitated the development of a broad range of robotic platforms capable of core farming operations, such as harvesting (Jun et al., 2021; Park et al., 2023), pruning (Li et al., 2024), thinning (Du et al., 2025), and precision spraying (Seol et al., 2022a,b). These systems have increasingly been deployed to automate repetitive and labor-intensive tasks traditionally performed by humans. Beyond these operations, robotic applications extend to autonomous navigation in greenhouses (Pak et al., 2022), UAV-based insect localization and tracking (Pak et al., 2023, 2024), environmental mapping (Seol et al., 2024a), and irrigation monitoring (Pak and Son, 2025). These applications illustrate the use of robotic perception and autonomous operation across diverse agricultural settings. Recent agricultural automation has also integrated harvesting, unloading, and transportation into coordinated autonomous operation systems (Ding et al., 2025). Together, these developments support efforts to improve the productivity, safety, and longterm sustainability of agricultural production. Harvesting tasks are challenged by the unstructured and cluttered nature of agricultural environments (Fig. 1), which are characterized by irregular plant arrangements, unstructured terrain, dense leaves, and non-uniform fruit distribution (Bhattarai et al., 2024). Manual harvesting in these settings requires considerable time and labor, often making the process inefficient and economically burdensome. The ongoing decline in the availability of agricultural labor intensifies these challenges, causing delays and potential post-ripening degradation, increasing the risk of economic loss. Accordingly, time-efficient, labor-saving robotic harvesting solutions that can operate reliably in field conditions are necessary. Robotic harvesting concerns two primary manipulation tasks: grasping and cutting. Prior studies have focused on improving perception systems to support these operations, particularly in dense crop environments where precise fruit localization is critical. Advances in computer vision and learning-based detection have advanced object recognition and 3D localization, contributing to more reliable trajectory planning. However, field 2

(a)

(b)

(c)

Fig. 1 High-density fruit environments: (a) cucumber, (b) tomato, and (c) Korean melon. deployment remains limited due to persistent problems (e.g., occlusion, overlapping targets, and ambiguous depth cues). These factors can make the spatial relationship among targets difficult to determine from image-plane information alone. Figure 2 shows that targets with similar two-dimensional image positions can be located at different depths. Therefore, accurate 3D fruit positions are important for determining the harvesting order in dense scenes. A common approach to determine the harvesting order is to frame the task as a traveling salesman problem (TSP) based on Euclidean distances between fruit positions. Harvest ordering based on two-dimensional image coordinates can misrepresent inter-fruit distances when targets lie at different depths. RGB-D sensing provides the 3D position of each detected fruit, including its depth. In this study, the GA determines the harvesting sequence using the three-dimensional Euclidean distance among the detected fruit. Static and dynamic waypoints are then used to define the intermediate robot motion for executing the sequence. The aim is to improve motion efficiency and execution consistency in unstructured environments. This paper proposes an integrated harvest-ordering framework that aims to improve efficiency and operational robustness in fruit harvesting under these conditions. The framework combines RGB-D fruit localization, GAbased harvest ordering, and waypoint-based robot motion. The GA determines the target order, while static and dynamic waypoints define the intermediate robot motion. The dynamic waypoint is updated from the remaining fruit without changing the GA sequence. The primary contributions of this paper are summarized below:

Fig. 2 Problem definition: 2D path planning under depth uncertainty leads to deviation from the true 3D path in dense environments; left: 2D-planned path from RGB-D image; right: actual shortest path computed in 3D environment. •

A global–local RGB-D sensing configuration is developed to integrate robot base fruit localization for harvest-order optimization with close-range target observation during robot execution.

AGA-based harvest-ordering method is proposed to integrate sequence optimization with static and dynamic waypoint strategies, adapting intermediate motion to the remaining-target distribution.

The proposed framework is validated through comparative field experiments in unstructured agricultural environments, demonstrating the practical benefits of integrating harvest-order optimization with robot execution.

The remainder of this paper is organized as follows. Section 2 provides a comprehensive review of the related works. Section 3 elaborates on the fruit detection and localization perception system. Section 4 details the GAbased harvest ordering system. Section 5 outlines the experimental setup and presents the comparative evaluations of harvesting order algorithms implemented using a vision-based robotic manipulator under field conditions. Section 6 details the study limitations, and Section 7 concludes. 4

2. Related Works

2.1 Fruit perception Detection performance in complex scenes (e.g., those with variable lighting and occlusion) has significantly improved with deep learning (DL) methods compared to traditional feature-based techniques. The DL-based object detectors typically comprise three components: a backbone for feature extraction, a neck for feature enhancement, and a head for classification and localization. These models are typically categorized as one- or two-stage detectors. Two-stage detectors, such as the faster region-based convolutional neural network (R-CNN) (Gao et al., 2020; Cui et al., 2024), are generally more accurate but are unsuitable for real-time applications due to slower processing. In contrast, one-stage detectors, such as you only look once (YOLO) model, have gained popularity owing to their speed and robustness, particularly in imbalanced datasets. For instance, YOLO outperformed the Fast R-CNN in identifying minority-class traits in (Solimani et al., 2024). Therefore, one-stage detectors are typically preferable in applications where high, real-time identification accuracy is necessary. Among DL models, YOLO has gained significant traction in agriculture due to its real-time detection capability and high accuracy (Redmon et al., 2016). Researchers favor the YOLO series owing to its efficient architecture, strong feature extraction, and continuous updates (Zhang et al., 2025b). The YOLO framework divides an image into grids and sets bounding boxes and class probabilities for prediction in each region, making it suitable for various tasks (e.g., monitoring, sensing, automation, and robotic control in agriculture). Recent agricultural applications have adapted YOLO to specific tasks. For example, Pineapple-YOLO, based on YOLOv7-tiny, achieved 89.7% [email protected] and 110 FPS, optimizing speed and moderate scene complexity (Li et al., 2025b). Similarly, YOLO-RGBDtea enhanced YOLOv7 with RGB-D fusion, spatial attention, and self-attention, achieving 91.12% [email protected] and a 0.912 F1-score under challenging lighting and occlusion conditions (Wu et al., 2024). Despite these improvements, YOLOv7-based models still encounter trade-offs between the detection detail, computational efficiency, and robustness in high-density or embedded environments.

The YOLOv8-based architecture offers significant improvements in detection precision and deployment flexibility for agricultural applications. Faster-YOLO-AP, built on the YOLOv8 backbone, achieved an 84.12% [email protected]:0.95, making it ideal for edge deployment without sacrificing accuracy (Liu et al., 2024). The YOLOv8x model has also been applied to uncrewed aerial vehicle-based stem segmentation in dense potato canopies, applying RGB-DSM fusion and high-resolution sampling to achieve an F1-score of 0.86 and an IoU of 0.83 for high-throughput phenotyping (Jiang et al., 2024). Comparative studies have demonstrated that YOLOv8 outperforms YOLOv5 and YOLOv9 on tree detection tasks involving cherries and apples (Akdoğan et al., 2025). Recent studies have adapted YOLOv8 for fruit detection under field conditions (He et al., 2025b). Global–local vision configurations that combine a fixed camera with an eye-in-hand camera have also been used in agricultural robots to combine wide-area observation with close-range target sensing (He et al., 2025a). 2.2 Harvest ordering Researchers have extensively studied complementary perception tasks (e.g., yield estimation (Koirala et al., 2019; Liu et al., 2025), collision avoidance (Suo et al., 2021), harvest date prediction (Lin et al., 2025), and quality inspection). Nevertheless, the problem of prioritizing which fruits to harvest remains underexplored, particularly in environments with occlusions, dense foliage, or incomplete sensory data (Li et al., 2025c; Zhu et al., 2025). This lack of sequence-level reasoning under uncertainty remains a primary limitation in deploying autonomous harvesting systems. Addressing this gap requires integrated methods that can adaptively determine the harvesting order while considering the environmental complexity and sensor uncertainty. One of the fundamental strategies for planning harvest sequences encompasses prioritizing fruit based on height, assuming that higher fruit is more accessible and less likely to be occluded (Bac et al., 2017). More advanced frameworks have extended this idea by jointly planning sensing and harvesting actions in partially observable environments. These methods treat the problem as a TSP, allowing for dynamic updates to the harvest sequence as new pieces of fruit are detected during execution (Kurtser and Edan, 2020). Although effective in theory, these

approaches are susceptible to perception errors that commonly occur under real-time conditions in occluded and cluttered agricultural fields. Recent studies have adopted learning-based and heuristic techniques to improve robustness and planning quality. For example, a model based on the 3D-CNN was employed to generate a position-pose fruit map, creating a heuristic cost map supporting rapid target selection and optimal path computation (Zhang et al., 2023). Another approach applies density-based clustering to group nearby fruit and employs dynamic programming to determine the optimal picking order in each cluster (Dai et al., 2024). This method reduces the motion cost by minimizing inter-fruit travel distances. However, these techniques often rely on ideal visibility and assume a structured environment without occlusion, limiting their reliability in realistic field conditions with prevalent leaves, stems, and variable illumination. More recent work has also addressed sequential picking in dense crop environments by combining three-dimensional target information with robot path planning (Fan et al., 2026).

3. Fruit Perception System

3.1 Fruit detection The initial step in robotic harvesting involves detecting and locating fruit in the canopy. This task necessitates a real-time recognition system with high precision and robustness in agricultural environments. The YOLOv8 model introduces an anchorless approach, eliminating the need for predefined anchor boxes and simplifying the detection pipeline (Shen et al., 2025). Moreover, YOLOv8 provides five scaled versions, ranging from lightweight models for low-resource devices to high-performance models optimized for speed and accuracy: YOLOv8n (nano), YOLOv8s (small), YOLOv8m (medium), YOLOv8l (large), and YOLOv8x (extra-large), differing based on the network depth and width. (Zhang et al., 2025a) and (Li et al., 2025a) reported that YOLOv8n is the least complex and fastest model among the compared YOLOv8 models, characterized by a smaller parameter size and lower computational demand. These attributes make YOLOv8n suitable for automated agricultural robotics, where a high response speed and real-time inference are critical to ensuring timely, efficient perception in dynamic farming

environments. Therefore, YOLOv8n was selected as the fruit detector in this study, and the detected fruit positions were subsequently used in the localization procedure described in Section 3.2. The YOLOv8n model comprises the input, backbone, neck, and output. The input stage applies image resizing and data augmentation, including mosaic augmentation and padding. Because YOLOv8 adopts an anchor-free detection head, predefined anchor-box computation is not required. The backbone extracts features and transforms images of diverse sizes into fixed-size feature vectors, enhancing the adaptability of the model to multiple target sizes. In addition, the backbone uses the C2f module instead of the traditional YOLO neck architecture, which is a faster and lighter implementation of the cross-stage partial (CSP) bottleneck. The CSP bottleneck splits the feature map into two parts, processing one part via a series of convolutional layers, and concatenating both parts. The C2f module is faster and lighter because it uses two convolutional layers instead of three, optimizing the feature map processing for improved performance. The neck integrates the feature pyramid network and path aggregation network to achieve top-down and bottom-up feature fusion, strengthening the ability of the model to integrate features. The output component applies enhanced feature computation to deliver confidence scores and location information for each target. Thus, the accuracy of the classification and regression tasks is improved, thus supporting precise object detection and classification. 3.2 Fruit localization Accurate fruit localization is critical for autonomous harvesting robots because it directly influences grasping precision and task efficiency (Jiang et al., 2025). The global–local RGB-D sensing system is configured according to the distinct information requirements of harvest-order optimization and robot execution. A fixed global RGBD camera observes multiple fruits within the harvesting workspace and provides the three-dimensional fruit positions used for harvest-order optimization. In contrast, the local RGB-D camera is mounted on the end-effector and provides close-range target observation during robot execution. The robot-base frame is used as the common reference frame for relating the global camera, end-effector, and local camera. The sensing configuration and coordinate frames are shown in Fig. 3. 8

Fig. 3 RGB-D sensing configuration and coordinate relationship between the global camera, robot base, end-effector, and local camera For each fruit detected by the global RGB-D camera, the center of the detected region is associated with the corresponding pixel in the aligned depth image. Let (𝑢𝑖, 𝑣𝑖 ) denote the image coordinate of fruit 𝑖, and let 𝑧𝑖𝐺 denote the corresponding depth. Using the intrinsic parameters of the global camera, the fruit position in the global-camera frame 𝐹𝐺 is expressed in homogeneous coordinates as

𝐺

p̃𝑖 =

(𝑢𝑖 − 𝑐𝑥 )𝑧𝑖𝐺 /𝑓𝑥 (𝑣𝑖 − 𝑐𝑦 )𝑧𝑖𝐺 /𝑓𝑦 [

𝑧𝑖𝐺 1

(1)

where 𝑓𝑥 and 𝑓𝑦 are the focal lengths and 𝑐𝑥 and 𝑐𝑦 are the principal-point coordinates. The spatial relationship between the global camera and the robot base is described by a fixed rigid-body transformation, with rotation and translation determined using an ArUco marker as a spatial reference. The corresponding homogeneous transformation is expressed as

𝐵

T𝐺 = [

𝐵

R𝐺 0𝑇

𝐵

t𝐺 ]. 1

(2)

where 𝐵 R 𝐺 and 𝐵t 𝐺 denote the rotation and translation from the global-camera frame to the robot-base frame. The deprojected fruit position is transformed to the robot-base frame as 𝐵

p̃𝑖 =

𝐵

T𝐺 𝐺 p̃𝑖 .

(3)

Equivalently, the three-dimensional fruit position used by the harvesting framework is expressed as: (𝑢𝑖 − 𝑐𝑥 )𝑧𝑖𝐺 /𝑓𝑥 p𝑖 = 𝐵 R 𝐺 [(𝑣𝑖 − 𝑐𝑦 )𝑧𝑖𝐺 /𝑓𝑦 ] + 𝐵 t 𝐺,

(4)

𝑧𝑖𝐺 where p𝑖 = [𝑥𝑖, 𝑦𝑖, 𝑧𝑖 ]𝑇 denotes the position of fruit i in the robot-base frame. These positions are used for harvest-order optimization and waypoint generation. Because the local RGB-D camera is rigidly mounted on the end-effector, its pose relative to the robot base changes with the manipulator configuration. Let 𝐸 T𝐿 denote the fixed camera mounting transformation from the local-camera frame 𝐹𝐿 to the end-effector frame, and let 𝐵 T𝐸 (𝜃) denote the end-effector pose with respect to the robot-base frame, where 𝜃 is the vector of manipulator joint positions. Composing these transformations gives the local-camera pose relative to the robot base: 𝐵

T𝐿 (𝜃) = 𝐵 T𝐸 (𝜃) 𝐸 T𝐿 .

(5)

For a target position expressed in homogeneous coordinates 𝐿p̃𝑖 in the local-camera frame, the corresponding position in the robot-base frame is obtained as 𝐵 𝐿 p̃𝑖

𝐵

T𝐿 (𝜃) 𝐿p̃𝑖 = 𝐵 T𝐸 (𝜃) 𝐸 T𝐿 𝐿p̃𝑖 .

(6)

10

Here, 𝐵p̃𝐿𝑖 denotes the local-camera measurement expressed in the robot-base frame; the right superscript 𝐿 identifies its measurement source. The transformation from the local-camera frame to the global-camera frame follows from their common robot-base reference: 𝐺

T𝐿 (𝜃) = ( 𝐵T𝐺 )−1 𝐵 T𝐿 (𝜃) = ( 𝐵T𝐺 )−1 𝐵 T𝐸 (𝜃) 𝐸 T𝐿 .

(7)

The global RGB-D camera provides the fruit coordinates used to determine the harvest order and generate the waypoint motion. During execution, the local RGB-D camera provides close-range observation of the selected target. The fruit coordinates used for harvest-order planning are retained from the global-camera measurements throughout execution.

4. Harvesting Ordering System

4.1 Static genetic algorithm-based path planning The harvesting order can be determined based on several factors, such as crop maturity, quality, accessibility, harvesting difficulty, and work efficiency. In robotic harvesting, the spatial relationship among the target fruit is particularly important because repeated manipulator motion between spatially distributed targets directly affects the efficiency of sequential harvesting. Therefore, this study formulates the harvesting-order problem based on the three-dimensional spatial distribution of the recognized fruit. The notation used in this paper is summarized in Table 1. The detected fruit set is represented as an undirected weighted graph 𝐺 = (𝑉, 𝐸), where each vertex 𝑣𝑖 ∈ 𝑉 corresponds to a target fruit and each edge (𝑖, 𝑗) ∈ 𝐸 represents a possible transition between two fruit positions. Let the position of fruit 𝑖 in the robot base frame be expressed as p𝑖 = [𝑥𝑖, 𝑦𝑖, 𝑧𝑖 ]𝑇 . The transition cost between two target fruit is defined by the three-dimensional Euclidean distance:

𝑑𝑖,𝑗 = ‖p𝑗 − p𝑖 ‖2 = √(𝑥𝑗 − 𝑥𝑖 ) + (𝑦𝑗 − 𝑦𝑖 ) + (𝑧𝑗 − 𝑧𝑖 ) .

(8) 11

Table 1. Notation used in this paper Symbol

Description

𝑁

Number of detected fruit

𝑝𝑖

Position of fruit 𝑖 in the robot-base frame

𝑑𝑖,𝑗

Euclidean transition cost between fruits 𝑖 and 𝑗

𝑆

Candidate harvesting sequence

𝐽𝑜𝑟𝑑 (𝑆)

Harvest-ordering cost of sequence 𝑆

𝑆∗

Optimized harvesting sequence

w𝑖𝑆

Static waypoint associated with fruit 𝑖

𝛿𝑠

Static waypoint-offset magnitude

r𝑠

Static waypoint-offset direction

𝑅𝑘

Remaining-target set at harvesting step 𝑘

c𝑘

Centroid of the remaining-target set at harvesting step 𝑘

w𝑘𝑑

Dynamic waypoint at harvesting step 𝑘

𝛿𝑑

Dynamic waypoint-offset magnitude

r𝑘

Dynamic waypoint-offset direction at harvesting step 𝑘

𝐽𝑡𝑟𝑎𝑗

TCP trajectory length

By incorporating displacement along all three axes, including depth, this distance enables the ordering cost to represent the three-dimensional fruit distribution. To search for a sequence using this cost, the GA represents each detected fruit as a gene and each candidate sequence as an arrangement of these genes. Selection, crossover, and mutation are then applied iteratively to search the sequence space. As illustrated in Fig. 4, the resulting sequence determines the target order, while the waypoint strategy defines the intermediate robot motion needed to execute it.

12

Fig. 4 Flow chart of the harvesting robot system. 4.1.1 Generation of offset waypoint pairs To distinguish the transfer motion between targets from the final target approach, an intermediate waypoint is assigned to each detected fruit. For a fruit position pi, the corresponding static waypoint is defined as w𝑖𝑠 = p𝑖 + 𝛿𝑠 r𝑠,

(9)

where 𝛿𝑆 denotes the waypoint-offset magnitude and r𝑠 is a unit vector defining the waypoint-offset direction in the robot-base frame, with ‖r𝑠 ‖2 = 1. Thus, the static waypoint maintains a fixed geometric relationship with its corresponding fruit. Each fruit is consequently represented by an approach–target waypoint pair, W𝑖𝑠 = (w𝑖𝑠, p𝑖 ).

(10)

In the implemented system, the waypoint-offset direction is aligned with the positive 𝑥-axis of the robot-base frame. Let e𝑥 denote the unit vector along this axis, then r𝑠 = e𝑥 . The offset magnitude 𝛿𝑠 is treated as a tunable parameter of the waypoint-generation procedure. The setting used in the physical experiments and its geometric influence are examined in Section 5.3.1 using the recorded target configurations and a separate environment analysis of travel distance and end-effector interference. Once the fruit position and waypoint parameters are specified, the static waypoint remains fixed throughout the corresponding execution condition.

13

4.1.2 Genetic algorithm-based harvest sequence optimization

For N detected fruit, a candidate harvesting sequence is represented by the permutation

𝑆 = (𝜋1, 𝜋2, …, 𝜋𝑁 ).

(11)

where 𝜋𝑘 denotes the fruit index assigned to the 𝑘th harvesting step. Using the transition cost defined in Eq. (8), the sequence-level objective is expressed as

𝑁−1

𝐽𝑜𝑟𝑑 (𝑆) = ∑ 𝑑𝜋𝑘,𝜋𝑘+1 .

(12)

𝑘=1

An additional return term after the final target is not included in 𝐽𝑜𝑟𝑑 because return and transfer motions depend on the robotic execution strategy and are treated separately from the harvest-order optimization. Therefore, the optimal harvesting sequence is defined as

𝑆 ∗ = arg min 𝐽𝑜𝑟𝑑 (𝑆) . 𝑆

(13)

The GA searches the permutation space by evolving a population of candidate harvesting sequences. Each chromosome contains every detected fruit exactly once. For each generation, the ordering cost of every chromosome is evaluated, favorable candidates are retained through selection, and crossover and mutation are applied to produce valid candidate sequences for the next generation. The GA configuration is defined by the population size 𝑀, the number of generations 𝑁𝑔𝑒𝑛, the retained-population size 𝑀𝑘𝑒𝑒𝑝, and the number of swap mutations 𝑁𝑚𝑢𝑡 . The GA parameters are treated as configuration parameters of the optimization procedure. The values used for the reported experiments are specified in the experimental setup. After the optimized sequence 𝑆 ∗ is obtained, Algorithm 1 arranges the target-specific static waypoint pairs according to this sequence.

14

Algorithm 1: Genetic Algorithm-based Harvest-Order Optimization with Static Waypoint Generation 1:

Input: Fruit positions {p𝑖 }𝑁 𝑖=1, static waypoint parameters (𝛿𝑠, r𝑠 ), and GA parameters (𝑀, 𝑁𝑔𝑒𝑛, 𝑀𝑘𝑒𝑒𝑝, 𝑁𝑚𝑢𝑡 )

2:

Output: Optimized harvesting sequence 𝑆 ∗ and ordered static waypoint pairs W𝑆𝑆∗

3:

Construct weighted fruit graph 𝐺 = (𝑉, 𝐸)

4:

for each target pair (𝑖, 𝑗) do

5:

Compute transition cost 𝑑𝑖,𝑗 = ‖p𝑗 − p𝑖 ‖2

6:

end for

7:

Initialize GA population 𝑃(0) = {𝑆1, . . ., 𝑆𝑀 }

8:

for 𝑔 = 0 to 𝑁𝑔𝑒𝑛 − 1 do

(0)

(0)

(𝑔)

9:

for each sequence 𝑆𝑚 ∈ 𝑃 (𝑔) do

10:

Compute cost 𝐽𝑜𝑟𝑑 (𝑆𝑚 )

11:

Assign fitness according to 𝐽𝑜𝑟𝑑 (𝑆𝑚 )

(𝑔)

(𝑔)

12:

end for

13:

Rank candidate sequence according to fitness

14:

Retain 𝑀𝑘𝑒𝑒𝑝 favorable candidate sequences

15:

Select parent sequences from the retained population

16:

Apply crossover to generate valid permutations

17:

Apply 𝑁𝑚𝑢𝑡 swap mutations while preserving valid permutations

18:

Construct the next population 𝑃 (𝑔+1)

19:

end for Select 𝑆 ∗ as the sequence with the lowest ordering cost among all candidates evaluated during the GA

20:

search

21:

Initialize ordered waypoint-pair set 𝑊𝑆𝑆∗ ← [ ]

22:

for 𝑘 = 1 to 𝑁 do

23: 24:

Generate static waypoint w𝜋S ∗ = p𝜋𝑘∗ + 𝛿𝑠 r𝑠 𝑘

Append

(w𝜋S ∗, p𝜋𝑘∗ ) 𝑘

25:

end for

26:

Return 𝑆 ∗ and 𝑊𝑆𝑆∗

to

𝑊𝑆𝑆∗

Because the evaluated harvesting scenes contain a small number of target fruit, the GA solution can additionally be compared with the exact solution obtained through exhaustive enumeration. This comparison provides an 15

independent assessment of the solution quality of the selected GA configuration. The corresponding analysis is presented in Section 5.3.1. 4.2 Dynamic waypoint augmented genetic-algorithms-based path planning The static waypoint strategy defines an intermediate approach position relative to each individual fruit, whereas sequential execution progressively changes the distribution of the remaining targets. The dynamic waypoint strategy accounts for these changes by recalculating the intermediate position from the remaining-target set after each harvesting step. The GA sequence, determined from the complete three-dimensional fruit distribution, is retained throughout execution; the waypoint update adapts the intermediate robot motion to the remaining-target distribution. 4.2.1 Dynamic waypoint generation for adaptive execution

The dynamic waypoint is constructed from the centroid of the remaining-target set, which provides a spatial reference for inter-target transfer. To define this set at each harvesting step, let the fixed optimized sequence be represented by

𝑆 ∗ = (𝜋1∗, 𝜋2∗, …, 𝜋𝑁∗ ).

(14)

At harvesting step 𝑘, the current target and all targets scheduled for subsequent harvesting define the remaining-target set 𝑅𝑘 = {p𝜋𝑗∗ | 𝑗 = 𝑘, …, 𝑁} .

(15)

The centroid of this set provides the spatial reference for the intermediate waypoint:

c𝑘 =

1 ∑ p𝑗 . |𝑅𝑘 |

(16)

p𝑗 ∈𝑅𝑘

16

Algorithm 2: Dynamic Waypoint-Augmented Genetic Algorithm-based Harvest Planning 1:

Input: Fruit positions {p𝑖 }𝑁 𝑖=1, GA parameters (𝑀, 𝑁𝑔𝑒𝑛, 𝑀𝑘𝑒𝑒𝑝, 𝑁𝑚𝑢𝑡 ), and dynamic waypoint parameters (𝛿𝑑, r𝑘 )

2:

Output: Optimized harvest sequence 𝑆 ∗ and dynamically refined execution trajectory 𝐽𝑆𝑑∗

3:

Obtain the harvesting sequence 𝑆 ∗ = (𝜋1∗, 𝜋2∗, …, 𝜋𝑁∗ ) using the GA optimization stage of Algorithm 1

4:

Initialize 𝐽𝑆𝑑∗ ← [ ]

5:

Initialize 𝑅1 = {p𝜋1∗, …, p𝜋𝑁∗ }

6:

for 𝑘 = 1 to 𝑁 do

7:

Select current target p𝜋𝑘∗ according to 𝑆 ∗

8:

Update remaining-target set 𝑅𝑘 = {p𝜋𝑗∗ | 𝑗 = 𝑘, …, 𝑁}

9:

Compute centroid c𝑘 = |𝑅𝑘 |−1 ∑p𝑗 ∈𝑅𝑘 p𝑗

10:

Determine waypoint-offset direction r𝑘

11:

Generate dynamic waypoint w𝑘𝑑 = c𝑘 + 𝛿𝑑 r𝑘

12:

Plan transfer motion toward w𝑘𝑑

13:

Plan target-approach motion from w𝑘𝑑 to p𝜋𝑘∗

14:

Execute the planned approach motion

15:

Generate retreat motion from p𝜋𝑘∗ toward w𝑘𝑑

16:

Concatenate the planned motion segments to 𝐽𝑆𝑑∗

17:

Remove p𝜋𝑘∗ from the active target set

18:

end for

19:

Evaluate the resulting execution trajectory 𝐽𝑡𝑟𝑎𝑗 (𝐽𝑆𝑑∗ )

20:

Return 𝑆 ∗ and 𝐽𝑆𝑑∗

The dynamic waypoint is then generated by offsetting this centroid along a prescribed direction:

w𝑘𝑑 = c𝑘 + 𝛿𝑑 r𝑘

(17)

where 𝛿𝑑 denotes the dynamic waypoint-offset magnitude and r𝑘 is a unit vector defining the waypoint-offset direction at harvesting step 𝑘, with ‖r𝑘 ‖2 = 1. Unlike the static waypoint in Eq. (9), whose reference position is associated with an individual fruit, the dynamic waypoint is determined from the spatial distribution of the remaining targets. 17

In the implemented system, the offset direction is aligned with the positive 𝑥-axis of the robot-base frame. Let ex denote the unit vector along this axis; then r𝑘 = e𝑥 . The offset magnitude 𝛿𝑑 is treated as a tunable parameter of the dynamic waypoint generation procedure. Section 5.3.1 presents the evaluated offset values and the setting used in the physical experiments. The recorded-coordinate analysis quantifies the resulting path length and waypoint–target distance, while the separate environment analysis examines the balance between travel distance and modeled end-effector interference.

During execution, the remaining-target set 𝑅𝑘 and its centroid c𝑘 are recalculated after each harvesting step. Consequently, w𝑘𝑑 changes according to the updated target distribution while the optimized harvesting sequence 𝑆 ∗ remains unchanged. This online update of the intermediate waypoint is referred to as dynamic waypoint refinement. 4.2.2 Genetic algorithm-based planning with dynamic waypoint refinement Algorithm 2 applies dynamic waypoint refinement while retaining the GA-based sequence 𝑆 ∗ . At harvesting step 𝑘, the robot selects p𝜋𝑘∗ from this sequence, constructs the remaining-target set 𝑅𝑘, and computes its centroid c𝑘 . The waypoint w𝑘𝑑 generated by Eq. (17) then provides the intermediate transition position before the robot approaches the current target. After the target operation, the processed fruit is removed from the active set, so the next step uses an updated centroid and waypoint. This process continues until all targets in 𝑆 ∗ have been processed. Let 𝐽 = {q1, q2, …, q𝐿 } denote the Cartesian trajectory generated during robotic execution, where q𝑙 represents a sampled TCP position along the planned or executed motion. The geometric trajectory length is defined as

𝐿−1

𝐽𝑡𝑟𝑎𝑗 (𝐽) = ∑‖q𝑙+1 − q𝑙 ‖2 .

(18)

𝑙=1

18

(a)

(b)

Fig. 5 Experimental setup: (a) hardware and (b) testbed was configured with a manipulator, RGB-D camera, and artificial fruits to reflect dense field conditions.

Fig. 6 Field experimental environment in a greenhouse; overview of the harvesting workspace, showing the spatial arrangement of fruit and surrounding foliage under actual growing conditions. This trajectory measure describes the manipulator motion generated by the waypoint strategy, whereas 𝐽𝑜𝑟𝑑 (𝑆) in Eq. (12) is the objective used to determine the harvesting order. Dynamic waypoint refinement therefore changes the motion associated with 𝐽𝑡𝑟𝑎𝑗 (𝐽) while retaining the sequence 𝑆 ∗ obtained from the ordering objective.

5. Experiment

5.1 Experimental setup 19

(a)

(b)

(c)

(d)

Fig. 7 Experimental scenarios: (a) case 1, (b) case 2, (c) case 3, and (d) case 4. The experimental setup supported fruit detection, harvest-order planning, and robot execution in the laboratory and greenhouse. The hardware, perception dataset, and parameter settings are described below. 5.1.1. Experimental environments and hardware The robotic harvesting system was evaluated in a controlled laboratory testbed and a greenhouse in Nonsan, Republic of Korea. The laboratory testbed shown in Fig. 5 used artificial fruit, whereas the greenhouse environment shown in Fig. 6 contained naturally occurring variation in fruit count and spatial arrangement. In both environments, the experiments used the right manipulator of the dual-arm platform. A global RGB-D camera provided the fruit positions for harvest-order planning, while a local RGB-D camera mounted on the manipulator

20

provided close-range observation during robot execution. The detector-training hardware consisted of an Intel Core i7-10750H CPU, an NVIDIA GeForce RTX 2060 GPU, and 16 GB of RAM. 5.1.2. Dataset construction The detection dataset comprised images of yellow Korean melons and their leaves acquired in the laboratory testbed using an iPhone 16 Pro camera. To reflect the side views captured by the robot camera, images were acquired from lateral viewpoints, with the viewing angle varied to provide perspective diversity. A total of 282 images were collected and annotated using Roboflow, with Korean melons and leaves defined as the two object classes. The annotated dataset was divided into 198 training images, 42 validation images, and 42 test images. 5.1.3. Parameter settings The perception models were trained using the dataset described above. All models were trained for 100 epochs with an input resolution of 640 × 640 pixels. The batch size and initial learning rate were set to 16 and 0.001, respectively, following preliminary training trials. These settings defined the training conditions for the detector comparison. For harvest-order optimization, the GA configuration was held constant across the experiments, with a population size of 𝑀 = 200, a generation limit of 𝑁gen = 300, a retained population size of 𝑀keep = 100, and 𝑁mut = 20 swap mutations. The separate offline validation used the same configuration with referenceassisted early termination, as described in Section 5.3.1. 5.2 Experimental design The laboratory condition provided a repeatable comparison of the harvesting strategies, while the field condition examined their execution under variation in target count and spatial distribution. Both conditions used the same four execution strategies, illustrated in Fig. 7 and defined as follows: •

Case 1: Random sequence with direct target motion and Home return

Case 2: GA-based sequence with static waypoints and Home return 21

Case 3: GA-based sequence with static waypoints and continuous execution

Case 4: GA-based sequence with dynamic waypoints and continuous execution

Cases 2 and 3 assess the effect of repeated Home return, whereas Cases 3 and 4 compare waypoint formulations under continuous execution. Cases 1 and 2 assess the combined changes in ordering and approach structure. Continuous execution assumes separate fruit transfer, whose mechanism was outside the evaluation. Each case was tested over 20 laboratory trials with six artificial fruit arranged at different depths with partial occlusion. Field trials covered four-, five-, and six-fruit conditions, with five trials per case and condition, yielding 60 trials and 75 target operations per case. Fruit coordinates were recorded before each execution to document the target configuration used in each trial. Motion efficiency was assessed using execution time and travel length, while field videos were reviewed for collision events and successful target approaches. Uninterrupted contact counted as one event, and renewed contact after separation counted as another. An approach was successful when the end-effector reached the intended target region without crop structures blocking a harvestable approach. Since contact could occur before successful target access, the two outcomes were recorded independently. Planning and sequence-completion indicators were also recorded to distinguish command execution from physical target access. Fruit detachment and post-harvest condition were not evaluated. Table 2. Detection results Model

Precision (%)

Recall (%)

[email protected] (%)

[email protected]:0.95 (%)

F1-score (%)

YOLOv8n

94.2

96.9

97.8

96.6

95.6

YOLOv8s

89.0

94.8

93.2

88.1

91.8

YOLOv8m

82.7

88.5

85.8

81.8

85.5

YOLOv8l

81.5

86.0

84.6

79.8

83.7

[email protected] denotes AP at an IoU threshold of 0.50; [email protected]:0.95 denotes mean AP over IoU thresholds from 0.50 to 0.95 22

(a)

(b)

Fig. 8 Representative fruit detection and harvest-order outputs: (a) detected fruit and (b) the resulting GAbased harvest order. Table 3. Offset-parameter analysis using recorded fruit coordinates and crop configurations. Coordinate analysis

Geometric analysis Intersecting

Offset

Waypoint–target Path length (m/target)

Path length (m/target)

(m)

target steps

distance (m) (%) St

Dy

St

Dy

St

Dy

St

Dy

0.03

0.156±0.029

0.216±0.052

0.03

0.091±0.023

0.233±0.023

0.367±0.046

36.2

41.6

0.05

0.196±0.029

0.238±0.048

0.05

0.101±0.021

0.273±0.023

0.382±0.046

26.7

34.7

0.06†

0.216±0.029

0.250±0.046

0.06

0.108±0.020

0.293±0.023

0.391±0.046

22.2

31.8

0.09

0.276±0.029

0.292±0.041

0.09

0.129±0.017

0.353±0.023

0.422±0.045

16.2

23.8

0.10‡

0.296±0.029

0.307±0.039

0.10

0.136±0.017

0.373±0.023

0.434±0.044

15.1

22.2

0.15

0.396±0.029

0.390±0.032

0.15

0.177±0.013

0.473±0.023

0.501±0.042

12.4

15.8

St and Dy denote static and dynamic waypoints, respectively. Values are mean ± sample SD across configurations. Path length is normalized by target count before aggregation; dynamic waypoint-target distance is averaged within each configuration first. Static waypoint-target distance equals 𝛿𝑠 . Paths include inter-waypoint transfer, approach, and retraction, excluding Home travel. Intersection percentages are calculated over 450 target steps for each strategy and offset under the reference condition. † and ‡ indicate the static and dynamic settings 23

used in the physical experiments, respectively. Bold values identify the geometric path length and interference results at these settings. 5.3 Experimental results Table 3 compares the detection performance of the evaluated YOLOv8 variants. YOLOv8n achieved the highest precision, recall, mAP, and F1-score and was selected to provide detections for RGB-D localization and harvestorder planning. Figure 8 illustrates the corresponding fruit detections and GA-based harvesting order. 5.3.1. Parameter analysis Waypoint offset sensitivity was evaluated at the values listed in Table 2, using the same 30 recorded coordinate sets from Cases 3 and 4 for both formulations, with equal representation of each fruit-count condition. Fruit coordinates, harvesting order, and continuous execution policy were fixed within each set. Larger offsets increased path length for both formulations. For static waypoints, the increase arose from longer approach and retraction distances, since the waypoint–target distance equals the prescribed offset. For dynamic waypoints, this distance also depended on the target’s position relative to the remaining-target centroid. Geometric interference was evaluated in fruit and foliage layouts, balanced across the fruit-count conditions. Both formulations used the same shortest open Euclidean order within each layout. The model represented fruit and leaves with simplified geometries and the end-effector with a spherical envelope, allowing intended contact with the current fruit; leaf deformation, manipulator-link collisions, and kinematic feasibility were not modeled. In the reference condition, with three leaves per fruit and a 20 mm tool radius, larger offsets reduced intersecting target steps but increased path length, and static waypoints produced fewer intersections at matched offsets. A post hoc score subtracted the normalized increase in mean total path length from the normalized reduction in intersecting steps, with equal weights over the tested range. The score was highest at 0.09 m for both formulations under the reference condition. Across the tested variations in foliage density and tool radius, the highest-scoring offset remained at 0.09 m for dynamic waypoints and varied between 0.06 and 0.09 m for static waypoints. These

24

results characterize the geometric effects of offset variation, while the marked settings identify the configurations evaluated in the physical experiments. GA solution quality was assessed against the exact minimum ordering cost obtained by exhaustive enumeration for each recorded coordinate set. During offline validation, a run terminated when its best cost was within 10−12 m of the reference minimum or the generation limit was reached. The reported runtime therefore describes GA search with reference-assisted termination. With 𝑆GA and 𝑆exact denoting the GA and exact solutions, respectively, the optimality gap (OG) was defined as

OG =

𝐽𝑜𝑟𝑑 (𝑆GA ) − 𝐽𝑜𝑟𝑑 (𝑆exact ) × 100. 𝐽𝑜𝑟𝑑 (𝑆exact )

(19)

Table 4. Offline GA validation against exhaustive enumeration. Evaluation item

Result

Recorded target-coordinate sets

60

GA runs per target set

30

Total GA runs

1,800

Exact optimum attainment

100.0%

Mean optimality gap

1.67 × 10−15 %

Maximum optimality gap

1.89 × 10−14 %

Mean computation time (ms/run)

4.0

Attainment denotes an optimality gap no greater than 10−9 %. Mean computation time averages the set-level mean runtimes and excludes exhaustive enumeration. Runs use the reference-assisted stopping criterion described in the text.

25

Fig. 9 Offline GA computation time for (A) four-, (B) five-, and (C) six-fruit conditions. Each point represents the mean runtime for one coordinate set, with Case labels indicating its source. Boxes summarize the five set-level means in each group using the median and interquartile range; whiskers extend to observed values within 1.5 times the interquartile range. All observations are shown on a common logarithmic axis. Runtime definitions are given in Table 4. All repeated runs attained the exact ordering optimum within numerical tolerance (Table 4), although the computation time varied across coordinate sets (Fig. 9). This agreement establishes the ordering quality for the evaluated inputs. The physical experiments then assess how the ordering and waypoint strategies translate into robot motion and target access Table 5. Laboratory results of the harvesting strategies. Case

Harvesting time (s)

Collision (n)

Travel length (m)

Case 1

86.4±2.9

36.4±2.0

18.3±3.8

Case 2

62.4±2.6

18.4±2.0

14.3±0.8

Case 3

43.4±4.7

2.4±1.2

9.7±2.6

Case 4

50.3±2.9

1.2±0.8

10.1±1.1

Values are mean ± sample SD across the 20 trials for each Case.

26

Fig. 10 Laboratory execution with dynamic waypoints over six successive target steps. Each step shows intermediate waypoint motion and the final target approach; annotations identify the waypoint and remaining-target centroid. 5.3.2. Laboratory experiment The laboratory comparison showed that reducing Home-return motion and changing waypoint placement affected different aspects of robot execution (Table 5). Case 2 reduced harvesting time, collision occurrence, and travel length relative to Case 1 through the combined use of GA-based ordering and static waypoints. Removing repeated Home return in Case 3 further reduced time and travel length. Under the same continuous execution policy, Case 4 achieved the lowest collision occurrence with dynamic waypoints, although time and travel length increased relative to Case 3. Figure 10 illustrates the intermediate waypoint motion and final target approach during dynamic-waypoint execution. The greenhouse experiments examined whether this pattern persisted among actual fruit and foliage. 5.3.3. Field experiment In the greenhouse, Case 3 required less time and TCP travel, whereas Case 4 achieved fewer collisions and more successful target approaches (Table 6). Across the separately recorded configurations, Case 4 reduced 27

Fig. 11 Field performance by Case and fruit count. Columns show (A1–A3) time per target, (B1–B3) TCP path per target, (C1–C3) collision events, and (D1–D3) approach success; rows correspond to four-, five-, and six-fruit conditions. Each point represents one trial. Boxes show the median and interquartile range, with whiskers extending to observations within 1.5 times the interquartile range. All observations are displayed; horizontal displacement separates overlapping points. Collision events are counted per trial, while Table 6 gives Case totals. Approach success follows the physical-access criterion in Section 5.2.

Table 6. Field motion efficiency and target accessibility under multiple fruit configurations Motion efficiency Case

Target accessibility

Time

TCP path

Collision

Approach success

(s/target)

(m/target)

events

n/N (%)

Case 1

33.92 ± 9.04

0.713 ± 0.051

55

33/75 (44.0)

Case 2

41.60 ± 15.37

0.731 ± 0.054

55

33/75 (44.0)

Case 3

14.77 ± 5.05

0.288 ± 0.021

55

49/75 (65.3)

Case 4

17.71 ± 7.29

0.377 ± 0.027

40

53/75 (70.7)

Time and TCP path are mean ± sample SD across trials within each Case, after normalization by target count. Collision events are Case totals; approach success is the pooled number of successful approaches divided by total target attempts. 28

Table 7. Field motion-planning and sequence-completion indicators. Planning

Target-level

Trial-level

Replanning

Planning

success (%)

completion, n/N (%)

completion, n/N (%)

n/N

latency (s)

Case 1

100.0

75/75 (100.0)

15/15 (100.0)

0/75

0.0406

Case 2

99.3

74/75 (98.7)

14/15 (93.3)

0/75

0.0265

Case 3

100.0

75/75 (100.0)

15/15 (100.0)

7/75

0.0184

Case 4

100.0

75/75 (100.0)

15/15 (100.0)

13/75

0.0178

Case

Planning success is calculated over motion-planning attempts; completion refers to commanded target- or triallevel sequences. Replanning counts target sequences requiring at least one additional planning attempt. Latency is the unweighted mean of trial-level mean motion-planning times. Table 8. Field execution results according to the number of observed fruit. Time (s/target)

TCP path (m/target)

Case 4 fruit

5 fruit

6 fruit

4 fruit

5 fruit

6 fruit

Case 1

42.94 ± 8.26

31.61 ± 7.19

27.21 ± 1.11

0.667 ± 0.027

0.710 ± 0.013

0.761 ± 0.051

Case 2

57.76 ± 15.52

36.72 ± 8.29

30.31 ± 1.43

0.684 ± 0.038

0.729 ± 0.017

0.781 ± 0.050

Case 3

20.95 ± 3.48

12.60 ± 1.48

10.77 ± 1.17

0.305 ± 0.024

0.277 ± 0.014

0.281 ± 0.012

Case 4

23.06 ± 5.04

16.15 ± 9.92

13.90 ± 2.27

0.374 ± 0.039

0.368 ± 0.023

0.388 ± 0.017

Values are mean ± sample SD across trials within each Case and fruit-count condition, after normalization by target count. Figure 11 shows the corresponding trial-level observations. collision events from 55 to 40 relative to Case 3, a 27.3% reduction, and increased successful approaches from 49/75 to 53/75, corresponding to a gain of 5.3 percentage points. Under the evaluated configurations, Case 4 achieved fewer collision events and a higher target-approach success rate than Case 3, while requiring more execution time and TCP travel per target. Figure 11 presents the trial-level distributions of execution time, TCP path length, collision events, and approach success for each Case and fruit-count condition. The comparison by fruit count showed the same pattern in motion efficiency: Case 3 required less time and TCP travel than Case 4, while both continuous strategies reduced these measures relative to the Home-return 29

strategies (Table 7). Target access followed a different pattern. Approach success was lower in six-fruit scenes than in four- and five-fruit scenes, whose pooled rates were similar (Fig. 11).

Moreover, Cases 1 and 2 had

identical collision counts and approach-success outcomes, whereas Case 3 achieved more successful approaches at the same collision count across the separately recorded configurations. Collision counts therefore need to be considered alongside approach success when assessing physical target access. Both continuous strategies completed all commanded trial-level sequences, although Case 4 required replanning for more target sequences than Case 3 (Table 8). Planning success remained high and mean latency was low across cases. Considered alongside the approach-success results, this shows that completion of a commanded sequence did not necessarily correspond to physical target access. The field evaluation therefore distinguishes the ability to execute the motion sequence from the ability to reach the fruit within the crop environment.

6. Discussions

6.1 Dual-arm based harvesting robot Single-arm harvesting robots have a limited ability to cope with complex, real-world agricultural environments. They often struggle with occlusion caused by dense foliage or overlapping fruit and have restricted reachability due to their fixed base and limited degree of freedom. More critically, they display poor adaptability to dynamic disturbances, such as fruit or branch movement caused by wind, physical interaction, or the harvesting process. These disturbances can significantly degrade the performance of vision-based perception and cause failed grasping or unnecessary replanning. Thus, single-arm systems lack the robustness required for consistent performance under unstructured and fluctuating field conditions. In contrast, dual-arm manipulation provides a more human-like solution, addressing these limitations. One arm can be dedicated to environmental interaction, such as pushing aside obstructing leaves or stabilizing moving targets, whereas the other can perform the harvesting task. This separation of roles enables the robot to maintain 30

clear visibility of the target and increases the reliability of perception, even in the presence of external disturbances. Moreover, in scenarios where multiple pieces of fruit are spatially separated, both arms can operate simultaneously to improve efficiency. The present experiments evaluated harvest ordering and waypoint execution using the right manipulator of the dual-arm platform. Extending the framework to coordinated dual-arm operation would require task allocation and inter-arm collision avoidance, together with experimental evaluation of their effects on harvesting performance. Further, integrating tactile and visual feedback in future systems enhances the adaptability and robustness of dual-arm harvesting in dynamic agricultural environments. 6.2 Obstacle avoidance Obstacle avoidance algorithms have been extensively employed in unstructured agricultural environments, enabling robots to produce collision-free paths around complex plant structures. However, although obstacle avoidance algorithms often compute feasible trajectories, their performance in dense and cluttered crop scenarios remains limited in practice. When fruit is embedded in overlapping leaves or neighboring stems, the planner may fail to determine a valid path satisfying the collision constraints and task-specific approach requirements. Even if a path is generated, it often brings the robotic end-effector or links close to nearby obstacles. This proximity can result in unintended contact with flexible plant elements (e.g., leaves or branches), causing them or the fruit to move slightly during execution. Such environmental disturbances directly affect the perception system. Visual localization of target fruit depends on spatial consistency, and even minor movement caused by physical interaction can cause an inaccurate position estimation. In turn, this inaccurate estimation increases the likelihood of grasp misalignment or failure to complete a harvesting action. In some cases, repeated failure to generate feasible paths triggers multiple replanning attempts, increasing the motion duration and possibility of destabilizing the scene. Hence, conventional obstacle avoidance alone is insufficient in these environments. A more robust planning framework should consider geometric constraints and minimize the risk of disturbing the scene during execution. Integrating models of plant

31

flexibility, occlusion dynamics, and real-time feedback from perception modules is essential for achieving reliable performance in field conditions.

7. Conclusions

This paper proposes a GA-based harvest ordering system for dense and unstructured crop environments. The proposed method combines RGB-D fruit localization, GA-based harvest ordering, and static/dynamic waypoint execution. The GA uses 3D Euclidean target distances, while the dynamic waypoint is updated from the remaining-target centroid without changing the GA sequence. The GA reached the exhaustive-search minimum in all validation runs, and both waypoint offsets were examined by sensitivity analysis. Laboratory and four- to six-fruit field experiments showed that continuous execution reduces unnecessary Home-return motion. Compared with continuous static-waypoint execution, the dynamic-waypoint strategy reduced collision occurrence and improved target-approach success while requiring more time and TCP travel, demonstrating an improvement in physical target accessibility under the evaluated field conditions. Future work will address larger environments, obstacle-aware planning, and dual-arm coordination. Declaration of Competing Interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgment

This work was supported by Korea Institute of Planning and Evaluation for Technology in Food, Agriculture and Forestry(IPET) through Agriculture and Food Convergence Technologies Program for Research Manpower development, funded by Ministry of Agriculture, Food and Rural Affairs(MAFRA)(RS-2024-00402136).

References

  1. Akdoğan, C., Özer, T., Oğuz, Y. (2025). PP-YOLO: Deep learning based detection model to detect apple and 32 cherry trees in orchard based on Histogram and Wavelet preprocessing techniques. Computers and Electronics in Agriculture, 232, 110052. https://doi.org/10.1016/j.compag.2025.110052 Bac, C.W., Hemming, J., Van Tuijl, B., Barth, R., Wais, E., van Henten, E.J. (2017). Performance evaluation of a harvesting robot for sweet pepper. Journal of Field Robotics, 34, 1123–1139. https://doi.org/10.1002/rob.21709 Bhattarai, U., Bhusal, S., Zhang, Q., Karkee, M. (2024). AgRegNet: A deep regression network for flower and fruit density estimation, localization, and counting in orchards. Computers and Electronics in Agriculture, 227, 109534. https://doi.org/10.1016/j.compag.2024.109534 Cui, J., Zhang, X., Zhang, J., Han, Y., Ai, H., Dong, C., Liu, H. (2024). Weed identification in soybean seedling stage based on UAV images and Faster R-CNN. Computers and Electronics in Agriculture, 227, 109533. https://doi.org/10.1016/j.compag.2024.109533 Dai, N., Fang, J., Yuan, J., Liu, X. (2024). 3MSP2: Sequential picking planning for multi-fruit congregated tomato harvesting in multi-clusters environment based on multi-views. Computers and Electronics in Agriculture, 225, 109303. https://doi.org/10.1016/j.compag.2024.109303 Ding, F., Luo, X., Zhang, Z., Hu, L., Wu, X., Bao, K., Zhang, J., Yuan, B., Zhang, W., (2025). Dual-unloading mode autonomous operation strategy and cotransporter system for rice harvester and transporter. Engineering, 48, 220–233. https://doi.org/ 10.1016/j.eng.2024.11.006 Du, W., Cui, X., Zhu, Y., Liu, P. (2025). Detection of table grape berries need to be removed before thinning based on deep learning. Computers and Electronics in Agriculture, 231, 110043. https://doi.org/10.1016/j.compag.2025.110043 Fan, J., Lu, G., Dai, N., Liu, X., Zhang, P., Yuan, J., (2026). MOSP: A multi-orientation sequential picking planning for robotic harvest of breeding cotton. Computers and Electronics in Agriculture, 250, 111896. https://doi.org/10.1016/j. compag.2026.111896 33 Gao, F., Fu, L., Zhang, X., Majeed, Y., Li, R., Karkee, M., Zhang, Q. (2020). Multi-class fruit-on-plant detection for apple in SNAP system using Faster R-CNN. Computers and Electronics in Agriculture, 176, 105634. https://doi.org/10.1016/j.compag.2020.105634 He, L., Sun, Y., Chen, L., Feng, Q., Li, Y., Lin, J., Qiao, Y., Zhao, C., (2025a). Advance on agricultural robot hand–eye coordination for agronomic task: A review. Engineering, 51, 263-279. https://doi.org/ 10.1016/j.eng.2025.01.022 He, Z., Karkee, M., Zhang, Q., (2025b). Enhanced machine vision system for field-based detection of pickable strawberries: Integrating an advanced two-step deep learning model merging improved YOLOv8 and YOLOv5-cls. Computers and Electronics in Agriculture, 234, 110173. https://doi.org/10.1016/j.compag.2025. 110173 Jiang, H., Murengami, B.G., Jiang, L., Chen, C., Johnson, C., Cheein, F.A., Fountas, S., Li, R., Fu, L. (2024). Automated segmentation of individual leafy potato stems after canopy consolidation using YOLOv8x with spatial and spectral features for UAV-based dense crop identification. Computers and Electronics in Agriculture, 219, 108795. https://doi.org/10.1016/j.compag.2024.108795 Jiang, Z., Zhou, J., Han, H., Wang, Y., (2025). An apple fruit localization system based on accurate and flexible hand-eye pose acquisition for robotic harvesting. Computers and Electronics in Agriculture, 229, 109705. https://doi.org/10.1016/j. compag.2024.109705 Jun, J., Kim, J., Seol, J., Kim, J., Son, H.I. (2021). Towards an Efficient Tomato Harvesting Robot: 3D Perception, Manipulation, and End-Effector. IEEE Access, 9, 17631–17640. https://doi.org/10.1109/ACCESS.2021.3052240 Koirala, A., Walsh, K.B., Wang, Z., McCarthy, C. (2019). Deep learning–Method overview and review of use for fruit detection and yield estimation. Computers and electronics in agriculture, 162, 219–234. https://doi.org/10.1016/j.compag.2019.04.017 34 Kurtser, P., Edan, Y. (2020). Planning the sequence of tasks for harvesting robots. Robotics and Autonomous Systems, 131, 103591. https://doi.org/10.1016/j.robot.2020.103591 Li, H., Chen, J., Gu, Z., Dong, T., Chen, J., Huang, J., Gai, J., Gong, H., Lu, Z., He, D. (2025a). Optimizing edgeenabled system for detecting green passion fruits in complex natural orchards using lightweight deep learning model. Computers and Electronics in Agriculture, 234, 110269. https://doi.org/10.1016/j.compag.2025.110269 Li, J., Li, C., Zeng, S., Luo, X., Chen, C.P., Yang, C. (2025b). A lightweight pineapple detection network based on YOLOv7-tiny for agricultural robot system. Computers and Electronics in Agriculture, 231, 109944. https://doi.org/10.1016/j.compag.2025.109944 Li, M., Zhu, X., Ji, J., Jin, X., Li, B., Chen, K., Zhang, W. (2025c). Visual perception enabled agriculture intelligence: A selective seedling picking transplanting robot. Computers and Electronics in Agriculture, 229, 109821. https://doi.org/10.1016/j.compag.2024.109821 Li, X., Liu, B., Shi, Y., Xiong, M., Ren, D., Wu, L., Zou, X. (2024). Efficient three-dimensional reconstruction and skeleton extraction for intelligent pruning of fruit trees. Computers and Electronics in Agriculture, 227, 109554. https://doi.org/10.1016/j.compag.2024.109554 Lin, Z., Liu, W., Wang, S., Pan, J., Fu, R., Chen, T., Lin, T. (2025). Strawberry harvest date prediction using multi-feature fusion deep learning in plant factory. Computers and Electronics in Agriculture, 234, 110174. https://doi.org/10.1016/j.compag.2025.110174 Liu, S., Ampatzidis, Y., Zhou, C., Lee, W.S. (2025). AI-driven time series analysis for predicting strawberry weekly yields integrating fruit monitoring and weather data for optimized harvest planning. Computers and Electronics in Agriculture, 233, 110212. https://doi.org/10.1016/j.compag.2025.110212 Liu, X., Song, Z., Tan, Y., Yang, S., Ma, Y., (2026). Conflict avoidance task planning strategy for dual-arm cooperative strawberry harvesting robots. Computers and Electronics in Agriculture, 241, 111067. 35 https://doi.org/10.1016/j.compag.2025.111067. Liu, Z., Abeyrathna, R.R.D., Sampurno, R.M., Nakaguchi, V.M., Ahamed, T. (2024). Faster-YOLO-AP: A lightweight apple detection algorithm based on improved YOLOv8 with a new efficient PDWConv in orchard. Computers and Electronics in Agriculture, 223, 109118. https://doi.org/10.1016/j.compag.2024.109118 Pak, J., Kim, B., Ju, C., Son, H.I., (2024). Unmanned aerial vehicle-based autonomous tracking system for invasive flying insects. Computers and Electronics in Agriculture, 227, 109616. https://doi.org/10.1016/j.compag.2024.109616. Pak, J., Kim, B., Ju, C., You, S.H., Son, H.I. (2023). UAV-Based Trilateration System for Localization and Tracking of Radio-Tagged Flying Insects: Development and Field Evaluation, in 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), IEEE. 1–8. https://doi.org/10.1109/IROS55552.2023.10341725 Pak, J., Kim, J., Park, Y., Son, H.I. (2022). Field Evaluation of Path-Planning Algorithms for Autonomous Mobile Robot in Smart Farms. IEEE Access, 10, 60253–60266. https://doi.org/10.1109/ACCESS.2022.3181131 Pak, J., Son, H.I. (2025). 3D LiDAR-Based Semantic SLAM for Intelligent Irrigation Using UAV. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing. 18, 7495–7508. https://doi.org/10.1109/JSTARS.2025.3547717 Park, Y., Kim, C., Son, H.I. (2024). Fast and stable pedicel detection for robust visual servoing to harvest shaking fruits. Computers and Electronics in Agriculture, 220, 108863. https://doi.org/10.1016/j.compag.2024.108863 Park, Y., Seol, J., Pak, J., Jo, Y., Kim, C., Son, H.I. (2023). Human-centered approach for an efficient cucumber harvesting robot system: Harvest ordering, visual servoing, and end-effector. Computers and Electronics in Agriculture, 212, 108116. https://doi.org/10.1016/j.compag.2023.108116 Redmon, J., Divvala, S., Girshick, R., Farhadi, A. (2016). You Only Look Once: Unified, Real-Time Object 36 Detection, in Proceedings of the IEEE conference on computer vision and pattern recognition, 779–788. Seol, J., Kim, J., Son, H.I. (2022a). Field evaluations of a deep learning-based intelligent spraying robot with flow control for pear orchards. Precision Agriculture, 23, 712–732. https://doi.org/10.1007/s11119-021-09856-1 Seol, J., Kim, J., Son, H.I. (2022b). Spray Drift Segmentation for Intelligent Spraying System Using 3D Point Cloud Deep Learning Framework. IEEE Access, 10, 77263–77271. https://doi.org/10.1109/ACCESS.2022.3192028 Seol, J., Pak, J., Son, H.I. (2024a). Development of Tributary Mapping System using Multiple Unmanned Aerial Vehicles with LiDAR. IEEE Access, 13, 4081–4097. https://doi.org/10.1109/ACCESS.2024.3524586 Seol, J., Park, Y., Pak, J., Jo, Y., Lee, G., Kim, Y., Ju, C., Hong, A., Son, H.I. (2024b). Human-Centered Robotic System for Agricultural Applications: Design, Development, and Field Evaluation. Agriculture, 14, 1985. https://doi.org/10.3390/agriculture14111985 Shen, Q., Zhang, X., Shen, M., Xu, D. (2025). Multi-scale adaptive YOLO for instance segmentation of grape pedicels. Computers and Electronics in Agriculture, 229, 109712. https://doi.org/10.1016/j.compag.2024.109712 Solimani, F., Cardellicchio, A., Dimauro, G., Petrozza, A., Summerer, S., Cellini, F., Renò, V. (2024). Optimizing tomato plant phenotyping detection: Boosting YOLOv8 architecture to tackle data complexity. Computers and Electronics in Agriculture, 218, 108728. https://doi.org/10.1016/j.compag.2024.108728 Suo, R., Gao, F., Zhou, Z., Fu, L., Song, Z., Dhupia, J., Li, R., Cui, Y. (2021). Improved multi-classes kiwifruit detection in orchard to avoid collisions during robotic picking. Computers and Electronics in Agriculture, 182, 106052. https://doi.org/10.1016/j.compag.2021.106052 Wu, Y., Chen, J., Wu, S., Li, H., He, L., Zhao, R., Wu, C. (2024). An improved YOLOv7 network using RGB-D multi-modal feature fusion for tea shoots detection. Computers and Electronics in Agriculture, 216, 108541. 37 https://doi.org/10.1016/j.compag.2023.108541 Zhang, M., Hong, D., Wu, J., Zhu, Y., Zhao, Q., Zhang, X., Luo, H. (2025a). Sheep-YOLO: improved and lightweight YOLOv8n for precise and intelligent recognition of fattening lambs’ behaviors and vitality statuses. Computers and Electronics in Agriculture, 236, 110413. https://doi.org/10.1016/j.compag.2025.110413 Zhang, Q., Liu, F., Li, B. (2023). A heuristic tomato-bunch harvest manipulator path planning method based on a 3D-CNN-based position posture map and rapidly-exploring random tree. Computers and Electronics in Agriculture, 213, 108183. https://doi.org/10.1016/j.compag.2023.108183 Zhang, T., Tang, Z., Wang, Y., He, Y., Xu, L., Wang, Y., (2026). Path planning for citrus harvesting robot based on adaptive parallel-coupled RRT*. Computers and Electronics in Agriculture, 251, 112035. https://doi.org/10.1016/j.compag.2026.112035 Zhang, Y., Li, N., Zhang, L., Lin, J., Gao, X., Chen, G. (2025b). A review on the recent developments in visionbased apple-harvesting robots for recognizing fruit and picking pose. Computers and Electronics in Agriculture, 231, 109968. https://doi.org/10.1016/j.compag.2025.109968 Zhu, K., Li, J., Zhang, K., Arunachalam, C., Bhattacharya, S., Lu, R., Li, Z. (2025). Foundation model-based apple ripeness and size estimation for selective harvesting. Computers and Electronics in Agriculture, 236, 110407. https://doi.org/10.1016/j.compag.2025.110407 38