Please wait a minute...
Journal of ZheJiang University (Engineering Science)  2027, Vol. 61 Issue (1): 44-54, 98    DOI: 10.3785/j.issn.1008-973X.2027.01.005
Traffic Engineering, Civil Engineering     
Boundary scenario generalization generation for autonomous driving testing
Jingcheng Zhang(),Fei Hui,Cheng Wei*()
School of Electronics and Control Engineering, Chang’an University, Xi’an 710000, China
Download: HTML     PDF(9721KB) HTML
Export: BibTeX | EndNote (RIS)      

Abstract  

To address the challenges of boundary scenario data scarcity and the difficulty of extracting critical scenarios for autonomous driving testing, a method integrating probabilistic screening and generative adversarial network (GAN) was proposed for generating intersection boundary scenarios, with the goal of constructing a safety-constrained boundary testing database. A scenario screening algorithm based on kinematic probability density was introduced. Kernel density estimation (KDE) was employed to estimate the joint probability distribution of motion trajectory states, and a boundary threshold (<0.005%) was set to extract boundary scenarios. In addition, a classification system comprising 12 phase patterns was established. A bidirectional attention sequential generative adversarial network (Bi-AM-SeqGAN) was developed to simultaneously learn the spatio-temporal distribution of vehicle kinematic states. Combined with the Monte Carlo tree search (MCTS) algorithm, dynamic combinations were optimized to generate dual-vehicle interaction test scenarios that satisfied safety collision constraints. Experimental results showed that the screening algorithm effectively extracted and accurately classified boundary scenarios. Bi-AM-SeqGAN reached a stable loss value of 4.00 after 50 iterations, outperforming the standard SeqGAN, which stabilized at 4.18 after 180 iterations. The generated test scenarios exhibited high-risk characteristics: the Time to Collision (TTC) in 97% of scenarios was less than 3.0 s and was densely distributed within the 0.5~2.5 s range, which was significantly below conventional safety thresholds. The proposed model could efficiently generate high-complexity and high-risk intersection boundary scenarios.



Key words: autonomous driving      boundary testing scenario      combinatorial probability analysis      generative adversarial network (GAN)      testing scenario coupling     
Received: 28 October 2025      Published: 25 November 2026
CLC:  U 495  
Corresponding Authors: Cheng Wei     E-mail: jingchengzhang@chd.edu.cn;chengwei@chd.edu.cn
Cite this article:

Jingcheng Zhang,Fei Hui,Cheng Wei. Boundary scenario generalization generation for autonomous driving testing. Journal of ZheJiang University (Engineering Science), 2027, 61(1): 44-54, 98.

URL:

https://www.zjujournals.com/eng/10.3785/j.issn.1008-973X.2027.01.005     OR     https://www.zjujournals.com/eng/Y2027/V61/I1/44


面向自动驾驶测试的边界场景泛化生成

针对自动驾驶测试中边界场景数据稀缺及关键场景提取困难的问题,提出融合概率筛选与生成对抗网络的交叉口边界场景生成方法,构建基于安全约束的边界测试场景库;提出基于运动学概率密度的场景筛选算法,采用核密度估计计算运动轨迹状态的联合概率分布,设定边界阈值(<0.005%)提取边界场景,构建了12类相位模式分类体系;提出双向注意力序列生成对抗网络(Bi-AM-SeqGAN),同步学习车辆运动状态的时空分布,结合蒙特卡洛树搜索算法优化动态组合,生成满足安全碰撞约束的双车交互测试场景. 结果表明,筛选算法能有效提取并分类边界场景;Bi-AM-SeqGAN在50次迭代后损失值稳定至4.00,优于SeqGAN(180次,4.18);生成测试场景的碰撞时间呈现高危特征,97%场景碰撞时间<3.0 s且密集分布于0.5~2.5 s,显著低于常规安全阈值. 所提模型能高效生成高复杂度、高危险性的交叉口边界场景.


