Satellite relative pose prediction method based on improved Transform

By establishing a non-center-of-mass relative motion dynamics model and an improved Transformer network model, the problem of the service spacecraft being difficult to predict the relative pose of the target spacecraft during emergencies is solved, efficient and accurate relative motion prediction is achieved, and the control difficulty is reduced. .

CN118534930APending Publication Date: 2024-08-23BEIJING INST OF TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410414190.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

During space emergency response, it is difficult for the service spacecraft to accurately predict the relative pose and attitude motion of the target spacecraft in a short period of time, especially when the target spacecraft has a fast rotation angular velocity, resulting in a short tracking window and attitude-orbit coupling. It has strong characteristics and is difficult to achieve precise maneuvering control.

Method used

By establishing a dynamic model of relative motion between non-centroids, collecting relative attitude and orbit information and performing hierarchical processing, an improved Transformer network model is established, and the parallel network structure is used for training to achieve rapid and accurate prediction of the satellite's relative attitude.

Benefits of technology

It achieves relative motion posture prediction with high timeliness, high accuracy and low calculation amount, reduces the difficulty of attitude and orbit control during on-orbit service, and improves the success rate of docking or capture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534930A
    Figure CN118534930A
Patent Text Reader

Abstract

The invention discloses a satellite relative pose prediction method based on an improved Transform, and belongs to the technical field of aerospace. The implementation method comprises the following steps: establishing a non-centroid relative motion equation set for describing attitude and orbit coupling relative motion of a service spacecraft execution mechanism and a target point on a target spacecraft; the method comprises the following steps: collecting and considering relative attitude and orbit information sequences of different initial relative positions and relative attitudes, and carrying out hierarchical processing to establish a training set of different sub-networks of a Transform network model for predicting and improving relative motion attitude and orbit information; the method comprises the following steps of: predicting and improving a Transform network model by establishing relative motion attitude and orbit information; training an improved Transform network model for predicting the attitude and orbit information of the relative motion; and predicting the improved Transform network model by using the relative motion attitude and orbit information, and predicting the attitude and orbit coupling relative motion of the service spacecraft and the target point. The method has the advantages of high timeliness, high accuracy and low calculation amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a satellite relative position and attitude prediction method based on an improved Transformer, which is applicable to the relative position and attitude motion prediction of a service spacecraft during agile maneuvering control in a space emergency handling process, and belongs to the field of aerospace technology. Background Art

[0002] With the complexity, diversification and frequency of space missions, spacecraft often need to deal with a variety of emergencies caused by themselves or external factors during their life cycle. For example, the satellite does not enter orbit normally during the launch phase, the spacecraft fails during the orbit, and the spacecraft fuel is exhausted at the end of its life. In order to reduce the impact and losses caused by the above three different stages of space emergencies, the service spacecraft needs to perform auxiliary orbit entry operations, fault repair on-orbit, and fuel refueling on-orbit. The common point of these three types of emergency rescue missions is that the service spacecraft needs to perform agile maneuvering control to achieve docking or grabbing with the target spacecraft. At the same time, the target of docking or grabbing is a certain target point on the target spacecraft, and the service spacecraft uses the actuator to perform the final grab or docking. Since the satellite to be rescued is generally in a state of attitude and orbit control failure, the satellite itself may have a large spin angular velocity. The service spacecraft needs to quickly maneuver from a long distance to the vicinity of the target spacecraft, and accurately realize the docking or capture of the actuator with the target point on the target spacecraft. Therefore, for the development of emergency rescue service spacecraft, the first thing to solve is the theory and problems related to the spacecraft's space agile attitude maneuvering control technology.

[0003] One of the major difficulties in agile attitude maneuvering control technology in space is the attitude-orbit coupling control under rapid follow-up. Since the target spacecraft may have a relatively fast rotational angular velocity, the service spacecraft actuator has a relatively short tracking window for the capture position and a relatively strong attitude-orbit coupling characteristic, and it is likely that the tracking and following task cannot be completed within the tracking window (Huang Jinglin. Research on close approach and capture motion planning in on-orbit maintenance tasks [D]. Harbin University of Science and Technology, 2023. DOI: 10.27063 / d.cnki.ghlgu.2023.000224.). An effective way to solve this problem is to use the previous observation information of the failed tumbling target to predict the target motion in advance, so that the service spacecraft can start to rotate in advance before entering the tracking window.

[0004] There are three types of methods for motion prediction of failed rolling targets. The first type is based on dynamic recursion. This type of method uses dynamic models and control laws to give motion predictions in a recursive manner based on the current state. This method is difficult to achieve fast and accurate motion prediction because it is difficult to balance dynamic accuracy and calculation rate. The second type of method is based on information fusion prediction, which is mainly based on filtering algorithms (Mu Qingtao. Research on autonomous capture path planning of space moving targets [D]. Harbin Institute of Technology, 2014.). Since the theoretical basis of the filtering algorithm is a linear Gaussian system, it is difficult to guarantee the effect on nonlinear and non-Gaussian systems, and the filtering algorithm has high requirements for the accuracy of prior information and the amount of calculation. In terms of motion prediction of failed rolling targets in space, filtering algorithms are difficult to achieve real-time and accurate prediction. The third type is motion prediction methods based on artificial intelligence technology. The motion prediction problem belongs to a time series problem, and the commonly used network structures in the past are RNN and LSTM. Since RNN and LSTM architectures require sequential training and cannot be parallelized, they require a lot of training time and the training results are difficult to guarantee (Huang Jinglin. Research on close approach and capture motion planning in on-orbit maintenance tasks [D]. Harbin University of Science and Technology, 2023. DOI: 10.27063 / d.cnki.ghlgu.2023.000224.). With the rise of large language models, network structures based on the Transformer architecture that can be parallelized have attracted widespread attention. At the same time, since the large model of the Transformer architecture requires a lot of computing resources, there is a problem of high training cost. This method proposes a satellite relative pose prediction method based on an improved Transformer. On the basis of the Transformer architecture, the model input and output data structure is improved and the satellite relative motion pose prediction with low cost and fast learning is achieved through a parallel network. Summary of the invention

[0005] The technical problem to be solved by the satellite relative posture prediction method based on improved Transformer disclosed in the present invention is: providing relative posture motion prediction for target points on target spacecraft during the service spacecraft agile maneuvering control process, establishing accurate non-center-of-mass relative motion dynamics and collecting relative motion posture data, hierarchically processing the relative motion posture data to establish two training sets of different sub-networks of the improved Transformer network model for relative motion posture and orbit information prediction, establishing and training the improved Transformer network model for relative motion posture and orbit information prediction, and using existing target information to complete motion prediction within a period of time in the future, that is, realizing satellite relative posture prediction based on improved Transformer. The present invention has the advantages of high timeliness, high accuracy and low computational complexity.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] The invention discloses a satellite relative posture prediction method based on an improved Transformer, which is characterized by establishing a group of relative motion equations between non-centers of mass that describe the attitude-orbit coupled relative motion between a service spacecraft actuator and a target point on a target spacecraft; collecting relative attitude-orbit information sequences that consider different initial relative positions and relative postures and performing hierarchical processing to establish training sets of different sub-networks of an improved Transformer network model for relative motion attitude-orbit information prediction; establishing an improved Transformer network model for relative motion attitude-orbit information prediction; training the improved Transformer network model for relative motion attitude-orbit information prediction; and using the improved Transformer network model for relative motion attitude-orbit information prediction to predict the attitude-orbit coupled relative motion between the service spacecraft and the target point.

[0008] The satellite relative posture prediction method based on improved Transformer disclosed in the present invention comprises the following steps:

[0009] Step 1: Establish a relative attitude motion dynamics model between the target spacecraft and the service spacecraft, establish the relative motion dynamics equation between the center of mass of the target spacecraft and the service spacecraft, and integrate the relative attitude motion model and the relative motion equation between the centers of mass into a non-center-of-mass relative motion dynamics model of the service spacecraft actuator relative to the target point on the target spacecraft.

[0010] The relative attitude motion model between the target spacecraft and the service spacecraft is expressed as:

[0011]

[0012] where q C =[q c0 q c1 q c2 q c3 ] T represents the attitude quaternion of the target spacecraft, Represents the rate of change of the target spacecraft's attitude quaternion, and defines ζ c =[q c1 q c2 q c3 ] T is the vector part of the attitude quaternion, ω C is the angular velocity of the target spacecraft, J C is the moment of inertia of the target spacecraft, subscript B C is the identifier of the variable in the body coordinate system of the target spacecraft (x, y, z axes coincide with the principal axis of inertia), is the expression of the target spacecraft rotation angular velocity in the body coordinate system, is the expression of the target spacecraft rotation angular acceleration in the body coordinate system, and the superscript × represents the cross product matrix of the variables. represents the gravity gradient torque of the target spacecraft. In addition, the Ξ(q) function expression is as follows:

[0013]

[0014] The motion and attitude dynamics equations of the service spacecraft are:

[0015]

[0016] where q d =[q d0 q d1 q d2 q d3 ] T represents the attitude quaternion of the service spacecraft, Represents the rate of change of the attitude quaternion of the service spacecraft, and defines ζ d =[q d1 q d2 q d3 ] T is the vector part of the attitude quaternion, ω d is the angular velocity of the service spacecraft, J d is the moment of inertia of the service spacecraft, subscript B d It is the identifier of the variable in the spacecraft's body coordinate system (x, y, z axes coincide with the principal axis of inertia). To express the angular velocity of the spacecraft in the body coordinate system, To express the spacecraft rotation angular acceleration in the body coordinate system, the superscript × represents the cross product matrix of the variables. represents the gravity gradient torque of the service spacecraft, Control torque for servicing spacecraft.

[0017] The relative attitude dynamics of the service spacecraft relative to the target spacecraft is:

[0018]

