Preprint
Article

This version is not peer-reviewed.

Dual-Channel Attention and Category-Guided Distillation for Lightweight Plant Disease Recognition

Submitted:

19 June 2026

Posted:

23 June 2026

You are already at the latest version

Abstract
Plant disease recognition remains challenging due to complex imaging conditions, inter-class visual similarity, and the need to deploy accurate models on resource-constrained devices. Although convolutional neural networks (CNNs) are effective at local pattern extraction, their locality bias limits global context modeling. Transformer-based models alleviate this issue, yet many existing designs do not explicitly exploit the complementarity between spatial and channel interactions. To address this limitation, we propose a Dual-Channel Feature Enhancement Network (DC-FEN) as the teacher model, which integrates spatial attention and channel attention to capture lesion-sensitive spatial cues and discriminative channel semantics. To enable lightweight deployment, we further introduce a Category-Guided Knowledge Distillation (CGKD) framework that transfers both category-level semantic knowledge and feature-level relational knowledge from the teacher to a MobileNetV3 student. Experimental results show that the proposed distillation framework consistently improves the performance of the lightweight MobileNetV3 student over its original baseline.
Keywords: 
;  ;  ;  ;  ;  

1. Introduction

Accurate plant disease recognition is important for crop management and food security. Early and reliable diagnosis can reduce crop losses, improve pesticide efficiency, and support precision agriculture workflows [1]. Traditional image-analysis approaches rely on hand-crafted color, texture, and shape descriptors. Although these methods are computationally simple, their discriminative ability is highly sensitive to environmental noise and feature design [2].
Deep learning has improved plant disease recognition by learning hierarchical visual representations directly from data [3]. In particular, CNNs have achieved strong performance on benchmark datasets, but their local receptive fields limit the modeling of long-range dependencies and global contextual relationships [4]. This issue is particularly important for leaf disease recognition, where symptoms may appear as distributed lesions, irregular discoloration, or fine-grained texture changes over a large spatial extent. For instance, tomato diseases such as early blight and late blight display visually overlapping characteristics that are difficult to distinguish using purely localized features, as illustrated in Figure 1. This motivates models that can integrate both local and global contextual relationships.
Transformers provide a promising alternative because self-attention can capture long-range dependencies and global context more explicitly than convolutions [5]. However, existing visual Transformer models generally emphasize either spatial interactions or token-level global reasoning, while the complementarity between spatial localization and channel-wise semantic selection is less explicitly modeled. In plant disease recognition, both aspects are important: spatial attention can focus on lesion regions, while channel attention can amplify disease-relevant spectral and texture responses. A model that jointly exploits these two dimensions is therefore desirable.
Another practical challenge is deployment. High-capacity Transformer models are often too expensive for mobile agricultural devices, drones, or edge terminals. Knowledge distillation (KD) offers an effective way to compress a powerful teacher into a lightweight student. Nevertheless, conventional KD typically transfers only softened output probabilities, which are insufficient for fine-grained disease recognition because valuable intermediate feature relationships are not fully preserved.
Motivated by these observations, this paper proposes a dual-channel attention network with category-guided knowledge distillation for plant disease recognition. The framework consists of a Dual-Channel Feature Enhancement Network (DC-FEN) as the teacher and a Category-Guided Knowledge Distillation (CGKD) strategy for transferring knowledge to a lightweight MobileNetV3 [6] student. The proposed design aims to strengthen both discriminative representation learning and efficient deployment.
The main contributions are summarized as follows:
1.
We design a Dual-Channel Feature Enhancement Network (DC-FEN) that combines spatial attention and channel attention to capture complementary lesion localization cues and channel-level semantics for plant disease recognition.
2.
We propose a Category-Guided Knowledge Distillation (CGKD) framework that jointly transfers output-level category relationships and intermediate feature-level relational knowledge from the teacher to the student.
3.
We provide comparative experiments and ablation studies showing that the proposed framework improves a lightweight student network while maintaining competitive recognition performance on Plant Pathology 2021 (FGVC8) dataset and a challenging tomato disease benchmark derived from the PlantVillage dataset.

3. Method

In this study, we introduce a plant disease recognition framework in which a dual-channel attention-based network is designed as the teacher model, while MobileNetV3 is employed as the lightweight student network. The teacher model captures spatial and channel-wise contextual dependencies through a dual-channel self-attention mechanism. The student network is optimized not only using ground-truth labels but also under the supervision of the teacher model. We further use a category-guided knowledge distillation strategy to explicitly transfer inter-class feature relationships from the teacher, thereby narrowing the representation gap observed when MobileNetV3 is trained independently.

3.1. Dual-Channel Feature Enhancement Network

