Datasets:
Behdad Jamshidi commited on
Commit ·
94d9e78
1
Parent(s): ec31667
Improve Hugging Face dataset card
Browse files
README.md
CHANGED
|
@@ -1,57 +1,144 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
##
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
---
|
| 12 |
|
| 13 |
-
## Dataset
|
| 14 |
|
| 15 |
-
|
|
| 16 |
|---|---|
|
| 17 |
-
|
|
| 18 |
-
|
|
| 19 |
-
|
|
| 20 |
-
|
|
| 21 |
-
|
|
| 22 |
-
|
|
| 23 |
-
|
|
|
|
|
|
|
|
| 24 |
| License | MIT |
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
-
https://www.sciencedirect.com/science/article/pii/S1568494623008165
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
-
https://ieeexplore.ieee.org/abstract/document/10643983
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
```bibtex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
@article{jamshidi2023metaverse,
|
| 53 |
title={Metaverse and microorganism digital twins: A deep transfer learning approach},
|
| 54 |
-
author={Jamshidi,
|
| 55 |
journal={Applied Soft Computing},
|
| 56 |
volume={147},
|
| 57 |
pages={110798},
|
|
@@ -60,40 +147,13 @@ If you use this dataset in any research paper, project, book, thesis, or any oth
|
|
| 60 |
}
|
| 61 |
```
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
## 🤖 Working with the Dataset (ML/AI)
|
| 66 |
|
| 67 |
-
|
| 68 |
-
- **Directory layout**: One folder per class label (33 folders), each containing the class images.
|
| 69 |
-
- **Recommended frameworks**: PyTorch (`torchvision.datasets.ImageFolder`) or TensorFlow/Keras (`image_dataset_from_directory`) both work naturally with this per-class folder layout.
|
| 70 |
-
- **Class imbalance**: 2,033 images across 33 classes averages ~62 images per class. Expect imbalance; use weighted loss or data augmentation accordingly.
|
| 71 |
-
- **Preprocessing**: Standard ImageNet normalization is a reasonable starting point for transfer learning on these Gram-stained RGB images.
|
| 72 |
-
- **Train/val/test splits**: No official split is defined. Stratified splitting to preserve class proportions is recommended, consistent with published papers.
|
| 73 |
-
|
| 74 |
-
---
|
| 75 |
-
|
| 76 |
-
## 🗂️ Repository Structure
|
| 77 |
-
|
| 78 |
-
```
|
| 79 |
-
Bacteria-2033Images-33Types-dataset/
|
| 80 |
-
├── README.md # Dataset description, download link, citation info
|
| 81 |
-
└── LICENSE # MIT License
|
| 82 |
-
```
|
| 83 |
-
|
| 84 |
-
The image data (3.4 GB) is distributed via Google Drive, not stored in this repository.
|
| 85 |
-
|
| 86 |
-
---
|
| 87 |
-
|
| 88 |
-
## 🛠️ Development Workflow (for Contributors)
|
| 89 |
-
|
| 90 |
-
- Work on a feature branch, never directly on `main`.
|
| 91 |
-
- All changes in this repository are documentation-only (no code or binary data).
|
| 92 |
-
- Do not commit image data or large binary files.
|
| 93 |
-
- Push the feature branch and open a pull request into `main` when ready.
|
| 94 |
-
|
| 95 |
-
---
|
| 96 |
|
| 97 |
## Maintainer
|
| 98 |
|
| 99 |
-
Mohammad Behdad Jamshidi
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: Bacteria 2033 Images 33 Types Data
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-classification
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- bacteria
|
| 10 |
+
- microscopy
|
| 11 |
+
- microbiology
|
| 12 |
+
- biomedical
|
| 13 |
+
- medical-imaging
|
| 14 |
+
- gram-stain
|
| 15 |
+
- computer-vision
|
| 16 |
+
- image-classification
|
| 17 |
+
- transfer-learning
|
| 18 |
+
- digital-twin
|
| 19 |
+
size_categories:
|
| 20 |
+
- 1K<n<10K
|
| 21 |
+
viewer: false
|
| 22 |
+
---
|
| 23 |
|
| 24 |
+
# Bacteria 2033 Images 33 Types Data
|
| 25 |
|
| 26 |
+
## Dataset Summary
|
| 27 |
|
| 28 |
+
**Bacteria 2033 Images 33 Types Data** is a microscopy image dataset for bacterial image classification, transfer learning, and biomedical computer vision research. It contains **2,033 RGB microscopy images** representing **33 bacterial types**, with images organized by class label.
|
| 29 |
|
| 30 |
+
The dataset is intended for research on microorganism recognition, clinical microscopy image analysis, deep transfer learning, biological digital twins, and related machine learning workflows.
|
| 31 |
|
| 32 |
+

