journal article·2023-04-18Open access

CNN-Based Pill Image Recognition for Retrieval Systems

Khalil Al-Hussaeni, Ioannis Karamitsos, Ezekiel Adewumi, Rema M. Amawi

Applied Sciences· Volume 13· Issue 8

Abstract

Medication should be consumed as prescribed with little to zero margins for errors, otherwise consequences could be fatal. Due to the pervasiveness of camera-equipped mobile devices, patients and practitioners can easily take photos of unidentified pills to avert erroneous prescriptions or consumption. This area of research goes under the umbrella of information retrieval and, more specifically, image retrieval or recognition. Several studies have been conducted in the area of image retrieval in order to propose accurate models, i.e., accurately matching an input image with stored ones. Recently, neural networks have been shown to be effective in identifying digital images. This study aims to provide an enhancement to image retrieval in terms of accuracy and efficiency through image segmentation and classification. This paper suggests three neural network (CNN) architectures: two models that are hybrid networks paired with a classification method (CNN+SVM and CNN+kNN) and one ResNet-50 network. We perform various preprocessing steps by using several detection techniques on the selected dataset. We conduct extensive experiments using a real-life dataset obtained from the National Library of Medicine database. The results demonstrate that our proposed model is capable of deriving an accuracy of 90.8%. We also provide a comparison of the above-mentioned three models with some existing methods, and we notice that our proposed CNN+kNN architecture improved the pill image retrieval accuracy by 10% compared to existing models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Digital Imaging in Medicine · Dental Radiography and Imaging · COVID-19 diagnosis using AI

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Computing Sciences, Rochester Institute of Technology, Dubai 341055, United Arab Emirates

Graduate and Research, Rochester Institute of Technology, Dubai 341055, United Arab Emirates

Science and Liberal Arts, Rochester Institute of Technology, Dubai 341055, United Arab Emirates

Funding

Rochester Institute of Technology—Dubai

References (51)

