Transfer learning-based pill classification: efficient deep models for medication monitoring

Purpose Medication adherence among elderly populations is a critical public health concern, with non-compliance often leading to preventable complications and hospitalizations. This study aims to evaluate and implement a deep learning-based computer vision system for automatic pill monitoring to improve medication management. Design/methodology/approach The proposed system transitions from an object detection paradigm (YOLOv8) to a binary Pill versus NoPill image classification framework. Twenty-five ImageNet-pretrained CNN variants from six architecture families were fine-tuned and evaluated on a newly collected dataset comprising 21,952 pill and non-pill images acquired under structured, deployment-representative conditions. Evaluation included nominal and controlled perturbation scenarios, paired statistical comparisons, case-level error analysis, and hardware-efficiency profiling. Findings Classification performance was close to saturation under nominal conditions and remained high under controlled perturbations. MobileNetV3-Small achieved perfect classification in both test scenarios while retaining a compact computational profile. SqueezeNet provided the smallest and fastest models but showed a small number of errors under perturbation. Although the global comparison was significant in the augmented scenario, no individual model pair remained statistically significant after Holm correction of exact McNemar tests. Social implications Automated pill monitoring has the potential to enhance patient safety, reduce healthcare costs, and improve the quality of life for older adults managing complex medication regimens. Originality/value Rather than proposing new algorithmic architectures, this study presents a comprehensive empirical evaluation of transfer learning for pill monitoring. By shifting from an object detection paradigm to a binary image classification framework, it systematically assesses the trade-offs between predictive performance and hardware efficiency. Leveraging lightweight architectures and a dataset collected under structured, deployment representative conditions, it provides a foundation for future research in automated medication adherence systems with enhanced scalability and practical applicability.

Authors

Institutions

Publication Details

Journal
Data Technologies and Applications
Published
2026-12-02
DOI
https://doi.org/10.1108/dta-11-2025-1070
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Transfer learning-based pill classification: efficient deep models for medication monitoring

Goreti Marreiros, William Xavier, Robespierre Ribeiro, Gustavo A. Corrente et al.
Data Technologies and Applications
Advanced Neural Network Applications
article

Transfer learning-based pill classification: efficient deep models for medication monitoring

Goreti Marreiros, William Xavier, Robespierre Ribeiro, Gustavo A. Corrente, Luís Conceição, Rafael Martins, Gabriel Lowndes Souza Pinto
article en

Abstract

Purpose Medication adherence among elderly populations is a critical public health concern, with non-compliance often leading to preventable complications and hospitalizations. This study aims to evaluate and implement a deep learning-based computer vision system for automatic pill monitoring to improve medication management. Design/methodology/approach The proposed system transitions from an object detection paradigm (YOLOv8) to a binary Pill versus NoPill image classification framework. Twenty-five ImageNet-pretrained CNN variants from six architecture families were fine-tuned and evaluated on a newly collected dataset comprising 21,952 pill and non-pill images acquired under structured, deployment-representative conditions. Evaluation included nominal and controlled perturbation scenarios, paired statistical comparisons, case-level error analysis, and hardware-efficiency profiling. Findings Classification performance was close to saturation under nominal conditions and remained high under controlled perturbations. MobileNetV3-Small achieved perfect classification in both test scenarios while retaining a compact computational profile. SqueezeNet provided the smallest and fastest models but showed a small number of errors under perturbation. Although the global comparison was significant in the augmented scenario, no individual model pair remained statistically significant after Holm correction of exact McNemar tests. Social implications Automated pill monitoring has the potential to enhance patient safety, reduce healthcare costs, and improve the quality of life for older adults managing complex medication regimens. Originality/value Rather than proposing new algorithmic architectures, this study presents a comprehensive empirical evaluation of transfer learning for pill monitoring. By shifting from an object detection paradigm to a binary image classification framework, it systematically assesses the trade-offs between predictive performance and hardware efficiency. Leveraging lightweight architectures and a dataset collected under structured, deployment representative conditions, it provides a foundation for future research in automated medication adherence systems with enhanced scalability and practical applicability.

Data Technologies and Applications
Grupo de Investigação em Engenharia e Computação Inteligente para a Inovação e o Desenvolvimento (PT), Polytechnic Institute of Porto (PT)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon