Multi-objective ship route planning method based on AIS data in dynamic environment

By obtaining the AIS data of the target ship and intelligent obstacle avoidance algorithm, the problem of multi-target ship route planning in a dynamic environment is solved, the shortest path and safe navigation of the tugboat transporting the pilot are realized, and the accuracy and safety of route planning are improved.

CN114675652BActive Publication Date: 2024-10-25CETC NINGBO MARINE ELECTRONICS RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210337025.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-01
Publication Date
2024-10-25
Estimated Expiration
2042-04-01

AI Technical Summary

Technical Problem

Existing ship route planning methods cannot effectively plan paths for multiple target ships in a dynamic environment, especially when target locations change, and cannot consider the shortest path and safety of tugs transporting pilots.

Method used

By obtaining the AIS data of the target ship, a Cartesian coordinate system and a latitude and longitude coordinate system are established to divide the sea area, calculate the shortest path between the tugboat and the target ship, and use intelligent obstacle avoidance algorithms for path planning to ensure the accuracy and safety of the path.

Benefits of technology

It improves the accuracy and safety of route planning, reduces the probability of accidents, improves the operating efficiency and fuel consumption of tugs, and provides safety guarantee.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114675652B_ABST
    Figure CN114675652B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-target ship route planning method based on AIS data in a dynamic environment. The target ship's information is obtained by receiving the target ship's AIS data. The method of obtaining information is simple and fast, which improves the accuracy of obtaining information, thereby improving the accuracy of route planning and reducing the probability of accidents. When dividing the area where the multiple target ships are located, the path planning of the tugboat is carried out in accordance with the principle of from near to far and with all target ships as the destination. During the path planning, the position changes of all target ships are considered, and the path planning method is simple and fast. After the preliminary planning of the tugboat route is completed, the intelligent obstacle avoidance algorithm is used to avoid obstacles on the route, and the final shortest navigation path of the tugboat is determined, which not only reduces the fuel consumption of the tugboat and improves the operating efficiency of the tugboat, but also provides safety protection for the tugboat operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of ship route planning, and in particular relates to a multi-target ship route planning method based on AIS data in a dynamic environment. Background Art

[0002] AIS (Automatic Identification System) is a new navigation aid system used for maritime safety and communication between ships and shores, and between ships. It can send the ship's AIS data to the shore or satellite at regular intervals. AIS data includes multiple types of information, such as static information, dynamic information, etc. Static information includes ship name, ship type, etc., and dynamic information includes ship position, heading, speed, etc.

[0003] When a ship is docking or leaving a dock, passing through a lock, or passing through restricted waters, it needs the guidance of a pilot, so a tugboat is needed to transport the pilot to the designated target ship. When the target ship sails to a sea area where the guide is no longer needed, a tugboat is needed to pick up the pilot. While the tugboat is transporting the pilot, the target ship is still in motion. In most cases, there are many ships that need pilots at the same time. Therefore, before a tugboat transports pilots to multiple target ships, it is necessary to combine the heading and speed of the target ships to plan a shortest route for transporting pilots.

[0004] At present, the existing ship route planning methods cannot solve the above problems well. For example, the unmanned boat collision avoidance method based on genetic algorithm and particle swarm algorithm described in CN109933067A, although the avoidance path planning is carried out for static obstacles and dynamic obstacles respectively, its target position is fixed; another example is the unmanned boat automatic track planning method described in CN111538332B, which obtains the distance and heading of the moving ship through the AIS receiver to plan the collision avoidance path, and its target position is also unchanged; another example is the paper "A method for planning safe routes using massive AIS data" published by Xiang Zhe et al. in "China Safety Science and Technology" (2016 Issue 10), which uses the A* algorithm to plan ship routes based on massive AIS data, but its route planning method does not consider the situation where the target position changes at any time. Therefore, in a dynamic environment, considering the use of AIS data for multi-target ship route planning is a problem that needs to be solved in current ship route planning. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a multi-target ship route planning method based on AIS data in a dynamic environment.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a multi-target ship route planning method based on AIS data in a dynamic environment, the specific steps are as follows:

[0007] Step 1: Obtain target ship AIS data

[0008] The tugboat communicates with the nearby target ship to be guided through its own AIS system, obtains the AIS data of the target ship and counts the number of target ships N (N ≥ 2). The AIS data includes the current position, heading and speed of the target ship; the AIS data is as follows: the current position of the N target ships is the longitude and latitude coordinates, recorded as G1 (lon1, lat1), G2 (lon2, lat2), ..., GN (lon N ,lat N ); The headings of the N target ships are the true headings, denoted as α1, α2, ..., α N ; The speeds of the N target ships are recorded as V1, V2, ......., V N ;

