Real-Time Crack Segmentation and Geometric Parameter Calculation of Mandrel Bars Based on an Improved YOLO Framework
Abstract
1. Introduction
2. Proposed FGD-YOLO Model
2.1. Baseline Model: YOLO11n-Seg
2.2. FGD-YOLO Model Improvement
2.2.1. Single-Channel Input Adaptation
2.2.2. FAST Lightweight Configuration
2.2.3. G2L-CRM
2.2.4. C3k2-DWR
3. Experimental
3.1. Dataset Construction
3.2. Experimental Environment
3.3. Evaluation Metrics
4. Results and Discussion
4.1. Baseline Determination
4.1.1. Effect of Background Ratio
4.1.2. Effect of Input Channel Configuration
4.2. Model Improvements and Results
4.2.1. Layer Selection of G2L-CRM
4.2.2. Layer Selection of C3k2-DWR
4.2.3. Ablation Study
4.3. Comparative Experiment
4.4. Qualitative Analysis Under Challenging Industrial Conditions
5. Application
5.1. Online Detection System
5.2. Crack Geometric Parameter Calculation
5.2.1. Online Visualization
5.2.2. Field Comparison
5.3. Limitations and Implications
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Akiyama, M.; Tsubouchi, K.; Tsumura, M.; Hori, H. A study of the mechanism of crack initiation on a mandrel bar for mandrel mill rolling in a seamless tube. Proc. Inst. Mech. Eng. Part J. 2000, 214, 179–187. [Google Scholar] [CrossRef]
- Li, Z.L.; Zhang, R.; Chen, D.; Xie, Q.; Kang, J.; Yuan, G.; Wang, G.D. Quenching stress of hot-rolled seamless steel tubes under different cooling intensities based on simulation. Metals 2022, 12, 1363. [Google Scholar] [CrossRef]
- Derazkola, H.A.; Fauconnier, D.; Kalácska, A.; Garcia, E.; Murillo-Marrodán, A.; Baets, P.D. Tribological behaviour of DIN 1.2740 hot working tool steel during mandrel mill stretching process. Tribol. Int. 2025, 202, 110361. [Google Scholar] [CrossRef]
- Li, C.; Shuang, Y.H.; Chen, J.X.; Zhou, Y.; Wang, C.; Chen, C.; Gou, Y.J.; Dong, B. Research on the impact of mandrels in titanium tubes during tube continuous rolling. Mater. Res. Express 2023, 10, 086512. [Google Scholar] [CrossRef]
- He, Q.X.; Dosbaeva, G.K. Microstructural evaluation and failure analysis of flow forming mandrels: Case studies. Eng. Fail. Anal. 2026, 184, 110322. [Google Scholar] [CrossRef]
- Zhang, Z.; Liu, D.; Zhang, R.Q.; Yang, Y.H.; Pang, Y.H.; Wang, J.G.; Wang, H. Experimental and numerical analysis of rotary tube piercing process for producing thick-walled tubes of nickel-base superalloy. J. Mater. Process. Technol. 2020, 279, 116557. [Google Scholar] [CrossRef]
- Ahmadi, S.; Khormali, A. Petroleum emulsion stability and separation strategies: A comprehensive review. ChemEngineering 2025, 9, 113. [Google Scholar] [CrossRef]
- Chachuat, B.; Srinivasan, B.; Bonvin, D. Adaptation strategies for real-time optimization. Comput. Chem. Eng. 2009, 33, 1557–1567. [Google Scholar] [CrossRef]
- Tang, B.; Chen, L.; Sun, W.; Lin, Z.K. Review of surface defect detection of steel products based on machine vision. IET Image Process. 2023, 17, 303–322. [Google Scholar] [CrossRef]
- Wen, X.; Shan, J.; He, Y.; Song, K.C. Steel surface defect recognition: A survey. Coatings 2023, 13, 17. [Google Scholar] [CrossRef]
- Luo, Q.W.; Fang, X.X.; Liu, L.; Yang, C.H.; Sun, Y.C. Automated visual defect detection for flat steel surface: A survey. IEEE Trans. Instrum. Meas. 2020, 69, 626–644. [Google Scholar] [CrossRef]
- He, Y.; Song, K.C.; Meng, Q.G.; Yan, Y.H. An end-to-end steel surface defect detection approach via fusing multiple hierarchical features. IEEE Trans. Instrum. Meas. 2020, 69, 1493–1504. [Google Scholar] [CrossRef]
- Demir, K.; Ay, M.; Cavas, M.; Demir, F. Automated steel surface defect detection and classification using a new deep learning-based approach. Neural Comput. Appl. 2023, 35, 8389–8406. [Google Scholar] [CrossRef]
- Zhang, T.; Pan, P.F.; Zhang, J.; Zhang, X.C. Steel surface defect detection algorithm based on improved YOLOv8n. Appl. Sci. 2024, 14, 5325. [Google Scholar] [CrossRef]
- Ameri, R.; Hsu, C.C.; Band, S.S. A systematic review of deep learning approaches for surface defect detection in industrial applications. Eng. Appl. Artif. Intell. 2024, 130, 107717. [Google Scholar] [CrossRef]
- Liu, G.H.; Chu, M.X.; Gong, R.F.; Zheng, Z.H. DLF-YOLOF: An improved YOLOF-based surface defect detection for steel plate. J. Iron Steel Res. Int. 2024, 31, 442–451. [Google Scholar] [CrossRef]
- Zhang, L.M.; Wang, Z.K.; Ma, Y.; Li, G.W. Steel surface defect detection algorithm based on improved YOLOv10. Sci. Rep. 2025, 15, 32827. [Google Scholar] [CrossRef] [PubMed]
- Lu, J.B.; Yu, M.M.; Liu, J.Y. Lightweight strip steel defect detection algorithm based on improved YOLOv7. Sci. Rep. 2024, 14, 13267. [Google Scholar] [CrossRef]
- Han, J.F.; Cui, G.Q.; Li, Z.W.; Zhao, J.X. DBCW-YOLO: A modified YOLOv5 for the detection of steel surface defects. Appl. Sci. 2024, 14, 4594. [Google Scholar] [CrossRef]
- Chen, X.C.; Lv, J.; Fang, Y.L.; Du, S.C. Online detection of surface defects based on improved YOLOV3. Sensors 2022, 22, 817. [Google Scholar] [CrossRef] [PubMed]
- Song, H.R. RSTD-YOLOv7: A steel surface defect detection based on improved YOLOv7. Sci. Rep. 2025, 15, 19649. [Google Scholar] [CrossRef]
- Wang, X.; Yue, Q.R.; Liu, X.G. SBDNet: A deep learning-based method for the segmentation and quantification of fatigue cracks in steel bridges. Adv. Eng. Inform. 2025, 65, 103186. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation, Med. Image Comput. Comput.-Assist. Interv. (MICCAI). Lect. Notes Comput. Sci. 2015, 9351, 234–241. [Google Scholar] [CrossRef]
- Chen, L.-C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Proceedings of the European Conference on Computer Vision (ECCV) 2018; Springer: Cham, Switzerland, 2018; pp. 833–851. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2016; pp. 770–778. [Google Scholar] [CrossRef]
- Yu, C.; Gao, C.; Wang, J.; Yu, G.; Shen, C.; Sang, N. BiSeNet V2: Bilateral Network with Guided Aggregation for Real-Time Semantic Segmentation. Int. J. Comput. Vis. 2021, 129, 3051–3068. [Google Scholar] [CrossRef]
- He, W.; Xiang, Y.; Zhu, Y.T.; Yan, T.Y.; Xu, L.F.; Li, Y.T.; Lu, J.H. A three-stage identification and quantification for underwater cracks in dams using hybrid feature learning. Eng. Struct. 2025, 339, 120625. [Google Scholar] [CrossRef]
- Wang, Y.; Li, S.Q.; Zhang, Y.; Li, Y.C. Lightweight concrete crack segmentation network for drone image with complex backgrounds using multi-scale feature fusion and optimized architecture. Constr. Build. Mater. 2025, 495, 143667. [Google Scholar] [CrossRef]
- Dong, J.X.; Wang, N.N.; Fang, H.Y.; Guo, W.T.; Li, B.; Zhai, K.J. MFAFNet: An innovative crack intelligent segmentation method based on multi-layer feature association fusion network. Adv. Eng. Inform. 2024, 62, 102584. [Google Scholar] [CrossRef]
- Mi, Z.Z.; Gao, Y.; Xu, X.Y.; Tang, J. Steel strip surface defect detection based on multiscale feature sensing and adaptive feature fusion. AIP Adv. 2024, 14, 045005. [Google Scholar] [CrossRef]
- Liu, X.; Liu, H.B.; Zhou, D.Q. Multi-scale defect detection on product surface in grayscale images using YOLOv8-Ms algorithm. Nondestruct. Test. Eval. 2026, 41, 1067–1091. [Google Scholar] [CrossRef]
- Lin, T.Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2017; pp. 2117–2125. [Google Scholar] [CrossRef]
- Liu, S.; Qi, L.; Qin, H.F.; Shi, J.P.; Jia, J.Y. Path aggregation network for instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2018; pp. 8759–8768. [Google Scholar] [CrossRef]
- Zhang, J.; Zhu, B.; Qiu, H.S. Real-time Concrete Crack Segmentation for Bridge Structural Health Monitoring: A Lightweight YOLOv11-based Approach with Multi-scale Feature Fusion. Results Eng. 2025, 28, 108004. [Google Scholar] [CrossRef]


















