Determining the optimal harvest time for oyster mushrooms (Pleurotus sp.) is a critical challenge in cultivation practice, as conventional methods rely on subjective visual inspection by farmers, which is prone to human error and inconsistency. This study presents a comparative analysis of two deep learning approaches, namely a Convolutional Neural Network (CNN) based on the ResNet50 architecture and YOLOv11, for classifying oyster mushroom maturity and harvest readiness into two categories: “harvest-ready” and “not harvest-ready.” A dataset of 1,200 balanced images was collected directly from an oyster mushroom cultivation facility and preprocessed through auto-orientation, resizing to 640×640 pixels, and data augmentation applied exclusively to the training set. Model performance was evaluated using accuracy, precision, recall, F1-score, and training time as evaluation metrics. The comparative evaluation was conducted on 30 newly acquired images that were entirely excluded from the training, validation, and testing datasets. The experimental results show that YOLOv11s achieved superior and more balanced performance, with accuracy, precision, recall, and F1-score each reaching 93%. In comparison, the CNN (ResNet50) model achieved an accuracy of 90%, a precision of 100%, a recall of 83.3%, and an F1-score of 90.9%. In terms of training efficiency, CNN (ResNet50) required 71.9 minutes, while YOLOv11s required 89.3 minutes. These findings indicate that YOLOv11s is a more effective model for automated oyster mushroom harvest readiness detection and has the potential to be integrated into smart farming systems.
Copyrights © 2026