Model for empty bobbin recognition based on improved residual network
Objective In the automatic production line of circular weft knitting robot,the use of conventional machine vision to identify empty yarn cylinders has low accuracy and a large number of model parameters in the process of automatic empty cylinder changing of the bobbin changing robot,due to the complex background of the textile workshop and the many types of yarn cylinders.In order to ensure the accurate identification of empty bobbin by bobbin changing robots,it is necessary to design an empty bobbin identification model with high accuracy and light weight.Method Based on the ResNet-18 model,the convolution kernel was light weighted,the classical residual module was improved,the SENet attention mechanism was increased,and the detection accuracy of empty bobbin was improved.By simulating various interference factors at the production site,the training samples were increased,aiming to improve the robustness of the model and to make it more suitable for the actual production environment.The model before and after improvement was compared with other detection models.Results The original dataset was adopted to study the influence of convolutional kernel lightweight design,attention mechanism and improved residual module on the model.Ablation experiments showed that the application of small convolution helped reduce the model parameters to a certain extent,the addition of attention mechanism improved the recognition accuracy by 3.86%,and the addition of the optimized residual structure not only improved the recognition accuracy by 1.22%,but also reduced the amount of model parameters by 650%.Under the same experimental conditions,the detection results were compared among the improved model,ResNe-18,VGG-16,and AlexNet network model.The accuracy of the improved model in the verification set is 99.6%,which is 4.46%higher than that of the ResNet-18 model,and 7.05%-9.41%higher than that of VGG-16 and AlexNet.Under the experimental conditions of the same training parameters and network structure,the training on the data-enhanced dataset was verified.Because the data enhancement could improve the diversification of the spindle data and effectively avoid the phenomenon of overfitting,the accuracy of the original model and the improved model were improved.The accuracy of the improved model was 0.43%-0.72%higher than that of the ResNet-18 model,and the accuracy of the improved model was less affected by the dataset,indicating better robustness of the model against interference from the surrounding conditins.The convergence speed of the improved model was higher than that of other recognition models,the ascent speed was smoother,and the training accuracy was the highest.Tthe reliability and effectiveness of the improved model for identifying empty bobbins are illustrated.The improved model was found far superior to the original model in extracting shallow and deep network features,and it could effectively reduce the loss of yarn feature information during convolution kernel and effectively improve the ability to identify yarn.The number of parameters of the improved model was reduced to about 1/10 of the number of parameters of the original model hence reducing the storage space.The work provides an idea for the application of the empty yarn cylinder identification system based on the residual network model to the edge deployment in textile workshops.Conclusion On the basis of ResNet-18 network,the network is modified,combined with the lightweight of convolution kernel,the SENet attention mechanism and the improved residual module.The new model not only improves the result accuracy but also reduces the number of model parameters in identifying empty bobbins in complex environments.Compared with other recognition models,the improved model has better robustness against interference.The improved model has a small number of parameters,which provides an idea for deploying empty bobbin identification models for embedded devices.