Enhanced convolutional block attention module with Learnable Gated Fusion (LGF-CBAM) for cocoa pod disease identification

H Henry Techie-Menson M Michael Asante Y Yaw Marfo Missah G Gaddafi Abdul-Salaam S Stephen Opoku Oppong

Abstract

Accurate detection of cocoa pod diseases is vital to reducing yield losses and supporting sustainable agriculture. Although deep learning models have shown promise in plant disease classification, their performance often varies between datasets due to limitations in feature extraction and generalisation. This study introduces a Learnable Gated Fusion Convolutional Block Attention Module (LGF-CBAM) integrated with a ResNetV2-101 backbone to improve discriminative feature learning and improve robustness in cocoa disease classification. Unlike the standard CBAM, which processes attention modules sequentially, LGF-CBAM adaptively balances the importance of spatial and channel cues through trainable gating parameters normalized with a softmax function. Incorporating LGF-CBAM provided outstanding results on the Cocoa_Pod_Disease_Gh dataset, achieving 98.95% accuracy along with F1 and PPV scores of 99.11%. The cross-dataset evaluation confirmed robustness, with accuracies of 98.53% on Cocoa Diseases (YOLOv4), 97.96% on Black and Borer Pod Rot, and 96.19% on Cacao Diseases in Davao. Although greater variability in the Coffee and Cocoa dataset reduced accuracy to 94.00%, the model still maintained strong adaptability under diverse conditions. These findings establish LGF-CBAM as a state-of-the-art framework that outperforms all other referenced systems, offering high accuracy, stability, and generalization. In general, this research contributes to a novel attention-based deep learning framework that can support early and reliable identification of cocoa pod diseases, providing a scalable solution for precision agriculture.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 4
Published April 30, 2026
Pages e0348147
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (5)

H

Henry Techie-Menson

M

Michael Asante

Y

Yaw Marfo Missah

G

Gaddafi Abdul-Salaam

S

Stephen Opoku Oppong