In the problem of calculating hull elements using the table of offsets, the sparsity between hull slices will bring uncertainty and error to the calculation. Therefore, this paper proposes a refinement algorithm of the ship hull based on the table of offsets: Firstly, the NURBS curve for the hull is constructed based on the table of offsets, and the hull's NURBS surface is obtained through the skinning algorithm. Secondly, the IR-BFS algorithm is used to inverse the knot parameters of the stations of the target station in the hull's NURBS surface. Thirdly, based on the knot parameters and the hull NURBS surface expression, the hull section, after refinement of the target station, is obtained. In constructing the hull's NURBS surface, the hull section is first expressed using the NURBS interpolation algorithm and the flattening algorithm of the NURBS based on the IR-BFS algorithm. Then the skinning algorithm is improved by fixing the -direction knot parameters to express the expressed hull NURBS cross-section as a hull's NURBS surface, which improves the computational efficiency. The effectiveness of the improved skinning algorithm is judged by comparing the increase in the number of control points and the computational time consumption in the expression of the hull NURBS surface before and after the improved skinning algorithm. The usability of the refinement algorithm of the hull section is verified by comparing the hull section based on the table of offsets with the refined hull section. The experimental results show that the improved skinning algorithm can effectively improve the speed of NURBS surface generation; The proposed refinement algorithm of the hull section can effectively generate refined sections through refinement intervals.
Aiming at the problems that the current decision-making model of ship collision avoidance does not consider International Regulations for Preventing Collisions at Sea (COLREGS), ship maneuverability, and the need for a lot of training time, combined with the advantages of reinforcement learning and imitation learning, a ship intelligent collision avoidance decision-making model based on Generic Adversary Imitation Learning (GAIL) is proposed: Firstly, the collision avoidance data in Automatic Information System (AIS) data is extracted as expert data; Secondly, in the generator part, the environment model is established based on Mathematical Model Group (MMG) and S-57 chart rendering, and the state space, behaviour space and reward function of reinforcement learning are constructed. The deep deterministic policy gradient (DDPG) is used to interact with the environment model to generate ship trajectory data. At the same time, the generator can constantly learn expert data; Finally, a discriminator can distinguish the expert data from the data generated by the generator is constructed and trained. The model training is completed when the discriminator cannot distinguish the two. In order to verify the performance of the model, AIS data near the South China Sea is used to process and extract collision avoidance decision data, and a ship intelligent collision avoidance decision model based on GAIL is established. After the model converges, the final generated data is compared with the expert data. The experimental results verify that the model proposed in this paper can reproduce the expert collision avoidance trajectory and is a practical decision model of ship collision avoidance.