With the rapid development of the new energy vehicle industry, the quality control of battery pack glue application processes has become a critical factor in ensuring the sealing, insulation, and structural stability of the battery. However, existing detection methods face numerous challenges in complex industrial environments, such as metal reflections, interference from heating film grids, inconsistent orientations of glue strips, and the difficulty of accurately segmenting elongated targets, leading to insufficient precision and robustness in glue dimension measurement and glue break detection. To address these challenges, this paper proposes a battery pack glue application detection method that integrates the YOLOv11 deep learning model with pixel-level geometric analysis. The method first uses YOLOv11 to precisely extract the glue region and identify and block the heating film interference area. Glue strips orientation correction and image normalization are performed through adaptive binarization and Hough transformation. Next, high-precision pixel-level measurement of glue strip width and length is achieved by combining connected component analysis and multi-line statistical strategies. Finally, glue break and wire drawing defects are reliably detected based on image slicing and pixel ratio analysis. Experimental results show that the average measurement errors in glue strip width and length are only 1.5% and 2.3%, respectively, with a 100% accuracy rate in glue break detection, significantly outperforming traditional vision methods and mainstream instance segmentation models. Ablation experiments further validate the effectiveness and synergy of the modules. This study provides a high-precision and robust automated detection solution for glue application processes in complex industrial scenarios, with significant engineering application value.
As an important part of the ship’s power system, the bearing operation status of the propulsion motor is directly related to the reliability and safety of the whole system. However, in the field of marine propulsion motor bearing fault diagnosis, the data imbalance problem seriously affects the performance of the fault detection model. Due to the scarcity of fault data relative to normal operation data, traditional diagnostic methods are ineffective in dealing with unbalanced data. To solve this problem, a dynamic class weighting solution is proposed. The dynamic class weighting method introduces the weight coefficient λ on the basis of the traditional class weighting, which can adjust the class weight value in real time according to the training situation, and comprehensively considers the data distribution and the training situation to ensure that the model can learn better even in the case of insufficient data. Testing on the imbalanced distribution of bearing natural-failure data shows that the proposed method achieves a 5.25% improvement in diagnostic accuracy compared to direct training. Compared with traditional class-weighted approaches, diagnostic accuracy is enhanced by 3.56%, effectively mitigating the impact of scarce and unevenly distributed failure data on model training.