Datasets:

aibota01 commited on
Commit
0744613
Β·
verified Β·
1 Parent(s): d3aa540

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -29
README.md CHANGED
@@ -10,67 +10,103 @@ tags:
10
  - central asian food dataset
11
  - object-detection
12
  paper: https://doi.org/10.1038/s41598-025-95770-9
13
- homepage: https://github.com/IS2AI/Central_Asian_Food_Scenes_Dataset # optional
14
  ---
15
 
16
 
17
 
18
- # Central_Asian_Food_Scenes_Dataset
19
- In this work, we propose the first Central Asia Food Scenes Dataset that contains 21,306 images with 69,856 instances across 239 food classes. To make sure that the dataset contains various food items, we took as a benchmark the ontology of Global Individual Food Tool developed by Food and Agriculture Organization (FAO) together with the World Health Organization (WHO) [1]. The dataset contains food items across 18 coarse classes: vegetables, baked flower-based products, cooked dishes, fruits, herbs, meat dishes, desserts, salads, sauces, drinks, dairy, fast-food, soups, sides, nuts, pickled and fermented food, egg product, and cereals.
20
 
21
- The dataset contains open source web-scraped images from the search engines (15,939 images) (i.e., Google, YouTube, and Yandex) and our own collected food images from everyday life (2,324 images). To additionally extend the number of instances of the underrepresented classes, we have scraped open-source videos and extracted frames at a rate one frame per second (3,043 images). The dataset has been checked and cleaned for duplicates using the Python Hash Image library. Furthermore, we have also filtered out images less than 30 kB in size and replaced them by performing additional iterative data scraping and duplicate check to make sure the high quality of the dataset.
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  The dataset is unbalaced. The statistics across high-level 18 classes is shown on Figure below.
24
 
25
- <img src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/statistics.png" width="800" height="900">
 
 
 
 
 
 
 
 
26
 
27
- Sample Food scenes annotated images are shown below. Figures illustrate annotated food scenes samples based on our annotation rules that we have followed to create the dataset: the liquid objects such as beverages and soups are annotated together with the dish itself (see upper image), solid food items are annotated without the plate, in case one class is located on top of another class the annotations are made as shown on lower image; in case one class is obscured by another class and the rest of the background class is not visible we highlight only the visible part (see `Salad leaves' class annotation on the lower image.
28
 
29
- <img src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/protocol_1.png" width="800" height="650">
30
- <img src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/protocol_2.png" width="800" height="680">
31
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
 
33
 
34
- # Dataset split across the folds
35
 
36
  |Fold| Train| Valid| Test|
37
  |----|-----------------|-----------------|--------------------|
38
  |images|17,046|2,084|2,176|
39
  |instances|55,422|7,062|7,381|
40
 
 
 
 
41
 
42
- # Training results
43
 
44
- To illustrate the performance of different classification models on CAFD we have trained different models. We used the largest publicly available fine-grained dataset Food1K [[1]](#1) that contains 1,000 food classes to evaluate the performance of classifier with the 1,042 food categories.
 
 
 
 
 
 
45
 
46
- <img src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/table_results.png" width="1200" height="290">
47
 
48
- # Pre-trained models
49
 
50
  Pre-trained weights of the YOLOv8 model can be downloaded using these links:
51
 
52
- ## YOLOv8n:
53
- https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8n.pt
54
-
55
- ## YOLOv8s:
56
- https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8s.pt
57
 
58
- ## YOLOv8m:
59
- https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8m.pt
60
 
61
- ## YOLOv8l:
62
- https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8l.pt
63
 
64
- ## YOLOv8x:
65
- https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8x.pt
66
 
 
67
 
68
- ## References
69
- <a id="1">[1]</a>
70
- European Commission: Impact assessment on measures addressing food waste to complete swd (2014) 207 regarding the review of EU waste management target (2014). Accessed 5-22-2024.
71
 
 
72
 
73
- # In case of using our dataset and/or pre-trained models, please cite our work:
74
  ```bibtex
75
  @article{Karabay2025,
76
  author = {Karabay, Aknur and Varol, Huseyin Atakan and Chan, Mei Yen},
@@ -85,5 +121,7 @@ European Commission: Impact assessment on measures addressing food waste to comp
85
  issn = {2045-2322}
86
  }
87
  ```
88
- [πŸ“– View the publication](https://doi.org/10.1038/s41598-025-95770-9)
 
 
89
 
 
10
  - central asian food dataset
11
  - object-detection
12
  paper: https://doi.org/10.1038/s41598-025-95770-9
13
+ homepage: https://github.com/IS2AI/Central_Asian_Food_Scenes_Dataset
14
  ---
15
 
16
 
17
 
18
+ # Central Asian Food Scenes Dataset
 
19
 
20
+ In this work, we propose the first Central Asia Food Scenes Dataset that contains **21,306 images** with **69,856 instances** across **239 food classes**. To make sure that the dataset contains various food items, we took as a benchmark the ontology of Global Individual Food Tool developed by Food and Agriculture Organization (FAO) together with the World Health Organization (WHO) [1]. The dataset contains food items across **18 coarse classes**:
21
+ πŸ… Vegetables β€’ πŸ₯– Baked goods β€’ 🍲 Cooked dishes β€’ 🍎 Fruits β€’ 🌿 Herbs β€’ πŸ– Meat dishes β€’ 🍰 Desserts β€’ πŸ₯— Salads β€’ πŸ₯« Sauces β€’ πŸ₯€ Drinks β€’ πŸ§€ Dairy β€’ πŸ” Fast food β€’ 🍜 Soups β€’ 🍟 Sides β€’ πŸ₯œ Nuts β€’ πŸ₯’ Pickled & fermented β€’ πŸ₯š Egg products β€’ 🌾 Cereals
22
+
23
+ The images come from:
24
+ - πŸ€– **15,939** web-scraped images (i.e., Google, YouTube, Yandex)
25
+ - πŸ“Έ **2,324** everyday-life photos
26
+ - πŸŽ₯ **3,043** video frames (1 fps)
27
+
28
+ The dataset has been checked and cleaned for duplicates using the Python Hash Image library. Furthermore, we have also filtered out images less than 30 kB in size and replaced them by performing additional iterative data scraping and duplicate check to make sure the **high quality** of the dataset.
29
+
30
+ ---
31
+
32
+ ## πŸ“Š Class Balance
33
 
34
  The dataset is unbalaced. The statistics across high-level 18 classes is shown on Figure below.
35
 
36
+ <div align="center">
37
+ <img
38
+ src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/statistics.png"
39
+ alt="Class distribution"
40
+ width="700"
41
+ >
42
+ </div>
43
+
44
+ ---
45
 
46
+ ## πŸ–ΌοΈ Annotation Examples
47
 
48
+ Sample Food scenes annotated images are shown below. Figures illustrate annotated food scenes samples based on our annotation rules that we have followed to create the dataset: the liquid objects such as beverages and soups are annotated together with the dish itself (see upper image), solid food items are annotated without the plate, in case one class is located on top of another class the annotations are made as shown on lower image; in case one class is obscured by another class and the rest of the background class is not visible we highlight only the visible part (see `Salad leaves' class annotation on the lower image).
 
49
 
50
+ <div align="center">
51
+ <img
52
+ src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/protocol_1.png"
53
+ alt="Protocol 1"
54
+ width="700"
55
+ /><br><br>
56
+ <img
57
+ src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/protocol_2.png"
58
+ alt="Protocol 2"
59
+ width="700"
60
+ >
61
+ </div>
62
 
63
+ ---
64
 
65
+ ## πŸ”€ Dataset Splits
66
 
67
  |Fold| Train| Valid| Test|
68
  |----|-----------------|-----------------|--------------------|
69
  |images|17,046|2,084|2,176|
70
  |instances|55,422|7,062|7,381|
71
 
72
+ ---
73
+
74
+ ## πŸ“ˆ Training Results
75
 
76
+ Training results of different versions of the YOLOv8 model on the Central Asian Food Scenes Dataset, model sizes, and inference times.
77
 
78
+ <div align="center">
79
+ <img
80
+ src="https://raw.githubusercontent.com/IS2AI/Central_Asian_Food_Scenes_Dataset/main/figures/table_results.png"
81
+ alt="Training results"
82
+ width="800"
83
+ >
84
+ </div>
85
 
86
+ ---
87
 
88
+ ## πŸ› οΈ Pre-trained Models
89
 
90
  Pre-trained weights of the YOLOv8 model can be downloaded using these links:
91
 
92
+ - **YOLOv8n**: https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8n.pt
93
+ - **YOLOv8s**: https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8s.pt
94
+ - **YOLOv8m**: https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8m.pt
95
+ - **YOLOv8l**: https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8l.pt
96
+ - **YOLOv8x**: https://issai.nu.edu.kz/wp-content/themes/issai-new/data/models/CAFSD/yolov8x.pt
97
 
98
+ ---
 
99
 
100
+ ## πŸ“– References
 
101
 
102
+ [1] European Commission: Impact assessment on measures addressing food waste to complete swd (2014) 207 regarding the review of EU waste management target (2014). Accessed 5-22-2024.
 
103
 
104
+ ---
105
 
106
+ ## πŸ“ Citation
 
 
107
 
108
+ In case of using our dataset and/or pre-trained models, please cite our work:
109
 
 
110
  ```bibtex
111
  @article{Karabay2025,
112
  author = {Karabay, Aknur and Varol, Huseyin Atakan and Chan, Mei Yen},
 
121
  issn = {2045-2322}
122
  }
123
  ```
124
+
125
+ [πŸ“š View the publication](https://doi.org/10.1038/s41598-025-95770-9)
126
+
127