Python-Based Image Segmentation for Corona Plasma Ozone Microbubbles Diameter Analysis

Authors

  • Anggyta Fitryan Department of Physics, Faculty of Mathematics and Natural Sciences, Universitas Lampung, Indonesia
  • Faruq Department of Physics, Faculty of Mathematics and Natural Sciences, Universitas Lampung, Indonesia
  • Junaidi Department of Physics, Faculty of Mathematics and Natural Sciences, Universitas Lampung, Indonesia
  • Wahyu Department of Physics, Faculty of Mathematics and Natural Sciences, Universitas Lampung, Indonesia

Keywords:

Diameter analysis, Image segmentation, Microbubble, OpenCV, Python

Abstract

Accurate measurement of microbubble size is an essential step in evaluating the performance of corona-discharge-based ozone systems because bubble diameter distribution strongly influences interfacial area and mass transfer efficiency. This study aimed to develop a Python-based application for automatic microbubble diameter analysis using digital image segmentation. The program was developed by integrating OpenCV, NumPy, Pillow, Tkinter, and Matplotlib to support image loading, region-of-interest selection, preprocessing, thresholding, contour detection, visualization, and bubble diameter calculation. Size calibration was performed using a field-of-view approach based on camera sensor parameters and lens magnification to determine the pixel-to-micrometer conversion factor. Bubble diameter was calculated using the equivalent circular diameter derived from the segmented contour area. The developed application successfully distinguished bubble populations generated by two ozone diffusers, producing average diameters of 4.09  for the C-50 diffuser and 3.37  for the C-80 diffuser. These results demonstrate that the program can automatically detect microbubbles and provide systematic size distribution for laboratory-scale image analysis. The proposed application offers a practical, transparent, and open-source solution for rapid microbubble diameter measurement and has potential for broader application in gas–liquid bubble image analysis.

References

Chen, B., Ekwonu, M. C., & Zhang, S. (2022). Deep learning-assisted segmentation of bubble image shadowgraph. Journal of Visualization, 25(6), 1125–1136. https://doi.org/10.1007/s12650-022-00849-4

Cheng, J., Li, H., Li, D., Hua, S., & Sheng, V. S. (2023). A Survey on Image Semantic Segmentation Using Deep Learning Techniques. Tech Science Press (Computers, Materials &Continua), 74(1), 1941–1957. https://doi.org/10.32604/cmc.2023.032757

Filho, J., Nunes, L., & Xavier, J. (2022). iCorrVision-3D : An integrated python-based open-source Digital Image Correlation Software for in-plane and out-of-plane measurements. Journal SoftwareX, 19(101132), 1–7. https://doi.org/10.1016/j.softx.2022.101132

Harikrishna, K., Nithin, A., & Davidson, M. J. (2025). Automated microstructural segmentation and grain size measurement of Al + SiC nanocomposites using advanced image processing techniques on backscattered electron images. Materials Characterization, 222, 114845. https://doi.org/10.1016/j.matchar.2025.114845

Hong, J., Zhang, T., Zhou, R., Zhou, R., Ostikov, K. (Ken), Rezaeimotlagh, A., & Cullen, P. J. (2021). Plasma bubbles: a route to sustainable chemistry. AAPPS Bulletin, 31(1), 1–14. https://doi.org/10.1007/s43673-021-00027-y

Hotaling, N. A., Bharti, K., Kriel, H., & Simon, C. G. (2015). DiameterJ: A Validated Open Source Nanofiber Diameter Measurement Tool. Biomaterials, 61, 327–338. https://doi.org/10.1016/j.biomaterials.2015.05.015

Huang, B., Bates, M., & Zhuang, X. (2009). Super-resolution fluorescence microscopy. Annual Review of Biochemistry, 78, 993–1016. https://doi.org/10.1146/annurev.biochem.77.061906.092014

Jardim, S., António, J., & Mora, C. (2023). Image thresholding approaches for medical image segmentation - short literature review. Procedia Computer Science, 219, 1485–1492. https://doi.org/10.1016/j.procs.2023.01.439

John, A., Brookes, A., Carra, I., Jefferson, B., & Jarvis, P. (2022). Microbubbles and their application to ozonation in water treatment: A critical review exploring their benefit and future application. Critical Reviews in Environmental Science and Technology, 52(9), 1561–1603. https://doi.org/10.1080/10643389.2020.1860406

Kim, Y., & Park, H. (2021). Deep learning ‑ based automated and universal bubble detection and mask extraction in complex two ‑ phase flows. Scientific Reports, 11(1), 1–11. https://doi.org/10.1038/s41598-021-88334-0

Lewandowski, B., Ulbricht, M., & Krekel, G. (2018). An automated image analysing routine for estimation of equivalent diameter in high-speed image sequences with high accuracy and its validation. Experimental Thermal and Fluid Science, 98, 158–169. https://doi.org/10.1016/j.expthermflusci.2018.05.016

Rayleigh. (1879). XXXI. Investigations in optics, with special reference to the spectroscope . The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 8(49), 261–274. https://doi.org/10.1080/14786447908639684

Stelzer, E. H. K. (1998). Contrast, resolution, pixelation, dynamic range and signal-to-noise ratio: Fundamental limits to resolution in fluorescence light microscopy. Journal of Microscopy, 189(1), 15–24. https://doi.org/10.1046/j.1365-2818.1998.00290.x

Xiong, X., Wang, B., Zhu, W., Tian, K., & Zhang, H. (2019). A review on ultrasonic catalytic microbubbles ozonation processes: Properties, hydroxyl radicals generation pathway and potential in application. Catalysts, 9(1), 1–18. https://doi.org/10.3390/catal9010010

Downloads

Published

2026-06-22