Preprint Article Version 1 Preserved in Portico This version is not peer-reviewed

Classification Of Strawberry Diseases and Quality Using Different Machine Learning Methods

Version 1 : Received: 27 April 2024 / Approved: 10 May 2024 / Online: 10 May 2024 (16:51:08 CEST)

How to cite: Aghamohammadesmaeiletabforoosh, K.; Nikan, S.; Antonini, G.; Pearce, J. Classification Of Strawberry Diseases and Quality Using Different Machine Learning Methods. Preprints 2024, 2024050710. https://doi.org/10.20944/preprints202405.0710.v1 Aghamohammadesmaeiletabforoosh, K.; Nikan, S.; Antonini, G.; Pearce, J. Classification Of Strawberry Diseases and Quality Using Different Machine Learning Methods. Preprints 2024, 2024050710. https://doi.org/10.20944/preprints202405.0710.v1

Abstract

Machine learning and computer vision have proven to be valuable tools for farmers to streamline their resource utilization to lead to more sustainable and efficient agricultural production. These techniques have been applied to strawberry cultivation in the past with limited success. To build on this past work, in this study two separate sets of strawberry images, along with their associated diseases, were collected and subjected to, resizing, and augmentation. Subsequently, a combined dataset consisting of 9 classes was utilized to fine-tune three distinct pre-trained models: Vision Transformer (ViT), MobileNetV2, and ResNet18. To address the imbalanced class distribution in the dataset, each class was assigned weights to ensure nearly equal impact during the training process. To enhance the outcomes, new images were generated by removing backgrounds, reducing noise, and flipping them. The performances of ViT, MobileNetV2, and ResNet18 were compared after being selected. Customization specific to the task was applied to all three algorithms, and their performances were assessed. Throughout this experiment, none of the layers were frozen, ensuring all layers remained active during training. Attention heads were incorporated into the first 5 and last 5 layers of MobileNetV2 and ResNet18, while the architecture of ViT was modified. The results indicated accuracy factors of 98.4%, 98.1%, and 97.9% for ViT, MobileNetV2, and ResNet18, respectively. Despite the data being imbalanced, the precision, which indicates the proportion of correctly identified positive instances among all predicted positive instances, approached nearly 99% with the ViT. MobileNetV2 and ResNet18 demonstrated similar results. Overall, the analysis revealed that the Vision Transformer model exhibited superior performance in strawberry ripeness and disease classification. The inclusion of attention heads in the early layers of ResNet18 and MobileNet18, along with the inherent attention mechanism in ViT, improved the accuracy of image identification. These findings offer the potential for farmers to enhance strawberry cultivation through passive camera monitoring alone, promoting the health and well-being of the population.

Keywords

computer vision; monitoring; strawberries; yield monitoring; image classification; machine learning; Vision Transformers; MobileNetV2; ResNet18

Subject

Computer Science and Mathematics, Computer Vision and Graphics

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 0
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.