mobilemold / README.md
nphamdinh's picture
Update README.md
083feca verified
---
license: cc-by-nc-4.0
task_categories:
- image-classification
tags:
- biology
- chemistry
size_categories:
- 1K<n<10K
---
# MobileMold: A Smartphone-Based Microscopy Dataset for Food Mold Detection
A smartphone-microsope-based dataset with 4941 annotated images for food mold detection
## 🌟 About MobileMold
**MobileMold** is a comprehensive dataset comprising **4,941 annotated images** for food mold detection, captured using smartphones with various clip-on microscope attachments.
The dataset addresses the growing need for accessible, low-cost food safety monitoring by leveraging smartphone-based microscopy. This enables research and development in computer vision applications for mold detection on various food surfaces.
---
### πŸ“Š Dataset Overview
- **Total Images:** 4,941
- **Annotations:** Food Type and Mold Label
- **Food Types:** 11 categories (carrot, orange, creamcheese, tomato, toast, raspberry, mixed bread, blackberry, blueberry, cheese, onion)
- **Microscope Types:** 3 different clip-on smartphone microscopes (30x-100x magnification)
- **Smartphones:** Images captured with 3 different smartphone models
---
### πŸ“ Dataset Structure
```
MobileMold/
β”œβ”€β”€ metadata.csv # Complete dataset metadata (4,941 entries)
β”œβ”€β”€ train_metadata.csv # Training split metadata
β”œβ”€β”€ val_metadata.csv # Validation split metadata
β”œβ”€β”€ test_metadata.csv # Test split metadata
β”œβ”€β”€ original/ # Original microscope images (as captured)
β”‚ β”œβ”€β”€ L10 - 48.jpeg
β”‚ β”œβ”€β”€ L10 - 25.jpeg
β”‚ β”œβ”€β”€ L10 - 161.jpeg
β”‚ └── ... (4,941 files total)
└── cropped_resized/ # Preprocessed images (same filenames)
β”œβ”€β”€ L10 - 48.jpeg # Cropped to mold region & resized
β”œβ”€β”€ L10 - 25.jpeg
β”œβ”€β”€ L10 - 161.jpeg
└── ... (4,941 files, 1:1 mapping to original/)
```
---
### πŸ“Š Dataset Composition
### Image Versions
1. **`original/`** - Raw images as captured by smartphone microscopes
- Various resolutions (depending on smartphone and microscope)
- Full field-of-view including background
- Unprocessed image data
2. **`cropped_resized/`** - Processed images
- Cropped to focus on mold regions
- Resized to consistent dimensions
- Same filenames as original folder
### Metadata Format
Each CSV file contains the following columns:
| Column | Description | Values/Examples |
|--------|-------------|-----------------|
| `filename` | Image filename (same in both folders) | `L10 - 48.jpeg` |
| `mold` | Binary indicator of mold presence | `True` / `False` |
| `food` | Type of food in image | `carrot`, `bread`, `cheese`, `tomato`, etc. |
| `phone` | Smartphone model used | `iPhone SE 2nd Generation`, etc. |
| `microscope` | Clip-on microscope model | `Apexel 100x`, etc. |
**Example metadata entry:**
```csv
filename,mold,food,phone,microscope
L10 - 48.jpeg,True,carrot,iPhone SE 2nd Generation,Apexel 100x
```
## FreshLens Mobile App
The [freshlens-app](https://github.com/MobileMold/freshlens-app) repository contains a Flutter-based mobile app designed for consumer-facing demonstrations and can be used in conjunction with a hosted model. Using a smartphone microscope attachment, users can capture or import images of food. The app then displays the probability that the food is moldy.
## Citation
If you use this useful for your research, please cite this as:
```
@article{Pham2026MobileMold,
author = {Dinh Nam Pham and
Leonard Prokisch and
Bennet Meyer and
Jonas Thumbs},
title = {MobileMold: A Smartphone-Based Microscopy Dataset for Food Mold Detection},
journal = {arXiv eprint arXiv:2603.01944},
year = {2026},
}
```
## πŸ“„ License
This dataset is available under the terms of the **[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)**