Safflower picking recognition in complex environments based on an improved YOLOv7

被引:5
|
作者
Wang X. [1 ,2 ]
Xu Y. [1 ,2 ]
Zhou J. [1 ,2 ]
Chen J. [1 ]
机构
[1] College of Mechanical Engineering, Xinjiang University, Urumqi
[2] Agriculture and Animal Husbandry Robot and Intelligent Equipment Engineering Research Center of Xinjiang Uygur Autonomous Region, Urumqi
关键词
attention mechanisms; complex environments; image processing; image recognition; multi-classification focal loss function; safflower picking; YOLOv7;
D O I
10.11975/j.issn.1002-6819.202211164
中图分类号
学科分类号
摘要
Safflower silk is one of the most important cash crops in the medical treatment and dye. The manual picking of safflower silk cannot fully meet the large-scale production at present. The mechanized harvesting can be expected to improve the safflower harvesting efficiency and labor cost-saving in the industrial planting. The complex environmental factors have made great difficulty to accurately identify and locate the safflower during mechanical picking, including the natural environment (such as the light and shelter), and the safflower characteristics (such as the small and dense target, as well as the different maturity). In this study, an improved YOLOv7 model was proposed to rapidly and accurately locate the safflower recognition in the complex environment. 1500 safflower images were established to divide into three types of samples, silk, bulb, and decay. The small target was found in the datasets with uneven sample size, especially the data of decay. The safflower sample dataset was produced to build the complex environment data for the real picking. Firstly, the Swin Transformer attention mechanism was added to the YOLOv7 network model, in order to improve the detection accuracy of the model for each classification sample, and the ability of the backbone network, especially to extract the small target features. Secondly, the Focal Loss function of the multi-classification was improved in the recognition rate of unbalanced samples under multi-class tasks, particularly for the target confidence loss and classification loss. The attenuation parameters γ was adjusted to balance the sample. The attenuation parameters were determined after experimental verification. Finally, the safflower detection network model was designed to meet the real-time and accurate detection requirements under the complex environment. The test results show that the best performance of the model was achieved in the attenuation parameters of 1.0, where the position of Swin Transformer was the layer 50. The average precision of the improved model reached 88.5% in each category sample, which was 7.0 percentage points higher than before. The average detection accuracy of the unbalanced category sample decay was 15.9 percentage points higher. Compared with the Faster RCNN model, the detection speed increased by three times, while the average accuracy increased by 9.7 percentage points; Compared with the Deformable DETR model, the detection speed increased by about 5 times, and the average accuracy increased by 16.5 percentage points. The improved model performed the best, in terms of the detection efficiency, detection speed, and model size. The improved model can also be expected to accurately detect the safflower, indicating the smaller parameters and the faster recognition speed suitable for the migration deployment on the safflower picking machinery. The finding can provide the technical support for the mechanized picking in real time. In the future research, the balance between species can be promoted to expand the number of samples from the data level in the harvesting machinery. © 2023 Chinese Society of Agricultural Engineering. All rights reserved.
引用
收藏
页码:169 / 176
页数:7
相关论文
共 28 条
  • [1] CAO Weibin, JIAO Haobo, LIU Jiaodi, Et al., Design of safflower filament picking device based on TRIZ theory, Transactions of the Chinese Society for Agricultural Machinery, 49, 8, pp. 76-82, (2018)
  • [2] CHEN Fei, GE Yun, ZHANG Lixin, Et al., Design and experiment of the strip-collected pre-positioning mechanism for safflower picking robots, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 37, 15, pp. 10-19, (2021)
  • [3] BERTETTO A, MANUELLO, RICCIU R, Et al., A mechanical saffron flower harvesting system, Meccanica, 49, 12, pp. 2785-2796, (2014)
  • [4] QIAN Ying, GE Yun, GU Jiawei, Et al., Air flow simulation and flow field optimization for positive pressure safflower picking device, Computer Simulation, 33, 1, pp. 264-267, (2016)
  • [5] CHEN Yuanbo, GE Yun, LIANG Dandan, Et al., Design and research of the roller type safflower harvest test bed, Journal of Agricultural Mechanization Research, 39, 10, pp. 38-41, (2017)
  • [6] CAO Weibin, LIAN Guodang, NIU Chi, Et al., Harvest performance test and parameter optimization of comb-type safflower-filaments picking head at same height, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 34, 22, pp. 36-44, (2018)
  • [7] ZHANG Zhenguo, LV Quangui, Design of critical compinents for safflower harvesting machinery by rotary shear, Journal of Chinese Agricultural Machanization, 40, 7, pp. 1-6, (2019)
  • [8] ZHANG Xiaowei, GE Yun, CHEN Fei, Et al., Design of three-finger pull-out safflower picking end effector, Machinery Design and Manufacture, 1, pp. 145-149, (2022)
  • [9] GUO H, LUO D, GAO G, Et al., Design and experiment of a safflower picking robot based on a parallel manipulator
  • [10] ZHANG H, GE Y, SUN C, Et al., Picking path planning method of dual rollers type safflower picking robot based on improved ant colony algorithm, Processes, 10, 6, (2022)