Abstract:Utilizing ozone water with strong oxidation property, which is healthy and pollution-free, spraying ozone water in accordance with different types of fruits and vegetables and diverse pesticide residues is an effective approach to achieve automatic, intelligent, green, and efficient digestion treatment of fruit and vegetable residues. The rapid and precise identification of fruit and vegetable types is the prerequisite for guiding the concentration of ozone water required for targeted spraying of factory and unmanned treatment equipment. A method based on the improved YOLO v7-tiny was proposed to accurately identify multiple varieties of fruits and vegetables during the process of agricultural residues digestion. Firstly, the asymptotic feature pyramid network (AFPN) was introduced in the Head part to substitute the original YOLO v7-tiny pyramid network. Secondly, the efficient multi-scale attention module (EMA) was added to the backbone to enhance the model’s capability of extracting effective feature information from fruit and vegetable images. Finally, the loss function of the original YOLO v7-tiny network was replaced by Wise-IoU. The experimental results indicated that the parameter number, computational capacity, and model size of the improved YOLO v7-tiny model reached 4.5×106, 1.28×1010, and 8.9MB respectively, which were decreased by 25.0%, 3.0%, and 27.6% compared with that of the original model. The average accuracy and average precision were 97.9% and 96.8%, which were 2.3 percentage points and 1.3 percentage points higher than those of the original model respectively. Compared with Faster-RCNN, SSD, YOLO v5s, and YOLO v8 algorithms, the average recognition accuracy of the improved model was increased by 37.1 percentage points, 38.0 percentage points, 32.5 percentage points, and 7.1 percentage points respectively. An agricultural residue digestion device based on the improved YOLO v7-tiny was constructed and the detection test was conducted. The detection rate and missing rate of the improved model were 97% and 3% respectively, and the detection effect was superior to other network models, which proved that the improved model had high practical application value. The research result would provide a reference for the deep learning identification method for the development of an integrated machine for industrial and unmanned fruit and vegetable residues digestion based on ozone water.