A dataset of medication images with instance segmentation masks for preventing adverse drug events
W. I. Chu, S. Hirani, G. Tarroni, L. Li

TL;DR
MEDISEG is a comprehensive dataset with instance segmentation masks for 32 pill types, designed to improve AI-based pill recognition in complex, real-world conditions, thereby enhancing medication safety systems.
Contribution
This paper introduces MEDISEG, a novel dataset with detailed annotations capturing real-world pill recognition challenges, and demonstrates its effectiveness for training and benchmarking AI models.
Findings
YOLOv8 and YOLOv9 achieved high accuracy on MEDISEG
Training on MEDISEG improves recognition of unseen pill classes
The dataset supports robust supervised and few-shot learning
Abstract
Medication errors and adverse drug events (ADEs) pose significant risks to patient safety, often arising from difficulties in reliably identifying pharmaceuticals in real-world settings. AI-based pill recognition models offer a promising solution, but the lack of comprehensive datasets hinders their development. Existing pill image datasets rarely capture real-world complexities such as overlapping pills, varied lighting, and occlusions. MEDISEG addresses this gap by providing instance segmentation annotations for 32 distinct pill types across 8262 images, encompassing diverse conditions from individual pill images to cluttered dosette boxes. We trained YOLOv8 and YOLOv9 on MEDISEG to demonstrate their usability, achieving mean average precision at IoU 0.5 of 99.5 percent on the 3-Pills subset and 80.1 percent on the 32-Pills subset. We further evaluate MEDISEG under a few-shot…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCold Fusion and Nuclear Reactions · Pharmacovigilance and Adverse Drug Reactions · Pharmaceutical Quality and Counterfeiting