This section presents the Dual-Channel Feature Enhancement Network (DC-FEN), as shown in Figure 2, which uses a dual-channel attention mechanism to refine feature representations. The network extracts spatial context and channel-wise dependencies, enabling more discriminative representation learning for plant disease classification. DC-FEN is composed of several Dual-Channel Attention (DC-A) blocks. Each block uses spatial and channel attention in parallel, so that the model can capture complementary dependencies in the input features.
Let the input image be defined as I R H × W × C , where H, W, and C denote the height, width, and number of channels, respectively. The Dual-Channel Attention strategy incorporates two complementary modules: spatial attention and channel attention. These mechanisms generate attention maps that facilitate focusing on the most salient regions of the feature maps while emphasizing discriminative channels critical for accurate classification.
Spatial Attention. Spatial attention aims to determine where disease-related regions are located. In plant disease recognition, this capability is particularly important because discriminative symptoms are often spatially localized and irregularly distributed. For example, early blight, late blight, rust, chlorosis, and mildew may appear as scattered lesions, blurred boundaries, or non-uniform texture changes over the leaf surface. Purely local convolutional operations may fail to capture the long-range dependencies among these spatially separated disease cues. Therefore, spatial attention is introduced to explicitly model global interactions among different spatial locations and to enhance lesion-sensitive regions while suppressing irrelevant background interference.
Given an input feature map F R H × W × C , we first reshape it into a token sequence
F R N × C , N = H × W ,
where H, W, and C denote the height, width, and channel dimension of the feature map, respectively, and N is the number of spatial tokens. We then project F into query, key, and value representations:
Q = F W Q , K = F W K , V = F W V ,
where Q , K , V R N × d , and d denotes the embedding dimension.
The spatial attention matrix is computed by scaled dot-product attention:
A spa = softmax Q K d R N × N .
Here, each element of A spa measures the relevance between two spatial positions, allowing each token to aggregate contextual information from all other positions. In this way, the model can establish long-range dependencies across spatially distributed disease regions, thereby strengthening its ability to represent lesion-associated structures more effectively and comprehensively.
The spatially enhanced feature is then obtained by applying the attention matrix to the value representation:
F spa = A spa V R N × d .
This operation generates a new spatial feature representation in which each location is enriched by global contextual cues from other disease-relevant regions.
After that, F spa is reshaped back to the spatial form H × W × d . To further refine the lesion localization effect, a 1 × 1 convolution followed by sigmoid activation is used to produce a spatial gating map:
G spa = σ Conv 1 × 1 ( F spa ) ,
where σ ( · ) denotes the sigmoid activation function.
The produced gating map assigns higher responses to disease-sensitive spatial regions and lower responses to background or less informative areas. Consequently, the network is guided to focus more strongly on key discriminative cues such as lesion locations, discoloration regions, and abnormal structural patterns in leaves that are essential for distinguishing different disease categories.
Channel Attention. While spatial attention focuses on where disease-related regions are located, channel attention aims to determine which feature channels are most discriminative for plant disease recognition. For example, lesion-type diseases may be characterized more strongly by texture-sensitive channels, while chlorosis or nutrient-deficiency-like symptoms may be more distinguishable in color- or intensity-related channels. Therefore, channel attention is introduced to adaptively model inter-channel dependencies and to emphasize those channels that are most relevant to disease discrimination.
Given the same input feature map F R H × W × C , we first reshape it into a token sequence
F R N × C , N = H × W ,
and then project it into query, key, and value representations:
Q = F W Q , K = F W K , V = F W V ,
where Q , K , V R N × d , and d denotes the embedding dimension.
To model the relationships among channels, we transpose the projected query and compute channel-wise attention as
A cha = softmax Q K N R d × d .
Here, A cha captures the dependency structure between channels, and the normalization term uses N because the channel-wise dot product is accumulated over spatial tokens.
The channel-enhanced feature is then obtained by
F cha = V A cha R N × d .
Through this operation, each channel is re-weighted according to its interaction with other channels, resulting in a feature representation that better highlights disease-relevant spectral, color, and texture characteristics.
After reshaping F cha back to the H × W × d form, a 1 × 1 convolution followed by sigmoid activation is used to generate a channel gating map:
G cha = σ Conv 1 × 1 ( F cha ) .
This gate adaptively enhances informative disease-related channels and suppresses less relevant responses, thereby improving the discriminability of subtle plant disease patterns.
Finally, the spatially enhanced and channel-enhanced representations are fused through residual gated aggregation:
F out = F d + G spa F spa + G cha F cha ,
where F d denotes the input feature projected to the same dimension as F spa and F cha , and ⊙ denotes element-wise multiplication. All terms are reshaped to H × W × d , and the gating maps are broadcast when necessary. This fusion preserves the original representation while adaptively incorporating spatial and channel cues.

3.2. Category-Guided Knowledge Distillation

