Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

Code-Based Versus AutoML Methods for Pill Recognition in Clinical Settings: Comparative Performance Study

View through CrossRef
Abstract Background Visual identification and verification of medications during dispensing and administration are prone to human error, particularly in high-pressure and high-volume clinical settings. Misidentification can lead to medication errors, posing risks to patient safety and placing a burden on health care systems. Recent advances in computer vision and object detection offer promising solutions for automated solid oral dosage form (pill) recognition. However, comprehensive studies comparing code-based and no-code (automated machine learning [AutoML]) approaches for pill recognition are lacking. Objective This study aimed to evaluate and compare the performance, cost, usability, and deployment feasibility of pill recognition models developed with Ultralytics YOLO11 and 3 cloud-based AutoML platforms (Amazon Rekognition Custom Labels, Google Vertex artificial intelligence [AI] AutoML Vision, and Microsoft Azure Custom Vision) using multiple datasets, including real-world clinical images. Methods Five training subsets of increasing size (1230, 3450, 7380, 14,400, and 26,880 images) from 30 commonly dispensed medications were used to train models on YOLO11 and 3 AutoML platforms. Models were evaluated on 6 datasets from different environments: clinical images from 3 hospitals, a verification dataset, a laboratory dataset, and an exhaustive testing set. Performance metrics, including accuracy, precision, recall, and mean average precision, were calculated. We evaluated the impact of training data size on performance and benchmarked training time, platform costs, and limitations. Results No single platform dominated across all test environments. On the verification dataset (optimal conditions), accuracy ranged from 80.83% (YOLO11) to 91.60% (Google Vertex AI) when trained with the full training dataset. YOLO11 showed consistent performance improvement with increasing training data (accuracy: 63.06%-80.83%) and achieved near-perfect precision and mean average precision scores (0.95‐1.00). Google Vertex AI reached above 90% accuracy on 3 training subsets but showed unpredictable declines. Amazon Rekognition maintained near-perfect precision (0.92‐1.00) but had the highest false negative rates (up to 0.74), missing many pills. Custom Vision demonstrated steady performance improvements (77.08%-85.62% accuracy) but lagged behind other AutoML platforms, probably due to its older YOLOv2-based architecture. On clinical datasets, accuracy fluctuated (20.62%-90%) depending on the dataset and platform. Training costs and time varied: YOLO11 (open-source), Microsoft Azure (US $9.50-US $28.60, allowed user-predefined training duration), Google Vertex AI (US $69.30 with consistent 2.5‐3-hour training times), and Amazon Rekognition (US $5.43-US $43.89 with size-dependent training time scaling, reaching nearly 40 hours on the full 26,880-image dataset). Conclusions Each platform offers distinct advantages and trade-offs: YOLO11 provides the highest flexibility and lowest platform costs but requires technical expertise, while AutoML platforms can offer high performance at a higher cost but with limited user control, introducing unpredictability. The performance variations demonstrate that successful clinical deployment requires careful platform selection based on specific performance requirements, budget constraints, and available technical resources, followed by rigorous validation using real-world, representative data to ensure patient safety in clinical workflows.
Title: Code-Based Versus AutoML Methods for Pill Recognition in Clinical Settings: Comparative Performance Study
Description:
Abstract Background Visual identification and verification of medications during dispensing and administration are prone to human error, particularly in high-pressure and high-volume clinical settings.
Misidentification can lead to medication errors, posing risks to patient safety and placing a burden on health care systems.
Recent advances in computer vision and object detection offer promising solutions for automated solid oral dosage form (pill) recognition.
However, comprehensive studies comparing code-based and no-code (automated machine learning [AutoML]) approaches for pill recognition are lacking.
Objective This study aimed to evaluate and compare the performance, cost, usability, and deployment feasibility of pill recognition models developed with Ultralytics YOLO11 and 3 cloud-based AutoML platforms (Amazon Rekognition Custom Labels, Google Vertex artificial intelligence [AI] AutoML Vision, and Microsoft Azure Custom Vision) using multiple datasets, including real-world clinical images.
Methods Five training subsets of increasing size (1230, 3450, 7380, 14,400, and 26,880 images) from 30 commonly dispensed medications were used to train models on YOLO11 and 3 AutoML platforms.
Models were evaluated on 6 datasets from different environments: clinical images from 3 hospitals, a verification dataset, a laboratory dataset, and an exhaustive testing set.
Performance metrics, including accuracy, precision, recall, and mean average precision, were calculated.
We evaluated the impact of training data size on performance and benchmarked training time, platform costs, and limitations.
Results No single platform dominated across all test environments.
On the verification dataset (optimal conditions), accuracy ranged from 80.
83% (YOLO11) to 91.
60% (Google Vertex AI) when trained with the full training dataset.
YOLO11 showed consistent performance improvement with increasing training data (accuracy: 63.
06%-80.
83%) and achieved near-perfect precision and mean average precision scores (0.
95‐1.
00).
Google Vertex AI reached above 90% accuracy on 3 training subsets but showed unpredictable declines.
Amazon Rekognition maintained near-perfect precision (0.
92‐1.
00) but had the highest false negative rates (up to 0.
74), missing many pills.
Custom Vision demonstrated steady performance improvements (77.
08%-85.
62% accuracy) but lagged behind other AutoML platforms, probably due to its older YOLOv2-based architecture.
On clinical datasets, accuracy fluctuated (20.
62%-90%) depending on the dataset and platform.
Training costs and time varied: YOLO11 (open-source), Microsoft Azure (US $9.
50-US $28.
60, allowed user-predefined training duration), Google Vertex AI (US $69.
30 with consistent 2.
5‐3-hour training times), and Amazon Rekognition (US $5.
43-US $43.
89 with size-dependent training time scaling, reaching nearly 40 hours on the full 26,880-image dataset).
Conclusions Each platform offers distinct advantages and trade-offs: YOLO11 provides the highest flexibility and lowest platform costs but requires technical expertise, while AutoML platforms can offer high performance at a higher cost but with limited user control, introducing unpredictability.
The performance variations demonstrate that successful clinical deployment requires careful platform selection based on specific performance requirements, budget constraints, and available technical resources, followed by rigorous validation using real-world, representative data to ensure patient safety in clinical workflows.

Related Results

DETERMINANTS OF PILL FAILURE IN RURAL BANGLADESH
DETERMINANTS OF PILL FAILURE IN RURAL BANGLADESH
The pill is the most popular family planning method in Bangladesh. However, the failure rate of this method in Matlab, a typical rural area, has been found to be very high. It is e...
Primerjalna književnost na prelomu tisočletja
Primerjalna književnost na prelomu tisočletja
In a comprehensive and at times critical manner, this volume seeks to shed light on the development of events in Western (i.e., European and North American) comparative literature ...
Exploring User Adoption and Experience of AutoML Platforms: Learning Curves, Usability, and Design Considerations
Exploring User Adoption and Experience of AutoML Platforms: Learning Curves, Usability, and Design Considerations
Abstract Human daily activities and businesses generate a high volume of data which are expected to be transformed for the benefit of businesses and mankind. Organizations ...
Automated Machine Learning
Automated Machine Learning
AbstractIn the past few years automated machine learning (AutoML) has gained a lot of traction in the data science and machine learning community. AutoML aims at reducing the partl...
Automated Machine Learning in Dentistry: A Narrative Review of Applications, Challenges, and Future Directions
Automated Machine Learning in Dentistry: A Narrative Review of Applications, Challenges, and Future Directions
The adoption of automated machine learning (AutoML) in dentistry is transforming clinical practices by enabling clinicians to harness machine learning (ML) models without requiring...

Back to Top