A non-cooperative target relative pose measurement method and system based on deep learning

By constructing and optimizing the relative position and relative attitude measurement model based on deep learning methods, the problem of insufficient relative pose measurement accuracy of non-cooperative targets in the space environment in the existing technology is solved, and high-precision relative pose measurement is achieved.

CN114266824BInactive Publication Date: 2024-10-29BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111508657.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing visual measurement methods are used to measure the relative pose of non-cooperative targets in the space environment, their accuracy is not high enough and they fail to make full use of engineering conditions and picture information, resulting in technical problems in practical applications.

Method used

A method based on deep learning is used to construct a simulation data set including satellite images of long-range and short-range targets. The relative position and relative attitude measurement model is trained through the ResNet50 residual network. The detection frame and loss function are used to optimize the model, and the relative position and relative position are independently trained. Relative attitude measurement model to improve accuracy.

Benefits of technology

It achieves high-stability and high-precision relative position and relative attitude measurement of target satellites, reduces information interference, improves measurement accuracy and applicability of the model, and meets engineering needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114266824B_ABST
    Figure CN114266824B_ABST
Patent Text Reader

Abstract

The present invention discloses a relative posture measurement method and system for non-cooperative targets based on deep learning. A data set is constructed by simulating target satellite images and their corresponding relative posture information, wherein the simulated satellite images include long-distance target satellite images covering a full range of postures and short-distance target satellite images simulating an approach process; a detection algorithm is used to perform satellite detection on the images and crop and scale them to obtain a detection image, the simulated satellite images are input into a ResNet50 residual network for learning and training to obtain a relative position measurement model, and the detection images are input into a ResNet50 residual network for learning and training to obtain a relative posture measurement model, wherein the relative posture measurement model includes a long-distance measurement model and an approach segment measurement model; the model in the training process is optimized by a loss function between a prediction result and relative posture annotation information, and the measurement model obtained thereby can perform relative posture measurement of a spacecraft with higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of aerospace technology, and in particular to a method and system for measuring relative posture of a non-cooperative target based on deep learning. Background Art

[0002] The control tasks for cooperative and non-cooperative space targets are usually the following space activities: rendezvous and docking between spacecraft, close monitoring and inspection of non-friendly satellites, replacement and fuel injection of spacecraft modules, in-orbit capture of failed spacecraft, removal of space debris, etc. The above tasks usually involve two spacecraft, active and passive. The active spacecraft is called the tracking spacecraft, and the passive spacecraft is called the target spacecraft. The premise for the success of the space control mission is to obtain the position and attitude of the target spacecraft relative to the tracking spacecraft, that is, the relative position and attitude information. The information is generally obtained through the measurement equipment on the tracking spacecraft. Obtaining the relative position and attitude information of the target spacecraft is the core issue of the entire measurement.

[0003] The measurement methods generally include: GPS system measurement, laser radar measurement, microwave radar measurement, visual measurement, etc. Among them, visual measurement has advantages in cost, accuracy, volume, power consumption, etc., and the relative pose can be solved more conveniently through the algorithm, which is the first choice for relative navigation between spacecraft. Most of the previous visual measurement methods are based on traditional image algorithms, and there are few studies on non-cooperative target relative pose measurement algorithms based on deep learning.

[0004] The position and posture measurement of computer vision technology based on deep learning in ground environment is a current research hotspot and a future development trend. It has very important research value to apply it in space environment.

[0005] Existing technical solutions usually use regression or classification methods to predict relative pose. For example, the "Neural network-based pose estimation for noncooperative spacecraft rendezvous" published in 2020 designed a network structure based on five fully connected layers and three branches. The first branch realizes the detection function. The original image and the cropped and scaled target satellite image after detection are respectively output through the three fully connected layers and designed algorithms of the other two branches to output the relative pose; "In Deep learning for spacecraft poseestimation from photorealistic rendering" published in 2020 is based on the ResNet baseline structure and designs two branches, one outputs the predicted position, and the other predicts the distribution probability of the pose to fit the relative pose. Although the above algorithms have realized the relative pose measurement function, they are still lacking in engineering application environment considerations. For example, the current space environment can collect RGB images, the main inertial axis of the satellite in the approaching stage is parallel, etc., which does not fully utilize the engineering conditions and image information, and the accuracy is not high enough. The application of image information will also bring a series of technical problems, and further research is needed before it can be applied in practice. Summary of the invention

[0006] In view of this, the present invention provides a non-cooperative target relative posture measurement method and system based on deep learning, which can realize the measurement of the relative position and relative posture of the target satellite with high stability and high precision.

[0007] The specific technical solutions of the present invention are as follows:

[0008] A non-cooperative target relative pose measurement method based on deep learning, comprising:

[0009] Step 1: Construct a data set including simulated satellite images and relative pose annotation information;

[0010] The simulated satellite images include long-distance target satellite images covering a full range of attitudes and short-distance target satellite images simulating an approach process;

[0011] Step 2: performing satellite detection on the simulated satellite image to obtain a detection frame, and cropping and scaling the image information within the detection frame to obtain a detection image;

[0012] Step 3: Use the simulated satellite image to perform model training to obtain a relative position measurement model; use the detection image to perform model training to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model;

[0013] Step 4: Input the target satellite image into the relative position measurement model and the relative attitude measurement model to obtain the relative position information and relative attitude information of the target satellite.

[0014] Further, in step 2, the satellite detection of the simulated satellite image to obtain the detection frame is: the target satellite is detected by using a pixel detection method, and the upper left corner and the lower right corner of the simulated satellite image are traversed toward the center respectively. The upper left corner and the lower right corner are traversed twice, and the outermost loop is the pixel coordinate u axis and the v axis respectively. If the pixel value is not zero, the loop is stopped, and the pixel coordinates (u1, v1) and (u2, v2) of the upper left corner are determined, and the pixel coordinates (u3, v3) and (u4, v4) of the lower left corner are determined, and the pixel coordinates of the upper left corner of the detection frame are (u2, v1), and the pixel coordinates of the lower right corner of the detection frame are (u4, v3), thereby obtaining the detection frame.

[0015] Furthermore, in step three, the training process of the relative position measurement model is as follows: the simulated satellite image is input into the ResNet50 residual network, the ResNet50 outputs a 2048×10×10 feature map, and the global average pooling layer is used to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by a fully connected layer and a Tanh() activation function to obtain a scalar distance.

[0016] Further, in step 3, the training process of the long-distance measurement model is as follows: the detection image obtained from the long-distance target satellite image in the simulated satellite image is input into ResNet50, ResNet50 outputs a 2048×10×10 feature map, and a 2048×1×1 feature map is obtained by a global average pooling layer, and the 2048×1×1 feature map is processed by a classification layer and a weighted quaternion fitting to obtain a fitting quaternion representing a relative posture at a long distance;

[0017] The training process of the approach segment measurement model is as follows: the detection image obtained from the close-range target satellite image in the simulated satellite image is input into ResNet50, ResNet50 outputs a 2048×10×10 feature map, which is subjected to a global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is processed in turn by a fully connected layer, a Tanh() activation function, and a unitization layer to obtain a regression quaternion representing the relative posture at close range.

[0018] Further, a loss function is used to optimize the training process of the relative position measurement model and the relative posture measurement model;

[0019] The loss function of the relative position measurement model is obtained by weighting the absolute loss and relative loss of the relative position, and is expressed as follows:

[0020] L Z =λ1L Z1 +λ2L Z2

[0021] Among them, L Z represents the loss function of the relative position measurement model, L Z1 It represents the variance loss, i.e., the absolute loss, between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative position and pose annotation information of the simulated satellite image; L Z2 It represents the ratio of the difference between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative pose annotation information of the simulated satellite image to the annotated relative position information, i.e., the relative loss; λ1 and λ2 are the hyperparameters set for training, λ1=10, λ2=20;

[0022] The loss function of the relative posture measurement model includes a loss function of a long-distance measurement model and a loss function of a close-range measurement model;

[0023] The loss function of the long-distance measurement model is obtained by calculating the KL divergence between the weight distribution predicted by the long-distance measurement model and the actual weight distribution, and is expressed as follows:

[0024]

[0025] Among them, L q represents the loss function of the long-distance measurement model, represents the expected calculation, i = 1, 2…H represents the number of quaternion categories, p(i) represents the weight of the predicted i-th category, q gt (i) represents the true value information of the weight of the i-th category of the simulated satellite image; λ3=50, which is the hyperparameter set for training;

[0026] The loss function of the approach segment measurement model is obtained by weighting the variance loss and transposition loss of the approach segment relative posture, and is expressed as follows:

[0027] L O =λ4L O1 +λ5L O2

[0028] Among them, L O represents the loss function of the approach segment measurement model, L O1 represents the variance loss of the original quaternion of the relative posture information of a certain detection image predicted by the close segment measurement model and the relative posture information annotated in the relative posture annotation information of the detection image; L O2It represents the transposition loss of the original quaternion of the relative posture predicted by the proximity segment measurement model for a certain detection image and the relative posture information annotated in the relative pose annotation information of the detection image; λ4 and λ5 are the hyperparameters of the training setting, λ4=50, λ5=50.

[0029] Furthermore, the quaternion category number H of the long-distance measurement model is determined by dividing the attitude angle of a certain axis into M categories, H=M 3 ;

[0030] The calculation method of the fitting quaternion is: using the weighted least squares method to calculate the weight distribution {w1,...,w H} and the corresponding H-type quaternion Q = {q1,…,q H}Find the minimum value and obtain the fitting quaternion.

[0031] A non-cooperative target relative posture measurement system based on deep learning, including a data module, a detection module, and a training module;

[0032] The data module includes a simulated satellite image unit and a relative position information labeling unit; the simulated satellite image unit includes a long-distance target satellite image subunit and a short-distance target satellite image subunit;

[0033] The detection module is used to perform satellite detection on the simulated satellite image of the simulated satellite image unit to obtain a detection frame; and to crop and scale the image information in the detection frame to obtain a detection image;

[0034] The training module uses the ResNet50 residual network as the backbone network to train the simulated satellite images to obtain a relative position measurement model; and to train the detection images to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model.

[0035] Furthermore, the detection module detects the target satellite through a pixel detection method: starting from the upper left corner and the lower right corner of the simulated satellite image, traverse toward the center respectively, the upper left corner and the lower right corner are traversed twice, the outermost loops are the pixel coordinates u axis and v axis respectively, if the pixel value is not zero, the loop is stopped, the pixel coordinates (u1, v1) and (u2, v2) of the upper left corner are determined, and the pixel coordinates (u3, v3) and (u4, v4) of the lower left corner are determined, and the pixel coordinates of the upper left corner of the detection frame are obtained as (u2, v1), and the pixel coordinates of the lower right corner of the detection frame are obtained as (u4, v3), thereby obtaining the detection frame.

[0036] Furthermore, in the training module, the training process of the relative position measurement model is as follows: the simulated satellite image is input into the ResNet50 residual network, the ResNet50 outputs a 2048×10×10 feature map, and a 2048×1×1 feature map is obtained by a global average pooling layer, and the 2048×1×1 feature map is processed by a fully connected layer and a Tanh() activation function to obtain a scalar distance;

[0037] The training process of the long-distance measurement model is as follows: the detection image obtained from the long-distance target satellite image in the simulated satellite image is input into ResNet50, ResNet50 outputs a 2048×10×10 feature map, and the global average pooling layer is used to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is processed by the classification layer and the weighted quaternion fitting to obtain a fitting quaternion representing the relative posture at a long distance;

[0038] The training process of the approach segment measurement model is as follows: the detection image obtained from the close-range target satellite image in the simulated satellite image is input into ResNet50, ResNet50 outputs a 2048×10×10 feature map, and the global average pooling layer is used to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by a fully connected layer, a Tanh() activation function, and a unitization layer in turn to obtain a regression quaternion representing the relative posture at close range.

