CoolFace
Datasetpublic

Cainiao-AI/LaDe

Dataset Download: https://huggingface.co/datasets/Cainiao-AI/LaDe/tree/mainDataset Website: https://cainiaotechai.github.io/LaDe-website/Code Link:https://github.com/wenhaomin/LaDePaper Link: https://arxiv.org/abs/2306.10675 1. About Dataset LaDe is a publicly available last-mile delivery dataset with millions of packages from industry. It has three unique characteristics: (1) Large-scale. It involves 10,677k packages of 21k couriers over 6 months of real-world operation.… See the full description on the dataset page: https://huggingface.co/datasets/Cainiao-AI/LaDe.

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
35likes2.5kdownloads
Dataset Card

Dataset Download: https://huggingface.co/datasets/Cainiao-AI/LaDe/tree/main Dataset Website: https://cainiaotechai.github.io/LaDe-website/ Code Link:https://github.com/wenhaomin/LaDe Paper Link: https://arxiv.org/abs/2306.10675

1. About Dataset

LaDe is a publicly available last-mile delivery dataset with millions of packages from industry. It has three unique characteristics: (1) Large-scale. It involves 10,677k packages of 21k couriers over 6 months of real-world operation. (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. (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. [image]

2. Download

LaDe is composed of two subdatasets: i) LaDe-D, which comes from the package delivery scenario. ii) LaDe-P, which comes from the package pickup scenario. To facilitate the utilization of the dataset, each sub-dataset is presented in CSV format.

LaDe can be used for research purposes. Before you download the dataset, please read these terms. And Code link. Then put the data into "./data/raw/". The structure of "./data/raw/" should be like:

* ./data/raw/  
    * delivery    
        * delivery_sh.csv   
        * ...    
    * pickup  
        * pickup_sh.csv  
        * ...
    * road-network  
        * roads.csv
    * data_with_trajectory_20s
        * courier_detailed_trajectory_20s.pkl.xz

road-network/roads.csv records the road network of the five cities.

datawithtrajectory_20s/* records the trajectory of courier.

python
import pandas as pd
>>> import pandas as pd
>>> df = pd.read_pickle("courier_detailed_trajectory_20s.pkl.xz")
>>> df.head(3)
    ds                        postman_id        gps_time           lat           lng
0  321  106f5ac22cfd1574b196d16fed62f90d  03-21 07:31:58  3.953700e+06  3.053400e+06
1  321  106f5ac22cfd1574b196d16fed62f90d  03-21 07:32:18  3.953700e+06  3.053398e+06
2  321  106f5ac22cfd1574b196d16fed62f90d  03-21 07:32:41  3.953700e+06  3.053398e+06

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.

CityDescription
ShanghaiOne of the most prosperous cities in China, with a large number of orders per day.
HangzhouA big city with well-developed online e-commerce and a large number of orders per day.
ChongqingA big city with complicated road conditions in China, with a large number of orders.
JilinA middle-size city in China, with a small number of orders each day.
YantaiA small city in China, with a small number of orders every day.

3. Description

Below is the detailed field of each sub-dataset.

3.1 LaDe-P

Data fieldDescriptionUnit/format
Package information
package_idUnique identifier of each packageId
timewindowstartStart of the required time windowTime
timewindowendEnd of the required time windowTime
Stop information
lng/latCoordinates of each stopFloat
cityCityString
region_idId of the RegionString
aoi_idId of the AOI (Area of Interest)Id
aoi_typeType of the AOICategorical
Courier Information
courier_idId of the courierId
Task-event Information
accept_timeThe time when the courier accepts the taskTime
acceptgpstimeThe time of the GPS point closest to accept timeTime
acceptgpslng/latCoordinates when the courier accepts the taskFloat
pickup_timeThe time when the courier picks up the taskTime
pickupgpstimeThe time of the GPS point closest to pickup_timeTime
pickupgpslng/latCoordinates when the courier picks up the taskFloat
Context information
dsThe date of the package pickupDate

3.2 LaDe-D

Data fieldDescriptionUnit/format
Package information
package_idUnique identifier of each packageId
Stop information
lng/latCoordinates of each stopFloat
cityCityString
region_idId of the regionId
aoi_idId of the AOIId
aoi_typeType of the AOICategorical
Courier Information
courier_idId of the courierId
Task-event Information
accept_timeThe time when the courier accepts the taskTime
acceptgpstimeThe time of the GPS point whose time is the closest to accept timeTime
acceptgpslng/acceptgpslatCoordinates when the courier accepts the taskFloat
delivery_timeThe time when the courier finishes delivering the taskTime
deliverygpstimeThe time of the GPS point whose time is the closest to the delivery timeTime
deliverygpslng/deliverygpslatCoordinates when the courier finishes the taskFloat
Context information
dsThe date of the package deliveryDate

4. Leaderboard

Blow shows the performance of different methods in Shanghai.

4.1 Route Prediction

Experimental results of route prediction. We use bold and underlined fonts to denote the best and runner-up model, respectively.

MethodHR@3KRCLSDED
TimeGreedy57.6531.815.542.15
DistanceGreedy60.7739.815.542.15
OR-Tools66.2147.604.401.81
LightGBM73.7655.713.011.84
FDNET73.27 ± 0.4753.80 ± 0.583.30 ± 0.041.84 ± 0.01
DeepRoute74.68 ± 0.0756.60 ± 0.162.98 ± 0.011.79 ± 0.01
Graph2Route74.84 ± 0.1556.99 ± 0.522.86 ± 0.021.77 ± 0.01

4.2 Estimated Time of Arrival Prediction

MethodMAERMSEACC@30
LightGBM30.9935.040.59
SPEED23.7527.860.73
KNN36.0031.890.58
MLP21.54 ± 2.2025.05 ± 2.460.79 ± 0.04
FDNET18.47 ± 0.2521.44 ± 0.280.84 ± 0.01

4.3 Spatio-temporal Graph Forecasting

MethodMAERMSE
HA4.639.91
DCRNN3.69 ± 0.097.08 ± 0.12
STGCN3.04 ± 0.026.42 ± 0.05
GWNET3.16 ± 0.066.56 ± 0.11
ASTGCN3.12 ± 0.066.48 ± 0.14
MTGNN3.13 ± 0.046.51 ± 0.13
AGCRN3.93 ± 0.037.99 ± 0.08
STGNCDE3.74 ± 0.157.27 ± 0.16

5. Citation

If you find this helpful, please cite our paper:

shell
@misc{wu2023lade,
      title={LaDe: The First Comprehensive Last-mile Delivery Dataset from Industry}, 
      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},
      year={2023},
      eprint={2306.10675},
      archivePrefix={arXiv},
      primaryClass={cs.DB}
}