Although lightweight models are more suitable for real-world deployment, their limited representation capacity often makes it difficult to capture the subtle inter-class differences among visually similar plant diseases. To address this limitation, we propose a Category-Guided Knowledge Distillation (CGKD) framework that enables the transfer of both category-level semantic information and feature-level relational cues from the teacher model to a lightweight student network. The complete architecture of the proposed method is presented in Figure 3. In our framework, the proposed Dual-Channel Feature Enhancement Network (DC-FEN) serves as the teacher network, while MobileNetV3 is adopted as the student network.
The proposed CGKD framework contains two complementary components. The first component, referred to as Category Knowledge Distillation (CKD), transfers category-level semantic information by aligning the softened prediction distributions of the teacher and student. This enables the student to learn inter-class similarity structure beyond hard labels. The second component, referred to as Feature Knowledge Distillation (FKD), transfers fine-grained feature knowledge from intermediate representations, so that the student can better preserve discriminative disease patterns learned by the teacher.
The overall training objective is defined as
L total = L cls + λ CKD L CKD + λ FKD L FKD ,
where L cls denotes the supervised classification loss, and λ CKD and λ FKD are trade-off coefficients used to balance the category-level and feature-level distillation losses, respectively. For single-label experiments, L cls is implemented as cross-entropy loss with softmax outputs. For the multi-label FGVC8 setting, the final activation is changed to sigmoid and L cls is implemented as binary cross-entropy loss.
Category Knowledge Distillation (CKD). To transfer category-level semantic knowledge, we perform alignment between the teacher and student by matching their softened prediction distributions. Let z t and z s denote the logits produced by the final prediction layers of the teacher and student before activation, respectively. For single-label classification, their softened probability distributions are computed as
p k t ( x i ; τ ) = exp z k t ( x i ) / τ m = 1 K exp z m t ( x i ) / τ ,
p k s ( x i ; τ ) = exp z k s ( x i ) / τ m = 1 K exp z m s ( x i ) / τ ,
where K denotes the number of disease categories and τ denotes the temperature parameter. A larger τ produces a softer probability distribution, which helps reveal inter-class similarity information. For notation consistency, τ is used only for temperature throughout this paper, while the superscript t denotes the teacher model.
The CKD loss is formulated as
L CKD = τ 2 B i = 1 B k = 1 K p k t ( x i ; τ ) log p k s ( x i ; τ ) ,
where B denotes the mini-batch size. This loss encourages the student network to mimic the category-level semantic structure encoded in the teacher predictions. In the FGVC8 multi-label experiment, the same alignment is applied to sigmoid-based teacher and student confidence scores rather than softmax-normalized probabilities. Specifically, we define
q k t ( x i ; τ ) = σ z k t ( x i ) / τ , q k s ( x i ; τ ) = σ z k s ( x i ) / τ ,
and use the multi-label CKD loss
L CKD ml = 1 B K i = 1 B k = 1 K q k t log q k s + 1 q k t log 1 q k s .
For FGVC8, L CKD in the overall objective is replaced by L CKD ml .
Feature Knowledge Distillation (FKD). In addition to output-level supervision, we further transfer feature-level knowledge from an intermediate representation of the teacher to the student. Specifically, let F t R N × d t and F s R N × d s denote the intermediate token features extracted from the teacher and student, respectively, before the final classification head. Here, N is the number of spatial tokens and d t , d s are the corresponding feature dimensions. Since the teacher and student may have different feature dimensions, a learnable linear projection g ( · ) is introduced to map the student features into the teacher feature space. This operation is necessary because the teacher and student not only differ in feature dimensionality but also exhibit different representation spaces due to their heterogeneous architectures.
F ˜ s = g ( F s ) R N × d t .
The direct feature alignment loss is then defined as
L fea = 1 N d t F t F ˜ s 2 2 .
This term helps the student preserve fine-grained disease-related feature patterns learned by the teacher.
To further transfer structural relationships among tokens, we construct token correlation matrices for the teacher and student features:
M t = F t ( F t ) d t , M s = F ˜ s ( F ˜ s ) d t ,
where M t , M s R N × N describe pairwise relationships among spatial tokens. Here, a token corresponds to one spatial location obtained after flattening the feature map.
The relational distillation loss is defined as
L rel = 1 N 2 M t M s 2 2 .
Finally, the feature-level distillation loss is written as
L FKD = L fea + L rel .
By jointly optimizing the above objectives, the proposed CGKD framework allows the lightweight MobileNetV3 student to inherit both category-level semantic knowledge and fine-grained feature relationships from the DC-FEN teacher and improves lightweight plant disease recognition performance.

4. Experiments

In this section, we begin by presenting the experimental setup of the proposed method, including details of the dataset, teacher and student model configuration, and training details. Then we evaluate the proposed framework against several representative baseline methods on the PlantVillage dataset [36] and further evaluate it on the more challenging Plant Pathology 2021 (FGVC8) dataset [37]. Finally, we perform ablation studies to systematically evaluate and validate the contributions of the proposed attention design and the knowledge distillation strategy.

4.1. Experimental Setup

We evaluate the proposed method on the PlantVillage dataset, which contains 54,305 images covering 38 classes from 14 crop species. The subset of tomato images consists of 16,415 images of diseased leaf covering nine distinct disease categories, along with 1,591 images of healthy leaves. Because the PlantVillage dataset lacks complex backgrounds and many existing methods achieve near-perfect performance on it, we also include the FGVC8 dataset to test the proposed framework under more realistic conditions. For the controlled PlantVillage comparison, all generic baselines in Table 2 are trained from scratch under the same 70/15/15 train/validation/test split, input resolution of 224 × 224 , and data augmentation protocol, without ImageNet pretraining unless explicitly stated. This from-scratch setting is used to isolate architecture and distillation effects rather than to maximize the absolute PlantVillage performance.

4.1.1. Teacher and Student Models

The teacher model is the proposed Dual-Channel Feature Enhancement Network (DC-FEN), while the student model is MobileNetV3. DC-FEN is designed to strengthen both spatial lesion localization and channel-wise semantic discrimination through the Dual-Channel Attention Block (DCAB), whereas MobileNetV3 is selected as a lightweight backbone suitable for efficient deployment on resource-constrained devices.
The convolutional backbone contains five stages composed of depthwise separable convolutions and residual structures. The output feature dimensions of the five stages are [ 16 , 112 , 112 ] , [ 16 , 56 , 56 ] , [ 24 , 28 , 28 ] , [ 40 , 14 , 14 ] , and [ 40 , 14 , 14 ] , where each tuple denotes the channel number, height, and width, respectively. To enrich contextual representation without incurring prohibitive computational costs, two DCAB modules are embedded after the fourth and fifth stages of the teacher network. Each DCAB uses an embedding dimension of d = 40 and single-head spatial and channel attention. The classification head is composed of a global average pooling layer, which is followed by a fully connected layer used to generate the final prediction output. During knowledge distillation, intermediate teacher features extracted from the enhanced stages are aligned with the corresponding student features after projection, which is consistent with the technical design described in Section 3.2.

