Time series analysis of polysomnography by using deep learning