Open-access Rational Drug Use Support System: design, artificial intelligence integration, and pilot feasibility trial

SUMMARY

OBJECTIVE:  The Rational Drug Use Support System was developed to assist patients in using the right drug, at the right time and at the right dose according to their treatment protocols. The aim of this study was to evaluate the performance of an artificial intelligence-enhanced mobile application designed to support rational drug use and to assess its feasibility and usability through a pilot trial.

METHODS:  The system includes an artificial intelligence -powered mobile application and a web-based interface integrating convolutional neural networks and object detection algorithms for human activity recognition. To build an image library, real patient videos were recorded in a hospital setting under physician supervision. A total of 357 original medication-intake videos were collected from 31 patients, which were then segmented into 1,626 short clips to train the artificial intelligence model. The system was first tested under controlled laboratory conditions and then evaluated for feasibility in a hospital pilot trial involving eight participants over 15 days.

RESULTS:  The proposed artificial intelligence model achieved 94% accuracy in recognizing medication intake activities in the test set, suggesting promising performance that warrants further evaluation. Exploratory analyses of the 36-Item Short Form Health Survey Questionnaire administered to patients who utilized the mobile application for 15 days revealed improvements in the domains of social functioning, vitality, and mental health.

CONCLUSION:  The findings suggest that the "Rational Drug Use Support System" appears feasible for implementation in telemedicine and clinical settings to support rational drug use and patient engagement in chronic disease management. However, larger controlled studies are warranted to confirm these preliminary findings.

KEYWORDS:
Digital health; Drug adherence; Telemedicine; Artificial intelligence; Mobile health

INTRODUCTION

Chronic diseases remain a major global health challenge and are responsible for a substantial share of mortality, years of life lost, and long-term morbidity worldwide1,2. A major barrier to effective chronic disease management is rational drug use and deviation from prescribed treatment protocols. The World Health Organization has long emphasized that medication-related problems are common and that many patients do not take medicines as prescribed3. Poor adherence can reduce treatment effectiveness, increase preventable complications and hospitalizations, and, particularly in antimicrobial use, contribute to drug resistance. In practice, inappropriate drug use may include missed doses, delays, or self-directed changes in dose or treatment duration, all of which can lead to substantial clinical and economic consequences.

Digital health interventions, particularly mobile health (mHealth) applications, have therefore gained attention as scalable tools to support self-management, especially in settings where smartphone use is widespread4. In this context, digitally supported care models such as telehealth and telemedicine have become increasingly relevant for maintaining continuity of care, supporting rational drug use, and reducing avoidable healthcare use5,6.

In this study, we developed an artificialintelligence (AI)-driven Rational Drug Use Support System to support patients in taking the right medication at the right time and dose. The system was developed and evaluated in a real hospital setting under clinical supervision. The study aimed to assess the performance of the AI-enabled system in objectively verifying medication intake activities and to evaluate its feasibility and usability in routine clinical practice through a pilot trial.

METHODS

Study design and participants

This study used a multi-stage design to develop and clinically evaluate a Rational Drug Use Support System. The clinical component was designed as a feasibility pilot study rather than an efficacy trial. A preliminary survey of 300 patients was conducted to examine factors related to rational drug use and technology use among individuals with chronic diseases7. Of these, 31 volunteered to contribute to image library development, and eight were subsequently selected by computer-generated randomization for inclusion in the hospital-based pilot trial. Eligible participants were adults aged 18 years or older who were receiving continuous medication, able to swallow and self-administer medication independently, capable of providing written informed consent, and had basic technological literacy. Individuals with cognitive impairment, severe sensory or functional limitations affecting independent drug use, severe visual impairment, life expectancy under two years, pregnancy or breastfeeding, or inability to self-administer medication were excluded.

Image library development and artificial intelligence model training

Video data were collected in the inpatient unit of a university internal medicine department, under physician supervision and in accordance with privacy safeguards. Before recording, demographic characteristics, prescribed medication count, and general health status were documented, and body mass index (BMI) was calculated as weight in kilograms divided by height in meters squared8. To increase variability in the training data, participants were recorded while sitting, standing, and lying in bed. Videos were captured using three smartphones mounted on tripods and positioned to provide a clear view of the face and upper body. Each recording followed a two-step procedure in which the participant first showed the medication package or blister pack to the camera and then completed the medication-taking action. For each participant, 10–14 recordings were obtained under varying hand-use, lighting, and background conditions. Individual recordings lasted 2–6 s, yielding 357 original videos from 31 participants. All videos were anonymized and securely transferred for AI model development.