4.1.2. Training Details

Following the data augmentation strategy used in MobileNetV3 [6], the training images are augmented by random rotation in the range of [ π / 4 , + π / 4 ] , random scaling within [ 0.95 , 1.05 ] , and random horizontal flipping. For the loss function, τ is set as 1, λ CKD and λ FKD are set as 0.2. We use τ = 1 to avoid over-smoothing the teacher predictions, since fine-grained plant disease recognition requires preserving subtle inter-class confidence differences. In this setting, the CKD loss transfers the teacher’s category-level distribution directly, which provides stable supervision for the lightweight student model.
During training, we use the adam_onecycle optimization strategy, setting the initial learning rate to 0.001, momentum to 0.9, and weight decay to 0.01. The models are trained for 100 epochs using a batch size of 64 on two NVIDIA RTX 3090 GPUs. To reduce overfitting, a Dropout layer with a rate of 0.2 is incorporated. In addition, a learning rate scheduler is applied to dynamically adjust the learning rate throughout training. Unless otherwise specified, the remaining implementation details follow the standard OpenMMLab protocol.

4.1.3. Model Complexity and Inference Efficiency

To further evaluate deployment efficiency, we report the parameter count, FLOPs, and inference time in Table 1. FLOPs are calculated using an input resolution of 224 × 224 , while inference time is evaluated on an NVIDIA RTX 3090 GPU with batch size 1 under the same input resolution. The reported inference time is averaged over multiple runs after warm-up. Since CGKD is used only during training, the deployed model is the distilled MobileNetV3 student and introduces no additional inference parameters or FLOPs over the MobileNetV3 backbone.

4.2. Results

We evaluate the proposed method from three perspectives. First, we compare it with representative baseline models on the PlantVillage dataset under the above fine-grained setting. Then, we further evaluate the proposed method on the FGVC8 dataset. Finally, we analyze the effectiveness of the proposed CKD and FKD components on different backbone networks and provide confidence and visualization analyses.

4.2.1. Comparison on the PlantVillage Dataset

We first compare the proposed method with representative generic baseline models under the same experimental setting. The compared models include three groups: (1) conventional CNNs, including Inception-v3, VGG-16, VGG-19, and ResNet; (2) lightweight models, including ShuffleNetV2 and MobileViT; and (3) strong modern backbones, including EfficientNet, ViT, ResNeSt, and EfficientFormer. These baselines are selected to cover classical convolutional models, efficient lightweight architectures, and recent Transformer-based or hybrid recognition paradigms.
As shown in Table 2, under this from-scratch controlled protocol, the proposed distilled MobileNetV3 student achieves 86.25%, outperforming the compared generic backbones trained under identical conditions. Traditional architectures, including Inception_v3, VGG-16, VGG-19, and ResNet, obtain accuracies between 69.56% and 75.12% in this setting. Lightweight models such as ShuffleNet_v2 and MobileViT improve the performance to 78.24% and 79.75%, respectively. Models including EfficientNet, ViT, ResNeSt, and EfficientFormer further improve the accuracy to the range of 80.40%–83.89%. This comparison evaluates the effectiveness of the distillation framework under a unified from-scratch setting; it is not intended to compete with state-of-the-art PlantVillage results obtained via transfer learning or specialized preprocessing, which can exceed 99% as listed in Table 3. The PlantVillage experiment, therefore, serves as a controlled ablation of the distillation strategy rather than as the primary accuracy benchmark.
It should be noted that Table 2 reports only the results reproduced under our unified experimental setting. Recent plant-disease-specific methods reported in the literature are discussed separately, since their results are often obtained under different dataset subsets, splits, preprocessing strategies, or transfer-learning settings.
In addition to the generic baselines in Table 2, recent studies have also proposed plant-disease-specific models, such as Deep Multi-scale Convolutional Neural Network (DMCNN) and transformer-based transfer-learning methods, as summarized in Table 3. These methods are included to broaden the coverage of recent disease-oriented designs rather than to claim strict protocol-level fairness, because their reported results are obtained under different experimental settings.

4.2.2. Comparison on FGVC8

FGVC8 contains field-collected leaf images with more complex backgrounds, larger appearance variations, and more realistic disease patterns than PlantVillage. To further evaluate the practical relevance of our method, we additionally compare our results with recent methods.
For FGVC8, we follow the official multi-label setting. The model outputs sigmoid confidence scores for each label, and a fixed threshold of 0.5 is used to obtain binary predictions. The mean F1-score is computed over all disease labels. All images are resized to 224 × 224 , and the same training strategy as described above is used unless otherwise specified.
Since FGVC8 is a multi-label benchmark, mean F1-score is adopted as the primary evaluation metric. As shown in Table 4, our method achieves a mean F1-score of 96.48%, which is competitive with recent literature-reported methods. Although CTPlantNet reports a higher mean F1-score of 97.57%, it is evaluated under a different experimental protocol. Therefore, this comparison is used only as supplementary evidence rather than a strict protocol-level ranking.

4.2.3. Effect of CKD and FKD on Different Backbones

