Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 7 new columns ({'y_local', 'Interaction Type', 'Interaction Strength', 'v_rel', 'Interaction_Target_ID', 'x_local', 'Is Interacting'})

This happened while the csv dataset builder was generating data using

hf://datasets/InterestingITS/U-EASWS/Interaction_Semantic_Data/Weaving Segment_3_Interaction_Semantic_Annotation.csv (at revision df811dfe442e864fda0551d6ad051e0e51f1e6fa), ['hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segment_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_1_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_4_5.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_6_7.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segment_3_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_1_2_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_4_5_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_6_7_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_4.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_5.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_6.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_4.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segment_3_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_1_2_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_4_5_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_6_7_Risk_Semantic_Annotation.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              Ego_Vehicle_ID: int64
              Frame: int64
              Delta_t_s: double
              x_center: double
              y_center: double
              v_x: double
              v_y: double
              a_x: double
              a_y: double
              Direction: string
              Lane number: double
              Dist_to_Merge_m: double
              Dist_to_Diverge_m: double
              Vehicle_Length_m: double
              Interaction_Target_ID: int64
              x_local: double
              y_local: double
              v_rel: double
              Interaction Strength: double
              Is Interacting: int64
              Interaction Type: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2812
              to
              {'Ego_Vehicle_ID': Value('int64'), 'Frame': Value('int64'), 'Delta_t_s': Value('float64'), 'x_center': Value('float64'), 'y_center': Value('float64'), 'v_x': Value('float64'), 'v_y': Value('float64'), 'a_x': Value('float64'), 'a_y': Value('float64'), 'Direction': Value('string'), 'Lane number': Value('float64'), 'Dist_to_Merge_m': Value('float64'), 'Dist_to_Diverge_m': Value('float64'), 'Vehicle_Length_m': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 7 new columns ({'y_local', 'Interaction Type', 'Interaction Strength', 'v_rel', 'Interaction_Target_ID', 'x_local', 'Is Interacting'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/InterestingITS/U-EASWS/Interaction_Semantic_Data/Weaving Segment_3_Interaction_Semantic_Annotation.csv (at revision df811dfe442e864fda0551d6ad051e0e51f1e6fa), ['hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segment_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_1_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_4_5.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Basic_Trajectory_Data/Weaving Segments_6_7.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segment_3_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_1_2_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_4_5_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Interaction_Semantic_Data/Weaving Segments_6_7_Interaction_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_4.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_5.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS1_2_raw_detection_data_6.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS3_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS4_5_raw_detection_data_4.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_1.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_2.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Raw_Data/WS6_7_raw_detection_data_3.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segment_3_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_1_2_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_4_5_Risk_Semantic_Annotation.csv', 'hf://datasets/InterestingITS/U-EASWS@df811dfe442e864fda0551d6ad051e0e51f1e6fa/Risk_Semantic_Data/Weaving Segments_6_7_Risk_Semantic_Annotation.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Ego_Vehicle_ID
int64
Frame
int64
Delta_t_s
float64
x_center
float64
y_center
float64
v_x
float64
v_y
float64
a_x
float64
a_y
float64
Direction
string
Lane number
float64
Dist_to_Merge_m
float64
Dist_to_Diverge_m
float64
Vehicle_Length_m
float64
1
1
null
150.62869
6.138265
12.780687
0.434705
13.55174
-24.078811
Right
1
139.502337
176.345977
4.926463
1
2
0.016667
150.841701
6.145511
13.006549
0.033391
27.10348
-48.157621
Right
1
139.715349
176.132966
4.926463
1
3
0.016667
151.062242
6.139379
13.329277
-0.380823
11.623853
-1.548142
Right
1
139.935889
175.912425
4.926463
1
4
0.016667
151.286011
6.132816
13.316816
-0.332797
-13.119118
7.311295
Right
1
140.159658
175.688656
4.926463
1
5
0.016667
151.506136
6.128285
13.381432
-0.203745
20.87304
8.174945
Right
1
140.379783
175.468532
4.926463
1
6
0.016667
151.732058
6.126025
13.682597
-0.150031
15.266722
-1.729227
Right
1
140.605706
175.242609
4.926463
1
7
0.016667
151.962222
6.123284
13.699081
-0.221941
-13.288607
-6.899994
Right
1
140.83587
175.012445
4.926463
1
8
0.016667
152.188694
6.118627
13.481972
-0.228843
-12.764495
6.071676
Right
1
141.062342
174.785973
4.926463
1
9
0.016667
152.411621
6.115656
13.362762
-0.093753
-1.540734
10.139179
Right
1
141.285269
174.563046
4.926463
1
10
0.016667
152.63412
6.115502
13.463606
0.000088
13.641952
1.121694
Right
1
141.507767
174.340547
4.926463
1
11
0.016667
152.860408
6.115659
13.610478
-0.00795
3.982777
-2.086166
Right
1
141.734055
174.114259
4.926463
1
12
0.016667
153.087802
6.115237
13.539162
-0.040619
-12.540713
-1.83412
Right
1
141.96145
173.886865
4.926463
1
13
0.016667
153.311713
6.114305
13.446263
-0.09669
1.392843
-4.8944
Right
1
142.185361
173.662954
4.926463
1
14
0.016667
153.536011
6.112014
13.462654
-0.098252
0.574055
4.706888
Right
1
142.409659
173.438656
4.926463
1
15
0.016667
153.760469
6.11103
13.487323
-0.085907
2.38625
-3.225429
Right
1
142.634116
173.214199
4.926463
1
16
0.016667
153.985589
6.10915
13.451743
-0.110931
-6.655921
0.222469
Right
1
142.859236
172.989078
4.926463
1
17
0.016667
154.20886
6.107332
13.378462
-0.104176
-2.13773
0.588169
Right
1
143.082507
172.765807
4.926463
1
18
0.016667
154.431537
6.105678
13.35794
-0.100541
-0.324988
-0.15191
Right
1
143.305185
172.54313
4.926463
1
19
0.016667
154.654125
6.103981
13.383287
-0.076172
3.366694
3.076149
Right
1
143.527772
172.320542
4.926463
1
20
0.016667
154.877647
6.103139
13.438491
-0.083238
3.257821
-3.924063
Right
1
143.751294
172.09702
4.926463
1
21
0.016667
155.102074
6.101206
13.44911
-0.127329
-1.98361
-1.366857
Right
1
143.975722
171.872593
4.926463
1
22
0.016667
155.325951
6.098894
13.398285
-0.149966
-4.115322
-1.34954
Right
1
144.199598
171.648716
4.926463
1
23
0.016667
155.548684
6.096208
13.362443
-0.159594
-0.185808
0.194122
Right
1
144.422331
171.425983
4.926463
1
24
0.016667
155.771365
6.093575
13.377722
-0.148103
2.019346
1.184814
Right
1
144.645013
171.203302
4.926463
1
25
0.016667
155.994608
6.091271
13.438847
-0.153123
5.315606
-1.787174
Right
1
144.868255
170.980059
4.926463
1
26
0.016667
156.219327
6.08847
13.444957
-0.171702
-4.582385
-0.44235
Right
1
145.092974
170.75534
4.926463
1
27
0.016667
156.442773
6.085547
13.389521
-0.168019
-2.069946
0.884278
Right
1
145.316421
170.531894
4.926463
1
28
0.016667
156.665644
6.08287
13.362229
-0.16805
-1.205112
-0.887986
Right
1
145.539292
170.309023
4.926463
1
29
0.016667
156.888181
6.079946
13.3761
-0.189661
2.869615
-1.705368
Right
1
145.761828
170.086486
4.926463
1
30
0.016667
157.111514
6.076548
13.419683
-0.220151
2.360398
-1.953332
Right
1
145.985162
169.863153
4.926463
1
31
0.016667
157.335504
6.072607
13.434346
-0.231313
-0.600864
0.613811
Right
1
146.209151
169.639164
4.926463
1
32
0.016667
157.559326
6.068837
13.433187
-0.227059
0.461768
-0.103327
Right
1
146.432973
169.415341
4.926463
1
33
0.016667
157.783276
6.065039
13.444072
-0.22066
0.844501
0.871193
Right
1
146.656924
169.191391
4.926463
1
34
0.016667
158.007462
6.061482
13.437484
-0.21144
-1.635115
0.235234
Right
1
146.881109
168.967205
4.926463
1
35
0.016667
158.231193
6.057991
13.435885
-0.20723
1.443305
0.269987
Right
1
147.10484
168.743475
4.926463
1
36
0.016667
158.455324
6.054574
13.46196
-0.197648
1.68571
0.879895
Right
1
147.328972
168.519343
4.926463
1
37
0.016667
158.679925
6.051402
13.479567
-0.189534
0.427104
0.093789
Right
1
147.553572
168.294742
4.926463
1
38
0.016667
158.904643
6.048257
13.45924
-0.190138
-2.86639
-0.166353
Right
1
147.778291
168.070024
4.926463
1
39
0.016667
159.128566
6.045064
13.431509
-0.203798
-0.461369
-1.472771
Right
1
148.002213
167.846101
4.926463
1
40
0.016667
159.35236
6.041463
13.452204
-0.217671
2.944813
-0.192034
Right
1
148.226008
167.622307
4.926463
1
41
0.016667
159.576973
6.037809
13.479688
-0.217269
0.353272
0.240311
Right
1
148.45062
167.397694
4.926463
1
42
0.016667
159.801683
6.034221
13.484569
-0.20641
0.232478
1.062762
Right
1
148.675331
167.172984
4.926463
1
43
0.016667
160.026458
6.030928
13.48588
-0.195471
-0.075172
0.24986
Right
1
148.900106
166.948209
4.926463
1
44
0.016667
160.251213
6.027705
13.491035
-0.195186
0.693724
-0.215594
Right
1
149.12486
166.723455
4.926463
1
45
0.016667
160.47616
6.024422
13.508123
-0.196948
1.356828
0.004093
Right
1
149.349807
166.498508
4.926463
1
46
0.016667
160.701483
6.02114
13.531014
-0.194041
1.390082
0.344764
Right
1
149.575131
166.273184
4.926463
1
47
0.016667
160.927193
6.017954
13.547131
-0.193367
0.543955
-0.26385
Right
1
149.800841
166.047474
4.926463
1
48
0.016667
161.153054
6.014695
13.529016
-0.193196
-2.717722
0.28437
Right
1
150.026702
165.821613
4.926463
1
49
0.016667
161.37816
6.011514
13.506159
-0.192519
-0.025141
-0.203217
Right
1
150.251808
165.596507
4.926463
1
50
0.016667
161.60326
6.008278
13.515863
-0.185098
1.189616
1.093739
Right
1
150.476907
165.371407
4.926463
1
51
0.016667
161.828689
6.005344
13.530011
-0.171293
0.508185
0.562931
Right
1
150.702337
165.145978
4.926463
1
52
0.016667
162.05426
6.002568
13.531138
-0.163862
-0.372882
0.32874
Right
1
150.927907
164.920407
4.926463
1
53
0.016667
162.279727
5.999882
13.523843
-0.16172
-0.50261
-0.071689
Right
1
151.153375
164.69494
4.926463
1
54
0.016667
162.505055
5.997177
13.533885
-0.161218
1.707736
0.131915
Right
1
151.378702
164.469612
4.926463
1
55
0.016667
162.730857
5.994508
13.544683
-0.160126
-0.412009
-0.000824
Right
1
151.604504
164.24381
4.926463
1
56
0.016667
162.956544
5.99184
13.542752
-0.153617
0.180265
0.781882
Right
1
151.830192
164.018123
4.926463
1
57
0.016667
163.182282
5.989388
13.552587
-0.148221
0.999962
-0.134413
Right
1
152.055929
163.792385
4.926463
1
58
0.016667
163.408297
5.986899
13.564178
-0.147926
0.390953
0.169873
Right
1
152.281945
163.56637
4.926463
1
59
0.016667
163.634421
5.984457
13.573542
-0.144707
0.732702
0.216349
Right
1
152.508068
163.340246
4.926463
1
60
0.016667
163.860749
5.982075
13.572453
-0.142946
-0.863397
-0.005012
Right
1
152.734396
163.113919
4.926463
1
61
0.016667
164.086836
5.979692
13.565985
-0.142342
0.087285
0.077576
Right
1
152.960484
162.887831
4.926463
1
62
0.016667
164.312948
5.977331
13.568869
-0.140284
0.258722
0.1693
Right
1
153.186595
162.661719
4.926463
1
63
0.016667
164.539132
5.975016
13.57553
-0.13639
0.540639
0.298063
Right
1
153.412779
162.435535
4.926463
1
64
0.016667
164.765466
5.972784
13.584322
-0.132228
0.514354
0.201278
Right
1
153.639113
162.209201
4.926463
1
65
0.016667
164.991942
5.970608
13.594921
-0.130256
0.757561
0.035423
Right
1
153.86559
161.982725
4.926463
1
66
0.016667
165.21863
5.968442
13.597235
-0.130997
-0.47985
-0.124304
Right
1
154.092277
161.756037
4.926463
1
67
0.016667
165.445184
5.966242
13.596165
-0.129907
0.351385
0.255066
Right
1
154.318831
161.529483
4.926463
1
68
0.016667
165.671835
5.964112
13.605518
-0.123645
0.771071
0.496392
Right
1
154.545483
161.302832
4.926463
1
69
0.016667
165.898701
5.96212
13.61144
-0.113727
-0.060444
0.693716
Right
1
154.772348
161.075966
4.926463
1
70
0.016667
166.12555
5.960321
13.609942
-0.106184
-0.119289
0.211492
Right
1
154.999197
160.849117
4.926463
1
71
0.016667
166.352366
5.958581
13.61366
-0.104925
0.565429
-0.060374
Right
1
155.226013
160.622301
4.926463
1
72
0.016667
166.579339
5.956824
13.622137
-0.104598
0.451756
0.099506
Right
1
155.452986
160.395329
4.926463
1
73
0.016667
166.806437
5.955094
13.624671
-0.103368
-0.147619
0.048156
Right
1
155.680084
160.16823
4.926463
1
74
0.016667
167.033494
5.953378
13.624587
-0.103964
0.137531
-0.119651
Right
1
155.907142
159.941173
4.926463
1
75
0.016667
167.26059
5.951629
13.628166
-0.106621
0.291972
-0.199185
Right
1
156.134237
159.714077
4.926463
1
76
0.016667
167.487766
5.949824
13.636156
-0.109054
0.666768
-0.092875
Right
1
156.361414
159.486901
4.926463
1
77
0.016667
167.715128
5.947994
13.643118
-0.108728
0.168726
0.132003
Right
1
156.588776
159.259539
4.926463
1
78
0.016667
167.942537
5.9462
13.649226
-0.107733
0.564165
-0.012542
Right
1
156.816185
159.03213
4.926463
1
79
0.016667
168.170103
5.944403
13.655464
-0.106238
0.184447
0.191929
Right
1
157.04375
158.804565
4.926463
1
80
0.016667
168.397719
5.942659
13.660007
-0.103585
0.360666
0.126457
Right
1
157.271367
158.576948
4.926463
1
81
0.016667
168.625436
5.94095
13.666192
-0.100608
0.381592
0.230765
Right
1
157.499084
158.349231
4.926463
1
82
0.016667
168.853259
5.939305
13.669723
-0.097941
0.04205
0.089242
Right
1
157.726906
158.121408
4.926463
1
83
0.016667
169.081094
5.937685
13.672994
-0.096127
0.350571
0.128444
Right
1
157.954741
157.893574
4.926463
1
84
0.016667
169.309025
5.936101
13.677499
-0.093921
0.189958
0.136277
Right
1
158.182673
157.665642
4.926463
1
85
0.016667
169.53701
5.934554
13.683195
-0.090947
0.493575
0.220611
Right
1
158.410658
157.437657
4.926463
1
86
0.016667
169.765132
5.933069
13.687043
-0.088307
-0.031767
0.09622
Right
1
158.638779
157.209535
4.926463
1
87
0.016667
169.993245
5.931611
13.689463
-0.086335
0.322143
0.140426
Right
1
158.866892
156.981422
4.926463
1
88
0.016667
170.221447
5.930191
13.693023
-0.084477
0.104988
0.082497
Right
1
159.095095
156.75322
4.926463
1
89
0.016667
170.449679
5.928795
13.697391
-0.083574
0.419268
0.0259
Right
1
159.323326
156.524988
4.926463
1
90
0.016667
170.678027
5.927406
13.702947
-0.082547
0.247458
0.097367
Right
1
159.551675
156.29664
4.926463
1
91
0.016667
170.906444
5.926043
13.70622
-0.080531
0.145237
0.144562
Right
1
159.780091
156.068223
4.926463
1
92
0.016667
171.134901
5.924721
13.705865
-0.078145
-0.187818
0.141731
Right
1
160.008549
155.839766
4.926463
1
93
0.016667
171.363306
5.923438
13.706391
-0.076191
0.250893
0.092768
Right
1
160.236954
155.611361
4.926463
1
94
0.016667
171.591781
5.922181
13.708635
-0.074704
0.018451
0.085565
Right
1
160.465428
155.382886
4.926463
1
95
0.016667
171.820261
5.920948
13.709551
-0.072932
0.091408
0.127076
Right
1
160.693908
155.154406
4.926463
1
96
0.016667
172.048766
5.91975
13.711254
-0.071799
0.112967
0.00891
Right
1
160.922413
154.925901
4.926463
1
97
0.016667
172.277302
5.918555
13.715915
-0.071024
0.446334
0.084173
Right
1
161.15095
154.697365
4.926463
1
98
0.016667
172.505963
5.917383
13.723789
-0.068133
0.498639
0.262696
Right
1
161.37961
154.468704
4.926463
1
99
0.016667
172.734762
5.916284
13.730891
-0.064759
0.353513
0.142234
Right
1
161.608409
154.239905
4.926463
1
100
0.016667
172.963659
5.915224
13.735647
-0.063053
0.217255
0.062447
Right
1
161.837307
154.011008
4.926463
End of preview.

U-EASWS

Dataset Description

U-EASWS (Urban Expressway Type-A Short Weaving Segment UAV Vehicle Trajectory Dataset Integrated with Interaction and Risk Semantic Annotations) is a UAV-based microscopic vehicle trajectory dataset specifically developed for urban expressway Type-A short weaving segments.

The dataset contains 19,122 vehicle trajectories collected from seven real-world Type-A short weaving scenarios in Changchun, China, with approximately 3.6 h of segment-level observation coverage when the seven scenario durations are summed. The approximately 3.6 h value represents the sum of scenario-level observation durations, with the two directions of shared bidirectional recordings counted separately. The observed weaving segments cover different roadway geometries and channelization configurations, including unrestricted weaving, restricted merging, and restricted diverging layouts.

Type-A weaving is characterized by merging and diverging traffic streams that are each required to perform a lane change within the same weaving area. In short weaving segments, the limited longitudinal distance available for completing these maneuvers produces frequent mandatory lane-changing interactions among merging, diverging, and through vehicles. U-EASWS was therefore designed specifically to provide continuous microscopic observations of vehicle movements under these geometrically constrained and interaction-intensive conditions.

In addition to reconstructed vehicle trajectories and kinematic states, U-EASWS provides road-geometry information, lane information, surrogate safety measures, and vehicle-interaction semantic annotations. Frame-level detection and tracking outputs are also released to allow users to perform independent coordinate transformation, trajectory reconstruction, smoothing, vehicle-dimension estimation, or other customized post-processing procedures.

The dataset is licensed under CC BY 4.0.

Supported Research Tasks

U-EASWS is intended to support research on microscopic traffic flow and driving behavior in complex weaving environments, including:

  • microscopic driving behavior modeling and model validation;
  • car-following, lane-changing, and weaving behavior analysis;
  • discretionary and mandatory lane-changing analysis;
  • traffic surrogate safety assessment and conflict identification;
  • multi-vehicle interaction analysis;
  • spatial interaction and driving-behavior research;
  • vehicle trajectory prediction;
  • traffic simulation model calibration and validation;
  • autonomous-driving simulation;
  • tactical decision-making and trajectory-planning research;
  • comparative analysis of traffic behavior under different weaving geometries and channelization configurations.

Dataset Repository Structure

The repository is organized according to the processing level and semantic content of the data. The current release contains five data/documentation components and a principal processing-code folder.

1. Weaving Segment Geometry Images

Weaving_Segment_Geometry_Images

This folder contains four top-down aerial geometry images covering seven weaving segments:

The images provide the roadway geometry and channelization context required to interpret the trajectory data. They show the actual road layout, lane arrangement, lane boundaries, solid and dashed lane markings, and the geometric organization of the observed Type-A short weaving segments.

The seven scenarios contain multiple channelization configurations, including unrestricted weaving, restricted merging, and restricted diverging layouts. Dashed lane markings indicate roadway sections where lateral crossing is permitted, whereas solid lane markings represent sections with restricted lane-changing opportunities.

These geometry images should be used together with the trajectory fields Direction, Lane number, Dist_to_Merge_m, and Dist_to_Diverge_m when reconstructing the spatial relationship between vehicle movements and the underlying road geometry.

2. Raw Data

Raw_Data

The Raw_Data folder contains frame-level vehicle detection and tracking outputs before coordinate transformation, trajectory reconstruction, kinematic calculation, and semantic annotation.

The raw data are divided into 16 CSV files:

  • WS1_2_raw_detection_data_1.csv
  • WS1_2_raw_detection_data_2.csv
  • WS1_2_raw_detection_data_3.csv
  • WS1_2_raw_detection_data_4.csv
  • WS1_2_raw_detection_data_5.csv
  • WS1_2_raw_detection_data_6.csv
  • WS3_raw_detection_data_1.csv
  • WS3_raw_detection_data_2.csv
  • WS3_raw_detection_data_3.csv
  • WS4_5_raw_detection_data_1.csv
  • WS4_5_raw_detection_data_2.csv
  • WS4_5_raw_detection_data_3.csv
  • WS4_5_raw_detection_data_4.csv
  • WS6_7_raw_detection_data_1.csv
  • WS6_7_raw_detection_data_2.csv
  • WS6_7_raw_detection_data_3.csv

Files beginning with WS1_2, WS4_5, and WS6_7 correspond to the three bidirectional observation sites, whereas files beginning with WS3 correspond to the scenario retaining one traffic direction.

Each row represents one tracked vehicle observation in a particular video frame.

The released raw data contain the following fields:

  • Frame: video frame index. Unit: dimensionless frame index.
  • Vehicle_ID: vehicle tracking ID assigned during the detection and multi-object tracking stage. Unit: dimensionless identifier.
  • x_center_px: horizontal pixel coordinate of the center of the detected vehicle bounding box. Unit: pixel.
  • y_center_px: vertical pixel coordinate of the center of the detected vehicle bounding box. Unit: pixel.
  • width_px: width of the axis-aligned vehicle detection bounding box. Unit: pixel.
  • height_px: height of the axis-aligned vehicle detection bounding box. Unit: pixel.

The raw files preserve image-space vehicle positions and detection-box dimensions and can therefore be used for independent coordinate transformation, vehicle-dimension estimation, trajectory interpolation, smoothing, or other user-defined post-processing procedures.

The Vehicle_ID in the raw data is the tracking identifier associated with the corresponding source sequence, while Ego_Vehicle_ID identifies vehicles in the processed trajectory files. When combining observation groups, file/source identity should be used together with the corresponding vehicle identifier.

In this repository, "raw data" refers to the frame-level vehicle detection and tracking outputs used as inputs for subsequent trajectory processing.

3. Basic Trajectory Data

Basic_Trajectory_Data

This folder contains four CSV files corresponding to the four observation groups:

  • Weaving Segments 1–2;
  • Weaving Segment 3;
  • Weaving Segments 4–5;
  • Weaving Segments 6–7.

The files provide reconstructed vehicle trajectories expressed in a road-aligned variant of the Frenet coordinate system together with vehicle kinematic states, lane information, traffic direction, geometry-related distances, and estimated vehicle length.

The main fields are defined as follows:

  • Ego_Vehicle_ID: processed vehicle identifier interpreted together with the corresponding observation-group identity. Unit: dimensionless identifier.
  • Frame: frame index in the corresponding processed sequence; source-to-processed mappings are used when linking raw and processed records. Unit: dimensionless frame index.
  • Delta_t_s: elapsed time from the previous record of the same vehicle after ordering by frame; the first trajectory record serves as the temporal reference and uses a blank value by definition. Unit: s.
  • x_center: longitudinal vehicle-center coordinate in the road-aligned variant of the Frenet coordinate system. Unit: m.
  • y_center: lateral vehicle-center coordinate in the road-aligned variant of the Frenet coordinate system. Unit: m.
  • v_x: longitudinal vehicle velocity. Unit: m/s.
  • v_y: lateral vehicle velocity. Unit: m/s.
  • a_x: longitudinal vehicle acceleration. Unit: m/s².
  • a_y: lateral vehicle acceleration. Unit: m/s².
  • Direction: vehicle travel direction. The values are Left or Right. Unit: dimensionless categorical variable.
  • Lane number: current lane occupied by the vehicle. Unit: dimensionless lane index.
  • Dist_to_Merge_m: absolute longitudinal distance from the current vehicle center to the predefined merge reference cross-section. Unit: m.
  • Dist_to_Diverge_m: absolute longitudinal distance from the current vehicle center to the predefined diverge reference cross-section. Unit: m.
  • Vehicle_Length_m: estimated physical length of the vehicle. Unit: m.

Vehicle_Length_m is estimated as a vehicle-level physical attribute from multiple valid frame-level bounding-box observations and remains constant for the complete trajectory of the same vehicle within an observation group.

Dist_to_Merge_m and Dist_to_Diverge_m explicitly connect individual vehicle states to the principal geometric locations of the weaving segment and can be used to analyze how microscopic behavior changes with the absolute distance to the merge or diverge reference cross-section.

4. Risk Semantic Data

Risk_Semantic_Data

This folder contains four CSV files with risk semantic annotations corresponding to:

  • Weaving Segments 1–2;
  • Weaving Segment 3;
  • Weaving Segments 4–5;
  • Weaving Segments 6–7.

The risk semantic files retain the basic trajectory and kinematic fields and additionally provide surrogate safety measures and explicit risk-related annotations.

The additional fields are:

  • TTC: Time-to-Collision. Unit: s.
  • PET: Post-Encroachment Time. Unit: s.
  • DRAC: Deceleration Rate to Avoid a Crash. Unit: m/s².
  • Max_Risk_Target_ID: ID of the target vehicle associated with the conflict risk for the ego vehicle in the current frame; -1 is used as the default target identifier. Unit: dimensionless identifier.
  • Risk_Level: explicit risk classification, with values High Risk or Low Risk.

TTC and DRAC are frame-wise state-based surrogate safety measures. PET is treated as an event-level measure associated with identified cut-in events. For each identified cut-in event, the calculated PET value is assigned at the event-detection frame to both the cut-in vehicle and its corresponding following vehicle.

A record is labeled High Risk when at least one of the following conditions is satisfied:

  • TTC < 3.0 s;
  • DRAC > 3.0 m/s²;
  • the record corresponds to an identified cut-in event with PET < 2.5 s.

Records satisfying none of these conditions are labeled Low Risk.

5. Interaction Semantic Data

Interaction_Semantic_Data

This folder contains four CSV files with vehicle-interaction semantic annotations corresponding to:

  • Weaving Segments 1–2;
  • Weaving Segment 3;
  • Weaving Segments 4–5;
  • Weaving Segments 6–7.

The interaction semantic files retain the basic trajectory information and add vehicle-pair interaction information derived from a two-dimensional Proximity Resistance (PR) framework.

For each ego vehicle, surrounding vehicles traveling in the same direction within a local perception radius of 50 m are first treated as candidate interaction vehicles. Candidate vehicle pairs are then represented in an ego-vehicle-centered local coordinate system and assigned interaction-related variables.

The additional fields are:

  • Interaction_Target_ID: ID of the target vehicle paired with the ego vehicle. Unit: dimensionless identifier.
  • x_local: relative-position component of the target vehicle along the local X-axis of the vehicle-pair coordinate system. Unit: m.
  • y_local: relative-position component of the target vehicle along the local Y-axis of the vehicle-pair coordinate system. Unit: m.
  • v_rel: scalar relative speed between the vehicle pair. Unit: m/s.
  • Interaction Strength: dimensionless PR-based measure of proximity-induced vehicle interaction, ranging from 0 to 1. Larger values represent stronger proximity-induced interaction.
  • Is Interacting: binary indicator of whether the candidate vehicle pair satisfies the effective-interaction criterion. 1 denotes PR greater than exp(-1) and 0 otherwise. Candidate pairs below this threshold remain in the annotated data.
  • Interaction Type: behavioral interaction category, including Car Following, Parallel Driving, and Lane Changing/Weaving. Records in the default no-candidate state are encoded as Safe in the annotation output.

Interaction Strength quantifies proximity-induced interaction, while TTC, PET, and DRAC characterize conflict-related safety states. A large PR value indicates that the target vehicle lies deeper within the empirically inferred driver space of the ego vehicle and therefore represents stronger spatial interaction.

Consequently, Is Interacting = 1 identifies an effective proximity-induced interaction, while the risk semantic fields characterize conflict-related states. The two semantic layers provide complementary dimensions of microscopic traffic behavior.

6. Principal Processing Code

Principal Processing Code

This folder contains the 11 principal processing and supporting files described in the reprocessing guide below. The code README provides detailed inputs, parameter settings, and implementation details.

Road Geometry and Scenario Information

The dataset covers seven Type-A short weaving segments located on urban expressways in Changchun, China.

All seven sites exhibit the defining Type-A weaving configuration, in which merging and diverging traffic streams must each perform a lane-changing maneuver within the same weaving area.

Three UAV observation sequences contain bidirectional traffic flows and each corresponds to two weaving scenarios:

  • WS1 and WS2;
  • WS4 and WS5;
  • WS6 and WS7.

The remaining observation group corresponds to WS3 and retains one traffic direction after preprocessing.

WS1, WS3, WS4, and WS6 retain left-to-right vehicle movement in the road-geometry representation, whereas WS2, WS5, and WS7 represent the opposite right-to-left traffic direction.

The seven scenarios have the following collection characteristics:

  • WS1: collected on January 7, 2025; 1547 s of valid video; approximately 290 m observation length; approximately 220 m UAV altitude; four lanes; 80 km/h speed limit; 60 fps source video; 2056 trajectories.
  • WS2: collected on January 7, 2025; 1547 s of valid video; approximately 290 m observation length; approximately 220 m UAV altitude; four lanes; 80 km/h speed limit; 60 fps source video; 1935 trajectories.
  • WS3: collected on September 17, 2025; 2394 s of valid video; approximately 315 m observation length; approximately 270 m UAV altitude; three lanes; 80 km/h speed limit; source observations include 60 fps and 30 fps video; 2985 trajectories.
  • WS4: collected on September 16, 2025; 1437 s of valid video; approximately 375 m observation length; approximately 360 m UAV altitude; four lanes; 80 km/h speed limit; 30 fps source video; 2017 trajectories.
  • WS5: collected on September 16, 2025; 1437 s of valid video; approximately 375 m observation length; approximately 360 m UAV altitude; five lanes; 80 km/h speed limit; 30 fps source video; 2126 trajectories.
  • WS6: collected on September 17, 2025; 2306 s of valid video; approximately 370 m observation length; approximately 350 m UAV altitude; five lanes; 80 km/h speed limit; 30 fps source video; 4038 trajectories.
  • WS7: collected on September 17, 2025; 2306 s of valid video; approximately 370 m observation length; approximately 350 m UAV altitude; five lanes; 80 km/h speed limit; 30 fps source video; 3965 trajectories.

The reported observation length represents the retained roadway coverage used for trajectory extraction, including the core weaving area and adjacent upstream and downstream buffer regions where applicable.

The geometry images in Weaving_Segment_Geometry_Images should be consulted when performing lane-level or geometry-specific analyses because lane numbers, solid/dashed markings, and merge/diverge locations vary among the seven scenarios.

Coordinate Systems

U-EASWS contains three distinct coordinate systems corresponding to different processing levels, with each coordinate system serving a specific role in the processing workflow.

Source-Image Pixel Coordinate System

The frame-level files in Raw_Data use the source-video image coordinate system.

The coordinate origin is located at the upper-left corner of the video image. The horizontal pixel coordinate increases from left to right, and the vertical pixel coordinate increases from top to bottom.

The relevant variables are:

  • x_center_px: horizontal bounding-box-center coordinate, in pixels;
  • y_center_px: vertical bounding-box-center coordinate, in pixels;
  • width_px: bounding-box width, in pixels;
  • height_px: bounding-box height, in pixels.

These variables describe image-space measurements, while metric physical distances are provided after coordinate transformation.

Road-Aligned Variant of the Frenet Coordinate System

The preprocessed basic trajectory data adopt a road-aligned variant of the Frenet coordinate system, where the longitudinal and lateral coordinates describe the along-road and cross-road directions, respectively.

For scenes recorded by multiple UAV video sequences, a stabilized reference frame is selected as the master frame. Static road features visible in both the source frames and the master frame are used as control points, and fixed planar homography transformations are applied to project vehicle locations from different UAV views into a common reference coordinate system.

Static road reference points with known physical distances are then used to determine the metric scale. A local coordinate origin is defined in the master frame.

In this coordinate system:

  • the x axis represents the longitudinal road direction;
  • the y axis represents the lateral road direction;
  • positions are measured in meters;
  • velocities are measured in meters per second;
  • accelerations are measured in meters per second squared.

The principal variables expressed in this system are x_center, y_center, v_x, v_y, a_x, and a_y.

For files containing bidirectional traffic, the same road-aligned variant of the Frenet coordinate system is used for both travel directions, while the Direction field identifies the corresponding vehicle travel direction.

Vehicle-Pair Local Interaction Coordinate System

The interaction semantic data additionally use an ego-vehicle-centered local coordinate system for each candidate vehicle pair.

The centroid of the ego vehicle (EV) is defined as the origin.

The direction of the relative-velocity vector between the ego vehicle and the principal other vehicle (POV) is defined as the positive local Y-axis. The direction perpendicular to the relative-velocity vector and pointing to the right is defined as the positive local X-axis.

The relative position of the target vehicle is projected into this local coordinate system to obtain x_local and y_local.

The vehicle-pair local coordinate transformation is defined for pairs with nonzero relative velocity, for which the relative-velocity direction provides the local-axis orientation.

This vehicle-pair local coordinate system complements the road-aligned variant of the Frenet coordinate system used for x_center and y_center by describing pairwise relative positions.

Temporal Resolution

The UAV videos were recorded using two source recording modes:

  • 3840 × 2160 pixels at 30 frames per second;
  • 2688 × 1512 pixels at 60 frames per second.

Therefore, the nominal physical interval between two consecutive source frames is:

  • 1/30 s, approximately 0.03333 s, for 30 fps video;
  • 1/60 s, approximately 0.01667 s, for 60 fps video.

U-EASWS contains observations originating from both source frame rates, and Delta_t_s provides the corresponding physical time interval in the processed trajectory data.

The processed trajectory files therefore include Delta_t_s, which explicitly provides the physical time interval associated with the corresponding trajectory record.

Within a vehicle trajectory, sort by Frame and accumulate valid Delta_t_s values to obtain elapsed time relative to the first observation. The first record serves as the temporal reference. For interaction files, the ego-vehicle time axis can be constructed from unique ego/frame records.

Source-specific frame-rate information should be used together with the corresponding raw records during reprocessing.

Data Collection

The original vehicle observations were extracted from UAV aerial videos recorded using two DJI Mavic 2 Zoom UAVs.

The recording modes were 3840 × 2160 at 30 fps and 2688 × 1512 at 60 fps. The UAVs were operated from a near-vertical top-down perspective to provide continuous coverage of the short weaving areas and their adjacent roadway sections.

A fixed zoom setting was maintained during data collection to preserve a consistent image scale and geometric configuration throughout each recording.

The UAV recording altitude ranged approximately from 220 m to 360 m, while the retained observation lengths ranged approximately from 290 m to 375 m.

Data collection was performed during daytime periods under clear and low-wind conditions to support stable UAV observations and consistent image measurements.

Data Processing

The processed trajectory and semantic data were generated through a standardized workflow.

The major stages include UAV video stabilization and region-of-interest extraction, vehicle detection and multi-object tracking, lane-region annotation, multi-video coordinate registration, transformation from image coordinates to road-aligned Frenet-based metric coordinates, trajectory quality screening, trajectory-gap reconstruction, trajectory smoothing, vehicle kinematic calculation, vehicle-length estimation, surrogate-safety-measure calculation, and interaction semantic annotation.

Vehicle trajectories are reconstructed using PCHIP interpolation where sufficient observations are available, with linear interpolation applied to sparse cases. Symmetric exponential moving average (sEMA) filtering is subsequently applied to improve trajectory smoothness while reducing temporal phase shift.

The processed trajectory and semantic data complement the frame-level records provided in Raw_Data by representing subsequent processing stages.

Principal Processing Code and Reprocessing Guide

The Principal Processing Code folder contains 11 files. These are executable Python processing modules, supporting utilities, a calibration template, dependency requirements, and documentation.

Files and Functions

  • coordinate_transform.py registers source-image coordinates to a master frame using a planar homography and converts pixel coordinates into road-aligned Frenet-based metric coordinates. It requires a completed calibration JSON and the corresponding source identifier. It retains source identity and adds metric vehicle-center coordinates.
  • filter_trajectory_outliers.py screens metric trajectories using observed duration, observation count, spatial extent, and average path speed. It produces retained records, a separate screening-output file, and a per-vehicle screening summary. The same screening is also integrated into reconstruction, so separate execution is optional.
  • reconstruct_trajectories.py screens trajectories, reconstructs trajectory gaps, interpolates positions, fills lane/direction attributes, applies symmetric exponential moving average (sEMA) smoothing, and calculates velocities and accelerations. It also preserves source/original identifiers and produces timing information. Measured merge and diverge reference coordinates can optionally be supplied to generate the corresponding distance fields.
  • estimate_vehicle_length.py estimates a fixed physical length for each vehicle directly from the six-column raw detection records and the calibration JSON. It returns vehicle-level length estimates, the number of retained observations, and quality indicators.
  • merge_vehicle_lengths.py joins vehicle-level length estimates to reconstructed trajectories using source identity and original vehicle identity. When lineage fields are provided separately, a verified mapping file is used to connect the corresponding records.
  • annotate_risk.py calculates nearest-leader TTC and DRAC, event-level cut-in PET, target identifiers, and risk labels using physical trajectories, time information, lane/direction annotations, and vehicle lengths.
  • annotate_interactions.py calculates PR-based interaction strength, the effective-interaction flag, and interaction type from basic trajectories, precomputed candidate-pair states, and calibrated PR parameters. All supplied candidate pairs are retained together with their calculated PR values and interaction flags.
  • _common.py provides shared CSV validation and output-writing utilities and is used together with the processing scripts as a supporting module.
  • calibration_template.json provides the calibration structure for organizing scene-specific information used in coordinate transformation and vehicle-length estimation.
  • requirements.txt lists the processing dependencies and their versions.
  • README.md documents detailed input schemas, commands, parameter choices, and implementation details for the processing package. It is separate from this repository-level Dataset Card.

Installation

Download the 11 files together, retaining their published filenames and their common directory. Python 3.12 was used for package testing. From the local repository directory, run:

cd "Principal Processing Code"
python -m pip install -r requirements.txt
python reconstruct_trajectories.py --help

Each processing script provides --help. The commands below use descriptive placeholders; replace them with actual local input/output filenames, the source key defined in your calibration JSON, and the numerical source frame rate. Output filenames are specified explicitly so that the original input files remain unchanged during processing.

Inputs to Prepare

  1. Raw detections: one source recording with Frame, Vehicle_ID, x_center_px, y_center_px, width_px, height_px. Pixel coordinates must refer to the same image view used for calibration.
  2. Scene calibration: a completed copy of calibration_template.json, including the master source, master-frame origin, reference segments with measured physical distances, and corresponding control points for non-master sources.
  3. Lane and direction annotations: verified Lane number and Direction fields are incorporated with the metric trajectories to support lane-based processing and road-geometry interpretation.
  4. Recording metadata: the actual constant frame rate for each source, and explicit source/ID/time mappings when combining recordings. Optional merge/diverge distances require measured reference cross-sections in the same road-aligned Frenet-based metric coordinate system.
  5. Interaction inputs: interaction annotation uses a candidate-pair CSV and calibrated PR parameter CSV prepared according to the input schemas described below.

For calibration, replace the required null values with measured values and change template_only to false only after completing the configuration. At least four valid corresponding points are required for each non-master homography. The current implementation is configured for horizontally aligned road scenes with rotation_rad = 0, consistent with the coordinate configuration used for U-EASWS. The master-frame scale is the mean of the measured physical-to-pixel distance ratios. Metric x increases to the right of the aligned master image, while metric y reverses the image's downward axis.

Processing Commands

First transform the pixel centers to meters:

python coordinate_transform.py --input RAW_DETECTION_DATA.csv --calibration SCENE_CALIBRATION.json --source SOURCE_VIDEO_KEY --output METRIC_TRAJECTORIES.csv

Add verified lane and direction annotations to that output, then reconstruct the trajectories:

python reconstruct_trajectories.py --input METRIC_TRAJECTORIES_WITH_LANES.csv --fps SOURCE_FPS --source SOURCE_VIDEO_KEY --output RECONSTRUCTED_TRAJECTORIES.csv --rejected REJECTED_TRAJECTORIES.csv --audit SCREENING_SUMMARY.csv

Estimate lengths from the original six-column detections using the same calibration, and merge them into the retained trajectories:

python estimate_vehicle_length.py --input RAW_DETECTION_DATA.csv --calibration SCENE_CALIBRATION.json --source SOURCE_VIDEO_KEY --output VEHICLE_LENGTH_ESTIMATES.csv
python merge_vehicle_lengths.py --input RECONSTRUCTED_TRAJECTORIES.csv --lengths VEHICLE_LENGTH_ESTIMATES.csv --output BASIC_TRAJECTORY_DATA.csv

Generate the two semantic layers independently:

python annotate_risk.py --input BASIC_TRAJECTORY_DATA.csv --output RISK_SEMANTIC_DATA.csv
python annotate_interactions.py --input BASIC_TRAJECTORY_DATA.csv --pairs CANDIDATE_PAIRS.csv --parameters PR_PARAMETERS.csv --output INTERACTION_SEMANTIC_DATA.csv

Each constant-frame-rate recording should be processed separately. When multiple recordings are combined, source identity, vehicle identifiers, and physical time should be retained to ensure consistent mapping across processing stages.

Screening and Reconstruction Settings

The released reconstruction code applies trajectory-quality screening based on observed duration, observation count, spatial extent, and average path speed. The basic screening criteria retain tracks with an observed duration N/FPS of at least 0.5 s and at least 15 valid observations. Low-motion trajectories are additionally evaluated using duration, coordinate extent, and average path speed. Here, N counts observations before interpolation, and average path speed is calculated as the sum of consecutive observed travel distances divided by N/FPS.

These rules provide a consistent quality-screening procedure for short-duration and low-motion trajectories. The resulting screening outputs and per-vehicle summary support transparent review of the retained trajectory set before reconstruction.

For retained tracks, exactly two valid coordinate observations select linear interpolation and three or more select PCHIP. Lane and direction values use forward fill followed by backward fill; vehicle identity remains constant within each trajectory. Position smoothing uses sEMA with a default time parameter of 0.6 s, followed by positional differences for velocity and acceleration.

Newly reconstructed outputs additionally retain Source_ID, Original_Vehicle_ID, and Original_Frame, together with Time_s. Their Delta_t_s is defined from the second trajectory record onward as 1/FPS. These lineage and timing fields support source tracing and temporal reconstruction during customized reprocessing.

Vehicle-Length Estimation Settings

The estimator constructs bounding-box corners internally from the center coordinates and half the width/height. It transforms all four corners to the road-aligned Frenet-based metric coordinate system and uses the longitudinal maximum-minus-minimum extent as a frame-level length candidate, providing a direct geometric length estimate from the supplied bounding boxes.

Quality-control screening removes nonfinite measurements and nonpositive box dimensions before aggregation. With at least four valid candidates, a 1.5-IQR filter is applied, and the 25th percentile of the retained candidates is assigned as the fixed vehicle length when at least five observations are retained. The output lateral extent provides an additional bounding-box diagnostic. The multi-frame aggregation and IQR-based screening improve robustness to frame-level bounding-box variation, while the six pixel-space fields are combined with metric calibration to estimate physical vehicle length.

Semantic-Annotation Inputs and Interpretation

Risk annotation uses physical time, lane/direction information, and a valid fixed length for each vehicle. The current script uses the nearest same-lane leader for TTC/DRAC and trajectory crossings associated with cut-in events for PET. PET uses future observations and is an event-based retrospective measure. The default DRAC cap is 15 m/s². An optional vehicle-length fallback setting is available when required, and TTC and PET values are interpreted according to their metric-specific applicability conditions.

Candidate-pair input requires Frame, EV_Vehicle_ID, POV_Vehicle_ID, x_local, y_local, v_rel, cangle. Pairs must refer to valid vehicles in the same source/frame, travel in the same direction, lie within 50 m, and have positive scalar relative speed. The interaction angle described in the manuscript is a continuous quantity. For the processing implementation, angles from 5° to 175°, inclusive, are encoded as cangle = 1, and angles outside this interval as cangle = 0. This conversion must be completed before supplying the candidate-pair file to the annotation script. The value 1 selects Lane Changing/Weaving; the value 0 selects Car Following for vehicles in the same lane and Parallel Driving otherwise.

PR parameter input requires cangle, round_v, rx_plus, rx_minus, ry_plus, ry_minus, bx_plus, bx_minus, by_plus, by_minus. Scale and shape parameters must be positive. The script rounds relative speed to one decimal place and selects the nearest parameter bin within the matching cangle group. Candidate-pair inputs and PR parameter files must use the same angle encoding, local-coordinate convention, and calibration procedure.

All supplied candidate pairs receive annotations. Interaction Strength > exp(-1) corresponds to Is Interacting = 1, while candidate pairs below this threshold remain available with their corresponding interaction annotations. Records in the default no-candidate state are encoded with Interaction_Target_ID = -1, interaction strength 0, interaction flag 0, and interaction type Safe.

Processing Inputs and Reprocessing

The released package provides executable implementations of the principal post-processing stages, including coordinate transformation, trajectory screening and reconstruction, kinematic calculation, vehicle-length estimation, risk annotation, and interaction annotation. These modules use the corresponding scene-specific calibration information, lane and direction information, candidate-pair data, and PR parameters described in the input specifications above. The supplied templates, input schemas, and processing instructions provide a structured workflow for applying these modules to the released data or to user-prepared inputs.

Users can analyze the published processed data directly or use the released raw records and processing modules for customized reprocessing. The required scene/source inputs, parameter settings, and processing procedures are described above and in the processing README.

Reading and Selecting Data

Download the CSV for the observation group and processing layer needed for your analysis. The interaction files may contain multiple candidate-pair rows for a given ego-vehicle/frame combination; ego/frame and target identifiers can therefore be used jointly in pair-level analyses.

For example, after downloading a basic trajectory file:

import pandas as pd

filename = "Basic_Trajectory_Data/Weaving Segment_3.csv"
for chunk in pd.read_csv(filename, chunksize=100_000):
    print(chunk.head())
    break

Use file/source identity together with vehicle and frame identifiers when linking data. For interaction rows, also retain Interaction_Target_ID; unique ego/frame records can be used for trajectory counting and time-axis reconstruction. The geometry images provide contextual documentation of roadway layout and channelization.

Users may define train/validation/test splits by recording, vehicle, or scenario according to the specific predictive-modeling task, with separation maintained between neighboring frames and overlapping vehicle trajectories. Files from different processing layers have different columns and can be loaded according to their corresponding schemas.

Relationship Between Data Components

The repository provides multiple data levels so that users can select the level most appropriate for their research objective.

Raw_Data provides low-level frame-wise image-coordinate and bounding-box information and is intended for users who wish to independently perform trajectory post-processing.

Basic_Trajectory_Data provides reconstructed physical vehicle trajectories and is suitable for vehicle kinematics, lane-changing behavior, traffic-flow modeling, trajectory prediction, and simulation calibration.

Risk_Semantic_Data retains the basic trajectory information and supplements it with TTC, PET, DRAC, selected risk-target information, and explicit risk labels.

Interaction_Semantic_Data retains the basic trajectory information and supplements it with vehicle-pair relative states, PR-based interaction strength, effective-interaction labels, and interaction-type annotations.

Weaving_Segment_Geometry_Images provides the roadway and channelization context required to interpret lane, direction, and merge/diverge-related variables.

The processed risk and interaction files already retain the corresponding basic trajectory variables, allowing users to directly select the data component matching their research objective.

Technical Validation

The accompanying manuscript reports evaluation of U-EASWS from multiple complementary perspectives.

Vehicle detection and multi-object tracking performance were examined under dense UAV-based traffic observations.

Trajectory continuity and spatial consistency were evaluated after coordinate registration, reconstruction, and smoothing.

Kinematic consistency was assessed using reconstructed position, velocity, and acceleration profiles, with particular attention to trajectory-boundary regions where derivative variables are most sensitive to positional variation. The validation results provide complementary evidence for the continuity and physical consistency of the reconstructed trajectories.

The spatial distributions of lane-changing events were further examined across all seven Type-A short weaving segments. The results show systematic relationships between lane-changing behavior and roadway geometry, lane position, travel direction, and channelization constraints across the observation areas.

The risk semantic layer was evaluated through the spatial and temporal characteristics of TTC, PET, and DRAC.

The interaction semantic layer was evaluated by examining the relationship between PR-based interaction strength and microscopic vehicle responses, as well as the spatial distribution of effective interactions across the weaving areas.

Usage Notes

Users interested primarily in vehicle trajectories and kinematic analysis can directly use Basic_Trajectory_Data.

Users studying traffic conflicts and surrogate safety should use Risk_Semantic_Data.

Users studying vehicle-pair interaction, spatial interaction strength, or interaction type should use Interaction_Semantic_Data.

Users who wish to perform independent trajectory reconstruction or alternative processing pipelines should begin with Raw_Data.

For files containing bidirectional traffic, users should first distinguish traffic streams using Direction before conducting lane-level, vehicle-level, or weaving-segment-specific analyses.

The fields Lane number, Dist_to_Merge_m, and Dist_to_Diverge_m should be interpreted together with the corresponding channelization image in Weaving_Segment_Geometry_Images.

TTC and DRAC represent frame-wise conflict-related states, whereas PET is an event-level measure associated with identified cut-in events.

PR-based Interaction Strength characterizes proximity-induced interaction, while the risk semantic fields describe conflict-related states. The two semantic layers therefore provide complementary information for microscopic traffic analysis.

Comparative analyses across WS1–WS7 can incorporate roadway geometry, channelization configuration, lane number, traffic direction, observation duration, weaving length, and traffic conditions. Scenario-level analyses can also be conducted before cross-scenario aggregation or normalization to preserve the characteristics of each weaving segment.

Data Interpretation and Usage Considerations

The released Raw_Data provides frame-level vehicle detection and tracking outputs representing an earlier processing stage than the reconstructed trajectory data.

These records provide image-space vehicle positions and detection-box dimensions that support independent trajectory post-processing and customized methodological workflows.

The road-aligned Frenet-based coordinates are scene-specific metric coordinates designed to describe longitudinal and lateral vehicle motion within each weaving scenario.

Vehicle_Length_m is an estimated physical vehicle attribute derived from multi-frame detection bounding boxes transformed into the road-aligned Frenet-based metric coordinate system.

The interaction-strength annotation quantifies proximity-induced interaction and complements the TTC-, PET-, and DRAC-based risk semantic information.

The dataset covers seven real-world Type-A short weaving scenarios in Changchun, China, providing a focused empirical basis for microscopic traffic-behavior, safety, and interaction research and supporting comparative analyses across different roadway geometries and channelization configurations.

Licensing Information

U-EASWS is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Under this license, users may share and adapt the dataset material for any purpose, provided that appropriate credit is given to the original dataset creators and any changes are indicated.

Dataset Access

The released data and principal code are available in the U-EASWS repository.

The repository currently contains:

Downloads last month
108