1. Introduction
The rapid expansion of the new energy vehicle industry has made the safety of power battery systems a critical bottleneck [
1,
2]. Thermal runaway (TR) remains the most severe failure mode for lithium-ion batteries [
3]. It manifests as an uncontrollable chain reaction where internal electrochemical and thermal energy is released within an extremely short timeframe, often resulting in catastrophic fires or explosions [
4].
To construct efficient safety warning systems, researchers must understand the physical mechanisms governing the TR propagation [
5]. During the violent eruption phase, a high-pressure mixture of gas and liquid entrains a large volume of high-temperature solid particles to form a high-speed multiphase jet [
6,
7], as illustrated in
Figure 1. These solid particles act as primary vectors for hazard propagation. According to the kinetic energy theorem, the destructive potential of these particles scales with the square of their velocity, allowing them to penetrate adjacent cell safety valves or damage module structures [
8,
9]. Furthermore, these high-enthalpy particles act as mobile ignition sources that can ignite combustible electrolyte vapors and trigger a cascading failure across the entire battery pack. Prior research has explored particle velocimetry in extreme environments, ranging from high-enthalpy aerospace flows requiring spectral filtering [
10] to battery venting scenarios utilizing traditional PIV techniques [
11]. However, the unique combination of intense flame-induced background interference and extreme particle density in thermal runaway jets necessitates the development of specialized small-object detection algorithms to ensure reliable measurements in such harsh conditions. Consequently, precise and real-time velocity measurement of these micro-particles provides the essential physical data needed to assess impact damage, reveal fire spread patterns, and optimize module safety spacing [
12].
Measuring particle velocity within TR jets presents significant engineering challenges due to the extreme temperatures, transient dynamics, and multiphase turbulence involved [
13]. Traditional contact measurement methods such as Pitot tubes or hot-wire anemometers are inapplicable because they degrade rapidly in high heat or disturb the flow field [
14]. As a result, non-contact optical measurement techniques have become the standard research approach [
15]. High-speed imaging has enabled exploratory studies, including visual records of jet morphology evolution and velocity estimations based on manual tracking or mass loss calculations [
16]. While numerical simulations like Fluent and STAR-CCM+ offer full-field velocity predictions, their accuracy depends heavily on boundary condition assumptions and requires experimental validation [
17,
18]. Overall, existing experimental studies have primarily focused on qualitative observations or gas-phase velocity estimations. High-precision velocity data for the hazardous solid-phase particles remain scarce. This deficit exists because these particles are microscopic, often occupying only a few pixels, and are densely distributed. They are also frequently obscured by intense glare and smoke, which prevents traditional image processing algorithms like threshold segmentation from accurately extracting their trajectories [
19].
Establishing non-intrusive diagnostics is fundamental for the characterization of complex failure mechanisms, as demonstrated by research focusing on the thermal aspects of battery safety [
20]. Data-driven frameworks, such as the BatLiNet model, further demonstrate the capacity of deep learning to decode intricate battery behaviors and degradation patterns without the need for physical disassembly [
21]. Building upon this logic, deep learning has recently provided new solutions for detecting small objects in complex environments [
22,
23]. Compared to two-stage detection algorithms such as the R-CNN series, single-stage algorithms represented by YOLO and SSD offer superior inference speeds that are better detailed for processing high-throughput data from transient events [
24,
25]. Recent progress in the battery sector has led to specialized architectures like SD-YOLO, which utilizes similarity-aware activation and dynamic convolutions for small-scale surface defect detection [
26]. Nevertheless, these efforts primarily address static manufacturing faults, and the direct application of generic object detection models to battery TR scenarios reveals distinct limitations. Particles in these jets appear as weak targets where edge and texture features are prone to loss during the down-sampling process of convolutional neural networks [
27]. Background interference from violently fluctuating flame illumination further increases the risk of false positives and missed detections [
28]. Although recent studies have attempted to optimize small object detection through residual units, attention mechanisms, or multi-scale feature fusion, the feature extraction and noise suppression capabilities of current models remain insufficient for the high-density and extremely small-scale characteristics of TR jets [
29].
To address these challenges, a specialized target detection and tracking framework for battery TR multiphase flows, designated as BE (Battery Eruption)-YOLOv8s, is proposed in this study. The primary technical contributions are as follows:
(1). Construction of a high-sensitivity detector: The YOLOv8s architecture is refined specifically for feature-sparse particle targets. A depth-wise separable convolution with fused attention, named DAConv, is integrated into the backbone to suppress redundant background features. The original C2f structure is replaced by an SA-C3Ghost module enhanced with atrous convolution, which expands the receptive field without increasing the computational burden. Furthermore, an additional high-resolution detection layer is incorporated to significantly enhance the capability of capturing microscopic particles.
(2). Design of an adaptive matching algorithm: A structural similarity index direction matching algorithm, termed SSIDM, is developed to resolve the difficulty of associating targets across adjacent frames in high-density flows. This algorithm constrains the search area by utilizing particle motion direction consistency and combines it with structural similarity metrics to achieve fast and precise trajectory association.
(3). Revelation of velocity evolution laws: Utilizing this framework, full-field velocity measurements of the TR process in NCM lithium batteries are conducted. The experimental results quantify the non-linear evolution of particle velocity over time, identifying a distinct three-stage pattern characterized by initial low speed, violent acceleration, and subsequent decay. These findings provide direct data support for optimizing battery safety valves and verifying the strength of thermal protection structures.
4. Results and Discussion
4.1. TR Characteristics
Based on the established protocol, the temporal evolution of temperature and voltage for the three test groups is presented in
Figure 10. The temporal origin is synchronized with the activation of the external heating power. During the initial heating phase, the battery exhibited no signs of violent internal reaction. The voltage remained stable, indicating that the structural integrity and electrochemical state of the cell were preserved under the external thermal load.
Upon the onset of TR, internal chain reactions were instantaneously activated, resulting in a precipitous temperature rise. Specifically, the front surface temperature (Tf) surged to its peak within 3 s, whereas the temperature rise rates for the back (Tb) and side (Ts) surfaces were comparatively moderate. Concurrently, severe internal short circuits and the rapid decomposition of active materials induced immediate cell failure, characterized by a rapid voltage collapse to 0 V.
A comparative analysis of the three datasets reveals minimal deviation in both the TR triggering time and the peak values of Tf and Tb. Such consistency underscores the high repeatability and reliability of the experimental methodology. However, notable discrepancies were observed in the side temperature Ts profiles. This variation is attributed to the absence of mechanical clamping on the side surfaces; post-TR swelling of the cell casing led to inconsistent contact pressure between the thermocouples and the surface across different tests, thereby introducing systematic measurement errors.
Figure 11 depicts the sequential images captured by the high-speed camera. The bright trajectories observed correspond to solid particles naturally ejected during the TR process. These particles became self-luminous due to extreme temperatures, eliminating the need for external illumination or artificial tracers. This self-luminescence ensures that the measurements faithfully reflect the dynamics of the battery material itself without artifacts from added substances. The ejected solid phase consists primarily of positive electrode particles and fragments from the aluminum and copper current collectors. Due to their high drag and low mass, the foil fragments follow the high-speed gas flow closely and serve as effective tracers for the aerodynamic field. In contrast, the denser electrode particles maintain significant momentum and represent the ballistic component of the jet core.
Defining the detection of the first particle as the zero-moment for the jetting phase, distinct stages are observable. In
Figure 11a,b, a sparse, mist-like jet appears at the safety valve, primarily composed of electrolyte vapor and trace solid particles. This jet exhibits low luminosity and a dispersion cone angle of approximately 20°~30°. Based on particle displacement, the initial velocity is estimated at 15~30 m/s. This phase corresponds to the vaporization of electrolyte following separator meltdown, prior to the main exothermic reaction. From
Figure 11c–h, the flow transitions into a high-density stream of bright white particle trajectories. The jet expands radially with a cone angle increasing to 60°~80°, indicating a significant boost in particle kinetic energy. Notably, in
Figure 11d,e,h, large areas of overexposure (brightness saturation > 240, covering over 30% of the frame) are observed. This phenomenon is caused by the ignition of electrolyte vapor and combustible gases, which poses a challenge for particle identification algorithms.
4.2. Dataset Construction and Implementation Details
Based on the high-speed acquisition capability of the system, approximately 39,000 image samples were captured during each 13 s experiment. Across the three trials, a total of 117,000 TR images were accumulated. A stratified random sampling strategy was employed to select 3000 representative images for manual particle trajectory annotation. The resulting dataset was partitioned into training, validation, and testing sets in a ratio of 7:2:1 (2100, 600, and 300 images, respectively).
The BE-YOLOv8s model was trained with an input resolution of 1024 × 1024 pixels. The computational environment consisted of an NVIDIA RTX 4070 (24 GB) GPU, utilizing PyTorch 2.1.0, CUDA 12.1, and Python 3.9.
Table 1 details the specific hyperparameters and training configurations.
4.3. Ablation Study
To validate the performance gains attributed to the DAConv module, the SA-C3Ghost module, and the supplementary small object detection layer, an ablation study was conducted on the self-constructed TR dataset. The results are summarized in
Table 2. In the table, the check mark (√) denotes that the method is used, whereas the cross mark (×) indicates that the method is not used.
DAConv Integration (Exp. 2): Incorporating the DAConv structure maintained the parameter count at the baseline level while yielding marginal improvements in precision, recall, and mAP.
SA-C3Ghost Module (Exp. 3): The introduction of the SA-C3Ghost module significantly enhanced all detection metrics, confirming its efficacy in extracting features from small targets.
Small Object Detection Layer (Exp. 4): The addition of the dedicated high-resolution detection layer provided substantial gains, underscoring its ability to capture fine details in the particle imagery.
Comprehensive Model (Exp. 7): The final BE-YOLOv8s model demonstrated superior performance compared to the baseline YOLOv8s (Exp. 1). Specifically, precision, recall, and mAP increased by 2.1%, 2.0%, and 3.4%, respectively. Notably, these gains were achieved alongside a 49.9% reduction in parameter count and a 31.4% increase in inference frame rate. These findings verify that the proposed architectural optimizations significantly enhance detection performance for microscopic particles in multiphase jets while maintaining high computational efficiency. The reduction in trainable parameters correlates with a decrease in computational complexity as the architectural optimizations minimize the total floating-point operations. This lower arithmetic workload directly enables the observed increase in inference speed while maintaining structural efficiency.
4.4. Comparative Analysis
To further assess the efficacy of the BE-YOLOv8s model in detecting small particulate targets within multiphase jets, a comparative analysis was performed against mainstream object detection algorithms, including Faster R-CNN, SSD, and various YOLO iterations.
Table 3 presents the experimental outcomes.
The data indicate that the proposed BE-YOLOv8s algorithm significantly outperforms SSD, Faster R-CNN, and YOLOv5s. In terms of detection accuracy, BE-YOLOv8s achieved the highest mAP of 92.7%, surpassing Faster R-CNN by 2.6%. It is noteworthy that this accuracy was attained with a model size more than 20 times smaller than that of Faster R-CNN. Furthermore, the proposed method exhibited a distinct advantage over other algorithms, exceeding their performance metrics by approximately 2%. These results demonstrate that the BE-YOLOv8s algorithm successfully balances high detection precision with a minimized parameter footprint.
4.5. Visualization of Detection Results
Due to the presence of motion components both parallel and perpendicular to the lens axis, continuous precise focusing was challenging, and some particles exhibited glare caused by defocusing effects. Such particles displayed severe fluctuations in brightness, area, and structural features across adjacent frames, which compromised velocity calculation accuracy. Consequently, the annotation process was restricted to particle trajectories with clear structures and uniform brightness distribution.
Figure 12 illustrates the detection results of the BE-YOLOv8s algorithm. The red bounding boxes indicate the identified particle targets. The visualization demonstrates the model’s robustness in capturing dense, high-velocity particles against a low-contrast background, effectively validating the precision of the detection module. The predicted bounding boxes accurately encompass the particle trajectories that meet the screening criteria, thereby providing high-quality input data for the subsequent matching and velocity calculation stages.
4.6. Velocity Measurement Results
4.6.1. Average and Maximum Velocity Evolution
By integrating the BE-YOLOv8s detection model with the SSIDM matching algorithm and PTV method, full-process velocimetry was conducted on the images collected from three NCM battery samples. To provide a comprehensive characterization of the jet dynamics, both the spatial average velocity and the maximum instantaneous velocity of particles within the field of view were computed. Data were aggregated over intervals of 1000 frames (approximately 0.33 s) to generate the temporal profiles shown in
Figure 13, where the left and right y-axes denote the average and maximum velocities, respectively, with the associated error bars representing the standard deviation to encompass uncertainties arising from experimental variability and particle localization.
Despite the significant difference in magnitude—with maximum velocities consistently exceeding the average by a factor of 2 to 3—the statistical analysis of data from all three trials (presented as mean ± standard deviation) reveal a consistent three-stage evolutionary pattern across both metrics:
Initial low-velocity stage (0–3 s): During this incubation phase, the average velocity remained below 30 m/s, while the maximum velocity sporadically reached 60 m/s. The relatively larger error bands observed in this interval reflect the stochastic nature of the initial venting events. This stage corresponds to limited reaction intensity, primarily involving local short circuits and separator melting. The resulting gas generation was insufficient to provide significant driving energy, and detection was limited by low particle count and poor contrast due to electrolyte vapor.
Acceleration stage (3–6.6 s): Following the onset of violent TR, both metrics exhibited a precipitous rise with high repeatability across trials. The average velocity accelerated continuously, peaking at approximately 41 m/s at 6.6 s. Concurrently, the maximum instantaneous velocity surged dramatically, reaching peaks exceeding 120 m/s. The consistent trends within the error margins indicate a robust aerodynamic response during the explosion. This indicates that while the bulk flow accelerated, certain particles in the core jet region gained exceptionally high kinetic energy driven by the intense, high-pressure gas bursts released during the rapid decomposition of cathode materials.
Decay stage (6.6–13 s): Both velocity curves show a monotonic decline characterized by stable standard deviations. The average velocity fell to roughly 20 m/s by 13 s, with the maximum velocity showing a corresponding decrease. This decline resulted from the exhaustion of reactive materials and a consequent drop in the gas generation rate, leading to a substantial attenuation of the aerodynamic driving force.
4.6.2. Single Particle Tracking Analysis
To investigate the velocity attenuation characteristics of individual particles, the jet field was divided into three angular sectors relative to the safety valve center (
Figure 14a): a green edge diffusion zone (50°~80°), a red central jet zone (80°~100°), and a blue edge diffusion zone (100°~130°). Two typical particles were tracked within each zone over 20 consecutive frames (1/150 s). The velocity profiles are plotted in
Figure 14b.
In the blue and green edge zones, particles A, B, C, and D were identified early due to the sparse distribution and clear imaging. Particle C exhibited a rapid decay from an initial 79.20 m/s to 28.22 m/s over 15 frames, while Particle D decayed more gradually. This supports the aerodynamic principle that drag force scales with the square of velocity, causing faster decay for higher-speed particles. In the red central zone, particle identification was delayed due to high density and background brightness saturation. Particle E decayed from 25.67 m/s to 8.01 m/s. Notably, Particle F showed an initial deceleration followed by a rebound from 36.37 m/s to 39.16 m/s. This velocity recovery is likely associated with the complex flow dynamics in the core jet region, where aerodynamic drag from subsequent high-speed gas bursts or inter-particle collisions may impart additional momentum.
It is important to acknowledge that two-dimensional imaging projects the three-dimensional scene onto a plane, compressing velocity components along the optical axis into a single pixel. Consequently, detected velocities are lower than the actual spatial velocities, particularly when the radial motion component dominates. This projection effect likely explains why the initial detected speed of Particle C was lower than that of Particle D. Furthermore, the intense “jet fire” at the valve mouth caused local overexposure, preventing the early detection of particles E and F until they rose to a height where dispersion reduced the brightness. To address the loss of radial velocity information, future research will employ an orthogonal dual-camera setup to reconstruct the complete three-dimensional velocity vector field.
4.7. Comparison of Tracking Performance with SORT Baseline
To further validate the trajectory continuity advantage of the proposed tracking framework BE-YOLOv8s + SSIDM in dense particle flows, a comparative experiment was conducted against the classic SORT (Simple Online and Realtime Tracking) algorithm. Two representative stages of the thermal runaway jet were selected from the high-speed sequences: the initial ejection phase, consisting of 50 consecutive frames with sparse distribution (49 annotated trajectories), and the violent ejection phase, consisting of 50 consecutive frames with dense distribution (283 annotated trajectories). For each stage, every particle was labeled and numbered frame-by-frame to establish the ground-truth trajectories.
The SORT baseline was configured with detections from the standard YOLOv8s model, followed by Kalman filtering (constant velocity model) and Hungarian association based on IoU distance. In contrast, the proposed method employed the BE-YOLOv8s detector and the SSIDM matching algorithm, which incorporates adaptive directional constraints and SSIM-based similarity assessment.
Two widely used multi-object tracking metrics were adopted for evaluation. First, ID Switches (IDSW) were calculated to determine the total number of times a tracked particle’s identity is incorrectly reassigned to a different ID during its lifetime, where lower values indicate better identity preservation. Second, Fragmentation was analyzed to count the total number of trajectory segments generated by the tracker. Since every annotated particle should ideally form a single continuous trajectory, a higher fragmentation value reflects more frequent trajectory breaks due to missed detections or association errors.
Table 4 summarizes the quantitative results obtained on the two selected sequences. In the initial ejection phase, IDSW and fragmentation were lowered by approximately 65.4% and 26.5%, respectively; in the violent phase, the reductions reached 62.4% and 24.2%. These improvements are primarily attributed to the enhanced detection capability of BE-YOLOv8s, which reduces missed detections of small particles and thus mitigates trajectory breaks. Additionally, the directional constraints and SSIM-based matching in SSIDM effectively resolve ambiguities in dense particle regions, maintaining identity consistency even under temporary occlusions or detection failures. The comparison confirms that the proposed framework achieves high detection accuracy while providing the robust trajectory continuity essential for reliable particle velocimetry in thermal runaway jets.
5. Conclusions
This work successfully established a non-intrusive, integrated detection and velocimetry framework for the solid-phase particles ejected during the TR of lithium-ion batteries. By synergizing the BE-YOLOv8s object detection model with the SSIDM matching algorithm and PTV principles, the proposed method overcomes the technical barriers of identifying microscopic targets within high-density, high-temperature multiphase jets. The key findings and implications are summarized as follows.
The BE-YOLOv8s model demonstrates superior feature extraction capabilities for small targets through the integration of Deep-wise Separable Convolutions with attention mechanisms (DAConv), a receptive-field-enhanced SA-C3Ghost module, and a dedicated high-resolution detection layer. Ablation studies corroborate the efficacy of these improvements, showing increases of 2.1%, 2.0%, and 3.4% in precision, recall, and mAP, respectively, compared to the baseline YOLOv8s. Moreover, the model achieves a 49.9% reduction in parameter count and a 50% increase in inference frame rate. With a detection accuracy (mAP) of 92.7%, the proposed algorithm outperforms classic architectures such as Faster R-CNN and SSD, validating its robustness for real-time analysis of transient safety events.
Experimental measurements on NCM622 batteries reveal a distinct three-stage evolution in particle velocity, a trend consistently observed in both spatial average and maximum instantaneous metrics. An initial low-velocity phase (0–3 s) is followed by a violent acceleration phase, where the average velocity peaks at approximately 41 m/s, while the maximum velocity surges to more than 120 m/s at 6.6 s. Subsequently, the jet enters a decay phase, with the average velocity dropping to 20 m/s by 13 s. These high-velocity findings have direct implications for the structural integrity of battery pack casings and internal partitions. The significant kinetic energy of the ejected particles suggests that standard thin-walled partitions may be vulnerable to penetration, necessitating the use of impact-resistant thermal barriers. Furthermore, the peak velocity data provides a quantitative basis for determining safety spacing between modules to prevent mechanical-to-thermal propagation caused by high-speed particle impact. The identified velocity profile also assists in optimizing the mechanical opening characteristics of safety valves to effectively manage transient pressure bursts during the peak reaction stage.
Despite these advancements, intrinsic limitations remain. First, the current monocular imaging setup projects 3D motion onto a 2D plane. Consequently, the measured velocities represent only the components perpendicular to the optical axis. This implies that the reported values are conservative estimates; the actual spatial velocities, particularly for particles with significant radial motion components, may be higher. Second, the intense jet fire occurring at the peak of TR introduces localized overexposure, creating temporary data gaps for particles within the flame core. A stage-wise analysis reveals that this brightness saturation compromised detection reliability in the violent stage, as evidenced by a sharp increase in trajectory fragmentation from 61 to 329 and identity switches from 9 to 44 compared to the clear initial stage. These metrics confirm that the loss of texture information in overexposed core regions leads to intermittent missed detections, causing a localized performance drop despite the robust global mAP.
Future work will mitigate these issues by deploying an orthogonal stereo vision system to reconstruct the full 3D velocity vector field. Additionally, advanced high-dynamic-range imaging or spectral filtering techniques will be explored to suppress flame glare and recover particle information from saturated regions. The current detection framework relies on data collected from NCM battery ejections. Other chemistries such as LFP typically produce denser electrolyte vapor and distinct particle morphologies. These differences in jet luminosity and contrast may affect the detection recall rate.
In summary, this research transcends traditional reliance on theoretical assumptions or indirect estimations by providing direct, empirical measurements of TR particle dynamics. The established velocity spectrum provides critical boundary conditions for simulating battery fires and offers quantitative benchmarks for the structural design of battery pack safety valves and thermal barriers.