We further perform additional experiments to evaluate the effectiveness of Feature Knowledge Distillation (FKD) and Category Knowledge Distillation (CKD) on other established architectures. All experiments are performed under the same data partitioning and training settings to ensure consistency and fair comparison.
As shown in Table 5, VGG16 + FKD reaches 82.71%, indicating that feature-level distillation improves the representation quality of the baseline network. VGG16 + CKD also improves the performance to 80.24%, but the gain is smaller than that of FKD alone. The joint version, VGG16 + FKD + CKD, achieves the best result of 85.36%, suggesting that the two types of knowledge are complementary.
A similar trend is observed for ResNet, as shown in Table 5. ResNet + FKD reaches 83.39%, higher than ResNet + CKD at 82.21%. The joint model achieves 86.16%, again showing that category-level and feature-level knowledge provide complementary benefits.
An important observation from Table 5 is that the distilled MobileNetV3 student achieves performance that is comparable to, and in some cases even surpasses, that of significantly larger and more computationally expensive distilled backbone models. This result indicates that the proposed CKD+FKD framework can transfer useful knowledge to a lightweight architecture.
Beyond overall classification accuracy, it is crucial to evaluate the certainty and discriminative power of the proposed model when distinguishing between diverse disease categories. To this end, we analyze the prediction confidence of the distilled MobileNetV3 student model across selected plant species and disease manifestations. As presented in Table 6, the displayed sigmoid confidence scores provide a qualitative illustration of the prediction responses over selected disease categories under the multi-label visualization setting. Since only representative output categories are shown, zero-valued entries should not be interpreted as the complete absence of confidence over the full label space. Instead, the table is intended to show that the distilled student generally produces concentrated prediction responses for representative samples, suggesting that the CKD strategy helps transfer discriminative category-level information from the teacher network.

4.3. Visualization

In this experiment, we compare the feature maps extracted by three models: the base model, the teacher model, and the base model after distillation.
As illustrated in Figure 4, the original images and feature maps extracted by the base model, teacher model, and distilled student model are compared. The base model tends to focus on low-level details, whereas the teacher model presents clearer boundaries and more discriminative patterns. The distilled student model produces feature maps that are closer to those of the teacher, suggesting that the distillation process improves the representation of disease-related structures.
The comparison suggests that distillation improves the feature extraction capability of the base model and makes its feature maps closer to those of the teacher model.

4.4. Ablation Study

We performed an ablation study to evaluate the contributions of different components in our model.
The ablation study shows that the standalone teacher model yields the highest accuracy of 87.35%, as shown in Table 7. The MobileNetV3 student after distillation attains a competitive accuracy of 86.25%. In contrast, the Baseline MobileNetV3 achieves 75.88%, showing the gain brought by the proposed distillation strategy. Throughout this paper, “Ours” refers to the deployed distilled MobileNetV3 student, which is the lightweight model intended for practical deployment; the teacher DC-FEN serves only as a knowledge source during training.
Ablation Study on FKD and CKD. In this section, we evaluate the contributions of Feature Knowledge Distillation (FKD) and Category Knowledge Distillation (CKD) to the performance of our plant disease classification model on the PlantVillage dataset. Specifically, experiments were conducted to assess the individual and combined effects of FKD and CKD, using the teacher model as the comparative baseline.
Table 7 shows the effect of FKD and CKD on model performance. When FKD is applied, the student model reaches an accuracy of 85.43%, indicating that feature-level distillation helps the student extract more discriminative features. When CKD is applied alone, the accuracy reaches 83.56%. This result is lower than that of FKD, suggesting that category-level distillation alone is less effective for this task. The best result is obtained when FKD and CKD are used together, with an accuracy of 86.25%. This indicates that feature-level and category-level distillation provide complementary gains.

5. Conclusion

This work presents a framework that uses complementary spatial and channel context for plant disease recognition. The core model, a Dual-Channel Feature Enhancement Network, integrates spatial-wise and channel-wise self-attention to emphasize localized lesion cues and discriminative channel semantics. As the teacher model, DC-FEN provides structured knowledge for training a compact student network.
To support deployment on devices with limited resources, we devise a Category-Guided Knowledge Distillation strategy. This strategy transfers both high-level category semantics and fine-grained feature relationships from the teacher to the lightweight student, preserving recognition performance while keeping the deployed student compact. The results indicate that category-level and feature-level distillation can help the student handle visually similar disease patterns.
Overall, this work provides a practical plant disease recognition framework that combines attention-based representation learning with knowledge distillation. Future work will consider multi-modal data, cross-crop generalization, and continual learning settings.

Author Contributions

