A Learning System for Pharmaceutical Drug Delivery