Abstract:In order to address the problem that impurities (soil and stones) need to be identified and rejected in the process of potato harvesting and warehousing, an improved potato impurity classification and identification method based on CenterNet was proposed. Firstly, a six-channel potato impurity recognition and impurity removal device was built to capture the source images. Secondly, in the feature extraction stage of the backbone network, the traditional convolutional downsampling was replaced with SPD-Conv downsampling to improve the recognition network’s ability to recognize the fine-grained recognition of potatoes and impurities at different scales, and solve the problem of missed recognition due to the existence of feature similarity between soil and stone blocks and some potatoes. Then, in order to suppress the background invalid features, the ACmix attention mechanism was added to enhance the effective features on the potato and impurity surfaces, and to solve the problem of mud adhering to the potato surface and the image background leading to misrecognition. Finally, a multilevel feature fusion structure was constructed to obtain richer texture feature information of the potato and impurity surfaces, and solve the problem of low recognition accuracy due to the single output feature of the model. The potato and impurity image dataset was constructed to test the improved potato and impurity classification and recognition method, and the test results showed that the number of model parameters of the improved algorithm was 1.013×107, the forward inference time was 27ms, and the average accuracy mean value was 97.5%. Compared with the original CenterNet model, the number of parameters was increased by 1.66×106, the forward inference time was increased by 2ms, but the mean average precision was increased by 8.2 percentage points. In the process of potato harvest and storage, the method of potato and impurity classification can meet the technical requirements of impurity identification and removal.