Paper · 2026 · Smart Agricultural Technology

A transformer-enhanced real-time detection method for young fruits in complex orchard environments

Jinyan Li; Xiyang Li; Jiyong Hu; et al.

5
claims
10
verbatim quotes
0
citations
3
research areas
✓
Open access · cc-by

Abstract

Accurate detection of apple young fruits is a critical prerequisite for achieving automated orchard management. However,due to the small size of young fruits, their similarity in color to the background, and frequent overlap and occlusion, real-time detection in complex orchard environments becomes a significant challenge. To overcome these challenges, we propose a multi-level, end-to-end, Transformer-enhanced real-time detection method–HLEdetection. This architecture is composed of three core modules: (1) a Hierarchical Multi-scale Feature Extraction module, which extracts fruit features at multiple resolutions to enhance the perception of small objects; (2) a Learned Positional Encoding Injection module, which introduces learnable positional embeddings during the decoding stage to strengthen feature alignment across scales, thereby improving localization precision and semantic consistency; and (3) the EMASlideLoss function, which combines an exponential moving average strategy with IoU-based weighting to mitigate severe class imbalance, further enhancing training stability and accuracy. We construct a custom dataset comprising four representative orchard scenarios to rigorously evaluate the proposed method. Experimental results demonstrate that HLEdetection achieves an average Precision of 91.7% and Recall of 79.7% across complex scenes, while maintaining a real-time inference speed of 27.8 FPS ( ≈ 36.0 ms/frame), thereby achieving an optimal balance between accuracy and efficiency. Compared with mainstream object detectors such as the YOLO series, DynamicDet, Faster R-CNN, and RT-DETR, our model shows over 20% improvement in both F1 score and mAP50-95, particularly excelling in densely occluded environments. These results confirm that the proposed method offers a robust and efficient solution for young fruit detection, providing solid technical support for the development of intelligent orchard equipment such as robotic harvesting, precision thinning, and targeted spraying systems.The source code is available at https://github.com/lijinyan628-ops/-recognition-of-apple .

Abstract from the paper’s OpenAlex record; open copy licensed cc-by. Read at the source ↗

The text the model read, with the source record’s inline markup (italics, sub- and superscripts) rendered and its character entities decoded; quote offsets refer to the raw text.

Claims 5

Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

HLEdetection reached 91.7% average precision across complex scenes.

Organ / stage
young fruitse0
Outcome
Precisione1
Value
91.7%e1

Organisms pictured · Representative pictures of the matched species, not figures from the paper.

Malus domestica
Malus domestica · TaxonW.carter · CC0 · Wikimedia Commons ↗

Verbatim

e0

“apple young fruits”

✓ located verbatim in the source · abstract, characters 22–40 · show in text ↑
e1

“HLEdetection achieves an average Precision of 91.7%”

✓ located verbatim in the source · abstract, characters 1267–1318 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

HLEdetection reached 79.7% recall across complex scenes.

Organ / stage
young fruitse0
Outcome
Recalle1
Value
79.7%e1

Organisms pictured · Representative pictures of the matched species, not figures from the paper.

Malus domestica
Malus domestica · TaxonW.carter · CC0 · Wikimedia Commons ↗

Verbatim

e0

“apple young fruits”

✓ located verbatim in the source · abstract, characters 22–40 · show in text ↑
e1

“Recall of 79.7%”

✓ located verbatim in the source · abstract, characters 1323–1338 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

HLEdetection ran at 27.8 FPS, approximately 36.0 ms/frame.

Organ / stage
young fruitse0
Outcome
real-time inference speede1
Value
27.8 FPSe1
Qualifier
≈ 36.0 ms/framee1

Organisms pictured · Representative pictures of the matched species, not figures from the paper.

Malus domestica
Malus domestica · TaxonW.carter · CC0 · Wikimedia Commons ↗

Verbatim

e0

“apple young fruits”

✓ located verbatim in the source · abstract, characters 22–40 · show in text ↑
e1

“real-time inference speed of 27.8 FPS ( ≈ 36.0 ms/frame)”

✓ located verbatim in the source · abstract, characters 1382–1438 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

HLEdetection improved F1 score by over 20% versus mainstream detectors.

Organ / stage
young fruitse0
Outcome
F1 scoree1
Direction
improvemente1
Value
over 20%e1
Comparator
mainstream object detectorse1

Organisms pictured · Representative pictures of the matched species, not figures from the paper.

Malus domestica
Malus domestica · TaxonW.carter · CC0 · Wikimedia Commons ↗

Verbatim

e0

“apple young fruits”

✓ located verbatim in the source · abstract, characters 22–40 · show in text ↑
e1

“Compared with mainstream object detectors such as the YOLO series, DynamicDet, Faster R-CNN, and RT-DETR, our model shows over 20% improvement in both F1 score and mAP50-95”

✓ located verbatim in the source · abstract, characters 1510–1682 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

HLEdetection improved mAP50-95 by over 20% versus mainstream detectors.

Organ / stage
young fruitse0
Outcome
mAP50-95e1
Direction
improvemente1
Value
over 20%e1
Comparator
mainstream object detectorse1

Organisms pictured · Representative pictures of the matched species, not figures from the paper.

Malus domestica
Malus domestica · TaxonW.carter · CC0 · Wikimedia Commons ↗

Verbatim

e0

“apple young fruits”

✓ located verbatim in the source · abstract, characters 22–40 · show in text ↑
e1

“Compared with mainstream object detectors such as the YOLO series, DynamicDet, Faster R-CNN, and RT-DETR, our model shows over 20% improvement in both F1 score and mAP50-95”

✓ located verbatim in the source · abstract, characters 1510–1682 · show in text ↑