[0019] in is the relative attitude angular acceleration between the center of mass of the service spacecraft and the target spacecraft, To calculate the relative attitude angular velocity between the center of mass of the service spacecraft and the target spacecraft, the coordinate system identifier in the upper left corner of the variable represents the coordinate system represented by the variable, and the coordinate system identifier in the lower right corner represents that the variable is a variable of a certain coordinate system. The rotation matrix expression involved in the above formula is as follows, where r c and are the position and velocity vector of the target spacecraft in the inertial system.

[0020]

[0021]

[0022]

[0023]

[0024]

[0025]

[0026]

[0027]

[0028] The relative motion dynamics equation between the target spacecraft and the service spacecraft mass center is described in the target spacecraft orbital coordinate system L C That is, the x-axis points outward along the orbit radius, the z-axis is perpendicular to the orbit plane, and the y-axis and the other two axes form a right-hand system. The expression is as follows:

[0029]

[0030] Among them, is the relative motion position, velocity, and acceleration measurement, represents the orbital angular acceleration of the target spacecraft, μ is the gravitational constant of the Earth, r is the corresponding spacecraft position scalar, and ∑F represents the resultant force of the satellite system.

[0031] The non-center-of-mass relative motion dynamics model of the service spacecraft actuator relative to the target point on the target spacecraft is as follows:

[0032]

[0033] The superscripts i and j represent the actuators of the service spacecraft, and the superscripts i and j represent the docking mechanism of the target spacecraft. That is, the relative position of the docking actuator of the service spacecraft and the docking point of the target spacecraft is expressed in the orbital coordinate system of the target spacecraft. is the position of the service spacecraft docking actuator relative to the center of mass of the service spacecraft, P c j is the position of the target spacecraft docking point relative to the target spacecraft's center of mass. Replace with:

[0034]

[0035]

[0036] Formula (14) is the coupling dynamic model between the actuator of the service spacecraft and the non-center-of-mass target point on the target spacecraft.

[0037] Step 2: Set the feasible interval of the initial state of the relative attitude and orbit of the service spacecraft and the target spacecraft; repeatedly randomly select values ​​within the feasible interval to initialize the relative attitude and orbit state of the spacecraft and call the non-center-of-mass coupling dynamics model between the service spacecraft actuator and the target point on the target spacecraft established in step 1 for dynamic recursion, and record the non-center-of-mass relative position between the service spacecraft actuator and the docking point of the target spacecraft Relative angular velocity The training data set is established by layering the collected information.

[0038] Step 2.1: Determine the feasible interval of the initial state of the relative attitude and orbit of the service spacecraft and the target spacecraft according to the relative dynamic motion characteristics. Select the six orbital elements of the target spacecraft, the angular velocity of the attitude rotation of the target spacecraft, the relative position between the center of mass of the service spacecraft and the center of mass of the target spacecraft, the initial position of the actuator of the service spacecraft relative to the docking mechanism of the target spacecraft, and the angular velocity of the attitude rotation of the service spacecraft as variables, and define the feasible interval for the variables.

[0039] Step 2.2 Randomly select the six orbital numbers of the target spacecraft, the target spacecraft attitude rotation angular velocity, the relative position between the service spacecraft center of mass and the target spacecraft center of mass, the initial position of the service spacecraft actuator relative to the target spacecraft docking mechanism, and the service spacecraft attitude rotation angular velocity in their corresponding variable intervals to initialize the initial states of the service spacecraft and the target spacecraft. Use the coupled dynamics model between the service spacecraft actuator and the non-center of mass of the target point on the target spacecraft established in step 1 to perform dynamic recursion and record the non-center of mass relative position of the length α+β. Relative angular velocity Information, where α and β are constants, determine the length of the predicted motion information. Repeat state initialization, dynamic recursion and information recording γ times, where γ is the expected number of training set data.

[0040] Step 2.3 is for the non-center relative position recorded in step 2.2 Relative angular velocity The information is processed in layers to form two training data sets. The so-called layered processing is to record the relative positions of the non-centroids of the first α lengths in the information. Relative angular velocity As the training input, the relative position of the non-centroid of β length after the information As the training target quantity, establish training set 1, but at the same time, training set 1 also needs to record the relative rotation angular velocity of the β length after the information as the target output of the first training in step 4.2; record the relative position of the non-center of mass of the first α length in the recorded information Relative angular velocity As the training input, the relative rotation angular velocity of the β length after the information As the training target, establish training set 2. Different from the training set required by the traditional Transformer architecture, training set 1 and training set 2 do not perform data calibration for the start and end of prediction, which makes the relative motion posture and trajectory information prediction improved Transformer network model do not need to identify the start or end of prediction, which will lead to a reduction in model size requirements.

[0041] Step 3: Improve the Transformer architecture to establish an improved Transformer network model for relative motion attitude and orbit information prediction. Use the characteristics of the spacecraft's six-dimensional motion information to simplify the network structure; at the same time, build the overall network in parallel with two similar sub-networks, flatten the network structure by fitting the position information and attitude information respectively through the two sub-networks, and simplify the network structure by using the inconsistent frequency of the spacecraft's relative motion orbit change and attitude change, avoiding the use of an overly deep network structure that causes unstable training and the need to fit complex attitude and orbit information at the same time, which leads to an increase in the model size.