[0009] Step 2: Establish the coordinate system

[0010] Take the initial position of the tugboat as the origin O, the straight line parallel to the true meridian and passing through the origin O as the Y axis, and the straight line perpendicular to the true meridian and passing through the origin O as the x axis to establish a rectangular coordinate system. Take two points A1 and A2 in the rectangular coordinate system XOY. The coordinate information of points A1 and A2 is known, that is, the rectangular coordinates of points A1 and A2 are A1(x1, y1), A2(x2, y2); the longitude and latitude coordinates of points A1 and A2 are A1' (lon1', lat1'), A2' (lon2', lat2');

[0011] Step 3: Coordinate transformation

[0012] With point A1 as the starting point and A2 and Gi (1≤i≤N) as the end points, two vectors A12 and A1i are formed. The rectangular coordinates of vector A12 are (dx1, dy1) and the longitude and latitude coordinates are (dlon1, dlat1); the rectangular coordinates of vector A1i are (dx i ,dy i ), the longitude and latitude coordinates are (dlon i , dlat i ), where dx1 = x2-x1, dy1 = y2-y1, dlon1 = lon2′-lon1′, dlat1 = lat2′-lat1′; dx i =x i -x1,dy i =y i -y1;dlon i =loni′-lon1′,dlat i = lati′-lat1′; x i and iis the coordinate of the i-th target ship in the rectangular coordinate system XOY;

[0013] The modules of vectors A12 and A1i in the rectangular coordinate system and the latitude and longitude coordinate system are k1, k2, k3, k4; then

[0014] According to the principle that the length ratio of two vectors in different coordinate systems is the same and the angle between two vectors in different coordinate systems is unchanged, the rectangular coordinates and longitude and latitude coordinates of vectors A12 and A1i satisfy the following relationship:

[0015]

[0016] According to the above formula, the coordinate x of the i-th target ship in the rectangular coordinate system XOY can be obtained: i and i ;

[0017] Step 4: Division of the sea area where the target ship is located

[0018] According to the initial rectangular coordinates Gi′(x i ,y i ), taking the initial position coordinates of the tugboat as the origin, a circle is formed that includes all target ships, and its radius is R1. The radius R1 is divided into four equal parts to determine three more circles, whose radii are R2, R3, and R4 (R4<R3<R2<R1), and the sea area where all target ships are located is divided into five areas, namely, Area I, Area II, Area III, Area IV, and Area V;

[0019] Step 5: Classification of vessels in each sea area

[0020] Calculate the distance l of all target ships from the initial position of the tugboat i :

[0021] Comparison i The relationship between R1, R2, R3, and R4 is used to classify the target ship:

[0022] If l i <R4, the target ship belongs to zone I;

[0023] If R4<l i <R3, the target ship belongs to Zone II;

[0024] If R3<l i <R2, the target ship belongs to zone III;

[0025] If R2<l i <R1, the target ship belongs to Zone IV;

[0026] And count the number of ships in each area as N j (j=I~IV), satisfying The target ship that has completed the division is renumbered as G jm (0<m<N j );

[0027] Step 6: Preliminary planning of tugboat routes

[0028] The route planning of the tugboat for multiple target ships in area j (j = I ~ IV) is as follows:

[0029] 6.1. Based on the position of the tugboat n (x n ,y n )(0≤n≤N-1)(Point O n The coordinates are known) as the starting point, establish axis y' parallel to the y axis, and take point A at a certain distance z on axis y' n (x n , y′ n ) (y′ n =y n +z);

[0030] 6.2, point O n As the starting point, A n and G jm As the end point, two vectors OA are formed n and OG jm , vector OA n The rectangular coordinates are (0, z); the vector OG jm The rectangular coordinates are (x jm -x n ,y jm -y n ); x jm and jm The target ship G jm Coordinates in the rectangular coordinate system XOY;

[0031] 6.3. Calculate vector OG jm Model S jm , the formula is as follows:

[0032]

[0033] 6.4. Calculate two vectors OA n and OG jm The angle θ jm , the formula is as follows:

[0034]

[0035] 6.5、Assume that the tugboat moves along β jmdirection, traveling at speed V, traveling time t, and meeting the target ship G at point B jm Encounter; jm is the tugboat's direction of travel and the vector OG jm The angle between them; the speed V is known and satisfies V≥{V1, V2, ..., V N} max ;

[0036] 6.6. Calculation of G of tugboat and target ship jm The driving distance H jm and F jm , the formula is as follows:

[0037] H jm =V*t jm

[0038] F jm =V jm *t jm

