The present invention relates to a system for delivering a drug to a patient, which comprises at least one electro-physical sensor, a control unit and a drug-delivery device adapted to contain at least one drug to be delivered to such patient. The sensor and control unit are capable of determining a physiological state in a patient wearing the sensor, and the control unit is capable of issuing instructions to the drug-delivery device so as to deliver the drug to the patient at a flow-rate which is a function of the physiological state determined.