[0042] Step 3.1 Improve the network structure based on the Transformer architecture for a single sub-network. First, establish a standard Transformer model so that improvements can be made on this basis. The first step is to cancel the embedding operation in the original architecture, treat the six-dimensional relative position and posture information at each moment as an information point z, and use the specific relative position value and relative posture value as the specific value of the information point. As the input of the encoder and decoder. The subscript r indicates the relative position, and ω indicates the relative posture. On this basis, the Sigmoid layer at the decoder output is replaced with a fully connected layer, so that the improved Transformer network model subnetwork can output accurate digital information instead of probability information. Finally, the feedforward operation of the first masked multi-head self-attention layer of the decoder is cancelled to prevent the target output data from affecting the learning process and increase the accuracy of the network during use.

[0043] Step 3.2 establishes two sub-networks of the improved Transformer network model in step 3.1, connects the two sub-networks in parallel, takes the first three dimensions output by the first improved Transformer network model sub-network and the last three dimensions output by the second improved Transformer network model sub-network, and forms the output of the improved Transformer network model for relative motion attitude and trajectory information prediction. Among them, the first three dimensions output by the first improved Transformer network model sub-network are the fitted relative motion position information, and the last three dimensions output by the second improved Transformer network model sub-network are the fitted relative attitude motion information. By establishing two sub-networks and connecting them in parallel, the expansion of the model scale and the instability of training caused by the simultaneous fitting of position and attitude information of different frequencies by a single network structure are avoided.

[0044] Step 4: Use the training set 1 established in step 2.3 to train the first improved Transformer network model subnetwork, so that the first improved Transformer network model subnetwork has the ability to fit the relative motion position information of β length according to the relative motion position information and relative attitude information of α length, that is, it can fit the coupling effect of orbital operation trend and attitude on orbit. On this basis, the self-attention mechanism in the first improved Transformer network model subnetwork has learned the weight relationship between position and attitude well. Use training set 2 to train on the basis of the first improved Transformer network model subnetwork that has been trained, and obtain the second improved Transformer network model subnetwork, so that the second improved Transformer network model subnetwork has the ability to fit the relative attitude position information of β length according to the relative motion position information and relative attitude information of α length, that is, it can predict the attitude motion trend, that is, the relative motion attitude track information prediction improved Transformer network model obtained by training.

[0045] Step 4.1: Use the normalization method to normalize the training set data. The training set consists of three-dimensional position and three-dimensional attitude. Each dimension of information is normalized separately. The normalization operation is as follows:

[0046]

[0047] where z i is the data of the i-th dimension of the training set, the subscript min is the minimum value of the data in the training set dimension, max represents the maximum value of the data in the training set dimension, and new represents the normalized data.

[0048] Step 4.2: For the first improved Transformer network model sub-network, use the training set 1 established in step 2.3 for training. The input scale of the training set data is α×6, and the output scale is β×6. When calculating the loss, use all six-dimensional data to calculate to ensure that the sub-network accurately learns the position and posture weight information. On this basis, use training set 1 for training again, but when calculating the loss of this training, use the first three-dimensional data for calculation, that is, the target output of β×3 scale is calculated with the first three-dimensional data of the network output, so as to achieve the purpose of the network fitting only the relative motion position information. On this basis, select the appropriate learning rate, batch learning number, select the L1 loss function for training, and save the model.

[0049] Step 4.3: For the second improved Transformer network model sub-network, use the training set 2 established in step 2.3 to train the first improved Transformer network model sub-network that has been trained in step 4.2. The input scale of the training set data is α×6, and the output scale is β×6. However, when calculating the loss, the posterior three-dimensional data is used for calculation, that is, the target output of β×3 scale is calculated with the posterior three-dimensional data output by the network, so as to achieve the purpose of the network fitting only the relative motion posture information. On this basis, select the appropriate learning rate, batch learning number, select the L1 loss function for training, and save the model.

[0050] Step 4.4 connects the first and second improved Transformer network model sub-networks trained in steps 4.2 and 4.3 in parallel, so that the two networks have the same input, and at the same time can use the outputs of the two networks to combine into the relative motion attitude and orbit information prediction improved Transformer network model output, forming the relative motion attitude and orbit information prediction improved Transformer network model, that is, the trained relative motion attitude and orbit information prediction improved Transformer network model.

[0051] Step 5: Use the relative motion attitude and orbit information obtained in step 4 to predict the improved Transformer network model, and predict the non-center-of-mass relative motion of the service spacecraft actuator relative to the target spacecraft docking point. According to the observed relative motion attitude and orbit information of α steps, the relative motion attitude and orbit information of the future β steps is predicted, that is, the relative position and orbit prediction of the satellite is realized based on the improved Transformer.

[0052] Beneficial effects:

[0053] 1. The satellite relative posture prediction method based on improved Transformer disclosed in the present invention establishes a group of relative motion equations between non-centers of mass that describe the attitude-orbit coupling relative motion between the service spacecraft actuator and the target point on the target spacecraft, and uses the different frequencies of spacecraft attitude and orbit changes to establish relative motion attitude-orbit information prediction. The improved Transformer network model fits the relative motion between non-centers of mass that couples the attitude-orbit coupling relative motion between the service spacecraft actuator and the target point on the target spacecraft, providing a method for predicting the ultra-close-range attitude-orbit coupling motion of complex and fast-moving spacecraft.

[0054] 2. The satellite relative position and attitude prediction method based on improved Transformer disclosed in the present invention utilizes the characteristics of the six-dimensional motion information of the spacecraft to simplify the network structure; at the same time, the overall network is constructed by connecting two similar sub-networks in parallel, and the network structure is flattened by fitting the position information and attitude information respectively through the two sub-networks. The network structure is simplified by utilizing the inconsistent frequency of the spacecraft relative motion orbit change and attitude change, thereby avoiding the training instability caused by the use of an overly deep network structure and the expansion of the model scale due to the need to simultaneously fit complex attitude and orbit information.

[0055] 3. The satellite relative position and attitude prediction method based on improved Transformer disclosed in the present invention avoids the data calibration of the prediction start and end of the training set by fixing the prediction step size, so that the improved Transformer network model for relative motion attitude and orbit information prediction does not need to identify the prediction start or end, which will lead to a reduction in model scale requirements, further reduce prediction time, and reduce the difficulty of attitude and orbit control during on-orbit service.

[0056] 4. The satellite relative position and posture prediction method based on the improved Transformer disclosed in the present invention performs training of the first improved Transformer network model sub-network. On this basis, the self-attention mechanism in the first improved Transformer network model sub-network has better learned the weight relationship between position and posture. Training is performed on the basis of the already trained first improved Transformer network model sub-network using training set 2 to avoid repeated training of similar data by the two sub-networks, thereby improving the training efficiency of the Transformer network model. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a network structure diagram of the improved Transformer architecture in the satellite relative posture prediction method based on the improved Transformer disclosed in the present invention.

[0058] Figure 2 This is the loss function diagram of the first training process.

[0059] Figure 3 Error plot on test data of the network after the first training of the application.

[0060] Figure 4 This is the loss function diagram of the second training process.

[0061] Figure 5 Error graph of the test data after the second training of the network.

[0062] Figure 6 This is the loss function diagram of the third training process.

[0063] Figure 7 Error plot on test data for a network with an improved Transformer architecture for the application.

[0064] Figure 8 The present invention discloses a flow chart of a satellite relative posture prediction method based on an improved Transformer. DETAILED DESCRIPTION

[0065] In order to better illustrate the purpose and advantages of the present invention, the invention is further described below with reference to the accompanying drawings and examples.

[0066] In order to verify the feasibility of the method, this example establishes an improved Transformer network model for relative motion attitude and orbit information prediction for low-orbit faulty satellites, collects data sets and trains them, and finally uses test set data to verify the model prediction accuracy.

[0067] like Figure 8 As shown, the satellite relative posture prediction method based on the improved Transformer disclosed in this embodiment has the following specific implementation steps:

[0068] Step 1: Select the initial pose parameter range of the target spacecraft and the initial pose parameter range of the service spacecraft, and use the non-center-of-mass relative motion dynamics model of the service spacecraft actuator relative to the target point on the target spacecraft to recursively infer the initial states of the target spacecraft and the service spacecraft, and obtain and record the relative motion information for 600 seconds. The first 500 seconds are used as input, and the last 100 seconds are the expected output, forming a set of data in the training set. Repeat the data collection to complete the training set collection. On this basis, the training set is normalized.

[0069] The initialization range of the training set data is shown in the following table.

[0070] Table 1. Range of training set parameters

[0071]

[0072] The initial states of the target spacecraft and the service spacecraft are randomly generated within the range shown in Table 1. The service spacecraft actuator is used to recursively perform the non-center-of-mass relative motion dynamics model relative to the target point on the target spacecraft to obtain the non-center-of-mass relative motion parameters of 600s. The input of the judgment network is the non-center-of-mass relative motion parameters of the first 500 steps, and the expected output is the non-center-of-mass relative motion parameters of the next 100 steps. The data set size is 30,000 groups. The data set is layered to generate training data set 1 and training data set 2. Training data set 1 records the non-center-of-mass relative motion parameters of the first 500 steps and the non-center-of-mass relative motion parameters of the next 100 steps. Training data set 2 records the non-center-of-mass relative motion parameters of the first 500 steps and the non-center-of-mass relative attitude motion parameters of the next 100 steps. The data is normalized using the normalization method so that the network can more accurately capture the changes in each dimension of data. The normalization formula is shown below.

[0073]

[0074] where z i is the data of the i-th dimension of the training set, the subscript min is the minimum value of the data in the training set dimension, max represents the maximum value of the data in the training set dimension, and new represents the normalized data. Records used to convert normalized data into non-normalized data.