[0039] Furthermore, an optimization unit is provided in the training module, and the optimization unit optimizes the training process of the relative position measurement model and the relative posture measurement model through a loss function.

[0040] Beneficial effects:

[0041] (1) The present invention discloses a non-cooperative target relative posture measurement method based on deep learning. When constructing a data set, the simulated satellite images used include long-distance target satellite images covering a full range of postures and short-distance target satellite images simulating an approach process, which are more in line with the actual engineering situation and have a higher prediction result accuracy. The processes of training the relative position measurement model and the relative posture measurement model are carried out independently, eliminating mutual interference of information and improving the stability and accuracy of training. When training the relative posture measurement model, the detection image obtained by image detection is used, which reduces the interference of relative position information on the measurement of relative posture information, further improves the measurement accuracy, and ensures that the prediction result of the method is more in line with engineering requirements and has better measurement accuracy in actual application.

[0042] (2) Satellite detection is performed on simulated satellite images through image detection algorithms to obtain detection frames, which avoids the consumption of video memory in the training process caused by the large pixels of simulated satellite images, improves the loading efficiency of the data set during training, improves the efficiency of the training process, and ensures the accuracy of the training results.

[0043] (3) Using the detection images to train the relative pose model can effectively eliminate the differences in the same pose under different distances and the interference of distance information on pose measurement, making the relative pose model more accurate and robust. In the training process of the long-distance measurement model, the classification problem of fitting the relative pose weight distribution is used to obtain the fitted quaternion representation prediction result. Compared with directly regressing the quaternion, the classification and weighted fitting method can better guarantee the measurement accuracy under a large distance range.

[0044] (4) The loss function is used to optimize the training process to ensure the prediction accuracy of the training results. The loss function of the relative position measurement model is obtained by weighting the absolute loss and relative loss of the relative position, and the loss function of the proximity segment measurement model is obtained by weighting the variance loss and transposition loss of the relative posture of the proximity segment. This improves the optimization effect when optimizing the training process using the loss function, further improves the applicability and accuracy of the model, and improves the accuracy of the model prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a relative posture measurement method of the present invention;

[0046] Figure 2 It is a schematic diagram of the overall model structure of the relative posture measurement system of the present invention;

[0047] Figure 3 It is a structural schematic diagram of the relative position measurement module of the present invention;

[0048] Figure 4 It is a structural schematic diagram of the long-distance relative posture measurement algorithm of the present invention;

[0049] Figure 5 It is a structural schematic diagram of the approach segment relative posture measurement algorithm of the present invention. DETAILED DESCRIPTION

[0050] The present invention provides a method and system for relative posture measurement of non-cooperative targets based on deep learning. A data set is constructed by simulating target satellite images and their corresponding relative posture information, wherein the simulated satellite images include long-distance target satellite images covering a full range of postures and short-distance target satellite images simulating an approach process; a detection algorithm, i.e., a detection module, is used to perform satellite detection on the images and perform cropping and scaling to obtain a detection image, the simulated satellite images are input into a ResNet50 residual network for learning and training to obtain a relative position measurement model, and the detection images obtained from the simulated satellite images are input into a ResNet50 residual network for learning and training to obtain a relative posture measurement model, wherein the relative posture measurement model includes a long-distance measurement model and an approach segment measurement model; the model in the training process is optimized by a loss function between a prediction result and relative posture annotation information, and the measurement model obtained thereby can perform relative posture measurement of a spacecraft with higher accuracy.

[0051] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0052] like Figure 1 As shown, it is a flow chart of a relative posture measurement method of the present invention, wherein S301 to S303 are separately shown and described in the figure in order to clearly show the content of the steps, and the order is not limited. S304 to S305 are test steps after the training is completed, which are not measurement steps of the present method, but are used to test and verify the accuracy and precision of the model obtained by the training of the present method. The present method specifically includes the following steps:

[0053] Step 1: Construct a data set including simulated satellite images and relative pose annotation information.

[0054] A data set is constructed based on simulated target satellite images and their corresponding relative pose information; the data set is divided into two parts: one part is the simulated satellite images, and the other part is the relative pose annotation information; the simulated satellite images include long-distance target satellite images covering the full range of poses and short-distance target satellite images simulating the approach process; the relative pose annotation information is used to characterize the relative pose information of the corresponding simulated satellite images.

[0055] Create a corresponding data set, including the target satellite image x in the data set n (x n ∈X, n=1,2…,N, N is the total number of images in the sample data set, X is the set of all target satellite images) and their relative pose annotation information y k (y k ∈Y, k = 1, 2…, N, N is the total number of images in the sample data set, Y is the relative pose information data set corresponding to all target satellite images), each y k Contains relative position Z and relative posture p.

[0056] The data set is divided into two parts: simulated images of the target satellite and annotation information. The images consist of 40,000 images of long-distance full-range postures and 20,000 images simulating the approach process. Since it is easier to align the target satellite at the center of the image in engineering, the three-axis distance of the relative position is simplified to the distance of one axis in this embodiment. The target satellite is in the middle of the image. The specific distribution of the images is as follows:

[0057] (1) 40,000 images of long-distance full-range attitude. The distance is generated by random numbers with average distribution, and the range is (50, 100] m. The three-axis attitude angles are generated by random numbers with average distribution, and the roll angle range is [-180, 180), the pitch angle range is [-90, 90), and the yaw angle range is [-180, 180].

[0058] (2) Simulate the approach process with 20,000 images. The distance is generated by random numbers with average distribution, ranging from (8,50] m. The premise for the approach of the target satellite and the tracking satellite is usually that the principal inertial axes are parallel, that is, the roll angle is around -90° and the heading angle is around 90°, or the roll angle is around 90° and the heading angle is around -90°. Therefore, the roll angle and heading angle are simulated by normal distribution, which are divided into two cases: the mean roll angle is -90° and the mean heading angle is 90°, or the mean roll angle is 90° and the mean heading angle is -90°. The pitch angle is simulated by random numbers with average distribution, and the range is the same as the first part. There are 10,000 images for each case.

