Dataset Viewer
Auto-converted to Parquet Duplicate
class_id
int64
class_name
string
food_description
string
g_per_metric_cup
float64
density_g_per_cm3
float64
density_kg_per_m3
float64
calories_kcal
float64
fat_total_g
float64
fat_saturated_g
float64
fat_polyunsat_g
float64
fat_monounsat_g
float64
fat_trans_g
float64
cholesterol_mg
float64
sodium_mg
float64
carb_g
float64
fiber_g
float64
sugar_g
float64
protein_g
float64
vitamin_a_ug
float64
vitamin_c_mg
float64
vitamin_d_ug
float64
calcium_mg
float64
iron_mg
float64
potassium_mg
float64
0
French beans
Beans, snap, green, raw
162
0.648
648
343
2.02
0.221
1.207
0.138
null
0
18
64.11
25.2
null
18.81
0
4.6
null
186
3.4
1,316
1
almond
Nuts, almonds, dry roasted, without salt added
146
0.584
584
578
50.64
3.881
12.214
32.155
null
0
1
19.74
11.8
4.8
21.26
0
0
null
248
4.3
728
2
apple
Apple, raw
132
0.528
528
52
0.17
0.028
0.051
0.007
null
0
1
13.81
2.4
10.39
0.26
3
4.6
null
6
0.12
107
3
apricot
Apricots, raw (halves)
164
0.656
656
48
0.39
0.027
0.077
0.17
null
0
1
11.12
2
9.24
1.4
96
10
null
13
0.39
259
4
asparagus
Asparagus, raw (cut pieces)
142
0.568
568
20
0.12
0.046
0.088
0.006
null
0
2
3.88
2.1
1.88
2.2
38
5.6
null
24
2.14
202
5
avocado
Avocado, raw, all commercial varieties (cubed)
154
0.616
616
160
14.66
2.126
1.816
9.799
null
0
7
8.53
6.7
0.66
2
7
10
null
12
0.55
485
6
bamboo shoots
Bamboo shoots, raw (sliced)
161
0.644
644
27
0.3
0.069
0.134
0.007
null
0
4
5.2
2.2
3
2.6
1
4
null
13
0.5
533
7
banana
Bananas, raw (sliced)
159
0.636
636
89
0.33
0.112
0.073
0.032
null
0
1
22.84
2.6
12.23
1.09
3
8.7
null
5
0.26
358
8
bean sprouts
Mung beans, mature seeds, sprouted, raw
110
0.44
440
30
0.18
0.046
0.058
0.022
null
0
6
5.94
1.8
4.13
3.04
1
13.2
null
13
0.91
149
9
biscuit
Biscuits, plain or buttermilk, prepared from recipe
127
0.508
508
353
16.3
4.324
4.163
6.93
null
3
580
44.6
1.5
2.18
7
null
0.2
null
235
2.9
121
10
blueberry
Blueberries, raw
156
0.624
624
255
10.03
1.857
2.988
4.616
null
0
317
41.31
1.9
28.11
1.84
102
4.9
null
50
0.83
63
11
bread
Bread, white, commercially prepared
48
0.192
192
266
3.29
0.717
1.355
0.681
null
0
681
50.61
2.4
4.31
7.64
0
0
null
151
3.74
100
12
broccoli
Broccoli, raw (chopped)
96
0.384
384
34
0.37
0.039
0.038
0.011
null
0
33
6.64
2.6
1.7
2.82
31
89.2
null
47
0.73
316
13
cabbage
Cabbage, raw (shredded)
74
0.296
296
24
0.12
0.016
0.06
0.009
null
0
18
5.58
2.3
3.58
1.44
9
32.2
null
47
0.59
246
14
cake
Cake, chocolate, dry mix, regular
70
0.28
280
373
14.5
2.371
5.15
6.107
null
55
344
58.8
0.3
null
3.5
19
0
null
62
1.07
53
15
candy
Candies, hard
180
0.72
720
384
0.1
0
0
0
null
0
27
95.71
0
75.9
0
0
0
null
2
0.16
4
16
carrot
Carrots, raw
116
0.464
464
41
0.24
0.037
0.117
0.014
null
0
69
9.58
2.8
4.54
0.93
841
5.9
null
33
0.3
320
17
cashew
Nuts, cashew nuts, dry roasted, without salt
145
0.58
580
553
43.85
7.783
7.845
23.797
null
0
12
30.19
3.3
5.91
18.22
0
0.5
null
37
6.68
660
18
cauliflower
Cauliflower, raw (chopped)
113
0.452
452
25
0.1
0.032
0.099
0.014
null
0
30
5.3
2.5
2.4
1.98
1
46.4
null
22
0.44
303
19
celery stick
Celery, raw (chopped)
127
0.508
508
38
3.37
2.11
0.134
0.952
null
10
84
0.89
0.4
0.44
1.37
37
0.8
null
34
0.14
71
20
cheese butter
Butter, without salt
240
0.96
960
496
25.12
4.406
5.093
13.003
null
0
710
56.74
3.4
6.98
12.41
0
0
0
50
2.72
218
21
cherry
Cherries, sweet, raw
276
1.104
1,104
18
0.2
0.046
0.135
0.051
null
0
5
3.92
1.2
2.63
0.88
42
12.7
null
10
0.27
237
22
chicken duck
Chicken, broilers or fryers, meat and skin, roasted (chopped or diced)
148
0.592
592
336
28.23
9.63
3.635
12.846
null
84
221
0
0
0
18.91
63
0
null
11
2.69
203
23
chocolate
Chocolate, dark, 70-85% cacao solids
287
1.148
1,148
535
29.66
14.232
0.853
13.207
null
23
79
59.4
3.4
51.5
7.65
49
0
null
189
2.35
372
24
cilantro mint
Coriander (cilantro) leaves, raw
17
0.068
68
23
0.52
0.014
0.04
0.275
null
0
46
3.67
2.8
0.87
2.13
337
27
null
67
1.77
521
25
coffee
Beverages, coffee, brewed, prepared with tap water
250
1
1,000
1
0.02
0.002
0.001
0.012
null
0
2
0.04
0
0
0.12
0
0
null
2
0.02
47
26
corn
Corn, sweet, yellow, raw (cut from cob)
153
0.612
612
86
1.18
0.182
0.559
0.347
null
0
15
19.02
2.7
3.22
3.22
10
6.8
null
2
0.52
270
27
crab
Crustaceans, crab, alaska king, raw (leg)
143
0.572
572
101
1.76
0.226
0.674
0.278
null
99
600
0
0
0
20.03
2
3.3
null
103
0.9
321
28
cucumber
Cucumber, with peel, raw (sliced)
110
0.44
440
15
0.11
0.034
0.053
0.003
null
0
2
3.63
0.5
1.67
0.65
5
2.8
null
16
0.28
147
29
date
Dates, medjool
155
0.62
620
282
0.39
0.032
0.019
0.036
null
0
2
75.03
8
63.35
2.45
0
0.4
null
39
1.02
656
30
dried cranberries
Cranberries, dried, sweetened
169
0.676
676
308
1.37
0.103
0.658
0.198
null
0
3
82.36
5.7
65
0.07
0
0.2
null
10
0.53
40
31
egg
Egg, whole, raw, fresh
257
1.028
1,028
147
9.94
3.099
1.364
3.81
null
423
140
0.77
0
0.77
12.58
140
0
null
53
1.83
134
32
egg tart
Egg custard
259
1.036
1,036
375
22.44
7.319
7.806
6.014
null
168
216
37.05
0.9
11.18
6.33
106
0
1
39
1.33
71
33
eggplant
Eggplant, raw (cubed)
87
0.348
348
24
0.19
0.034
0.076
0.016
null
0
2
5.7
3.4
2.35
1.01
1
2.2
null
9
0.24
230
34
enoki mushroom
Mushrooms, enoki, raw
69
0.276
276
42
0.41
0.044
0.161
0.007
null
0
3
6.96
2.5
0.22
2.7
0
0
null
1
1.09
368
35
fig
Figs, raw
276
1.104
1,104
74
0.3
0.06
0.144
0.066
null
0
1
19.18
2.9
16.26
0.75
7
2
null
35
0.37
232
36
fish
Fish, salmon, Atlantic, farmed, raw
144
0.576
576
84
0.92
0.195
0.364
0.16
null
58
81
0
0
0
17.76
20
0.5
null
13
0.3
351
37
french fries
Fast foods, potato, french fried
256
1.024
1,024
274
14.06
3.278
2.288
8.183
null
0
300
35.66
3.3
0.58
3.48
0
5.4
null
13
1.21
527
38
fried meat
Pork, cured, bacon, cooked, pan fried
148
0.592
592
302
18.75
2.968
9.721
4.558
null
0
510
9.38
6.4
0.83
23.96
0
0
null
99
2.08
625
39
garlic
Garlic, raw
144
0.576
576
149
0.5
0.089
0.249
0.011
null
0
17
33.06
2.1
1
6.36
0
31.2
null
181
1.7
401
40
ginger
Ginger root, raw (sliced)
101
0.404
404
80
0.75
0.203
0.154
0.154
null
0
13
17.77
2
1.7
1.82
0
5
null
16
0.6
415
41
grape
Grapes, american type (slip skin), raw
97
0.388
388
69
0.16
0.054
0.048
0.007
null
0
2
18.1
0.9
15.48
0.72
3
10.8
null
10
0.36
191
42
green beans
Beans, snap, green, raw
162
0.648
648
31
0.12
0.026
0.059
0.005
null
0
6
7.13
3.4
1.4
1.82
35
16.3
null
37
1.04
209
43
hamburg
Fast foods, hamburger, large, single meat patty
202
0.808
808
305
13.13
4.601
1.02
6.062
null
39
430
33.9
null
null
13.69
0
0
0
70
2.67
161
44
hanamaki baozi
Bread, steamed, boston brown (closest match)
40
0.16
160
251
0.27
0.042
0.121
0.026
null
0
496
57.2
0.2
29.71
5.98
0
0
null
82
0.22
132
45
ice cream
Ice cream, vanilla
140
0.56
560
201
10.72
6.618
0.432
2.93
null
40
74
24.4
0.7
22.3
3.52
110
0.6
null
126
0.14
202
46
juice
Apple juice, canned or bottled, unsweetened
262
1.048
1,048
45
0.2
0.024
0.04
0.036
null
0
1
10.4
0.2
8.4
0.7
10
50
null
11
0.2
200
47
kelp
Seaweed, kelp, raw
85
0.34
340
43
0.56
0.247
0.047
0.098
null
0
233
9.57
1.3
0.6
1.68
6
3
null
168
2.85
89
48
king oyster mushroom
Mushrooms, oyster, raw
91
0.364
364
105
2
0.363
0.46
0.764
null
53
158
0
0
null
20.28
218
1.6
null
31
1.78
435
49
kiwi
Kiwifruit, green, raw (sliced)
190
0.76
760
61
0.52
0.029
0.287
0.047
null
0
3
14.66
3
8.99
1.14
4
92.7
null
34
0.31
312
50
lamb
Lamb, ground, raw
130
0.52
520
292
20.77
8.756
1.497
8.747
null
96
394
0
0
0
24.32
0
0
null
17
1.87
307
51
lemon
Lemons, raw, without peel
224
0.896
896
29
0.3
0.039
0.089
0.011
null
0
2
9.32
2.8
2.5
1.1
1
53
null
26
0.6
138
52
lettuce
Lettuce, iceberg, raw (shredded or chopped)
76
0.304
304
14
0.14
0.018
0.074
0.006
null
0
10
2.97
1.2
1.76
0.9
25
2.8
null
18
0.41
141
53
mango
Mangos, raw (sliced)
174
0.696
696
65
0.27
0.066
0.051
0.101
null
0
2
17
1.8
14.8
0.51
38
27.7
null
10
0.13
156
54
melon
Melons, cantaloupe, raw (diced)
165
0.66
660
34
0.19
0.051
0.081
0.003
null
0
16
8.16
0.9
7.86
0.84
169
36.7
null
9
0.21
267
55
milk
Milk, whole, 3.25% milkfat, with added vitamin D
258
1.032
1,032
50
2
1.215
0.102
0.533
null
7
41
4.71
0
5.16
3.29
46
0.1
null
117
0.03
148
56
milkshake
Fast foods, shake, vanilla
202
0.808
808
328
2.6
2.059
0.06
0.332
null
14
780
52.9
1.6
51.3
23.5
246
1.2
null
880
7.7
2,200
57
noodles
Noodles, chinese, chow mein, dry
59
0.236
236
137
2.06
0.417
0.549
0.578
null
29
236
25.01
1.2
0.4
4.51
6
0
null
12
1.46
38
58
okra
Okra, raw (sliced)
106
0.424
424
31
0.1
0.026
0.027
0.017
null
0
8
7.03
3.2
1.2
2
19
21.1
null
81
0.8
303
59
olives
Olives, ripe, canned (small or medium)
142
0.568
568
117
11.27
1.493
0.962
8.324
null
0
1,083
5.4
3.1
0.16
0.92
19
0.8
null
78
2.46
18
60
onion
Onions, raw (chopped)
169
0.676
676
42
0.08
0.026
0.062
0.023
null
0
3
10.11
1.4
4.28
0.92
0
6.4
null
22
0.19
144
61
orange
Oranges, raw, all commercial varieties (sections)
190
0.76
760
47
0.12
0.015
0.025
0.023
null
0
0
11.75
2.4
9.35
0.94
11
53.2
null
40
0.1
181
62
other ingredients
Spices, mixed (estimate)
101
0.404
404
251
0.27
0.042
0.121
0.026
null
0
496
57.2
0.2
29.71
5.98
0
0
null
82
0.22
132
63
oyster mushroom
Mushrooms, oyster, raw
91
0.364
364
35
0.44
0.02
0.04
0.01
null
0
18
6.43
2.4
1.11
3.34
0
0
null
3
1.33
420
64
pasta
Pasta, cooked, unenriched, without added salt
127
0.508
508
129
5.12
1.702
0.525
2.211
null
20
740
13.07
1.5
3.32
7.93
22
6.9
null
19
1.58
318
65
peach
Peaches, raw (sliced)
163
0.652
652
39
0.25
0.019
0.086
0.067
null
0
0
9.54
1.5
8.39
0.91
16
6.6
null
6
0.25
190
66
peanut
Peanuts, all types, dry roasted, without salt
154
0.616
616
599
52.5
8.673
15.269
25.936
null
0
320
15.26
9.4
4.18
28.03
0
0.8
null
61
1.52
726
67
pear
Pear, raw (sliced or cubed)
159
0.636
636
58
0.12
0.006
0.029
0.026
null
0
1
15.46
3.1
9.8
0.38
1
4.2
null
9
0.17
119
68
pepper
Peppers, sweet, red, raw (chopped)
157
0.628
628
26
0.3
0.059
0.156
0.007
null
0
2
6.03
2
4.2
0.99
157
190
null
7
0.43
211
69
pie
Pie, apple, commercially prepared
197
0.788
788
237
11
3.797
2.198
4.388
null
0
266
34
1.6
15.65
1.9
32
3.2
null
11
0.45
65
70
pineapple
Pineapple, raw, all varieties (chunks)
174
0.696
696
48
0.12
0.009
0.042
0.014
null
0
1
12.63
1.4
9.26
0.54
3
36.2
null
13
0.28
115
71
pizza
Pizza, cheese topping, regular crust
101
0.404
404
301
13.8
5.491
1.451
5.987
null
24
693
31.45
1.6
2.01
12.09
31
3.3
null
172
2.42
206
72
popcorn
Popcorn, air-popped
8
0.032
32
387
4.54
0.637
2.318
0.95
null
0
8
77.78
14.5
0.87
12.94
10
0
null
7
3.19
329
73
pork
Pork, tenderloin, baked (boneless, cooked)
259
1.036
1,036
136
5.41
1.87
0.58
2.42
null
66
49
0
0
null
20.54
2
0.9
null
5
1.2
359
74
potato
Potatoes, white, flesh and skin, raw (diced)
159
0.636
636
104
2.4
0.458
0.718
1.09
null
0
254
19.36
1.7
0.82
1.66
24
7.1
null
8
0.3
317
75
pudding
Puddings, chocolate, ready-to-eat
300
1.2
1,200
109
2.02
1.214
0.096
0.56
null
6
95
19.4
0.8
11.71
3.17
38
0.1
null
106
0.34
159
76
pumpkin
Pumpkin, raw (cubed)
123
0.492
492
26
0.1
0.052
0.005
0.013
null
0
1
6.5
0.5
1.36
1
369
9
null
21
0.8
340
77
rape
Rape (canola), raw
230
0.92
920
813
92
6.532
27.232
54.188
null
0
0
0
0
0
0
0
0
null
0
0
0
78
raspberry
Raspberries, raw
130
0.52
520
199
11.47
5.044
1.796
4.028
null
24
96
23.12
2.4
13.4
2.32
74
5.9
null
21
0.72
86
79
red beans
Beans, kidney, all types, mature seeds, cooked, boiled, without salt
187
0.748
748
112
2.69
0.935
0.409
1.182
null
3
335
18.12
3.4
0.61
3.72
1
1.2
null
21
1.06
168
80
rice
Rice, white, long-grain, cooked
167
0.668
668
129
0.28
0.076
0.075
0.087
null
0
365
27.9
0.4
0.05
2.66
0
0
null
10
1.19
35
81
salad
Lettuce, green leaf, raw (salad base)
38
0.152
152
387
39.53
5.939
18.953
10.683
null
5
1,262
9.01
0.1
7.84
0.83
15
0.2
null
17
0.44
46
82
sauce
Tomato products, canned, sauce
259
1.036
1,036
37
0.2
0.028
0.079
0.029
null
0
11
7.41
1.5
4.24
1.3
17
13.1
null
14
0.77
371
83
sausage
Pork sausage
146
0.584
584
304
26.53
8.801
3.712
11.894
0.211
72
636
0
0
0
15.09
13
0.7
1
9
1.11
248
84
seaweed
Seaweed, wakame, raw
85
0.34
340
38
0.26
0.087
0.056
0.035
null
0
89
8.43
0.8
0.5
2.38
68
11.2
null
91
3.85
184
85
shellfish
Mollusks, clam, mixed species, raw
169
0.676
676
94
3.91
0.798
1.077
1.041
null
31
288
6.14
0.7
1.7
8.45
62
5.5
null
36
5.89
224
86
shiitake
Mushrooms, shiitake, raw (pieces or slices)
153
0.612
612
56
0.22
0.055
0.031
0.068
null
0
4
14.39
2.1
4.08
1.56
0
0.3
8
3
0.44
117
87
shrimp
Crustaceans, shrimp, mixed species, raw
135
0.54
540
144
2.35
0.446
0.909
0.344
null
206
613
1.24
0
0
27.59
66
2
null
67
2.95
176
88
snow peas
Peas, edible-podded, raw
169
0.676
676
42
0.2
0.039
0.089
0.021
null
0
4
7.55
2.6
4
2.8
54
60
null
43
2.08
200
89
soup
Soup, chicken noodle, canned, prepared with equal volume water
262
1.048
1,048
32
0.9
0.225
0.28
0.345
null
2
398
4.66
0.2
0.71
1.46
29
0.6
null
7
0.36
52
90
soy
Soybeans, mature, cooked, boiled, without salt
182
0.728
728
52
1.92
0.233
0.766
0.383
null
0
55
4.93
1.3
0.5
4.48
31
0
0
38
1.1
124
91
spring onion
Onions, spring or scallions, raw (chopped)
106
0.424
424
32
0.19
0.032
0.074
0.027
null
0
16
7.34
2.6
2.33
1.83
50
18.8
null
72
1.48
276
92
steak
Ground beef, raw (proxy for steak density)
239
0.956
956
251
14.84
5.805
0.553
6.21
null
81
372
0
0
0
27.4
0
0
null
16
1.93
302
93
strawberry
Strawberries, raw
161
0.644
644
47
0.27
0.081
0.077
0.043
null
0
4
11.54
1.4
7.57
0.74
2
22.2
0
14
0.23
162
94
tea
Beverages, tea, brewed, prepared with tap water
250
1
1,000
1
0
0.002
0.004
0.001
null
0
3
0.3
0
0
0
0
0
null
0
0.02
37
95
tofu
Tofu, firm, prepared with calcium sulfate
266
1.064
1,064
55
2.7
0.357
1.55
0.522
null
0
5
2.9
0.1
1.31
4.8
0
0
null
31
0.82
180
96
tomato
Tomatoes, red, ripe, raw, year round average (chopped or sliced)
190
0.76
760
18
0.2
0.046
0.135
0.051
null
0
5
3.92
1.2
2.63
0.88
42
12.7
null
10
0.27
237
97
walnut
Nuts, walnuts, english
132
0.528
528
654
65.21
6.126
47.174
8.933
null
0
2
13.71
6.7
2.61
15.23
1
1.3
null
98
2.91
441
98
watermelon
Watermelon, raw (diced)
161
0.644
644
30
0.15
0.016
0.05
0.037
null
0
1
7.55
0.4
6.2
0.61
28
8.1
null
7
0.24
112
99
white button mushroom
Mushrooms, white, raw (sliced)
74
0.296
296
52
0.17
0
0
0
null
0
166
0.73
0
0.71
10.9
0
0
null
7
0.08
163
End of preview. Expand in Data Studio