[0039] 6.7. Target ship G jm The driving direction α jm Make a judgment: If 0°<α jm <180°, execute step 6.8; if 180°<α jm <360°, execute step 6.9; if α jm =0° or 360°, execute step 6.10; if α jm =180°, execute step 6.11;

[0040] 6.8 Angle β jn Satisfies the following equation:

[0041] where γ jm =α jm -(θ jm +β jm ), 0°<β jm <α jm -θ jm ;

[0042] Simplified:

[0043] At 0°<β jm <α jm -θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0044] 6.9 Angle β jm Satisfies the following equation:

[0045] Among them, γ jm =180°-δ jm -β jm , δ jm =180°-ε jm -θ jm , where ε jm =360°-α jm , so γ jm =360°+θ jm -α jm -β jm , 0°<β jm <360°-α jm +θ jm ;

[0046] Simplified:

[0047]

[0048] At 0°<β jm <360°-α jm +θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0049] 6.10 Angle β jm Satisfies the following equation:

[0050] Among them, γ jm =180°-δ jm -β jm , δ jm =180°-θ jm , so γ jm =θ jm -β jm , 0°<β jm <θ jm ;

[0051] Simplified:

[0052]

[0053] At 0°<β jm <θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0054] 6.11 Angle β jm Satisfies the following equation:

[0055] Among them, γ jm =180°-δjm -β jm , δ jm =θ jm , so γ jm =180°-θ jm -β jm , 0°<β jm <180°-θ jm ;

[0056] Simplified:

[0057] At 0°<β jm <180°-θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0058] 6.12. Reduce the number of target ships by one: N←N-1;

[0059] Step 7: Calculate the current positions of the remaining N target ships

[0060] After determining that the tugboat moves from its current position to the target ship G jm The shortest path time t jm After that, there are N target ships G remaining. jn (0<n<N) from the initial position G jn (x jn ,y jn )(Position G jn is known) runs to the current position G′ jn (x′ jn , y′ jn ), the current position coordinates are calculated as follows:

[0061] 7.1. Target ship G jn Speed ​​V jn Decompose it and get:

[0062] Among them, V jnx 、V jny The speed V jn Components along the horizontal and vertical directions;

[0063] 7.2, t jm After a moment, the target ship G jn The driving distance is as follows:

[0064]

[0065] Among them, S jnx , S jny The target ship G jnAlong the horizontal and vertical directions at t jm Movement distance within

[0066] 7.3. For the remaining N target ships G jn The driving direction α jn Make a judgment: If 0°≤α jn <90°, execute step 7.4; if 90°≤α jn <180°, execute step 7.5; if 180°≤α jn <270°, execute step 7.6; if 270°≤α jn ≤360°, go to step 7.7;

[0067] 7.4 Angle τ jn Satisfy τ jn =α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0068] 7.5 Angle τ jn Satisfy τ jn =180°-α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0069] 7.6 Angle τ jn Satisfy τ jn =α jn -180°, then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0070] 7.7 Angle τ jn Satisfy τ jn =360°-α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0071] Step 8: Update the judgment of the sea area where the target ship is located

[0072] Calculate the remaining N target ships Gjn Distance l from the tugboat's initial position i :

[0073] Compare l′ i The relationship between R1, R2, R3, and R4 is used to update and iterate the classification of target ships in each area:

[0074] If l′ i <Rj, then the target ship belongs to zone I;

[0075] If R4<l′ i <R3, the target ship belongs to Zone II;

[0076] If R3<l′ i <R2, the target ship belongs to zone III;

[0077] If R2<l′ i <R1, the target ship belongs to Zone IV;

[0078] If l′ i >R4, the target ship belongs to zone V;

[0079] Update the number of existing ships in each area to N s (s=I~V), satisfying

[0080] Step 9: Path planning judgment

[0081] Determine the number of remaining target ships N: if N≠0, then the next target ship G jm+1 Perform path planning and go to step 6; if N=0, go to step 10;

[0082] Step 10: Intelligent obstacle avoidance planning: perform obstacle avoidance processing on the initial path of the target ship.

[0083] As a preferred solution, the specific process of the intelligent obstacle avoidance planning in step 10 is as follows:

[0084] 10.1. Establish a grid map: Based on the initial starting position of the tugboat and the final positions of all target ships, establish a grid map of the area where they are located. The range of the grid map covers the starting position and the final position; the width of the grid is set to 2-15 times the length of the ship;

