Minimal Defect Detection on End Face of Lithium Battery Shells

Yufeng Xing, Qi Liu, Yuanxiu Xing, Z Liu, Wenbo WangSustainability 2024 · DOI

TL;DR

This paper introduces YOLO-MDD, a novel YOLO-based algorithm designed to detect tiny defects on lithium battery shells, a critical step for ensuring battery safety and longevity. By incorporating deformable convolutions, an attention module, a multi-scale detection head, and a specialized hybrid loss function, YOLO-MDD significantly improves the detection of small defects like rust spots, achieving an overall mAP of 80%.

What Problem Does This Paper Address?

The increasing demand for lithium batteries in electric vehicles and renewable energy storage highlights the critical need for high-quality battery manufacturing. Surface defects on battery shells, such as scratches, bumps, troughs, and rust spots, can compromise battery integrity, leading to electrolyte leakage, reduced lifespan, and even safety hazards like short-circuiting. Existing defect detection methods often struggle with accurately identifying minimal defects, particularly small rust spots, leading to a high missed detection rate. This gap poses a significant challenge for ensuring the safety and reliability of lithium batteries, which is crucial for achieving sustainability goals.

Methods

The core of this work is the YOLO-MDD algorithm, a modified YOLO architecture. Key innovations include:

  • Enhanced Feature Extraction:
    • Deformable Convolution (DConv2): Instead of fixed kernel shapes, deformable convolutions adapt their receptive field to the shape of the defect, allowing for better capture of irregular defect features.
  • Lightweight Convolutional Block Attention Module (CBAM): This module helps the network focus on important features by adaptively recalibrating channel and spatial importance, suppressing irrelevant information.
  • Four-Scale Detection Head: To address the wide variation in defect sizes, the detection head is designed with four scales, enabling it to effectively detect both very small and larger defects.
  • Hybrid Loss Function: A novel loss function is proposed, combining:
  • Normalized Wasserstein Distance (NWD) for Localization Loss: This replaces traditional IoU-based loss, which is less sensitive to small object inaccuracies. NWD models bounding boxes as Gaussian distributions, providing a more robust measure of difference, especially for small defects.
  • Classification Loss and Confidence Loss: Standard components for object detection.

Datasets

The authors constructed a new dataset specifically for this task due to the lack of publicly available datasets for lithium battery shell defects.

  • Newly Introduced Dataset: This dataset consists of 891 end-face defect images of lithium battery shells, annotated with four types of defects: scratches, bumps, troughs, and rust spots.
  • Data Split: The dataset was split into training (1890 images), validation (540 images), and testing (243 images) sets in a 7:2:1 ratio.
  • Instance Count: After augmentation, the dataset contained 3532 defect instances in the training set, 1014 in the validation set, and 512 in the test set.

Key Insights and Ideas

  • The Challenge of Minimal Defects: The paper strongly emphasizes that detecting small, subtle defects like rust spots is significantly harder than detecting larger ones, and this is a critical bottleneck for battery safety.
  • Adaptability is Key: The success of deformable convolutions in adapting to irregular defect shapes highlights the importance of flexible feature extraction for complex industrial inspection tasks.
  • NWD for Small Object Robustness: The adoption of Normalized Wasserstein Distance for bounding box regression is a clever way to overcome the limitations of IoU for small object detection, directly addressing a known weakness in many object detection pipelines.
  • Multi-Scale Detection is Crucial: The four-scale detection head is a practical solution to the inherent variability in defect sizes on battery shells, ensuring that no defect is too small or too large to be missed.

Key Results

  • Overall Performance: YOLO-MDD achieved a mean average precision (mAP) of 80% on the test dataset.
  • Minimal Defect Performance: For rust spots (minimal defects), YOLO-MDD achieved an mAP of 74.1% and a recall of 71.5%, significantly outperforming other compared methods.
  • Comparison with State-of-the-Art: YOLO-MDD outperformed several mainstream object detection algorithms, including SSD, Faster RCNN, YOLOv3, YOLOv4, YOLOv5, YOLOX, and YOLOv7, particularly in detecting rust spots. For instance, it exceeded improved YOLOX by 14.5% in rust spot mAP.
  • Ablation Studies:
    • Deformable convolution improved the rust spot mAP from 0.603 to 0.741.
  • CBAM improved the rust spot mAP from 0.728 to 0.741.
  • The four-scale detection head increased the recall of small defect targets by 13.4% and mAP by 5.2% compared to a three-scale head.
  • The NWD function significantly improved the detection of minimal rust spots.

Limitations and Future Work

  • Missed and False Detections: While YOLO-MDD shows significant improvement, the authors acknowledge that missed and false detection rates still need further reduction for industrial applications.
  • Industrial Application: The current work is based on laboratory-collected data. The authors plan to further reduce detection errors and apply the model to actual lithium battery shell production lines in future work.

Summary updated

Abstract

Lithium batteries represent a pivotal technology in the advancement of renewable energy, and their enhanced performance and safety are vital to the attainment of sustainable development goals. To solve the issue of the high missed detection rate of minimal defects on end face of lithium battery shells, a novel YOLO-based Minimal Defect Detection algorithm, named YOLO-MDD, is proposed. Firstly, aimed at the problem of insufficient data, a dataset of defects on the end face of lithium battery shells is constructed and annotated. Secondly, a YOLO-MDD network which includes a feature extraction module and a four-scale detection head for detecting defects of various scales is improved. Here, deformable convolution and an attention module are ingeniously embedded into the backbone of YOLO to capture more detailed and accurate information on object defects, and the four-scale head is used to handle the significant differences in the size and shape of defects on lithium battery shells. Finally, a hybrid loss including localization loss with normalized Wasserstein distance (NWD), classification loss, and confidence loss is designed to optimize our model to further enhance its sensitivity to minimal defects. The experimental results show that the proposed YOLO-MDD has a mean average precision of 80% for the defect detection of the lithium battery shells, especially with a minimal defect rust spots mean average precision of 74.1% and a recall rate of 71.5%, which is superior compared with other mainstream detection algorithms and provides the technical support necessary to achieve the goals of energy and environmental sustainability.
BibTeX
@inproceedings{xing2024minimal,
  author = {Yufeng Xing and Qi Liu and Yuanxiu Xing and Z Liu and Wenbo Wang and Zhuanwei Liu and Wenbo Wang},
  title = {{Minimal Defect Detection on End Face of Lithium Battery Shells}},
  booktitle = {Sustainability},
  year = {2024},
  doi = {10.3390/su162310502},
}
Figure