Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Nov 2;13(22):4420.
doi: 10.3390/electronics13224420. Epub 2024 Nov 11.

Accurate Medical Vial Identification Through Mixed Reality: A HoloLens 2 Implementation

Affiliations

Accurate Medical Vial Identification Through Mixed Reality: A HoloLens 2 Implementation

Bahar Uddin Mahmud et al. Electronics (Basel). .

Abstract

The accurate identification of medicine vials is crucial for emergency medical services, especially for vials that resemble one another but have different labels, volumes, and concentrations. This study introduces a method to detect vials in real-time using mixed reality technology through Microsoft HoloLens 2. The system is also equipped with an SQL server to manage barcode and vial information. We conducted a comparative analysis of the barcode detection capabilities of the HoloLens 2 camera and an external scanner. The HoloLens 2 effectively identified larger barcodes when they were 20-25 cm away in normal lighting conditions. However, it faced difficulties in detecting smaller barcodes that were consistently detected by the external scanner. The frame rate investigation revealed performance fluctuations: an average of 10.54 frames per second (fps) under standard lighting conditions, decreasing to 10.10 fps in low light and further reducing to 10.05 fps when faced with high barcode density. Resolution tests demonstrated that a screen resolution of 1920 × 1080 yielded the best level of accuracy, with a precision rate of 98%. On the other hand, a resolution of 1280 × 720 achieved a good balance between accuracy 93% and speed. The HoloLens 2 demonstrates satisfactory performance under ideal circumstances; however, enhancements in detecting algorithms and camera resolution are required to accommodate diverse surroundings. This approach seeks to help paramedics make quick and accurate decisions during critical situations and tackle common obstacles such as reliance on networks and human mistakes. Our new approach of a hybrid method that integrates an external Bluetooth scanner with the MR device gives optimal results compared to the scanner-only approach.

Keywords: Microsoft HoloLens 2; barcode reading; healthcare technology; medical vials; mixed reality; patient safety; vial detection.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: The authors declare no conflicts of interest.

Figures

Figure 1.
Figure 1.
The trade-off between the distance and size of the code for optimal detection.
Figure 2.
Figure 2.
Represents the sample vial images with barcodes of different sizes and vials with a similar look.
Figure 3.
Figure 3.
The step-by-step process of the code scanning. Hololens 2 camera captures the barcode of the vial. If it is unable to do so, then the scanner attached will get the code and request its database to get related information.
Figure 4.
Figure 4.
The image represents a user scanning a barcode on a small package using HoloLens 2, a user scanning a barcode on a whiteboard with HoloLens 2, and a barcode scanner with various vials used for testing.
Figure 5.
Figure 5.
Flowchart of the vial detection process using the mixed reality technology.
Figure 6.
Figure 6.
Represents the results of barcode size and detection distance. Blue color samples were detected by the MR device only. The red one was detected by an assisted Bluetooth scanner, which attached to the MR device.
Figure 7.
Figure 7.
Represents the results after scanning the barcode. Scanning time varies for the Hololens camera based on the barcode size and camera resolution.
Figure 8.
Figure 8.
Represents the visualization of frame rate in different lighting setup for Hololens 2 camera.
Figure 9.
Figure 9.
Represents the visualization of detection accuracy for different camera resolution of Hololens 2.

References

    1. National Coordinating Council for Medication Error Reporting and Prevention (NCC MERP). About Medication Errors. Available online: https://www.nccmerp.org/about-medication-errors (accessed on 8 September 2024).
    1. Kazi R; Hoyle JD Jr.; Huffman C; Ekblad G; Ruffing R; Dunwoody S; Hover T; Cody S; Fales W An Analysis of Prehospital Pediatric Medication Dosing Errors after Implementation of a State-Wide EMS Pediatric Drug Dosing Reference. Prehosp. Emerg. Care 2024, 28, 43–49. - PubMed
    1. D’Errico S; Zanon M; Radaelli D; Padovano M; Santurro A; Scopetti M; Frati P; Fineschi V Medication Errors in Pediatrics: Proposals to Improve the Quality and Safety of Care Through Clinical Risk Management. Front. Med 2022, 8, 814100. - PMC - PubMed
    1. QR Code Tracking Overview-Mixed Reality, Mixed Reality|Microsoft Learn. Available online: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced... (accessed on 5 June 2024).
    1. Qianw QR Code Tracking Overview-Mixed Reality, Distance and Angular Position from the QR Code. Available online: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced... (accessed on 15 June 2024).

LinkOut - more resources