Abstract
In the continuous casting process, issues such as time lag in macroscopic inspection results and human interference factors hinder efficient quality assessment. Rapid and accurate identification of round bloom quality defects is critical for stabilising production. The study employs a U-Net neural network to preprocess image data from the continuous casting process, achieving a segmentation accuracy of 94.4% for round blooms. Metrics including precision, confusion matrix and ROC curve are used to evaluate the reliability and stability of different mathematical models in predicting defects. The convolutional neural network demonstrates superior performance with a defect identification accuracy of 97.12%, providing actionable guidance for on-site production optimisation.
Keywords
Introduction
Macroscopic inspection of continuous casting blooms is a key technique for evaluating internal quality in steel production. 1 This method analyses macrostructural features of round bloom cross-sections using macroscopic images.2,3 However, manual inspection suffers from inefficiency and delayed feedback,4,5 limiting real-time anomaly detection. Thus, developing high-precision defect identification models is essential.
Currently, deep learning image recognition technology is widely applied in medical diagnostics, 6 agricultural and biological applications, 7 facial recognition 8 and other domains. In metallurgy, artificial neural network algorithms have been employed for predicting thermal deformation stress in high-Mn steels, 9 chemical composition of ferritic stainless steels 10 and high-temperature deformation behaviour of steels. 11 Significant research efforts have also been conducted on quality defect identification in continuously cast blooms. Models including LSTM-FCN, 12 XGBoost 13 and random forests 14 have been employed to predict quality defects based on process equipment data records. However, such data-driven approaches lack direct visualisation capability for defect manifestation. Macroscopic imaging analysis provides intuitive defect characterisation, with algorithms like YOLOv5, 15 VGG, 16 CNN 17 and YOLOv8 18 being implemented for quality defect recognition in low-magnification billet images. However, the approach inadequately addresses the influence of surrounding environmental factors on the continuous casting round blooms. Moreover, shrinkage defect identification remains confined to specific regions, resulting in low applicability for actual production conditions and hampering practical implementation for continuous casting process optimisation. To address the challenge of accurate quality defect identification in industrial environments, an integrated prediction model based on multi-model fusion has been developed.
To address these limitations, the study proposes an integrated multi-model framework. The methodology involves labelling macroscopic images of round blooms using Labelme, followed by U-Net-based segmentation. The model's performance is validated via intersection-over-union (IoU), Dice coefficient, and Hausdorff distance (HD). Preprocessed images are then fed into support vector machine (SVM), naive Bayes (NB) and convolutional neural network (CNN) models for defect classification. Evaluation metrics such as precision, recall, confusion matrix, ROC curve and Matthews correlation coefficient (MCC) are utilised to select the optimal model.
Model architecture design and description
Model architecture design
To address the challenges of environmental interference and time lag in macroscopic inspection of round blooms during continuous casting, this study proposes an integrated deep learning framework for real-time defect identification. As illustrated in Figure 1, the workflow begins with acquiring macroscopic images of round blooms during the continuous casting process. These images are annotated using the Python-based Labelme tool and binarised to serve as the ground truth output for the U-Net segmentation model. The raw images are fed into U-Net as inputs, and segmentation accuracy is rigorously evaluated using metrics such as IoU, Dice coefficient and HD. This preprocessing step effectively isolates the round bloom from background noise, eliminating environmental interference. The segmented images are then fed into a CNN for defect classification, where the output indicates the presence or absence of defects. Classification performance is validated using precision, recall, confusion matrix, ROC curves and MCC to ensure model robustness and stability.