For model development, the 357 original recordings were randomly partitioned into training, validation, and test sets at a ratio of 60:20:20. The training set was used for model parameter optimization, the validation set was used for hyperparameter tuning and early stopping to prevent overfitting, and the test set was reserved exclusively for final performance evaluation.

From these 357 recordings, 1,626 short clips of 2–6 s were generated to capture different stages of medication intake and increase within-class variability. To improve generalizability and reduce confusion with visually similar actions, the dataset was expanded with additional eating clips from publicly available sources and the UCF101 (A Dataset of 101 Human Action Classes From Videos in the Wild) Human Activity Recognition dataset, together with clips from 11 unrelated activities used as negative examples.

Medication-intake actions were detected using the Personalized Human Activity Recognition (PHAR) framework9, which combines object detection with human activity recognition (HAR) to focus on regions most relevant to the target behavior. Two PHAR-based architectures were implemented in line with previous HAR studies: a Convolutional Neural Network Long Short-Term Memory (CNN–LSTM) model and a 3D convolutional neural network (3D-CNN)7,,9,10,11. These were developed as two model variants, Two-Dimensional Motion Feature Maps (MFM2D) and Three-Dimensional Motion Feature Maps (MFM3D), which shared the same input structure and preprocessing pipeline but differed in temporal modelling.

The PHAR input consisted of 16 temporally ordered frames, referred to as the Main Frame sequence (MFRM). Because medication-taking and drinking actions mainly involve coordinated movements of the face, hands, and upper body, object detection was used to generate three additional focus views for each frame: Face Frame (FFRM), Hands Frame (HFRM), and Person Frame (PFRM).

The validation set was used to monitor training and limit overfitting, whereas the test set was reserved for final performance evaluation. Because the dataset contained a substantial number of negative examples, model performance was assessed not only by accuracy but also by precision, recall, and F1-score for the three target classes: Taking Medicine, Drinking Water, and Eating. The F1-score was considered the primary balanced performance metric.

System architecture and functionality

The Rational Drug Use Support System was implemented as a client–server architecture comprising a physician-facing web platform, a patient-facing mobile application, and a central server hosting the trained PHAR model. After authentication, it synchronized the patient's medication schedule, delivered reminders at predefined times, and prompted the user to record a short video of the medication intake process. These data were securely transmitted to the server, where the PHAR model classified the action and generated a medication intake outcome.

Pilot feasibility study

Feasibility evaluation was conducted through a prospective observational pilot study involving eight participants selected from the video dataset group. The study period was 15 days. The primary focus of this pilot was to assess feasibility, usability, and user acceptance rather than clinical efficacy. Key feasibility outcomes included successful video uploads, system usability, application adherence, and medication verification success rates. At baseline, all participants received standardized training on application use and alert messages. Physicians created user accounts through the web platform and entered the prescribed treatment schedules, which were then synchronized to participants’ smartphones. Secondary exploratory outcomes were assessed using the 36-Item Short Form Health Survey (SF-36) Short Form Health Survey at baseline (day 0) and post-intervention (day 15), together with a study-specific patient satisfaction questionnaire12–14.

Statistical analysis

All data were recorded and analyzed using Statistical Package for the Social Sciences (SPSS) Statistics (version 25.0; IBM/SPSS). Analyses were performed separately for the video dataset group and the clinical pilot group. Normality of continuous variables was assessed using the Kolmogorov-Smirnov test. Normally distributed variables are presented as mean±standard deviation, and non-normally distributed variables as median (min–max). Associations between categorical variables were examined using the chi-square test. For the pilot study, SF-36 scores at baseline and day 15 were compared using paired analyses, with the paired t-test applied for normally distributed differences and the Wilcoxon signed-rank test used otherwise. Statistical significance was set at a two-sided p<0.05.

RESULTS

Participant characteristics

The image library cohort comprised 31 participants with a mean age of 44±18 years, of whom 67.7% were female. Polypharmacy, defined as the use of four or more medications, was observed in 6.5% of participants. Demographic and clinical characteristics of this cohort are presented in Table 1.

Table 1
Basic data of participants who used to mobile application by gender.

