CAppleNet: A Coordinate Attention-Based YOLO11 for Real-Time Apple Stem Cavity and Calyx Detection

Alican Güneş, Robert Selim Hill, Gökhan Hasanoğlu, Murat KurtarXiv 2026 · arXiv

TL;DR

Researchers conducted a rigorous, one-factor-at-a-time ablation study to optimize the new YOLO11 detector for identifying fine-grained apple landmarks like the stem cavity and calyx. They discovered that a lightweight architectural swap—replacing the standard C2PSA block with Coordinate Attention (CA)—outperformed complex data augmentation and hyperparameter tuning, achieving superior landmark detection with 10.2% fewer parameters.

What Problem Does This Paper Address?

In industrial agricultural automation, simply drawing a bounding box around a piece of fruit isn't enough. To automate grading, packaging, and robotic handling, systems need to know the fruit's orientation. This requires detecting specific morphological landmarks: the stem cavity (where the stem attaches) and the calyx (the flower end).

These landmarks are "fine-grained" features—they are small, often obscured by shadows, and vary wildly in appearance across different apple cultivars (e.g., a red Fuji vs. a green Granny Smith). While deep learning has revolutionized whole-fruit detection, there is a lack of systematic research into which specific design choices—like input resolution, augmentation, or attention mechanisms—actually drive performance for these tiny, critical sub-regions.

Methods

The authors adopted YOLO11s (the small variant of the latest YOLO iteration) as their baseline. To avoid the common pitfall of "feature stacking"—where researchers combine multiple tweaks without knowing which ones actually work—they employed a strict One-Factor-at-a-Time (OFAT) ablation protocol.

As shown in Figure 1, they systematically tested five dimensions:

  1. Spatial Resolution: Comparing the standard 640x640 to a higher 768x768.
  2. Augmentation Policy: Testing CutMix, Mixup, HSV jitter, and rotation.
  3. Optimizer/LR Schedule: Comparing the framework's "auto" settings against manual AdamW tuning.
  4. Architectural Modules: Swapping the backbone's C2PSA block for a Coordinate Attention (CA) module.
  5. Decision Threshold: Sweeping confidence thresholds to find the optimal deployment point.
Table 1. Ablation factors, tested variants, and engineering rationale.

Datasets

The study introduces a custom, self-collected dataset of 1,506 apple images (1,054 training, 301 validation, 151 test). Unlike many public datasets captured in messy orchards, these were taken under controlled, fixed-camera industrial conditions. This allowed the researchers to isolate the challenge of biological variability (color, texture, blemishes) from environmental noise (lighting, distance). Every image was manually annotated for three classes: fruit body, stem cavity, and calyx.

Key Insights and Ideas

  • The "More is Better" Fallacy: Surprisingly, increasing input resolution to 768x768 actually degraded performance, particularly for the stem cavity. The authors suggest this might be due to increased spatial quantization noise in self-attention layers or simply over-fitting on a moderately sized dataset.
  • Architecture Trumps Tuning: In a controlled environment, synthetic data augmentations (like Mixup or heavy HSV jitter) added more noise than useful invariance. The only intervention that meaningfully improved the hardest class (stem cavity) was the architectural swap to Coordinate Attention.
  • The Additivity Trap: One of the most important findings was that "good" tweaks don't always play nice together. When the researchers combined the winning CA-swap architecture with the best-performing augmentation variant, the results regressed. The two effects interacted destructively, reversing the architectural gains.
  • Landmark Disparity: The baseline results (Figure 2) highlighted that while whole-fruit detection is essentially "solved" (F1 = 0.99), the stem cavity remains the primary bottleneck for orientation systems due to its visual ambiguity and shallow depth-of-field shading.

Key Results

The baseline YOLO11s model achieved a strong overall F1-score of 0.9047 (see Figure 2). However, the CA-swap architecture emerged as the superior choice for industrial deployment:

  • Landmark Accuracy: It achieved the study's best [email protected] (0.935) and the highest F1-score for the difficult stem-cavity class (0.8217).
  • Efficiency: It reduced the parameter count by 10.2% and GFLOPs by 4.2% compared to the standard YOLO11s.
  • Deployment: A confidence-threshold sweep identified 0.15 as the ideal operating point, favoring recall to ensure fewer missed landmarks in high-speed sorting lines.
Table 2. Baseline performance on the held-out test split.

Limitations and Future Work

The authors acknowledge that their findings are currently tied to a single controlled environment. It remains to be seen if these specific factor rankings hold true in variable lighting or orchard environments. Additionally, the dataset is moderate in scale (1,506 images); a larger dataset might change the utility of aggressive data augmentation.

Future work will focus on implementing "CAppleNet" on mobile platforms for real-time field use and exploring more targeted, class-weighted training strategies to further bridge the performance gap between whole-fruit and landmark detection.

Summary updated

Abstract

Automated fruit grading, sorting, and orientation systems require real-time, accurate detection of fruit-level morphological landmarks rather than the fruit boundary alone. This paper presents a custom, fully self-collected and self-annotated dataset of 1506 apple images (1054 training, 301 validation, 151 test) captured under controlled, fixed-camera conditions and annotated for three target classes: fruit body, stem cavity, and calyx. A YOLO11s detector trained with default hyperparameters is adopted as the baseline, and a systematic, one-factor-at-a-time ablation study is conducted across input resolution, data augmentation policy, optimizer configuration, and lightweight architectural enhancement to identify the factors that most improve detection of these fine-grained landmarks under high inter-cultivar color and texture variability. Neither increased input resolution, nor any of six tested augmentation variants, nor manual optimizer tuning improved on the untuned baseline (F1 = 0.9047); only a same-slot architectural substitution of the backbone's C2PSA block with Coordinate Attention (CA) matched the baseline's overall F1 (0.9038) while reducing parameter count by 10.2% and achieving the study's best [email protected] (0.935) and best stem-cavity F1 (0.8217). A confidence-threshold sweep identified 0.15 as the deployment operating point for this model, and a confirmatory experiment combining the CA-swap architecture with the best-performing augmentation variant showed the two effects do not combine additively, reversing the architectural gain rather than compounding it. The resulting design recommendations --- the CA-swap architecture alone, at a 0.15 confidence threshold --- target real-time apple landmark detection for orientation-aware industrial sorting and alignment systems.
BibTeX
@misc{gunes2026capplenet,
  author = {Alican Güneş and Robert Selim Hill and Gökhan Hasanoğlu and Murat Kurt},
  title = {{CAppleNet: A Coordinate Attention-Based YOLO11 for Real-Time Apple Stem Cavity and Calyx Detection}},
  year = {2026},
  eprint = {2611.13920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13920},
}
Figure