Framework diagram of integrated recognition model.
U-Net model
U-Net is a mathematical model based on data augmentation in network architecture and training strategies, enabling effective utilisation of limited annotated samples.19,20 The network architecture consists of a symmetric encoder-decoder structure with skip connections. 21 The encoder comprises multiple convolutional and downsampling layers, progressively extracting high-level semantic features of the image while reducing the spatial dimensions of the feature maps. The decoder gradually restores the spatial resolution of the feature maps through upsampling, mapping low-resolution high-semantic features back to the original image size. Each upsampling layer is connected to the corresponding encoder layer via skip connections. These skip connections directly concatenate the feature maps from each encoder layer to the corresponding decoder layer, addressing the loss of spatial information caused by downsampling, achieving multi-scale feature fusion, and enhancing segmentation localisation capability.22,23
U-Net is an end-to-end training model. 24 As shown in Figure 2, the raw image is input and processed through 3 × 3 convolutions with ReLU activation functions. Local features of the image are gradually extracted via connections to max-pooling layers. The image is then reconstructed through upsampling, skip connections and convolutional operations to achieve segmentation prediction.

Operational principle of U-Net in eliminating peripheral artefacts from low-power imaging through computational segmentation.
The evaluation of image segmentation models primarily focuses on boundary accuracy, and volumetric similarity.
25
Metrics such as IoU,
26
Dice coefficient
27
and HD
28
are selected to evaluate the accuracy and reliability of the U-Net model.
The HD is used to quantify the maximum mismatch between two sets of points. For two point sets
CNN model
The CNN 29 is a mathematical model specifically designed for processing grid-like data. Its image processing workflow is illustrated in Figure 3. The structure consists of two main components: a feature extraction section and a classification section. 30 The feature extraction section performs a series of convolutional and pooling operations. 31 The classification section uses fully connected layers as a classifier, assigning probabilities to objects in the image based on features extracted by the feature extraction section and outputting image labels. 32

Feature parameter extraction of continuous casting round blooms low-magnification images using convolutional neural networks.
The detailed architecture of the CNN is illustrated in Figure 4, comprising sequentially stacked convolutional layers with ReLU activation, spatial downsampling through max-pooling operations and fully connected layers for classification. Batch normalisation is applied after each convolutional stage to enhance training stability.

Detailed computational architecture of the CNN.
Metrics including precision, recall, confusion matrix, ROC curves and MCC are chosen to evaluate the reliability and stability of the multi-model fusion approach.33,34
In equations (5) to (9), TP represents the number of samples correctly predicted as positive by the model, FP denotes the number of samples incorrectly predicted as positive, FN indicates the number of samples incorrectly predicted as negative, and TN signifies the number of samples that are truly negative and predicted as negative. These evaluation metrics are core tools for assessing classification models, comprehensively measuring model performance from diverse perspectives.
To validate model feasibility, verification was conducted using data not employed in model training, with specific steps detailed in Table 1.
Pseudocode for defect recognition in continuously cast round blooms.
Computational results and evaluation of U-Net model
A total of 240 macrographic examination images of continuous casting round blooms, each measuring 1280 × 1280 pixels, were collected from the production site. Images depicting round blooms with and without shrinkage porosity were organised and distributed into training and testing sets. The data partition is detailed in Table 2.
Data distribution and partition.
The model was built on the PyTorch framework. To process large-scale image data, a distributed training cluster comprising 6 NVIDIA GeForce RTX 4070 GPUs was implemented, with the system equipped with 256GB of DDR5 RAM. Macroscopic inspection images of round blooms from the continuous casting production site were collected and used for training and simulation with the U-Net model. As shown in Figure 5, the original images were annotated to generate binarised images. The U-Net model predicted the binarised images, with edge errors observed in the predicted results. After post-processing, the restored round bloom images were compared between defective and non-defective cases, demonstrating the model's capability to accurately eliminate environmental interference. The QR-code corresponds to process data in the continuous casting process and does not affect shrinkage defect identification.

Binarisation processing and U-Net model prediction and reconstruction of continuous casting round blooms low-magnification images.
The accuracy of the U-Net model was validated using IoU and Dice coefficient. As illustrated in Figure 6, the peak precision values for IoU and Dice coefficient are 0.942 and 0.965, respectively, with precision intervals of [0.894, 0.992] and [0.913, 0.998]. These results confirm the model's strong performance in predicting round bloom images.

Computation of intersection over union and Dice coefficient.
HD, which measures the maximum mismatch between predicted and ground truth boundaries and is sensitive to segmentation edges, was employed for evaluation. Figure 7 shows high overlap between ground truth and predicted boundaries, verifying the reliability of the U-Net model in identifying round blooms.

