基于条件变分自编码器的船舶碰撞风险测试场景生成方法

A method for generating test scenarios of ship collision risk based on conditional variational autoencoders

  • 摘要: 为测试与评估智能船舶在不同碰撞风险下航行的决策能力,提高可控碰撞风险会遇态势场景出现的概率。本文提出一种基于条件变分自编码器(CVAE)的船舶碰撞风险测试场景生成方法。基于船舶自动识别系统(AIS)数据计算船舶相对运动参数,结合《国际海上避碰规则》和模糊规则库划分船舶会遇态势局面和船舶碰撞风险等级,构建船舶会遇-风险数据集;采用数据集训练CVAE模型,将船舶相对运动参数作为模型的输入特征,会遇态势局面和船舶碰撞风险等级作为模型的条件变量;在模型训练完成后,输入条件变量和测试船的初始状态生成对应的测试场景,同时以10s为步长,动态显示船舶在航行过程中最近会遇距离、最短会遇时间和碰撞风险等级。与变分自编码器(VAE)和随机采样方法进行对比实验,对不同模型生成结果进行准确率和相似度验证,结果表明,给定会遇态势和碰撞风险等级的条件下,CVAE模型生成的测试场景中,同时满足两个目标的准确率为93.54%,与VAE模型(0.08%)和随机采样方法(0.83%)相比,分别准确率提升了93.46%和92.71%。因此,本文所提方法会遇态势准确率在多种会遇态势和船舶碰撞风险场景生成上的有效性、多样性及真实性上均有提高。

     

    Abstract: To test and evaluate the decision-making ability of intelligent ships during navigation under different collision risks and increase the probability of encountering situation scenarios with controllable collision risks. This paper proposes a method for generating test scenarios of ship collision risk based on conditional variational autoencoder (CVAE). Based on the data of the Automatic Identification System (AIS) for ships, the relative motion parameters of ships are calculated. Combined with the "International Rules for Collision Avoidance at Sea" and the fuzzy rule base, the ship encounter situation and the ship collision risk level are classified to construct the ship encounter - risk data set. The CVAE model is trained using the dataset. The relative motion parameters of ships are taken as the input features of the model, and the encountering situation and the risk level of ship collision are taken as the condition variables of the model. After the model training is completed, input the condition variables and the initial state of the test vessel to generate the corresponding test scenarios. At the same time, with a step size of 10 seconds, dynamically display the nearest encounter distance, the shortest encounter time and the collision risk level of the vessel during navigation. A comparative experiment was conducted with the variational autoencoder (VAE) and random sampling methods to verify the accuracy and similarity of the generation results of different models. The results show that under the given conditions of encountering situations and collision risk levels, the accuracy rate of the test scenarios generated by the CVAE model that simultaneously meet the two targets is 93.54%. Compared with the VAE model (0.08%) and the random sampling method (0.83%), the accuracy rates have increased by 93.46% and 92.71% respectively. Therefore, the accuracy rate of the encounter situation proposed in this paper has been improved in terms of effectiveness, diversity, and authenticity in the generation of various encounter situations and ship collision risk scenarios.

     

/

返回文章
返回