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.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/mobile-phone-defect-segmentation/main/visualizations/poster.png?width=1200)
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.
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/D/q/O7/iO95XFpqxKAnBov2YqbsWXhqORyN5VwUPwqXemoPXGKCmdKfhUN0AOxl92mU5OuMxlafvHX9rzy6Ek54TeuXQLsU3f4zaBbmEKDulXWYkDKNMgBqwQVoO3OLIgrF.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/1/y/eh/GbxR1OjG8ArvmKhfSNQWjus5dvhZm19oXPNIhzQurU5JsAm0ysKuBSzHCHQaQt69nw86ruKOU0Dwe9v7JuglXjl7QDoJDX7XW5gVFHCqYV1KpwpSWtgNATm4VoA0.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/u/o/q6/6QAxjqhBxIasU493BeggR9zaVqATmCTHyHjyY5pe7kftN22y9tJXd3hcFBf51Ko6KI88d4IW5zLEd0NsqP9mkKbbZheTBK0qRPwfRYtx4cm9pGW6Nz8xHed5Qt7T.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/y/H/KA/cQdH2LuqkRhYHhKrRdqNWqaFVpmCB8mDTOPGn7WI4xi0BQ5SMeXgATJYoAPwlXG6M3RWPpSCcw55fuvQvdph925dkdPcXENbbDF5QWUltivXhdMkZbXDcU8sPdaC.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/2/L/Ba/OupxkWSMozOIQkT0yWYbR8YRfbk6madfdbOwfzLLj3R1hbhwJuHCnXQ3sFkKVUUdm0KNHsO7EYCKYOmqQ3oaE01Mchd3M8wbV0fy3B1dIU0CWGlYgZuXEl9AyKgy.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/J/o/7i/uhGyV61Zoe39zg44OKHpXojN9viO3bRGOSTCeL1gPrv9iumyNgc3exIXCpyw38uPcv9RocUKuBkDeqh5qKijyIryAjThqie54HUlOVxYC02dqk9iVXqbc5slAw9B.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/s/KK/h5Evu9LeD5yp4vT4mY6VjliWn5JkXp7GUidAa8xJDqRln6E2gCLf3iblDu1fEDs1yjtkYqiDUMEgloQkCGSlzt9cbpNNIqkyJhjRUDovfOYLwwkNMLZh2X5E92Js.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/S/m/Oz/yPDd17SRpVtxb8LCw26xQFAfdBxCvloyKsiJSjLXoPnA6pMJaji3LEVOa3Hw9gen9vlP3rgjcGnGeeh6RhfsykTNr17EFNdyGI6HzBuhYYA4wOjkHuybYPvlPO0t.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/z/O/W9/NdgpiPhkV7lcTJO6PhVY3OZBGADIxTdtyxQ9hNGcHkBH4Sk4L3mlbpxUaVbx2VSSyKOrrYTdSi51s2eA9Rlw6HE1qlaD6bBbX1uFA0DBlNOu9jTKd8LDtGN49oJT.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/T/OF/u3M5iRBqCsbOaiLkxntdJg4vwOR71jRzbMAvefPUfkISWjRIhlHehckZx6InAxPyYlZtqn3dOZZsxwlv1GyUVMpaKHc2PgFoUEWufjC3c1Lw0IOrpNkWSak6FTmH.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/e/3X/fWqJcxvc5sF0K2JIvGpb0FV4URmcgthC3OjwcmAdXrVlcjvEtDSRiDoUacXmOd20r9uviQOcMTtkC4TQVm5oemuRPqUELPQuLlUTgYQowvu5YE3L498iGxj5lkps.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/C/W/F7/VuGaGY1e6OzcCZ0u0pD2FxTbPlYIGd3mzqpf1729ItMCCcxWncuznx0PYVm9368tmgKq9DuQTOM9ffYCm29PVxWyQH4FauODd1ffHgcQSSaoS90AsPTksrtCWWMu.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/F/Ty/9GEFpyaO67gVgITvzJaHwOuOqCZ1WFi1FodeTqB90J5KEhnH1Dfsmt352uG9PGD9Gllq2jQtp0POWFrodZ9D4xMvh4LS5hp7UfLzuL11tCwrbvshGd9wFrUHuakV.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/W/M/Fp/WKfUHldaigQX1GzV7gGkDnCn1p8VwqbdarhaTEshmix1lkZVC6yZLbuPxU39f1Adx0P4kx12kq8YT84G1LQeBeW1eHgExOHafz0cBHimchMfg31CNoAkce0WdSFt.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/1/F/Zi/cWEbdlJzza00NZxvT4mjmXBQRag390qoyMTmH9RDhFjBjTmD3ltjnESM88miUtC8nmw8MdO8WVYMhfmNyYe8E1YJp8EDNwmMAFr7J8LJJYcV8jLUbc8aqy7J1mI9.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/W/Qr/JwnlmNdALCo7COQu3SZovvPEI93RlAa0gcl1KkssUK0NhpYnjVNxLqlwCIzE2Ueuv7stI0FRG9Lx8eiYXDkIdJ8hPYoMAebVvQmt1Muv8vrJFDN2jZxgllRVwN3D.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/R/QV/0ZD3N8Ck6OczoBqm3g3kpo4u5MlfmMBfDYHhN66FQxby9oKitgl6eit8uU2u6PMR6MUFjSfeJ6y5ZUFLuk4tN1sHqHi82I4289hsNhifYsktlQtmZKfhPCYUBRm5.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/w/U/C4/n3tADw4IJvnIFYPT5l8BVAV8qL07wNytn7FLTDzi911vsGR3yUxNALWCmrzwQ3ifpZAxXkW5pORr4XD87uzKhIqxM2s0Uc3XAGEWmnK5Y69RWtjA23bNEPgM0sxB.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/a/d/Xc/vnK0deOS4Goyd02SB9Cozqk7kUXLyt01pf6av0mozHHRpkKIWqm6w7ZJzyCupmp715tdDcirFdPqIWo0jwZK6IlTj8XjBx2caEiRStslAsGmcyIFbhldbvA0ykEg.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/2/S3/fng8tzRkXeCHPsc5Q8noOWffemgOchEVbtt0nVcxSdiSTSZl6To9Z0GVWDtCGFuXp1dkST4wtw0DIeuWinBx2RQBamGcFplagXVF6SDBt858KlAySn1cmzjKrxHn.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/i/vl/vrXwRbUwgEFeUu1aj7pZhTAoKThP5GNoPjUH01CA36db9lyUYo4QwOx9LXgaz8Kbr5AeKAysK5zG4yX7ZjuM9fl86d7mFkEbXhy8u6D4kigfoK3WCRexZd7otG1j.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/K/7/nx/ZkePbQRiZr2UyrCboj2uOFOOP18X1qBv0nA6lXMZ2i6K3bUmxzOi1v7iwRXjo5DEe2UeOy8zLYaqb6SPec5Y5W65HLr2bQ4cxrAg809N1eOyD2zpoNVdFCnkvcVi.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/z/j/1H/78IeI2XuR4UgGj2NNuDmeABSGpmhXEK4gHQn3yYlp5tZb9cxo0Hr1kCuCy6f0hWVKIWe6bDfjKOZXQqP8l0GUNeJv5msrFFfBTx5yysi8RV20CUVc9lKi2wYskTL.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/S/i/1b/upOsTEdsH3ohGBPv3BYzlW29piM9ROXEZ5Yo34kb4f5uzO6HODX1blLzm9MhjhdhbeJm5MYcEPnBpiBDrd2tWDtwfUznJXLBetHnnQdcHYdXVD41h07woKjkGSIE.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/t/P0/11hVE9KhCt5m5BI1zw6pPio6mgVo0Y9BTnfKkstfKMvsGZIHdtMFmQUOhS65jCfMsPsNJ6qqgUwjeUyVVJ1AEWKKlwt13GH3vJIj8XaXKcS9rJFh0TSLqlofhSAe.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Q/D/RK/gCy6dFMSyU2YwJviNs9NwyQsHOzhfXm4PCCqqTiHdgMFhSRBH2nDVG9RDzizhM2jPa49MYhWB7r3HC0GDgLsrzVq4lxOQmXeVgCn1cZOBRyyhoIWXvKVCc9KYkkT.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/d/q/Pj/51v1LdoTSBRaNHAIaxcjZgayhM40EdU9LP6wrtO08IPfATrF7Zj0E0CwqyHJ51oqAGYHMskjgQm67PmagzsXkq3xUXQA96FQ1z76xSXs07MC5JZ4soPX96E569J4.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/M/1w/6tBKd3VHBSO58YC71fF3USRSFuqnKsQ01DpECkVEwZg0VH2Pa63JAoaOPpAnItm3AzZhKgZDRGj0ekvcNPnHnkRrwNzMcdkpMXCqQft8My1fkhcrS0OzFYhM9gFJ.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/h/5/Az/xWjgd5oSFA6mhOb4HBPNuxyR38gRD3DTjfNmkm8uWrt3RCq1mhRR0QHFgSOwXKUteUFcSQUMy4xniRJsAm7NynAeTz9MUmb5ZqeEUvbr6Xz0H76LwzQy9UyRBmST.png)
![Sample image from MSD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/Z/8r/0lHffdXabhZpRint9yur3oF9BwDs3ywoZaeavkwpTz7HnWkhC2umd8a9g4qAxY1nFnEQKHuCNlKDReR7moqLe12xtMXOpERSAlgucfXCSRcWd7D9k8xQmE1POjyD.png)
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.
![Spatial Heatmap](https://cdn.datasetninja.com/github/dataset-ninja/mobile-phone-defect-segmentation/main/stats/classes_heatmaps.png)
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 = { sep },
note = { visited on 2024-09-08 },
}
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.