Segmentation and Optimal Region Selection of Physiological Signals using Deep Neural Networks and Combinatorial Optimization