[0085] 10.2. Marking of unnavigable areas in grid maps: First, coordinates, dimensions and other information of reefs and prohibited navigation areas are provided synchronously through electronic nautical charts to occupy positions in grid maps; then, reefs and prohibited navigation areas near the preliminary path of the target ship are determined; then, obstacles are regularized through primary expansion, and secondary expansion is performed on the basis of the primary expansion to reserve a safe distance; finally, marking of unnavigable areas in grid maps is realized;

[0086] 10.3. Use intelligent obstacle avoidance algorithm to plan the path near the non-navigable area: After building the grid map with obstacle marks, execute the intelligent obstacle avoidance algorithm.

[0087] As a preferred solution, the intelligent obstacle avoidance algorithm is an A* algorithm.

[0088] The beneficial effects of the present invention are:

[0089] The multi-target ship route planning method based on AIS data of the present invention obtains the information of the target ship by receiving the AIS data of the target ship. The way of obtaining information is simple and fast, which improves the accuracy of obtaining information, thereby improving the accuracy of route planning and reducing the probability of accidents. When dividing the area where the multiple target ships are located, the principle of from near to far is followed and the path planning of the tugboat is carried out with all target ships as the destination. During the path planning, the position changes of all target ships are considered, and the path planning method is simple and fast. After the preliminary planning of the tugboat route is completed, the intelligent obstacle avoidance algorithm is used to avoid obstacles on the route to determine the final shortest navigation path of the tugboat, which not only reduces the fuel consumption of the tugboat and improves the operating efficiency of the tugboat, but also provides safety protection for the tugboat operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 Schematic diagram of the sea area where the multi-target ship of the present invention is located

[0091] Figure 2 The target ship route planning flow chart of the present invention is

[0092] Figure 3 The target ship of the present invention has a heading of 0° to 180°.

[0093] Figure 4 The target ship of the present invention has a heading of 180° to 360°.

[0094] Figure 5 The target ship of the present invention has a heading of 0° or 360°.

[0095] Figure 6 The target ship of the present invention has a heading of 180°.

[0096] Figure 7This is a schematic diagram of the speed breakdown of the target ship in the present invention at a heading of 0° to 90°

[0097] Figure 8 This is a schematic diagram of the speed breakdown of the target ship in the present invention at a heading of 90° to 180°

[0098] Fig. 9 This is a schematic diagram of the speed breakdown of the target ship in the present invention when the heading is between 180° and 270°

[0099] Fig.10 This is a schematic diagram of the speed breakdown of the target ship in the present invention at a heading of 270° to 360° DETAILED DESCRIPTION

[0100] The specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0101] like Figures 1 to 10 As shown, the multi-target ship route planning method based on AIS data in a dynamic environment of the present invention is as follows:

[0102] Step 1: Obtain target ship AIS data

[0103] The tugboat communicates with the target ship that needs a guide nearby through its own AIS system, obtains the AIS data of the target ship and counts the number of target ships N (N ≥ 2). The AIS data includes the current position, heading and speed of the target ship. The AIS data is as follows: The current position of the N target ships is the longitude and latitude coordinates, recorded as G1 (lon1, lat1), G2 (lon2, lat2), ..., GN (lonN, lat N ); The headings of the N target ships are the true headings, denoted as α1, α2, ..., α N ; The speeds of the N target ships are recorded as V1, V2, ..., V N ;

[0104] Step 2: Establish the coordinate system

[0105] Take the initial position of the tugboat as the origin O, the straight line parallel to the true meridian and passing through the origin O as the Y axis, and the straight line perpendicular to the true meridian and passing through the origin O as the x axis to establish a rectangular coordinate system. Take two points A1 and A2 in the rectangular coordinate system XOY. The coordinate information of points A1 and A2 is known, that is, the rectangular coordinates of points A1 and A2 are A1(x1, y1), A2(x2, y2); the longitude and latitude coordinates of points A1 and A2 are A1' (lon1', lat1'), A2' (lon2', lat2');

[0106] Step 3: Coordinate transformation

[0107] With point A1 as the starting point and A2 and Gi (1≤i≤N) as the end points, two vectors A12 and A1i are formed. The rectangular coordinates of vector A12 are (dx1, dy1) and the longitude and latitude coordinates are (dlon1, dlat1); the rectangular coordinates of vector A1i are (dx i ,dy i ), the longitude and latitude coordinates are (dlon i , dlat i ), where dx1 = x2-x1, dy1 = y2-y1, dlon1 = lon2′-lon1′, dlat1 = lat2′-lat1′; dx i =x i -x1,dy i =y i -y1;dlon i =loni′-lon1′,dlat i = lati′-lat1′; x i and i is the coordinate of the i-th target ship in the rectangular coordinate system XOY;

