Chaotic-to-Fine Clustering for Unlabeled Plant Disease Images

Uno Fang, Jianxin Li, Xuequan Lu, Mumtaz Ali, Longxiang Gao, Yong XiangarXiv 2021

Abstract: Current annotation for plant disease images depends on manual sorting and handcrafted features by agricultural experts, which is time-consuming and labour-intensive. In this paper, we propose a self-supervised clustering framework for grouping plant disease images based on the vulnerability of Kernel K-means. The main idea is to establish a cross iterative under-clustering algorithm based on Kernel K-means to produce the pseudo-labeled training set and a chaotic cluster to be further classified by a deep learning module. In order to verify the effectiveness of our proposed framework, we conduct extensive experiments on three different plant disease datatsets with five plants and 17 plant diseases. The experimental results show the high superiority of our method to do image-based plant disease classification over balanced and unbalanced datasets by comparing with five state-of-the-art existing works in terms of different metrics.

Introduction

Precision agriculture relies heavily on robust computer vision models for early plant disease detection. However, training these models requires massive, accurately annotated datasets. Currently, this annotation process is a significant bottleneck, requiring agricultural experts to manually sort thousands of images—a process that is expensive, slow, and prone to human error.

While unsupervised clustering algorithms like K-means or Spectral clustering offer a potential solution, they often struggle with real-world agricultural data. These methods typically assume balanced class distributions or fail when visually similar diseases (such as early versus late potato blight) create blurred cluster boundaries. This paper introduces CIKICS (Cross Iterative Kernel K-means enhanced with Image Classification and Similarity Measurements), a self-supervised framework designed to group unlabeled plant disease images regardless of data distribution or scale.

Methodology

The CIKICS framework operates through a four-step pipeline designed to transition from coarse, "chaotic" clusters to fine-grained classifications.

The four-step CIKICS pipeline overview, showing the progression from raw images to final classification results.
  1. Feature Extraction: Raw images are processed through a pre-trained ResNet50 to extract 512-dimensional feature vectors. These high-dimensional vectors are then reduced to 2D using t-SNE to facilitate the initial clustering phase.
  2. Cross Iterative Kernel K-means: The core innovation lies in the use of a Radial Basis Function (RBF) Kernel K-means algorithm. By intentionally manipulating the kernel's sensitivity parameter ($\sigma$), the algorithm is forced to "under-cluster." This strategy pushes dissimilar elements far apart, creating several small, highly pure "normal" clusters and one large "chaotic" (abnormal) cluster containing the most difficult-to-classify images.
  3. Image Classification: The pure "normal" clusters are assigned pseudo-labels and serve as a training set for a standard Convolutional Neural Network (CNN). This CNN then generates a Top-$\mu$ list of candidate classes for every image remaining in the chaotic cluster.
  4. Similarity Measurements: To finalize labels for chaotic cluster images, the system employs a dual-component check. It combines Euclidean distance calculations from ResNet50 features with similarity scores from a Siamese network trained on the pseudo-labeled clusters. The highest average similarity score determines the final label.

Technical Implementation of the Chaotic Cluster

Instead of attempting to force a perfect categorization on the first pass, CIKICS leverages the "chaotic cluster" as a feature. By ensuring the initial clusters are small but highly accurate, the framework effectively bootstraps its own high-quality training dataset from unlabeled data.

Detailed view of the CNN architecture and the iterative training process used to resolve the chaotic (abnormal) cluster.

As shown in the architecture above, the CNN uses a series of ReLU, MaxPooling, and Dropout layers to learn from the pseudo-labeled data. This model is then used to predict the potential classes for images in the abnormal cluster, which are subsequently refined through the similarity measurement module.

Experimental Results and Datasets

The framework was evaluated on three distinct datasets to test its robustness:

  • PVAG (Apple & Grape): A balanced dataset of 7,323 images across 8 classes. CIKICS achieved an F1 score of 0.835 and a Purity of 0.683, outperforming state-of-the-art methods like AROC.
  • PVPS (Peach & Strawberry): An unbalanced dataset of 4,222 images across 4 classes. CIKICS maintained high performance with an F1 score of 0.715.
  • Citrus Disease Dataset (CDD): A small-scale, unbalanced dataset of 604 images. While other algorithms like AROC collapsed entirely on this data, CIKICS remained functional with an average per-cluster accuracy of 0.779.

Conclusion

CIKICS demonstrates that "under-clustering" can be a powerful tool for self-supervised learning. By confidently identifying easy cases first, the system creates a reliable foundation for deep learning modules to tackle more complex, visually similar disease patterns. Future work will focus on dynamically estimating the number of clusters ($k$) to make the pipeline entirely parameter-free and improving performance on extremely small-scale datasets.

Summary updated

BibTeX
@misc{fang2021chaotic,
  author = {Uno Fang and Jianxin Li and Xuequan Lu and Mumtaz Ali and Longxiang Gao and Yong Xiang},
  title = {{Chaotic-to-Fine Clustering for Unlabeled Plant Disease Images}},
  year = {2021},
  eprint = {2101.06820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.06820},
}
Figure