Submitted:
27 April 2024
Posted:
10 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Methodology
2.1. Dataset and Preparation
2.2. Methodology
2.2.1. Vision Transformer
2.2.2. MobileNetV2

2.2.3. ResNet18

2.3. Hyperparameter Optimization & Attention Mechanism

2.4. Evaluation Metrics
3. Results
4. Discussion
5. Future Work
6. Conclusions
Acknowledgments
References
- Afzaal, U., Bhattarai, B., Pandeya, Y.R., Lee, J., 2021. An Instance Segmentation Model for Strawberry Diseases Based on Mask R-CNN. Sensors 21, 6565. [CrossRef]
- Andonie, R., 2019. Hyperparameter optimization in learning systems. J. Membr. Comput.
- Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., Joulin, A., 2021. Emerging Properties in Self-Supervised Vision Transformers. [CrossRef]
- Chen, J., Zhang, D., Suzauddola, M., Zeb, A., 2021. Identifying crop diseases using attention embedded MobileNet-V2 model. Appl. Soft Comput. 113, 107901. [CrossRef]
- Chen, Y., Lee, W.S., Gan, H., Peres, N., Fraisse, C., Zhang, Y., He, Y., 2019. Strawberry Yield Prediction Based on a Deep Neural Network Using High-Resolution Aerial Orthoimages. Remote Sens. 11, 1584. [CrossRef]
- colab.google [WWW Document], 2024. colab.google. URL https://colab.google/ (accessed 3.24.24).
- Denkenberger, D., Pearce, J.M., 2015. Feeding everyone no matter what: Managing food security after global catastrophe. Academic Press, London.
- Dhiman, S., 2020. Sustainable Social Entrepreneurship: Serving the Destitute, Feeding the Hungry, and Reducing the Food Waste, in: Marques, J., Dhiman, S. (Eds.), Social Entrepreneurship and Corporate Social Responsibility, Management for Professionals. Springer International Publishing, Cham, pp. 193–208. [CrossRef]
- Digital Research Alliance of Canada [WWW Document], 2023. . Digit. Res. Alliance Can. URL https://alliancecan.ca/en/node/10 (accessed 12.6.23).
- Dinesh, H., Pearce, J.M., 2016. The potential of agrivoltaic systems. Renew. Sustain. Energy Rev. 54, 299–308. [CrossRef]
- Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., Houlsby, N., 2021. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. [CrossRef]
- Gad, A.F., 2020. Accuracy, Precision, and Recall in Deep Learning [WWW Document]. Pap. Blog. URL https://blog.paperspace.com/deep-learning-metrics-precision-recall-accuracy/ (accessed 12.6.23).
- Girotto, F., Alibardi, L., Cossu, R., 2015. Food waste generation and industrial uses: A review. Waste Manag., Urban Mining 45, 32–41. [CrossRef]
- Government of Canada Publications, 2019. Crop Profile for Strawberry in Canada [WWW Document]. URL https://publications.gc.ca/site/archivee-archived.html?url=https://publications.gc.ca/collections/collection_2009/agr/A118-10-17-2005E.
- Great Learning Team, 2023 Hyperparameter Tuning with GridSearchCV. URL https://www.mygreatlearning.com/blog/gridsearchcv/ (accessed 12.6.23).
- Hadipour-Rokni, R., Askari Asli-Ardeh, E., Jahanbakhshi, A., Esmaili paeen-Afrakoti, I., Sabzi, S., 2023. Intelligent detection of citrus fruit pests using machine vision system and convolutional neural network through transfer learning technique. Comput. Biol. Med. 155, 106611. [CrossRef]
- He, K., Zhang, X., Ren, S., Sun, J., 2016. Deep Residual Learning for Image Recognition, in: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Presented at the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778. [CrossRef]
- Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., Adam, H., 2017. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. [CrossRef]
- Ketabforoosh, K., 2023. Strawberry Images.
- Kouloumprouka, Z., Monaghan, J., Bromley, J., Vickers, L., 2024. Opportunities and challenges for strawberry cultivation in urban food production systems. PLANTS PEOPLE PLANET.
- LeCun, Y., Boser, B., Denker, J.S., Henderson, D., Howard, R.E., Hubbard, W., Jackel, L.D., 1989. Backpropagation Applied to Handwritten Zip Code Recognition. Neural Comput. 1, 541–551. [CrossRef]
- Lello, F., Dida, M., Mkiramweni, M., Matiko, J., Akol, R., Nsabagwa, M., Katumba, A., 2023. Fruit fly automatic detection and monitoring techniques: A review. Smart Agric. Technol. 5, 100294. [CrossRef]
- Meyer, T.K., Pearce, J.M., 2022. How Easy is it to Feed Everyone? Economic Alternatives to Eliminate Human Nutrition Deficits. Food Ethics 8, 3. [CrossRef]
- Niu, Z., Zhong, G., Yu, H., 2021. A review on the attention mechanism of deep learning. Neurocomputing 452, 48–62. [CrossRef]
- Oğuz, İ., Halil, İ., Nesibe Ebru, K., 2022. Strawberry Cultivation Techniques. IntechOpen.
- Pérez-Borrero, I., Marín-Santos, D., Gegúndez-Arias, M.E., Cortés-Ancos, E., 2020. A fast and accurate deep learning method for strawberry instance segmentation. Comput. Electron. Agric. 178, 105736. [CrossRef]
- Puttemans, S., Vanbrabant, Y., Tits, L., Goedemé, T., 2016. Automated visual fruit detection for harvest estimation and robotic harvesting. [CrossRef]
- PyTorch documentation — PyTorch 2.1 documentation [WWW Document], 2023. URL https://pytorch.org/docs/stable/index (accessed 12.6.23).
- Rahamathunnisa, U., Nallakaruppan, M.K., Anith, A., Kumar KS, S., 2020. Vegetable Disease Detection Using K-Means Clustering And Svm. IEEE, pp. 1308–1311. [CrossRef]
- Rezaei-Dastjerdehei, M.R., Mijani, A., Fatemizadeh, E., 2020. Addressing Imbalance in Multi-Label Classification Using Weighted Cross Entropy Loss Function, in: 2020 27th National and 5th International Iranian Conference on Biomedical Engineering (ICBME). Presented at the 2020 27th National and 5th International Iranian Conference on Biomedical Engineering (ICBME), pp. 333–338. [CrossRef]
- Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., Chen, L.-C., 2019. MobileNetV2: Inverted Residuals and Linear Bottlenecks. [CrossRef]
- Shorif Uddin, M., Bansal, J.C., 2021. Computer Vision and Machine Learning in Agriculture. Algorithms for Intelligent Systems. Springer Singapore.
- StrawDI Dataset [WWW Document], 2020. URL https://strawdi.github.io/ (accessed 1.21.24).
- Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., Rabinovich, A., 2014. Going Deeper with Convolutions. [CrossRef]
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I., 2023. Attention Is All You Need. [CrossRef]
- Widmer, J., Christ, B., Grenz, J., Norgrove, L., 2024. Agrivoltaics, a promising new tool for electricity and food production: A systematic review. Renew. Sustain. Energy Rev. 192, 114277. [CrossRef]
- Woo, S., Uyeh, D.D., Kim, J., Kim, Y., Kang, S., Kim, K.C., Lee, S.Y., Ha, Y., Lee, W.S., 2020. Analyses of Work Efficiency of a Strawberry-Harvesting Robot in an Automated Greenhouse. Agronomy 10, 1751. [CrossRef]
- Wydra, K., Vollmer, V., Busch, C., Prichta, S., Wydra, K., Vollmer, V., Busch, C., Prichta, S., 2023. Agrivoltaic: Solar Radiation for Clean Energy and Sustainable Agriculture with Positive Impact on Nature. IntechOpen. [CrossRef]
- Zhou, C., Hu, J., Xu, Z., Yue, J., Ye, H., Yang, G., 2020. A Novel Greenhouse-Based System for the Detection and Plumpness Assessment of Strawberry Using an Improved Deep Learning Technique. Front. Plant Sci. 11.





