Improved Cherry Detection Method at Night Based on YOLOv7: YOLOv7-Cherry

被引:0
作者
Gai, Rongli [1 ]
Kong, Xiangzhou [1 ]
Qin, Shan [2 ]
Wei, Kai [1 ]
机构
[1] College of Information Engineering, Dalian University, Liaoning, Dalian
[2] Dalian Modern Agricultural Production Development Service Center, Liaoning, Dalian
关键词
cherry recognition at night; image fusion; object detection; small target; YOLOv7;
D O I
10.3778/j.issn.1002-8331.2306-0344
中图分类号
学科分类号
摘要
To solve the problem that the cherry detection algorithm can not recognize the maturity of cherries in the night environment, an improved YOLOv7 algorithm: YOLOv7-Cherry is proposed. An image preprocessing method is used to combine the nighttime cherry image with the daytime cherry image in the same position to preserve the high spatial resolution information of the nighttime cherry image and enhance its spectral resolution. In YOLOv7-Cherry, the CBAM attention is firstly inserted into the backbone, and the attention mechanism is used to strengthen the representational ability of the neural network, emphasize important features, ignore secondary features, and enhance the extraction of cherry target features. Secondly, the recognition of small cherries are enhanced in images by the target detection algorithm, the small target detection layer is added. Then the initial detection box size of the original network is improved. Finally, to reduce the loss of cherry targets caused by the occlusion, the Soft-NMS method is used for the redundancy removal of the detection box. The experimental results demonstrate that YOLOv7-Cherry can significantly detect mature and immature cherries in night conditions. Compared with the YOLOv3, Faster- RCNN, YOLOv4, YOLOv5 and original YOLOv7 models, mAP of YOLOv7- Cherry model increased by 26.88, 25.05, 22.51, 17.11 and 7.66 percentage points, among which the precision, recall, mAP and F1 are 93.9%, 94.7%, 97.4% and 94.3%. © 2024 Journal of Computer Engineering and Applications Beijing Co., Ltd.; Science Press. All rights reserved.
引用
收藏
页码:315 / 323
页数:8
相关论文
共 29 条
[1]  
ZHAO Y H, HOU Z H, JI H P, Et al., Advances in research on physiological changes and fresh- keeping mechanism of cherries, Food Research and Development, 42, 23, pp. 197-203, (2021)
[2]  
REN S, HE K, GIRSHICK R, Et al., Faster R-CNN: towards real-time object detection with region proposal networks, Advances in Neural Information Processing Systems, (2015)
[3]  
REDMON J, DIVVALA S, GIRSHICK R, Et al., You only look once: unified, real- time object detection, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 779-788, (2016)
[4]  
KAMILARIS A, PRENAFETA-BOLDU F X., Deep learning in agriculture: a survey, Computers and Electronics in Agriculture, 147, pp. 70-90, (2018)
[5]  
GAI R L, CHEN N, YUAN H., A detection algorithm for cherry fruits based on the improved YOLO-v4 model, Neural Computing and Applications, 35, pp. 13895-13906, (2021)
[6]  
ZHENG T, JIANG M, LI Y, Et al., Research on tomato detection in natural environment based on RC-YOLOv4, Computers and Electronics in Agriculture, 198, (2022)
[7]  
ZHAO Y L, SHAN Y G, YUAN J., Wearing mask pedestrian tracking based on improved YOLOv7 and DeepSORT, Computer Engineering and Applications, 59, 6, pp. 221-230, (2023)
[8]  
WANG W J, GONG L, WANG T, Et al., Tomato fruit recognition based on multi-source fusion image segmentation algorithm in open environment, Transactions of the Chinese Society for Agricultural Machinery, 52, 9, pp. 156-164, (2021)
[9]  
ZHOU Z M, WU Z J, WANG J, Et al., Panchromatic and multispectral image fusion using IHS and variational models, Proceedings of the 2012 5th International Congress on Image and Signal Processing (CISP 2012), pp. 1077-1080, (2012)
[10]  
GHAHREMANI M, GHASSEMIAN H., Nonlinear IHS: a promising method for pan-sharpening, IEEE Geoscience and Remote Sensing Letters, 13, 11, pp. 1606-1610, (2016)