[0059] The relative pose annotations corresponding to the above 60,000 images, the relative 6D pose information of the satellite relative to the camera, including the three-axis distance and the three-axis attitude angle; the detection frame annotation, the coordinates of the upper left point of the detection frame (Bx1, By1), the coordinates of the lower right point of the detection frame (Bx2, By2), the detection frame can be annotated manually or by algorithm. Since the background and the target are obviously different in the embodiment, the target detection algorithm in step 2 is used for annotation.

[0060] The image resolution generated by simulation is usually large. In actual training, too large an image resolution will reduce the efficiency of data set loading during program operation and increase the video memory consumption during the training process. Therefore, the 60,000 generated images are post-processed to obtain images with a resolution of 640*640. The subsequent training can further set the scaling ratio according to the situation. In the training process of this embodiment, the image is scaled to 320*320 pixels.

[0061] It should be noted that the above pictures use 60,000 images, including 40,000 long-distance images and 20,000 close-distance images. The range of the long-distance image is (50,100]m, the range of the 20,000 images simulating the approach process is (8,50]m, and the values ​​of the angle distribution in the approach process images are only for illustration and are not strictly limited to the specific value range. In actual operation, the content of the above values ​​can be adjusted according to the actual situation.

[0062] Step 2: Perform satellite detection on the simulated satellite image to obtain a detection frame, and crop and scale the image information within the detection frame to obtain a detection image.

[0063] For each image x in the dataset i Through the target detection module, the detection frame is obtained, and the image information in the detection frame is cropped and scaled to 320*320 pixels to obtain the detection image xc i , the detection algorithm is as follows:

[0064] The detection frame obtained by performing satellite detection on the simulated satellite image is: the background in the embodiment is black, and the target satellite is detected by using a pixel detection method, starting from the upper left corner point and the lower right corner point of the image to traverse to the center, and each corner point is traversed twice. The outermost loop is the pixel coordinate u axis and v axis respectively. If the pixel value is not zero, the loop is stopped, and the pixel coordinates (u1, v1) and (u2, v2) are determined in the upper left corner, and the pixel coordinates (u3, v3) and (u4, v4) are determined in the lower left corner. The pixel coordinates of the upper left corner of the detection frame are (u2, v1) and the pixel coordinates of the lower right corner of the detection frame are (u4, v3), and then the detection frame is obtained. If the background color of the image is different, different detection algorithms and detection processes can also be used.

[0065] The attitude of the target satellite is independent of the distance information. The overall difference of the image is large when the same attitude is at different distances. Therefore, in the process of measuring the relative attitude, it is necessary to eliminate the interference of distance to make the attitude estimation more accurate and more robust. The target detection module is introduced. In theory, the only difference in clarity is the cropping and scaling of images of the same attitude but different distances. The actual situation is roughly the same, but there are slight differences. This is mainly due to the errors in the simulation image generation and the errors in the pixel completion through the interpolation function during the scaling process.

[0066] Step 3: Use the ResNet50 residual network as the backbone network to train the model of the simulated satellite images to obtain the relative position measurement model; use the ResNet50 residual network as the backbone network to train the model of the detection image to obtain the relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model.

[0067] Randomly select 90% of the simulated satellite images for training to obtain a relative position measurement model; select detection images obtained from the 90% of the simulated satellite images for training to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model;

[0068] The training of the relative position measurement model and the relative attitude measurement model both use the ResNet50 residual network as the backbone network, and the prediction accuracy is characterized by a loss function. The training process of the relative position measurement model and the training process of the relative attitude measurement model are optimized according to the loss function.

[0069] After the training is completed, the relative position measurement model and the relative attitude measurement model are tested, and the relative position and relative attitude obtained by the test are compared with the relative position information and relative attitude information in the relative position and attitude annotation information. If the error is within the allowable range of the project, the relative position measurement model and relative attitude measurement model obtained by training are considered accurate and can be used for the relative position and attitude measurement of the target satellite.

[0070] All 60,000 simulated images of the target satellite in the data set are used as the data set, and 90% of them are randomly selected as the training set to train the relative position measurement model to obtain the relative position measurement model.

[0071] The training process of the relative position measurement model is as follows: 90% of the randomly selected simulated satellite images are input into the ResNet50 residual network, and the ResNet50 outputs a 2048×10×10 feature map, which is then processed by the global average pooling layer to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by the fully connected layer and the Tanh() activation function to obtain the scalar distance.

[0072] The relative position range of the data set is distributed in (8, 100]m. Before training, the images and regression variables are normalized and converted into tensors to improve the calculation efficiency. The normalization formula of the distance regression variable is:

[0073] l z =Z / 100

[0074] Among them, l z Represents the variable of model regression, and Z represents the distance information in the annotation. Preprocess the image data to make its data distribution more reasonable, remove factors that affect the subsequent training precision and accuracy, such as noise interference, etc., perform preprocessing in the training iteration step, reduce the amount of training calculations, accelerate model convergence, and improve the reliability of the model. This embodiment uses normalization to process the image data. Normalization ensures that the data of the image in all dimensions changes within a certain range, avoiding the situation where the model cannot recognize the features due to factors such as feature expression.

[0075] Usually, the transformer() function is used for preprocessing in PyTorch, and multiple transformer() functions are combined together through the compose() function. Two transformer() functions are used in this embodiment:

[0076] transformer.ToTensor() maps the values ​​of PIL.Image(RGB) or numpy.ndarray(H x W xC) from 0 to 255 to the range of 0 to 1 and converts it into Tensor format.

[0077] transformer.Normalize(mean, std) normalizes the data using the following formula:

[0078] channel=(channel-mean) / std

[0079] Among them, the mean and standard value are both 0.5. After the above conversion, each pixel value of the image data is converted into a tensor in the range of [-1,1].

