Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
time_s
float64
1
50.2k
speed_kph
int64
0
255
engine_torque_nm
float64
-356.25
1.69k
overall_gear_ratio
float64
0
7.61
transmission_output_speed_rpm
float64
0
2.43k
accelerator_pedal_pct
float64
0
100
vehicle_mass_kg
float64
19k
29.7k
road_grade_pct
float64
-5.52
5.09
1
0
-299.99997
0
0
0
19,040.88867
-1.42286
2
0
-299.99997
0
0
0
19,040.88867
-1.42286
3
0
140.625
0.7206
0
12.8
19,040.88867
-1.44509
4
0
431.24997
6.63058
0
41.2
19,040.88867
-1.48624
5
2
810.93744
6.33299
60.10366
59.6
19,040.88867
-1.63505
6
4
131.24998
5.05158
113.48744
24.4
19,040.88867
-1.52619
7
4
264.84372
4.65186
109.41696
27.6
19,040.88867
-1.49668
8
4
246.09377
4.93199
99.94466
27.2
19,040.88867
-1.46054
9
4
318.75
5.23973
99.87419
32
19,040.88867
-1.43411
10
4
321.09375
5.23968
101.28798
32
19,040.88867
-1.35751
11
4
239.06245
5.04291
101.00195
27.6
19,040.88867
-1.27564
12
4
171.09375
4.77123
101.37779
16.8
19,040.88867
-1.19471
13
4
311.71875
5.13307
95.98204
30
19,040.88867
-1.07591
14
4
227.34372
4.91858
92.65818
22.4
19,040.88867
-0.9053
15
3
224.99997
5.21489
83.61974
23.6
19,040.88867
-0.70394
16
3
229.68747
5.43097
74.56599
25.2
19,040.88867
-0.59483
17
3
449.99997
5.7313
76.14794
37.2
19,040.88867
-0.69634
18
2
217.96873
5.63113
65.86044
0
19,040.88867
-0.89082
19
0
264.84372
6.64456
0
0
19,040.88867
-0.87617
20
0
281.24997
6.71892
0
0
19,040.88867
-1.06082
21
0
271.87497
5.49369
0
24
19,040.88867
-1.27158
22
1
855.46869
5.89197
36.43462
72
19,040.88867
-1.28507
23
6
895.31244
5.26523
139.59351
68
19,040.88867
-1.52939
24
6
525
4.81225
162.25237
47.6
19,040.88867
-2.41672
25
7
339.84372
3.71434
182.72163
43.2
19,040.88867
-2.8407
26
8
569.53119
3.95949
205.89667
48.4
19,040.88867
-3.40841
27
10
349.21875
3.80877
237.47751
38.4
19,040.88867
-3.48941
28
10
203.90625
3.11021
255.53357
33.2
19,040.88867
-3.17742
29
11
21.09376
2.36965
267.24237
16.8
19,040.88867
-2.67914
30
11
119.53124
2.01836
273.7063
0
19,040.88867
-2.31376
31
12
105.46876
2.00966
283.28781
0
19,040.88867
-2.09552
32
11
152.34377
2.04948
252.84604
0
19,040.88867
-2.40187
33
10
131.25
2.5895
244.21365
10.4
19,040.88867
-2.61184
34
10
653.90613
4.07866
234.34067
53.6
19,040.88867
-2.91507
35
10
182.81248
3.47268
240.07028
28.8
19,040.88867
-3.21298
36
9
349.21872
3.62119
223.11424
40.4
19,040.88867
-3.2312
37
10
461.71875
4.07783
236.52316
42.4
19,040.88867
-3.01908
38
9
335.15622
3.50069
222.80893
40
19,040.88867
-2.59042
39
9
438.28122
4.00564
228.46397
43.2
19,040.88867
-2.27676
40
9
147.65623
3.47458
214.5065
26.8
19,040.88867
-2.31488
41
8
365.625
3.98771
191.53273
36.8
19,040.88867
-2.28193
42
8
529.68744
4.50436
193.70677
48
19,040.88867
-2.17665
43
8
510.93744
4.36235
208.00125
47.2
19,040.88867
-2.04394
44
9
478.12497
4.2378
219.0034
45.6
19,040.88867
-1.91217
45
9
473.43747
4.11384
226.71515
45.6
19,040.88867
-1.88538
46
10
435.93747
4.0163
236.96986
43.6
19,040.88867
-1.96995
47
9
370.3125
3.75279
226.82407
38.4
19,040.88867
-1.8658
48
9
501.56244
4.15489
209.96338
47.2
19,040.88867
-1.10946
49
9
665.62494
4.39832
230.58083
56
19,040.88867
0.0678
50
11
904.68738
4.30546
273.69946
68
19,040.88867
0.94677
51
15
986.71863
3.4873
361.86029
71.6
19,040.88867
1.31293
52
18
1,057.03101
2.03273
418.09094
72
19,040.88867
1.555
53
20
1,110.93726
2.029
473.38165
72.8
19,040.88867
1.76556
54
22
876.56238
2.029
509.06345
62.8
19,040.88867
2.0345
55
23
700.78125
2.029
532.67395
54.4
19,040.88867
2.23306
56
23
689.06244
2.029
549.36981
56.4
19,040.88867
2.33488
57
24
691.40613
2.029
571.52808
55.2
19,040.88867
2.42373
58
25
672.65613
2.029
581.86707
55.2
19,040.88867
2.52941
59
24
182.81248
2.029
563.06567
31.2
19,040.88867
2.69645
60
24
206.24997
2.029
564.03619
32.4
19,040.88867
2.88918
61
22
-281.24997
2.029
505.60229
1.6
19,040.88867
3.00616
62
20
-201.56248
1.98019
466.07053
10
19,040.88867
3.09097
63
18
18.75001
1.98206
430.18723
0
19,040.88867
3.08095
64
17
49.21876
1.98267
395.37048
0
19,040.88867
3.04589
65
15
79.68751
1.98144
360.84619
0
19,040.88867
3.06753
66
14
96.09377
1.97353
325.91321
1.2
19,040.88867
3.22125
67
13
780.46863
2.70426
302.31595
58.4
19,040.88867
3.42889
68
13
213.28123
2.54489
307.00211
24
19,040.88867
3.65315
69
12
386.71875
2.46248
281.6051
34
19,040.88867
3.84255
70
12
560.15619
2.75249
282.61954
48
19,040.88867
3.85652
71
12
166.40625
2.76132
286.45386
21.2
19,040.88867
3.73314
72
12
133.59375
2.01385
275.44562
15.6
19,040.88867
3.50954
73
11
121.87502
2.02595
258.64844
0
19,040.88867
0.33606
74
7
110.15625
3.39095
176.42149
0
19,040.88867
-1.35943
75
6
121.87502
3.47943
150.29337
0
19,040.88867
-1.84139
76
6
963.28113
4.71655
151.79062
74
19,040.88867
-1.8431
77
8
42.18752
4.07546
190.14624
23.2
19,040.88867
-1.81363
78
7
164.0625
3.38854
181.85912
30.8
19,040.88867
-1.67122
79
7
232.03122
4.15102
182.32874
25.2
19,040.88867
-1.66069
80
7
159.37502
3.48208
170.2262
19.2
19,040.88867
-1.48895
81
6
309.37497
3.60703
161.81245
30.8
19,040.88867
-0.72732
82
7
510.93744
4.71989
162.72878
45.6
19,040.88867
-0.44018
83
8
433.59375
4.37346
189.78825
42.4
19,040.88867
-0.16822
84
9
696.09375
4.52063
219.31558
57.2
19,040.88867
0.75331
85
11
576.56244
4.03095
259.50073
52
19,040.88867
1.59545
86
12
255.46875
3.4873
276.02686
31.6
19,040.88867
2.10843
87
12
316.40625
3.4873
278.58002
36.8
19,040.88867
2.45467
88
12
442.96872
3.4873
285.26962
41.2
19,040.88867
2.59165
89
12
435.9375
3.4873
299.28717
42.8
19,040.88867
2.37383
90
13
503.90619
3.4873
316.6008
46.8
19,040.88867
2.08528
91
14
175.78125
3.4873
317.18021
33.2
19,040.88867
1.91914
92
13
189.84375
3.4873
313.99112
33.2
19,040.88867
1.75855
93
13
290.62497
3.38854
303.10287
38
19,040.88867
1.37128
94
12
335.15622
3.47548
297.75153
39.2
19,040.88867
1.00127
95
13
323.4375
2.40962
309.62183
36
19,040.88867
0.7817
96
14
532.03119
2.66382
331.00681
48.8
19,040.88867
0.52289
97
15
548.43744
2.63252
362.42828
48.4
19,040.88867
0.10717
98
16
384.37497
2.23869
380.84518
40
19,040.88867
-0.24069
99
17
473.43744
2.37563
398.56979
44.4
19,040.88867
-0.62923
100
18
-39.84374
2.01023
424.53589
14
19,040.88867
-1.05291
End of preview. Expand in Data Studio