关键词: 自动驾驶,  边界测试场景,  组合概率分析,  生成对抗网络,  测试场景耦合 
No.$ t $/s$ N $/条$ {N}_{1} $/条$ {N}_{2} $/条
071 055.2821215062
081 065.60415284131
09783.6823616868
10854.0425319063
11901.6030521491
121 126.88410268142
13994.64357231126
141 004.84379226153
151 083.04345230115
161 201.00450280170
171 050.44376262114
Table 1 File size and structure of eleven inD datasets
Fig.1 Trajectories of all traffic participants in Document No. 08
Fig.2 Diagram of combinatorial probability analysis results
Fig.3 All hazardous scene trajectories screened out at intersection
Fig.4 Schematic diagram of refined classification results of vehicle left turn scenes
运动
状态
左转右转直行
${v}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${v}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${a}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
${a}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
${v}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${v}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${a}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
${a}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
${v}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${v}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-1}) $
${a}_{x}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
${a}_{y}/ $
$ ({\rm{m}}\cdot {\rm{s}}^{-2}) $
avg1.05?1.320.230.21?1.963.070.650.22?0.24?0.10?0.180.08
max10.6310.394.415.537.6710.415.223.3412.8118.013.453.60
min?10.05?11.78?3.38?3.88?10.45?8.47?3.30?4.15?17.16?13.96?3.56?5.26
$ {\sigma }^{2} $9.369.610.871.6812.9611.972.851.3538.0147.590.700.86
$ \sigma $3.063.100.931.303.603.461.691.166.176.900.840.93
Table 2 Data characteristics of hazardous scenario dataset
Fig.5 Comparison of horizontal and vertical velocity frequency distribution of real data
Fig.6 Comparison of speeds at four left-turn phases
Fig.7 Structure of Bi-AM-SeqGAN
Fig.8 Potential conflict points at intersections
Fig.9 Hazardous boundary test scenarios
Fig.10 Comparison of trajectories of original/generated velocity series
Fig.11 Comparison of lateral original velocity data with generated data
Fig.12 Comparison of convergence speeds of different algorithms
Fig.13 Generate trajectory exampla
Fig.14 Minimum collision time percentage in intersection hazardous boundary scenario test library
Fig.15 Simulation diagram of the same test scenario under different collision time conditions
[1]   董兆龙, 黄鹤, 李战一, 等. 自动驾驶样本库中雪天场景融合构建方法. 浙江大学学报(工学版), 2025, 59 (10): 2078- 2085.
Dong Zhaolong, Huang He, Li Zhanyi, et al. Snowy scene integration construction method in autonomous driving sample library. Journal of Zhejiang University (Engineering Science), 2025, 59 (10): 2078- 2085.
doi: 10.3785/j.issn.1008-973X.2025.10.008
[2]   宋浪, 王健, 杨璐, 等. 平行流交叉口车道控制与信号配时组合优化. 浙江大学学报(工学版), 2024, 58 (8): 1647- 1658.
Song Lang, Wang Jian, Yang Lu, et al. Combined optimization of lane-based control and signal timing at parallel flow intersection. Journal of Zhejiang University (Engineering Science), 2024, 58 (8): 1647- 1658.
doi: 10.3785/j.issn.1008-973X.2024.08.012
[3]   Schicktanz C, Gimm K. Detection and analysis of corner case scenarios at a signalized urban intersection. Accident Analysis & Prevention, 2025, 210, 107838.
doi: 10.1016/j.aap.2024.107838
[4]   Liu Q, Wang X, Liu S, et al. Analysis of pre-crash scenarios and contributing factors for autonomous vehicle crashes at intersections. Accident Analysis & Prevention, 2024, 195, 107383.
doi: 10.1016/j.aap.2023.107383
[5]   邓伟文, 李江坤, 任秉韬, 等. 面向自动驾驶的仿真场景自动生成方法综述. 中国公路学报, 2022, 35 (1): 316- 333.
Deng Weiwen, Li Jiangkun, Ren Bingtao, et al. A survey on automatic simulation scenario generation methods for autonomous driving. China Journal of Highway and Transport, 2022, 35 (1): 316- 333.
doi: 10.3969/j.issn.1001-7372.2022.01.027
[6]   Li Y, Tao J, Wotawa F. Ontology-based test generation for automated and autonomous driving functions. Information and Software Technology, 2020, 117, 106200.
doi: 10.1016/j.infsof.2019.106200
[7]   Birkemeyer L, Fuchs J, Gambi A, et al. SOTIF-compliant scenario generation using semi-concrete scenarios and parameter sampling [C]// Proceedings of the IEEE 26th International Conference on Intelligent Transportation Systems. Bilbao: IEEE, 2023: 2139–2144.
[8]   Patil P W, Dudhane A, Murala S. End-to-end recurrent generative adversarial network for traffic and surveillance applications. IEEE Transactions on Vehicular Technology, 2020, 69 (12): 14550- 14562.
doi: 10.1109/TVT.2020.3043575
[9]   吴思宇, 于文浩, 邢星宇, 等. 基于关键场景的预期功能安全双闭环测试验证方法. 汽车工程, 2023, 45 (9): 1583- 1607.
Wu Siyu, Yu Wenhao, Xing Xingyu, et al. Methodology of critical scenarios-based dual-loop testing and verification for safety of the intended functionality. Automotive Engineering, 2023, 45 (9): 1583- 1607.
doi: 10.19562/j.chinasae.qcgc.2023.09.008
[10]   朱冰, 范天昕, 赵健, 等. 基于危险边界搜索的自动驾驶系统加速测试方法. 吉林大学学报(工学版), 2023, 53 (3): 704- 712.
Zhu Bing, Fan Tianxin, Zhao Jian, et al. Accelerate test method of automated driving system based on hazardous boundary search. Journal of Jilin University (Engineering and Technology Edition), 2023, 53 (3): 704- 712.
doi: 10.13229/j.cnki.jdxbgxb20211177
[11]   Zhang J, Xu C, Li B. ChatScene: knowledge-enabled safety-critical scenario generation for autonomous vehicles [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle: IEEE, 2024: 15459–15469.
[12]   Wang X, Lu H, Wang S, et al. Boundary scenario generation method of the intelligence system based on adaptive Poisson disk sampling [C]// Proceedings of the International Conference on Communications, Computing, Cybersecurity, and Informatics. Beijing: IEEE, 2024: 1–8.
[13]   Lin D J, Chen M Y, Chiang H S, et al. Intelligent traffic accident prediction model for Internet of vehicles with deep learning approach. IEEE Transactions on Intelligent Transportation Systems, 2022, 23 (3): 2340- 2349.
doi: 10.1109/TITS.2021.3074987
[14]   Li Y, Zeng F, Han C, et al. Vehicle Lane-Changing scenario generation using time-series generative adversarial networks with an Adaptative parameter optimization strategy. Accident Analysis and Prevention, 2024, 205, 107667.
doi: 10.1016/j.aap.2024.107667
[15]   Zhou J, Wang L, Wang X. Online adaptive generation of critical boundary scenarios for evaluation of autonomous vehicles. IEEE Transactions on Intelligent Transportation Systems, 2023, 24 (6): 6372- 6388.
doi: 10.1109/TITS.2023.3248121
[16]   Zhou J, Wang L, Wang X, et al. Adaptive deep reinforcement learning for critical boundary scenario generation [C]// Proceedings of the 43rd Chinese Control Conference. Kunming: IEEE, 2024: 6615–6620.
[17]   Liu H, Zhang L, Sastry Hari S K, et al. Safety-critical scenario generation via reinforcement learning based editing [C]// Proceedings of the IEEE International Conference on Robotics and Automation. Yokohama: IEEE, 2024: 14405–14412.
[18]   Zhou H, Li W, Kong Z, et al. DeepBillboard: systematic physical-world testing of autonomous driving systems [C]// Proceedings of the IEEE/ACM 42nd International Conference on Software Engineering. Seoul: IEEE, 2020: 347–358.
[19]   Bock J, Krajewski R, Moers T, et al. The InD dataset: a drone dataset of naturalistic road user trajectories at German intersections [C]// Proceedings of the IEEE Intelligent Vehicles Symposium. Las Vegas: IEEE, 2020: 1929–1934.
[20]   ISO. Road vehicles: safety of the intended functionality: ISO 21448: 2022 [S]. 2022
[21]   Kalra N, Paddock S. Driving to safety: how many miles of driving would it take to demonstrate autonomous vehicle reliability? [M]. [S. l. ]: RAND Corporation, 2016.
[22]   Hua J, Li B, Wang L, et al. How left-turning vehicles deal with conflicts at intersections: a driving behavior model based on relative motion risk quantification. Physica A: Statistical Mechanics and Its Applications, 2025, 661, 130393.
doi: 10.1016/j.physa.2025.130393
[23]   Al-Sharman M, Dempster R, Daoud M A, et al. Self-learned autonomous driving at unsignalized intersections: a hierarchical reinforced learning approach for feasible decision-making. IEEE Transactions on Intelligent Transportation Systems, 2023, 24 (11): 12345- 12356.
doi: 10.1109/TITS.2023.3285440
[24]   路庆昌, 孟旭, 刘丽萍, 等. 考虑多前车信息反馈的CAV混合交通流特性. 浙江大学学报(工学版), 2025, 59 (8): 1767- 1774.
Lu Qingchang, Meng Xu, Liu Liping, et al. CAV mixed traffic flow characteristics considering feedback from multiple preceding vehicles. Journal of Zhejiang University (Engineering Science), 2025, 59 (8): 1767- 1774.
doi: 10.3785/j.issn.1008-973X.2025.08.024
[25]   Wang Y, Jin P J. Model predictive control policy design, solutions, and stability analysis for longitudinal vehicle control considering shockwave damping. Transportation Research Part C: Emerging Technologies, 2023, 148, 104038.
doi: 10.1016/j.trc.2023.104038
[26]   Wang S, Wang Z, Jiang R, et al. A multi-agent reinforcement learning-based longitudinal and lateral control of CAVs to improve traffic efficiency in a mandatory lane change scenario. Transportation Research Part C: Emerging Technologies, 2024, 158, 104445.
doi: 10.1016/j.trc.2023.104445
[27]   刘建伟, 谢浩杰, 罗雄麟. 生成对抗网络在各领域应用研究进展. 自动化学报, 2020, 46 (12): 2500- 2536.
Liu Jianwei, Xie Haojie, Luo Xionglin. Research progress on application of generative adversarial networks in various fields. Acta Automatica Sinica, 2020, 46 (12): 2500- 2536.
doi: 10.16383/j.aas.c180831
[28]   Zhou Y, Li J, Su Y, et al. APRIL: active partial rollouts in reinforcement learning to tame long-tail generation [PP/OL]. V3. arXiv (2025-09-26)[2025-09-23]. https://doi.org/10.48550/arXiv.2509.18521.
[29]   Zhao X, Jing S, Hui F, et al. DSRC-based rear-end collision warning system–An error-component safety distance model and field test. Transportation Research Part C: Emerging Technologies, 2019, 107, 92- 104.
doi: 10.1016/j.trc.2019.08.002
[30]   JTG B01—2003(条文说明) 公路工程技术标准 [S].
[31]   吕君陶, 祁珏瑜, 于淏辰, 等. 自动驾驶综合仿真平台的现状与展望. 浙江大学学报(工学版), 2026, 60 (3): 513- 526.
Lv Juntao, Qi Jueyu, Yu Haochen, et al. Current status and future prospect of integrated simulation platform for autonomous driving. Journal of Zhejiang University (Engineering Science), 2026, 60 (3): 513- 526.
doi: 10.3785/j.issn.1008-973X.2026.03.007
[1] Shuaishuai GAO,Cheng WEI,Fei HUI,Jingcheng ZHANG,Hanchen SONG. Lane-changing intention prediction based on spatiotemporal feature and interaction modeling[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(9): 2031-2041.
[2] Tiangen CHANG,Guofu TIAN,Yuanyuan TANG,Mingxue CAO. Model predictive control parameter optimization in autonomous driving considering both subjective and objective factors[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(8): 1638-1649.
[3] Changyuan LIU,Haijian ZHAO,Haibin WU,Jiawei LIU. Lightweight traffic police gesture recognition method for autonomous driving[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(8): 1678-1685.
[4] Xinmiao YU,Nan XIA,Jiahong JIANG,Ziying HAO,Yunsheng BA. Low-light target detection based on multi-scale feature similarity matching[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(7): 1464-1474.
[5] Yunhong LI,Qiqi ZHANG,Jinni CHEN,Weichong CHEN,Xueping SU,Chengming LIANG. Text-to-image generation algorithm based on generative adversarial network and coordinate attention mechanism[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(6): 1213-1220.
[6] Wenqiang CHEN,Linyue FENG,Dongdan WANG,Yulei GU,Xuan ZHAO. Vehicle trajectory prediction model integrating dynamic risk map and multivariate attention mechanism[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(3): 455-467.
[7] Juntao LV,Jueyu QI,Haochen YU,Lei MA,Huimin MA,Tianyu HU. Current status and future prospect of integrated simulation platform for autonomous driving[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(3): 513-526.
[8] Wenqiang CHEN,Dongdan WANG,Wenying ZHU,Yongjie WANG,Tao WANG. Vehicle multimodal trajectory prediction model based on spatio-temporal graph attention network[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(3): 443-450.
[9] Dengfeng LIU,Wenjing GUO,Shihai CHEN. Content-guided attention-based lane detection network[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(3): 451-459.
[10] Zhaolong DONG,He HUANG,Zhanyi LI,Lan YANG,Huifeng WANG. Snowy scene integration construction method in autonomous driving sample library[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(10): 2078-2085.
[11] Canlin LI,Wenjiao ZHANG,Zhiwen SHAO,Lizhuang MA,Xinyue WANG. Semantic segmentation method on nighttime road scene based on Trans-nightSeg[J]. Journal of ZheJiang University (Engineering Science), 2024, 58(2): 294-303.
[12] Tong CHEN,Jian-feng GUO,Xin-zhong HAN,Xue-li XIE,Jian-xiang XI. Visible and infrared image matching method based on generative adversarial model[J]. Journal of ZheJiang University (Engineering Science), 2022, 56(1): 63-74.
[13] Hui-ya HU,Shao-yan GAI,Fei-peng DA. Face frontalization based on generative adversarial network[J]. Journal of ZheJiang University (Engineering Science), 2021, 55(1): 116-123.
[14] Kun LIU,Xi WEN,Min-ming HUANG,Xin-xin YANG,Jing-kun MAO. Solar cell defect enhancement method based on generative adversarial network[J]. Journal of ZheJiang University (Engineering Science), 2020, 54(4): 684-693.