TL;DR for operators
- Optimize the feature that determines the next mechanical action. A detector achieves 99.01% F1 for the apple body but only 79.18% for the stem cavity. Aggregate detection performance conceals a substantial weakness in orientation-relevant recognition.
- A targeted architectural substitution can outperform additional complexity. Replacing the existing attention block with Coordinate Attention raises stem-cavity F1 to 82.17% while reducing parameters by 10.2% and nominal computational requirements by 4.2%.
- Model improvements are not necessarily additive. Combining the attention substitution with stronger color augmentation reduces stem-cavity F1 to 73.19%, below even the original baseline.
- Detector selection is not production acceptance. Industrial deployment requires independent evaluation of landmark detection, localization tolerances, target-hardware performance, and the mechanical consequences of incorrect or missing predictions.
Introduction: The apple is detected, but its orientation is unknown
An automated fruit-sorting machine can recognize an apple approaching on a conveyor and still lack the information required to orient it correctly. The fruit boundary establishes its presence and approximate position. Its anatomical landmarks, particularly the stem cavity and calyx, provide information relevant to the next mechanical action.
A detector can misidentify a landmark or fail to recognize one that is visible. The F1 score combines precision and recall to summarize these competing detection errors.
In their CAppleNet study, Güneş and colleagues1 report a baseline fruit-body F1 of 0.9901, compared with 0.7918 for the stem cavity. Aggregate F1 is 0.9047 (Section 4.1, Table 2).
For an equipment designer, this difference changes the engineering objective. Improving detection of an already well-recognized fruit body may contribute little to resolving orientation failures. The more consequential question is which intervention improves the anatomical recognition required by the machinery.
The study investigates that question through controlled modifications to a common detector, revealing both a promising architectural substitution and a substantial deterioration when it is combined with another seemingly beneficial intervention.
A smaller detector improves the more difficult landmark
The researchers establish an untuned YOLO11s reference configuration using 640 × 640 images, default training augmentation, and automatic optimizer selection.
Their proprietary dataset contains 1,506 images collected under controlled illumination and fixed camera-to-fruit distance. The test partition consists of 151 images containing 233 annotated instances.
Rather than introducing several modifications simultaneously, the experiments evaluate designated intervention groups separately. This makes it possible to compare their incremental contributions against a common baseline.
Increasing input resolution to 768 × 768 provides an informative negative result. Aggregate F1 falls from 0.9047 to 0.8896, while stem-cavity recall declines from 0.963 to 0.745 (Section 4.2, Table 3).
The more promising architectural intervention replaces YOLO11s’s C2PSA attention block with Coordinate Attention, preserving the input and output dimensions of the existing module.
Recognizing a stem cavity requires sensitivity to subtle morphological features and their spatial arrangement. Coordinate Attention aggregates information separately along the height and width dimensions, retaining directional position information when weighting feature channels.
Its operation can be represented as:
Each input activation $X_{c,h,w}$ is reweighted by two direction-specific attention values. This representation, transcribed from Figure 1(b), describes the architectural operation rather than proving why detection improves.
The principal architectural comparison produces the following results.
| Metric | YOLO11s | Coordinate Attention |
|---|---|---|
| Fruit-body F1 | 0.9901 | 0.9908 |
| Calyx F1 | 0.9160 | 0.8969 |
| Stem-cavity F1 | 0.7918 | 0.8217 |
| Stem-cavity precision | 0.672 | 0.777 |
| Stem-cavity recall | 0.963 | 0.872 |
| Aggregate F1 | 0.9047 | 0.9038 |
| [email protected] | 0.921 | 0.935 |
| [email protected]:0.95 | 0.627 | 0.607 |
| Parameters | 9,413,961 | 8,451,449 |
| GFLOPs | 21.4 | 20.5 |
Source: Sections 4.1 and 4.5, Tables 2 and 13.
The stem-cavity F1 improvement of 2.99 percentage points comes primarily from improved precision, accompanied by reduced recall. Aggregate F1 remains approximately unchanged, while calyx F1 deteriorates.
Localization performance also requires scrutiny. Although mean average precision improves at a bounding-box overlap threshold of 0.5, it deteriorates when evaluated across increasingly strict overlap thresholds.
For an orientation system that requires accurate landmark coordinates, the stricter localization result may be consequential. Coordinate Attention is therefore a promising candidate when its particular precision-recall trade-off matches the mechanical requirements, rather than an unconditionally superior detector.
Why two promising modifications perform worse together
Data augmentation introduces artificial variation into training images so that a detector encounters a broader range of visual conditions.
In industrial environments, however, camera geometry and illumination may already be tightly controlled. Additional synthetic variability must preserve the visual information necessary for recognition.
The augmentation ablations illustrate this issue. Rotation, Mixup, CutMix, and stronger HSV augmentation all produce lower aggregate F1 than the default configuration (Section 4.3, Table 10).
Stronger HSV augmentation nevertheless achieves a notable class-specific result: calyx [email protected] increases from 0.918 to 0.964.
This provides a reasonable motivation to combine stronger color augmentation with Coordinate Attention, which had separately improved stem-cavity F1.
The direct combination experiment reveals a different outcome.
| Configuration | Aggregate F1 | Stem-cavity F1 | Calyx [email protected] |
|---|---|---|---|
| Original baseline | 0.9047 | 0.7918 | 0.918 |
| Stronger HSV | 0.8928 | 0.7781 | 0.964 |
| Coordinate Attention | 0.9038 | 0.8217 | 0.949 |
| Coordinate Attention + stronger HSV | 0.8775 | 0.7319 | 0.933 |
Source: Tables 2, 5, 13 and 15.
Relative to Coordinate Attention alone, the combined configuration loses 8.98 percentage points of stem-cavity F1. Its stem-cavity recall falls from 0.872 to 0.656, despite an increase in precision.
The authors propose that stronger color perturbations may disrupt shading and spatial-channel relationships relevant to recognizing anatomical depressions. This explanation is plausible, but the experiment does not independently establish the internal mechanism.
What the experiment directly establishes is narrower: these particular architectural and augmentation interventions interact unfavorably on the evaluated dataset.
This extends the engineering concern discussed in When More Attention Makes Motor Diagnosis Worse. Component selection cannot be separated from the representations and training conditions under which those components operate.
The confidence threshold belongs to the mechanical workflow
After training, a detector still requires a decision about which predictions to accept.
A higher confidence threshold can suppress incorrect detections but also reject genuine landmarks. The appropriate operating point depends partly on what the machinery does when a detection is wrong or absent.
The researchers evaluate several confidence thresholds for CAppleNet while fixing the non-maximum suppression IoU threshold at 0.7.
| Confidence threshold | Precision | Recall | F1 |
|---|---|---|---|
| 0.10 | 0.8885 | 0.9189 | 0.9035 |
| 0.15 | 0.8888 | 0.9205 | 0.9043 |
| 0.25 | 0.8967 | 0.8990 | 0.8979 |
| 0.50 | 0.9458 | 0.8405 | 0.8901 |
| 0.70 | 0.9465 | 0.6883 | 0.7970 |
Source: Section 4.6, Table 14; selected rows from the threshold sweep.
The threshold of 0.15 produces the highest reported aggregate F1 within this sweep. These threshold-specific results belong to a separate evaluation configuration from the architectural comparison above.
Cognaptus interpretation: a sorting-line operator should select a threshold by considering the costs of missed landmarks, incorrect orientations, recirculation, and manual intervention.
The threshold that maximizes aggregate F1 need not minimize these operational costs. If stem-cavity errors are especially expensive, class-specific evaluation becomes necessary before selecting an operating point.
From detector experiments to industrial acceptance
CAppleNet suggests a disciplined evaluation process for industrial machine-vision engineers:
| Engineering decision | Acceptance requirement |
|---|---|
| Establish the baseline | Measure each task-critical detection class separately. |
| Modify the architecture | Quantify incremental accuracy, localization, and computational trade-offs. |
| Change training augmentation | Match synthetic variability to actual acquisition conditions. |
| Combine modifications | Retest the integrated configuration rather than extrapolating individual results. |
| Select confidence thresholds | Account for downstream false-positive and false-negative costs. |
| Select deployment hardware | Benchmark actual latency, memory consumption, and sustained throughput. |
| Approve production deployment | Measure independent end-to-end mechanical outcomes. |
The study’s parameter and GFLOP reductions provide a basis for shortlisting a smaller detector. They do not establish proportional latency improvements on embedded hardware or demonstrate higher sorting-line throughput.
Similarly, improved stem-cavity F1 does not quantify the resulting change in successful fruit orientation.
Where the evidence stops
The experiments use one proprietary dataset and a single controlled acquisition environment. The number of distinct physical apples and cultivar-level distributions are not reported.
Repeated-seed uncertainty estimates and statistical significance tests are absent, limiting confidence in the stability of the reported improvements. Only one cross-factor combination is explicitly evaluated.
More importantly, architecture and confidence-threshold selection reuse the test partition. The reported threshold optimum is therefore an experimental selection result, not an independently validated production optimum.
Commercial adoption requires a separate, production-representative acceptance dataset and direct measurement of mechanical sorting outcomes. Without those measurements, the economic benefit of the proposed detector remains unresolved.
Conclusion
CAppleNet’s most instructive contribution is its demonstration that industrial detection quality depends on which features improve, which errors increase, and how architectural and training choices interact.
The Coordinate Attention substitution improves recognition of the most difficult landmark while reducing nominal computational requirements. Stronger color augmentation reverses that improvement when the two interventions are combined.
For industrial automation engineers, the appropriate objective is reliable execution of the downstream mechanical task under specified operating conditions. Aggregate detector performance is one input to that decision, alongside class-specific errors, localization requirements, computational constraints, and independently measured production outcomes.
Cognaptus: Automate the Present, Incubate the Future.
-
Alican Güneş and Robert Selim Hill and Gökhan Hasanoğlu and Murat Kurt (2026). CAppleNet: A Coordinate Attention-Based YOLO11 for Real-Time Apple Stem Cavity and Calyx Detection. arXiv:2611.13920. https://arxiv.org/abs/2611.13920 ↩︎