DOI: 10.47897/bilmes.1926302 ISSN: 2618-5938

Selective Class-Conditional Ensemble Learning for Coffee Leaf Disease Classification Using CNN and Transformer-Based Models

Osman Tayfun Bişkin
Coffee is one of the most economically significant crops in the world. However, this plant suffers some diseases that reduce yield quality and quantity. Therefore, early detection of these diseases is important for crop management and preventing economic losses. Although convolutional neural networks (CNNs) have reached satisfactory performance in plant disease detection, their reliance on local receptive fields limits their capacity to capture global spatial relationships within leaf images. Therefore, in this study we employ ensemble model using CNN and transformers. For this purpose, five deep learning models, including VGG16, ResNet50, and EfficientNetB0, Vision Transformer (ViT), and Swin Transformer-Tiny (Swin-T), were evaluated for coffee leaf disease classification. In addition to analyzing individual models, two ensemble strategies, soft voting and class-conditional fusion, were employed for classification. Then, in order to avoid performance degradation caused by weak models, ensemble construction was further optimized by top-𝐾 model selection strategy. By this way, only the best subset of models ranked by validation accuracy was included in the fusion process. Grid-search optimization was conducted to determine the most effective ensemble composition and parameter settings. Experimental results showed that the optimal class-conditional ensemble, constructed with K = 3 models (VGG16, EfficientNet-B0, and Swin-T) and a boost factor of 0.5, achieved the best overall performance with 99.60% accuracy, 99.59% F1-score, 99.59% precision, and 99.60% recall. These findings indicate that class conditional selective fusion can exploit complementary strengths across heterogeneous architectures more effectively than conventional soft voting ensembles. The results demonstrate that a selective top-𝐾 class-conditional ensemble framework provides an effective solution for coffee leaf disease classification.

More from our Archive