{'fraction_non_alphanumeric': 0.022966507177033493, 'fraction_numerical': 0.0028708133971291866, 'mean_word_length': 5.0813953488372094, '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}}
In-Sleep Activity Detecting Algorithm for Sleepcare System

High sleep quality enhances life while helping to improve health. Sleep quality increases with fewer sleep disorders such as in-sleep activity is assessed based on such sleep disorders as indicators. In this context, the measurement of in-sleep activity will enable the analysis of sleep quality. This study suggests an algorithm to measure the number of in-sleep activity using a pressure sensor. Movements are detected using the vibration data that is measured from the sensor during tossing and turning, and the pattern of changing pressure according to person's posture in sleep is analyzed. Measuring in-sleep activity using this algorithm will enable the evaluation of sleep quality. Also, to evaluate the algorithm, an actual test environment was constructed where in-sleep activities were measured, and it was determined whether they were counted accurately. As a result, it presented an average cognitive accuracy of 98.6%, and the availability of the algorithm was confirmed.