Systems and methods are disclosed for detecting neural, biological, or
other electrical signals generated within a patient's body and processing
those signals to generate a control signal that may control the delivery
of a biologic, therapeutic, or other agent, such as a drug. Embodiments
include a system having a sensor implanted in a patient's brain to detect
neural signals used to control delivery of a drug to the patient. The
system may also control an internal and/or external device, such as a
prosthetic limb, and control delivery of a drug to increase the
performance of the system and/or the controlled device.