Airspace training flight path automatic planning method and device based on reinforcement learning
Through technologies such as Q-Learning reinforcement learning algorithm and airspace fractional gradient strategy, the existing technology solves the flexibility and efficiency problems of flight path adjustment in complex airspace environments, realizes intelligent automatic planning of airspace flight paths, and meets the needs of complex simulations. The needs of airspace flight training scenarios.
Patent Information
- Application Number
- CN202311589662.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-11-24
AI Technical Summary
The existing technology cannot flexibly and real-time adjust the flight path when the complex airspace environment or airspace location information changes, resulting in path planning that is time-consuming and inefficient, and cannot meet the needs of complex simulated airspace flight training scenarios.
An automatic airspace training flight path planning method based on the Q-Learning reinforcement learning algorithm is used to establish an airspace flight training scene model, collect and extract flight data, update the flight target decision table, receive client data to generate a matching flight path, and combine the flight airspace Fractional gradient strategy, fractional creep method and preset flight trajectory optimization evaluation function.
It achieves flexible and real-time adjustment of the flight path when the complex airspace environment and position change, improves the intelligence and efficiency of path planning, provides a more accurate data basis for generating the best flight path, and shortens the convergence time during the training process. .
Smart Images

Figure CN117806340B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulated flight training, and in particular to a method and device for automatically planning an airspace training flight path based on reinforcement learning. Background Art
[0002] In airspace training flights, reasonable flight path planning is crucial to ensure flight safety and the successful completion of missions. At present, the traditional path planning method used in simulated flight command training systems is usually based on the instructor manually setting the path according to the target airspace location, clicking multiple vertices on the map to form a route path, which will pass through the target airspace and avoid the restricted airspace, so that the flight target can reach the destination along the route.
[0003] However, in existing path planning methods, path planning is usually performed manually, so there are the following problems: the flight path set by the instructor based on subjective experience usually has a lot of room for optimization; when the location of the target airspace or the no-fly airspace changes, the instructor needs to manually adjust or re-plan the path. In summary, the existing path planning methods cannot be adjusted flexibly, in real time, and more intelligently when faced with complex airspace environments or when airspace location information changes, and cannot achieve better results. The process of formulating a flight path is labor-intensive and time-consuming, and cannot meet the needs of increasingly complex simulated airspace flight training scenarios.
[0004] Therefore, it is necessary to provide an automatic flight path planning method for airspace training based on reinforcement learning to solve the above problems. Summary of the invention
[0005] The present invention is intended to provide a method and device for automatic planning of airspace training flight paths based on reinforcement learning, so as to solve the technical problems in the prior art that, in the face of complex airspace environments or when airspace position information changes, adjustments cannot be made flexibly, in real time and more intelligently, better effects cannot be achieved, the process of formulating flight paths is labor-intensive and time-consuming, and even cannot meet the increasingly complex simulated airspace flight training scenarios. The technical problems to be solved by the present invention are achieved through the following technical solutions.
[0006] The first aspect of the present invention proposes a method for automatic planning of airspace training flight paths based on reinforcement learning, comprising: collecting existing flight plan data, and extracting data related to flight path planning from the existing flight data; using the extracted data related to flight path planning to establish an airspace flight training scenario model, specifically including establishing a flight area scenario environment based on a flight starting point position, a flight end point position, a target airspace, and a no-fly area, and forming a scenario matrix; based on the airspace flight training scenario model, using a Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model, specifically including updating a flight target decision table while training the automatic flight path planning model; receiving current flight plan data sent by a client, and extracting the flight starting point position, flight end point position, target airspace, and no-fly airspace related to flight path planning from the current flight plan data as a model input to output a flight path that matches the current flight plan data
[0007] The second aspect of the present invention provides an automatic planning device for an airspace training flight path, which is used to execute the automatic planning method for an airspace training flight path based on reinforcement learning described in the first aspect of the present invention, including: a data collection and processing module, which collects existing flight plan data and extracts data related to flight path planning from the existing flight data; a first establishment module, which uses the extracted data related to flight path planning to establish an airspace flight training scenario model, specifically including establishing a flight area scenario environment based on a flight starting point position, a flight end point position, a target airspace and a no-fly area, and forming a scenario matrix; a second establishment module, which uses the Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model based on the airspace flight training scenario model, specifically including updating a flight target decision table while training the automatic flight path planning model; a receiving and processing module, which receives current flight plan data sent by a client, and extracts the flight starting point position, flight end point position, target airspace, and no-fly airspace related to flight path planning from the current flight plan data as a model input to output a flight path that matches the current flight plan data.
[0008] The third aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect of the present invention.
[0009] A fourth aspect of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in the first aspect of the present invention.
[0010] Beneficial effects of the present invention:
[0011] Compared with the prior art, the present invention establishes an airspace flight training scenario model and adopts the Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model. While training the automatic flight path planning model, the flight target decision table is updated, and the current flight plan data sent by the client is received to output a flight path that matches the current flight plan data. When facing complex airspace flight area scenarios or changes in airspace location information, the training flight path can be adjusted flexibly and in real time; the flight target decision table can be updated while training the automatic flight path planning model, providing more accurate data basis for generating the optimal training flight path.
[0012] In addition, the flight airspace score gradient strategy, score spread method and preset flight trajectory method are used respectively to accelerate the convergence speed of the flight target decision table during the training process while optimizing the flight airspace evaluation function. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a flowchart of an example of a method for automatic planning of an airspace training flight path based on reinforcement learning of the present invention;
[0014] Figure 2 It is a schematic diagram of an example of establishing a flight area scene environment in the automatic planning method of airspace training flight path based on reinforcement learning of the present invention;
[0015] Figure 3 It is a schematic diagram of one angle of establishing a flight area scene environment in the automatic planning method of airspace training flight path based on reinforcement learning of the present invention;
[0016] Figure 4 It is a schematic diagram of an example of assigning values to target airspace and no-fly airspace in the automatic planning method for airspace training flight path based on reinforcement learning of the present invention;
[0017] Figure 5 is a schematic diagram of an example of a flight direction in the automatic flight path planning method for airspace training based on reinforcement learning of the present invention;
[0018] Figure 6 is a schematic diagram of an example of forming a flight path by the automatic flight path planning method for airspace training based on reinforcement learning of the present invention;
[0019] Figure 7 It is a schematic diagram of a specific implementation of the method for automatic planning of airspace training flight paths based on reinforcement learning of the present invention;
[0020] Figure 8It is a schematic diagram comparing the existing method of flight airspace score using the flight airspace score gradient method and the score spreading method in the automatic planning method of airspace training flight path based on reinforcement learning of the present invention with the existing method of flight airspace score using the flight airspace score gradient method and the score spreading method;
[0021] Fig. 9 It is a schematic diagram comparing the preset flight trajectory of the automatic planning method for airspace training flight path based on reinforcement learning of the present invention with the existing method that does not use the preset flight trajectory;
[0022] Fig.10 It is a structural schematic diagram of a specific implementation of the device for automatic planning of airspace training flight paths according to the present invention;
[0023] Fig.11 is a schematic structural diagram of an electronic device embodiment according to the present invention;
[0024] Fig.12 It is a schematic diagram of the structure of a computer-readable medium embodiment according to the present invention. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In view of the above problems, the present invention provides an automatic planning method for airspace training flight paths based on reinforcement learning. The method establishes an airspace flight training scenario model and adopts a Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model. While training the automatic flight path planning model, the flight target decision table is updated, and the current flight plan data sent by the client is received to output a flight path that matches the current flight plan data. The method can flexibly and in real time adjust the training flight path when facing complex airspace flight area scenarios or changes in airspace location information; and can update the flight target decision table while training the automatic flight path planning model, so as to provide a more accurate data basis for generating an optimal training flight path.
[0027] Refer to the following Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 and Fig. 9 , the airspace training flight path automatic planning method of the present invention will be described in detail.
[0028] Figure 1It is a flowchart of an example of the method for automatic planning of airspace training flight paths based on reinforcement learning of the present invention.
[0029] like Figure 1 As shown, in step S101, existing flight plan data is collected, and data related to flight path planning is extracted from the existing flight data.
[0030] In a specific implementation, existing flight plan data is collected from an existing database, or predetermined flight plan data is collected, etc.
[0031] Specifically, the existing flight plan data includes the flight plan area, flight target position, flight action, flight direction, reward and punishment scores in the flight airspace, etc.
[0032] Furthermore, the flight starting point position, the flight ending point position, the target airspace position, the no-fly zone position, and the flight area evaluation value are extracted from the existing flight plan data.
[0033] It should be noted that in other embodiments, the number of target airspaces, the boundary lines of the target airspaces, the number of no-fly zones, and the boundary lines of the no-fly zones are also extracted. The above is only described as an optional example and cannot be understood as a limitation of the present invention.
[0034] Next, in step S102, the extracted data related to flight path planning is used to establish an airspace flight training scenario model, specifically including establishing a flight area scenario environment based on the flight starting point position, flight end point position, target airspace and no-fly zone, and forming a scenario matrix.
[0035] In a specific embodiment, Figure 2 As shown, based on three target airspaces (such as Figure 2 areas indicated in light grey), three no-fly zones (such as Figure 2 The area represented by dark gray in the figure), the flight starting point position, and the flight end point position are used to form a scene rectangle (specifically, the scene rectangle shown in Figure 3).
[0036] Next, a scene rectangle is formed based on the flight starting point and the flight end point, and the formed scene rectangle is cut into multiple square grids. The grid length of each square grid is determined. Each square grid corresponds to an element, and two-dimensional data of M columns and N rows is established, that is, a regional scene matrix is formed.
[0037] A flight area scene environment is established based on the formed environmental rectangle, target airspace, no-fly zone, intelligent pilot, and simulated flying object.
[0038] Specifically, the coordinate format of the starting point position and the end point position is, for example, a (longitude, latitude) tuple, which is recorded as Posstart =(Long s ,Lat s ), Pos end =(Long e ,Lat e ).
[0039] Among them, Pos start Indicates the starting point of the flight, Long s Indicates the longitude of the coordinates of the flight starting point, Lat s Indicates the latitude of the coordinates of the flight starting point; Pos end Indicates the flight end position, Long e The longitude of the coordinates of the flight destination, Lat e The latitude coordinates representing the flight endpoint location.
[0040] For example, the location coordinates of the target airspace and the location coordinates of the no-fly airspace are composed of multiple coordinate tuple lists, respectively recorded as AreaTarget i,j , AreaNoFly i,j Among them, AreaTarget i,j Represents the jth coordinate of the i-th target airspace, AreaNoFly i,j Represents the jth coordinate of the i-th no-fly airspace, for example, the location coordinate is expressed using longitude and latitude.
[0041] For example, Figure 3 As shown, there are three target airspaces, which are polygonal areas filled with light gray, and three no-fly airspaces, which are polygonal areas filled with dark gray.
[0042] To determine the grid length of each square grid, the scene rectangle is divided according to the formed scene rectangle, that is, the scene rectangle is cut into multiple squares, and the size of a single square grid is recorded as L by the grid length. Each square grid corresponds to an element, and a two-dimensional array of M columns and N rows is established, that is, a regional scene matrix is formed. For example, The interpolated value of the coordinate longitude of the flight start point and the coordinate longitude of the flight end point is divided by the grid length and rounded down; The interpolated value of the coordinate latitude of the flight start point and the coordinate latitude of the flight end point is divided by the grid length and rounded down.
[0043] Furthermore, the initial value of each element of the two-dimensional array is assigned to 0.
[0044] Based on the above-mentioned scenario matrix, a flight airspace evaluation function is established. The flight airspace evaluation function is used to evaluate the flight airspace score (also known as the flight airspace evaluation value) obtained by the simulated flying object when passing through the target airspace or no-fly zone. For example, different values are assigned through an evaluation method of rewards and punishments.
[0045] For example, the flight airspace scores of the target airspace and the no-fly airspace are positive integers and negative integers respectively, for example, extracted from the data sent by the client, and are respectively denoted as Reward target and Reward nofly , indicating the flight airspace score that the simulated flying object will obtain when passing through the target airspace or no-fly airspace.
[0046] For establishing the flight airspace evaluation function, a k value (0 < k < 0.1) is calculated based on the distance between the current position of the simulated flying object and the end point. The closer the distance to the end point, the higher the k value; the farther the distance to the end point, the lower the k value. Then, the k value is added by 1 and multiplied by the flight airspace score Reward at the current position of the simulated flying object to obtain the flight airspace score obtained by the simulated flying object passing through the current position of the simulated flying object. The flight airspace score is calculated using the following expression:
[0047] First, calculate the k value according to the position (x, y) of the simulated flying object and the end point position (m, n):
[0048]
[0049] where k represents the calculation coefficient of the flight airspace score; x represents the longitude of the position where the flying object is to fly, y represents the latitude of the position where the flying object is to fly, that is, the coordinates of the position of the simulated flying object are represented by longitude x and latitude y; m represents the longitude of the end point position of the simulated flying object, and n represents the latitude of the end point position of the flying object to be simulated.
[0050] Based on the multiplication of the k value and the flight airspace score Reward at the current position of the simulated flying object, the flight airspace score Reward is obtained actual :
[0051] Reward actual =(k + 1)×Reward
[0052] Reward actual represents the flight airspace score Reward calculated based on the calculation coefficient k actual ; k represents the calculation coefficient of the flight airspace score; Reward represents the flight airspace score at the current position of the simulated flying object.
[0053] The intelligent pilot uses the flight airspace score Reward actualto carry out the learning process.
[0054] Through the following steps, the target airspace and the no-fly airspace are assigned values.
[0055] Traverse the two-dimensional array of scene matrices for the region.
[0056] Determine whether the areas corresponding to the no-fly airspace and the regional scene matrix overlap in order to assign values until all grids in the no-fly airspace are assigned values.
[0057] Determine whether the target airspace and the area corresponding to the regional scene matrix overlap to assign values until all grids in the no-fly airspace are assigned values.
[0058] Specifically, when the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the no-fly airspace, the value of the area corresponding to the single element or multiple elements in the two-dimensional array is assigned as Reward nofly For details, see Figure 4 .
[0059] like Figure 4 As shown, the three areas indicated by dark gray are target airspaces, and the three areas indicated by light gray are no-fly airspaces. The reward value of the no-fly area is assigned, for example, using -1, the reward value of the target airspace is assigned using 1, and the reward value of other areas is assigned using 0.
[0060] When the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the target airspace, the value of the area corresponding to the single element or multiple elements in the two-dimensional array is assigned as Reward target , repeat the region overlap determination and value assignment process until each element in the two-dimensional array has completed the value assignment process. Figure 4 .
[0061] The establishment of the flight area scene environment also includes setting the flight direction for performing each action.
[0062] In the airspace flight training scenario model, the flight direction of the simulated flying object at each flight target position is provided, specifically including the following moving directions: left, upper left, upward, upper right, right, lower right, downward, and lower left.
[0063] In a specific implementation, at each flight target position, an action that the simulated flying body can perform is selected, and a discrete flight direction is adopted. The simulated flying body can take eight movement directions on the two-dimensional plane formed by the regional scene matrix, namely left, upper left, upward, upper right, right, lower right, downward, and lower left. For details, see Figure 5 For example, it can be written as:
[0064] Actions={LEFT,UPPER_LEFT,UPPER,UPPER_RIGHT,RIGHT,LOWER_RIG HT,LOWER,LOWER_LEFT}.
[0065] Next, based on the established flight airspace evaluation function and the configured flight direction, a flight target decision table is established (expressed using FOD-Table, see Table 1 below for details). The flight target decision table includes the position information of all positions of the simulated flying body in the regional scene matrix and the tendency value of selecting the moving direction when arriving at each position.
[0066] Optionally, the flight target decision table includes position information of all positions of the simulated flying object in the regional scene matrix, the flight direction corresponding to the action performed at each position, and the inclination value of each flight direction.
[0067] Table 1
[0068]
[0069] The establishment of the flight area scene environment also includes the configuration of an intelligent pilot, which is used to repeatedly execute the cycle steps to learn the optimal action and the optimal flight direction corresponding to each flight target position to form the optimal flight path. The steps executed by the intelligent pilot in each cycle are as follows:
[0070] Step S201, according to the current position of the simulated flying body, the ε-greedy strategy (greedy strategy) is used to select the flight direction of the flying target in the FOD-Table. When the ε value is 0.9, there is a 90% probability of selecting the one with the largest inclination value from a group of flight directions at the current position of the FOD-Table (i.e., the current position of the simulated flying body), and there is a 10% probability of randomly selecting a flight direction from a group of flight directions at the current position. For example, the inclination values of the flight directions (left, upper left, upward, upper right, right, lower right, downward, lower left) corresponding to the position (1,1) are 0.1, 0.3, 0, 0.14, 0.12, 0.5, 0.1, and 0.11, respectively, among which the flight direction "lower right" corresponding to 0.5 has the largest inclination value. When the ε value is 0.9, there is a 90% probability of selecting the "lower right" flight direction, and there is a 10% probability of randomly selecting a direction from the eight flight directions. It is expressed by the following expression:
[0071]
[0072] Among them, Action represents the flight direction of the action to be performed; Rand FLOAT(0, 1) means randomly selecting a decimal number between 0 and 1; Rand INT (1, 8) means randomly selecting an integer from 1 to 8; Tendency(i, j) means a set of tendency values corresponding to the flight directions in the FOD-Table at coordinates i and j; Max() means selecting a flight direction with the highest tendency value from this group.
[0073] Step S202: The intelligent pilot controls the flight target to move along the flight direction obtained in step S201 to the next position (x, y) of the regional scene matrix (i.e., the next flight target position), and obtains the flight airspace score reward of the position from the regional scene matrix. actual , determine whether the flight target has reached the end point (M, N), if not, proceed to the next step. actual The calculation formula is as follows:
[0074] First, the k value is calculated based on the position (x, y) of the simulated flying object and the end point position (m, n):
[0075]
[0076] Among them, k represents the calculation coefficient of the flight airspace score; x represents the longitude of the simulated flight body's position, y represents the latitude of the simulated flight body's position, that is, the coordinates of the simulated flight body's position are expressed by longitude x and latitude y; m represents the longitude of the simulated flight body's end point, and n represents the latitude of the simulated flight body's end point.
[0077] Then, the flight airspace score Reward (also known as the reward score) is obtained by multiplying the k value and the flight airspace score Reward (also known as the reward score) of the current simulated flight body. actual :
[0078] Reward actual =(k+1)×Reward
[0079] Among them, Reward actual Indicates the flight airspace score reward calculated based on the calculation coefficient k actual ; k represents the calculation coefficient of the flight airspace score; Reward represents the flight airspace score of the current simulated flight body.
[0080] The new position (x, y) (the next flight target position determined), the calculated reward actual The flight direction Action is recorded and used in the next step S203. last ,y last) (i.e., the last flight target position) is recorded and kept ready for use in step S204.
[0081] Step S203, calculate the intermediate value h, the calculation formula of h is as follows:
[0082]
[0083] Wherein, h represents the middle value of the calculated learning value L; the γ value represents the attenuation of the flight direction tendency, which is between O-1; Tendency(x, y) represents a set of tendency values corresponding to the new position (next flight target position) in the FOD-Table; Tendency(χ, y)[Action] represents the tendency value corresponding to the flight direction taken in step S202 corresponding to the new position (next flight target position) of the FOD-Table; Indicates the flight airspace score at the new position (x, y) (next flight target position). Record h and reserve it in step S204.
[0084] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0085] Next, in step S103, based on the airspace flight training scenario model, a Q-Learning reinforcement learning algorithm is used to establish an automatic flight path planning model, specifically including updating a flight target decision table while training the automatic flight path planning model.
[0086] Under the airspace flight training scenario model established in step S102, a Q-Learning reinforcement learning algorithm (value function algorithm) is used to establish an automatic flight path planning model.
[0087] It should be noted that, in the present invention, a new flight target decision table is created and expressed in a tabular form (i.e., a table structure), and the flight target decision table is continuously optimized to optimize the training process of the flight path automatic planning model.
[0088] Before training the automatic flight path planning model, the flight target decision table is initialized and each data in the table is initialized to zero. See Table 1 above for details.
[0089] Specifically, the flight path automatic planning model is trained by enabling the intelligent pilot to execute the following loop steps, and while training the flight path automatic planning model, the flight target decision table is updated.
[0090] Step S301: According to the observation value of the current flight target position, the moving direction of the execution action is selected from the initial flight target decision table.
[0091] Step S302: Determine the probability of each flight direction of the current flight target position to select the flight direction with the highest probability as the next flight direction, execute the next flight direction in the flight area scene, and return the next flight target position, flight airspace evaluation value and whether the simulated flight body has reached the destination from the flight area scene model.
[0092] Step S303: When it is determined that the destination has been reached, the current round of training process ends.
[0093] Step S304: When it is determined that the destination has not been reached, the flight target decision table is updated according to the current flight target position, the executed flight direction, the flight airspace evaluation value, and the previous flight target position.
[0094] Specifically, the flight target position value is passed to the next loop step. The number of loops L is specified by the user. After L loops, the values of each selected flight direction corresponding to each position in each row of the FOD-Table gradually converge to the values corresponding to the optimal path and tend to be stable, that is, the updated flight target decision table (expressed by FOD-Table) is obtained.
[0095] Using the following expression, the learning value L is calculated.
[0096] L=lr×(Tendency(x,y)[action]
[0097] -Tendency(x last ,y last )[action])
[0098] Wherein, L represents the learning value of the optimal action and the optimal flight direction corresponding to each flight target position to form the optimal flight path; lr represents the learning rate between 0 and 1; Tendency(x, y)[action] represents the tendency value corresponding to the flight direction taken in step 5202 corresponding to the new position (next flight target position) of the FOD-Table; Tendency(x, y)[action] represents the tendency value corresponding to the flight direction taken in step 5202 corresponding to the new position (next flight target position) of the FOD-Table; last ,y last )[action] indicates the tendency value corresponding to the same flight direction at the previous position of FOD-Table (previous flight target position).
[0099] The calculated L is recorded and used in the following processing.
[0100] Add the learning value L calculated above to the inclination value of the original position, and update the inclination value corresponding to the flight direction of the new position in the FOD-Table to complete the entire cycle. The formula for calculating the inclination value T of the new position is as follows:
[0101] T=Tendency(x last ,y last )[action]+L
[0102] Wherein, T represents the tendency value corresponding to the flight direction taken in step 5202 corresponding to the new position (next flight target position) of the FOD-Table; L represents the learning value of the optimal action and the tendency of the optimal flight direction corresponding to each flight target position to form the optimal flight path; Tendency (x last ,y last )[action] indicates the tendency value corresponding to the same flight direction at the previous position of FOD-Table (previous flight target position).
[0103] Then, update the calculated T into the FOD-Table:
[0104] Tendency(x, y)[action]=L
[0105] Among them, represents the tendency value corresponding to the flight direction taken in step 5202 corresponding to the new position (next flight target position) of FOD-Table; L represents the learning value of learning the optimal action and the optimal flight direction corresponding to each flight target position to form the optimal flight path.
[0106] For example, based on the updated flight target decision table (expressed using FOD-Table), the best action that the simulated flight body can take in each position can be obtained. The updated flight target decision table (expressed using FOD-Table) is shown in Table 2 below.
[0107] Table 2
[0108]
[0109] Since the simulated flying body can take the best action in each position, starting from the flight starting point, the tendency values of moving in various directions are located in the FOD-Table in turn, and the flight direction with the largest tendency value is selected as the moving direction. Then, the next flight target position obtained by the moving direction is continued to be located at the next flight target position, and the tendency values of moving in various directions at the next flight target position are obtained. The flight direction with the largest tendency value is selected as the moving direction, and each flight target position is determined in turn in a cycle until the flight end point is finally reached. All the flight target positions passed by the simulated flying body can be connected to form a flight path, thereby obtaining the optimal training flight path of the simulated flying body in the flight area scene model.
[0110] For example, if the flight direction corresponding to the maximum inclination value in the row of FOD-Table corresponding to the flight target position (1, 1) is upward right, then the next flight target position is (2, 2). If the flight direction corresponding to the maximum inclination value in the row of FOD-Table corresponding to the flight target position (2, 2) is right, then the next flight target position is (3, 2), and so on, until the final destination is reached, all the flight target positions passed in the middle are marked and connected to form a training flight path. For details, see Figure 6 .
[0111] For example, the formed training flight path is transmitted back to the client, thus completing the automatic path planning of the airspace training flight based on reinforcement learning.
[0112] The intelligent pilot learns from each flight target position, the action performed, the flight airspace evaluation value, and the previous flight target position, etc. By repeatedly executing the above training steps, the intelligent pilot learns the optimal action and the optimal direction tendency corresponding to each flight target position to form the optimal flight path.
[0113] Next, in step S104, the current flight plan data sent by the client is received, and the flight starting point position, flight end point position, target airspace, and no-fly airspace related to the flight path planning are extracted from the current flight plan data as model input to output a flight path that matches the current flight plan data.
[0114] Specifically, the current flight plan data sent by the client is received, and the flight starting point position, flight end point position, target airspace, and no-fly airspace related to the flight path planning are extracted from the current flight plan data as model input to output a flight path that matches the current flight plan data.
[0115] For example, the automatic flight path planning model returns a flight path that matches the current flight plan data to the client, that is, returns the best training flight path.
[0116] In another preferred example, the flight airspace evaluation function is optimized according to the flight airspace score gradient strategy to be used to evaluate the flight airspace evaluation value of each flight target position.
[0117] Use the following expression to calculate the flight airspace assessment value of the current flight target position:
[0118]
[0119] Among them, Reward i Represents the flight airspace evaluation value of the current flight target position, i represents the sequence number of the target airspace or no-fly airspace; Reward centralRepresents the flight airspace evaluation value at the center of the target airspace or no-fly airspace, Reward central =S×Reward, where S represents the area of the target airspace and Reward represents the initial flight airspace assessment value at the center point of the target airspace; D central,i Indicates the distance between the current flight target position and the center point of the target airspace.
[0120] In this example, the flight airspace fractional gradient method (i.e., the flight airspace fractional gradient strategy, also referred to as the gradient method), the fractional diffusion method (sometimes also referred to as the diffusion method) and the method of preset flight trajectory are respectively used, which can accelerate the convergence speed of the flight target decision table during the training process while optimizing the flight airspace evaluation function.
[0121] It should be noted that setting the flight airspace score gradient means that when assigning values to airspaces based on preset scores, an exponential decreasing method is adopted from the first center point of the target airspace or the second center point of the no-fly airspace outward. For example, the score of the first center point is the area occupied by the target airspace in the regional scene matrix multiplied by the preset score, and the evaluation value (e.g., score) corresponding to the square grid outside the first center point is inversely proportional to the square of the distance from the first center point.
[0122] By adopting the flight airspace score calculated by the above expression (1), the convergence process of the flight target decision table (i.e., FOD-Table) during training can be accelerated. At the same time, the flight trajectory of the simulated flight body can be made closer to the optimal flight target position, that is, as close to the center point of the target airspace as possible in the actual flight process. This is because the intelligent pilot will be more inclined to choose a flight target position with a higher score when making a decision.
[0123] In an optional implementation, the flight airspace evaluation function is optimized based on the airspace score gradient, and the score propagation method is continued to be used, which can accelerate the convergence process and make the simulated issuer further away from the no-fly airspace.
[0124] Since the preset flight airspace score is limited to setting the score inside the target airspace, and the score outside is 0, the influence of the target airspace and the no-fly airspace is now expanded to outside the target airspace and the no-fly airspace. If the grid is outside the target airspace and the no-fly airspace, the center point score in the set airspace score gradient is used and multiplied by a coefficient ε between 0 and 1 for attenuation, and the score spread results covering the entire flight airspace and other areas are superimposed on each other.
[0125] Use the following expressions to calculate the out-of-airspace estimates for the target airspace and the prohibited airspace.
[0126]
[0127] Among them, Reward out It represents the flight airspace assessment value of the current flight target position outside the target airspace and the no-fly airspace; ε represents the attenuation coefficient of the flight airspace score between 0 and 1.
[0128] Reward central Represents the flight airspace evaluation value at the center of the target airspace or no-fly airspace, Reward central =S×Reward, where S represents the area of the target airspace or the no-fly airspace, and Reward represents the initial flight airspace evaluation value at the first center point of the target airspace or the second center point of the no-fly airspace; D central,out Represents the distance between the current flight target position and the first center point of the target airspace; k represents a coefficient that gradually decays outward from the first center point of the target airspace or from the second center point of the prohibited flight airspace, for example, a value between 0 and 1.
[0129] For example, Figure 7 As shown, when the gradient method and the diffusion method are used at the same time, the original score Reward of airspace No. 1 (for example, the target airspace) is 1, the area of airspace No. 1 is 22, and the coordinates of the center point of airspace No. 1 are (6,6). Then the flight airspace score of the center point of airspace No. 1 is the area 22 multiplied by the original score 1, which is equal to 22. The airspace scores of the coordinate points (5,6), (6,7), (6,5), and (7,6) with a distance of 1 from the coordinate matrix grid of the center point of airspace No. 1 are equal to the airspace center point score divided by the square of the distance plus 1, which is equal to 22 divided by 4, which is 5.5. The airspace scores of the coordinate points (4,6), (6,4), (8,6), and (6,8) with a distance of 2 from the airspace center are equal to 22 divided by 9, which is 2.4.
[0130] Then, the flight airspace score of the coordinate points outside the airspace is calculated. For example, point (6,3) is outside the airspace and its distance from the center of the airspace is 3. The airspace score corresponding to (6,3) is the flight airspace score of the center of the airspace divided by the square of the distance (9) multiplied by the attenuation value k = 0.5, which is 0.65. Similarly, the flight airspace scores of all points outside the airspace are calculated.
[0131] After optimization by gradient method and diffusion method, the intelligent pilot can Figure 8 As shown in the figure, in a 5x5 airspace near the flight starting point, the coordinates of the flight starting point are (1,1) and the coordinates of the flight ending point are (5,5). A target airspace is located outside the airspace shown in the figure, at the coordinate position (6,1) 6 squares to the right of the flight starting point. Figure 8As shown in the middle right part, the score of the target airspace is preset to 1, and the calculation is performed according to the gradient method and the diffusion method. The flight airspace score of the position (5,1) with a distance of 1 from the center point is 0.5, the flight airspace score of the positions (5,2) and (4,1) with a distance of 2 from the center point is 0.4, the flight airspace score of the positions (3,1), (4,2), and (5,3) with a distance of 3 from the center point is 0.3, the flight airspace score of the positions (2,1), (3,2), (4,3), and (5,4) with a distance of 4 from the center point is 0.2, and the flight airspace score of the positions (1,1), (2,2), (3,3), (4,4), and (5,5) with a distance of 5 from the center point is 0.1.
[0132] like Figure 8 As shown in the middle left part, the gradient method and the diffusion method are not used in advance to calculate the flight airspace score. The score of all flight airspaces near the starting point is 0. The intelligent pilot will randomly select from different flight directions and then learn. It takes more than 1,000 training times to get an optimal path.
[0133] like Figure 8 As shown in the middle right part, after the gradient method and the diffusion method are used to calculate the flight airspace score, the flight airspace score on the flight path to the right of the flight starting point gradually increases from 0.1 to 0.5. The intelligent pilot will move from (1, 1) to (1, 5) in the direction of increasing flight airspace score, giving priority to the "right" flight direction, and update the tendency values corresponding to the positions (1, 1)-(1, 5) in the FOD-Table. The intelligent pilot only needs one training to get the optimal path. Therefore, while taking fewer training times, the optimal tendency values of each position of the FOD-Table can be obtained more quickly through the learning process, thereby obtaining a flight path that is closer to the optimal flight trajectory more quickly.
[0134] In yet another example, the initial value of the flight airspace assessment function is optimized by presetting the flight trajectory.
[0135] For example, in a scene rectangle of size 10×10, the coordinates of the flight start point are (1, 1), the coordinates of the flight end point are (10, 10), and there is only one target airspace. Fig. 9 As shown in the figure, the coordinates of the four points of the scene rectangle (i.e., the target airspace quadrilateral) are (4,4), (7,4), (7,7), (4,7). If the preset flight trajectory method is not used (specifically, Fig. 9The default initial value of the tendency to take all flight directions at all positions of the FOD-Table is 0. In the process of the intelligent pilot learning and updating the FOD-Table, it takes more than 1000 training times. If the path of the straight line connecting the flight starting position (1,1) and the flight end position (10,10) is taken as the preset flight trajectory, Fig. 9 As shown in the right part. The initial value of the inclination of taking the "upward right" flight direction corresponding to the positions (1,1), (2,2) ..., (10,10) in the FOD-Table is 1. Because this trajectory completely overlaps with the optimal trajectory, the inclination values of each position in the FOD-Table before training are already the same as the optimal inclination values, so only one training is needed to obtain the optimal inclination values of each position in the FOD-Table, and thus obtain the optimal flight path according to the FOD-Table. Figure 8 Compared with the method without using preset flight trajectory, the number of training times is greatly reduced.
[0136] Compared with the prior art, the present invention establishes an airspace flight training scenario model and adopts the Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model. While training the automatic flight path planning model, the flight target decision table is updated, and the current flight plan data sent by the client is received to output a flight path that matches the current flight plan data. When facing complex airspace flight area scenarios or changes in airspace location information, the training flight path can be adjusted flexibly and in real time; the flight target decision table can be updated while training the automatic flight path planning model, providing more accurate data basis for generating the optimal training flight path.
[0137] In addition, the flight airspace score gradient, score spread and preset flight trajectory methods are used respectively to accelerate the convergence speed of the flight target decision table during the training process while optimizing the flight airspace evaluation function.
[0138] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.
[0139] Fig.10 1 is a schematic structural diagram of an example of an automatic flight path planning device for airspace training according to the present invention.
[0140] The following will refer to Fig.10 , the airspace training flight path automatic planning device is described. The device is used to execute the airspace training flight path automatic planning method described in the first aspect of the present invention.
[0141] like Fig.10 As shown, the airspace training flight path automatic planning device 700 includes a data collection and processing module 710, a first establishment module 720, a second establishment module 730 and a receiving and processing module 740.
[0142] In a specific embodiment, the data collection and processing module 710 collects existing flight plan data and extracts data related to flight path planning from the existing flight data. The first establishment module 720 uses the extracted data related to flight path planning to establish an airspace flight training scenario model, specifically including establishing a flight area scenario environment based on the flight starting point position, the flight end point position, the target airspace and the no-fly zone, and forming a scenario matrix. The second establishment module 730 uses the Q-Learning reinforcement learning algorithm to establish a flight path automatic planning model based on the airspace flight training scenario model, specifically including updating the flight target decision table while training the flight path automatic planning model. The receiving and processing module 740 receives the current flight plan data sent by the client, and extracts the flight starting point position, the flight end point position, the target airspace, and the no-fly airspace related to the flight path planning from the current flight plan data as a model input to output a flight path that matches the current flight plan data.
[0143] In an optional implementation, the flight path automatic planning model is trained by enabling the intelligent pilot to execute the following loop steps, and the flight target decision table is updated while training the flight path automatic planning model:
[0144] According to the observation value of the current flight target position, the moving direction of the execution action is selected from the initial flight target decision table;
[0145] Determine the probability of each flight direction of the current flight target position, select the flight direction with the highest probability as the next flight direction, execute the next flight direction in the flight area scene, and return the next flight target position, flight airspace evaluation value and whether the simulated flight body has reached the destination from the flight area scene model;
[0146] When it is determined that the destination has been reached, the current round of training process is terminated; when it is determined that the destination has not been reached, the flight target decision table is updated according to the current flight target position, the executed flight direction, the flight airspace evaluation value, and the previous flight target position.
[0147] An airspace flight training scenario model is established, including: forming a scenario rectangle based on the flight starting point and the flight end point, and cutting the formed scenario rectangle into multiple square grids, determining the grid length of each square grid, each square grid corresponds to an element, and establishing two-dimensional data of M columns and N rows, that is, forming a regional scenario matrix; and establishing a flight area scenario environment based on the formed environment rectangle, target airspace, no-fly zone, intelligent pilot, and simulated flying object.
[0148] Based on the scene matrix, a flight airspace evaluation function is established, and the flight airspace evaluation function is used to evaluate the flight airspace score obtained when the simulated flying object passes through the target airspace or the no-fly zone.
[0149] Specifically, the two-dimensional array of the regional scene matrix is traversed. When the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the no-fly airspace, the value of the area corresponding to the single element or multiple elements in the two-dimensional array is assigned as Reward nofly .
[0150] When the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the target airspace, the value of the area corresponding to the single element or multiple elements in the two-dimensional array is assigned as Reward target , repeat the region overlap determination and value assignment process until each element in the two-dimensional array has completed the value assignment process.
[0151] In an optional embodiment, in the airspace flight training scenario model, the flight direction of the simulated flying object at each flight target position is provided, specifically including the following moving directions: left, upper left, upward, upper right, right, lower right, downward, and lower left.
[0152] In an optional embodiment, a flight target decision table is established based on the established flight airspace evaluation function and the flight direction of the configured simulated flying body. The flight target decision table includes position information of all positions of the simulated flying body in the scene matrix and the tendency value of selecting the moving direction when reaching each position.
[0153] In an optional implementation, the flight airspace evaluation function is optimized according to the flight airspace score gradient strategy to evaluate the flight airspace evaluation value of each flight target position;
[0154] Use the following expression to calculate the flight airspace assessment value of the current flight target position:
[0155]
[0156] Among them, Reward iRepresents the flight airspace evaluation value of the current flight target position, i represents the sequence number of the target airspace or no-fly airspace; Reward central Represents the flight airspace evaluation value at the center point of the target airspace, Reward central =S×Reward, where S represents the area of the target airspace and Reward represents the initial flight airspace assessment value at the center point of the target airspace; D central,i Indicates the distance between the current flight target position and the center point of the target airspace.
[0157] It should be noted that due to Fig.10 Airspace training flight path automatic planning method and method performed by an airspace training flight path automatic planning device Figure 1 The airspace training flight path automatic planning method in the examples is roughly the same, so the description of the same parts is omitted.
[0158] Compared with the prior art, the present invention establishes an airspace flight training scenario model and adopts the Q-Learning reinforcement learning algorithm to establish an automatic flight path planning model. While training the automatic flight path planning model, the flight target decision table is updated, and the current flight plan data sent by the client is received to output a flight path that matches the current flight plan data. When facing complex airspace flight area scenarios or changes in airspace location information, the training flight path can be adjusted flexibly and in real time; the flight target decision table can be updated while training the automatic flight path planning model, providing more accurate data basis for generating the optimal training flight path.
[0159] Fig.11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[0160] like Fig.11 As shown, the electronic device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0161] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least part of the steps in the method.
[0162] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0163] Optionally, in this embodiment, the electronic device further includes an I / O interface, which is used for the electronic device to exchange data with an external device. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.
[0164] It should be understood that Fig.10 The electronic device shown is only an example of the present invention, and the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.
[0165] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Fig.12 As shown, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of commands to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present invention.
[0166] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0167] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0168] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0169] The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the computer-readable medium implements the data interaction method of the present disclosure.
[0170] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0171] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the exemplary embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several commands to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
[0172] It should be noted that the above detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present application belongs.
[0173] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.
[0174] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for automatic planning of airspace training flight paths based on reinforcement learning, characterized in that: include: Collecting existing flight plan data, and extracting data related to flight path planning from the existing flight plan data; Using the extracted data related to flight path planning, an airspace flight training scenario model is established, specifically including establishing a flight area scenario environment based on the flight starting point position, the flight end point position, the target airspace and the no-fly zone, and forming a scenario rectangle based on the flight starting point position and the flight end point position; for the establishment of the flight area scenario environment, it also includes configuring an intelligent pilot, the intelligent pilot is used to repeatedly execute the loop steps to learn the optimal action and the tendency of the optimal flight direction corresponding to each flight target position to form an optimal flight path, and the steps executed by the intelligent pilot in each loop are as follows: Step S201, according to the current position of the simulated flight body, the ε-greedy strategy is used to select the flight direction of the flight target in the FOD-Table; Step S202, the intelligent pilot controls the flight target to move along the flight direction obtained in step S201, moves to the next position of the regional scenario matrix, that is, the next flight target position, and obtains the flight airspace score Reward of the position from the regional scenario matrix actual , determine whether the flight target has reached the end point. If it has not reached the end point, proceed to the next step; Calculate the intermediate value h; The establishment of the airspace flight training scenario model includes: cutting the formed scene rectangle into a plurality of square grids, determining the grid length of each square grid, each square grid corresponds to an element, establishing two-dimensional data of M columns and N rows, that is, forming a regional scenario matrix; establishing a flight area scenario environment based on the formed environment rectangle, target airspace, no-fly zone, intelligent pilot, and simulated flying body; Based on the airspace flight training scenario model, a Q-Learning reinforcement learning algorithm is used to establish an automatic flight path planning model, which specifically includes updating a flight target decision table while training the automatic flight path planning model, wherein the flight target decision table includes the position information of all positions of the simulated flying body in the regional scenario matrix and the tendency value of selecting the moving direction when arriving at each position; based on the scenario matrix, a flight airspace evaluation function is established, wherein the flight airspace evaluation function is used to evaluate the flight airspace score obtained by the simulated flying body when passing through the target airspace or the no-fly zone, and the flight airspace evaluation function calculates the k value based on the distance between the current position of the aircraft and the end point, the closer the distance to the end point, the higher the k value, and then the k value is added by 1 and multiplied by the flight airspace score Reward of the current position to obtain the flight airspace score Reward obtained by the simulated flying body passing through the current position actual , the agent uses the flight airspace score reward actual to carry out the learning process; train the automatic flight path planning model by making the intelligent pilot perform the following loop steps, and update the flight target decision table while training the automatic flight path planning model: select the moving direction of the execution action from the initial flight target decision table according to the observation value of the current flight target position; determine the probability of each flight direction of the current flight target position to select the flight direction with the highest probability as the next flight direction, execute the next flight direction in the flight area scene, and return the next flight target position, the flight airspace evaluation value and whether the simulated flight body has reached the destination from the flight area scene model; when it is determined that the destination has been reached, end this round of training process; Receive the current flight plan data sent by the client, and extract the flight starting point, flight end point, target airspace, and no-fly airspace related to flight path planning from the current flight plan data as model input to output a flight path that matches the current flight plan data.
2. The method for automatic planning of airspace training flight paths based on reinforcement learning according to claim 1, characterized in that: Traverse the two-dimensional array of the regional scene matrix. When the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the no-fly airspace, assign the value of the area corresponding to the single element or multiple elements in the two-dimensional array as Reward nofly ; When the area corresponding to a single element or multiple elements in the two-dimensional array overlaps with part of the target airspace, the value of the area corresponding to the single element or multiple elements in the two-dimensional array is assigned as Reward target , repeat the area overlap judgment and assignment process until each element in the two-dimensional array has completed the assignment process.
3. The method for automatic planning of airspace training flight paths based on reinforcement learning according to claim 2, characterized in that: Further including: In the airspace flight training scenario model, the flight direction of the simulated flying object at each flight target position is provided, specifically including the following moving directions: left, upper left, upward, upper right, right, lower right, downward, and lower left.
4. The method for automatic planning of airspace training flight paths based on reinforcement learning according to claim 3, characterized in that: According to the established flight airspace evaluation function and the flight direction of the configured simulated flying body, a flight target decision table is established, wherein the flight target decision table includes the position information of all positions of the simulated flying body in the scene matrix and the tendency value of selecting the moving direction when arriving at each position.
5. The method for automatic planning of airspace training flight paths based on reinforcement learning according to claim 1, characterized in that: According to the flight airspace score gradient strategy, the flight airspace evaluation function is optimized to evaluate the flight airspace evaluation value of each flight target position.
6. The method for automatic planning of airspace training flight paths based on reinforcement learning according to claim 5, characterized in that: Use the following expression to calculate the flight airspace assessment value of the current flight target position: ; Among them, Reward i Represents the flight airspace evaluation value of the current flight target position, i represents the sequence number of the target airspace or no-fly airspace; Reward central Represents the flight airspace assessment value at the center point of the target airspace, , where S represents the area of the target airspace, Reward represents the initial flight airspace evaluation value at the center point of the target airspace; D central,i Indicates the distance between the current flight target position and the center point of the target airspace.
7. An automatic airspace training flight path planning device, used to execute the automatic airspace training flight path planning method based on reinforcement learning according to claim 1, characterized in that: include: A data collection and processing module collects existing flight plan data and extracts data related to flight path planning from the existing flight plan data; The first establishment module uses the extracted data related to flight path planning to establish an airspace flight training scenario model, specifically including establishing a flight area scenario environment based on the flight starting point position, flight end point position, target airspace and no-fly zone, and forming a scenario matrix; The second establishment module is to establish a flight path automatic planning model based on the airspace flight training scenario model using a Q-Learning reinforcement learning algorithm, specifically including updating a flight target decision table while training the flight path automatic planning model; The receiving and processing module receives the current flight plan data sent by the client, and extracts the flight starting point position, flight end point position, target airspace, and no-fly airspace related to the flight path planning from the current flight plan data as model input to output a flight path that matches the current flight plan data.
Citation Information
Patent Citations
Two-stage unmanned aerial vehicle logistics path planning method based on deep reinforcement learning
CN113283827A