Simulation of Hausdorff distance (HD) calculation.
To assess the model's stability, the mean values and variances of IoU, Dice coefficient and HD were calculated for the test dataset. As presented in Table 3, the IoU and Dice coefficient achieve high precision values of 0.944 and 0.971, respectively, with low variances. Although the HD exhibits a high mean value, its overall variance remains low, proving the model's suitability for predicting continuous casting round blooms.
Mean values and variances of evaluation metrics.
Computational results and evaluation of CNN model
SVM, NB and CNN were applied to identify round bloom quality defects. Their performance was evaluated using precision, recall and MCC. As presented in Table 4, the CNN model achieved higher prediction accuracy compared to SVM and NB, with precision differentials of 2.54% and 1.67% respectively. For more intuitive comparison of model precision, Figure 8 illustrates through radar chart that the CNN model performed favourably across all evaluation metrics, attaining 97.15% precision. This demonstrates its applicability for predicting shrinkage cavity defects in continuously cast round blooms.

Radar chart comparing prediction accuracy across models.
Model accuracy comparison.
The confusion matrix visually compares prediction results with ground truth labels. In Figure 9, the CNN algorithm demonstrates optimal performance, with only one false negative (FN) and one false positive (FP), confirming its applicability for predicting round bloom defects during continuous casting.

Confusion matrices for defect classification performance evaluation.
ROC curves reflect the trade-off in model performance under different classification thresholds. As depicted in Figure 10, the area under the curve (AUC) ranges between [0, 1], with higher values indicating superior overall performance. The CNN model achieves the highest AUC of 0.98, further validating its excellence.

ROC curves and corresponding AUC values.
Model efficiency was evaluated using training time and testing time. As shown in Table 5, CNN exhibited longer computational times compared to SVM and NB, but achieved higher accuracy. To verify model independence, tests were conducted using images excluded from model training. The computational time from initial image input to final defect recognition in round blooms was under 9 s, meeting on-site detection requirements.
Comparison of model efficiency.
Model accuracy and effectiveness were analysed using precision, recall, confusion matrix, ROC curve and MCC. Model efficiency was evaluated via per-image inference time. The CNN algorithm achieved a prediction accuracy of 97.12% with a defect recognition time of 9 s per image, demonstrating applicability for identifying shrinkage cavity defects in continuously cast round blooms.
Conclusions
Macroscopic inspection images of round blooms in continuous casting production are systematically organised. Image segmentation and feature enhancement are performed using a U-Net neural network, followed by defect feature extraction and classification through the CNN applied to preprocessed images. The methodology significantly enhances quality control capabilities in continuous casting production lines through automated defect detection.
The accuracy and reliability of the U-Net model are rigorously validated using three metrics: IoU, Dice coefficient and HD. The model achieved precision values of 0.944 for IoU, 0.971 for Dice coefficient and 5.12 mm for HD, with a variance (σ²) below 0.015 across all measurements. These results confirmed the model's stability and generalisation capability for industrial applications in continuous casting bloom prediction.
Comprehensive evaluation of three classification algorithms SVM, NB and CNN are conducted using precision, recall, confusion matrices, ROC curves and MCC. The CNN algorithm demonstrates superior performance in defect identification, achieving precision, recall and MCC values exceeding 97.15%, with 12.7% and 18.4% improvements over SVM and NB algorithms respectively. Classification superiority is further verified through confusion matrix visualisation and quantitative assessment of ROC curve analysis.
The integrated model is suitable for identifying shrinkage cavity defects in continuously cast round blooms. To extend applicability to different billet types, retraining of the U-Net model accounting for environmental factors is required. Beyond shrinkage cavities, additional defects including cracks and segregation necessitate supplementary data to enhance model universality.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The present work was financially supported by the National Natural Science Foundation of China (Nos. 52074207 and 52304358) and Young Elite Scientists Sponsorship Program by CAST (No. YESS20230462).