[0080] The relative position measurement module structure is as follows: Figure 3 As shown in Figure 2, since the proportion of satellites in the image directly affects the prediction of distance Z, the network input is the original image x i , use C×H×W to represent the size of the feature map, where x i 3×320×320, indicating that the image is converted to RGB three-channel dimensions, and the ResNet50 network outputs a 2048×10×10 feature map, which is converted to a 2048×1×1 feature map through a global average pooling layer, and then passes through a fully connected layer and a Tanh() activation function to output a scalar distance Z p , and the normalized label l z calculate Loss function, namely mean square error loss:

[0081]

[0082] ||||2 represents the binary norm operation.

[0083] At the same time, the relative loss of the relative distance is calculated to ensure the prediction accuracy of the relative distance at close range:

[0084]

[0085] The loss function of the relative position measurement model is obtained by weighting the absolute loss and relative loss of the relative position, and is expressed as follows:

[0086] L Z =λ1LZ1 +λ2L Z2

[0087] Among them, L Z represents the loss function of the relative position measurement model, L Z1 It represents the variance loss, i.e., the absolute loss, between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative position and pose annotation information of the simulated satellite image; L Z2 It represents the relative loss between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative pose annotation information of the simulated satellite image; λ1 and λ2 are the hyperparameters of the training setting, λ1=10, λ2=20.

[0088] The training process of the relative position measurement model is optimized according to the loss function as follows: the loss function of the relative position measurement model is substituted into the optimizer to optimize the training process of the relative position measurement model. The optimizer for training the relative position measurement module uses Adam, the learning rate is set to 0.001, and the learning strategy is that the learning rate is reduced to 0.1 every time 1 / 3 of the training progress is reached.

[0089] The 40,000 long-distance simulation images and 20,000 approach-stage simulation images of the target satellite in the data set are used as the data sets of the two models respectively. 90% are randomly selected as the training sets to train the relative attitude measurement model respectively, and the long-distance relative attitude measurement model and the approach-stage relative attitude measurement model are obtained:

[0090] Relative attitude measurement is mainly divided into two parts: relative attitude determination at long distance (50,100]m and relative attitude determination during approach (8,50]m. Two algorithms are designed for estimation: the long-distance measurement algorithm is applicable within the full angle range; the approach segment measurement algorithm is applicable to the approach process, when the attitude angles of the two axes do not change much and the attitude angle of one axis changes. The accuracy of the approach segment measurement algorithm is higher than that of the long-distance measurement algorithm, but its scope of application is smaller. Since the unit quaternion can represent the attitude angle and does not need to be normalized, the regression variable of the attitude angle is represented by the quaternion.

[0091] The training process of the long-distance measurement model is as follows: the detection image obtained from the satellite image of the long-distance target is input into ResNet50, ResNet50 outputs a 2048×10×10 feature map, which is then processed by the global average pooling layer to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by the classification layer and weighted quaternion fitting to obtain the fitted quaternion representing the relative posture at a long distance.

[0092] (1) The structure of the long-distance relative attitude measurement algorithm is as follows Figure 4As shown, the input is the original image detected by the satellite after the cropped and scaled detection image xc i , with a shape of 3×320×320. The image label information is first converted into a distribution on the three-axis attitude angle, and then converted into a quaternion form. The model transforms from directly regressing the quaternion to represent the relative attitude to fitting the classification problem of the relative attitude weight distribution. The output weight distribution is obtained by solving the eigenvector method to obtain the output quaternion.

[0093] The weight distribution method is as follows:

[0094] Set the H-type quaternion Q = {q1,...,q H}, the category is determined by dividing the attitude angle of a certain axis into M categories. Before training, the attitude label p of the image is converted into a quaternion q gt After that, it is further encoded into quaternion category weight labels, and the encoding method is:

[0095]

[0096] The function K(x,y) represents the regularization of the angular difference between two quaternions:

[0097]

[0098] in variance σ 2 It is obtained by approximating the quantization error. Δ / M represents the quantization interval, Δ represents the smoothing factor, and M represents the category of the Euler angle of each axis. x and y are used as variables to show the formula expression of the function, replacing q in the original calculation. i ,q gt , which has no practical significance in the present invention.

[0099] During testing, the weight distribution {w1,...,w N} and the corresponding H-type quaternion Q={q1,...,q H}The fitted quaternion is obtained by finding the minimum value through the weighted least squares method:

[0100]

[0101] Its optimal solution is the matrix The right null space of .

[0102] During training, KL divergence is used to calculate the predicted weight distribution p and the actual weight distribution q gt Difference as loss function:

[0103]

[0104] The total loss function is:

[0105] L q =λ3L c

[0106] That is, the loss function of the long-distance measurement model is obtained by calculating the KL divergence between the weight distribution predicted by the long-distance measurement model and the actual weight distribution, and is expressed as follows:

[0107]

[0108] Among them, L q represents the loss function of the long-distance measurement model, represents the expected calculation, i = 1, 2…H represents the number of quaternion categories, p(i) represents the weight of the predicted i-th category, q gt (i) represents the true value information of the weight of the i-th category of the simulated satellite image; λ3=50, which is the hyperparameter set for training;

[0109] The optimizer for training the long-distance relative posture measurement algorithm uses SGD. The learning rate of the backbone network parameters is set to 0.001, and the learning rate of the classification fully connected layer is 0.01. The learning strategy is to reduce the learning rate to the previous 0.1 every time 1 / 3 of the training progress is reached.

[0110] The training process of the approach segment measurement model is as follows: the detection image obtained from the satellite image of the close-range target is input into ResNet50, and the ResNet50 outputs a 2048×10×10 feature map, which is then processed by the global average pooling layer to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by the fully connected layer, the Tanh() activation function, and the unitization layer in turn to obtain the regression quaternion representing the relative posture at close range.

[0111] (2) The structure of the relative posture measurement algorithm in the approach phase is as follows: Figure 5 As shown, the input is the original image detected by the satellite after the cropped and scaled detection image xc i , with a shape of 3×320×320. The ResNet50 network and the global pooling layer output a 2048×1×1 feature map, which is then passed through a fully connected layer and a Tanh() activation function, and then through a unitization layer to obtain the regression quaternion variable p, which is calculated with the original quaternion label q Loss function, namely mean square error loss:

[0112]

[0113] Transposed loss:

[0114]

[0115] | | represents the absolute value operation of a norm.

[0116] The loss function of the close segment measurement model is obtained by weighting the variance loss and transposition loss of the close segment relative posture, which can be expressed as follows:

[0117] L O =λ4L O1 +λ5L O2

[0118] Among them, L O represents the loss function of the approach segment measurement model, L O1 represents the variance loss of the original quaternion of the relative posture information of a certain detection image predicted by the close segment measurement model and the relative posture information annotated in the relative posture annotation information of the detection image; L O2 It represents the transposition loss of the original quaternion of the relative posture predicted by the proximity segment measurement model for a certain detection image and the relative posture information annotated in the relative pose annotation information of the detection image; λ4 and λ5 are the hyperparameters of the training setting, λ4=50, λ5=50.

[0119] The optimizer used for the relative posture measurement algorithm in the training approach segment is Adam, and the learning rate is set to 0.001. The learning strategy is to reduce the learning rate to 0.1 every time 1 / 3 of the training progress is reached.

[0120] In the above training process, the optimization of the training process by a specific type of optimizer and the corresponding learning strategy are all examples, not specific restrictions. In the actual operation, adjustments can be made according to the actual situation.

[0121] Step 4: Input the target satellite image into the relative position measurement model and the relative attitude measurement model to obtain the relative position information and relative attitude information of the target satellite.

[0122] Test the relative pose measurement algorithm model:

[0123] According to the above steps, the relative pose dataset, the long-distance relative pose dataset and the close-range relative pose dataset are obtained, where 90% of each dataset is used as a training set and 10% as a test set, which are used for training and testing the relative position module, the long-distance relative pose algorithm and the close-range relative pose algorithm, respectively.

[0124] The relative position measurement model and the relative attitude measurement model are tested as follows: the relative position measurement model is tested using the remaining 10% of simulated satellite images that have not been trained, and the relative attitude measurement model is tested using the detection images obtained from the remaining 10% of simulated satellite images, and then the prediction results are compared with the relative attitude annotation information. If the error is within the engineering allowable range, the trained relative position measurement model and relative attitude measurement model are considered accurate and can be used for relative attitude measurement of the target satellite. It should be noted that using 90% training and 10% testing is only an example of the present invention and does not strictly limit the ratio. At the same time, the test does not necessarily use the simulated satellite images in the data set to test the accuracy. Actual images can also be selected for actual testing to verify the accuracy and precision of the model.

[0125] In order to prove the effectiveness of the method of the present invention, experiments were conducted on each module in the prepared test set. The experimental results are as follows:

[0126] The data set of the relative position measurement model has a total of 60,000 images, of which 10% are used as test sets and are not involved in training. They are used to test the prediction accuracy of the model. The test average absolute error is 0.6294m, the average relative error is 1.04%, the 95% relative error is within 2.52%, and the 90% relative error is within 2.07%.

[0127] The data set of the long-distance relative attitude measurement algorithm has a total of 40,000 images, 10% of which are used as test sets and are not involved in training. The angle difference is used to measure the error between the measurement and the actual. The average angle difference is 4.7611°, 95% of the angle difference is within 8.8561°, and 90% of the angle difference is within 8.0924°. When the two spacecraft are far apart, the attitude accuracy requirement is lower. This algorithm is used to achieve full-range relative attitude measurement.

[0128] The data set of the approach phase relative attitude measurement algorithm contains 20,000 approach process images, 10% of which are used as test sets and are not involved in training. The average angle difference is 1.8323°, 95% of the angle difference is within 3.6767°, and 90% of the angle difference is within 3.1030°. During the approach process, the attitude accuracy requirement is high, and this algorithm is used to achieve small-scale attitude estimation.

[0129] In addition, the present invention also conducts simulation in a sample close to the entire process, with an average absolute error of relative position of 0.1672m and an average relative attitude angle difference of 2.8166°.

[0130] The above experiments show that the method of the present invention is beneficial and further research is conducted in the field of spacecraft relative posture measurement based on deep learning methods. It can be used for relative posture measurement of spacecraft with high accuracy.

[0131] According to a relative posture measurement method of a non-cooperative target based on deep learning provided by the present invention, the present invention also provides a relative posture measurement system of a non-cooperative target based on deep learning, including a data module, a detection module, a training module and a testing module.

[0132] The data module includes a simulated satellite image module and a relative posture information annotation module; the relative posture information annotation module is used to characterize the relative posture information of the corresponding simulated satellite image module; the simulated satellite image module includes a long-distance target satellite image unit and a short-distance target satellite image unit, and the corresponding relative posture information annotation module includes a long-distance target satellite posture information unit and a short-distance target satellite posture information unit;

[0133] The detection module is used to perform satellite detection on the simulated satellite image of the simulated satellite image module to obtain a detection frame; and to crop and scale the image information in the detection frame to 320*320 pixels to obtain a detection image.

[0134] The detection module detects the target satellite through the pixel detection method: starting from the upper left corner and the lower right corner of the simulated satellite image, traverse to the center respectively, the upper left corner and the lower right corner are traversed twice, the outermost loop is the pixel coordinate u axis and v axis respectively, if the pixel value is not zero, the loop is stopped, the pixel coordinates (u1, v1) and (u2, v2) of the upper left corner are determined, and the pixel coordinates (u3, v3) and (u4, v4) of the lower left corner are determined, and the pixel coordinates of the upper left corner of the detection frame are (u2, v1) and the pixel coordinates of the lower right corner of the detection frame are (u4, v3), and then the detection frame is obtained.

[0135] The training module is used to train 90% of the simulated satellite images randomly selected from the simulated satellite image module to obtain a relative position measurement model; and to train the detection images obtained from 90% of the simulated satellite images to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model;

[0136] In the training module, the relative position measurement model and the relative attitude measurement model are trained using the ResNet50 residual network as the backbone network, and the prediction accuracy is characterized by a loss function, and the training process of the relative position measurement model and the training process of the relative attitude measurement model are optimized according to the loss function;