Conceptualization, Xin Lei. and Yonghui Liu.; Methodology, Xin Lei., Yonghuai Liu., Reena Reena. and Yang Sun.; Software, Xin Lei. and Yang Sun.; Validation, Xin Lei., Yonghuai Liu., Ardhendu Behera., Reena Reena., Yang Sun. and Wuping Zhang.; Formal analysis, Xin Lei., Yonghuai Liu., Ardhendu Behera., Reena Reena., Yang Sun. and Wuping Zhang; Investigation, Xin Lei. and Yonghuai Liu; Resources, Fuzhong Li. and Chao Lei; Data curation, Xin Lei. and Yang Sun; Writing—original draft preparation, Xin Lei; Writing—review and editing, Yonghuai Liu., Reena Reena. and Yang Sun; Visualization, Xin Lei. and Yang Sun; Supervision, Yonghuai Liu., Ardhendu Behera. and Wuping Zhang; Project administration, Yonghuai Liu. and Ardhendu Behera; Funding acquisition, Yang Sun., Fuzhong Li. and Chao Lei. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Shanxi Provincial Key Research and Development Program Project (Grant number 202202140601021) and the National Natural Science Foundation of China (Grant number 62506113).

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Nobel, S.N.; Afroj, M.; Kabir, M.M.; Mridha, M. Development of a cutting-edge ensemble pipeline for rapid and accurate diagnosis of plant leaf diseases. Artif. Intell. Agric. 2024, 14, 56–72. [Google Scholar] [CrossRef]
  2. Dang, M.; Wang, H.; Li, Y.; Nguyen, T.H.; Tightiz, L.; Xuan-Mung, N.; Nguyen, T.N. Computer Vision for Plant Disease Recognition: A Comprehensive Review. Bot. Rev. 2024, 1–61. [Google Scholar]
  3. Bedi, P.; Gole, P. Plant disease detection using hybrid model based on convolutional autoencoder and convolutional neural network. Artif. Intell. Agric. 2021, 5, 90–101. [Google Scholar] [CrossRef]
  4. Zhao, X.; Wang, L.; Zhang, Y.; Han, X.; Deveci, M.; Parmar, M. A review of convolutional neural networks in computer vision. Artif. Intell. Rev. 2024, 57, 99. [Google Scholar] [CrossRef]
  5. Elangovan, M.M.; Nigam, R.; Sankarganesh, E.; Srivastava, G. Plant Diseases: Diagnosis, Management, and Control; Academic Guru Publishing House, 2024. [Google Scholar]
  6. Howard, A.; Sandler, M.; Chu, G.; Chen, L.C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. In Proceedings of the Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019; pp. 1314–1324. [Google Scholar]
  7. Bagri, N.; Johari, P.K. A comparative study on feature extraction using texture and shape for content based image retrieval. Int. J. Adv. Sci. Technol. 2015, 80, 41–52. [Google Scholar] [CrossRef]
  8. Zhu, L.; Spachos, P.; Pensini, E.; Plataniotis, K.N. Deep learning and machine vision for food processing: A survey. Curr. Res. Food Sci. 2021, 4, 233–249. [Google Scholar] [CrossRef] [PubMed]
  9. Bhimte, N.R.; Thool, V. Diseases detection of cotton leaf spot using image processing and SVM classifier. In Proceedings of the 2018 Second international conference on intelligent computing and control systems (ICICCS); IEEE, 2018; pp. 340–344. [Google Scholar]
  10. Hamouchene, I.; Aouat, S.; Lacheheb, H. Texture segmentation and matching using LBP operator and GLCM matrix. In Proceedings of the Intelligent Systems for Science and Information: Extended and Selected Results from the Science and Information Conference 2013. Springer, 2014, pp. 389–407.
  11. Lv, Z.; Zhang, Z. Research on plant leaf recognition method based on multi-feature fusion in different partition blocks. Digit. Signal Process. 2023, 134, 103907. [Google Scholar] [CrossRef]
  12. Hussain, N.; Khan, M.A.; Tariq, U.; Kadry, S.; Yar, M.A.E.; Mostafa, A.M.; Alnuaim, A.A.; Ahmad, S. Multiclass Cucumber Leaf Diseases Recognition Using Best Feature Selection. Comput. Mater. Contin. 2022, 70. [Google Scholar] [CrossRef]
  13. Wang, F.; Wang, R.; Xie, C.; Yang, P.; Liu, L. Fusing multi-scale context-aware information representation for automatic in-field pest detection and recognition. Comput. Electron. Agric. 2020, 169, 105222. [Google Scholar] [CrossRef]
  14. Quoc, K.N.; Thu, L.L.T.; Quach, L.D. A Vision-Language Foundation Model for Leaf Disease Identification. arXiv 2025, arXiv:2505.07019. [Google Scholar]
  15. Sarker, I.; Colman, A.; Han, J.; Watters, P. Context-Aware Machine Learning and Mobile Data Analytics: Automated Rule-based Services with Intelligent Decision-Making; Springer International Publishing, 2022. [Google Scholar]
  16. Kumar, S.; Pal, S.; Singh, V.P.; Jaiswal, P. Performance evaluation of ResNet model for classification of tomato plant disease. Epidemiol. Methods 2023, 12. [Google Scholar] [CrossRef]
  17. Agarwal, M.; Gupta, S.K.; Biswas, K.K. Development of Efficient CNN model for Tomato crop disease identification. Sustain. Comput. Inform. Syst. 2020, 28, 100407. [Google Scholar] [CrossRef]
  18. Yu, M.; Ma, X.; Guan, H. Recognition method of soybean leaf diseases using residual neural network based on transfer learning. Ecol. Inform. 2023, 76, 102096. [Google Scholar] [CrossRef]
  19. Yu, H.; Cheng, X.; Chen, C.; Heidari, A.A.; Liu, J.; Cai, Z.; Chen, H. Apple leaf disease recognition method with improved residual network. Multimed. Tools Appl. 2022, 81, 7759–7782. [Google Scholar] [CrossRef]
  20. Lu, J.; Tan, L.; Jiang, H. Review on convolutional neural network (CNN) applied to plant leaf disease classification. Agriculture 2021, 11, 707. [Google Scholar] [CrossRef]
  21. Sudhakar, R.; Sivaraj, R.; Vijayakumar, M. Intelligent contextual attention mechanism of region of interest based network model for leaf disease segmentation and classification. Biomed. Signal Process. Control 2025, 105, 107630. [Google Scholar] [CrossRef]
  22. Elfatimi, E.; Eryiğit, R.; Elfatimi, L. Deep multi-scale convolutional neural networks for automated classification of multi-class leaf diseases in tomatoes. Neural Comput. Appl. 2024, 36, 803–822. [Google Scholar]
  23. Dai, G.; Tian, Z.; Fan, J.; Sunil, C.; Dewi, C. DFN-PSAN: Multi-level deep information feature fusion extraction network for interpretable plant disease classification. Comput. Electron. Agric. 2024, 216, 108481. [Google Scholar] [CrossRef]
  24. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the Proceedings of the IEEE/CVF international conference on computer vision, 2021; pp. 10012–10022. [Google Scholar]
  25. Zhang, Z.; Gong, Z.; Hong, Q.; Jiang, L. Swin-transformer based classification for rice diseases recognition. In Proceedings of the 2021 International Conference on Computer Information Science and Artificial Intelligence (CISAI); IEEE, 2021; pp. 153–156. [Google Scholar]
  26. Borhani, Y.; Khoramdel, J.; Najafi, E. A deep learning based approach for automated plant disease classification using vision transformer. Sci. Rep. 2022, 12, 11554. [Google Scholar] [CrossRef] [PubMed]
  27. Yu, S.; Xie, L.; Huang, Q. Inception convolutional vision transformers for plant disease identification. Internet Things 2023, 21, 100650. [Google Scholar] [CrossRef]
  28. Thakur, P.S.; Chaturvedi, S.; Khanna, P.; Sheorey, T.; Ojha, A. Vision transformer meets convolutional neural network for plant disease classification. Ecol. Inform. 2023, 77, 102245. [Google Scholar] [CrossRef]
  29. Lu, X.; Yang, R.; Zhou, J.; Jiao, J.; Liu, F.; Liu, Y.; Su, B.; Gu, P. A hybrid model of ghost-convolution enlightened transformer for effective diagnosis of grape leaf disease and pest. J. King Saud. Univ.-Comput. Inf. Sci. 2022, 34, 1755–1767. [Google Scholar] [CrossRef]
  30. Mirzadeh, S.I.; Farajtabar, M.; Li, A.; Levine, N.; Matsukawa, A.; Ghasemzadeh, H. Improved knowledge distillation via teacher assistant. Proc. Proc. AAAI Conf. Artif. Intell. 2020, Vol. 34, 5191–5198. [Google Scholar] [CrossRef]
  31. Cheng, X.; Rao, Z.; Chen, Y.; Zhang, Q. Explaining knowledge distillation by quantifying the knowledge. In Proceedings of the Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2020; pp. 12925–12935. [Google Scholar]
  32. Phuong, M.; Lampert, C. Towards understanding knowledge distillation. In Proceedings of the International conference on machine learning. PMLR, 2019; pp. 5142–5151. [Google Scholar]
  33. Joshi, C.K.; Liu, F.; Xun, X.; Lin, J.; Foo, C.S. On representation knowledge distillation for graph neural networks. IEEE transactions on neural networks and learning systems, 2022. [Google Scholar]
  34. Zhuang, Y.; Lyu, L.; Shi, C.; Yang, C.; Sun, L. Data-free adversarial knowledge distillation for graph neural networks. arXiv 2022, arXiv:2205.03811. [Google Scholar]
  35. Huang, Q.; Wu, X.; Wang, Q.; Dong, X.; Qin, Y.; Wu, X.; Gao, Y.; Hao, G. Knowledge distillation facilitates the lightweight and efficient plant diseases detection model. Plant Phenomics 2023, 5, 0062. [Google Scholar] [CrossRef] [PubMed]
  36. Hughes, D.; Salathé, M.; et al. An open access repository of images on plant health to enable the development of mobile disease diagnostics. arXiv 2015, arXiv:1511.08060. [Google Scholar]
  37. Thapa, R.; Zhang, K.; Snavely, N.; Belongie, S.; Khan, A. Plant Pathology 2021 - FGVC8. https://kaggle. com/competitions/plant-pathology-2021-fgvc8, 2021. Kaggle.
  38. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.;Wojna, Z. Rethinking the Inception Architecture for Computer Vision, 2015, [arXiv:cs.CV/1512.00567].
  39. Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition, 2015, [arXiv:cs.CV/1409.1556].
  40. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition, 2015, [arXiv:cs.CV/1512.03385].
  41. Ma, N.; Zhang, X.; Zheng, H.T.; Sun, J. ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design, 2018, [arXiv:cs.CV/1807.11164].
  42. Mehta, S.; Rastegari, M. MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer, 2022, [arXiv:cs.CV/2110.02178].
  43. Tan, M.; Le, Q.V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks, 2020, [arXiv:cs.LG/1905.11946].
  44. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale, 2021, [arXiv:cs.CV/2010.11929].
  45. Zhang, H.; Wu, C.; Zhang, Z.; Zhu, Y.; Lin, H.; Zhang, Z.; Sun, Y.; He, T.; Mueller, J.; Manmatha, R.; et al. ResNeSt: Split-Attention Networks, 2020, [arXiv:cs.CV/2004.08955].
  46. Li, Y.; Yuan, G.; Wen, Y.; Hu, J.; Evangelidis, G.; Tulyakov, S.; Wang, Y.; Ren, J. EfficientFormer: Vision Transformers at MobileNet Speed, 2022, [arXiv:cs.CV/2206.01191].
  47. Shehu, H.A.; Ackley, A.; Marvellous, M.; Eteng, O.E. Early detection of tomato leaf diseases using transformers and transfer learning. Eur. J. Agron. 2025, 168, 127625. [Google Scholar] [CrossRef]
  48. Yu, S.; Xie, L.; Dai, L. ST-CFI: Swin Transformer with convolutional feature interactions for identifying plant diseases. Sci. Rep. 2025, 15, 25000. [Google Scholar] [CrossRef] [PubMed]
  49. Ullah, W.; Javed, K.; Khan, M.A.; Alghayadh, F.Y.; Bhatt, M.W.; Al Naimi, I.S.; Ofori, I. Efficient identification and classification of apple leaf diseases using lightweight vision transformer (ViT). Discov. Sustain. 2024, 5, 116. [Google Scholar] [CrossRef]
  50. Ait Nasser, A.; Akhloufi, M.A. A Hybrid Deep Learning Architecture for Apple Foliar Disease Detection. Computers 2024, 13, 116. [Google Scholar] [CrossRef]