The pilot study included eight participants with a mean age of 38 years (range: 30–53) and a mean BMI of 25.3±3.3 kg/m². Several indicators pointed to a need for medication intake support: 50% reported frequently forgetting medication intake, 25% reported receiving assistance for drug use, and 87.5% reported both discarding 1–3 boxes of medication annually due to expiry and keeping unfinished medication boxes at home. Before using the system, 75% indicated that they expected the application to be beneficial. Participant characteristics for the pilot group are summarized in Table 2. Within this small sample, gender differences were observed for BMI (p=0.002) and living situation (p=0.028).

Table 2
Comparison of the general quality of life of the participants using the mobile application, evaluated by the 36-item Short Form Health Survey scale before and after the application using.

Artificial intelligence model performance

The proposed AI model achieved 94% accuracy on the test set in recognizing medication intake activities. The MFM3D variant demonstrated superior performance compared to the MFM2D variant, particularly for the "Taking Medicine" activity class. Precision, recall, and F1-scores for the target classes were consistently high (>0.90), indicating robust classification performance.

Pilot feasibility outcomes

With regard to feasibility outcomes, all eight participants successfully completed the 15-day study period. The application adherence rate was high, with participants recording videos for the majority of their scheduled medication intake times. Successful video upload rates exceeded 90%, and the system demonstrated reliable medication verification. System usability was rated favorably by participants.

Exploratory health-related quality of life outcomes

Health-related quality of life was assessed using the SF-36 at baseline and after 15 days of application use. General health scores did not change significantly (70.6±17.4 vs. 71.8±12.5; p=0.104). Exploratory analyses revealed statistically significant improvements in vitality/energy (p=0.001), mental health/emotional well-being (p=0.031), and social functioning (p=0.019), whereas no significant differences were found in the remaining domains (Table 2).

User satisfaction

At the end of the pilot, participants reported high satisfaction with the system. Overall, 75% stated that the application supported rational drug use of their medication regimen, while 87.5% reported that reminders were effective and that the system helped them manage drug use independently. Interoperability was also identified as a key priority, with 87.5% indicating that integration with public and private hospitals, pharmacies, and the national e-Nabiz ® personal health system would be useful (Table 3).

Table 3
Satisfaction survey of users of the Rational Drug Use Support System mobile application regarding the pilot trial.

DISCUSSION

This study describes the development and preliminary feasibility evaluation of an AI-enabled Rational Drug Use Support System that integrates a PHAR pipeline for the objective verification of medication intake. The primary aim was to assess the performance of the AI system and evaluate its feasibility and usability in a clinical setting, rather than to establish clinical effectiveness. Two main findings emerged. First, the proposed PHAR variants (MFM2D and MFM3D) outperformed the baseline architectures used in this study, particularly for the "Taking Medicine" activity. Second, in the short hospital-based pilot, participants demonstrated high engagement with the system and reported favorable usability, together with exploratory improvements in selected SF-36 domains.

Previous studies on medication intake monitoring have reported a wide range of classification performance across image- and sensor-based systems. Scoping evidence suggests that accuracies often remain below the mid-90% range15, although some multimodal approaches have achieved higher values under specific conditions16. The performance observed in the present study is broadly consistent with this literature and supports the feasibility of vision-based approaches for objective intake verification in controlled settings. Importantly, reducing false positives is likely to be critical for sustained use, as frequent incorrect alerts or non-adherence flags may increase user burden and contribute to disengagement over time17. From this perspective, combining personalized attention to relevant body regions with temporal modelling may improve the reliability of AI-driven monitoring, particularly when activities are visually confusable.

Although the pilot was not designed to establish clinical efficacy, participant-reported outcomes showed exploratory improvements over the 15-day period in vitality, mental health, and social functioning. The direction of change observed in this pilot is also consistent with broader evidence suggesting that mHealth interventions can support self-management and may improve patient-reported outcomes in chronic illness18. However, given the exploratory design of the study, the absence of a control group, and the small sample size, these findings should be interpreted as preliminary and hypothesis-generating rather than as evidence of clinical effectiveness. It is possible that the observed improvements reflect regression to the mean, placebo effects, or increased attention from study participation rather than the intervention itself. These findings require confirmation in larger and more rigorous evaluations with control groups and longer follow-up periods.