| Preprocessing | Value |
|---|---|
| Resize | (256, 256) |
| Center Crop | (224, 224) |
| Normalize (mean) | [0.485, 0456, 0.406] |
| Normalize (std) | [0.229, 0.224, 0.225] |
| Class name | Angular leafspot | Anthracnose fruit rot | Blossom blight | Gray mold | Leaf spot | Powdery mildew fruit rot | Powdery mildew leaf | Ripe strawberries | Unripe strawberries |
|---|---|---|---|---|---|---|---|---|---|
| No. of Original | 245 | 54 | 117 | 255 | 382 | 80 | 319 | 230 | 243 |
| After Addition | 245 | 100 | 150 | 255 | 382 | 151 | 319 | 230 | 243 |
| Class weights | 0.8569 | 3.8847 | 1.7481 | 0.7438 | 0.5406 | 2.6757 | 0.6490 | 1.0724 | 1.0385 |
| Parameter | Value |
|---|---|
| Optimizer | SGD |
| Batch size | 32 |
| Learning rate | 0.001 |
| epoch | 200 |
| momentum | 0.9 |
| Training GPU | Digital Alliance Canada (sharcnet) A100 (Google Colab) |
| Model | Precision | Recall | F1-score | Accuracy |
|---|---|---|---|---|
| Vision Transformer | 0.983 | 0.983 | 0.983 | 0.984 |
| MobileNetV2 | 0.980 | 0.979 | 0.979 | 0.981 |
| ResNet18 | 0.979 | 0.978 | 0.978 | 0.979 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).