Cargando…
Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model
As a raw material for beer, barley seeds play a critical role in producing beers with various flavors. Unexcepted mixed varieties of barley seeds make malt quality uncontrollable and can even destroy beer flavors. To ensure the quality and flavor of malts and beers, beer brewers will strictly check...
Autores principales: | , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9658342/ https://www.ncbi.nlm.nih.gov/pubmed/36360144 http://dx.doi.org/10.3390/foods11213531 |
_version_ | 1784829927513653248 |
---|---|
author | Shi, Yaying Li, Jiayi Yu, Zeyun Li, Yin Hu, Yangpingqing Wu, Lushen |
author_facet | Shi, Yaying Li, Jiayi Yu, Zeyun Li, Yin Hu, Yangpingqing Wu, Lushen |
author_sort | Shi, Yaying |
collection | PubMed |
description | As a raw material for beer, barley seeds play a critical role in producing beers with various flavors. Unexcepted mixed varieties of barley seeds make malt quality uncontrollable and can even destroy beer flavors. To ensure the quality and flavor of malts and beers, beer brewers will strictly check the appropriate varieties of barley seeds during the malting process. There are wide varieties of barley seeds with small sizes and similar features. Professionals can visually distinguish these varieties, which can be tedious and time-consuming and have high misjudgment rates. However, biological testing requires professional equipment, reagents, and laboratories, which are expensive. This study aims to build an automatic artificial intelligence detection method to achieve high performance in multi-barley seed datasets. There are nine varieties of barley seeds (CDC Copeland, AC Metcalfe, Hockett, Scarlett, Expedition, AAC Synergy, Celebration, Legacy, and Tradition). We captured images of these original barley seeds using an iPhone 11 Pro. This study used two mixed datasets, including a single-barley seed dataset and a multi-barley seed dataset, to improve the detection accuracy of multi-barley seeds. The multi-barley seed dataset had random amounts and varieties of barley seeds in each image. The single-barley seed dataset had one barley seed in each image. Data augmentation can reduce overfitting and maximize model performance and accuracy. Multi-variety barley seed recognition deploys an efficient data augmentation method to effectively expand the barley dataset. After adjusting the hyperparameters of the networks and analyzing and augmenting the datasets, the YOLOv5 series network was the most effective in training the two barley seed datasets and achieved the highest performance. The YOLOv5x6 network achieved the second highest performance. The mAP (mean Average Precision) of the trained YOLOv5x6 was 97.5%; precision was 98.4%; recall was 98.1%; the average speed of image detection reached 0.024 s. YOLOv5x6 only trained the multi-barley seed dataset; the trained performance was greater than that of the YOLOv5 series. The two datasets had 39.5% higher precision, 27.1% higher recall, and 40.1% higher mAP than when just using the original multi-barley seed dataset. The multi-barley seed detection results showed high performance, robustness, and speed. Therefore, malting and brewing industries can assess the original barley seed quality with the assistance of fast, intelligent, and detected multi-barley seed images. |
format | Online Article Text |
id | pubmed-9658342 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-96583422022-11-15 Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model Shi, Yaying Li, Jiayi Yu, Zeyun Li, Yin Hu, Yangpingqing Wu, Lushen Foods Article As a raw material for beer, barley seeds play a critical role in producing beers with various flavors. Unexcepted mixed varieties of barley seeds make malt quality uncontrollable and can even destroy beer flavors. To ensure the quality and flavor of malts and beers, beer brewers will strictly check the appropriate varieties of barley seeds during the malting process. There are wide varieties of barley seeds with small sizes and similar features. Professionals can visually distinguish these varieties, which can be tedious and time-consuming and have high misjudgment rates. However, biological testing requires professional equipment, reagents, and laboratories, which are expensive. This study aims to build an automatic artificial intelligence detection method to achieve high performance in multi-barley seed datasets. There are nine varieties of barley seeds (CDC Copeland, AC Metcalfe, Hockett, Scarlett, Expedition, AAC Synergy, Celebration, Legacy, and Tradition). We captured images of these original barley seeds using an iPhone 11 Pro. This study used two mixed datasets, including a single-barley seed dataset and a multi-barley seed dataset, to improve the detection accuracy of multi-barley seeds. The multi-barley seed dataset had random amounts and varieties of barley seeds in each image. The single-barley seed dataset had one barley seed in each image. Data augmentation can reduce overfitting and maximize model performance and accuracy. Multi-variety barley seed recognition deploys an efficient data augmentation method to effectively expand the barley dataset. After adjusting the hyperparameters of the networks and analyzing and augmenting the datasets, the YOLOv5 series network was the most effective in training the two barley seed datasets and achieved the highest performance. The YOLOv5x6 network achieved the second highest performance. The mAP (mean Average Precision) of the trained YOLOv5x6 was 97.5%; precision was 98.4%; recall was 98.1%; the average speed of image detection reached 0.024 s. YOLOv5x6 only trained the multi-barley seed dataset; the trained performance was greater than that of the YOLOv5 series. The two datasets had 39.5% higher precision, 27.1% higher recall, and 40.1% higher mAP than when just using the original multi-barley seed dataset. The multi-barley seed detection results showed high performance, robustness, and speed. Therefore, malting and brewing industries can assess the original barley seed quality with the assistance of fast, intelligent, and detected multi-barley seed images. MDPI 2022-11-06 /pmc/articles/PMC9658342/ /pubmed/36360144 http://dx.doi.org/10.3390/foods11213531 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/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/). |
spellingShingle | Article Shi, Yaying Li, Jiayi Yu, Zeyun Li, Yin Hu, Yangpingqing Wu, Lushen Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title | Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title_full | Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title_fullStr | Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title_full_unstemmed | Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title_short | Multi-Barley Seed Detection Using iPhone Images and YOLOv5 Model |
title_sort | multi-barley seed detection using iphone images and yolov5 model |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9658342/ https://www.ncbi.nlm.nih.gov/pubmed/36360144 http://dx.doi.org/10.3390/foods11213531 |
work_keys_str_mv | AT shiyaying multibarleyseeddetectionusingiphoneimagesandyolov5model AT lijiayi multibarleyseeddetectionusingiphoneimagesandyolov5model AT yuzeyun multibarleyseeddetectionusingiphoneimagesandyolov5model AT liyin multibarleyseeddetectionusingiphoneimagesandyolov5model AT huyangpingqing multibarleyseeddetectionusingiphoneimagesandyolov5model AT wulushen multibarleyseeddetectionusingiphoneimagesandyolov5model |