| Component | Specifications |
|---|---|
| Operating System | Windows 11 Pro (Microsoft, Redmond, WA, USA) (64-bit) |
| CPU | Intel Core i9-13900K (Intel, Santa Clara, CA, USA) (13th Gen) |
| Memory | 128 GB DDR5 |
| GPU | NVIDIA GeForce RTX 4080 (NVIDIA, Santa Clara, CA, USA) |
| Platform | Configuration |
|---|---|
| Programming Language | Python 3.9.23 |
| Deep Learning Framework | PyTorch 2.0.0 |
| CUDA | NVIDIA CUDA 11.8 |
| GPU Driver | NVIDIA Driver 561.17 |
| Background-to-Defect Ratio in Training Set | Background-to-Defect Ratio in Validation Set | FNR/% | FPR/% | mAP@0.5 (mask)/% | mAP@0.5 (bbox)/% | FPS |
|---|---|---|---|---|---|---|
| 0 | 0.3 | 1.38 | 20.15 | 68.5 | 67.8 | 148 |
| 0.5 | 1.38 | 21.22 | 72.8 | 73.5 | 157 | |
| 1 | 1.38 | 16.34 | 76.4 | 73.7 | 161 | |
| 0.3 | 0.3 | 1.72 | 6.71 | 84.9 | 83.6 | 162 |
| 0.5 | 2.07 | 5.96 | 86.8 | 87.0 | 162 | |
| 1 | 1.72 | 5.91 | 88.6 | 87.7 | 119 | |
| 0.5 | 0.3 | 2.07 | 4.30 | 85.4 | 83.8 | 161 |
| 0.5 | 1.72 | 4.90 | 88.3 | 87.0 | 162 | |
| 1 | 2.07 | 5.52 | 86.1 | 83.2 | 120 | |
| 1 | 0.3 | 1.72 | 4.24 | 86.2 | 85.1 | 162 |
| 0.5 | 1.72 | 3.35 | 89.1 | 87.9 | 165 | |
| 1 | 1.72 | 4.00 | 90.0 | 88.3 | 123 | |
| 2 | 0.3 | 2.07 | 3.21 | 89.3 | 89.2 | 167 |
| 0.5 | 2.07 | 3.17 | 88.6 | 88.1 | 168 | |
| 1 | 2.07 | 3.16 | 91.6 | 90.9 | 119 |
| Layer | FNR/% | FPR/% | mAP@0.5 (mask)/% | mAP@0.5 (bbox)/% | Params/M | GFLOPs | FPS |
|---|---|---|---|---|---|---|---|
| P4 | 3.10 | 3.94 | 87.0 | 85.3 | 2.76 | 3.39 | 193 |
| P6 | 1.72 | 5.53 | 85.2 | 83.0 | 2.84 | 3.14 | 186 |
| P8 | 1.38 | 4.79 | 87.9 | 88.5 | 2.56 | 2.97 | 204 |
| P10 | 1.38 | 5.32 | 86.7 | 88.7 | 2.63 | 2.99 | 204 |
| P13 | 1.38 | 5.33 | 87.8 | 87.3 | 2.62 | 2.98 | 200 |
| P4 + P8 | 1.72 | 4.88 | 85.3 | 82.0 | 2.68 | 3.36 | 198 |
| Layer | FNR/% | FPR/% | mAP@0.5 (mask)/% | mAP@0.5 (bbox)/% | Params/M | GFLOPs | FPS |
|---|---|---|---|---|---|---|---|
| P4 | 2.07 | 5.27 | 87.5 | 87.7 | 2.56 | 3.00 | 203 |
| P6 | 1.72 | 5.42 | 88.7 | 88.3 | 2.56 | 2.98 | 198 |
| P10 | 2.07 | 4.47 | 89.8 | 88.3 | 2.69 | 3.01 | 205 |
| P13 | 2.07 | 4.87 | 88.6 | 87.1 | 2.63 | 3.01 | 203 |
| P4 + P10 | 2.41 | 4.93 | 89.9 | 89.3 | 2.69 | 3.03 | 185 |
| Configuration | FNR/% | FPR/% | mAP@0.5 (mask)/% | mAP@0.5 (bbox)/% | Params/M | GFLOPs | FPS |
|---|---|---|---|---|---|---|---|
| O | 2.41 ± 0.7 | 3.56 ± 0.2 | 88.2 ± 0.4 | 87.3 ± 1.6 | 2.84 | 3.31 | 166 ± 3 |
| B | 1.95 ± 0.5 | 5.06 ± 0.5 | 88.7 ± 1.3 | 87.6 ± 1.6 | 3.16 | 3.70 | 185 ± 6 |
| B + F | 1.61 ± 0.2 | 5.23 ± 0.4 | 87.4 ± 0.5 | 86.9 ± 0.7 | 2.66 | 3.00 | 191 ± 6 |
| B + F + G | 2.53 ± 0.8 | 5.11 ± 0.1 | 87.1 ± 0.8 | 86.2 ± 1.9 | 2.56 | 2.97 | 199 ± 4 |
| B + F + D | 2.07 ± 0.7 | 5.49 ± 0.4 | 87.8 ± 1.3 | 87.1 ± 0.7 | 2.78 | 3.04 | 200 ± 4 |
| B + F + G + D | 1.72 ± 0.3 | 4.85 ± 0.3 | 88.5 ± 1.1 | 87.9 ± 1.7 | 2.69 | 3.01 | 204 ± 1 |
| Model | FNR/% | FPR/% | mAP@0.5 (mask)/% | mAP@0.5 (bbox)/% | Dice/% | Params /M | GFLOPs | FPS |
|---|---|---|---|---|---|---|---|---|
| U-Net (original) | 0.89 ± 0.7 | 17.82 ± 7.1 | - | - | 82 | 31.10 | 218.9 | 68 ± 1 |
| DeepLabv3 + ResNet34 | 1.20 ± 0.2 | 1.40 ± 0.5 | - | - | 81 | 22.43 | 31.7 | 132 ± 6 |
| DeepLabv3 + ResNet50 | 1.00 ± 1.3 | 2.20 ± 1.6 | - | - | 81 | 26.67 | 36.9 | 125 ± 16 |
| BiSeNetV2 | 1.38 ± 0.1 | 1.65 ± 0.1 | - | - | 75 | 4.20 | 12.3 | 154 ± 6 |
| YOLOv5n-seg | 1.84 ± 0.2 | 6.29 ± 0.1 | 77.3 ± 0.2 | 78.7 ± 0.1 | 93 | 1.88 | 4.31 | 132 ± 4 |
| YOLOv8n-seg | 2.07 ± 0.4 | 4.32 ± 0.2 | 88.1 ± 3.2 | 87.7 ± 1.6 | 95 | 3.26 | 3.87 | 176 ± 33 |
| YOLO11n-seg | 2.41 ± 0.7 | 3.56 ± 0.2 | 88.2 ± 0.4 | 87.3 ± 1.6 | 95 | 2.84 | 3.31 | 166 ± 3 |
| YOLO12n-seg | 2.07 ± 0.0 | 4.59 ± 0.3 | 87.8 ± 0.5 | 87.5 ± 0.4 | 95 | 2.82 | 3.33 | 129 ± 4 |
| FGD-YOLO | 1.72 ± 0.3 | 4.85 ± 0.3 | 88.5 ± 1.1 | 87.9 ± 1.7 | 95 | 2.69 | 3.01 | 204 ± 1 |
| Parameter Category | Specific Parameters |
|---|---|
| Mandrel bar diameter range (mm) | 60–400 |
| Mandrel bar speed (m/s) | 0–5 |
| Mandrel bar surface temperature (°C) | Room temperature-850 |
| Circumferential coverage | 360° full coverage |
| Longitudinal range | No length limitation |
| Parameter Category | Specific Parameters |
|---|---|
| Image type | Black and white |
| Effective pixels | 4096 × 8 |
| Pixel size (μm) | 7 × 7 |
| Exposure mode | Global exposure |
| Frame buffer (MB) | 128 |
| Data interface | Gigabit ethernet |
| Max Width/mm | Length/mm | |||||
|---|---|---|---|---|---|---|
| Sample | Reference | Online | Difference | Reference | Online | Difference |
| c1 | 0.5 | 0.4 | 0.1 | 28.5 | 25.5 | 3.0 |
| c2 | 0.5 | 0.6 | 0.1 | 23 | 25.4 | 2.4 |
| c3 | 1.0 | 0.9 | 0.1 | 16 | 25.6 | - |
| Mean | - | - | 0.1 | - | - | 2.7 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Cao, J.; Sun, Z.; Ding, J.; Li, X. Real-Time Crack Segmentation and Geometric Parameter Calculation of Mandrel Bars Based on an Improved YOLO Framework. Metals 2026, 16, 657. https://doi.org/10.3390/met16060657
Cao J, Sun Z, Ding J, Li X. Real-Time Crack Segmentation and Geometric Parameter Calculation of Mandrel Bars Based on an Improved YOLO Framework. Metals. 2026; 16(6):657. https://doi.org/10.3390/met16060657
Chicago/Turabian StyleCao, Jianzhao, Zhu Sun, Jingguo Ding, and Xu Li. 2026. "Real-Time Crack Segmentation and Geometric Parameter Calculation of Mandrel Bars Based on an Improved YOLO Framework" Metals 16, no. 6: 657. https://doi.org/10.3390/met16060657
APA StyleCao, J., Sun, Z., Ding, J., & Li, X. (2026). Real-Time Crack Segmentation and Geometric Parameter Calculation of Mandrel Bars Based on an Improved YOLO Framework. Metals, 16(6), 657. https://doi.org/10.3390/met16060657