[0108] The modules of vectors A12 and A1i in the rectangular coordinate system and the latitude and longitude coordinate system are k1, k2, k3, k4; then

[0109] According to the principle that the length ratio of two vectors in different coordinate systems is the same and the angle between two vectors in different coordinate systems is unchanged, the rectangular coordinates and longitude and latitude coordinates of vectors A12 and Ali satisfy the following relationship:

[0110]

[0111] According to the above formula, the coordinate x of the i-th target ship in the rectangular coordinate system XOY can be obtained: i and i ;

[0112] Step 4: Division of the sea area where the target ship is located

[0113] According to the initial rectangular coordinates Gi′(x i ,y i ), taking the initial position coordinates of the tugboat as the origin, a circle is formed that includes all target ships, and its radius is R1. The radius R1 is divided into four equal parts to determine three more circles, whose radii are R2, R3, and R4 (R4<R3<R2<R1), and the sea area where all target ships are located is divided into five areas, namely, Area I, Area II, Area III, Area IV, and Area V;

[0114] Step 5: Classification of vessels in each sea area

[0115] Calculate the distance l of all target ships from the initial position of the tugboat i :

[0116]

[0117] Comparison i The relationship between R1, R2, R3, and R4 is used to classify the target ship:

[0118] If l i <R4, the target ship belongs to zone I;

[0119] If R4<l i <R3, the target ship belongs to Zone II;

[0120] If R3<l i <R2, the target ship belongs to zone III;

[0121] If R2<l i <R1, the target ship belongs to Zone IV;

[0122] And count the number of ships in each area as N j (j=I~IV), satisfying The target ship that has completed the division is renumbered as G jm (0<m<N j );

[0123] Step 6: Preliminary planning of tugboat routes

[0124] The route planning of the tugboat for multiple target ships in area j (j = I ~ IV) is as follows:

[0125] 6.1. Based on the position of the tugboat n (x n ,y n )(0≤n≤N-1)(Point O n The coordinates are known) as the starting point, establish axis y' parallel to the y axis, and take point A at a certain distance z on axis y' n (x n , y′ n ) (y′ n =y n +z);

[0126] 6.2, point O n As the starting point, A n and G jm As the end point, two vectors OA are formed n and OG jm , vector OA n The rectangular coordinates are (0, z); the vector OGjm The rectangular coordinates are (x jm -x n ,y jm -y n ); x jm and jm The target ship G jm Coordinates in the rectangular coordinate system XOY;

[0127] 6.3. Calculate vector OG jm Model S jm , the formula is as follows:

[0128]

[0129] 6.4. Calculate two vectors OA n and OG jm The angle θ jm , the formula is as follows:

[0130]

[0131] 6.5、Assume that the tugboat moves along β jm direction, traveling at speed V, traveling time t, and meeting the target ship G at point B jm Encounter; jm is the tugboat's direction of travel and the vector OG jm The angle between them; the speed V is known and satisfies V≥{V1, V2, ..., V N} max ;

[0132] 6.6. Calculation of G of tugboat and target ship jm The driving distance H jm and F jm , the formula is as follows:

[0133] H jm =V*t jm

[0134] F jm =V jm *t jm

[0135] 6.7. Target ship G jm The driving direction α jm Make a judgment: If 0°<α jm <180°, execute step 6.8; if 180°<α jm <360°, execute step 6.9; if α jm =0° or 360°, execute step 6.10; if α jm =180°, execute step 6.11;

[0136] 6.8 Angle β jm Satisfies the following equation:

[0137] where γ jm =α jm -(θ jm +β jm ), 0°<β jm <α jm -θ jm ;

[0138] Simplified:

[0139] At 0°<β jm <α jm -θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0140] 6.9 Angle β jm Satisfies the following equation:

[0141] Among them, γ jm =180°-δ jm -β jm , δ jm =180°-ε jm -θ jm , where ε jm =360°-α jm , so γ jm =360°+θ jm -α jm -β jm , 0°<β jm <360°-α jm +θ jm ;

[0142] Simplified:

[0143] At 0°<β jm <360°-α jm +θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0144] 6.10 Angle β jm Satisfies the following equation:

[0145] Among them, γ jm =180°-δ jm -βjm , δ jm =180°-θ jm , so γ jm =θ jm -β jm , 0°<β jm <θ jm ;

[0146] Simplified:

[0147] At 0°<β jm <θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0148] 6.11 Angle β jm Satisfies the following equation:

[0149] Among them, γ jm =180°-δ jm -β jm , δ jm =θ jm , so γ jm =180°-θ jm -β jm , 0°<β jm <180°-θ jm ;

[0150] Simplified:

[0151] At 0°<β jm <180°-θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path;

[0152] 6.12. Reduce the number of target ships by one: N←N-1

[0153] Step 7: Calculate the current positions of the remaining N target ships

[0154] After determining that the tugboat moves from its current position to the target ship G im The shortest path time t jm After that, there are N target ships G remaining. jn (0<n<N) from the initial position G jn (x jn ,y jn )(Position G jn is known) runs to the current position G′ jn (x′ jn , y′ jn), the current position coordinates are calculated as follows:

[0155] 7.1. Target ship G jn Speed ​​V jn Decompose it and get the following system of equations:

[0156]

[0157] Among them, V jnx 、V jny The speed V jn Components along the horizontal and vertical directions;

[0158] 7.2, t jn After a moment, the target ship G jn The driving distance is as follows:

[0159] Among them, S jnx , S jny The target ship G jn Along the horizontal and vertical directions at t jm Movement distance within

[0160] 7.3. For the remaining N target ships G jn The driving direction α jn Make a judgment: If 0°≤α jn <90°, execute step 7.4; if 90°≤α jn <180°, execute step 7.5; if 180°≤α jn <270°, execute step 7.6; if 270°≤α jn ≤360°, go to step 7.7;

[0161] 7.4 Angle τ jn Satisfy τ jn =α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0162] 7.5 Angle τ jn Satisfy τ jn =180°-α jn , then the target ship G′ jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0163] 7.6 Angle τjn Satisfy τ jn =α jn -180°, then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0164] 7.7 Angle τ jn Satisfy τ jn =360°-α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in

[0165] Step 8: Update the judgment of the sea area where the target ship is located

[0166] Calculate the remaining N target ships G jn Distance l from the tugboat's initial position i :

[0167] Compare l′ i The relationship between R1, R2, R3, and R4 is used to update and iterate the classification of target ships in each area:

[0168] If l′ i <Rj, then the target ship belongs to zone I;

[0169] If R4<l′ i <R3, the target ship belongs to Zone II;

[0170] If R3<l′ i <R2, the target ship belongs to zone III;

[0171] If R2<l′ i <R1, the target ship belongs to Zone IV;

[0172] If l′ i >R4, the target ship belongs to zone V;

[0173] Update the number of existing ships in each area to N s (s=I~V), satisfying

[0174] Step 9: Path planning judgment

[0175] Determine the number of remaining target ships N: If N≠0, then the next target ship G jm+1Perform path planning and execute steps 6 to 9; if N=0, execute step 10;

[0176] Step 10: Intelligent obstacle avoidance planning

[0177] The initial path of the target ship is processed for obstacle avoidance, and the process is as follows:

[0178] 10.1. Establish a grid map. According to the initial starting position of the tugboat and the final position of all target ships, a grid map is established for the area where they are located. The range of the grid map covers the starting position and the final position; the width of the grid is set to 2-15 times the length of the ship.

[0179] 10.2. Marking of non-navigable areas in grid maps. First, coordinates and dimensions of reefs and prohibited navigation areas are provided synchronously through electronic nautical charts to occupy positions in grid maps; then, reefs and prohibited navigation areas near the initial path of the target ship are determined; then, obstacles are regularized through primary expansion, and secondary expansion is performed on the basis of the primary expansion to reserve a safe distance. Finally, marking of non-navigable areas in grid maps is achieved.

[0180] 10.3. Use the intelligent obstacle avoidance algorithm to plan the path near the non-navigable area. After the grid map with obstacle marks is established, the intelligent obstacle avoidance algorithm is executed. The intelligent obstacle avoidance algorithm uses the A* algorithm, which is not only highly efficient, but also can achieve the shortest path planning under the grid map under the guidance of the customized heuristic function.

[0181] The above-mentioned embodiments are only illustrative of the principles and effects of the invention, as well as some embodiments of its application, and are not intended to limit the invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the invention, and all of these belong to the protection scope of the invention.

Claims