User feedback also supported the feasibility of the system. Most participants reported that reminders were helpful and that the system enabled them to manage drug use more independently, in line with earlier findings on AI-assisted medication management tools19. Participants also emphasized the importance of interoperability, particularly integration with hospitals, pharmacies, and the national personal health record platform, e-Nabiz ®20. Such integration could simplify medication scheduling, reduce manual data entry, and support continuity across care settings, although it would also require careful attention to governance, authentication, and data protection.

A major strength of this study is the end-to-end development and evaluation of an integrated medication intake support system using real patient videos collected in a clinical environment. This setting enhances the ecological validity of both the model-development pipeline and the usability assessment. In addition, combining patient-reported Health-Related Quality of Life (HRQoL) (SF-36) with satisfaction feedback provides a broader perspective on both experiential and outcome-related dimensions.

Several limitations should be acknowledged. The pilot included a small sample (n=8) and a short follow-up period of 15 days, which limits generalizability and precludes firm conclusions about clinical effectiveness. The absence of a control group further limits the interpretation of the observed SF-36 changes. In addition, the study population was relatively young, and the proportion of participants with polypharmacy was low, which may limit the applicability of the findings to older adults and patients with cognitive impairment who are at highest risk for medication-related problems. The HRQoL changes observed should therefore be regarded as exploratory and hypothesis-generating.

Future research should include larger, controlled trials with longer follow-up periods to evaluate the clinical effectiveness of the system. Studies should also specifically target older adult populations and patients with polypharmacy, who stand to benefit most from such interventions. Additionally, objective measures of medication adherence should be incorporated alongside patient-reported outcomes to provide a more comprehensive assessment of the system's impact.

CONCLUSION

This study introduced and preliminarily evaluated an AI-enabled Rational Drug Use Support System designed to support rational drug use via automated activity recognition within a mobile, patient-facing workflow. The findings suggest that the system appears feasible for implementation in clinical settings, with high AI classification accuracy and favorable user satisfaction reported in a small pilot sample. However, the observed improvements in HRQoL domains should be interpreted as exploratory, and larger controlled studies are needed to confirm these preliminary findings and establish clinical effectiveness. Overall, the findings support the feasibility of combining mobile health delivery with AI-based verification as a complementary approach to conventional chronic disease management.

Funding:

this study was funded by the Scientific and Technological Research Council of Türkiye (TÜBİTAK) Project no. 7218037. Except for this, this research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

ETHICAL APPROVAL

Ethical approval for the study was obtained from the Istanbul University Faculty of Medicine Clinical Research Ethics Committee (Approval No: 10.12.2021/1895). Participants in this clinical pilot trial were provided with both oral and written information about the study and gave their written informed consent for participation and publication.

DATA AVAILABILITY STATEMENT

The datasets generated and/or analyzed during the current study are available from the corresponding author upon reasonable request.

