Automotive 21700 series lithium batteries are prone to surface defects during production and transportation, thus affecting their performance, so we propose a full-surface defect detection method for battery cases based on the synthesis of traditional image processing and deep learning to address this problem. First, the mechanism of surface defects on a battery case is analysed, and the types of surface defects are summarized. A suitable platform for image acquisition is designed for the severely reflective surface. Since there is no publicly available defect dataset for cylindrical battery cases, a defect dataset is established, and the dataset is augmented and expanded via the traditional method and the ACGAN model. For the defects on the top of the battery case, a traditional image processing algorithm is used to combine the roundness and the area of the area pixels to make a comprehensive judgement. For the defects on the bottom and side of the battery case, after comparing and analysing a variety of deep learning networks, the YOLOv7 model is selected to address the data characteristics of the large experimental inputs and the small targeted defects. To improve the accuracy of the model to meet the needs of real-time detection in industry, the CA attention mechanism, the DYHEAD dynamic detector head, and the slicing-assisted super inference (SAHI) method are used, with a final map accuracy reaching 98.1 %, which is 2.7 % higher than that of the initial model. Compared with mainstream target detection algorithms, the algorithm in this paper has good detection performance for cylindrical battery case defect detection and can be better applied to real-time detection in industry.
Read full abstract