{'fraction_non_alphanumeric': 0.024263431542461005, 'fraction_numerical': 0.004332755632582322, 'mean_word_length': 5.1436170212765955, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Classification of Sleep Stage with Biosignal Images Using Convolutional Neural Networks

Clinicians and researchers divide sleep periods into different sleep stages to analyze the quality of sleep. Despite advances in machine learning, sleep-stage classification is still performed manually. The classification process is tedious and time-consuming, but its automation has not yet been achieved. Another problem is low accuracy due to inconsistencies between somnologists. In this paper, we propose a method to classify sleep stages using a convolutional neural network. The network is trained with EEG and EOG images of time and frequency domains. The images of the biosignal are appropriate as inputs to the network, as these are natural inputs provided to somnologists in polysomnography. To validate the network, the sleep-stage classifier was trained and tested using the public Sleep-EDFx dataset. The results show that the proposed method achieves state-of-the-art performance on the Sleep-EDFx (accuracy 94%, F1 94%). The results demonstrate that the classifier is able to learn features described in the sleep scoring manual from the sleep data.