[0075] Step 2: Construct an improved Transformer network model for relative motion posture and trajectory information prediction according to the graph.

[0076] according to Figure 1 The network design structure in the improved Transformer network is constructed, which includes two parallel improved Transformer network model sub-networks. The output dimension of both is 6*100, and the first 3*100 of the first model and the last 3*100 of the second model together constitute the output of the overall network model. The network parameters of the two networks are consistent, where the embeddingsize value is 6, the number of heads of the multi-head self-attention mechanism is selected as 3, the linear unit includes 1 hidden layer and 1 output layer, the number of neurons in the hidden layer is 24, the Relu activation function is used, and the dropout operation is not used.

[0077] Step 3: Use the training data set 1 and training data set 2 collected in step 1 to train and test the improved Transformer network model for relative motion posture and trajectory information prediction built in step 2.

[0078] The improved Transformer network model for relative motion posture and trajectory information prediction constructed in step 2 consists of two parallel improved Transformer network model sub-networks. First, the first improved Transformer network model sub-network is trained using training data set 1. The learning rate is set to 0.005, the batch number is 60, and the loss function is trained using the L1 loss function. The specific calculation formula is as follows:

[0079]

[0080] In the formula is the network prediction output, y i The target output is the 6-dimensional position and posture information, and the loss function is calculated. At this time, the network output and the target output are two 60×100×6 arrays. The training round is set to 900 for training. The training process is as follows Figure 2 shown.

[0081] The trained network is used to test a test set containing 200 sets of data, and the test set loss is calculated using the following formula.

[0082]

[0083] The average loss is 0.05301034, which is a 5% error level. Using the network after the first training, the predicted image is as follows Figure 3 As shown, red is the target output and blue is the predicted output.

[0084] Depend on Figure 3 It can be seen that the network has a poor fitting effect on the 4-6 dimensional target. On this basis, the 4-6 dimensional output data of training data set 1 is used to calculate the loss function, and 120 rounds of training are performed again. The training process is as follows Figure 4 shown.

[0085] The second training network is tested on a test set containing 200 sets of data, with an average loss of 0.0617742, or a 6% error level. The network after the second training is used for prediction, and the predicted image is as follows Figure 5 As shown in the figure, red is the target output and blue is the predicted output. The network at this time is saved as the first trained improved Transformer network model sub-network.

[0086] For the first improved Transformer network model sub-network that has been trained, 750 rounds of training are performed again using training data set 2. The training process is as follows: Figure 6 shown.

[0087] The trained network is the second improved Transformer network model sub-network, which together with the first improved Transformer network model sub-network constitutes the relative motion pose and trajectory information prediction improved Transformer network model. The relative motion pose and trajectory information prediction improved Transformer network model was used to test 200 test set data. The average error was 0.02898687, or 2% error level. The predicted image is as follows Figure 7 As shown, red is the target output and blue is the predicted output, and the expected result is obtained.