[0137] The training process of the relative position measurement model is as follows: 90% of the simulated satellite images randomly selected from the simulated satellite image module are input into the ResNet50 residual network, and the ResNet50 outputs a 2048×10×10 feature map, which is then processed by the global average pooling layer to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by the fully connected layer and the Tanh() activation function to obtain a scalar distance. The loss function of the relative position measurement model is substituted into the optimizer to optimize the training process of the relative position measurement model.

[0138] The loss function of the relative position measurement model is obtained by weighting the absolute loss and relative loss of the relative position, and is expressed as follows:

[0139] L Z =λ1L Z1 +λ2L Z2

[0140] Among them, L Z represents the loss function of the relative position measurement model, L Z1 It represents the variance loss, i.e., the absolute loss, between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative position and pose annotation information of the simulated satellite image; L Z2 It represents the relative loss between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative pose annotation information of the simulated satellite image; λ1 and λ2 are the hyperparameters of the training setting, λ1=10, λ2=20.

[0141] The training process of the long-distance measurement model is as follows: the detection image obtained from the long-distance target satellite image in 90% of the simulated satellite images is input into ResNet50, the ResNet50 outputs a 2048×10×10 feature map, which is processed by the global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is processed by the classification layer and weighted quaternion fitting to obtain the fitting quaternion representing the relative posture at a long distance;

[0142] The loss function of the long-distance measurement model is obtained by calculating the KL divergence between the weight distribution predicted by the long-distance measurement model and the actual weight distribution, and is expressed as follows:

[0143]

[0144] Among them, L q represents the loss function of the long-distance measurement model, represents the expected calculation, i = 1, 2…H represents the number of quaternion categories, p(i) represents the weight of the predicted i-th category, q gt(i) represents the true value information of the weight of the i-th category of the simulated satellite image; λ3=50, which is the hyperparameter set for training;

[0145] The number of quaternion categories H of the long-distance measurement model is determined by dividing the attitude angle of a certain axis into M categories, H = M 3 ;

[0146] The calculation method of the fitted quaternion is: using the weighted least squares method to calculate the weight distribution {w1,...,w H} and the corresponding H-type quaternion Q={q1,...,q H}Find the minimum value and obtain the fitting quaternion.

[0147] The training process of the approach segment measurement model is as follows: the detection image obtained from the close-range target satellite images in 90% of the simulated satellite images is input into ResNet50, and the ResNet50 outputs a 2048×10×10 feature map, which is then processed by the global average pooling layer to obtain a 2048×1×1 feature map. The 2048×1×1 feature map is processed by the fully connected layer, the Tanh() activation function, and the unitization layer in turn to obtain a regression quaternion representing the relative posture at close range.

[0148] The loss function of the close segment measurement model is obtained by weighting the variance loss and transposition loss of the close segment relative posture, which can be expressed as follows:

[0149] L O =λ4L O1 +λ5L O2

[0150] Among them, L O represents the loss function of the approach segment measurement model, L O1 represents the variance loss of the original quaternion of the relative posture information of a certain detection image predicted by the close segment measurement model and the relative posture information annotated in the relative posture annotation information of the detection image; L O2 It represents the transposition loss of the original quaternion of the relative posture predicted by the proximity segment measurement model for a certain detection image and the relative posture information annotated in the relative pose annotation information of the detection image; λ4 and λ5 are the hyperparameters of the training setting, λ4=50, λ5=50.

[0151] The testing module is used to test the trained relative position measurement model and relative attitude measurement model to verify whether the errors between the relative position and relative attitude predicted by the relative position measurement model and the relative attitude measurement model and the corresponding relative position information and relative attitude information in the relative posture information labeling module are within the range allowed by the project.

[0152] The above specific embodiments only describe the design principle of the present invention. The shapes and names of the components in the description may be different and are not limited. Therefore, those skilled in the art in the field of the present invention may modify or replace the technical solutions recorded in the above embodiments; and these modifications and replacements do not deviate from the creative purpose and technical solutions of the present invention and should all fall within the protection scope of the present invention.

Claims