FoodSeg103 Food Density & Nutrition Dataset

Dataset Summary

This dataset provides physical density and nutritional information for all 103 food ingredient classes defined in the FoodSeg103 benchmark — a large-scale food image segmentation dataset introduced in the ACM MM 2021 paper "A Large-Scale Benchmark for Food Image Segmentation" (Wu et al., 2021).

The goal is to enrich food segmentation models with physical and nutritional context, enabling downstream tasks such as calorie estimation, portion size calculation, and nutrient profiling from food images.


What is FoodSeg103?

FoodSeg103 is a large-scale benchmark for fine-grained food image segmentation containing 7,118 images annotated with 103 ingredient classes and pixel-wise segmentation masks. Each image contains an average of 6 ingredient labels. The dataset was curated from Recipe1M and annotated by human annotators.


This Dataset

For each of the 103 FoodSeg103 food classes, this dataset provides:

Physical Density (from aqua-calc.com / USDA)

Bulk/apparent density measured as grams per 250 mL metric cup, converted to standard units. Useful for estimating food mass from volume (e.g., from segmentation masks with depth estimation).

Nutritional Information (per 100g, from FatSecret)

18 nutrition columns sourced from FatSecret, which aggregates USDA FoodData Central data.


Dataset Structure

Columns

Column Type Description
class_id int FoodSeg103 class ID (0–102)
class_name string FoodSeg103 class label
food_description string USDA/aqua-calc food name for density lookup
g_per_metric_cup float Grams per 250 mL metric cup (bulk density raw)
density_g_per_cm3 float Density in g/cm³
density_kg_per_m3 float Density in kg/m³
calories_kcal float Energy (kcal per 100g)
fat_total_g float Total fat (g per 100g)
fat_saturated_g float Saturated fat (g per 100g)
fat_polyunsat_g float Polyunsaturated fat (g per 100g)
fat_monounsat_g float Monounsaturated fat (g per 100g)
fat_trans_g float Trans fat (g per 100g)
cholesterol_mg float Cholesterol (mg per 100g)
sodium_mg float Sodium (mg per 100g)
carb_g float Total carbohydrates (g per 100g)
fiber_g float Dietary fiber (g per 100g)
sugar_g float Total sugars (g per 100g)
protein_g float Protein (g per 100g)
vitamin_a_ug float Vitamin A (µg RAE per 100g)
vitamin_c_mg float Vitamin C (mg per 100g)
vitamin_d_ug float Vitamin D (µg per 100g)
calcium_mg float Calcium (mg per 100g)
iron_mg float Iron (mg per 100g)
potassium_mg float Potassium (mg per 100g)

