Masked Pooling for Plant Disease Classification: A Laboratory Gain That Disappeared with a Clean Test and Did Not Transfer to the Field
Masked Global Average Pooling (Masked GAP) averages features only over a segmented leaf and is expected to stop plant disease classifiers from using the background. In a per-species Mixture-of-Experts system trained with Domain Randomization, our first evaluation showed gains of up to +7.50 percentage points (pp), strongly related to the residual cross-distribution gap Δ. An audit then found that 74.4% of the Masked GAP test files had been used in training. We repeated the comparison with a split by source photograph, one recipe for both models, three seeds and paired confidence intervals. The gain disappeared, at −0.18 pp [−0.28,−0.08] on unseen leaves, helping in none of nine species. The Δ–gain relation vanished in the laboratory (r=−0.23, p=0.50), and in the field, it equals what their arithmetic coupling gives by itself (r=−0.76 against −0.79, p=0.71). On PlantDoc, the mean change was −1.63 pp [−3.55,+0.30]; the two effects that survive correction occur in species with healthy leaves only. End-to-end field accuracy was 20.8% with GAP and 20.1% with Masked GAP. On identical leaves over different backgrounds, Masked GAP reduced background use without stopping it. This laboratory pattern did not transfer to the field.
Authors
- Carlos Alberto Olvera-Olvera (ORCID: https://orcid.org/0000-0003-1519-7718)
- Perla Velasco-Elizondo (ORCID: https://orcid.org/0000-0002-4091-3475)
- Ma. del Rosario Martínez-Blanco (ORCID: https://orcid.org/0000-0001-9278-2094)
- Sodel Vázquez-Reyes (ORCID: https://orcid.org/0000-0002-9435-5499)
- Germán Díaz-Flórez (ORCID: https://orcid.org/0000-0002-8012-4534)
- Ma. Auxiliadora Araiza-Esquivel (ORCID: https://orcid.org/0000-0001-8052-7483)
- Héctor A. Guerrero-Osuna (ORCID: https://orcid.org/0000-0003-0743-842X)
- Santiago Villagrana-Barraza (ORCID: https://orcid.org/0000-0002-8810-0801)
- Diana I. Ortíz-Esquivel (ORCID: https://orcid.org/0000-0002-7185-1254)
- Erasmo Reyes-Ortiz
Institutions
- Universidad Autónoma de Zacatecas "Francisco García Salinas" (MX)
Publication Details
- Journal
- Eng—Advances in Engineering
- Published
- 2026-12-02
- DOI
- https://doi.org/10.3390/eng7120694
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00