Paper · 2026 · Frontiers in Agronomy

Cont-Transformer: enhancing image recognition for orchard fruit-boring pest monitoring with contrastive learning

Jingjun Cao; Xiaoqing Xian; Zhida Duan; et al.

4
claims
8
verbatim quotes
0
citations
4
research areas
✓
Open access · cc-by

Abstract

The codling moth ( Cydia pomonella ) is the most serious pest of apple and pear orchards worldwide and has been designated as a quarantine or regulated pest by over 20 countries or regions globally. Morphological identification of the codling moth is highly specialized and time-consuming. In apple and pear production process, codling moth usually coexists with other insect species, including Carposina niponensis , Dichocrocis punctiferalis , Euzophera pyriella , Grapholita molesta , and Helicoverpa armigera , and sometimes the adults of Cydia trasias and Plutella xylostella ; these moth species are morphologically similar to codling moth, especially in the pre-adult stages (e.g., egg, larva, and pupa) of them. This study provides an effective solution for distinguishing the codling moth from other insect species with similar appearances automatically; a new Transformer-based model, known as Cont-Transformer, is proposed. Specifically, contrastive learning is introduced to improve distinguishing ability, which contributes to minimizing the similarity of classification labels corresponding to different labels and maximizing the similarity of classification labels of samples with the same label. The cross-entropy loss and contrastive loss are combined to guide the model in focusing on the most discriminative regions. Furthermore, we systematically analyzed various data augmentation strategies to bolster the model’s robustness and generalization, including AutoAugment, RandAugment, TrivialAugment, MixUp, and CutMix. We evaluated the proposed model architecture Cont-Transformer through comprehensive model training and testing on an insect image dataset containing 26 insect categories and a total of 14,431 images. The proposed recognition model achieved accuracy, precision, and recall rates of 99.45%, 99.40%, and 99.45%, respectively, outperforming eight other popular models, i.e., AlexNet, ResNet-50, DenseNet-121, ShuffleNet-v2, EfficientNet-b0, DeiT, MobileViT, and Swin Transformer. Moreover, the developed codling moth investigation program can identify various stages, including egg, larva, pupa, and adult, of these moth species. The present findings should be significant for precise pest control and quarantine supervision.

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 4

Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The model achieved 99.45% accuracy.

Taxon
apple and pear orchardst1
Outcome
accuracye0
Value
99.45%e0
Comparator
eight other popular modelse0

Verbatim

e0

“The proposed recognition model achieved accuracy, precision, and recall rates of 99.45%, 99.40%, and 99.45%, respectively, outperforming eight other popular models”

✓ located verbatim in the source · abstract, characters 1738–1901 · show in text ↑
t1

“apple and pear orchards”

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

Claim · model-written summary

The model achieved 99.40% precision.

Taxon
apple and pear orchardst1
Outcome
precisione0
Value
99.40%e0
Comparator
eight other popular modelse0

Verbatim

e0

“The proposed recognition model achieved accuracy, precision, and recall rates of 99.45%, 99.40%, and 99.45%, respectively, outperforming eight other popular models”

✓ located verbatim in the source · abstract, characters 1738–1901 · show in text ↑
t1

“apple and pear orchards”

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

Claim · model-written summary

The model achieved 99.45% recall.

Taxon
apple and pear orchardst1
Outcome
recall ratese0
Value
99.45%e0
Comparator
eight other popular modelse0

Verbatim

e0

“The proposed recognition model achieved accuracy, precision, and recall rates of 99.45%, 99.40%, and 99.45%, respectively, outperforming eight other popular models”

✓ located verbatim in the source · abstract, characters 1738–1901 · show in text ↑
t1

“apple and pear orchards”

✓ located verbatim in the source · abstract, characters 65–88 · show in text ↑
Method / resourceobservedoriginal resultmeasured

Claim · model-written summary

The investigation program identifies egg, larva, pupa and adult stages.

Taxon
apple and pear orchardst1
Interactor
codling mothCydia pomonellae0pest
Outcome
identify various stages, including egg, larva, pupa, and adulte0

Not reportedComparatorValue

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

Cydia pomonella
Cydia pomonella · InteractorSimon Winkley & Ken Walker, Museum Victoria · CC BY 3.0 au · Wikimedia Commons ↗

Verbatim

e0

“the developed codling moth investigation program can identify various stages, including egg, larva, pupa, and adult, of these moth species”

✓ located verbatim in the source · abstract, characters 2024–2162 · show in text ↑
t1

“apple and pear orchards”

✓ located verbatim in the source · abstract, characters 65–88 · show in text ↑