An end-to-end framework for real-time automatic sleep stage classification | Synapse