Publication Date: December 19, 2025
Access counts:0
Development of an Image Processing Technique that Uses a Swin Transformer for High-Accuracy Bubble Detection

Fig. 1 Shape detection of overlapping bubbles

Fig. 2 Visualization in a rod-bundle flow channel (a) and results of bubble detection (b)
Detected bubbles are shown in color (colors are randomly assigned).
A bubble detection technique for gas–liquid two-phase flows was developed using the latest deep learning technology, Shifted Window Transformer (Swin Transformer). By achieving highly accurate bubble shape detection, essential data could be acquired in greater detail, such as bubble size, distribution, and void fraction for thermal-hydraulic studies, including nuclear engineering.
Conventional bubble detection is based on rule-based image processing using differences in brightness. However, accuracy of these methods decreases when bubbles are deformed or overlap.
In this study, the deep-learning-based image recognition model, Swin Transformer, was used. Training was conducted using only several dozen bubble images. The proposed method was compared with conventional rule-based techniques in Fig. 1. This approach successfully detected bubble shapes even when they overlapped as shown in Fig. 1 (c), outperforming conventional methods. Furthermore, the detector was applied to a 3×3 rod bundle channel and could successfully identify bubbles in complex geometries (Fig. 2).
This technique demonstrates high accuracy even with limited training data and adapts well to complex fluid structures and experimental conditions. It is expected to serve as a reliable image analysis tool in future thermal-hydraulic research and simulation validation.
If you have any comments or feedback about this page, please click the button to share your thoughts with us.
