Healthc Inform Res.  2023 Jan;29(1):84-88. 10.4258/hir.2023.29.1.84.

Development of an Automatic Pill Image Data Generation System

Affiliations
  • 1Department of Biomedical Engineering, College of Health Science, Gachon University, Incheon, Korea
  • 2Medical Devices R&D Center, Gachon University Gil Hospital, Incheon, Korea
  • 3Interdisciplinary Program in Bioengineering, Graduate School, Seoul National University, Seoul, Korea
  • 4Pre-medical Course, College of Medicine, Gachon University, Incheon, Korea
  • 5Department of Health Sciences and Technology, Gachon Advanced Institute for Health & Sciences and Technology (GAIHST), Gachon University, Incheon, Korea

Abstract


Objectives
Since the easiest way to identify pills and obtain information about them is to distinguish them visually, many studies on image processing technology exist. However, no automatic system for generating pill image data has yet been developed. Therefore, we propose a system for automatically generating image data by taking pictures of pills from various angles. This system is referred to as the pill filming system in this paper.
Methods
We designed the pill filming system to have three components: structure, controller, and a graphical user interface (GUI). This system was manufactured with black polylactic acid using a 3D printer for lightweight and easy manufacturing. The mainboard controls data storage, and the entire process is managed through the GUI. After one reciprocating movement of the seesaw, the web camera at the top shoots the target pill on the stage. This image is then saved in a specific directory on the mainboard.
Results
The pill filming system completes its workflow after generating 300 pill images. The total time to collect data per pill takes 21 minutes and 25 seconds. The generated image size is 1280 × 960 pixels, the horizontal and vertical resolutions are both 96 DPI (dot per inch), and the file extension is .jpg.
Conclusions
This paper proposes a system that can automatically generate pill image data from various angles. The pill observation data from various angles include many cases. In addition, the data collected in the same controlled environment have a uniform background, making it easy to process the images. Large quantities of high-quality data from the pill filming system can contribute to various studies using pill images.

Keyword

Tablets, Internet of Things, Data Systems, Automatism, Motor Skills

Figure

  • Figure 1 Schematic presentation of the parts of the pill filming system and their functions.

  • Figure 2 Internal structure of the seesaw for taking images of pills from various angles.

  • Figure 3 Block diagram of the entire pill filming system.

  • Figure 4 Graphical user interface (GUI) to visualize system operation with buttons for different pill names.

  • Figure 5 Actual view of the pill filming system.

  • Figure 6 (A, B) Four examples of pill image data of the two types from various angles were generated by the pill filming system.


Reference

References

1. Srinivasan S, Florez JC. Therapeutic challenges in diabetes prevention: we have not found the “exercise pill”. Clin Pharmacol Ther. 2015; 98(2):162–9. https://doi.org/10.1002/cpt.146 .
2. Volpe M, Gallo G, Tocci G. New approach to blood pressure control: triple combination pill. Trends Cardiovasc Med. 2020; 30(2):72–7. https://doi.org/10.1016/j.tcm.2019.03.002 .
3. Yi JY, Kim Y, Cho YM, Kim H. Self-management of chronic conditions using mHealth interventions in Korea: a systematic review. Healthc Inform Res. 2018; 24(3):187–97. https://doi.org/10.4258/hir.2018.24.3.187 .
4. Hovareshti P, Roeder S, Holt LS, Gao P, Xiao L, Zalkin C, et al. VestAid: a tablet-based technology for objective exercise monitoring in vestibular rehabilitation. Sensors (Basel). 2021; 21(24):8388. https://doi.org/10.3390/s21248388 .
5. Chen RC, Chan YK, Chen YH, Bau CT. An automatic drug image identification system based on multiple image features and dynamic weights. Int J Innov Comput Inf Control. 2012; 8(5):2995–3013.
6. Ahmad S, Hasan M, Shahabuddin M, Tabassum T, Allvi MW. IoT based pill reminder and monitoring system. Int J Comput Sci Netw Secur. 2020; 20(7):152–8.
7. Lee YB, Park U, Jain AK, Lee SW. Pill-ID: matching and retrieval of drug pill images. Pattern Recognit Lett. 2012; 33(7):904–10. https://doi.org/10.1016/j.patrec.2011.08.022 .
8. Cordeiro LS, Lima JS, Ribeiro AI, Bezerra FN, Reboucas Filho PP, Neto AR. Pill image classification using machine learning. In : Proceedings of 2019, 8th Brazilian Conference on Intelligent Systems (BRACIS); 2019 Oct 15–18; Salvador, Brazil. p. 556–61. https://doi.org/10.1109/BRACIS.2019.00103 .
9. Yu J, Chen Z, Kamata SI. Pill recognition using imprint information by two-step sampling distance sets. In : Proceedings of 2014, 22nd International Conference on Pattern Recognition; 2014 Aug 24–28; Stockholm, Sweden. p. 3156–61. https://doi.org/10.1109/ICPR.2014.544 .
10. Chang WJ, Chen LB, Hsu CH, Chen JH, Yang TC, Lin CP. MedGlasses: a wearable smart-glasses-based drug pill recognition system using deep learning for visually impaired chronic patients. IEEE Access. 2020; 8:17013–24. https://doi.org/10.1109/ACCESS.2020.2967400 .
11. Kwon HJ, Kim HG, Lee SH. Pill detection model for medicine inspection based on deep learning. Chemosensors. 2021; 10(1):4. https://doi.org/10.3390/chemosensors10010004 .
12. Yaniv Z, Faruque J, Howe S, Dunn K, Sharlip D, Bond A, et al. The national library of medicine pill image recognition challenge: an initial report. In : Proceedings of 2016 IEEE Applied Imagery Pattern Recognition Workshop (AIPR); 2016 Oct 18–20; Washington, DC. p. 1–9. https://doi.org/10.1109/AIPR.2016.8010584 .
13. Wang Y, Ribera J, Liu C, Yarlagadda S, Zhu F. Pill recognition using minimal labeled data. In : Proceedings of 2017 IEEE 3rd International Conference on Multimedia Big Data (BigMM); 2017 Apr 19–21; Laguna Hills, CA. p. 346–53. https://doi.org/10.1109/BigMM.2017.61 .
14. Zeng X, Cao K, Zhang M. MobileDeepPill: a small-footprint mobile deep learning system for recognizing unconstrained pill images. In : Proceedings of the 15th Annual International Conference on Mobile Systems, Applications, and Services; 2017 Jun 19–23; Niagara Falls, NY. p. 56–67. https://doi.org/10.1145/3081333.3081336 .
15. Raspberry-Pi 4 model B [Internet]. Cambridge, UK: Raspberry Pi Foundation;c2022. [cited at 2023 Jan 20]. Available from: https://www.raspberrypi.com/products/raspberry-pi-4-model-b .
16. Kim JW, Park SM, Choi SW. Real-time photoplethysmographic heart rate measurement using deep neural network filters. ETRI J. 2021; 43(5):881–90. https://doi.org/10.4218/etrij.2020-0394 .
Full Text Links
  • HIR
Actions
Cited
CITED
export Copy
Close
Share
  • Twitter
  • Facebook
Similar articles
Copyright © 2024 by Korean Association of Medical Journal Editors. All rights reserved.     E-mail: koreamed@kamje.or.kr