Design and performance validation of a lightweight YOLOv11n-based visual detection system for apple harvesting robots
This study presents YOLOv11n-EFAN, a lightweight and efficient apple detection system enhanced with dynamic snake convolution, feature aggregation, and global context attention, which achieves high accuracy and real-time performance on edge devices for robotic harvesting in complex orchard environments.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the quiet rows of an apple orchard, the work of harvesting is a delicate negotiation between human hands and nature's chaos. For centuries, this task has relied on the farmer's eye to spot a ripe fruit hidden behind a curtain of leaves, judge its readiness, and pluck it without bruising the skin or snapping the stem. Now, engineers are trying to teach machines to do the same. The challenge is not merely building a robot arm that can reach out; it is giving that robot a pair of eyes that can see clearly in a world that refuses to be orderly. Sunlight can glare off a leaf and blind a camera, shadows can hide a fruit in darkness, and branches can slice a single apple into a dozen fragmented pieces in the viewfinder. To succeed, a machine must not only recognize the shape of an apple but also understand that a partially hidden fruit is still a whole fruit, and that a dimly lit one is still ripe enough to pick. This requires a form of artificial vision that is fast enough to keep up with a moving robot, small enough to run on a battery-powered computer, and smart enough to ignore the distractions of a living forest.
A team of researchers from Minnan University of Science and Technology in Fujian, China, has developed a new system designed to solve exactly these problems for apple-harvesting robots. They created a specialized visual detector, a piece of software that acts as the robot's brain for seeing, built upon a modern framework known as YOLOv11n. While the base version of this software is already quite efficient, the researchers realized it struggled when faced with the messy reality of an orchard. To fix this, they did not simply make the software larger or more complex, which would have slowed it down and drained the robot's battery. Instead, they added four specific, targeted upgrades that work together like a team of specialists, each handling a different type of visual confusion.
The first upgrade helps the system deal with broken edges. When a leaf covers part of an apple, the outline of the fruit becomes a jagged, incomplete line. Standard vision systems often try to trace these lines with a rigid, grid-like pattern that misses the gaps. The researchers replaced this with a flexible, snake-like sampling method that allows the software to bend its focus along the actual, irregular curve of the fruit, even when it is partially hidden. The second upgrade acts as a filter for the robot's attention. In a crowded tree, the system receives many signals at once: some from the fruit, some from the leaves, and some from the sky. The new system learns to weigh these signals, amplifying the faint signals from small or dimly lit apples while suppressing the noisy background of green leaves. A third component helps the robot decide which version of the fruit it is seeing is the most reliable, blending different levels of detail into a single, clear picture. Finally, the system was taught to be more forgiving of imperfect training data. When humans label photos for the robot to learn from, they sometimes draw boxes around fruits that are heavily obscured, creating ambiguous instructions. The new software learned to treat these uncertain examples with less pressure, focusing its learning on the clear examples while still making a best guess on the blurry ones.
The results of this approach were tested in a real-world setting, not just in a computer simulation. The researchers gathered thousands of images from an orchard in Shishi, capturing apples in bright sun, under heavy overcast, and even at night with the help of artificial lights. They trained their new system on this data and then put it to the test on a physical robot equipped with a camera and a mechanical arm. The system proved remarkably effective at its job. On a standard test set of images, it correctly identified ripe and unripe apples with a precision of 91.2% and a recall of 87.5%, meaning it found almost all the apples that were there and rarely mistook a leaf for a fruit. Crucially, it did this while remaining incredibly lightweight, with a file size of just 5.9 megabytes, allowing it to run smoothly on a small, portable computer mounted directly on the robot.
When the robot was deployed in the field to harvest 320 marked apples, the system performed with high reliability. It successfully spotted 97.6% of the target fruits, meaning it missed approximately 2.4% of the visible targets, a rate that held steady even when the apples were backlit by the sun or hidden behind dense branches. Once the robot's eyes found a fruit, the mechanical arm attempted to pick it. Of the fruits the robot tried to grasp, 86.2% were successfully harvested without damage, with a damage rate of only 3.4%. The entire process, from spotting the fruit to placing it in a bin, took an average of 6.8 seconds per apple. The researchers noted that while the vision system missed a small fraction of fruits (about 2.4%), the majority of failures that did occur were caused by physical challenges, such as the robot's arm getting tangled in a stem or blocked by a neighboring branch, rather than by the robot failing to see the fruit. This distinction is vital: the vision system performed with high accuracy, identifying the vast majority of targets and providing the coordinates, but the physical world still presented obstacles that the camera could not see.
The study also highlighted what the system could not do. Because the robot uses a single, standard camera that sees only in two dimensions, it cannot measure the exact depth of the fruit or the distance to the stem with high precision. The researchers were careful to state that their system provides a two-dimensional center point for the robot to aim at, but it does not claim to solve the three-dimensional geometry of the harvest. This limitation means that while the robot can see the apple clearly, the final act of grasping it still requires careful mechanical planning to avoid collisions. Nevertheless, the work demonstrates that a robot can be given eyes that are both sharp and adaptable enough to handle the chaotic beauty of an orchard. By focusing on specific improvements rather than brute force, the researchers have shown that it is possible to build a machine that sees the world not as a grid of pixels, but as a complex, living environment where a fruit might be hidden, broken, or dim, yet still waiting to be found.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.