Heavy truck drive cycle

3,831 seconds of driving logged once a second from a diesel heavy truck (15 to 32 tonnes): 58 km over about 14 hours, with three stops of half an hour or more in between. It is the data behind the electric truck battery sizing app, which replays it as if the truck were electric to see what battery and charger it would need. Code: github.com/prteek/real-world-vehicle-simulation.

Rows are logged only while the truck is running: a jump in time_s larger than a second is a stop.

column content
time_s seconds since the start of the log (gaps are stops)
speed_kph vehicle speed [km/h]; 255 means no reading
engine_torque_nm net engine torque [N·m]; negative when the engine is driven
overall_gear_ratio overall torque ratio from the engine to the transmission output
transmission_output_speed_rpm transmission output shaft speed [rpm]
accelerator_pedal_pct accelerator pedal position [%]
vehicle_mass_kg estimated vehicle mass [kg]
road_grade_pct road grade [%], averaged

Power at the wheels is engine torque × overall gear ratio × transmission output speed. Brake power is not logged; the code estimates it as what is left after road load, grade and inertia whenever the driver is off the accelerator and slowing down.

Road load (road_load.json)

The road-load model, frozen: power [W] = rolling × mass × g × cos(grade) × speed + aero × speed³ (speed in m/s, grade = road_grade_pct / 100). It was fitted by least squares on the whole 428 km log this stretch came from, on the moments the truck was driving rather than braking (R² 0.74 on a held-out 30%); the stretch alone is too uniform in speed to separate the two terms.

import json, pandas as pd
from huggingface_hub import hf_hub_download

log = pd.read_csv(hf_hub_download("prteek/drive-cycle", "data.csv", repo_type="dataset"))
road_load = json.load(open(hf_hub_download("prteek/drive-cycle", "road_load.json", repo_type="dataset")))
Downloads last month
-

Space using prteek/drive-cycle 1