{'fraction_non_alphanumeric': 0.025811823480432972, 'fraction_numerical': 0.0033305578684429643, 'mean_word_length': 5.227979274611399, '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}}
A Real Time and Lossless Encoding Scheme for Patch Electrocardiogram Monitors

Cardiovascular diseases are the leading cause of death worldwide. Due to advancements facilitating the integration of electric and adhesive technologies, long-term patch electrocardiogram (ECG) monitors (PEMs) are currently used to conduct daily continuous cardiac function assessments. This paper presents an ECG encoding scheme for joint lossless data compression and heartbeat detection to minimize the circuit footprint size and power consumption of a PEM. The proposed encoding scheme supports two operation modes: fixed-block mode and dynamic-block mode. Both modes compress ECG data losslessly, but only dynamic-block mode supports the heartbeat detection feature. The whole encoding scheme was implemented on a C-platform and tested with ECG data from MIT/BIH arrhythmia databases. A compression ratio of 2.1 could be achieved with a normal heartbeat. Dynamic-block mode provides heartbeat detection accuracy at a rate higher than 98%. Fixed-block mode was also implemented on the field-programmable gate array, and could be used as a chip for using analog-to-digital convertor-ready signals as an operation clock.