Quantification and rating of casting blowhole defects using an instance segmentation algorithm
Zhiqiang Duan , Yue Pan , Hua Hou , Yuhong Zhao
Journal of Materials Informatics ›› 2026, Vol. 6 ›› Issue (1) -14.
Casting blowhole defects seriously affect product quality and performance. Accurate detection, segmentation, and measurement of these defects are essential for quality control. To solve problems such as the varying sizes of blowholes in castings, segmentation uncertainty caused by texture overlap, and the subjectivity of manual rating, this paper proposes a rating strategy for casting blowhole defects based on image instance segmentation results. In the preprocessing stage, contrast-limited adaptive histogram equalization (CLAHE) is applied to enhance defect features. You Look Only Once version 8 (YOLOv8), YOLOv11, YOLOv13, and semantic segmentation models are compared, and YOLOv13 is chosen as the main model for segmentation. Its mean Average Precision (mAP) at an IoU threshold of 0.5 (mAP50) reaches 0.964, showing the best performance. Based on the segmentation results, the pixel area and percentage of the segmented regions are calculated. The actual defect size is then converted using the practical sampling area, and rating is performed according to the GB/T 11346-2018 standard. Validation through manual measurement in Photoshop and physical sectioning confirms that the proposed strategy reduces the maximum error by 17.1% compared with traditional manual rating. The method significantly enhances the automation and accuracy of blowhole defect rating and provides reliable technical support for casting quality control.
Blowhole defects / defect rating / instance segmentation algorithm / defect detection and segmentation
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 7-12, 2015, Boston, MA, USA; IEEE: 2015; pp 3431-3440. |
| [28] |
|
| [29] |
|
| [30] |
|
| [31] |
|
| [32] |
Ronneberger, O.; Fischer, P.; Brox, T. U-Net: convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015; Navab, N., Hornegger, J., Wells, W., Frangi, A., Eds.; Lecture Notes in Computer Science, Vol. 9351; Springer: Cham, 2015. |
| [33] |
|
| [34] |
|
| [35] |
|
| [36] |
|
| [37] |
Chennupati, S.; Narayanan, V.; Sistu, G.; Yogamani, S.; Rawashdeh, S. A. Learning Panoptic Segmentation from Instance Contours. In 2021 IEEE International Conference on Robotics and Automation (ICRA), Xi’an, China, May 30-June 5, 2021; IEEE, 2021; pp 9586-9593. |
| [38] |
|
| [39] |
Urtans, E.; Bumanis, K.; Vecins, V.; et al. Detection of knots in oak wood planks: instance versus semantic segmentation. In 2022 IEEE 5th International Conference on Big Data and Artificial Intelligence (BDAI), Fuzhou, China, July 8-10, 2022; IEEE, 2022; pp 163-168. |
| [40] |
|
| [41] |
|
| [42] |
|
| [43] |
|
| [44] |
|
| [45] |
|
| [46] |
Lei, M., Li, S., Wu, Y., et al. Yolov13: real-time object detection with hypergraph-enhanced adaptive visual perception. arXiv 2004, arXiv:2506.17733. |
| [47] |
National public service platform for standards inforrnation. GB/T 11346-2018 Radiograpial testing for aluminum alloy castings - defect levels. (in Chinese). Available from: https://openstd.samr.gov.cn/bzgk/std/newGbInfo?hcno=7D7A57065BCFDEF9DB686A8477F14661. [Last accessed on 20 Mar 2026]. |
| [48] |
|
/
| 〈 |
|
〉 |