Cha KyeongMin, Woo Hyun-Ki, Park Dohyun, Chang Dong Kyung, Kang Mira
Department of Digital Health, Samsung Advanced Institute of Health Sciences & Technology, Sungkyunkwan University, Seoul, Republic of Korea.
EvidNet Inc, Seongnam-si, Gyeonggi-do, Republic of Korea.
JMIR Med Inform. 2021 Jul 28;9(7):e26000. doi: 10.2196/26000.
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.
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]).
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.
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).
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.
由于药丸颜色存在差异,而这些差异又受诸如光照和闪光灯等外部因素影响,因此药丸图像识别系统难以开发。
在本研究中,测量参考图像与真实世界图像之间的颜色差异,以确定药丸识别系统在12种真实世界条件(即不同背景颜色、有无闪光灯以及不同曝光值[EV])下的准确性。
我们分析了19种具有不同特征(即不同颜色、形状和剂量)的药物。基于参考图像与真实世界图像之间的颜色距离计算平均色差。
对于黑色背景的图像,随着曝光值降低,无论有无闪光灯,前1准确率和前5准确率均有所提高。当闪光灯开启时,黑色背景图像的前5准确率随着曝光值降低从26.8%提高到72.6%;当闪光灯关闭时,前5准确率从29.5%提高到76.8%。然而,当闪光灯开启时,白色背景图像的前5准确率从62.1%提高到78.4%。最佳前1准确率为51.1%(白色背景;闪光灯开启;曝光值为+2.0).最佳前5准确率为78.4%(白色背景;闪光灯开启;曝光值为0)。
除了黑色背景且曝光值为-2.0的图像外,准确率通常随着色差减小而提高。本研究表明,真实世界条件下的背景颜色、闪光灯的存在以及曝光值是影响药丸识别模型性能的重要因素。