Introduction #
The MSD: Mobile Phone Defect Segmentation Dataset aims to alleviate the scarcity of data in the realm of industrial quality control. It comprises three distinct surface defect types: oil, scratch, and stain, with 400 images for each defect, totaling 1200 images. These images are captured using an industrial camera at a resolution of 1920×1080 and follow the PASCAL VOC dataset format. Furthermore, the dataset includes 20 supplementary non-defective images, which can be valuable for unsupervised setting.
Surface defect detection stands as a common yet demanding task with the vital need for accuracy and real-time capabilities. Nonetheless, prevailing segmentation networks grapple with challenges related to defect boundary intricacies, local similarities among diverse defects, and the often meager contrast between defects and their background. Addressing these issues, the authors introduce FDSNet network both with the MSD dataset.
Summary #
MSD: Mobile Phone Defect Segmentation Dataset is a dataset for instance segmentation, semantic segmentation, and object detection tasks. It is used in the surface defect detection domain.
The dataset consists of 1220 images with 3104 labeled objects belonging to 3 different classes including stain, oil, and scratch.
Images in the MSD dataset have pixel-level instance segmentation annotations. Due to the nature of the instance segmentation task, it can be automatically transformed into a semantic segmentation (only one mask for every class) or object detection (bounding boxes for every object) tasks. There are 20 (2% of the total) unlabeled images (i.e. without annotations). There are no pre-defined train/val/test splits in the dataset. Additionally, images without defects are marked with good tag. The dataset was released in 2021 by the Peking University.
Explore #
MSD dataset has 1220 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.
Class balance #
There are 3 annotation classes in the dataset. Find the general statistics and balances for every class in the table below. Click any row to preview images that have labels of the selected class. Sort by column to find the most rare or prevalent classes.
Class ㅤ | Images ㅤ | Objects ㅤ | Count on image average | Area on image average |
---|---|---|---|---|
stain➔ mask | 422 | 1172 | 2.78 | 0.06% |
scratch➔ mask | 400 | 1375 | 3.44 | 0.38% |
oil➔ mask | 400 | 557 | 1.39 | 1.86% |
Co-occurrence matrix #
Co-occurrence matrix is an extremely valuable tool that shows you the images for every pair of classes: how many images have objects of both classes at the same time. If you click any cell, you will see those images. We added the tooltip with an explanation for every cell for your convenience, just hover the mouse over a cell to preview the description.
Images #
Explore every single image in the dataset with respect to the number of annotations of each class it has. Click a row to preview selected image. Sort by any column to find anomalies and edge cases. Use horizontal scroll if the table has many columns for a large number of classes in the dataset.
Object distribution #
Interactive heatmap chart for every class with object distribution shows how many images are in the dataset with a certain number of objects of a specific class. Users can click cell and see the list of all corresponding images.
Class sizes #
The table below gives various size properties of objects for every class. Click a row to see the image with annotations of the selected class. Sort columns to find classes with the smallest or largest objects or understand the size differences between classes.
Class | Object count | Avg area | Max area | Min area | Min height | Min height | Max height | Max height | Avg height | Avg height | Min width | Min width | Max width | Max width |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scratch mask | 1375 | 0.11% | 0.28% | 0% | 5px | 0.46% | 369px | 34.17% | 157px | 14.55% | 3px | 0.16% | 445px | 23.18% |
stain mask | 1172 | 0.02% | 0.06% | 0% | 5px | 0.46% | 56px | 5.19% | 26px | 2.41% | 5px | 0.26% | 59px | 3.07% |
oil mask | 557 | 1.34% | 15.77% | 0% | 9px | 0.83% | 653px | 60.46% | 175px | 16.19% | 10px | 0.52% | 865px | 45.05% |
Spatial Heatmap #
The heatmaps below give the spatial distributions of all objects for every class. These visualizations provide insights into the most probable and rare object locations on the image. It helps analyze objects' placements in a dataset.
Objects #
Table contains all 3104 objects. Click a row to preview an image with annotations, and use search or pagination to navigate. Sort columns to find outliers in the dataset.
Object ID ㅤ | Class ㅤ | Image name click row to open | Image size height x width | Height ㅤ | Height ㅤ | Width ㅤ | Width ㅤ | Area ㅤ |
---|---|---|---|---|---|---|---|---|
1➔ | oil mask | Oil_0161.jpg.png | 1080 x 1920 | 378px | 35% | 497px | 25.89% | 3.99% |
2➔ | oil mask | Oil_0390.jpg.png | 1080 x 1920 | 101px | 9.35% | 68px | 3.54% | 0.26% |
3➔ | oil mask | Oil_0390.jpg.png | 1080 x 1920 | 230px | 21.3% | 133px | 6.93% | 1.14% |
4➔ | scratch mask | Scr_0177.jpg.png | 1080 x 1920 | 17px | 1.57% | 192px | 10% | 0.07% |
5➔ | scratch mask | Scr_0177.jpg.png | 1080 x 1920 | 296px | 27.41% | 270px | 14.06% | 0.13% |
6➔ | oil mask | Oil_0282.jpg.png | 1080 x 1920 | 138px | 12.78% | 115px | 5.99% | 0.59% |
7➔ | stain mask | Sta_0015.jpg.png | 1080 x 1920 | 24px | 2.22% | 18px | 0.94% | 0.01% |
8➔ | stain mask | Sta_0015.jpg.png | 1080 x 1920 | 27px | 2.5% | 26px | 1.35% | 0.02% |
9➔ | stain mask | Sta_0015.jpg.png | 1080 x 1920 | 21px | 1.94% | 23px | 1.2% | 0.02% |
10➔ | scratch mask | Scr_0365.jpg.png | 1080 x 1920 | 31px | 2.87% | 341px | 17.76% | 0.13% |
License #
MSD: Mobile Phone Defect Segmentation Dataset is under GNU GPL 3.0 license.
Citation #
If you make use of the Mobile Phone Defect Segmentation data, please cite the following reference:
@inproceedings{zhang2022fdsnet,
title={FDSNeT: An Accurate Real-Time Surface Defect Segmentation Network},
author={Zhang, Jian and Ding, Runwei and Ban, Miaoju and Guo, Tianyu},
booktitle={ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
pages={3803--3807},
year={2022},
organization={IEEE}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-mobile-phone-defect-segmentation-dataset,
title = { Visualization Tools for MSD Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/mobile-phone-defect-segmentation } },
url = { https://datasetninja.com/mobile-phone-defect-segmentation },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { nov },
note = { visited on 2024-11-21 },
}
Download #
Dataset MSD can be downloaded in Supervisely format:
As an alternative, it can be downloaded with dataset-tools package:
pip install --upgrade dataset-tools
… using following python code:
import dataset_tools as dtools
dtools.download(dataset='MSD', dst_dir='~/dataset-ninja/')
Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.
The data in original format can be downloaded here.
Disclaimer #
Our gal from the legal dep told us we need to post this:
Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.
You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.