{'fraction_non_alphanumeric': 0.021367521367521368, 'fraction_numerical': 0.010683760683760684, 'mean_word_length': 5.300448430493273, '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}}
Arrhythmia detection from heartbeat using k-nearest neighbor classifier

Automatic interpretation of electrocardiography provides a non-invasive and inexpensive technique to analyze the heart activity for different cardiac conditions. The emergence of smartphones and wireless networks has made it possible to perform continuous Holter monitoring on patients or potential patients. Recently, much attention has been paid to the development of the monitoring methodologies of heart activity, which include both the detection of heartbeats in electrocardiography and the classification of types of heartbeats. However, many studies have focused on classifying limited types of heartbeats. We propose a system for classification into 17 types of heartbeats. This system consists of two parts, the detection and classification of heartbeats. The system detects heartbeats through repetitive features and classifies them using a A-nearest neighbor algorithm. Features such as the QRS complex and P wave were accurately extracted using the Pan-Tompkins algorithm. For the classifier, the distance metric is an adaptation of locally weighted regression. The system was validated with the MIT-BIH Arrhythmia Database. The system achieved a sensitivity of 97.22 % and a specificity of 97.4 % for heartbeat detection. The system also achieved a sensitivity of 97.1 % and a specificity of 96.9 % for classification.