Integrating deep learning and critical slowing theory for automated epileptic detection and seizure prediction | Synapse