Closed-loop Administration of General Anaesthesia: From Sensor to Medical Device