A deep reinforcement learning decision method for underwater glider attack angle
Using deep reinforcement learning technology to perform independent reasoning on angle of attack in underwater gliders solves the problem of difficulty in measuring angle of attack information in traditional methods, achieves more accurate underwater speed and position estimation, and improves the quality of ocean current observations.
Patent Information
- Application Number
- CN202410923988.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The angle of attack information of traditional underwater gliders is difficult to accurately measure, resulting in insufficient speed estimation accuracy during the dead reckoning process, lack of intelligence and autonomy, and large errors in position and satellite positioning coordinates.
Deep reinforcement learning technology is used to establish a dynamic model of the dead reckoning environment through the glider's depth, pitch angle and heading angle data, a reinforcement learning agent is introduced to perform autonomous reasoning on the angle of attack, and a reward system based on the dead reckoning error is designed to achieve Dynamic intelligent decision-making of angle of attack.
It improves the speed and displacement estimation accuracy of underwater gliders, reduces the error between the estimated position and satellite positioning coordinates, provides high-resolution underwater speed information, and improves the quality of ocean current observations.
Smart Images

Figure CN118466221B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of underwater gliders, and in particular, relates to a deep reinforcement learning decision method for the attack angle of an underwater glider. Background Art
[0002] Due to the limitations of underwater positioning technology, it is difficult to fully grasp the navigation speed and displacement information of the glider. The angle of attack is a key parameter that defines the speed direction of the underwater glider and the degree of deviation of the fuselage axis, and plays an important role in inferring the movement speed of the underwater glider. The traditional scheme calculates the vertical speed of the glider by measuring the gradient of the depth, and then obtains the estimate of the horizontal speed of the underwater glider through dead reckoning by combining the pitch attitude and heading information. However, the dead reckoning process lacks the effective fusion of the angle of attack information and the pitch attitude, resulting in errors in the process of calculating the horizontal speed by projecting the vertical speed, which seriously affects the accuracy of the speed estimation.
[0003] The difficulty in incorporating angle of attack into dead reckoning is the lack of specialized measurement sensors. Accurate angle of attack measurement requires glider speed as input, but there is currently no economically feasible means to measure accurate glider speed. In addition, when the accurate glider speed is known, there is no need for angle of attack compensated dead reckoning to estimate the glider speed again. Therefore, how to break through the existing angle of attack sampling limitations and design a feasible angle of attack decision method based on information technology represented by machine learning has become the key to effectively improving the underwater speed and positioning perception level of gliders.
[0004] A series of studies have been conducted at home and abroad on the angle of attack estimation and dead reckoning application of underwater gliders, which can be generally summarized as angle of attack decision methods based on theoretical calculations and angle of attack decision methods based on mathematical statistics. These studies have effectively improved the accuracy of underwater glider dead reckoning and velocity estimation. However, the traditional scheme fails to incorporate the angle of attack decision process and dead reckoning accuracy results into a unified optimization framework, and cannot take into account both the fine resolution of the angle of attack and the accurate dead reckoning. In addition, the reasoning process lacks intelligence and autonomy, resulting in errors between the final estimated position and the measured satellite positioning coordinates of the glider profile endpoint. Summary of the invention
[0005] The purpose of the present invention is to provide a deep reinforcement learning decision method for the angle of attack of an underwater glider to make up for the shortcomings of the prior art.
[0006] Deep reinforcement learning technology is an artificial intelligence-in-the-loop dynamic intelligent decision-making method that can participate in real-time interaction in the entire dead reckoning process of underwater gliders, and guide decision-making improvements through the accuracy rewards of the overall dead reckoning, providing solutions for underwater positioning and speed estimation of gliders from an artificial intelligence perspective.
[0007] The present invention uses the depth, pitch angle and heading angle sampled by the glider as the data basis, establishes a dead reckoning environment dynamics containing dynamic angle of attack information, incorporates a deep reinforcement learning agent into the dead reckoning process to realize autonomous reasoning of the angle of attack, and designs a reward system based on the error between dead reckoning and measured satellite positioning coordinates, ultimately achieving accurate underwater glider dead reckoning and speed estimation based on dynamic intelligent decision-making of the angle of attack.
[0008] To achieve the above object, the present invention is achieved through the following technical solutions:
[0009] A deep reinforcement learning decision method for underwater glider attack angle includes the following specific steps:
[0010] Step 1: Collect and summarize the glider sampling data, including: glider depth d, pitch angle P, heading angle H;
[0011] Step 2: Determine the dead reckoning control parameters;
[0012] Step 3: Initialize the reinforcement learning angle of attack decision system, and use the actor-critic network with experience library to infer the angle of attack of the underwater glider; the actor-critic reinforcement learning framework includes four sets of network structures, namely: actor evaluation network Ae, actor target network At, critic evaluation network Ce and critic target network Ct;
[0013] Step 4: Initialize the underwater glider dead reckoning process;
[0014] Step 5: Determine the state and action of the reinforcement learning angle of attack decision system;
[0015] Step 6: Perform the forward environmental dynamics process of dead reckoning;
[0016] Step 7: Collect the reinforcement learning experience library; the reinforcement learning experience consists of state Oi, action αi, reward Ri and transition state O'i, which are added to the experience library in sequence as the training round progresses. When the experience library is stored, the initial experience is popped out;
[0017] Step 8: Sample and train the actor and critic networks from the reinforcement learning experience base;
[0018] Step 9: Use episilon-greedy mechanism to explore parameter attenuation;
[0019] Step 10: Guide the improvement of the angle of attack decision of reinforcement learning by maximizing the round reward, that is, guide the improvement of the decision of the glider's angle of attack by the reward based on the dead reckoning error;
[0020] Step 11: Output the reward to obtain the best performing network parameters and attack angle sequence.
[0021] Furthermore, in step 1, the initial satellite positioning coordinates of the glider profile are set as the coordinate origin, that is, [X0, Y0]=[0, 0], and the satellite positioning coordinates [Xt, Yt] of the end of the profile are calculated based on this.
[0022] Furthermore, the step 2 includes: first, determining the total number of dead reckoning steps I according to the size of the glider sampling data; second, determining the data index idmax of the maximum diving depth based on the glider depth. When i≤idmax, constructing the diving flag Fi=-1, and when idmax≤i≤I, Fi=1.
[0023] Furthermore, the step 3 includes: hyperparameter initialization includes: batch size Bs, executor learning rate αa, critic learning rate αc, discount factor γ, maximum number of rounds E, experience library capacity Bc, flexible network update parameter σ, exploration rate ε, exploration rate attenuation factor dc, minimum exploration rate εmin.
[0024] Furthermore, in step 4, when i=0, the initialization work includes: initialization of the glider speed and position, that is, vx0=0, vy0=0, x0=X0, y0=Y0; the distance dis0 of the glider's current position [X0, Y0] relative to the satellite positioning coordinates [Xt, Yt] at the end of the profile; reinforcement learning reward R0=-1; and the boundary values of the underwater glider's angle of attack αmin, αmax, whose values are determined by hydrodynamic simulation.
[0025] Furthermore, in step 5, for each dead reckoning step i, i∈I, the state Oi=[xi,yi,Fi] of the angle of attack reinforcement learning reasoning system is constructed, and the reinforcement learning angle of attack decision system receives the observation value returned by the environment and outputs an action, that is, the angle of attack αi of the i-th step, where the output of αi is determined by the episilon-greedy mechanism.
[0026] Furthermore, in step 6, the αi output by the reinforcement learning angle of attack decision system is combined with the sampling data of the glider depth di, pitch angle Pi, and heading angle Hi to calculate the glider's horizontal velocity vhi, the north component vyi and east component vxi of the horizontal velocity, and the glider's horizontal displacement xi, yi in sequence; next, disi is updated according to the glider's horizontal displacement, and the reinforcement learning reward Ri is determined based on the updated distance.
[0027] Furthermore, the step 8 is specifically as follows: the training process first collects experience of batch processing capacity from the experience library; in the kth group of experience collected, O'k calculates the state transfer action through At, and calculates the true value QTk of the action-state value through Ct; Ok calculates the predicted value QPk of the action-state value through Ae; and then calculates the critic loss Closs through the mean square error between QTk and QPk; since the goal of the executor module is to maximize the output of the critic module (that is, maximize the action-state value of the current strategy), firstly, the action of Ok is inferred through Ae, and the action is input into Ce to calculate the action-state value, and its negative value is the executor loss Aloss. After the loss is obtained, the back propagation of the parameter gradient is implemented to realize the update of the executor-critic evaluation network, and the target network is updated by flexible update.
[0028] Furthermore, in step 9, in the initial stage of reinforcement learning system training, in order to encourage the exploration of the reinforcement learning agent, an epsilon-greedy action decision method with attenuation is adopted, the principle of which is to generate a random number Γ in the action decision step. If it is less than the ε parameter, the action is randomly selected in the action distribution; if it is greater than the ε parameter, the action is determined based on the executor evaluation network; after each step of reasoning, the ε parameter is decayed according to the attenuation factor, thereby gradually reducing the probability of autonomous exploration.
[0029] Furthermore, in step 10, the reward Ri of the reinforcement learning angle of attack decision system is the ratio of the distance disi between the negative current horizontal position of the glider and the terminal satellite positioning coordinates to the initial distance dis0; then the reward Re of the reinforcement learning angle of attack decision system in each round is the sum of the rewards of all decision steps; therefore, the improvement of the angle of attack of sequential decisions on the glider dead reckoning can be evaluated through the round reward, and by maximizing the round reward, the angle of attack decision goal of minimizing the distance disI of the terminal satellite positioning coordinates is achieved.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The present invention aims at the problem of obtaining glider angle of attack information and its accurate dead reckoning application in the absence of effective measurement means, and proposes an artificial intelligence dynamic decision-making method based on deep reinforcement learning technology. From the overall dead reckoning process, the present invention provides key angle of attack reasoning information for glider underwater operations, reducing the error between the estimated position and the measured satellite positioning coordinates; from the local dead reckoning process, the present invention proposes a dynamic decision-making method for angle of attack information based on single-step glider sampling data, which can clarify the high-resolution information of the glider underwater speed and displacement.
[0032] In particular, the present invention can provide necessary reference speed support for underwater glider ocean current observations. Underwater glider ocean current observations rely on the inverse method or shear method to extract the absolute velocity of ocean currents from Doppler acoustic current meters, but must use high-precision, high-resolution underwater glider speeds as a reference. Traditional dead reckoning methods cannot provide high-resolution velocity estimates, and there is a large error between the calculated dead position and the satellite positioning coordinates. The present invention is applied to underwater glider ocean current observations to improve the quality of ocean current observations. The present invention can provide a high-resolution, precision-improved underwater glider speed information reference for underwater glider ocean current observations and other observation tasks that rely on glider speed references. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a flow chart of the underwater glider angle of attack decision method based on deep reinforcement learning.
[0034] Figure 2 It is a diagram of the structure and learning and training principles of the reinforcement learning angle of attack decision method.
[0035] Figure 3 is the training reward for 400 episodes of reinforcement learning of angle of attack decisions.
[0036] Figure 4 It is the attack angle sequence and pitch angle curve decided after training.
[0037] Figure 5 are the horizontal and vertical velocities after reinforcement learning dynamic angle of attack compensation.
[0038] Figure 6 It is a comparison between the dead reckoning after dynamic angle of attack compensation through reinforcement learning and the dead reckoning with zero angle of attack. DETAILED DESCRIPTION
[0039] The technical solution of the present invention is further described below in conjunction with embodiments. Example
[0040] The key improvement of the present invention is to use reinforcement learning technology to dynamically infer the glider's angle of attack, and to reflect the effect of angle of attack inference through dead reckoning accuracy. The optimization feature of reinforcement learning to maximize rewards is used to simultaneously solve the problem of accurate dead reckoning and the description of unknown angle of attack characteristics that lack measurement methods. The connection between the various steps of the present invention is listed in the overall flow chart, as shown in FIG. Figure 1 The specific steps are as follows:
[0041] Step 1: According to the results of the underwater glider sea trial sampling, the glider sampling data required for this embodiment is summarized, including: glider depth d, pitch angle P, heading angle H. In addition, the initial satellite positioning coordinates of the glider profile are set as the coordinate origin, that is, [X0, Y0] = [0, 0], and the satellite positioning coordinates [Xt, Yt] at the end of the profile are calculated accordingly.
[0042] Step 2: Determine the dead reckoning control parameters. First, determine the total number of dead reckoning steps I based on the size of the glider sampling data. Second, determine the data index idmax of the maximum dive depth based on the glider depth. When i≤idmax, construct the dive flag Fi=-1, and when idmax≤i≤I, Fi=1.
[0043] Step 3: Initialize the reinforcement learning angle of attack decision system; use the actor-critic framework with experience library to infer the angle of attack of the underwater glider. The hyperparameter initialization of the method includes: batch size Bs, actor learning rate αa, critic learning rate αc, discount factor γ, maximum number of rounds E, experience library capacity Bc, flexible network update parameter σ, exploration rate ε, exploration rate decay factor dc, minimum exploration rate εmin.
[0044] Step 4: Initialize the underwater glider dead reckoning process. When i=0, the initialization work includes: initialization of the glider speed and position, that is, vx0=0, vy0=0, x0=X0, y0=Y0; the distance dis0 of the glider's current position [X0, Y0] relative to the satellite positioning coordinates [Xt, Yt] at the end of the profile; reinforcement learning reward R0=-1; the boundary values of the underwater glider's angle of attack αmin, αmax, whose values are determined by hydrodynamic simulation.
[0045] Step 5: Determine the state and action of the reinforcement learning angle of attack decision system. For each dead reckoning step i, i∈I, construct the state Oi=[xi,yi,Fi] of the angle of attack reinforcement learning reasoning system. The reinforcement learning angle of attack decision system receives the observations returned by the environment and outputs an action, that is, the angle of attack αi of the i-th step, where the output of αi is determined by the episilon-greedy mechanism.
[0046] Step 6: Perform the forward environmental dynamics of dead reckoning. The output of the reinforcement learning angle of attack decision system, αi, is combined with the sampled data of the glider's depth di, pitch angle Pi, and heading angle Hi to calculate the glider's horizontal velocity vhi, the north component vyi and east component vxi of the horizontal velocity, and the glider's horizontal displacement xi, yi. Next, disi is updated according to the glider's horizontal displacement, and the reinforcement learning reward Ri is determined based on the updated distance.
[0047] Step 7: Collect the reinforcement learning experience library. The reinforcement learning experience consists of state Oi, action αi, reward Ri and transition state O'i. As the training round progresses, it is added to the experience library in sequence. When the experience library is stored, the initial experience is popped out.
[0048] Step 8: Sample and train the executor and critic networks from the reinforcement learning experience library. The training process first collects experience of batch processing capacity from the experience library; the executor-critic reinforcement learning framework used contains four sets of network structures, namely: executor evaluation network Ae, executor target network At, critic evaluation network Ce and critic target network Ct, as shown in Figure 2 As shown. In the kth group of experience collected, O'k calculates the state transfer action through At, and calculates the true value QTk of the action-state value through Ct; Ok calculates the predicted value QPk of the action-state value through Ae; and then calculates the critic loss Closs through the mean square error between QTk and QPk. Since the goal of the executor module is to maximize the output of the critic module (that is, maximize the action-state value of the current strategy), firstly, Ae is used to infer the action of Ok, and the action is input into Ce to calculate the action-state value, and its negative value is the executor loss Aloss. After obtaining the loss, the back propagation of the parameter gradient is implemented to realize the update of the executor-critic evaluation network, and the target network is updated by flexible update.
[0049] Step 9: Exploration parameter decay of episilon-greedy mechanism. In the initial stage of reinforcement learning system training, in order to encourage the exploration of reinforcement learning agents, an epsilon-greedy action decision method with decay is adopted. The principle is to generate a random number Γ in the action decision step. If it is less than the ε parameter, the action is randomly selected in the action distribution; if it is greater than the ε parameter, the action is determined based on the executor evaluation network. After each step of reasoning, the ε parameter decays according to the decay factor, thereby gradually reducing the probability of autonomous exploration.
[0050] Step 10: Guide the improvement of the angle of attack decision of reinforcement learning by maximizing the round reward. This part is the key improvement, that is, guiding the improvement of the decision of the glider angle of attack by rewards based on the dead reckoning error. The reward Ri of the reinforcement learning angle of attack decision system is the ratio of the negative distance disi between the current horizontal position of the glider and the terminal satellite positioning coordinates to the initial distance dis0. Then the reward Re of each round of the reinforcement learning angle of attack decision system is the sum of the rewards of all decision steps. Therefore, the improvement of the angle of attack of sequential decisions on the glider dead reckoning can be evaluated by the round reward, and by maximizing the round reward, the angle of attack decision goal of minimizing the distance disI of the terminal satellite positioning coordinates is achieved. Example
[0051] According to the glider navigation data collected in Jiaozhou Bay, Qingdao in December 2019, the specific steps of this embodiment are as follows:
[0052] Step 1: Summarize the glider sampling data required by the present invention. The maximum diving depth of the underwater glider sea trial is set at 10m, the glider deployment heading is 120°, and it sails at the expected heading of 100°. The sampling data used for reinforcement learning angle of attack reasoning specifically includes: glider depth d , Pitch angle P , heading angle H , the sampling interval is Δ t = 1s. Set the initial satellite positioning coordinates of the glider profile as the coordinate origin, that is, [ X 0 , Y 0 ]=[0,0], based on which the satellite positioning coordinates of the end of the profile are calculated [ X t , Y t ]=[100,-16].
[0053] Step 2: Determine the dead reckoning control parameters. According to the size of the glider sampling data, the sampling data contains 305 rows after preprocessing, and the total number of steps for dead reckoning is determined. I = 305. Data index for determining maximum diving depth based on glider depth i dmax = 148. When i ≤ i dmax When constructing the diving flag F i = -1, and i dmax ≤ i ≤ I hour, F i =1.
[0054] Step 3: Initialize the reinforcement learning angle of attack decision system. The present invention uses an actor-critic framework with an experience library to infer the angle of attack of the underwater glider. The hyperparameters of the method are initialized as follows: batch size B s =128, executor learning rate α a = 0.0013, critic learning rate α c = 0.0013, Discount Factor c =0.99, maximum number of rounds E=500, the experience library capacity is set to B c = 50000, Flexible network update parameters s =0.02, exploration rate e= 1.0. Exploration rate decay factor d c =0.95, minimum exploration rate e min = 0.1.
[0055] Step 4: Initialize the underwater glider dead reckoning process. i=0 When , the initialization work includes: initialization of glider speed and position, that is, v x0 =0, v y0 =0, x 0 = X 0 , y 0 = Y 0 ; Current position of glider[ X 0 , Y 0 ] Satellite positioning coordinates relative to the end of the profile[ X t , Y t ] dis 0 = 101.272; Reinforcement Learning Rewards R 0 =-1; the angle of attack boundary value of the underwater glider α min = -10, α max = 10, whose value is determined by hydrodynamic simulation.
[0056] Step 5: Determine the state and action of the reinforcement learning angle of attack decision system. For each dead reckoning step i , i ∈ I , construct the state of the angle of attack reinforcement learning reasoning system O i =[ x i, y i, F i]. The reinforcement learning angle of attack decision system receives the observation value returned by the environment and outputs the action. i Step angle of attack α i Determined by the following process, first generate a random number β ,if b≤e , then from [ α min, α max ]Randomly draw α i ,on the contrary, α i = A e ( O i ).
[0057] Step 6: Perform the forward environmental dynamics of dead reckoning. The output of the reinforcement learning angle of attack decision system α i , combined with the glider depth d i , Pitch angle P i , heading angle H i The sampling data of the glider is used to calculate the horizontal speed of the glider. v hi :
[0058] v hi =( d i - d i-1 ) / tan( P i - α i )
[0059] Next, calculate the north component of the glider's horizontal velocity v yi and the east component v xi :
[0060] If 0< H i ≤90, v yi = v hi ·cos( H i ), v xi = v hi ·sin( Hi );
[0061] If 90< H i ≤180, v yi = - v hi ·sin( H i -90), v xi = v hi ·cos( H i -90);
[0062] If 180< H i ≤270, v yi = - v hi ·cos( H i -180), v xi = - v hi ·sin( H i -180);
[0063] If 270 < H i ≤360, v yi = v hi ·sin( H i -270), v xi = v hi ·cos( H i -270);
[0064] The horizontal displacement of the glider is x i , y i Can be determined in combination with the sampling interval:
[0065] x i =Δ t · v xi ; y i =Δ t · v yi
[0066] Then, update the horizontal displacement of the glider dis i :
[0067] dis i =[( x i - X t ) 2 +( y i - Y t ) 2 ] 0.5
[0068] And determine the reinforcement learning reward based on the updated distance R i = - dis i .
[0069] Step 7: Collect the reinforcement learning experience library. The experience of reinforcement learning consists of state O i ,action α i ,award R i and transfer status O’ i The experience database is added in sequence as the training rounds progress, and the initial experience database is popped out after the storage is completed.
[0070] Step 8: Sample and train the actor and critic networks from the reinforcement learning experience library. The training process first collects experience of batch processing capacity size from the experience library. The actor-critic reinforcement learning framework used contains four sets of network structures, namely: actor evaluation network A e , Executor Target Network A t , critic evaluation network C e and critic target network C t . k In group experience, O’ k pass A t Calculate the state transition action and pass C t Compute the truth value of the action-state value Q Tk :
[0071] QTk =R k +g · C t ( O’ k , α’ k )
[0072] in, α’ k Target network by executor A t gives:
[0073] α’ k = A t ( O’ k )
[0074] Then O k pass A e Calculate the predicted action-state value Q Pk :
[0075] Q Pk = A e ( O k )
[0076] The commentator loses C loss ( k ) can be Q Tk and Q Pk The mean square error between is calculated as:
[0077] C loss =1 / Bs · S k=1 Bs ( Q Tk - Q Pk ) 2
[0078] Since the goal of the actor module is to maximize the output of the critic module (i.e., maximize the action-state value of the current strategy), first A e reasoning O kaction and enter the action C e Calculate the action-state value, the negative value is the executor loss A loss :
[0079] A loss = -1 / Bs · S k=1 Bs C e [ O k , A e ( O k )]
[0080] After the loss is obtained, back propagation of parameter gradients is performed to update A e and C e , which can be implemented through deep learning frameworks such as Tensorflow, and the target network can be updated through flexible updates C t and A t :
[0081] C t = s · C e + (1- s ) C t
[0082] A t = s · A e + (1- s ) A t
[0083] Step 9: Exploration parameter decay of episilon-greedy mechanism. In the initial stage of reinforcement learning system training, in order to encourage the exploration of reinforcement learning agents, an epsilon-greedy action decision method with decay is adopted. The principle is to generate a random number in the action decision step. C , if less than e Parameter, then randomly select actions within the action distribution; if it is greater than e Parameters, then the action is determined based on the executor evaluation network. After each step of reasoning, e The parameters decay accordingly, thereby gradually reducing the probability of autonomous exploration. e ≥ e min , e Stop decay and hold e min , otherwise the parameter decay is carried out according to the following formula:
[0084] e=e · d c
[0085] Step 10: Guide the improvement of the angle of attack decision of reinforcement learning by maximizing the round reward. This part is the key improvement of the present invention, that is, guiding the improvement of the decision of the glider angle of attack by the reward based on the dead reckoning error. R i The negative distance between the current horizontal position of the glider and the terminal satellite positioning coordinates dis i , about the initial distance dis 0 Ratio of:
[0086] R i = - dis i / dis 0
[0087] The reward of each round of the reinforcement learning angle of attack decision system is R e is the sum of the rewards for all decision steps:
[0088] R e = S i=1 I R i
[0089] Therefore, the improvement of the angle of attack of sequential decision-making on the dead reckoning of the glider can be evaluated by the round reward. By maximizing the round reward, the distance to the terminal satellite positioning coordinates can be minimized. dis I The reward curve of the training process is as follows: Figure 3 shown.
[0090] During the training process, the attack angle decision sequence and the corresponding pitch angle corresponding to the strategy with higher reward are as follows: Figure 4 shown. Figure 5 The horizontal and vertical velocities after dynamic angle of attack compensation are shown. Figure 6It is the comparison between the dead reckoning after dynamic angle of attack compensation and the dead reckoning at zero angle of attack. dis I = 23.976, dis I =3.461, the dead reckoning accuracy is improved by 85.563%, and the dead reckoning calculated by the reinforcement learning decision-making angle of attack compensation of the present invention is closer to the measured satellite positioning coordinates.
[0091] On the basis of the above embodiments, the present invention continues to describe in detail the technical features involved therein and the functions and roles played by the technical features in the present invention, so as to help technicians in this field fully understand the technical solution of the present invention and reproduce it.
[0092] Finally, although this specification is described according to implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
Claims
1. A deep reinforcement learning decision method for underwater glider attack angle, characterized in that: The specific steps are as follows: Step 1: Collect and summarize the glider sampling data, including: glider depth d, pitch angle P, heading angle H; Step 2: Determine the dead reckoning control parameters; Step 3: Initialize the reinforcement learning angle of attack decision system, and use the actor-critic network with experience library to infer the angle of attack of the underwater glider; the actor-critic reinforcement learning framework includes four sets of network structures, namely: actor evaluation network Ae, actor target network At, critic evaluation network Ce and critic target network Ct; Step 4: Initialize the underwater glider dead reckoning process; Step 5: Determine the state and action of the reinforcement learning angle of attack decision system; Step 6: Perform the forward environmental dynamics of dead reckoning: The output of the reinforcement learning angle of attack decision system αi is combined with the sampled data of the glider's depth di, pitch angle Pi, and heading angle Hi to calculate the glider's horizontal velocity vhi, the north component vyi and east component vxi of the horizontal velocity, and the glider's horizontal displacement xi, yi; Next, update disi according to the glider's horizontal displacement, and determine the reinforcement learning reward Ri based on the updated distance; Step 7: Collect the reinforcement learning experience library; the reinforcement learning experience consists of state Oi, action αi, reward Ri and transition state O'i, which are added to the experience library in sequence as the training round progresses. When the experience library is stored, the initial experience is popped out; Step 8: Sample and train the executor and critic networks from the reinforcement learning experience library: The training process first collects experience of batch processing capacity from the experience library; in the kth group of collected experience, O'k calculates the state transfer action through At, and calculates the true value QTk of the action-state value through Ct; Ok calculates the predicted value QPk of the action-state value through Ae; and then calculates the critic loss Closs through the mean square error between QTk and QPk; Since the goal of the executor module is to maximize the output of the critic module, first infer Ok's action through Ae, and input the action into Ce to calculate the action-state value, the negative value of which is the executor loss Aloss; after obtaining the loss, implement back propagation of parameter gradients to update the executor-critic evaluation network; Step 9: Use the episilon-greedy mechanism to explore parameter attenuation: The epsilon-greedy action decision method with attenuation is to generate a random number Γ in the action decision step. If it is less than the ε parameter, the action is randomly selected from the action distribution; if it is greater than the ε parameter, the action is determined based on the executor evaluation network; after each step of reasoning, the ε parameter is attenuated according to the attenuation factor, thereby gradually reducing the probability of autonomous exploration; Step 10: Guide the improvement of the angle of attack decision by maximizing the round reward, that is, guide the improvement of the glider's angle of attack decision by the reward based on the dead reckoning error: The reward R of the reinforcement learning angle of attack decision system i The negative distance dis between the current horizontal position of the glider and the terminal satellite positioning coordinates i , about the ratio of the initial distance dis0: R i = -dis i / dis 0 , the reward Re of each round of the reinforcement learning angle of attack decision system is the sum of the rewards of all decision steps; therefore, the angle of attack of sequential decisions evaluates the glider dead reckoning through round rewards, and by maximizing the round rewards, the distance dis of the terminal satellite positioning coordinates is minimized. i The angle of attack decision target; Step 11: Output the reward to obtain the best performing network parameters and attack angle sequence.
2. The deep reinforcement learning decision method for underwater glider attack angle according to claim 1, characterized in that: In step 1, the initial satellite positioning coordinates of the glider profile are set as the coordinate origin, that is, [X0, Y0]=[0, 0], and the satellite positioning coordinates [Xt, Yt] of the end of the profile are calculated based on this.
3. The deep reinforcement learning decision method for underwater glider attack angle according to claim 1, characterized in that: The step 2 comprises: first, determining the total number of steps I of dead reckoning according to the size of the glider sampling data; second, determining the data index idmax of the maximum diving depth based on the glider depth; when i≤idmax, constructing a diving flag Fi=-1, and when idmax≤i≤I, Fi=1.
4. The deep reinforcement learning decision method for underwater glider attack angle according to claim 1, characterized in that: The step 3 includes: hyperparameter initialization includes: batch size Bs, executor learning rate αa, critic learning rate αc, discount factor γ, maximum number of rounds E, experience library capacity Bc, flexible network update parameter σ, exploration rate ε, exploration rate attenuation factor dc, minimum exploration rate εmin.
5. The deep reinforcement learning decision method for underwater glider attack angle according to claim 1, characterized in that: In step 4, when i=0, the initialization work includes: initialization of the glider speed and position, that is, vx0=0, vy0=0, x0=X0, y0=Y0; the initial distance dis0 of the glider's current position [X0, Y0] relative to the satellite positioning coordinates [Xt, Yt] at the end of the profile; reinforcement learning reward R0=-1; the angle of attack boundary values αmin, αmax of the underwater glider, and the angle of attack boundary values are determined by hydrodynamic simulation.
6. The deep reinforcement learning decision method for underwater glider attack angle according to claim 1, characterized in that: In step 5, for each dead reckoning step i, i∈I, the state Oi=[xi,yi,Fi] of the angle of attack reinforcement learning reasoning system is constructed, xi, yi are horizontal displacements, Fi is the diving flag, and the reinforcement learning angle of attack decision system receives the observation value returned by the environment and outputs an action, that is, the angle of attack αi of the i-th step, where the output of αi is determined by the episilon-greedy mechanism.