1. A non-cooperative target relative pose measurement method based on deep learning, characterized in that: include: Step 1: Construct a dataset including simulated satellite images and relative pose annotation information; The simulated satellite images include long-range target satellite images covering a full range of attitudes and short-range target satellite images simulating an approach process; Step 2: performing satellite detection on the simulated satellite image to obtain a detection frame, and cropping and scaling the image information within the detection frame to obtain a detection image; Step 3: Using the simulated satellite image to perform model training to obtain a relative position measurement model; using the detection image to perform model training to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model; Step 4: Input the target satellite image into the relative position measurement model and the relative attitude measurement model to obtain the relative position information and relative attitude information of the target satellite; In step 2, satellite detection is performed on the simulated satellite image to obtain a detection frame: the target satellite is detected using a pixel detection method, starting from the upper left corner and the lower right corner of the simulated satellite image to the center, respectively. The upper left corner and the lower right corner are traversed twice. The outermost loop is the pixel coordinate u axis and the v axis respectively. If the pixel value is not zero, the loop is stopped. The pixel coordinates of the upper left corner are determined to be (u1, v1) and (u2, v2), and the pixel coordinates of the lower left corner are determined to be (u3, v3) and (u4, v4). The pixel coordinates of the upper left corner of the detection frame are obtained to be (u2, v1), and the pixel coordinates of the lower right corner of the detection frame are obtained to be (u4, v3), and then the detection frame is obtained. In step 3, the training process of the relative position measurement model is as follows: the simulated satellite image is input into the ResNet50 residual network, the ResNet50 output 2048×10×10 feature map is subjected to the global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is processed by the fully connected layer and the Tanh() activation function to obtain the scalar distance; In step 3, the training process of the long-distance measurement model is as follows: the detection image obtained from the long-distance target satellite image in the simulated satellite image is input into ResNet50, the ResNet50 output 2048×10×10 feature map is subjected to the global average pooling layer to obtain a 2048×1×1 feature map, the 2048×1×1 feature map is subjected to the classification layer and weighted quaternion fitting processing to obtain a fitting quaternion representing the relative posture at a long distance; The training process of the close-range measurement model is as follows: the detection image obtained from the close-range target satellite image in the simulated satellite image is input into ResNet50, the ResNet50 outputs a 2048×10×10 feature map, which is then processed by a global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is sequentially processed by a fully connected layer, a Tanh() activation function, and a normalization layer to obtain a regression quaternion representing the relative posture at close range; Optimizing the training process of the relative position measurement model and the relative posture measurement model using a loss function; The loss function of the relative position measurement model is obtained by weighting the absolute loss and relative loss of the relative position, and is expressed as follows: L Z =λ1L Z1 +λ2L Z2 Among them, L Z Represents the loss function of the relative position measurement model, L Z1 It represents the variance loss, i.e., the absolute loss, between the relative position predicted by the relative position measurement model of a simulated satellite image and the relative position information annotated in the relative pose annotation information of the simulated satellite image; L Z2 The relative loss is the ratio of the difference between the relative position of a simulated satellite image predicted by the relative position measurement model and the relative position information annotated in the relative pose annotation information of the simulated satellite image to the annotated relative position information; λ1 and λ2 are hyperparameters set for training, λ1 = 10, λ2 = 20; The loss function of the relative posture measurement model includes a loss function of a long-distance measurement model and a loss function of a close-range measurement model; The loss function of the long-distance measurement model is obtained by calculating the KL divergence between the weight distribution predicted by the long-distance measurement model and the actual weight distribution, and is expressed as follows: Among them, L q represents the loss function of the long-distance measurement model, represents the expected calculation, i=1,2...H represents the number of quaternion categories, p(i) represents the weight of the predicted i-th category, q gt (i) represents the true value information of the weight of the i-th category of the simulated satellite image; λ3 = 50, which is the hyperparameter set for training; The loss function of the close segment measurement model is obtained by weighting the variance loss and transposition loss of the close segment relative posture, and is expressed as follows: L O =λ4L O1 +λ5L O2 Among them, L O represents the loss function of the close segment measurement model, L O1 L represents the variance loss between the relative pose of a certain detection image predicted by the proximity segment measurement model and the original quaternion of the relative pose information annotated in the relative pose annotation information of the detection image; O2 represents the transposition loss between the relative pose of a certain detection image predicted by the proximity segment measurement model and the original quaternion of the relative pose information annotated in the relative pose annotation information of the detection image; λ4 and λ5 are hyperparameters set for training, λ4 = 50, λ5 = 50; The quaternion category number H of the long-distance measurement model is determined by dividing the attitude angle of a certain axis into M categories, H=M 3 ; The calculation method of the fitting quaternion is: using the weighted least square method to calculate the weight distribution {w1,...,w H } and the corresponding H-type quaternion Q={q1,...,q H }Find the minimum value to obtain the fitting quaternion.

2. A non-cooperative target relative pose measurement system based on deep learning, characterized in that: The method according to claim 1 is used for measurement, comprising a data module, a detection module, and a training module; The data module includes a simulated satellite image unit and a relative posture information marking unit; the simulated satellite image unit includes a long-range target satellite image subunit and a short-range target satellite image subunit; The detection module is used to perform satellite detection on the simulated satellite image of the simulated satellite image unit to obtain a detection frame; and to crop and scale the image information within the detection frame to obtain a detection image; The training module uses the ResNet50 residual network as the backbone network to train the simulated satellite images to obtain a relative position measurement model; and to train the detection images to obtain a relative attitude measurement model; the relative attitude measurement model includes a long-distance measurement model and a close-range measurement model.

3. The relative posture measurement system according to claim 2, wherein: The detection module detects the target satellite through a pixel detection method: starting from the upper left corner and the lower right corner of the simulated satellite image, traversing toward the center, the upper left corner and the lower right corner are traversed twice, the outermost loops are the pixel coordinates u axis and v axis respectively, if the pixel value is not zero, the loop is stopped, the pixel coordinates (u1, v1) and (u2, v2) of the upper left corner are determined, and the pixel coordinates (u3, v3) and (u4, v4) of the lower left corner are determined, and the pixel coordinates of the upper left corner of the detection frame are obtained as (u2, v1), and the pixel coordinates of the lower right corner of the detection frame are obtained as (u4, v3), and then the detection frame is obtained.

4. The relative posture measurement system according to claim 2, wherein: In the training module, the training process of the relative position measurement model is as follows: the simulated satellite image is input into the ResNet50 residual network, the ResNet50 output 2048×10×10 feature map is subjected to the global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is processed by the fully connected layer and the Tanh() activation function to obtain a scalar distance; The training process of the long-distance measurement model is as follows: the detection image obtained from the long-distance target satellite image in the simulated satellite image is input into ResNet50, the ResNet50 output 2048×10×10 feature map is subjected to the global average pooling layer to obtain a 2048×1×1 feature map, the 2048×1×1 feature map is subjected to the classification layer and weighted quaternion fitting processing to obtain a fitting quaternion representing the relative posture at a long distance; The training process of the close-range measurement model is as follows: the detection image obtained from the close-range target satellite image in the simulated satellite image is input into ResNet50, the ResNet50 output 2048×10×10 feature map is subjected to the global average pooling layer to obtain a 2048×1×1 feature map, and the 2048×1×1 feature map is sequentially processed by the fully connected layer, the Tanh() activation function and the unitization layer to obtain a regression quaternion representing the relative posture at close range.

5. The relative posture measurement system according to claim 2, wherein: An optimization unit is provided in the training module, and the optimization unit optimizes the training process of the relative position measurement model and the relative posture measurement model through a loss function.

Citation Information

Patent Citations

  • Deep learning and geometric algorithm combined non-cooperative target relative pose estimation method

    CN111862126A

  • Spatial non-cooperative target relative pose estimation method based on deep learning

    CN111862201A