arXiv:2610.09327cs.ROOct 2026

Manuscript Offprint

arXiv:2610.09327

MCFR: A Mask-Guided Coarse-to-Fine Regression Framework for Robust Multi-Variant Board-to-Board Connector Assembly

Guanghui Shen, Song Wang, Dan Wu

Guanghui Shen, Song Wang and Dan Wu

Abstract—Automated insertion of board-to-board (BTB) connectors in 3C manufacturing requires both high visual accuracy and strong deployment robustness. This problem remains challenging because multi-variant connectors exhibit significant morphological and appearance variations, making stable cross-variant generalization difficult, while the mismatch between training and deployment under fixed-view inspection settings induces background spurious correlation and degrades real-world performance. To address these issues, this paper proposes MCFR, a Mask-Guided Coarse-to-Fine Regression framework for multi-variant BTB connector assembly. By introducing an object-aware mask prior and explicit photometric refinement, the proposed method suppresses background interference and improves alignment accuracy and robustness in practical deployment. Experiments on a self-constructed multi-variant dataset, a BTB batch insertion testbed, and a real smartphone assembly task show that MCFR consistently outperforms representative baselines and achieves an average real-world insertion success rate of 99.25%. These results demonstrate the effectiveness and practical potential of MCFR for automated assembly of multi-variant BTB connectors.

I. INTRODUCTION

Within the 3C manufacturing sector (computers, communications, and consumer electronics), automated insertion of board-to-board (BTB) connectors is a critical process for realizing flexible assembly of intelligent terminals [1]–[3]. BTB connectors are characterized by substantial category diversity, miniature dimensions, pronounced appearance variations, and weak discriminative localization features [4], [5]. In addition, their assembly process imposes extremely stringent tolerance requirements, typically within ±0.2\pm0.2 mm and ±1.5\pm1.5 ° [6]. Consequently, the accuracy and robustness of relative pose detection directly determine the feasibility of automated insertion for multi-variant BTB connectors, thereby constituting the principal bottleneck that hinders the stable deployment of such automation systems [7]–[9].

To address this bottleneck, existing studies typically adopt YOLO-based object detection methods [10], [11] or directly employ end-to-end deep networks for relative pose regression [12], [13], [14]. Although these methods have demonstrated a certain degree of effectiveness in controlled scenarios, they still face two critical challenges in real flexible production-line deployment. First, purely data-driven implicit regression models are often highly sensitive to the geometric morphology and appearance distribution of connectors, making it difficult to achieve stable generalization across multiple BTB

Figure

(a) The Challenge

(b) Proposed Pipeline

(c) Assembly Performance

Fig. 1: Overview of the proposed method. (a) Initial grasping introduces pose misalignment, and fixed-viewpoint images are acquired. (b) The images are fed into the proposed mask-guided coarse-to-fine regression framework for relative pose estimation. (c) The estimated pose is used for insertion correction, improving insertion success in real-world open scenarios.

connector variants with substantial morphological differences. Second, in practical visual inspection settings with a fixed viewpoint, training samples are commonly generated by moving the connector through random displacements using a robotic arm, causing the target and the background to exhibit coupled rigid-body transformations in the image. However, in actual assembly, the initial pose mismatch is mainly induced by grasping errors [7], whereas the background usually remains completely static. In this paper, we refer to the phenomenon arising from this mismatch between training and deployment distributions—where the model tends to rely on background displacement cues rather than object-intrinsic features—as background spurious correlation. This issue substantially degrades the generalization performance of end-to-end methods in real-world open scenarios, and can be viewed as a task-specific manifestation of shortcut learning under distribution shift [15].

To mitigate this issue, this paper proposes MCFR, a mask-guided coarse-to-fine robust pose regression framework for multi-variant connectors in real-world open scenarios. Rather than relying on direct end-to-end black-box regression, MCFR introduces the visual foundation model Segment Anything Model (SAM) [16] to generate an object-aware probability mask. As a visual prior, this mask can explicitly indicate the spatial distribution of the BTB connector and its effective localization features, thereby suppressing background interference at the source. The original image and the mask prior are then jointly fed into a Vision Transformer (ViT)-based pose regression network [17] to produce an

This work was supported by the National Natural Science Foundation of China under Grant 52375019.

G. Shen, S. Wang, and D. Wu are with the Department of Mechanical Engineering, Tsinghua University, Beijing, China. Corresponding author: Dan Wu (wud@tsinghua.edu.cn).

initial coarse pose estimate. Finally, to ensure robustness under open scenarios and to resist performance degradation caused by real environmental factors, we design an explicit photometric refinement module that performs pixel-level precise alignment of the coarsely regressed pose through robust optimization.

We conduct systematic evaluations of the proposed method on a self-constructed multi-variant BTB connector dataset, a batch insertion test platform, and a real smartphone assembly scenario. Experimental results show that MCFR outperforms existing baseline methods in both relative pose estimation error and real insertion success rate.

The main contributions of this paper are summarized as follows.

• We propose MCFR, a robust pose detection framework that overcomes the morphological generalization challenges of multi-variant BTB connectors, providing a reliable visual solution for high-precision physical assembly.

• We reveal the issue of background spurious correlation in fixed-viewpoint relative pose detection and design a mask-guided architecture with explicit photometric refinement to mitigate background reliance and enhance robustness in open scenarios.

• Extensive experiments on datasets and real-world assembly platforms demonstrate that MCFR achieves superior error metrics and a near-perfect (99.25%) insertion success rate, significantly outperforming existing baselines.

References (30)