1. A multi-objective ship route planning method based on AIS data in a dynamic environment, the specific steps are as follows: Step 1: Obtain target ship AIS data The tugboat communicates with the nearby target ship to be guided through its own AIS system, obtains the AIS data of the target ship and counts the number of target ships N (N ≥ 2). The AIS data includes the current position, heading and speed of the target ship; the AIS data is as follows: the current position of the N target ships is the longitude and latitude coordinates, recorded as G1 (lon1, lat1), G2 (lon2, lat2), ..., GN (lon N ,lat N ); the headings of the N target ships are the true headings, denoted as α1, α2, ..., α N ; The speeds of the N target ships are V1, V2, ..., V N ; Step 2: Establish the coordinate system Take the initial position of the tugboat as the origin O, the straight line parallel to the true meridian and passing through the origin O as the Y axis, and the straight line perpendicular to the true meridian and passing through the origin O as the x axis to establish a rectangular coordinate system. Take two points A1 and A2 in the rectangular coordinate system XOY. The coordinate information of points A1 and A2 is known, that is, the rectangular coordinates of points A1 and A2 are A1(x1, y1) and A2(x2, y2); the longitude and latitude coordinates of points A1 and A2 are A1′(lon1′, lat1′) and A2′(lon2′, lan2′); Step 3: Coordinate transformation With point A1 as the starting point and A2 and Gi (1≤i≤N) as the end points, two vectors A12 and A1i are formed. The rectangular coordinates of vector A12 are (dx1, dy1) and the longitude and latitude coordinates are (dlon1, dlat1); the rectangular coordinates of vector A1i are (dx i ,dy i ), the longitude and latitude coordinates are (dlon i , dlat i );in, dx1=x2-x1, dy1=y2-y1; dlon1=lon2′-lon1′, dlat1=lat2′-lat1′; dx i =x i -x1,dy i =y i -y1;dlon i =loni′-lon1′,dlat i = lati′-lat1′; x i and i is the coordinate of the i-th target ship in the rectangular coordinate system XOY; The modules of vectors A12 and A1i in the rectangular coordinate system and the latitude and longitude coordinate system are k1, k2, k3, k4; then According to the principle that the length ratio of two vectors in different coordinate systems is the same and the angle between two vectors in different coordinate systems is unchanged, the rectangular coordinates and longitude and latitude coordinates of vectors A12 and A1i satisfy the following relationship: According to the above formula, the coordinate x of the i-th target ship in the rectangular coordinate system XOY can be obtained: i and i ; Step 4: Division of the sea area where the target ship is located According to the initial rectangular coordinates Gi′(x i ,y i ), taking the initial position coordinates of the tugboat as the origin, a circle is formed that includes all target ships, and its radius is R1. The radius R1 is divided into four equal parts to determine three more circles, whose radii are R2, R3, and R4 (R4<R3<R2<R1), and the sea area where all target ships are located is divided into five areas, namely Area I, Area II, Area III, Area IV, and Area V; Step 5: Classification of vessels in each sea area Calculate the distance l of all target ships from the initial position of the tugboat i : Comparison i The relationship between R1, R2, R3, and R4 is used to classify the target ship: If l i <R4, the target ship belongs to Zone Ⅰ; If R4<l i <R3, then the target ship belongs to zone Ⅱ; If R3<l i <R2, the target ship belongs to zone III; If R2<l i <R1, the target ship belongs to zone Ⅳ; And count the number of ships in each area as N j (j=Ⅰ~Ⅳ), satisfying The target ship that has completed the division is renumbered as G jm (0<m<N j ); Step 6: Preliminary planning of tugboat routes The route planning of the tugboat for multiple target ships in area j (j = I ~ IV) is as follows: 6.

1. Based on the position of the tugboat n (x n ,y n )(0≤n≤N-1)(Point O n The coordinates are known) as the starting point, establish axis y' parallel to the y axis, and take point A at a certain distance z on axis y' n (x n , y′ n )(y′ n =y n +z); 6.2, point O n As the starting point, A n and G jm As the end point, two vectors OA are formed n and OG jm , vector OA n The rectangular coordinates are (0, z); the vector OG jm The rectangular coordinates are (x jm -x n ,y jm -y n ); x jm and jm The target ship G jm Coordinates in the rectangular coordinate system XOY; 6.

3. Calculate vector OG jm Model S jm , the formula is as follows: 6.

4. Calculate two vectors OA n and OG jm The angle θ jm , the formula is as follows: 6.5、Assume that the tugboat moves along β jm direction, traveling at speed V, traveling time t, and meeting the target ship G at point B jm Encounter; jm is the tugboat's direction of travel and the vector OG jm The angle between them; the speed V is known and satisfies V≥{V1, V2, ..., V N } max ; 6.

6. Calculation of G of tugboat and target ship jm The driving distance H jm and F jm , the formula is as follows: H jm =V*t jm F jm =V jm *t jm 6.

