Mango leaf diseases pose a significant threat to farmers’ productivity in Indonesia due to the difficulty and inaccuracy of manual diagnosis. A mango leaf disease detection system was developed by optimizing the decision threshold for classification using a ResNet50 Convolutional Neural Network (CNN). The Kaggle dataset consisted of 3,979 mango leaf images across eight classes: healthy, anthracnose, bacterial canker, gall midge, cutting weevil, dieback, sooty mold, and powdery mildew. The raw dataset was processed in Roboflow with an 80:10:10 train-validation-test split, and threefold data augmentation on the training set produced a total of 9,600 images. Decision threshold optimization using the precision-recall curve analysis identified 0.85 as the optimal threshold. At this threshold, precision reached 97.03%, while recall was 94.36%. These results provide a critical reference for agricultural applications in Indonesia, particularly considering local characteristics. The model achieved an F1-score of 95.49% after validation on the augmented dataset specifically tailored for tropical conditions.
Copyrights © 2026