A Cloud-Edge Collaborative Approach for Surface Defect Detection of Mechanical PartsJ. Chinese Journal of Engineering. DOI: 10.13374/j.issn2095-9389.2026.06.29.003
Citation: A Cloud-Edge Collaborative Approach for Surface Defect Detection of Mechanical PartsJ. Chinese Journal of Engineering. DOI: 10.13374/j.issn2095-9389.2026.06.29.003

A Cloud-Edge Collaborative Approach for Surface Defect Detection of Mechanical Parts

  • Online surface defect inspection of mechanical parts requires a detection system that maintains real-time inference, stable operation, and continuous adaptability in production. Existing edge-deployed detection models are usually trained offline and remain fixed after deployment, so their performance may decline when material batches, machining processes, illumination conditions, or defect distributions change. In addition, defect detection, key sample screening, and data uploading tasks are often executed concurrently at edge nodes, causing CPU and GPU resource contention and increased latency. To address these problems, this paper proposes a cloud-edge collaborative surface defect detection method for mechanical parts, integrating edge-side real-time detection, cloud-side incremental model optimization, and multi-node task scheduling. At the edge side, YOLOv11 is deployed as the basic defect detection model to output defect categories, locations, and confidence scores in real time. To reduce redundant transmission and provide representative samples for model updating, a key defect sample screening method based on collaborative decision-making between adjacent edge detection nodes and confidence fusion is designed. The detection boxes generated by neighboring nodes are matched using Intersection over Union, and the matched results are analyzed according to category consistency. The samples are divided into strong-consistency, weak-consistency, and single-side detected samples. Weak-consistency samples indicate unstable category prediction, single-side detected samples may correspond to missed detections or potential new defects, and low-confidence samples reflect insufficient model discrimination. These informative samples are assigned higher uploading priority and sent to the cloud server as incremental training data. At the cloud side, an incremental model optimization method based on elastic response distillation is proposed. The previous detection model is used as a frozen teacher network, while the student network is updated with uploaded key defect samples and an expanded detection head. To retain the recognition ability for old defect categories, the optimization process introduces classification-response distillation, objectness-response distillation, and bounding-box regression distillation. Considering that surface defects are often small and irregular, spatial feature distillation is further employed to constrain intermediate feature responses along horizontal and vertical directions. By jointly optimizing the detection loss on incremental samples and the distillation losses, the model learns newly emerging defect features while mitigating forgetting of existing categories. For concurrent multi-node operation, a task scheduling method driven by CPU and GPU resource states is developed. Edge nodes periodically report resource utilization to the cloud server, where their states are classified as normal, warning, or overload through sliding-average monitoring and threshold judgment. When a node becomes overloaded, sample screening and uploading tasks are first migrated to available neighboring edge nodes; if GPU load still affects detection, part of the inference task is reassigned. Experiments on the NEU-DET dataset show that the proposed method achieves mAP values of 74.8%, 72.4%, and 70.1% in the 2-class + 4-class, 3-class + 3-class, and 4-class + 2-class incremental learning scenarios, respectively. Under edge-node overload conditions, the proposed scheduling strategy reduces the average detection latency to 42 ms, maintains 30 FPS, and improves the key defect sample uploading completion rate to 92.5%. The results demonstrate that the proposed method supports continuous model adaptation while ensuring stable online defect detection.
  • loading

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return