Show source-provided references
1. Crestani, F., Mizzaro, S., and Scagnetto, I. (2017). Mobile Information Retrieval, Springer International Publishing. [1st ed.].10.1007/978-3-319-60777-1 ↗
2. Content based image retrieval with sparse representations and local feature descriptors: A comparative study10.1016/j.patcog.2017.03.006 ↗
3. Content based Image Retrieval System using Local Feature Extraction Techniques
4. A Decade Survey of Content Based Image Retrieval Using Deep Learning10.1109/TCSVT.2021.3080920 ↗
5. Medical error—the third leading cause of death in the US10.1136/bmj.i2139 ↗
6. World Health Assembly (2019). Patient Safety: Global Action on Patient Safety: Report by the Director-General, World Health Assembly.
7. WHO (2017). Medication Without Harm: Real-Life Stories, WHO.
8. WHO (2022, July 31). 10 Facts on Patient Safety. Available online: https://www.who.int/news-room/photo-story/photo-story-detail/10-facts-on-patient-safety.
9. Fast and accurate medication identification10.1038/s41746-019-0086-0 ↗
10. Yu, J., Chen, Z., and Kamata, S.i. (2014, January 24–28). Pill Recognition Using Imprint Information by Two-Step Sampling Distance Sets. Proceedings of the 2014 22nd International Conference on Pattern Recognition, Stockholm, Sweden.10.1109/ICPR.2014.544 ↗
11. RxList (2022, July 31). Pill Identifier (Pill Finder Wizard). Available online: https://www.rxlist.com/pill-identification-tool/article.htm.
12. Healthline (2022, July 31). Medication Safety: Pill Identification, Storage, and More. Available online: https://www.healthline.com/health/pill-identification.
13. KNN Model-based Approach in Classification
14. An Introduction to Kernel and Nearest-Neighbor Nonparametric Regression10.1080/00031305.1992.10475879 ↗
15. On Relevance, Probabilistic Indexing and Information Retrieval10.1145/321033.321035 ↗
16. An algorithm for organization of information
17. Picture indexing and abstraction techniques for pictorial databases10.1109/TPAMI.1984.4767552 ↗
18. Foster, C.C. (1965, January 24–26). Information Retrieval: Information Storage and Retrieval Using AVL Trees. Proceedings of the 1965 20th National Conference, Cleveland, OH, USA.10.1145/800197.806043 ↗
19. The SMART Automatic Document Retrieval Systems-an Illustration10.1145/364955.364990 ↗
20. Salton, G. (1971). The SMART Retrieval System-Experiments in Automatic Document Processing, Prentice-Hall, Inc.
21. Rabitti, F., and Stanchev, P. (1987, January 3–5). An Approach to Image Retrieval from Large Image Databases. Proceedings of the 10th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, New Orleans, LA, USA.10.1145/42005.42037 ↗
22. Robust image retrieval based on color histogram of local feature regions10.1007/s11042-009-0362-0 ↗
23. Pill-ID: Matching and retrieval of drug pill images10.1016/j.patrec.2011.08.022 ↗
24. CBIR using features derived by deep learning10.1145/3470568 ↗
25. Dropout: A Simple Way to Prevent Neural Networks from Overfitting
26. Razavian, A.S., Azizpour, H., Sullivan, J., and Carlsson, S. (2014, January 23–28). CNN Features Off-the-Shelf: An Astounding Baseline for Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Columbus, OH, USA.10.1109/CVPRW.2014.131 ↗
27. Taigman, Y., Yang, M., Ranzato, M., and Wolf, L. (2014, January 23–28). DeepFace: Closing the Gap to Human-Level Performance in Face Verification. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.10.1109/CVPR.2014.220 ↗
28. Deep learning10.1038/nature14539 ↗
29. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovich, A. (2015, January 7–12). Going deeper with convolutions. Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/CVPR.2015.7298594 ↗
30. ImageNet Classification with Deep Convolutional Neural Networks10.1145/3065386 ↗
31. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
32. Wang, Y., Ribera, J., Liu, C., Yarlagadda, S., and Zhu, F. (2017, January 19–21). Pill Recognition Using Minimal Labeled Data. Proceedings of the IEEE Third International Conference on Multimedia Big Data (BigMM), Laguna Hills, CA, USA.10.1109/BigMM.2017.61 ↗
33. Automatic drug pills detection based on enhanced feature pyramid network and convolution neural networks10.1049/iet-cvi.2019.0171 ↗
34. Zeng, X., Cao, K., and Zhang, M. (2017, January 19–23). MobileDeepPill: A Small-Footprint Mobile Deep Learning System for Recognizing Unconstrained Pill Images. Proceedings of the 15th Annual International Conference on Mobile Systems, Applications, and Services, Niagara Falls, NY, USA.
35. Guo, P., Stanley, R., Cole, J.G., Hagerty, J., and Stoecker, W. (March, January 27). Color Feature-based Pillbox Image Color Recognition. Proceedings of the 12th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications—Volume 4: VISAPP, (VISIGRAPP 2017), Porto, Portugal.10.5220/0006136001880194 ↗
36. Cordeiro, L.S., Lima, J.S., Rocha Ribeiro, A.I., Bezerra, F.N., Rebouças Filho, P.P., and Rocha Neto, A.R. (2019, January 15–18). Pill Image Classification using Machine Learning. Proceedings of the 2019 8th Brazilian Conference on Intelligent Systems (BRACIS), Salvador, Brazil.10.1109/BRACIS.2019.00103 ↗
37. Suksawatchon, U., Srikamdee, S., Suksawatchon, J., and Werapan, W. (2022, January 10–11). Shape Recognition Using Unconstrained Pill Images Based on Deep Convolution Network. Proceedings of the 2022 6th International Conference on Information Technology (InCIT), Nonthaburi, Thailand.10.1109/InCIT56086.2022.10067600 ↗
38. Proma, T.P., Hossan, M.Z., and Amin, M.A. (2019). Medicine Recognition from Colors and Text, Association for Computing Machinery. ICGSP ’19.10.1145/3338472.3338484 ↗
39. Swastika, W., Prilianti, K., Stefanus, A., Setiawan, H., Arfianto, A.Z., Santosa, A.W.B., Rahmat, M.B., and Setiawan, E. (2019, January 28–29). Preliminary Study of Multi Convolution Neural Network-Based Model To Identify Pills Image Using Classification Rules. Proceedings of the 2019 International Seminar on Intelligent Technology and Its Applications (ISITIA), Surabaya, Indonesia.10.1109/ISITIA.2019.8937272 ↗
40. Kwon, H.J., Kim, H.G., and Lee, S.H. (2022). Pill Detection Model for Medicine Inspection Based on Deep Learning. Chemosensors, 10.10.3390/chemosensors10010004 ↗
41. Holtkötter, J., Amaral, R., Almeida, R., Jácome, C., Cardoso, R., Pereira, A., Pereira, M., Chon, K.H., and Fonseca, J.A. (2022). Development and Validation of a Digital Image Processing-Based Pill Detection Tool for an Oral Medication Self-Monitoring System. Sensors, 22.10.20944/preprints202202.0204.v1 ↗
42. Nguyen, A.D., Pham, H.H., Trung, H.T., Nguyen, Q.V.H., Truong, T.N., and Nguyen, P.L. (2023). High Accurate and Explainable Multi-Pill Detection Framework with Graph Neural Network-Assisted Multimodal Data Fusion. arXiv.10.1371/journal.pone.0291865 ↗
43. A Deep Learning-Based Intelligent Medicine Recognition System for Chronic Patients10.1109/ACCESS.2019.2908843 ↗
44. Ting, H.W., Chung, S.L., Chen, C.F., Chiu, H.Y., and Hsieh, Y.W. (2019). A drug identification model developed using deep learning technologies: Experience of a medical center in Taiwan. BMC Health Serv. Res., 20.10.21203/rs.2.16857/v1 ↗
45. Nguyen, A.D., Nguyen, T.D., Pham, H.H., Nguyen, T.H., and Nguyen, P.L. (2022, January 28–30). Image-based Contextual Pill Recognition with Medical Knowledge Graph Assistance. Proceedings of the Asian Conference on Intelligent Information and Database Systems, Ho Chi Minh City, Vietnam.10.1007/978-981-19-8234-7_28 ↗
46. National Library of Medicine (2022, July 31). Pill Identification Challenge, Available online: https://www.nlm.nih.gov/databases/download/pill_image.html.
47. Stanford (2022, July 31). CS231n: Convolutional Neural Networks for Visual Recognition. Available online: http://cs231n.stanford.edu/.
48. Vapnik, V.N. (1998). Statistical Learning Theory, Wiley-Interscience.
49. Iandola, F.N., Han, S., Moskewicz, M.W., Ashraf, K., Dally, W.J., and Keutzer, K. (2016). SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size. arXiv.
50. Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., and Adam, H. (2017). MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv.
51. Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. (2016, January 27–30). Rethinking the Inception Architecture for Computer Vision. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.308 ↗