Artificial Intelligence Integration Into Hospital Medication Management: Combining Medication Demand Predictive Analysis, Medication Pattern Basket Analysis And Patient Feedback Sentiment Analysis

Authors

  • Mohammed Atta Doctoral Candidate, Faculty of Business Administration, Arab Academy for Science and Technology and Maritime Transport, Cairo, Egypt
  • Aiman Ragab Professor, Dean, Graduate School of Business, Arab Academy for Science and Technology and Maritime Transport, Alexandria, Egypt
  • Mohammed Abdel Salam Professor, Dean of International Postgraduate Programs, Arab Academy for Science and Technology and Maritime Transport, Alexandria, Egypt
  • Mohammed Mahmoud Professor, College of Management and Technology, Arab Academy for Science and Technology and Maritime Transport, Alexandria, Egypt

DOI:

https://doi.org/10.29284/py2gz729

Keywords:

Artificial Intelligence (AI); Medication management; Hospital pharmacy; Machine learning in healthcare, Linear regression; Basket analysis; Pharmacy management.

Abstract

Background: Hospital systems face persistent challenges in efficient medication administration, particularly in balancing inventory levels and addressing patient satisfaction. While AI has shown promise in healthcare, there remains a lack of integrated multi-model frameworks tailored to regional healthcare environments.

Objective: This study aims to develop, implement, and evaluate an integrated artificial intelligence framework that combines medication demand prediction, pattern basket analysis, and patient sentiment analysis to optimize medication management in outpatient pharmacies in hospitals.

Methods: A regression-based demand prediction model was created using a 36-month dataset (January 2022–December 2024) that included 300 different types of medications. In order to find co-prescription patterns, basket analysis was performed on 200 prescriptions (70 acute care, 130 chronic disease cases), and sentiment analysis was used to categorize patient feedback into positive, neutral, and negative groups.

Results: The demand prediction model for monthly medication orders had an R2 value of 0.918 and forecasting accuracy of 83.3%. Basket analysis was used to find clinically significant co-prescription relationships, which pharmacists validated. Sentiment analysis produced an 89.4% validation accuracy. Restrictions include data from three hospitals only, and privacy issues have limited generalizability. The true synergy occurs within the integration of the three models, where these outputs are triangulated into three actionable pillars.

Conclusions: The integrated AI framework demonstrates significant potential to enhance clinical safety and inventory efficiency in hospital pharmacies. Future research should focus on cross-hospital validation and larger datasets to increase scalability.

References

1. Graafsma J, M. R. v. d. G. E. K.-Ç. F. D. H. H. R. K. J. v. d. B. P., 2024. The use of artificial intelligence to optimize medication alerts generated by clinical decision support systems: a scoping review. JAMIA.

2. González-Pérez Y, M. D. A. M. S. J., 2024. Approaching artificial intelligence to Hospital Pharmacy. Sociedad Española de Farmacia Hospitalaria.

3. Hasan, R., 2025. Developing and implementing AI-driven models for demand forecasting in US supply chains: A comprehensive approach to enhancing predictive accuracy. Edelweiss Applied Science and Technology.

4. Nuaimi, B. T. A., 2025. Predicting Hospital Medicine Needs Based on a Multiple Linear Regression Model. Applied Innovations in IT (ICAIIT).

5. Aggarwal, I., 2025. Sentiment Analysis in Healthcare: A Comparison of VADER, BERT, and Flair NLP Models on Patient Reviews of Pain Management Physicians. Cureus Journal of Medical Science.

6. Islam, R., 2024. Integrating Demand Forecasting and EOQ for Inventory Management in the Pharmaceutical Sector. s.l., IEOM Society International, USA.

7. Rathipriya, R., 2022. Demand forecasting model for time-series pharmaceutical data using shallow and deep neural network model. Neural Computing & Applications.

8. Yoosofan, A., 2015. Identifying Association Rules among Drugs in Prescription of a Single Drugstore Using Apriori Method. Intelligent Information Management.

9. Faquetti, M. L., 2022. Identification of polypharmacy patterns in new-users of metformin using the Apriori algorithm: A novel framework for investigating concomitant drug utilization through association rule mining. International Society for Pharmacoepidemiology.

10. Steven A. Greenstein, V. V., 2024. Application of sentiment and word frequency analysis of physician review sites to evaluate refractive surgery care. Advances in Ophthalmology Practice and Research.

Downloads

Published

2026-02-10

Issue

Section

Articles

How to Cite

[1]
M. Atta, A. Ragab, M. A. Salam, and M. Mahmoud, “Artificial Intelligence Integration Into Hospital Medication Management: Combining Medication Demand Predictive Analysis, Medication Pattern Basket Analysis And Patient Feedback Sentiment Analysis”, IJASIS, pp. 1870–1879, Feb. 2026, doi: 10.29284/py2gz729.

Share