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

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

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

     

    Abstract:
    Objective To test and evaluate the decision-making capabilities of intelligent ships during navigation under varying collision risk conditions and increase the likelihood of encountering scenarios with controllable risk levels, this paper proposes a method for generating ship collision risk test scenarios based on conditional variational autoencoder (CVAE).
    Method Using ship data from the Automatic Identification System (AIS), the relative motion parameters of ships are calculated. Combined with the "International Rules for Collision Avoidance at Sea (COLREGs)" and a fuzzy rule base, ship encounter situations and ship collision risk levels are classified to construct a ship encounter-risk dataset. The CVAE model is then trained on this dataset, with the relative motion parameters serving as input features and the encounter situation and the collision risk level as conditional variables. After training, the model generates corresponding test scenarios by inputting the conditional variables and the initial state of the test vessel. Additionally, during navigation, the Distance to Closest Point of Approach(DCPA), Time to Closest Point of Approach (TCPA), and collision risk level (CRL) are dynamically displayed with a 10-second time step. Comparative experiments with a variational autoencoder (VAE) and random sampling methods are conducted to verify the accuracy and similarity of scenario generation across different models.
    Results The results indicate that, under the specified encounter situations and collision risk levels, the CVAE model generates test scenarios that simultaneously satisfy both conditions with an accuracy of 93.54%. In comparison, the VAE model achieves only 0.08%, and the random sampling method 0.83%, representing improvements of 93.46% and 92.71%, respectively.
    Conclusion The proposed method significantly enhances the effectiveness, diversity, and realism of generated encounter situations and ship collision risk scenarios, demonstrating superior accuracy in scenario generation for intelligent ship navigation.

     

/

返回文章
返回