Disease and Defect Detection System for Raspberries Based on Convolutional Neural Networks
Abstract
:1. Introduction
- (1)
- Develop and construct a controlled environment that allows imaging of the raspberry trays.
- (2)
- Capture color images (RGB) in the controlled lighting environment.
- (3)
- Develop software to process the images with object-detection algorithms based on convolutional neural networks (CNN) and determine the quality of the raspberry trays.
- (4)
- Perform classification according to defects or diseases present in raspberries and determine the quality of raspberry trays.
2. Related Works
2.1. Scientific Publications
2.2. Revision of Patents
3. Materials and Methods
3.1. Description of the Prototype Quality Control Equipment
3.2. Object Detection—Faster R–CNN Algorithm
- Inception-v3 [39]: The network is 48 layers deep, the architecture is built progressively, step by step, and has a combination of symmetric and asymmetric compiler blocks; it is the third edition of Google’s Inception Convolutional Neural Network, originally presented during the ImageNet Recognition Challenge.
- ResNet (ResNet-101 and ResNet-50) [40]: these two networks are from the ResNet family; both use residual blocks of direct access connections, reducing the number of parameters to be trained, with a good compromise between performance, structural complexity and training time.
- SqueezeNet [41]: the network is 18 layers deep, is a smaller network that was designed as a more compact replacement for AlexNet. It has almost fewer parameters than AlexNet, yet it performs 3x faster.
- VGG-16 and VGG-19 [42] version, Developed by the Visual Geometry Group (VGG) of the University of Oxford, is an AlexNet enhancement replacing large kernel-sized filters with multiple kernel size filters one after another, increasing network depth and thus being able to learn more complex features.
3.3. Datasets
Labeled—Classes
4. Results
4.1. Object-Detection Models Training
- The Average Precision (AP) calculated from the area under the Precision–Recall curve is determined.
- A value called Detection Rate () is estimated; this value is given by:
4.2. Quantitative Evaluation
4.3. Conceptual Test
- (1)
- A window with the image of the original unprocessed raspberry tray opens
- (2)
- Starts the image processing with each of the modules trained for each of the classes to be studied.
- (3)
- Once the image processing is done, a window opens for each of the classes defined with the image of the raspberry tray with a “box” around the raspberry of the detected class with a “label” with the name corresponding to the detected class.
- (4)
- Above the image in the window the class and the number of objects of that class detected by the model are indicated.
5. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
AI | Artificial Intelligence |
ML | Machine Learning |
DL | Deep Learning |
CNN | Convolutional Neural Network |
FAO | Food and Agriculture Organization of the United Nations |
CVS | computer vision systems |
References
- Rao, A.V.; Snyder, D.M. Raspberries and Human Health: A Review. J. Agric. Food Chem. 2010, 58, 3871–3883. [Google Scholar] [CrossRef] [PubMed]
- Kalt, W.; Cassidy, A.; Howard, L.R.; Krikorian, R.; Stull, A.J.; Tremblay, F.; Zamora-Ros, R. Recent Research on the Health Benefits of Blueberries and Their Anthocyanins. Adv. Nutr. 2020, 11, 224–236. [Google Scholar] [CrossRef] [PubMed]
- Seeram, N.P. Berries and Human Health: Research Highlights from the Fifth Biennial Berry Health Benefits Symposium. J. Agric. Food Chem. 2013, 62, 3839–3841. [Google Scholar] [CrossRef]
- Ispiryan, A.; Viškelis, J. Valorisation of Raspberries By-Products for Food and Pharmaceutical Industries. 2019. Available online: https://kosmospublishers.com/valorisation-of-raspberries-by-products-for-food-and-pharmaceutical-industries/ (accessed on 8 May 2021).
- Beekwilder, J.; Hall, R.D.; De Vos, C. Identification and dietary relevance of antioxidants from raspberry. Biofactors 2005, 23, 197–205. [Google Scholar] [CrossRef] [PubMed]
- The Food and Agriculture Organization of the United Nations (FAO). Food and Agriculture Data. Online. 2021. Available online: http://www.fao.org/faostat/en (accessed on 1 August 2021).
- Lepe, J.P. Boletín de la Fruta Junio 2021; Technical Report; Oficina de Estudios y Políticas Agrarias, ODEPA: Santiago, Chile, 2021; Available online: https://www.odepa.gob.cl/ (accessed on 1 August 2021).
- Blackmore, S. New concepts in agricultural automation. In Proceedings of the R&D Conference “Precision in Arable Farming: Current Practice and Future Potential”, Grantham, UK, 28–29 October 2009; pp. 127–137. [Google Scholar]
- Bhargava, A.; Bansal, A. Fruits and vegetables quality evaluation using computer vision: A review. J. King Saud-Univ.-Comput. Inf. Sci. 2021, 33, 243–257. [Google Scholar] [CrossRef]
- Naranjo-Torres, J.; Mora, M.; Hernández-García, R.; Barrientos, R.J.; Fredes, C.; Valenzuela, A. A Review of Convolutional Neural Network Applied to Fruit Image Processing. Appl. Sci. 2020, 10, 3443. [Google Scholar] [CrossRef]
- Maheswari, P.; Raja, P.; Apolo-Apolo, O.E.; Pérez-Ruiz, M. Intelligent Fruit Yield Estimation for Orchards Using Deep Learning Based Semantic Segmentation Techniques—A Review. Front. Plant Sci. 2021, 12, 684328. [Google Scholar] [CrossRef]
- Parico, A.I.B.; Ahamed, T. Real Time Pear Fruit Detection and Counting Using YOLOv4 Models and Deep SORT. Sensors 2021, 21, 4803. [Google Scholar] [CrossRef]
- Nasirahmadi, A.; Wilczek, U.; Hensel, O. Sugar Beet Damage Detection during Harvesting Using Different Convolutional Neural Network Models. Agriculture 2021, 11, 1111. [Google Scholar] [CrossRef]
- Wang, X.; Liu, J.; Zhu, X. Early real-time detection algorithm of tomato diseases and pests in the natural environment. Plant Methods 2021, 17. [Google Scholar] [CrossRef] [PubMed]
- Yan, B.; Fan, P.; Lei, X.; Liu, Z.; Yang, F. A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5. Remote Sens. 2021, 13, 1619. [Google Scholar] [CrossRef]
- Zhang, K.; Wu, Q.; Chen, Y. Detecting soybean leaf disease from synthetic image using multi-feature fusion faster R-CNN. Comput. Electron. Agric. 2021, 183, 106064. [Google Scholar] [CrossRef]
- Parvathi, S.; Selvi, S.T. Detection of maturity stages of coconuts in complex background using Faster R-CNN model. Biosyst. Eng. 2021, 202, 119–132. [Google Scholar] [CrossRef]
- Lawal, M.O. Tomato detection based on modified YOLOv3 framework. Sci. Rep. 2021, 11. [Google Scholar] [CrossRef] [PubMed]
- Itakura, K.; Narita, Y.; Noaki, S.; Hosoi, F. Automatic pear and apple detection by videos using deep learning and a Kalman filter. OSA Contin. 2021, 4, 1688. [Google Scholar] [CrossRef]
- Perez-Borrero, I.; Marin-Santos, D.; Vasallo-Vazquez, M.J.; Gegundez-Arias, M.E. A new deep-learning strawberry instance segmentation methodology based on a fully convolutional neural network. Neural Comput. Appl. 2021, 33, 15059–15071. [Google Scholar] [CrossRef]
- Apolo-Apolo, O.; Martínez-Guanter, J.; Egea, G.; Raja, P.; Pérez-Ruiz, M. Deep learning techniques for estimation of the yield and size of citrus fruits using a UAV. Eur. J. Agron. 2020, 115, 126030. [Google Scholar] [CrossRef]
- Santos, T.T.; de Souza, L.L.; dos Santos, A.A.; Avila, S. Grape detection, segmentation, and tracking using deep neural networks and three-dimensional association. Comput. Electron. Agric. 2020, 170, 105247. [Google Scholar] [CrossRef] [Green Version]
- Ganesh, P.; Volle, K.; Burks, T.F.; Mehta, S.S. Deep Orange: Mask R-CNN based Orange Detection and Segmentation. IFAC-PapersOnLine 2019, 52, 70–75. [Google Scholar] [CrossRef]
- Kirk, R.; Cielniak, G.; Mangan, M. L*a*b*Fruits: A Rapid and Robust Outdoor Fruit Detection System Combining Bio-Inspired Features with One-Stage Deep Learning Networks. Sensors 2020, 20, 275. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Chen, X.; Lian, C.; Deng, H.H.; Kuang, T.; Lin, H.Y.; Xiao, D.; Gateno, J.; Shen, D.; Xia, J.J.; Yap, P.T. Fast and Accurate Craniomaxillofacial Landmark Detection via 3D Faster R-CNN. IEEE Trans. Med Imaging 2021, 40, 3867–3878. [Google Scholar] [CrossRef]
- Chen, Y.; Wang, H.; Li, W.; Sakaridis, C.; Dai, D.; Gool, L.V. Scale-Aware Domain Adaptive Faster R-CNN. Int. J. Comput. Vis. 2021, 129, 2223–2243. [Google Scholar] [CrossRef]
- Su, Y.; Li, D.; Chen, X. Lung Nodule Detection based on Faster R-CNN Framework. Comput. Methods Programs Biomed. 2021, 200, 105866. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, C.C.; Tran, G.S.; Nguyen, V.T.; Burie, J.C.; Nghiem, T.P. Pulmonary Nodule Detection Based on Faster R-CNN With Adaptive Anchor Box. IEEE Access 2021, 9, 154740–154751. [Google Scholar] [CrossRef]
- Rashid, M.S.A.; Zaid, A.M.; Hamiruce, M.M.; Suhaidi, S.; Salem, M.A.M.; Din, A.M. Fruit Ripeness Grading System. WO Patent 2012/039597 A3, 21 June 2012. [Google Scholar]
- Tao, Y.; Wen, Z. Item Defect Detection Apparatus and Method. U.S. Patent 6,610,953 B1, 26 August 2003. [Google Scholar]
- Ying, Y.; Rao, X.; Jiang, H.; Wang, J. Fruit Classifying Method according to Surface Color. CN Patent 101125333 A, 20 February 2008. [Google Scholar]
- Xie, L.; Ying, Y.; Wang, A.; Jie, D.; Rao, X. Rapid Nondestructive On-Line Detection SYSTEM for Fruit Quality Based on Near Infrared/Visible Light. CN Patent 102928357 B, 10 December 2014. [Google Scholar]
- Fruit Quality Control Surveys SYSTEM Based on Computer Vision. CN Patent 205484102 U, 17 August 2016. Available online: https://www.vipzhuanli.com/patent/201620105803.8/ (accessed on 8 May 2021).
- Multispectral Imaging System and Implementation Method Which Are Used for Fruit and Vegetable Surface Defect On-Line Detection. CN Patent 106568784 A, 19 April 2017. Available online: https://patents.google.com/patent/CN106568784A/en (accessed on 8 May 2021).
- Fruit Quality Evaluation Device Based on Multispectral Image. CN Patent 101832941 B, 13 March 2013. Available online: https://patentimages.storage.googleapis.com/48/1d/00/6cfdf3da9b6576/CN101832941B.pdf (accessed on 8 May 2021).
- Fruit Hyperspectral Image Segmentation Method Based on Spectral Information. CN Patent 107833223 A, 23 March 2018. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?dbcode=SCPD&dbname=SCPD2018&filename=CN107833223A&uniplatform=NZKPT&v=qSqr0C61Ual4VtslCrOUPHPyf5Exiw6N7qWo0YegS5fmU58OUJ2AoNfO1yudQDnc (accessed on 8 May 2021).
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Region-Based Convolutional Networks for Accurate Object Detection and Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2016, 38, 142–158. [Google Scholar] [CrossRef] [PubMed]
- Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition, Los Alamitos, CA, USA, 27–30 June 2016; pp. 2818–2826. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition, Los Alamitos, CA, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Iandola, F.N.; Han, S.; Moskewicz, M.W.; Ashraf, K.; Dally, W.J.; Keutzer, K. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size. arXiv 2016, arXiv:cs.CV/1602.07360. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition. In Proceedings of the International Conference on Learning Representations (ICLR2015), San Diego, CA, USA, 7–9 May 2015; Available online: https://arxiv.org/abs/1409.1556 (accessed on 9 December 2021).
- MathWorks. Deep Learning Toolbox™-Matlab. Available online: https://www.mathworks.com/products/deep-learning.html (accessed on 9 December 2021).
Article | Data Type | Model |
---|---|---|
Parico et al. [12] | RGB video | YOLOv4, YOLOv4-CSP, YOLOv4-tiny. |
Nasirahmadi et al. [13] | RGB video | YOLO v4, R–FCN and Faster R–CNN |
Wang et al. [14] | RGB video | YOLOv3 |
Yan et al. [15] | RGB video | YOLOv5s, YOLOv5s, YOLOv3, YOLOv4 and EfficientDet-D0 |
Zhang et al. [16] | RGB image | Faster R–CNN |
Parvathi et al. [17] | RGB image | Faster R–CNN, SSD, YOLOv3, R–FCN |
Lawal et al. [18] | RGB images | YOLOv3 modified: YOLO-Tomato-A, YOLO-Tomato-B and YOLO-Tomato-C |
Itakura et al. [19] | RGB video | YOLOv2 |
Perez-Borrero et.al. [20] | RGB video | Mask R–CNN |
Apolo Apolo et al. [21] | RGB images | Faster R–CNN |
Santos et al. [22] | RGB images | Mask R–CNN, YOLOv2 and YOLOv3 |
Ganesh et al. [23] | RGB and HSV images | Mask R–CNN |
Kirk et al. [24] | RGB video | RetinaNet (ResNet-18 feature extractor) |
Class | N° Training Object | N° Test Object |
---|---|---|
Albinism | 1978 | 577 |
Overripeness | 452 | 104 |
Peduncle | 348 | 73 |
Fungus-Rust | 215 | 50 |
CNN | Albinism | Fungus-Rust | Peduncle | Overripeness | ||||
---|---|---|---|---|---|---|---|---|
AP | DR | AP | DR | AP | DR | AP | DR | |
Inception V3 | 0.22 | 0.84 | 0.03 | 0.24 | 0.38 | 1.11 | 0.05 | 0.42 |
SqueezeNet | 0.52 | 1.51 | 0.33 | 2.08 | 0.37 | 1.32 | 0.19 | 2.10 |
ResNet50 | 0.48 | 0.93 | 0.17 | 0.52 | 0.47 | 1.12 | 0.18 | 0.88 |
ResNet101 | 0.46 | 1.07 | 0.29 | 0.70 | 0.40 | 1.03 | 0.22 | 0.99 |
VGG16 | 0.55 | 1.10 | 0.42 | 0.90 | 0.46 | 1 | 0.27 | 1.33 |
VGG19 | 0.55 | 1.07 | 0.35 | 1.02 | 0.45 | 0.90 | 0.25 | 1.15 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Naranjo-Torres, J.; Mora, M.; Fredes, C.; Valenzuela, A. Disease and Defect Detection System for Raspberries Based on Convolutional Neural Networks. Appl. Sci. 2021, 11, 11868. https://doi.org/10.3390/app112411868
Naranjo-Torres J, Mora M, Fredes C, Valenzuela A. Disease and Defect Detection System for Raspberries Based on Convolutional Neural Networks. Applied Sciences. 2021; 11(24):11868. https://doi.org/10.3390/app112411868
Chicago/Turabian StyleNaranjo-Torres, José, Marco Mora, Claudio Fredes, and Andres Valenzuela. 2021. "Disease and Defect Detection System for Raspberries Based on Convolutional Neural Networks" Applied Sciences 11, no. 24: 11868. https://doi.org/10.3390/app112411868
APA StyleNaranjo-Torres, J., Mora, M., Fredes, C., & Valenzuela, A. (2021). Disease and Defect Detection System for Raspberries Based on Convolutional Neural Networks. Applied Sciences, 11(24), 11868. https://doi.org/10.3390/app112411868