Figure 1. Visual comparison of early blight and late blight in tomatoes.
Figure 1. Visual comparison of early blight and late blight in tomatoes.
Preprints 219312 g001
Figure 2. Dual-Channel Feature Enhancement Network.
Figure 2. Dual-Channel Feature Enhancement Network.
Preprints 219312 g002
Figure 3. Network structure of our knowledge distillation.
Figure 3. Network structure of our knowledge distillation.
Preprints 219312 g003
Figure 4. Feature maps extracted by the base model, teacher model, and distilled student model for representative plant leaf disease images.
Figure 4. Feature maps extracted by the base model, teacher model, and distilled student model for representative plant leaf disease images.
Preprints 219312 g004
Table 1. Model complexity and inference efficiency.
Table 1. Model complexity and inference efficiency.
Model Params (M) FLOPs (G) Inference Time (ms)
MobileNetV3 2.90 0.07 1.6
DC-FEN teacher 5.36 0.31 3.8
Ours 2.90 0.07 1.6
Table 2. Comparison with representative generic baseline methods on the PlantVillage tomato subset.
Table 2. Comparison with representative generic baseline methods on the PlantVillage tomato subset.
Model Accuracy (%)
Inception_v3 [38] 69.56
VGG-16 [39] 70.31
VGG-19 [39] 71.15
ResNet [40] 75.12
ShuffleNet_v2 [41] 78.24
MobileViT [42] 79.75
EfficientNet [43] 80.40
ViT [44] 82.05
ResNeSt [45] 81.35
EfficientFormer [46] 83.89
Ours 86.25
Table 3. Recent specialized plant disease recognition methods reported in the literature on PlantVillage-related settings.
Table 3. Recent specialized plant disease recognition methods reported in the literature on PlantVillage-related settings.
Method Dataset / Setting Accuracy (%)
DMCNN [22] PlantVillage tomato subset 99.10
ViT-Base (TL) [47] PlantVillage 99.17
Table 4. Supplementary comparison with recent literature-reported methods on Plant Pathology 2021 (FGVC8).
Table 4. Supplementary comparison with recent literature-reported methods on Plant Pathology 2021 (FGVC8).
Model Other reported metric (%) Mean F1-score (%)
ST-CFI [48] 91.12 NR
AppViT [49] 96.40 Precision 96.30
CTPlantNet [50] 95.96 Accuracy 97.57
Ours 96.52 96.48
NR denotes not reported. Mean F1-score is the primary metric for FGVC8. The other metric column follows the metric names reported in the original papers and is provided only as supplementary evidence. Because the compared methods use different backbones, input resolutions, validation splits, and training protocols, this table should not be interpreted as a strict ranking.
Table 5. Effect of CKD and FKD on different backbones on the PlantVillage tomato subset.
Table 5. Effect of CKD and FKD on different backbones on the PlantVillage tomato subset.
Model Accuracy (%)
VGG16 + CKD 80.24
VGG16 + FKD 82.71
VGG16 + FKD + CKD 85.36
ResNet + CKD 82.21
ResNet + FKD 83.39
ResNet + FKD + CKD 86.16
Table 6. Examples of selected sigmoid confidence scores for representative leaf disease images.
Table 6. Examples of selected sigmoid confidence scores for representative leaf disease images.
Image AS CPM CCR GE HLB PBS PEB SPM TYLCV
Preprints 219312 i001 0.918 0 0 0 0 0.003 0 0 0
Preprints 219312 i002 0 0.997 0 0 0 0.001 0 0 0
Preprints 219312 i003 0 0 1 0 0 0 0 0 0
Preprints 219312 i004 0.001 0 0 0.747 0 0.005 0 0 0.014
Preprints 219312 i005 0 0 0 0 0.998 0 0 0 0
Preprints 219312 i006 0 0 0 0 0 0.999 0 0 0
Preprints 219312 i007 0 0 0 0 0 0 0.999 0 0
Preprints 219312 i008 0.040 0 0 0 0 0.001 0.001 0.952 0
Preprints 219312 i009 0 0 0 0 0 0 0.009 0 0.986
Table 7. Ablation Study Results for Plant Disease Classification on the PlantVillage dataset.
Table 7. Ablation Study Results for Plant Disease Classification on the PlantVillage dataset.
Model Accuracy (%)
Baseline MobileNetV3 75.88
Teacher Model Only 87.35
MobileNetV3 + CKD 83.56
MobileNetV3 + FKD 85.43
MobileNetV3 + FKD + CKD (Ours) 86.25
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings