Multi-pin circular connector shaft hole assembling method based on twin neural network
Through the DSNN-based method, the image data of multi-pin circular connectors is processed and the robotic arm deviation is calculated in real time, which solves the problem of high line of sight occlusion and accuracy requirements in the assembly of multi-pin circular connectors, and achieves efficient and accurate Assembly, especially in three-pin assembly assembly, performed well.
Patent Information
- Application Number
- CN202411194653.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-29
AI Technical Summary
During the assembly process of multi-pin circular connectors, there are problems with high line of sight occlusion and assembly accuracy requirements, and the prior art is difficult to achieve high-precision and efficient assembly, especially the assembly of three-pin components compared with the second-pin and Four-pin components are more difficult.
Using a deep twin neural network (DSNN)-based method, the standard images and error images of multi-pin circular connectors are obtained and processed, and the deviation of the robotic arm is calculated in real time by using the ResNetSED-50 model and LSTM network to realize the multi-pin deviation. High-precision assembly of rounded foot connectors avoids complex modeling and long training in traditional methods.
Significantly improves assembly accuracy and efficiency, reduces system establishment and optimization costs, speeds up deployment, and realizes high-precision multi-pin circular connector assembly, especially in three-pin assembly assembly, with excellent performance and success Rate and accuracy are significantly improved.
Smart Images

Figure CN118893629A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of industrial automation and robotics technology, and in particular to a multi-pin circular connector shaft hole assembly method based on a twin neural network. Background Art
[0002] In recent years, the automation of robot shaft-hole assembly has been an important and challenging research topic. Early assembly methods mainly relied on mechanical guides and spring structures to adjust assembly errors and achieve compliant assembly. However, these methods are usually complex in design, poor in versatility and high in cost. With the development of technology, vision-based assembly methods have gradually become a research hotspot. Recently, many studies have proposed assembly strategies that combine vision with force feedback or impedance control, which have been successfully applied to assembly tasks in complex environments. However, these methods may cause damage to the assembly parts during the contact phase, and strategies that rely on force feedback have certain limitations when dealing with high-precision assembly. At the same time, deep learning, especially the development of deep twin neural networks (DSNN), has provided new ideas for solving complex assembly problems. DSNN processes different inputs through two parallel sub-networks and outputs their similarity, which is widely used in image recognition and target tracking tasks. Compared with traditional methods, DSNN can effectively process visual inputs during the assembly process, avoid the complexity of modeling in traditional control strategies, and reduce the large amount of training data and time costs required in reinforcement learning methods.
[0003] In the assembly process of multi-pin circular connectors, the small pin diameter and small gap, and the robot end gripper easily block the line of sight during the assembly process, make this task more challenging than the general shaft-hole assembly. To this end, a vision-based DSNN method is proposed to solve the shaft-hole alignment problem in the assembly of multi-pin circular connectors. This method does not need to rely on contact force for adjustment, can reduce the system establishment and optimization costs, speed up the system deployment, and ensure the accuracy and efficiency of the assembly process. Compared with the existing research that focuses on the assembly of rectangular connectors, circular connectors have better sealing, mechanical stability and space efficiency, and are therefore more widely used in environments with high reliability and durability requirements. Developing efficient assembly technology for multi-pin circular connectors has important practical and theoretical significance. This can not only improve production efficiency and assembly quality, but also promote technological innovation, meet market demand and save resources. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of line of sight obstruction and high assembly precision requirements in the assembly process, and to provide a multi-pin circular connector shaft hole assembly method based on twin neural network. This method can achieve high-precision assembly of multi-pin circular connectors by utilizing deep learning and visual technology, effectively improving the accuracy and efficiency of assembly, and taking the three-pin multi-pin circular connector of Y2-3TK model as the main research object, because the assembly of three-pin components is more difficult than that of two-pin and four-pin components, the proposed method is also applicable to multi-pin circular connectors of Y2-2TK and Y2-4TK models.
[0005] The technical solution for achieving the purpose of the present invention is:
[0006] The multi-pin circular connector shaft hole assembly method based on twin neural network includes the following steps:
[0007] 1) Obtain a standard image and an error image of a multi-pin circular connector assembly, and adjust the resolution of both the standard image and the error image to 224x224x3;
[0008] 2) Input the adjusted standard image and error image into the autoencoder based on the ResNetSED-50 model, and encode to generate a one-dimensional feature vector k=1024;
[0009] 3) inputting the feature vector extracted in step 2) into the regression module, calculating the deviations Δx and Δy corresponding to the x-axis and y-axis in the robot coordinate system, and training the deviations Δx and Δy until the minimum deviation requirements for the assembly of the multi-pin circular connector are met;
[0010] 4) Control the robot in real time according to the assembly error to complete the assembly of multi-pin circular connectors.
[0011] The specific process of step 1) is:
[0012] In the x-axis and y-axis directions of the robot coordinate system, an RGB camera is used to obtain images of the multi-pin circular connector assembly. The robot is then controlled by the host computer to assemble to the ideal position, and the image of the ideal position is used as the standard image. Then, the error image is generated by randomly moving the robot within the limit, and the resolution of both the standard image and the error image are adjusted to 224x224x3.
[0013] The specific process of step 2) is:
[0014] The adjusted standard image and error image are used as input, and the autoencoder based on convolutional neural network is used to extract features of the input image to generate a one-dimensional feature vector k=1024. The fully connected layer in the SE module of the convolutional neural network is replaced by a 1×1 depthwise separable convolution, and batch normalization and ReLU activation function are introduced to form a SE-D module. Subsequently, the SE-D module is integrated into ResNet50 to construct the ResNetSED-50 model, and the model is used to extract features from the encoded input image.
[0015] First, the input image is preprocessed through the Stem Block stage, which extracts basic features from the input image and reduces the size of the feature map through convolution, normalization, activation and pooling operations; then, the input image is processed, that is, the 224x224x3 image is converted into a 7x7x2048 feature block; then, the 7x7x2048 feature block is converted into a 1x1x4K feature block through the maximum pooling operation, and the 4K features are compressed into K features through the 4K-2K-K fully connected layer. The specific process of step 3) is:
[0016] The feature vector extracted in step 2) is input into the regression module to obtain the corresponding deviations Δx and Δy in the x-axis and y-axis directions in the robot coordinate system. The training process continues until the minimum deviation requirement for the assembly of the multi-pin circular connector is met. After the AutoEncoder converts each 224x224x3 image into a feature vector of length K, the action is learned from the combined time feature X obtained by the AutoEncoder through LSTM. The LSTM network adopts a two-layer hidden structure design, and the number of hidden units in each layer is 2K, K, and K / 2 respectively. The LSTM network first processes a 2K-dimensional The first K-dimensional features of the 2K-dimensional input feature vector are derived from the error image, and the second K-dimensional features are derived from the standard image. Subsequently, the LSTM network converts the output features of the 2K-dimensional input feature vector into a K / 2-dimensional intermediate feature vector Y. In order to complete the mapping from features to output vectors, a lightweight fully connected neural network is introduced before softmax processing. The hierarchical structure of the fully connected neural network is K / 2-K / 4-16-2. Through the configuration of the hierarchical structure of the fully connected neural network, the K / 2-dimensional features are effectively mapped to the final output vectors, namely the deviations: Δx and Δy.
[0017] The specific process of step 4) is:
[0018] Through the formula α t (x t ,y t )=α t-1 (x t-1 ,y t-1)+f(Δx,Δy) performs online iteration on the robot operation, where Δ t =(x t ,y t ) and α t-1 =(x t-1 ,y t-1 ) represent the continuous assembly positions of the robot at frame t and t-1 respectively. The function f() is a constant matrix, which is used to calibrate and map the motion distance in the visual image plane to the robot motion space, so as to complete the assembly within the maximum allowable error range.
[0019] Compared with traditional PID control and force feedback methods and deep reinforcement learning methods, the deep twin neural network (DSNN) model proposed in this technical solution method avoids complex modeling and long-term training, and realizes the assembly of circular connectors that require high precision.
[0020] By combining deep learning and vision technology, this technical solution can achieve high-precision assembly of multi-pin circular connectors, effectively improving the accuracy and efficiency of assembly. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of an embodiment;
[0022] Figure 2 This is a structural diagram of the DSNN model of the embodiment. DETAILED DESCRIPTION
[0023] The present invention is further described below with reference to the accompanying drawings and embodiments, but the present invention is not limited thereto.
[0024] Example:
[0025] Reference Figure 1 , a multi-pin circular connector shaft hole assembly method based on a twin neural network includes the following steps:
[0026] 1) Obtain the standard image and error image of the multi-pin circular connector assembly. First, use the RGB camera to obtain the image of the multi-pin circular connector assembly in the x-axis and y-axis directions of the robot coordinate system. Then, control the robot to assemble to the ideal position through the host computer, and use the image of the ideal position as the standard image. Then, generate the error image by randomly moving the robot within the limit range, and adjust the resolution of the standard image and the error image to 224x224x3.
[0027] 2) The adjusted standard image and error image are input into the autoencoder based on the ResNetSED-50 model for feature extraction. The input image is encoded using the autoencoder based on the convolutional neural network to generate a one-dimensional feature vector k=1024. During the feature extraction process, the fully connected layer in the SE module of the convolutional neural network is replaced with a 1×1 depthwise separable convolution, and batch normalization (BN) and ReLU activation functions are introduced to form a SE-D module. Subsequently, the SE-D module is integrated into ResNet50 to construct the ResNetSED-50 model, and the ResNetSED-50 model is used to extract features from the encoded input image.
[0028] First, the input image is preprocessed through the Stem Block stage, which extracts basic features from the input image and reduces the size of the feature map through convolution, normalization, activation, and pooling operations. Then, the input image is processed, that is, the 224x224x3 image is converted into a 7x7x2048 feature block. After that, the 7x7x2048 feature block is converted into a 1x1x4K feature block through the maximum pooling operation, and the 4K features are compressed into K features through the 4K-2K-K fully connected layer.
[0029] 3) Input the feature vector extracted in step 2) into the regression module, calculate the deviations Δx and Δy corresponding to the x-axis and y-axis in the robot coordinate system, and train the deviations Δx and Δy until the minimum deviation requirements for the assembly of the multi-pin circular connector are met. Specifically, after the AutoEncoder converts each 224x224x3 image into a feature vector of length K, the action is learned from the combined time feature X obtained by the AutoEncoder through LSTM. The LSTM network adopts a two-layer hidden structure design, and the number of hidden units in each layer is 2K, K and K / 2 respectively. The LSTM network first processes a 2 K-dimensional input feature vector, where the first K-dimensional features of the 2K-dimensional input feature vector come from the error image, and the latter K-dimensional features come from the standard image; then, the LSTM network converts the output features of the 2K-dimensional input feature vector into a K / 2-dimensional intermediate feature vector Y. In order to complete the mapping from features to output vectors, a lightweight fully connected (FC) neural network is introduced before softmax processing. The hierarchical structure of the fully connected neural network is K / 2-K / 4-16-2. Through the configuration of the hierarchical structure of the fully connected neural network, the K / 2-dimensional features are effectively mapped to the final output vectors, namely the deviations: Δx and Δy
[0030] 4) According to the assembly error, the robot is controlled in real time to complete the assembly of the multi-pin circular connector. t (x t ,y t )=α t-1(x t-1 ,y t-1 )+f(Δx,Δy) performs online iteration on the robot operation, where α t =(x t ,y t ) and α t-1 =(x t-1 ,y t-1 ) represent the continuous assembly positions of the robot at frame t and t-1 respectively. The function f() is a constant matrix, which is used to calibrate and map the motion distance in the visual image plane to the robot motion space, so as to complete the assembly within the maximum allowable error range.
[0031] The method in this example is compared with the existing method, as shown in Table 1:
[0032] Table 1 Comparison of performance indicators between this method and existing methods
[0033]
[0034] In Table 1, “Params(M)” refers to the number of parameters in the model. “Response” refers to the time required for the model to output control instructions after receiving input data. X and Y respectively represent the average error of the model on the x-axis and y-axis during the actual assembly process. “Success” refers to the success rate of the model in a snap-on assembly process. AE(ResNetSED-50) refers to the autoencoder based on ResNetSED-50. All models in the table are deployed on GTX 1080 GPU.
[0035] Table 1 summarizes the number of parameters, response time, average error of the X-axis and Y-axis in actual assembly, and success rate of the VGG-16+FC, DT-driven DT+VGG16+LSTM, and DSNN+AE(ResNetSED-50)+LSTM models proposed in this example, so as to compare the performance of each model more comprehensively and clearly. The data shows that the DSNN+AE(ResNetSED-50)+LSTM model proposed in this example achieves a response time of 43ms with a parameter number of 98.4M. In comparison, VGG16+FC has 145M parameters and a response time of 63ms, while DT+VGG-16+LSTM has 184M parameters and a response time of 88ms. The model in this example not only performs well in response time (about 31.7% faster than VGG16+FC and about 51.1% faster than DT+VGG-16+LSTM), but also reduces the average error of the X-axis and Y-axis to 0.28mm and 0.27mm, respectively, which are significantly lower than other models. This shows that the design optimization in this example not only improves the computational efficiency and response speed, but also significantly improves the assembly accuracy. In addition, the success rate of DSNN+AE(ResNetSED-50)+LSTM in single snap-on assembly reached 83.1%, which is significantly better than other models, further verifying the reliability and superiority of the model in the multi-pin circular connector assembly task.
[0036] The DSNN model in this example is Figure 2 As shown, Figure 2 (a) Details of the architecture of the ResNetSED-50 autoencoder, where the left column shows the encoder process and the right column shows the decoder process. It is worth noting that the encoding stage includes the application of the attention module, while the decoding stage does not include this module, and the image is reconstructed through the deconvolution operation to ensure the symmetry of the structure.
[0037] Figure 2 (b) Details of the five stages of ResNetSED-50 (Stem Block to Stage 4), where the yellow and green dotted arrows represent the encoding (convolution) and decoding (deconvolution) processes, respectively. Except for the Stem Block stage, the remaining four stages (Stage 1 to Stage 4) mainly include two network structures: BTNK1 (W, C, C1, S) and BTNK2 (W, C). Among them, C1 is the number of output channels of the network (if C = C1, the number of channels remains unchanged; if C> C1, it decreases), and S represents the downsampling ratio. Figure 2 (d) and Figure 2(e) shows the network structure of BTNK1 and BTNK2 in detail, where BTNK1 adds an extra convolution and normalization step compared to BTNK2 to adjust the input and output channels. This example proposes an improved SE-D module based on the SE module and adds it to the BTNK1 and BTNK2 encoding process. Figure 2 (c) shows the network structure of SE-D, where D / CONV stands for depthwise separable convolution. The role of SCALE is to apply the generated channel attention weights to the original input feature map and weight each channel to enhance key features and suppress non-key features. In this example, the fully connected layer in the SE module is replaced with a 1×1 depthwise separable convolution, and BN (batch normalization) and ReLU activation functions are introduced. While reducing the number of model parameters and the amount of calculation, the model's computational efficiency, training stability, and generalization ability are improved, and the learning and expression of important features are strengthened. To optimize the model, this example uses stochastic gradient descent (SGD) as the optimizer, uses the ReLU activation function in the convolutional layer, and uses logistic regression based on Euclidean distance as the loss function at the end of the fully connected layer.
Claims
1. A multi-pin circular connector shaft hole assembly method based on twin neural network, characterized in that: The steps include: 1) Obtain a standard image and an error image of a multi-pin circular connector assembly, and adjust the resolution of both the standard image and the error image to 224x224x3; 2) Input the adjusted standard image and error image into the autoencoder based on the ResNetSED-50 model for feature extraction, and encode to generate a one-dimensional feature vector k=1024; 3) inputting the feature vector extracted in step 2) into the regression module, calculating the deviations Δx and Δy corresponding to the x-axis and y-axis in the robot coordinate system, and training the deviations Δx and Δy until the minimum deviation requirements for the assembly of the multi-pin circular connector are met; 4) Control the robot in real time according to the assembly error to complete the assembly of multi-pin circular connectors.
2. The multi-pin circular connector shaft hole assembly method based on twin neural network according to claim 1 is characterized in that: The specific process of step 1) is: In the x-axis and y-axis directions of the robot coordinate system, an RGB camera is used to obtain images of the multi-pin circular connector assembly. The robot is then controlled by the host computer to assemble to the ideal position, and the image of the ideal position is used as the standard image. Then, the error image is generated by randomly moving the robot within the limit, and the resolution of both the standard image and the error image are adjusted to 224x224x3.
3. The multi-pin circular connector shaft hole assembly method based on twin neural network according to claim 1 is characterized in that: The specific process of step 2) is: The adjusted standard image and error image are used as input, and the autoencoder based on convolutional neural network is used to extract features of the input image to generate a one-dimensional feature vector k=1024. The fully connected layer in the SE module of the convolutional neural network is replaced by a 1×1 depthwise separable convolution, and batch normalization and ReLU activation function are introduced to form a SE-D module. Subsequently, the SE-D module is integrated into ResNet50 to construct the ResNetSED-50 model, and the model is used to extract features from the encoded input image. First, the input image is preprocessed through the Stem Block stage, which extracts basic features from the input image and reduces the size of the feature map through convolution, normalization, activation and pooling operations; then, the input image is processed, that is, the 224x224x3 image is converted into a 7x7x2048 feature block; then the 7x7x2048 feature block is converted into a 1x1x4K feature block through the maximum pooling operation, and the 4K features are compressed into K features through the 4K-2K-K fully connected layer.
4. The multi-pin circular connector shaft hole assembly method based on twin neural network according to claim 1 is characterized in that: The specific process of step 3) is: The feature vector extracted in step 2) is input into the regression module to obtain the corresponding deviations Δx and Δy in the x-axis and y-axis directions in the robot coordinate system. The training process continues until the minimum deviation requirement for the assembly of the multi-pin circular connector is met. After the AutoEncoder converts each 224x224x3 image into a feature vector of length K, the action is learned from the combined time feature X obtained by the AutoEncoder through LSTM. The LSTM network adopts a two-layer hidden structure design, and the number of hidden units in each layer is 2K, K, and K / 2 respectively. The LSTM network first processes a 2K-dimensional The first K-dimensional features of the 2K-dimensional input feature vector are derived from the error image, and the second K-dimensional features are derived from the standard image. Subsequently, the LSTM network converts the output features of the 2K-dimensional input feature vector into a K / 2-dimensional intermediate feature vector Y. In order to complete the mapping from features to output vectors, a lightweight fully connected neural network is introduced before softmax processing. The hierarchical structure of the fully connected neural network is K / 2-K / 4-16-2. Through the configuration of the hierarchical structure of the fully connected neural network, the K / 2-dimensional features are effectively mapped to the final output vectors, namely the deviations: Δx and Δy.
5. The multi-pin circular connector shaft hole assembly method based on twin neural network according to claim 1 is characterized in that: The specific process of step 4) is: Through the formula α t (x t ,y t )=α t-1 (x t-1 ,y t-1 )+f(Δx,Δy) performs online iteration on the robot operation, where α t =(x t ,y t ) and α t-1 =(x t-1 ,y t-1 ) represent the continuous assembly positions of the robot at frame t and t-1 respectively. The function f() is a constant matrix, which is used to calibrate and map the motion distance in the visual image plane to the robot motion space, so as to complete the assembly within the maximum allowable error range.
Citation Information
Patent Citations
Target tracking method based on residual dense twin network
CN111179314A
Method for forecasting temperature in underground utility tunnel based on CA-TimeGAN and residual CNN-LSTM
KR102617312B1
Deep learning medical systems and methods for image reconstruction and quality evaluation
US20180144214A1
Cited By
Aero-engine assembly quality anomaly detection and feature inference method based on auto-encoder
CN119903419A