Data Collection

Density Data

  • Source: aqua-calc.com (powered by USDA FoodData Central)
  • Method: Web scraping — each food matched to closest USDA entry
  • Unit: Bulk/apparent density (includes air gaps), not true solid density
  • Conversion: density (g/cm³) = g_per_metric_cup / 250

Nutrition Data

  • Source: FatSecret (aggregates USDA FoodData Central / SR Legacy)
  • Method: Web scraping — searched by class name, fetched 100g serving page
  • Unit: Per 100g of food (consistent across all classes)

Usage Examples

from datasets import load_dataset

ds = load_dataset("arunapb/food-density-nutrition", split="train")
df = ds.to_pandas()

# Estimate mass from segmented volume (cm³)
def estimate_mass(class_name, volume_cm3):
    row = df[df["class_name"] == class_name].iloc[0]
    return volume_cm3 * row["density_g_per_cm3"]

# Estimate calories from mass
def estimate_calories(class_name, mass_g):
    row = df[df["class_name"] == class_name].iloc[0]
    return (mass_g / 100) * row["calories_kcal"]

# Example: 200cm³ of apple
mass = estimate_mass("apple", 200)       # ~105.6g
cals = estimate_calories("apple", mass)  # ~54.9 kcal
print(f"Mass: {mass:.1f}g | Calories: {cals:.1f} kcal")

Intended Use Cases

  • Calorie estimation from food segmentation masks (volume → mass → calories)
  • Nutritional profiling of meals from food images
  • Portion size analysis using physical density and segmented area
  • Dataset enrichment — adding nutritional metadata to FoodSeg103 predictions
  • Food computing research — linking vision models to nutritional knowledge

Limitations

  • Density values are bulk/apparent densities and vary with food preparation and packing
  • Nutrition values are generic averages — actual values vary by variety, preparation, and ripeness
  • Some classes (e.g. other ingredients, hanamaki baozi) are broad and have approximate values

Citation

@inproceedings{wu2021foodseg103,
  title     = {A Large-Scale Benchmark for Food Image Segmentation},
  author    = {Xiongwei Wu and Xin Fu and Ying Liu and Ee-Peng Lim and Steven C.H. Hoi and Qianru Sun},
  booktitle = {Proceedings of the 29th ACM International Conference on Multimedia},
  year      = {2021},
  doi       = {10.1145/3474085.3475628}
}

License

  • This dataset: CC BY 4.0
  • FoodSeg103 class list: Apache 2.0 (Wu et al., 2021)
  • Nutritional & density data: USDA FoodData Central (public domain)
Downloads last month
63

Paper for arunapb/food-density-nutrition