Surface defect detection on rolling mill rolls: a transfer learning approach with improved YOLOv5

Yulong Hu, Peng Wen, Shiyi Chen, Jinyun Liu, Xudong Li, Jie Sun, Dianhua ZhangDiscover 2025

Abstract

Automated surface defect detection on rolling mill rolls is critical for maintaining product quality in hot-rolled strip steel manufacturing. Traditional manual inspection is subjective and inefficient. This paper presents TR-CNF-YOLOv5, a deep learning framework that leverages transfer learning and architectural enhancements to overcome the scarcity of specialized roll defect data. By pre-training on the NEU-DET strip steel dataset and fine-tuning on a custom roll defect dataset, the model achieves a Mean Average Precision (mAP) of 97.6%. This represents a significant improvement over standard YOLOv5 (9.8%) and YOLOv7 (7.1%) models, demonstrating the effectiveness of cross-domain knowledge transfer in industrial quality control.

Introduction

In the hot-rolling process, the roller is a vital component that directly influences the dimensional precision and surface finish of the steel. Continuous contact with high-temperature metal leads to various surface defects, such as cracks, scratches, and scale. If undetected, these flaws are transferred to the final product, increasing scrap rates. Current industrial practices largely depend on manual visual inspection, which is prone to error and fatigue. While deep learning-based object detection offers a solution, the lack of large-scale, publicly available datasets for roll defects hinders the development of robust models.

Methodology

The proposed approach integrates two main innovations: architectural improvements to the YOLOv5 framework and a strategic transfer learning pipeline.

Architectural Enhancements (CNF-YOLOv5)

The model architecture was modified to better capture multi-scale industrial defects:

  1. C3_Res2 Module: Replacing the standard C3 module with a Res2Net-inspired structure allows the network to process features at multiple scales within a single layer, improving detection for both fine cracks and large-scale patches.
  2. Normalization-based Attention Mechanism (NAM): This module suppresses background noise and emphasizes defect-related features by applying weight contributions during training, which is particularly effective for low-contrast industrial imagery.
  3. Focal EIoU Loss: The standard loss function was replaced with Focal EIoU to more accurately penalize bounding box width and height errors, leading to superior localization.

Transfer Learning Strategy

To address data scarcity, the researchers employed a partial transfer learning strategy. The model was first pre-trained on the NEU-DET dataset (strip steel defects). The "backbone" of the model, which learns general geometric features, was then frozen, and the "head" was fine-tuned using a specialized roll defect dataset.

The TR-CNF-YOLOv5 training pipeline, illustrating the transfer of knowledge from strip steel defect data (NEU-DET) to rolling mill roll defect detection.

Experimental Setup and Data

The study utilized two primary datasets:

  • Source Domain (NEU-DET): 1,800 images of six strip steel defect types (e.g., pitted surfaces, inclusions).
  • Target Domain (Roll Defect Dataset): A self-built dataset of 210 original images from a 1580 mm hot rolling line, expanded to 1,260 samples via data augmentation (rotation, flipping, and Gaussian blur). Six defect categories were identified: orange peel spots, roll-scratches, ridges, meteor spots, cracks, and scale.

Results and Discussion

The TR-CNF-YOLOv5 model achieved a 97.6% mAP, outperforming YOLOv5 and YOLOv7 by 9.8% and 7.1%, respectively. The model maintains a real-time processing speed of 36 FPS, making it suitable for production line integration.

Key findings include:

  • Cross-Domain Synergy: Features learned from strip steel defects are highly relevant to roll defects, validating the transfer learning approach.
  • Attention Efficacy: The NAM module significantly reduced false positives in grayscale industrial environments where subtle gray-on-gray transitions often confuse manual inspectors.
  • Localization Precision: Focal EIoU loss resulted in tighter bounding boxes, especially for irregular defects like "meteor spots" and "cracks."

Conclusion

The TR-CNF-YOLOv5 model provides a high-accuracy, real-time solution for rolling mill roll defect detection. By effectively utilizing transfer learning to bridge the gap between related industrial domains, this research offers a blueprint for developing deep learning models in data-constrained manufacturing environments. Future work will focus on expanding the dataset and implementing the system for on-site automated maintenance feedback.

Summary updated

BibTeX
@inproceedings{hu2025surface,
  author = {Yulong Hu and Peng Wen and Shiyi Chen and Jinyun Liu and Xudong Li and Jie Sun and Dianhua Zhang},
  title = {{Surface defect detection on rolling mill rolls: a transfer learning approach with improved YOLOv5}},
  booktitle = {Discover},
  year = {2025},
  doi = {10.1007/s42452-025-06920-7},
}
Figure