|
| 33 |
|
| 34 |
+
## Dataset Details
|
| 35 |
|
| 36 |
+
| Field | Description |
|
| 37 |
|---|---|
|
| 38 |
+
| Dataset type | Image classification |
|
| 39 |
+
| Modality | RGB microscopy images |
|
| 40 |
+
| Number of images | 2,033 |
|
| 41 |
+
| Number of classes | 33 bacterial types |
|
| 42 |
+
| Annotation | Class labels assigned by laboratory experts |
|
| 43 |
+
| Staining | Gram-stained microscopy images |
|
| 44 |
+
| Source material | Clinical sample imagery, including blood, urine, and skin samples |
|
| 45 |
+
| Repository data format | One folder per bacterial class |
|
| 46 |
+
| Download size | Approximately 3.4 GB |
|
| 47 |
| License | MIT |
|
| 48 |
|
| 49 |
+
## Access and Download
|
| 50 |
|
| 51 |
+
The image archive is distributed through Google Drive:
|
| 52 |
|
| 53 |
+
[Download the dataset archive](https://drive.google.com/file/d/1aR7Dz11wKV3t7awnnnO32UE_37MYF6wX/view?usp=sharing)
|
| 54 |
|
| 55 |
+
After downloading, extract the archive locally. The expected layout is:
|
| 56 |
|
| 57 |
+
```text
|
| 58 |
+
Bacteria-2033Images-33Types-dataset/
|
| 59 |
+
|-- class_1/
|
| 60 |
+
| |-- image_001.jpg
|
| 61 |
+
| `-- ...
|
| 62 |
+
|-- class_2/
|
| 63 |
+
| |-- image_001.jpg
|
| 64 |
+
| `-- ...
|
| 65 |
+
`-- ...
|
| 66 |
+
```
|
| 67 |
|
| 68 |
+
This folder-per-class structure is compatible with common image-classification loaders such as:
|
|
|
|
| 69 |
|
| 70 |
+
- PyTorch: `torchvision.datasets.ImageFolder`
|
| 71 |
+
- TensorFlow/Keras: `tf.keras.utils.image_dataset_from_directory`
|
| 72 |
|
| 73 |
+
## Intended Uses
|
|
|
|
| 74 |
|
| 75 |
+
This dataset may be used for:
|
| 76 |
+
|
| 77 |
+
- Bacterial species or bacterial type image classification
|
| 78 |
+
- Deep transfer learning and feature extraction experiments
|
| 79 |
+
- Microorganism digital twin research
|
| 80 |
+
- Microscopy image analysis
|
| 81 |
+
- Biomedical computer vision benchmarking
|
| 82 |
+
- Federated learning and distributed learning experiments where local image folders are used as client data
|
| 83 |
+
|
| 84 |
+
## Out-of-Scope Uses
|
| 85 |
+
|
| 86 |
+
This dataset is not intended to be used as a standalone clinical diagnostic system. Models trained on this dataset should not be deployed for clinical decision-making without independent validation, regulatory review, and domain expert oversight.
|
| 87 |
+
|
| 88 |
+
## Recommended Machine Learning Setup
|
| 89 |
+
|
| 90 |
+
No official train, validation, or test split is provided in the repository. For reproducible research, users should report:
|
| 91 |
+
|
| 92 |
+
- The exact train, validation, and test split strategy
|
| 93 |
+
- Random seeds
|
| 94 |
+
- Image resizing and normalization settings
|
| 95 |
+
- Data augmentation methods
|
| 96 |
+
- Class balancing or reweighting strategy
|
| 97 |
+
- Model architecture and pretrained weights, if any
|
| 98 |
+
|
| 99 |
+
Because 2,033 images are distributed across 33 classes, users should check for class imbalance and consider stratified splitting, augmentation, weighted losses, or balanced sampling.
|
| 100 |
+
|
| 101 |
+
## Data Preprocessing
|
| 102 |
+
|
| 103 |
+
A typical transfer-learning preprocessing workflow is:
|
| 104 |
+
|
| 105 |
+
1. Extract the archive.
|
| 106 |
+
2. Load images with a folder-per-class image loader.
|
| 107 |
+
3. Resize images to the model input size.
|
| 108 |
+
4. Normalize RGB channels using the selected model's expected preprocessing.
|
| 109 |
+
5. Use stratified train, validation, and test splits.
|
| 110 |
+
|
| 111 |
+
## Limitations
|
| 112 |
+
|
| 113 |
+
- The dataset size is moderate for 33-class classification, so models may overfit without augmentation or transfer learning.
|
| 114 |
+
- Class imbalance may affect evaluation metrics.
|
| 115 |
+
- Results may depend strongly on image preprocessing, magnification, staining variation, and split strategy.
|
| 116 |
+
- The dataset should be validated on external microscopy data before use in any applied biomedical setting.
|
| 117 |
+
|
| 118 |
+
## Citation Requirement
|
| 119 |
+
|
| 120 |
+
If you use this dataset, derivative labels, trained models, figures, benchmarks, or results produced from this dataset, you **must cite both** of the following papers:
|
| 121 |
|
| 122 |
+
1. M. B. Jamshidi, D. T. Hoang, D. N. Nguyen, D. Niyato, and M. E. Warkiani, "Revolutionizing biological digital twins: Integrating internet of bio-nano things, convolutional neural networks, and federated learning," *Computers in Biology and Medicine*, vol. 189, p. 109970, 2025.
|
| 123 |
|
| 124 |
+
2. M. B. Jamshidi, S. Sargolzaei, S. Foorginezhad, and O. Moztarzadeh, "Metaverse and microorganism digital twins: A deep transfer learning approach," *Applied Soft Computing*, vol. 147, p. 110798, 2023.
|
| 125 |
+
|
| 126 |
+
### BibTeX
|
| 127 |
|
| 128 |
```bibtex
|
| 129 |
+
@article{jamshidi2025revolutionizing,
|
| 130 |
+
title={Revolutionizing biological digital twins: Integrating internet of bio-nano things, convolutional neural networks, and federated learning},
|
| 131 |
+
author={Jamshidi, M. B. and Hoang, D. T. and Nguyen, D. N. and Niyato, D. and Warkiani, M. E.},
|
| 132 |
+
journal={Computers in Biology and Medicine},
|
| 133 |
+
volume={189},
|
| 134 |
+
pages={109970},
|
| 135 |
+
year={2025},
|
| 136 |
+
publisher={Elsevier}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
@article{jamshidi2023metaverse,
|
| 140 |
title={Metaverse and microorganism digital twins: A deep transfer learning approach},
|
| 141 |
+
author={Jamshidi, M. B. and Sargolzaei, S. and Foorginezhad, S. and Moztarzadeh, O.},
|
| 142 |
journal={Applied Soft Computing},
|
| 143 |
volume={147},
|
| 144 |
pages={110798},
|
|
|
|
| 147 |
}
|
| 148 |
```
|
| 149 |
|
| 150 |
+
## License
|
|
|
|
|
|
|
| 151 |
|
| 152 |
+
This dataset is released under the MIT License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
## Maintainer
|
| 155 |
|
| 156 |
+
Mohammad Behdad Jamshidi
|
| 157 |
+
|
| 158 |
+
- Hugging Face: [MBJamshidi](https://huggingface.co/MBJamshidi)
|
| 159 |
+
- GitHub: [MBJamshidi](https://github.com/MBJamshidi)
|