Cargando…

Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach

BACKGROUND: Pill image recognition systems are difficult to develop due to differences in pill color, which are influenced by external factors such as the illumination from and the presence of a flash. OBJECTIVE: In this study, the differences in color between reference images and real-world images...

Descripción completa

Detalles Bibliográficos
Autores principales: Cha, KyeongMin, Woo, Hyun-Ki, Park, Dohyun, Chang, Dong Kyung, Kang, Mira
Formato: Online Artículo Texto
Lenguaje:English
Publicado: JMIR Publications 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8367115/
https://www.ncbi.nlm.nih.gov/pubmed/34319239
http://dx.doi.org/10.2196/26000
_version_ 1783739012864802816
author Cha, KyeongMin
Woo, Hyun-Ki
Park, Dohyun
Chang, Dong Kyung
Kang, Mira
author_facet Cha, KyeongMin
Woo, Hyun-Ki
Park, Dohyun
Chang, Dong Kyung
Kang, Mira
author_sort Cha, KyeongMin
collection PubMed
description BACKGROUND: Pill image recognition systems are difficult to develop due to differences in pill color, which are influenced by external factors such as the illumination from and the presence of a flash. OBJECTIVE: In this study, the differences in color between reference images and real-world images were measured to determine the accuracy of a pill recognition system under 12 real-world conditions (ie, different background colors, the presence and absence of a flash, and different exposure values [EVs]). METHODS: We analyzed 19 medications with different features (ie, different colors, shapes, and dosages). The average color difference was calculated based on the color distance between a reference image and a real-world image. RESULTS: For images with black backgrounds, as the EV decreased, the top-1 and top-5 accuracies increased independently of the presence of a flash. The top-5 accuracy for images with black backgrounds increased from 26.8% to 72.6% when the flash was on and increased from 29.5% to 76.8% when the flash was off as the EV decreased. However, the top-5 accuracy increased from 62.1% to 78.4% for images with white backgrounds when the flash was on. The best top-1 accuracy was 51.1% (white background; flash on; EV of +2.0). The best top-5 accuracy was 78.4% (white background; flash on; EV of 0). CONCLUSIONS: The accuracy generally increased as the color difference decreased, except for images with black backgrounds and an EV of −2.0. This study revealed that background colors, the presence of a flash, and EVs in real-world conditions are important factors that affect the performance of a pill recognition model.
format Online
Article
Text
id pubmed-8367115
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher JMIR Publications
record_format MEDLINE/PubMed
spelling pubmed-83671152021-08-24 Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach Cha, KyeongMin Woo, Hyun-Ki Park, Dohyun Chang, Dong Kyung Kang, Mira JMIR Med Inform Original Paper BACKGROUND: Pill image recognition systems are difficult to develop due to differences in pill color, which are influenced by external factors such as the illumination from and the presence of a flash. OBJECTIVE: In this study, the differences in color between reference images and real-world images were measured to determine the accuracy of a pill recognition system under 12 real-world conditions (ie, different background colors, the presence and absence of a flash, and different exposure values [EVs]). METHODS: We analyzed 19 medications with different features (ie, different colors, shapes, and dosages). The average color difference was calculated based on the color distance between a reference image and a real-world image. RESULTS: For images with black backgrounds, as the EV decreased, the top-1 and top-5 accuracies increased independently of the presence of a flash. The top-5 accuracy for images with black backgrounds increased from 26.8% to 72.6% when the flash was on and increased from 29.5% to 76.8% when the flash was off as the EV decreased. However, the top-5 accuracy increased from 62.1% to 78.4% for images with white backgrounds when the flash was on. The best top-1 accuracy was 51.1% (white background; flash on; EV of +2.0). The best top-5 accuracy was 78.4% (white background; flash on; EV of 0). CONCLUSIONS: The accuracy generally increased as the color difference decreased, except for images with black backgrounds and an EV of −2.0. This study revealed that background colors, the presence of a flash, and EVs in real-world conditions are important factors that affect the performance of a pill recognition model. JMIR Publications 2021-07-28 /pmc/articles/PMC8367115/ /pubmed/34319239 http://dx.doi.org/10.2196/26000 Text en ©KyeongMin Cha, Hyun-Ki Woo, Dohyun Park, Dong Kyung Chang, Mira Kang. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 28.07.2021. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.
spellingShingle Original Paper
Cha, KyeongMin
Woo, Hyun-Ki
Park, Dohyun
Chang, Dong Kyung
Kang, Mira
Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title_full Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title_fullStr Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title_full_unstemmed Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title_short Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System Using a Deep Convolutional Neural Network: Deep Learning and Experimental Approach
title_sort effects of background colors, flashes, and exposure values on the accuracy of a smartphone-based pill recognition system using a deep convolutional neural network: deep learning and experimental approach
topic Original Paper
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8367115/
https://www.ncbi.nlm.nih.gov/pubmed/34319239
http://dx.doi.org/10.2196/26000
work_keys_str_mv AT chakyeongmin effectsofbackgroundcolorsflashesandexposurevaluesontheaccuracyofasmartphonebasedpillrecognitionsystemusingadeepconvolutionalneuralnetworkdeeplearningandexperimentalapproach
AT woohyunki effectsofbackgroundcolorsflashesandexposurevaluesontheaccuracyofasmartphonebasedpillrecognitionsystemusingadeepconvolutionalneuralnetworkdeeplearningandexperimentalapproach
AT parkdohyun effectsofbackgroundcolorsflashesandexposurevaluesontheaccuracyofasmartphonebasedpillrecognitionsystemusingadeepconvolutionalneuralnetworkdeeplearningandexperimentalapproach
AT changdongkyung effectsofbackgroundcolorsflashesandexposurevaluesontheaccuracyofasmartphonebasedpillrecognitionsystemusingadeepconvolutionalneuralnetworkdeeplearningandexperimentalapproach
AT kangmira effectsofbackgroundcolorsflashesandexposurevaluesontheaccuracyofasmartphonebasedpillrecognitionsystemusingadeepconvolutionalneuralnetworkdeeplearningandexperimentalapproach