0368 Real-Time Sleep Stage and EEG Feature Detection for Closed-Loop Neuromodulation | Synapse