[0088] The specific description above further illustrates the purpose, technical solutions and beneficial effects of the invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. Satellite relative pose prediction method based on improved Transformer, Features: The following steps are included: Step 1: Establish a relative attitude motion dynamics model between the target spacecraft and the service spacecraft, establish the relative motion dynamics equation between the mass centers of the target spacecraft and the service spacecraft, and integrate the relative attitude motion model and the relative motion equation between the mass centers into a relative motion dynamics model between the non-mass centers of the service spacecraft actuator and the target point on the target spacecraft; Step 2: Set the feasible interval of the initial state of the relative attitude and orbit of the service spacecraft and the target spacecraft; repeatedly randomly select values ​​within the feasible interval to initialize the relative attitude and orbit state of the spacecraft and call the non-center-of-mass coupling dynamics model between the service spacecraft actuator and the target point on the target spacecraft established in step 1 for dynamic recursion, and record the non-center-of-mass relative position between the service spacecraft actuator and the docking point of the target spacecraft Relative angular velocity By layering the collected information, a training data set is established; Step 2.1: Delineate feasible intervals of the initial states of the relative attitudes and orbits of the service spacecraft and the target spacecraft according to the relative dynamic motion characteristics; select the six orbital elements of the target spacecraft, the angular velocity of the attitude rotation of the target spacecraft, the relative position between the center of mass of the service spacecraft and the center of mass of the target spacecraft, the initial position of the actuator of the service spacecraft relative to the docking mechanism of the target spacecraft, and the angular velocity of the attitude rotation of the service spacecraft as variables, and define feasible intervals for the variables; Step 2.2 Randomly select the six orbital numbers of the target spacecraft, the target spacecraft attitude rotation angular velocity, the relative position between the service spacecraft center of mass and the target spacecraft center of mass, the initial position of the service spacecraft actuator relative to the target spacecraft docking mechanism, and the service spacecraft attitude rotation angular velocity in their corresponding variable intervals to initialize the initial states of the service spacecraft and the target spacecraft. Use the coupled dynamics model between the service spacecraft actuator and the non-center of mass of the target point on the target spacecraft established in step 1 to perform dynamic recursion and record the non-center of mass relative position of the length α+β. Relative angular velocity Information, where α and β are constants that determine the length of the predicted motion information; repeat state initialization, dynamic recursion, and information recording γ times, where γ is the expected number of training set data; Step 2.3 is for the non-center relative position recorded in step 2.2 Relative angular velocity The information is processed hierarchically to form two training data sets; The so-called hierarchical processing is to record the relative position of the non-centroid of the first α length in the information Relative angular velocity As the training input, the relative position of the non-centroid of β length after the information As the training target quantity, establish training set 1, but at the same time, training set 1 also needs to record the relative rotation angular velocity of the β length after the information as the target output of the first training in step 4.2; record the relative position of the non-center of mass of the first α length in the recorded information Relative angular velocity As the training input, the relative rotation angular velocity of the β length after the information As the training target, training set 2 is established. Different from the training set required by the traditional Transformer architecture, training set 1 and training set 2 do not perform data calibration for the start and end of prediction, so that the improved Transformer network model for relative motion attitude and trajectory information prediction does not need to identify the start or end of prediction. Step 3: Improve the Transformer architecture to establish an improved Transformer network model for relative motion attitude and orbit information prediction; simplify the network structure by using the characteristics of the spacecraft's six-dimensional motion information; and build the overall network in parallel with two similar sub-networks. The network structure is flattened by fitting the position information and attitude information respectively through the two sub-networks, and the network structure is simplified by using the inconsistent frequency of the spacecraft's relative motion orbit change and attitude change. Step 4: Use the training set 1 established in step 2.3 to train the first improved Transformer network model subnetwork, so that the first improved Transformer network model subnetwork has the ability to fit the relative motion position information of the length β according to the relative motion position information and relative posture information of the length α, that is, it can fit the coupling influence of orbital operation trend and posture on the orbit; on this basis, the self-attention mechanism in the first improved Transformer network model subnetwork has well learned the weight relationship between position and posture, and use training set 2 to train on the basis of the trained first improved Transformer network model subnetwork to obtain the second improved Transformer network model subnetwork, so that the second improved Transformer network model subnetwork has the ability to fit the relative posture position information of the length β according to the relative motion position information and relative posture information of the length α, that is, the relative motion posture track information obtained by training predicts the improved Transformer network model; Step 5: Use the relative motion attitude and orbit information obtained in step 4 to predict the improved Transformer network model, and predict the non-center-of-mass relative motion of the service spacecraft actuator relative to the target spacecraft docking point. According to the observed relative motion attitude and orbit information of α steps, the relative motion attitude and orbit information of the future β steps is predicted, that is, the relative position and orbit prediction of the satellite is realized based on the improved Transformer.

2. The satellite relative posture prediction method based on the improved Transformer as claimed in claim 1, Features: The implementation method of step one is: The relative attitude motion model between the target spacecraft and the service spacecraft is expressed as: where q C =[q c0 q c1 q c2 q c3 ] T represents the attitude quaternion of the target spacecraft, Represents the rate of change of the target spacecraft's attitude quaternion, and defines ζ c =[q c1 q c2 q c3 ] T is the vector part of the attitude quaternion, ω C is the angular velocity of the target spacecraft, J C is the moment of inertia of the target spacecraft, subscript B C is the identifier of the variable in the body coordinate system of the target spacecraft, is the expression of the target spacecraft rotation angular velocity in the body coordinate system, is the expression of the target spacecraft rotation angular acceleration in the body coordinate system, and the superscript × represents the cross product matrix of the variables. represents the gravity gradient torque of the target spacecraft; in addition, the Ξ(q) function expression is as follows: The motion and attitude dynamics equations of the service spacecraft are: where q d =[q d0 q d1 q d2 q d3 ] T Quaternion representing the attitude of the service spacecraft Represents the rate of change of the attitude quaternion of the service spacecraft, and defines ζ d =[q d1 q d2 q d3 ] T is the vector part of the attitude quaternion, ω d is the angular velocity of the service spacecraft, J d is the moment of inertia of the service spacecraft, subscript B d It is the identifier of the variable in the body coordinate system of the service spacecraft. To express the angular velocity of the spacecraft in the body coordinate system, To express the angular acceleration of the spacecraft in the body coordinate system, the superscript × represents the cross product matrix of the variables, M gd represents the gravity gradient torque of the service spacecraft, Control torque for servicing spacecraft; The relative attitude dynamics of the service spacecraft relative to the target spacecraft is: in is the relative attitude angular acceleration between the center of mass of the service spacecraft and the target spacecraft, For the relative attitude angular velocity between the center of mass of the service spacecraft and the target spacecraft, the coordinate system mark in the upper left corner of the variable represents the coordinate system represented by the variable, and the coordinate system mark in the lower right corner represents that the variable is a variable of a certain coordinate system; the rotation matrix expression involved in the above formula is as follows, where r c and is the position and velocity vector of the target spacecraft in the inertial system; The relative motion dynamics equation between the target spacecraft and the service spacecraft mass center is described in the target spacecraft orbital coordinate system L C That is, the x-axis points outward along the orbit radius, the z-axis is perpendicular to the orbit plane, and the y-axis and the other two axes form a right-hand system. The expression is as follows: in is the relative motion position, velocity, and acceleration measurement, represents the orbital angular acceleration of the target spacecraft, μ is the earth's gravitational constant, r is the corresponding spacecraft position scalar, and ΣF represents the resultant force of the satellite system; The non-center-of-mass relative motion dynamics model of the service spacecraft actuator relative to the target point on the target spacecraft is as follows: The superscripts i and j represent the actuator of the service spacecraft, and the superscripts i and j represent the docking mechanism of the target spacecraft. That is, the relative position of the docking actuator of the service spacecraft and the docking point of the target spacecraft is expressed in the orbital coordinate system of the target spacecraft. To serve the position of the spacecraft docking actuator relative to the center of mass of the spacecraft, is the position of the target spacecraft docking point relative to the target spacecraft's center of mass; Replace with: Formula (14) is the coupling dynamic model between the actuator of the service spacecraft and the non-center-of-mass target point on the target spacecraft.

3. The satellite relative posture prediction method based on the improved Transformer as claimed in claim 2, Features: The implementation method of step three is: Step 3.1 Improve the network structure based on the Transformer architecture for a single sub-network; First, establish a standard Transformer model so that improvements can be made on this basis; In the first step, cancel the embedding operation in the original architecture, regard the six-dimensional relative position and posture information at each moment as an information point z, and use the specific relative position value and relative posture value as the specific value of the information point As the input of the encoder and decoder; the subscript r indicates the relative position, and ω indicates the relative posture; on this basis, the Sigmoid layer at the decoder output is replaced by a fully connected layer, so that the improved Transformer network model subnetwork can output accurate digital information instead of probability information; finally, the feedforward operation of the first masked multi-head self-attention layer of the decoder is cancelled to prevent the target output data from affecting the learning process and increase the accuracy of the network during use; Step 3.2 establishes two improved Transformer network model sub-networks in step 3.1, connects the two sub-networks in parallel, takes the first three dimensions output by the first improved Transformer network model sub-network and the last three dimensions output by the second improved Transformer network model sub-network, and forms the output of the improved Transformer network model for relative motion attitude and trajectory information prediction; wherein, the first three dimensions output by the first improved Transformer network model sub-network are the fitted relative motion position information, and the last three dimensions output by the second improved Transformer network model sub-network are the fitted relative attitude motion information; by establishing two sub-networks and performing parallel operations, the expansion of the model scale and the instability of training caused by the simultaneous fitting of position and attitude information of different frequencies by a single network structure are avoided.

4. The satellite relative posture prediction method based on the improved Transformer as claimed in claim 3, Features: The implementation method of step 4 is: Step 4.1: Use the normalization method to normalize the training set data; the training set consists of three-dimensional position and three-dimensional attitude. Each dimension of information is normalized separately. The normalization operation is as follows: where z i is the data of the i-th dimension of the training set, the subscript min is the minimum value of the data in the training set dimension, max represents the maximum value of the data in the training set dimension, and new represents the normalized data; Step 4.2: For the first improved Transformer network model sub-network, use the training set 1 established in step 2.3 for training; the input scale of the training set data is α×6, and the output scale is β×6. When calculating the loss, use all six-dimensional data for calculation to ensure that the sub-network accurately learns the position and posture weight information. On this basis, use training set 1 for training again, but when calculating the loss of this training, use the first three-dimensional data for calculation, that is, the target output of β×3 scale is calculated with the first three-dimensional data of the network output, so as to achieve the purpose of the network fitting only the relative motion position information; on this basis, select the appropriate learning rate, batch learning number, select the L1 loss function for training, and save the model; Step 4.3: For the second improved Transformer network model sub-network, use the training set 2 established in step 2.3 to train the first improved Transformer network model sub-network that has been trained in step 4.2; the input scale of the training set data is α×6, and the output scale is β×6, but when calculating the loss, the posterior three-dimensional data is used for calculation, that is, the target output of β×3 scale is calculated with the posterior three-dimensional data output by the network, so as to achieve the purpose of the network fitting only the relative motion posture information; on this basis, select the appropriate learning rate, batch learning number, select the L1 loss function for training, and save the model; Step 4.4 connects the first and second improved Transformer network model sub-networks trained in steps 4.2 and 4.3 in parallel, so that the two networks have the same input, and at the same time can use the outputs of the two networks to combine into the relative motion attitude and orbit information prediction improved Transformer network model output, forming the relative motion attitude and orbit information prediction improved Transformer network model, that is, the trained relative motion attitude and orbit information prediction improved Transformer network model.

Citation Information

Cited By

  • Cutter pose error prediction method based on transfer learning model

    CN119620685A

  • Pose prediction model training method and device, equipment and medium

    CN120233877A

  • Spacecraft orbit forecasting method based on improved transform network model

    CN120541421A