Smart Formulation: AI-Driven Web Platform for Optimization and Stability Prediction of Compounded Pharmaceuticals Using KNIME
- PMID: 40872628
- PMCID: PMC12389346
- DOI: 10.3390/ph18081240
Smart Formulation: AI-Driven Web Platform for Optimization and Stability Prediction of Compounded Pharmaceuticals Using KNIME
Abstract
Background/Objectives: Smart Formulation is an artificial intelligence-based platform designed to predict the Beyond Use Dates (BUDs) of compounded oral solid dosage forms. The study aims to develop a decision-support tool for pharmacists by integrating molecular, formulation, and environmental parameters to assist in optimizing the stability of extemporaneous preparations. Methods: A tree ensemble regression model was trained using a curated dataset of 55 experimental BUD values collected from the Stabilis database. Each formulation was encoded with molecular descriptors, excipient composition, packaging type, and storage conditions. The model was implemented using the KNIME platform, allowing the integration of cheminformatics and machine learning workflows. After training, the model was used to predict BUDs for 3166 APIs under various formulation and storage scenarios. Results: The analysis revealed a significant impact of excipient type, number, and environmental conditions on API stability. APIs with lower LogP values generally exhibited greater stability, particularly when formulated with a single excipient. Excipients such as cellulose, silica, sucrose, and mannitol were associated with improved stability, whereas HPMC and lactose contributed to faster degradation. The use of two excipients instead of one frequently resulted in reduced BUDs, possibly due to moisture redistribution or phase separation effects. Conclusions: Smart Formulation represents a valuable contribution to computational pharmaceutics, bridging theoretical formulation design with practical compounding needs. The platform offers a scalable, cost-effective alternative to traditional stability testing and is already available for use by healthcare professionals. Its implementation in hospital and community pharmacies may help mitigate drug shortages, support formulation standardization, and improve patient care. Future developments will focus on real-time stability monitoring and adaptive learning for enhanced precision.
Keywords: beyond-use date prediction; drug compounding; excipients; machine learning; molecular descriptors; pharmaceutical stability.
Conflict of interest statement
Author Stefan Helfrich was employed by the company KNIME GmbH. Author Fabien Bruno was employed by the company Pharmacie Delpech. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Figures











References
-
- Seghers F., Taylor M.M., Storey A., Dong J., Wi T.C., Wyber R., Ralston K., Nguimfack B.D. Securing the Supply of Benzathine Penicillin: A Global Perspective on Risks and Mitigation Strategies to Prevent Future Shortages. Int. Health. 2024;16:279–282. doi: 10.1093/inthealth/ihad087. - DOI - PMC - PubMed
-
- European Drug Shortages Formulary Project: Approval of Framework and Procedure Documents—European Directorate for the Quality of Medicines & HealthCare—EDQM. [(accessed on 26 March 2025)]. Available online: https://www.edqm.eu/en/-/european-drug-shortages-formulary-project-appro....
-
- Allen L.V. PreScription: Shortages Continue—Compounding Pharmacies Fill the Gap… Again! Int. J. Pharm. Compd. 2023;27:180. - PubMed
LinkOut - more resources
Full Text Sources