archanag jinyan218 commited on
Commit
8f8e3e4
·
0 Parent(s):

Duplicate from Cainiao-AI/LaDe

Browse files

Co-authored-by: LJH <jinyan218@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ # Audio files - uncompressed
37
+ *.pcm filter=lfs diff=lfs merge=lfs -text
38
+ *.sam filter=lfs diff=lfs merge=lfs -text
39
+ *.raw filter=lfs diff=lfs merge=lfs -text
40
+ # Audio files - compressed
41
+ *.aac filter=lfs diff=lfs merge=lfs -text
42
+ *.flac filter=lfs diff=lfs merge=lfs -text
43
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
44
+ *.ogg filter=lfs diff=lfs merge=lfs -text
45
+ *.wav filter=lfs diff=lfs merge=lfs -text
46
+ # Image files - uncompressed
47
+ *.bmp filter=lfs diff=lfs merge=lfs -text
48
+ *.gif filter=lfs diff=lfs merge=lfs -text
49
+ *.png filter=lfs diff=lfs merge=lfs -text
50
+ *.tiff filter=lfs diff=lfs merge=lfs -text
51
+ # Image files - compressed
52
+ *.jpg filter=lfs diff=lfs merge=lfs -text
53
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
54
+ *.webp filter=lfs diff=lfs merge=lfs -text
55
+ delivery/delivery_cq.csv filter=lfs diff=lfs merge=lfs -text
56
+ delivery/delivery_hz.csv filter=lfs diff=lfs merge=lfs -text
57
+ delivery/delivery_sh.csv filter=lfs diff=lfs merge=lfs -text
58
+ delivery/delivery_yt.csv filter=lfs diff=lfs merge=lfs -text
59
+ pickup/pickup_cq.csv filter=lfs diff=lfs merge=lfs -text
60
+ pickup/pickup_hz.csv filter=lfs diff=lfs merge=lfs -text
61
+ pickup/pickup_jl.csv filter=lfs diff=lfs merge=lfs -text
62
+ pickup/pickup_sh.csv filter=lfs diff=lfs merge=lfs -text
63
+ pickup/pickup_yt.csv filter=lfs diff=lfs merge=lfs -text
64
+ road-network/roads.csv filter=lfs diff=lfs merge=lfs -text
65
+ delivery_trajectory.csv filter=lfs diff=lfs merge=lfs -text
66
+ pickup_trajectory.csv filter=lfs diff=lfs merge=lfs -text
67
+ delivery_five_cities.csv filter=lfs diff=lfs merge=lfs -text
68
+ pickup_five_cities.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - Logistics
5
+ - Last-mile Delivery
6
+ - Spatial-Temporal
7
+ - Graph
8
+ size_categories:
9
+ - 10M<n<100M
10
+ ---
11
+
12
+ Dataset Download: https://huggingface.co/datasets/Cainiao-AI/LaDe/tree/main
13
+ Dataset Website: https://cainiaotechai.github.io/LaDe-website/
14
+ Code Link:https://github.com/wenhaomin/LaDe
15
+ Paper Link: https://arxiv.org/abs/2306.10675
16
+
17
+ # 1. About Dataset
18
+ **LaDe** is a publicly available last-mile delivery dataset with millions of packages from industry.
19
+ It has three unique characteristics: (1) Large-scale. It involves 10,677k packages of 21k couriers over 6 months of real-world operation.
20
+ (2) Comprehensive information, it offers original package information, such as its location and time requirements, as well as task-event information, which records when and where the courier is while events such as task-accept and task-finish events happen.
21
+ (3) Diversity: the dataset includes data from various scenarios, such as package pick-up and delivery, and from multiple cities, each with its unique spatio-temporal patterns due to their distinct characteristics such as populations.
22
+ ![LaDe.png](./img/LaDe.png)
23
+
24
+
25
+
26
+ # 2. Download
27
+ LaDe is composed of two subdatasets: i) [LaDe-D](https://huggingface.co/datasets/Cainiao-AI/LaDe-D), which comes from the package delivery scenario.
28
+ ii) [LaDe-P](https://huggingface.co/datasets/Cainiao-AI/LaDe-P), which comes from the package pickup scenario. To facilitate the utilization of the dataset, each sub-dataset is presented in CSV format.
29
+
30
+ LaDe can be used for research purposes. Before you download the dataset, please read these terms. And [Code link](https://github.com/wenhaomin/LaDe). Then put the data into "./data/raw/".
31
+ The structure of "./data/raw/" should be like:
32
+ ```
33
+ * ./data/raw/
34
+ * delivery
35
+ * delivery_sh.csv
36
+ * ...
37
+ * pickup
38
+ * pickup_sh.csv
39
+ * ...
40
+ * road-network
41
+ * roads.csv
42
+ * data_with_trajectory_20s
43
+ * courier_detailed_trajectory_20s.pkl.xz
44
+ ```
45
+
46
+ road-network/roads.csv records the road network of the five cities.
47
+
48
+
49
+ data_with_trajectory_20s/* records the trajectory of courier.
50
+ ```python
51
+ import pandas as pd
52
+ >>> import pandas as pd
53
+ >>> df = pd.read_pickle("courier_detailed_trajectory_20s.pkl.xz")
54
+ >>> df.head(3)
55
+ ds postman_id gps_time lat lng
56
+ 0 321 106f5ac22cfd1574b196d16fed62f90d 03-21 07:31:58 3.953700e+06 3.053400e+06
57
+ 1 321 106f5ac22cfd1574b196d16fed62f90d 03-21 07:32:18 3.953700e+06 3.053398e+06
58
+ 2 321 106f5ac22cfd1574b196d16fed62f90d 03-21 07:32:41 3.953700e+06 3.053398e+06
59
+ ```
60
+
61
+ Each sub-dataset (delivery, pickup) contains 5 CSV files, with each representing the data from a specific city, the detail of each city can be find in the following table.
62
+
63
+
64
+ | City | Description |
65
+ |------------|----------------------------------------------------------------------------------------------|
66
+ | Shanghai | One of the most prosperous cities in China, with a large number of orders per day. |
67
+ | Hangzhou | A big city with well-developed online e-commerce and a large number of orders per day. |
68
+ | Chongqing | A big city with complicated road conditions in China, with a large number of orders. |
69
+ | Jilin | A middle-size city in China, with a small number of orders each day. |
70
+ | Yantai | A small city in China, with a small number of orders every day. |
71
+
72
+
73
+ # 3. Description
74
+ Below is the detailed field of each sub-dataset.
75
+ ## 3.1 LaDe-P
76
+ | Data field | Description | Unit/format |
77
+ |----------------------------|----------------------------------------------|--------------|
78
+ | **Package information** | | |
79
+ | package_id | Unique identifier of each package | Id |
80
+ | time_window_start | Start of the required time window | Time |
81
+ | time_window_end | End of the required time window | Time |
82
+ | **Stop information** | | |
83
+ | lng/lat | Coordinates of each stop | Float |
84
+ | city | City | String |
85
+ | region_id | Id of the Region | String |
86
+ | aoi_id | Id of the AOI (Area of Interest) | Id |
87
+ | aoi_type | Type of the AOI | Categorical |
88
+ | **Courier Information** | | |
89
+ | courier_id | Id of the courier | Id |
90
+ | **Task-event Information** | | |
91
+ | accept_time | The time when the courier accepts the task | Time |
92
+ | accept_gps_time | The time of the GPS point closest to accept time | Time |
93
+ | accept_gps_lng/lat | Coordinates when the courier accepts the task | Float |
94
+ | pickup_time | The time when the courier picks up the task | Time |
95
+ | pickup_gps_time | The time of the GPS point closest to pickup_time | Time |
96
+ | pickup_gps_lng/lat | Coordinates when the courier picks up the task | Float |
97
+ | **Context information** | | |
98
+ | ds | The date of the package pickup | Date |
99
+
100
+
101
+ ## 3.2 LaDe-D
102
+ | Data field | Description | Unit/format |
103
+ |-----------------------|--------------------------------------|---------------|
104
+ | **Package information** | | |
105
+ | package_id | Unique identifier of each package | Id |
106
+ | **Stop information** | | |
107
+ | lng/lat | Coordinates of each stop | Float |
108
+ | city | City | String |
109
+ | region_id | Id of the region | Id |
110
+ | aoi_id | Id of the AOI | Id |
111
+ | aoi_type | Type of the AOI | Categorical |
112
+ | **Courier Information** | | |
113
+ | courier_id | Id of the courier | Id |
114
+ | **Task-event Information**| | |
115
+ | accept_time | The time when the courier accepts the task | Time |
116
+ | accept_gps_time | The time of the GPS point whose time is the closest to accept time | Time |
117
+ | accept_gps_lng/accept_gps_lat | Coordinates when the courier accepts the task | Float |
118
+ | delivery_time | The time when the courier finishes delivering the task | Time |
119
+ | delivery_gps_time | The time of the GPS point whose time is the closest to the delivery time | Time |
120
+ | delivery_gps_lng/delivery_gps_lat | Coordinates when the courier finishes the task | Float |
121
+ | **Context information** | | |
122
+ | ds | The date of the package delivery | Date |
123
+
124
+
125
+ # 4. Leaderboard
126
+ Blow shows the performance of different methods in Shanghai.
127
+ ## 4.1 Route Prediction
128
+
129
+ Experimental results of route prediction. We use bold and underlined fonts to denote the best and runner-up model, respectively.
130
+
131
+ | Method | HR@3 | KRC | LSD | ED |
132
+ |--------------|--------------|--------------|-------------|-------------|
133
+ | TimeGreedy | 57.65 | 31.81 | 5.54 | 2.15 |
134
+ | DistanceGreedy | 60.77 | 39.81 | 5.54 | 2.15 |
135
+ | OR-Tools | 66.21 | 47.60 | 4.40 | 1.81 |
136
+ | LightGBM | 73.76 | 55.71 | 3.01 | 1.84 |
137
+ | FDNET | 73.27 ± 0.47 | 53.80 ± 0.58 | 3.30 ± 0.04 | 1.84 ± 0.01 |
138
+ | DeepRoute | 74.68 ± 0.07 | 56.60 ± 0.16 | 2.98 ± 0.01 | 1.79 ± 0.01 |
139
+ | Graph2Route | 74.84 ± 0.15 | 56.99 ± 0.52 | 2.86 ± 0.02 | 1.77 ± 0.01 |
140
+
141
+
142
+ ## 4.2 Estimated Time of Arrival Prediction
143
+
144
+ | Method | MAE | RMSE | ACC@30 |
145
+ | ------ |--------------|--------------|-------------|
146
+ | LightGBM | 30.99 | 35.04 | 0.59 |
147
+ | SPEED | 23.75 | 27.86 | 0.73 |
148
+ | KNN | 36.00 | 31.89 | 0.58 |
149
+ | MLP | 21.54 ± 2.20 | 25.05 ± 2.46 | 0.79 ± 0.04 |
150
+ | FDNET | 18.47 ± 0.25 | 21.44 ± 0.28 | 0.84 ± 0.01 |
151
+
152
+
153
+ ## 4.3 Spatio-temporal Graph Forecasting
154
+
155
+
156
+ | Method | MAE | RMSE |
157
+ |-------|-------------|-------------|
158
+ | HA | 4.63 | 9.91 |
159
+ | DCRNN | 3.69 ± 0.09 | 7.08 ± 0.12 |
160
+ | STGCN | 3.04 ± 0.02 | 6.42 ± 0.05 |
161
+ | GWNET | 3.16 ± 0.06 | 6.56 ± 0.11 |
162
+ | ASTGCN | 3.12 ± 0.06 | 6.48 ± 0.14 |
163
+ | MTGNN | 3.13 ± 0.04 | 6.51 ± 0.13 |
164
+ | AGCRN | 3.93 ± 0.03 | 7.99 ± 0.08 |
165
+ | STGNCDE | 3.74 ± 0.15 | 7.27 ± 0.16 |
166
+
167
+
168
+
169
+ # 5. Citation
170
+ If you find this helpful, please cite our paper:
171
+
172
+ ```shell
173
+ @misc{wu2023lade,
174
+ title={LaDe: The First Comprehensive Last-mile Delivery Dataset from Industry},
175
+ author={Lixia Wu and Haomin Wen and Haoyuan Hu and Xiaowei Mao and Yutong Xia and Ergang Shan and Jianbin Zhen and Junhong Lou and Yuxuan Liang and Liuqing Yang and Roger Zimmermann and Youfang Lin and Huaiyu Wan},
176
+ year={2023},
177
+ eprint={2306.10675},
178
+ archivePrefix={arXiv},
179
+ primaryClass={cs.DB}
180
+ }
181
+ ```
courier_detailed_trajectory.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68ca61378d5521844abab0249d72bc340e6aa24e9d6b11a64ced4a6f06b9d098
3
+ size 160005925
data_with_trajectory_20s/courier_detailed_trajectory_20s.pkl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61704f2735cafda3b4d455350dcde97e430d5926f3773a5e4ca7e7e8cc100cc4
3
+ size 438656312
data_with_trajectory_20s/delivery_five_cities.pkl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1502c01e794504a68ba846e5bc3bf3404cd84c0c22c7c37ae585cd614079d905
3
+ size 34028796
data_with_trajectory_20s/pickup_five_cities.pkl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06f9c1db6cf136bbfa8bb4882113abbdee4c42998ddba63603133c8e4df5bffc
3
+ size 41345044
delivery/delivery_cq.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:114a35e9a31f817a3c9efb8513924688706bcedfa85ccd69df696eb5e8eddea2
3
+ size 145068417
delivery/delivery_hz.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9969df2a5c79dadc6149c384e3632eccc0417d01a2575a74db2310e786541c22
3
+ size 286893611
delivery/delivery_jl.csv ADDED
The diff for this file is too large to render. See raw diff
 
delivery/delivery_sh.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da875abddbb01ac324106b9b9ce33181e5e8530e77359a12ee68567fd1cc3bbf
3
+ size 228069571
delivery/delivery_yt.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa5bca7fdaa8c89d4ab50a2ed2b94fb09f608acc49fc1108a1a612e9c0f5a7ad
3
+ size 31532960
delivery_five_cities.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a22b49b57a0201a2b569f80a8282e9147d37db1c2cc374fdf6111aad3d9a3d97
3
+ size 135539702
img/LaDe.png ADDED

Git LFS Details

  • SHA256: d6231108fec818af1fa995d99b4cd9f9d080a8ab503a9c5e8bc73a36d6ca0a24
  • Pointer size: 132 Bytes
  • Size of remote file: 3.03 MB
pickup/pickup_cq.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d58248d1aca9cf155bd202f311dff73f8562174d4e4041160a3996878143b056
3
+ size 190522468
pickup/pickup_hz.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:390b80be91d9b1ff80594c29d5206633db2759d54ccd4dff3d9f6f80513ab3e2
3
+ size 335817674
pickup/pickup_jl.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac5b9f76605b544bd19d79703d137c8656c5395dfaeeb297e3b10ea6b30c3eb1
3
+ size 43801745
pickup/pickup_sh.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebc564f1b6235e09ccca7cf4ccfe8a2014c91e99d973516e69350da9f7424db9
3
+ size 228339849
pickup/pickup_yt.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00c049925a41d92112795718021f348da07f1adb84002de3f5707aef6ac01e91
3
+ size 190190713
pickup_five_cities.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966b5365d0a02422929088277c2838569c5a30458275e4b2587cb9b64fb8011a
3
+ size 154069529
road-network/roads.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52d3f4ccf33a32cec42e2aa9f3083d8b2e79670b30bbd88f00f3fb9ad7979a0a
3
+ size 231746519