REFERENCES

  • 1 GBD 2016 Causes of Death Collaborators. Global, regional, and national age-sex specific mortality for 264 causes of death, 1980–2016: a systematic analysis for the Global Burden of Disease Study 2016. Lancet. 2017;390(10100):1151-210. https://doi.org/10.1016/S0140-6736(17)32152-9
    » https://doi.org/10.1016/S0140-6736(17)32152-9
  • 2 GBD 2017 Causes of Death Collaborators. Global, regional, and national age-sex-specific mortality for 282 causes of death in 195 countries and territories, 1980–2017: a systematic analysis for the Global Burden of Disease Study 2017. Lancet. 2018;392(10159):1736-88. https://doi.org/10.1016/S0140-6736(18)32203-7
    » https://doi.org/10.1016/S0140-6736(18)32203-7
  • 3 World Health Organization. Adherence to long-term therapies: evidence for action. World Health Organization; 2003. [cited on 2025 Nov 10]. Available from: https://iris.who.int/handle/10665/42682
    » https://iris.who.int/handle/10665/42682
  • 4 Kahraman, M, Çakmak R, Satman I, Karşıdağ K, Öztürk Ş, Çelik MÖ, et al. The effect of smartphone apps and technology compatibility on diabetes control in diabetic patients using insulin. J Istanbul Fac Med. 2021;84(4):543-53. https://doi.org/10.26650/IUITFD.2021.869948
    » https://doi.org/10.26650/IUITFD.2021.869948
  • 5 Chudasama YV, Gillies CL, Zaccardi F, Coles B, Davies MJ, Seidu S, et al. Impact of COVID-19 on routine care for chronic diseases: a global survey of views from healthcare professionals. Diabetes Metab Syndr. 2020;14(5):965-7. https://doi.org/10.1016/j.dsx.2020.06.042
    » https://doi.org/10.1016/j.dsx.2020.06.042
  • 6 Mashoudy KD, Perez SM, Nouri K. From diagnosis to intervention: a review of telemedicine's role in skin cancer care. Arch Dermatol Res. 2024;2;316(5):139. https://doi.org/10.1007/s00403-024-02884-7
    » https://doi.org/10.1007/s00403-024-02884-7
  • 7 Girshick R, Donahue J, Darrell T, Malik J. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. In proceeding of the 2014 IEEE Conference on Computer Vision and Pattern Recognition, 2014, p. 580-7. https://doi.org/10.1109/CVPR.2014.81
    » https://doi.org/10.1109/CVPR.2014.81
  • 8 World Health Organization. Obesity and overweight. 2025. [cited on 2024 Sep 4]. Available from: https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight
    » https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight
  • 9 Eriş HA, Ertürk MA, Aydın MA. A framework for personalized human activity recognition. Int J Pattern Recognit Artif Intell. 2023;37(10):2356016. https://doi.org/10.1142/s0218001423560165
    » https://doi.org/10.1142/s0218001423560165
  • 10 Ferner RE, Aronson JK. Communicating information about drug safety. BMJ 2006;333:143-5.
  • 11 Ullah A, Ahmad J, Muhammad K, Sajjad M, Baik SW. Action recognition in video sequences using deep bi-directional LSTM with CNN features. IEEE Access; 2018;6:1155-66. https://doi.org/10.1109/ACCESS.2017.2778011
    » https://doi.org/10.1109/ACCESS.2017.2778011
  • 12 Mithe R, Supriya I, Nilam D. Optical character recognition. Int J Recent Technol Eng (IJRTE). 2013;2(1):72-5.
  • 13 Redmon J, Divvala S, Girshick R, Farhad A. You only look once: unified, real-time object detection. IEEE. 2016;779-88. https://doi.org/10.1109/CVPR.2016.91
    » https://doi.org/10.1109/CVPR.2016.91
  • 14 Kocyigit H. Kısa form-36 (kf-36)'nın Türkçe versiyonunun güvenilirliği ve geçerliliği. İlaç ve Tedavi Dergisi. 1999;12(1):102-6.
  • 15 Bohlmann A, Mostafa J, Kumar M. Machine learning and medication adherence: scoping review. JMIRx Med. 2021;2(4): e26993.
  • 16 Uppuluri V. Real-time monitoring of patient adherence using AI. Int J Health Sci. 2025;8(3):52-68.
  • 17 Pulice E, Coustasse A. AI-driven solutions promote medication adherence. Pharmacy Times; 2024. p. 42-4.
  • 18 Rowland SP, Fitzgerald JE, Holme T, Powell J, McGregor A. What is the clinical value of mHealth for patients? NPJ Digit Med. 2020;3(1):4. https://doi.org/10.1038/s41746-019-0206-x
    » https://doi.org/10.1038/s41746-019-0206-x
  • 19 Republic of Türkiye Ministry of Health. E-Nabiz personal health record system. 2024. [cited on 2025 Nov 19]. Available from: https://enabiz.gov.tr
    » https://enabiz.gov.tr
  • 20 Moreno-Ligero M, Moral-Munoz JA, Salazar A, Failde I. mHealth intervention for improving pain, quality of life, and functional disability in patients with chronic pain: systematic review. JMIR mHealth uHealth. 2023;11(1):e40844. https://doi.org/10.2196/40844
    » https://doi.org/10.2196/40844

*Corresponding author:

mesragunduz@gmail.com

Conflicts of interest:

the authors declare there is no conflicts of interest.

Scientific Editor:

José Maria Soares Júnior https://orcid.org/0000-0003-0774-9404

Publication Dates

  • Publication in this collection
    16 Oct 2026
  • Date of issue
    2026

History

  • Received
    13 Apr 2026
  • Accepted
    19 July 2026
location_on
Associação Médica Brasileira R. São Carlos do Pinhal, 324, 01333-903 São Paulo SP - Brazil, Tel: +55 11 3178-6800, Fax: +55 11 3178-6816 - São Paulo - SP - Brazil
E-mail: ramb@amb.org.br
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo