Anaesthesia

EEG in anesthesia is useful in: