in 98.46% (2107/2140) in classification and Orange
as 97.85% (2094/2140).
However, white and gray give confusing
classification results of 95.14% (2036/2140) and 90%
(1926/2140) since manual labelling consistency is
difficult for these colors with identical hues. After
adjusting Pillbox image labelling using the output
results, manually misclassified images can be
corrected, which improves classification accuracy to
as high as 99%. However, until labelling is further
investigated, the lower white and gray results are
used in calculating overall accuracy.
5 CONCLUSIONS
Under the idea of basic component colors for
classification, the features are extracted as the basis
of red, green and blue color related features.
Furthermore, the chromaticity, since it combines
saturation and hue (measuring color proportion over
all values of luminance), provides a simple model
for the color perceived by humans. Because of
uncertainty regarding labelling of white and gray,
performance ranged from over 98% for nine of the
colors to 97.85% for orange, 95.14% for white, and
90% for gray. Perfect accuracy (100%) is yielded as
the classification result for both cyan and pink color
Pillbox images. Overall, the classification accuracy
obtained from all the 12 color categories is 97.90%
which is higher than results obtained by (Madsen et
al, 2013) and (Wan et al., 2015).
Future research can be focused on principal
feature analysis to find the most significant features,
accuracy obtained from different current feature
groups. Additional data could enable classification
by unsupervised learning algorithms such as deep
learning. And, as to make the algorithm more
generalized and applicable in real world conditions,
a noise level study on the pill images should be
performed, taking into account non-optimal
condition such as uneven illumination, image blur
and heterogeneous backgrounds, etc.
As the first step in computing the visual content
in pill color recognition, we have already made
progress in reference image-based classification.
Additional research should also focus on imprint
identification, score marks and analysis of
consumer-quality pill identification, to enable
identification of pills under real-world conditions.
ACKNOWLEDGEMENTS
The images used in this research are obtained from
the NLM (National Library of Medicine) of National
Institutes of Health Pillbox image data base.
REFERENCES
Boughen, N., & Gross, J. (2003). Lightwave 3D 7.5
Lighting. book, Plano, TX, USA: Wordware
Publishing Inc.
Chang, C., & Lin, C. (2011). LIBSVM : A Library for
Support Vector Machines. ACM Transactions on
Intelligent Systems and Technology (TIST), 2, 1–39.
Cortes, C., & Vapnik, V. (1995). Support-vector networks.
Machine Learning, 20(3), 273–297.
De, S., Stanley, R. J., Lu, C., Long, R., Antani, S., Thoma,
G., & Zuna, R. (2013). A fusion-based approach for
uterine cervical cancer histology image classification.
Computerized Medical Imaging and Graphics, 37(7–
8), 475–487.
Gu, Q., Dillon, C. F., & Burt, V. L. (2010). Prescription
drug use continues to increase: U.S. prescription drug
data for 2007-2008. NCHS Data Brief, (42), 1–8.
Retrieved from
Guo, P., Banerjee, K., Stanley, R., Long, R., Antani, S.,
Thoma, G., … Stoecker, W. (2015). Nuclei-Based
Features for Uterine Cervical Cancer Histology Image
Analysis with Fusion-based Classification. IEEE
Journal of Biomedical and Health Informatics, (c).
Julie N. Barrows Arthur L. Lipman, C. J. B. (2009). Color
Additives: FDA’s Regulatory Process and Historical
Perspectives. book.
Kantor, E. D., Rehm, C. D., Haas, J. S., Chan, A. T., &
Giovannucci, E. L. (2015). Trends in Prescription
Drug Use Among Adults in the United States From
1999-2012. Jama, 314(17), 1818–1831.
Lee, Y. B., Park, U., Jain, A. K., & Lee, S. W. (2012).
Pill-ID: Matching and retrieval of drug pill images. In
Pattern Recognition Letters (Vol. 33, pp. 904–910).
Madsen, D. J., Payne, K. S., Hagerty, J. R., Szanto, N.,
Wronkiewicz, M., Moss, R.H., Stoecker. W.V. (2013).
Automatic Pill Identification from Pillbox Images. In:
8th International Conference on Computer Vision
Theory and Applications (VISAPP), 21-24 February
2013. 378-384.
Poynton, C. A. (2003). Digital video and HDTV :
algorithms and interfaces. Morgan Kaufmann
Publishers.
Schumock, G. T., Li, E. C., Suda, K. J., Wiest, M. D.,
Stubbings, J., Matusiak, L. M., … Vermeulen, L. C.
(2015). National trends in prescription drug
expenditures and projections for 2015. American
Journal of Health-System Pharmacy : AJHP : Official
Journal of the American Society of Health-System
Pharmacists, 72(9), 717–736.