7. Target ship G jm The driving direction α jm Make a judgment: If 0°<α jm <180°, execute step 6.8; if 180°<α jm <360°, execute step 6.9; if α jm =0° or 360°, execute step 6.10; if α jm =180°, execute step 6.11; 6.8 Angle β jm Satisfies the following equation: among them c jm =a jm -(θ jm +b jm ),0°<β jm <a jm -θ jm ; Simplified: At 0°<β jm <α jm -θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path; 6.9 Angle β jm Satisfies the following equation: in, c jm =180°-d jm -b jm ,d jm =180°-e jm -θ jm , among them jm =360°-a jm ,why jm =360°+θ jm -a jm -b jm ,0°<β jm <360°-a jm +θ jm ; Simplified: At 0°<β jm <360°-α jm +θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path; 6.10 Angle β jm Satisfies the following equation: among them,c jm =180°-d jm -b jm ,d jm =180°-θ jm ,why jm =θ jm -b jm ,0°<β jm <θ jm ; Simplified: At 0°<β jm <θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path; 6.11 Angle β jm Satisfies the following equation: among them,c jm =180°-d jm -b jm ,d jm =θ jm ,why jm =180°-θ jm -b jm ,0°<β jm <180°-θ jm ; Simplified: At 0°<β jm <180°-θ jm Under these conditions, we can obtain t jm The minimum value of can obtain the optimal path; 6.

12. Reduce the number of target ships by one: N←N-1; Step 7: Calculate the current positions of the remaining N target ships After determining that the tugboat moves from its current position to the target ship G jm The shortest path time t jm After that, there are N target ships G remaining. jn (0<n<N) from the initial position G jn (x jn ,y jn )(Position G jn is known) runs to the current position G′ jn (x′ jn , y′ jn ), the current position coordinates are calculated as follows: 7.

1. Target ship G jn Speed ​​V jn Decompose it and get: Among them, V jnx 、V jny The speed V jn Components along the horizontal and vertical directions; 7.2, t jm After a moment, the target ship G jn The driving distance is as follows: Among them, S jnx , S jny The target ship G jn Along the horizontal and vertical directions at t jm Movement distance within 7.

3. For the remaining N target ships G jn The driving direction α jn Make a judgment: If 0°≤α jn <90°, execute step 7.4; if 90°≤α jn <180°, execute step 7.5; if 180°≤α jn <270°, execute step 7.6; if 270°≤α jn ≤360°, go to step 7.7; 7.4 Angle τ jn Satisfy τ jn =α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in 7.5 Angle τ jn Satisfy τ jn =180°-α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in 7.6 Angle τ jn Satisfy τ jn =α jn -180°, then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in 7.7 Angle τ jn Satisfy τ jn =360°-α jn , then the target ship G jn Current position coordinates G′ jn (x′ jn , y′ jn ),in Step 8: Update the judgment of the sea area where the target ship is located Calculate the remaining N target ships G jn Distance l from the tugboat's initial position i : Compare l′ i The relationship between R1, R2, R3, and R4 is used to update and iterate the classification of target ships in each area: If l′ i <Rj, then the target ship belongs to zone Ⅰ; If R4<l′ i <R3, then the target ship belongs to zone Ⅱ; If R3<l′ i <R2, the target ship belongs to zone III; If R2<l′ i <R1, the target ship belongs to zone Ⅳ; If l′ i >R4, the target ship belongs to zone V; Update the number of existing ships in each area to N s (s=Ⅰ~Ⅴ), satisfying Step 9: Path planning judgment Determine the number of remaining target ships N: If N≠0, then the next target ship G jm+1 Perform path planning and go to step 6; if N=0, go to step 10; Step 10: Intelligent obstacle avoidance planning: perform obstacle avoidance processing on the initial path of the target ship.

2. A multi-objective ship route planning method based on AIS data in a dynamic environment as claimed in claim 1, characterized in that: The specific process of the intelligent obstacle avoidance planning in step 10 is as follows: 10.

1. Establish a grid map: Based on the initial starting position of the tugboat and the final positions of all target ships, establish a grid map of the area where they are located. The range of the grid map covers the starting position and the final position; the width of the grid is set to 2-15 times the length of the ship; 10.

2. Marking of unnavigable areas in grid maps: First, coordinates, dimensions and other information of reefs and prohibited navigation areas are provided synchronously through electronic nautical charts to occupy positions in grid maps; then, reefs and prohibited navigation areas near the preliminary path of the target ship are determined; then, obstacles are regularized through primary expansion, and secondary expansion is performed on the basis of the primary expansion to reserve a safe distance; finally, marking of unnavigable areas in grid maps is realized; 10.

3. Use intelligent obstacle avoidance algorithm to plan the path near the non-navigable area: After building the grid map with obstacle marks, execute the intelligent obstacle avoidance algorithm.

3. A multi-objective ship route planning method based on AIS data in a dynamic environment as claimed in claim 2, characterized in that: The intelligent obstacle avoidance algorithm is the A* algorithm.