一句话:从真实事故数据自动构建关键测试场景,结合分割模型与变异测试,在 Apollo/Carla 中发现 ADS 缺陷。
针对自动驾驶系统(ADS)事故仍频发、测试缺乏针对性的问题,本文提出从真实事故数据自动构建关键测试场景。方法设计 M-CPS 多通道全景分割模型,从事故图像/视频中提取信息并分离交通参与者以恢复场景,再接入虚拟平台生成原始场景集,并用变异测试扩充场景库。实验显示 M-CPS 在 CityScapes 达 66.1% PQ,在 SHIFT 上语义分割 IoU 为 84.5%、实例分割 mAP 为 40.3%。利用 UCF-Crime、CADP 和 US-Accidents 生成场景并接入 Apollo 与 Carla,发现三类可导致 ADS 事故的场景,表明原型存在缺陷。
One of the aims of the development and spread of autonomous driving technology is to reduce traffic accidents caused by human factors. But recently reported data on fatal accidents involving autonomous driving system (ADS) shows that this important goal has not been achieved. So there is an emerge requirement on more comprehensive and targeted testing especially on safe driving. In this paper, we propose an approach to automatically building critical testing scenarios from real-world accident data. Firstly, we propose a new model called M-CPS (Multi-channel Panoptic Segmentation) to extract the effective information from the accident record (such as images or videos), and separate the independent individuals of different traffic participants for further scene recovery. Compared with the traditional panoramic segmentation models, M-CPS model is able to effectively handle segmentation challenges due to the shooting angle, image quality, pixel overlap and other problems existing in the accident record. Next, the extracted core information is then connected with the virtual testing platform to generate the original scene set. Besides, we also design a mutation testing solution on the basis of the original scene set, thus greatly enriching the scene library for testing. In our experiments, the M-CPS model reaches a result of 66.1% PQ on CityScapes test set, shows that our model has only slight fluctuations on performance compared with the best benchmark model on pure panoptic segmentation task. It also reaches a result of 84.5% IoU for semantic segmentation branch and 40.3% mAP for instance segmentation branch on SHIFT dataset. Then we use UCF-Crime, CADP and US-Accidents datasets to generate the original and mutated scene set. Those generated scene sets are connected to Apollo and Carla simulation platforms to test ADS prototypes. We find three types of scenarios that can lead to accidents of ADS prototypes, which indicates that the existing ADS prototype has defects. Our solution provides a new possible direction for the recovery of key scenarios in ADS testing, and can improve the efficiency in related fields.