Skip to main content

ORIGINAL RESEARCH article

Front. Cardiovasc. Med., 01 July 2022
Sec. General Cardiovascular Medicine
This article is part of the Research Topic Health Technology Assessment in Cardiovascular Diseases View all 17 articles

CACHET-CADB: A Contextualized Ambulatory Electrocardiography Arrhythmia Dataset

  • 1Department of Health Technology, Technical University of Denmark, Kongens Lyngby, Denmark
  • 2Department of Cardiology, Bispebjerg-Frederiksberg Hospital, Copenhagen, Denmark
  • 3U. N. Mehta Institute of Cardiology and Research Centre, Civil Hospital Campus, and SAL Hospital, Ahmedabad, India

ECG is a non-invasive tool for arrhythmia detection. In recent years, wearable ECG-based ambulatory arrhythmia monitoring has gained increasing attention. However, arrhythmia detection algorithms trained on existing public arrhythmia databases show higher FPR when applied to such ambulatory ECG recordings. It is primarily because the existing public databases are relatively clean as they are recorded using clinical-grade ECG devices in controlled clinical environments. They may not represent the signal quality and artifacts present in ambulatory patient-operated ECG. To help build and evaluate arrhythmia detection algorithms that can work on wearable ECG from free-living conditions, we present the design and development of the CACHET-CADB, a multi-site contextualized ECG database from free-living conditions. The CACHET-CADB is subpart of the REAFEL study, which aims at reaching the frail elderly patient to optimize the diagnosis of atrial fibrillation. In contrast to the existing databases, along with the ECG, CACHET-CADB also provides the continuous recording of patients' contextual data such as activities, body positions, movement accelerations, symptoms, stress level, and sleep quality. These contextual data can aid in improving the machine/deep learning-based automated arrhythmia detection algorithms on patient-operated wearable ECG. Currently, CACHET-CADB has 259 days of contextualized ECG recordings from 24 patients and 1,602 manually annotated 10 s heart-rhythm samples. The length of the ECG records in the CACHET-CADB varies from 24 h to 3 weeks. The patient's ambulatory context information (activities, movement acceleration, body position, etc.) is extracted for every 10 s interval cumulatively. From the analysis, nearly 11% of the ECG data in the database is found to be noisy. A software toolkit for the use of the CACHET-CADB is also provided.

1. Introduction and Background

A heart arrhythmia like AF alone affects nearly 2% of the global adult population and is one of the major contributors to CVD related morbid conditions and mortality (1, 2). The management of AF includes anti-coagulation to prevent strokes and heart rhythm-modifier medications (3, 4). Also, therapies like electrophysiological pulmonary-vein isolation (PVI) can also be offered to selected and suitable candidates with good curative results (5). However, for treatment to be effective in preventing further complications, early diagnosis and timely evaluation of AF plays a vital role. Analysis of electrocardiogram (ECG) signals is a non-invasive and cost-effective way of diagnosing AF. Due to their transient nature, paroxysmal AF remains under diagnosed in baseline ECGs and require long-term ECG monitoring. However, long-term preemptive monitoring is challenging as manual analysis of days/weeks-long ECG needed for detecting paroxysmal AF is resource and time-consuming.

Over the years, many computer-based algorithms have been developed for faster and accurate detection of AF and other types of arrhythmias (6). More recently, with the advent of ML and DL, the field of computer-aided AF analysis has experienced a huge breakthrough (68). As compared to traditional ML and other feature engineering-based approaches, DL-based models can achieve end-to-end classification, thus removing the dependence on domain experts in the classification and stratification process. Despite all these advancements, one of the major challenge of using DL in AF classification is the availability of training and validation datasets. Although the DL algorithms can directly learn features from raw ECG data, it requires large and diverse datasets. The training data diversity helps the models to incorporate all the variations in inter/intra-personal ECG morphologies.

To meet this demand, many Internet ECG datasets such as the AFDB (9), MITDB (10), PTB-LX (11), CinCDB (12), OA-ADB (13), and DeepQ (14) have been published. Table 1 provides a summary of these publicly available arrhythmia databases. MITDB and AFDB are the earliest available ones and have been used extensively as a benchmark in training and evaluating ML/DL-based arrhythmia detection models (6, 7, 15).

TABLE 1
www.frontiersin.org

Table 1. Technical specifications and ECG annotation statistics of publicly available ECG databases. Freq, sampling frequency (Hz); Ch, no. of ECG channels.

Although the aforementioned databases have made a significant contribution for developing and evaluating arrhythmia detection models; generalization and comprehensive performance evaluation of such models under free-living conditions remain questionable and face a number of significant challenges (6, 15, 16):

Firstly, as mobile and wearable technology is advancing, wearable ECG devices have become available for longitudinal arrhythmia screening under free-living conditions. However, the majority of the current databases are either collected in controlled in-hospital settings or, in some cases, under the environments where patients are sitting without any motion. Therefore, the recordings are relatively clean and lack the ECG morphology changes and confounding artifacts that occur under free-living conditions. When the classification models trained on these datasets are applied to ambulatory wearable-based ECG recordings, they result in non-trivial false positives due to the degradation in the signal quality (18).

Secondly, the patient's context, such as physical activity and posture change, food intake (drinks or heavy meal), or mental stress, are known to introduce morphological changes in the ECG signal (19, 20). Existing databases only provide the raw ECG data, while information on the patient's context during the recording is missing. Recent systematic literature reviews of computer-aided arrhythmia analysis highlight that the arrhythmia detection in an ambulatory setting remains challenging and prone to mis-classification, without understanding the patient's context in which the ECG was undertaken (6, 21). Even during a manual ECG analysis, whenever a cardiologist finds 10 or 30 s of ECG segment inconclusive, they often look for the longer context of the patient's ECG and rely on their knowledge about arrhythmia epidemiology (22). Therefore, the patient's ambulatory context is essential for avoiding inappropriate classification due to “arrhythmia mimicking artifacts.” Recent databases like DeepQ (14) have tried to address this problem by providing ECG recordings under the following three activity classes viz. sitting, walking, and lying down. These are, however, still a very limited set of activities and are recorded under circumstances that are very discordant from the real-world free-living ambulatory settings.

Thirdly, databases are usually generated from a single center for a short time period (minutes or hours) on a homogeneous group of participants. Due to large variations that exist in the morphologies of ECG waveforms and the lack of diversity in current datasets, models trained on such datasets result in a large number of false positives when applied to ECG from different user contexts, ethnic characteristics, anthropomorphic features, gender, age group, and time-periods (6, 23, 24). For instance, a multi-scale convolutional neural networks (23) showed a 98.18% accuracy when trained and validated on the AFDB, but its accuracy was reduced to 94.93% when applied on a Chinese dataset collected under free-living conditions. Similarly, the model by Andersen et al. (25) trained on AFDB has an excellent performance in 5-fold cross-validation on AFDB; however, it resulted in 4.9% FPR on previously unseen NSR database from healthy individuals.

To complement the existing databases and to address some of the above-mentioned challenges, we present the CACHET-CADB. In contrast to the existing databases, CACHET-CADB provides the following unique features:

• It contains longitudinal wearable based ECG data from arrhythmia patients collected under free-living conditions, thus suitable for training and evaluating algorithms aimed at enabling real-time ambulatory ECG monitoring of the patients.

• Along with the ECG dataset, it also provides contextual data such as activities, body positions, movement accelerations, patient-reported events like symptoms experienced, sleep quality, stress level, and food intake. This contextualized ECG data can help make the end-to-end DL-based ECG classification models more explainable. Further, identifying the algorithm's source of errors in relation to the patient's ambulatory context can help in dynamically fine-tune it for those false-positives prone/inducing contexts under free-living conditions.

• Is multi-site and diverse (currently, Denmark and India but will be expanded further).

Currently, the CACHET-CADB contains 259 days long contextualized ECG data from 24 patients. It also comprises 1,602 annotations of 10 s long ECG-waveform, manually annotated by two independent qualified cardiologists into four different heart rhythm classes: AF, NSR, “noise,” and “other.” The CACHET-CADB is under continuous development, and annotations by cardiologists will be added to the database as they become available. The ECG annotation tool will be made public to increase the effort of crowd-sourcing the annotation process. Along with the dataset, a set of Python scripts and other software tools for data access, visualization, and data processing are available on the CACHET GitHub repository (26). The dataset is freely available at DTU Data (27) at DTU.

2. Methods

This section explains the data acquisition process, including ethical considerations, the data collection methods and technology, the data specifications, and the annotation process.

2.1. Data Acquisition

2.1.1. Ethical Consideration

The data for the CACHET-CADB was collected in India and Denmark. In Denmark, the study was exempted for ethical approval by the Danish Research Ethical Committee because the ECG recordings were only collected for technical purposes, and not to be used in a clinical setting (File # H-19071015). In India, the data collection was done with Mahatma Gandhi University of Medical Sciences and Technology (MGUMST), Jaipur, and the process complies with MGUMST's human participant's guideline and regulation as stated by the MGUMST Institutional Review Board (IRB). The approvals were granted on the ground that data collection was purely for technology development, and that the data would not be used for clinical diagnosis or treatment of the patients.

2.1.2. Recruitment

The participants were recruited during their out-patient arrhythmia clinic visits via a general announcement to participate in the data collection study. It was also made clear to participants that their participation was purely for research purposes, and the collected data would not be used in their ongoing clinical diagnosis or treatment. Preference was given to the participants with a known history of paroxysmal AF or high AF risk factors. All participants signed an informed consent form and allowed their data to be used and shared publicly after subject identity anonymization.

2.1.3. Data Collection Method

We used the mCardia system (28) for the data collection. It uses a single-channel chest-mounted wireless ECG Holter [the Movisens ECGMove4 (29)] and a mobile application for data collection (Figure 1). Participants wore the ECG device using two disposable adhesive wet Ag/AgCl electrodes. All data was forwarded to, and stored in the CARP (30), which is a secure and scalable cloud-based infrastructure for health data science hosted at DTU. Each participant installed the mCardia mobile application on his/her phone and continuously wore the ECG device for a minimum of 24 h and up to 3 weeks. Participants were instructed to change the ECG electrodes daily and fill in the patient-reported information (symptoms, stress levels, sleep quality, and food intake) in the mCardia app. They were also instructed to take off the ECG device only for charging or during bathing/shower. Further details on the mCardia system and CARP can be found at https://carp.cachet.dk/mcardia/.

FIGURE 1
www.frontiersin.org

Figure 1. Data collection setup: (i) a chest-mounted single channel wireless ECG monitor collecting ECG and inertial (movement) measurements, and (ii) the mCardia mobile application for collection of patient-reported data (28).

2.1.4. Anonymization and Data Trimming

The initial recording length varied from 24 h to 3 weeks. For better manageability, analysis, and data handling, recordings were trimmed and assigned an anonymous ID (see Figure 5). In each record, the first (0th) and the last days are of variable lengths, whereas the rest are 24 h long, starting from midnight.

2.2. ECG Annotation Process

Figure 2 shows the process used for annotating the ECG samples in the CACHET-CADB. A DL based AF detection model (25) was used to process the raw ECG recording. The AF onset and offset timestamps marked by the DL model were stored in CSV files. Thereafter, the segments between the onset and the offset were chopped into 10 s interval recordings and sent to two independent cardiologists for manual annotation via a mobile ECG annotation app. Figure 3 shows the user interface of the ECG annotation app used for the manual annotation. The annotation rules were discussed and agreed upon by the two cardiologists. A 10 s segment was assigned a label if it contained more than 50% of a particular rhythm type. If there were multiple rhythm classes in 10 s sample without having a majority (≥50%) of a particular class, then it was annotated as “others.” If artifacts in the 10 s signal precluded proper interpretation of the underlying rhythm, then the sample was annotated as “noise.” The annotations of the two independent cardiologists were compared for inter-observer agreement. If there were disagreement between the two cardiologists, the annotations were discarded. Thus, the final database only includes samples where there is an agreement between the two cardiologist's annotations.

FIGURE 2
www.frontiersin.org

Figure 2. Overview of data collection and annotation process.

FIGURE 3
www.frontiersin.org

Figure 3. Mobile application used for ECG annotation.

2.3. Processing Contextual Data

The collected contextual data is of two categories: (1) patient-reported data collected via the mCardia app, and (2) sensor-generated data which is passively collected from the sensors on the mobile phone and the ECG Movisens device. Table 2 provides an overview of the types of collected data.

TABLE 2
www.frontiersin.org

Table 2. Specifications of the collected data. S, sensed; PR, patient-reported; EB, event-based.

2.3.1. Patient-Reported Data

Patient-reported contextual data was collected when the patient manually enters data during the study period. We collected two types of patient-reported context information; (1) experienced events, and (2) daily health reports. The events were registered by patients when they experienced any unusual symptoms (e.g., palpitations, heartburn, etc.) during the ECG recording period. It includes details about the type of symptom, its duration, activity during the symptom, and a short note providing more context and experience. Health reports were provided daily and comprised of a three short survey on meals (timings and type of meal (light, heavy, moderate), self-perceived stress level, and sleep quality (on a scale of 1–5). It should be noted that we only collected food intake timings and quantity (as light, heavy, or moderate) and not the specific details of what patients ate in their meals. The description of the meal itself was optional in the freestyle text input. The freestyle comments added by patients for further describing the symptoms or events were either in English or in the local vernacular language.

2.3.2. Sensor-Generated Data

The sensed context is passively derived from the on-board sensors (3D acceleration sensor, gyroscope, and pressure sensor) of the chest-mounted Movisens ECG device and from the phone's sensors. Table 2 lists the sensors' sampling rates. The DataAnalyzer Tool (31) was used for processing data from the Movisens sensors, and context data such as movement acceleration, body position, activity, step count, wear time, energy expenditure, and MET levels were derived for an interval of 10 s. The movement acceleration, also known as MAI, is a typical physical activity metric that depicts bodily movements' intensity. The MAI is measured in “g,” which is multiples of Earth's gravity (1 g = 9.81 m/s2). In the DataAnalyzer Tool, the body positions were classified based on the inclination obtained from the 3D accelerometer. Its activity recognition is based on a white-box decision tree on the features extracted from the accelerometer and the barometric air pressure data (32). The type of recognized activities include unknown, lying, sitting, standing, cycling, slope up, jogging, slope down, walking, and not-worn. Similarly, the body positions are classified based on the inclination obtained from the 3D accelerometer. The body position classes include unknown, lying supine, lying left, lying prone, lying right, upright, sitting/lying, standing, and not-worn.

3. Data Records

The CACHET-CADB includes over 259 days of single-channel contextualized ECG recording from 24 patients previously diagnosed with or suspected of the high risk of AF. Besides the patient's ambulatory contexts, it also contains 1,602, 10 s long annotation samples of 4 different ECG rhythm classes, namely, AF, NSR, noise, and others (anything excluding AF, NSR, and noise). A sample of each of these rhythm classes is shown in Figure 4. The CACHET-CADB is freely available on DTU Data figshare (27) under the name “CACHET-CADB.”

FIGURE 4
www.frontiersin.org

Figure 4. (A–C) Show the 10 s ECG recordings of AF, NSR, and Noise classes, respectively.

Figure 5 describes the organization of the records in CACHET-CADB. For better manageability and incorporation of future updates, the dataset is split into two main parts: (i) the raw signals (i.e., ECG, 3D accelerometer, angular rate) and (ii) the annotations, while keeping the same folder structure inside each part. At the time of drafting this manuscript, the dataset has 24 records, spanning 259 days of recording from 24 patients of which, 7 were Danish and 17 were Indian. There were 15 males/9 females—with an average age of 59, and of which 11 patients had documented one or more AF episodes in past.

FIGURE 5
www.frontiersin.org

Figure 5. The structure of the data records in CACHET-CADB. Overall, the database is divided into two major parts; (i) the raw recordings in binary files and (ii) the contextual information including patient-reported data and the annotations. Each record is organized according to patient ID first and day in study subsequently.

3.1. Raw Signals and Metadata

The raw sensor data is stored in Unisens (33) file format. It allows simultaneously multi-sensor data, with synchronous storage at different sample rates, and comes with a human-readable meta-file in XML format. As illustrated in Figure 5, for each day the unisens.xml file contains the metadata for the raw signals. Table 3 describes these metadata in detail. The general metadata information includes the start timestamp, the total recording time (in seconds), and the anonymous user id (same as the anonymous id for the entire recording). The patient metadata includes height, weight, gender, location of the ECG sensor, and age at the time of recording. The raw ECG, 3D accelerometer, angular rate, and pressure signals are in the ecg.bin, acc.bin, angularrate.bin, and press.bin files, respectively. To allow for any future processing and analysis of the recordings, the dataset contains the raw signal without any preprocessing or filtering.

TABLE 3
www.frontiersin.org

Table 3. Metadata for the signal files described in the unisens.xml file of each record.

However, given the recordings' ambulatory nature, any use of the data would probably need to implement baseline correction and removal of other artifacts beyond the normal ECG band [0.5–50 Hz].

3.2. Annotations and Metadata

As shown in Figure 5, the annotations follow the same folder structures as the raw signals. For each day, the context.xlsx and annotation.csv files contain the contextual and annotation data, respectively.

The context.xlsx file contains the patient's ambulatory context for every 10 s interval. These contextual data are derived from a 3D acceleration sensor, gyroscope, and pressure sensor, as described earlier. Table 4 provides the metadata for these contextual data, where the attributes listed in the table are columns in the context.xlsx file. The “unit” column in Table 4 represents the measurement unit of each attribute. The remark column provides the label of each subclass within the same column. For instance, ActicityClass has several sub-classes, such as lying, sitting/standing, cycling, slope up, or jogging. The corresponding subclass code (0, 1, 2...) represents them in the activity column of the context.xlsx file. Patient-reported data is provided as a single JSON file in each annotation folder (see Figure 5). The JSON file contains two types of data “dailyInfo”, and “event”. Their metadata are described in Tables 5, 6, respectively.

TABLE 4
www.frontiersin.org

Table 4. Contextual-data descriptor table.

TABLE 5
www.frontiersin.org

Table 5. Metadata of patient-entered context data “dailyInfo” in JSON file.

TABLE 6
www.frontiersin.org

Table 6. Metadata of patient-entered “event” field in JSON file representing patient-reported symptoms that the patient may have experienced during the recording period.

The annotaion.csv file contains the cardiologists' annotation of hearth rhythms. It contains the following columns: (i) the start index of 10 s long segment (Start), (ii) the end index of 10 s long segment (End), and (iii) the ECG rhythm class (Class). Table 7 provides the statistics of each of the annotated rhythm classes and their associated code in the Class column of the annotation.csv file.

TABLE 7
www.frontiersin.org

Table 7. ECG annotation overview showing the class of rhythm types, its code in the annotation.csv file, and the number of available annotations for each class.

4. Technical Validation

4.1. Quality Assessment of ECG Annotation

Although the DL models (25) was used for automatic labeling (Figure 3), to ensure the quality and integrity of the rhythm annotation, we have released only the annotations that have been manually checked by the two independent cardiologists. A 100% inter-rater agreement policy is followed. The ECG segments on which there was a disagreement between two cardiologists are not included in this release.

4.2. Signal Quality Assessment

For testing the validity of the collected ECG data, an ECG signal quality assessment was done using an auto-correlation-based noise detector. Subsequently, the Pan Tomkinson algorithm (34) was used to calculate QRS complex/R-peaks. The steps used in the validation process are shown in Figure 6. As the ambulatory ECG signal tends to get contaminated by noise and other artifacts, first, a band-pass [0.5–50 Hz] filter was applied, and the baseline was removed. A Savitzky-Golay (35) filter followed this to smoothen out the data. Thereafter, the signal was chopped into 10 s long windows, and an auto-correlation based noise detector was applied to detect the noisy signal. Finally, the Pan Tomkinson algorithm (34) was used to calculate the QRS complexes and the R-peaks for each of these 10 s windows. Table 8 shows the number of R-peaks detected and the percentage of the noisy signal detected in each record. It should be noted that the discrepancy in the ECG noise percentage between patients (or within the same patient for different days) depended on factors such as how diligent the patients (or, in some cases, their caretakers) were in timely changing the adhesive ECG electrodes. In the ECG signal, intervals between the R-peak indicate heart rhythm's regularity. These RR intervals (RRI) features have been extensively used in DL-based AF detection models (25).

FIGURE 6
www.frontiersin.org

Figure 6. Analysis of ECG quality, QRS complex, and R-peak detection.

TABLE 8
www.frontiersin.org

Table 8. Signal quality assessments and detection of QRS complex/R-peaks. Non-wear Time: Time for which device was taken off (for changing, bathing, for any other reasons).

Although we did identify noise in the dataset, we did not exclude the noise from the database. This was done intentionally to allow the CACHET-CADB to reflect a realistic distribution of ECG quality as expected under free-living conditions. ECG riddled with confounding artifacts and varying signal quality is expected when performing longitudinal ambulatory arrhythmia screening. Therefore, we put forward the CACHET-DB as a resource for designing and evaluating DL-based arrhythmia detection algorithms, which work under free-living condition without generating false positives. Moreover, the database can be used for creating unsupervised learning methods, which can enable feature extraction representing ECG quality variation in ambulatory settings. As already discussed, one of the main challenges with the existing arrhythmia ECG datasets is that they are collected in a clinically controlled environment and are relatively clean. Models trained on such clean datasets may result in many false-positive cases when applied on ECG collected under free-living conditions that inevitably has low signal quality and many artifacts (36, 37).

5. Discussion

This paper presents the design and development of a contextualized ECG database to support the development and generalization of ECG analysis and arrhythmia detection models. The CACHET-CADB has been developed as a part of the REAFEL (38) research project, which focuses on building mHealth and DL-based solutions for optimizing diagnosis of AF in the frail and elderly population. CACHET-CADB is particularly important for researchers who are working on bringing ECG analysis and AF detection on patient-operated wearable ECG into widespread adoption under free-living conditions. The database will be further expanded with more recordings and ECG annotation as they become available by following the data annotation and storage setup described above.

The ability to bring arrhythmia detection models in widespread adoption under free-living conditions is limited by the lack of a patient-operated ambulatory ECG dataset that truly represents all the confounding contamination expected in such conditions. The models trained on benchmark datasets in Table 1 show high performance when tested on the same datasets or similar datasets collected under clinical supervision. However, the high classification performances often obtained on these datasets are not reproducible when applied to patient-operated ECG data under free-living conditions. The patients-operated wearable-based ECG under free-living condition is often contaminated with arrhythmia mimicking artifacts and suffers from poor signal quality. The cause of the poor performance under free-living conditions is attributed to the lack of diversity and relatively good signal quality of ECG wave forms in these benchmark databases (18).

With wearable technology advancements, single lead portable ECG monitoring has been gained attraction for arrhythmia screening under free-living conditions (39). Coupling portable patient-operated ECG monitoring with computer-aided ML and DL-based classification algorithms can help in real-time and cost-effective longitudinal arrhythmia screening under free-living conditions. To achieve high sensitivity and reproducibility under free-living conditions, the CACHET-CADB provides an opportunity to train and evaluate arrhythmia detection models on a dataset representing all the ECG morphology changes and confounding noise contamination expected in free-living conditions.

5.1. Context-Aware ECG for Explainable DL Models

One advantage of CACHET-CADB over the existing database is the availability of patients' ambulatory context corresponding to the recorded ECG. In the absence of patients' context, the ECG analysis under free-living conditions is prone to mis-classification and misinterpretation (6). The contextual data can also be used for multi-model input and context-based heuristics to dynamically fine-tune the models' sensitivity and specificity under different user contexts in ambulatory settings. To reduce the FPR, algorithms should be made adaptive to the user's context—i.e., the sensitivity and specificity of algorithms should be dynamically adjustable. For instance, in the elderly population, there is a significantly higher prevalence of falls in patients with AF (40). Suppose an algorithm is applied to elderly patients' data and if a fall is detected, then the algorithm should factor-in for the fall in the dynamic adjustment of its sensitivity and specificity. Similarly, information about AF triggering contexts (41) such as high stress-level, food-intake (heavy meal), drinks (alcohol, caffeine) can be utilized to make algorithms more sensitive in those contexts.

Furthermore, the contextual data can pave the way for improving the interpretability of ML and DL models (42). For instance, Figure 7 shows a DL model's AF classification results, the “ground truth” annotations, and patient's ambulatory contexts (body position, activities, movement acceleration) for 24 h long record in CACHET-CADB. It can be inferred from Figure 7 that the model is resulting in more FP whenever there is a change in activity, body position, and movement acceleration, which is most prominent after 09:00 o'clock. Such information can be made available to a cardiologist for the manual inspection of the dataset thereby providing a better insight into when and why the AF detection algorithm has identified an AF episode. The information can also be utilized to build post-processing heuristics around these FP prone ambulatory contexts (43). With CACHET-CADB, we aim to provide the DL research community rich longitudinal contextualized ECG data that can help build and evaluate models which realistically work on patient-operated ECG from free-living ambulatory conditions.

FIGURE 7
www.frontiersin.org

Figure 7. Explainable deep learning: This Figure shows a contextualized view of a deep learning-based AF detection model Andersen's (25) performance on a single day of ECG from CACHET-CADB. In 24 h of ECG under free-living conditions, short segments of false positive in a model's output are linked to change in activity, change in body position, and sudden movement accelerations.

5.2. Wearable ECG in Arrhythmia Monitoring and Its Economic Implications

The CACHET-CADB database is collected using the mCardia (28) system in the REAFEL (38) project, and its cost is comparable to other wearable-based single channel ECG devices. The main focus of the REAFEL study is to diagnose atrial fibrillation from patient-operated wearable ECG, away from highly controlled clinical environments, and thereby to make an accessible diagnostic tool for vulnerable populations who have difficulties in accessing to such clinically controlled measurements. Already, ambulatory wearable ECG has been found to be cost-effective in the detection of AF and reducing unnecessary hospital visits (44). However, there are significant potential economic gains in reducing manual examination of longitudinal ambulatory ECG by using automated arrhythmia detection algorithms. As pointed out by Wu et al. (14), the lack of sizable annotated and diverse ECG wearable datasets for testing and evaluating is one of the leading causes behind non/slow improvements in classification algorithms' performance. By making available the CACHET-CADB, we aim to help researchers to develop and evaluate algorithms for patient-operated wearable ECG, thereby making longitudinal ambulatory monitoring more economically robust and feasible.

6. Usage Notes

The design, data-descriptor, and the software tools for using CACHET-CADB are presented and made available for public use. When using this database, please cite the current publication. The new data recording and ECG annotations on the existing records will be added to CACHET-CADB periodically when they become available; details of the subsequent release will be available at CACHET's website (45).

7. Code Availability

Visual inspection and editing of records can be done using the UnisensViewer tool http://software.unisens.org/download/UnisensViewer/UnisensViewer_Setup.exe. Python library pyunisens (https://github.com/Unisens/pyunisens) can be used for reading and editing the signal programmatically. We also provide a basic code example and Jupyter Notebook in Python for using the database https://github.com/cph-cachet/cachet-ecg-db. The contextual data file context.xlsx can be loaded and viewed using the panda library (https://pandas.pydata.org/); an example code for the same can be found at https://github.com/cph-cachet/cachet-ecg-db. All software is open-sourced under an MIT license, and we welcome pull requests.

Data Availability Statement

The datasets presented in this article can be found in online repositories. The names of the repository/repositories and accession number(s) can be found at: https://doi.org/10.11583/DTU.14547264.

Ethics Statement

The studies involving human participants were reviewed and approved by Danish Research Ethical Committee and Mahatma Gandhi University of Medical Sciences and Technology (MGUMST), Jaipur India. The patients/participants provided their written informed consent to participate in this study.

Author Contributions

DK and JB conceived the database and implemented the technology for data collection and storage. DK conducted the data collection and manual ECG annotation process in collaboration with HD and KS. DK analyzed the data and wrote the Python scripts. DK, JB, and SP wrote the paper. JB obtained the funding. All authors reviewed the manuscript and contributed to the article and approved the submitted version.

Funding

This research has been funded by the Innovation Fund Denmark as part of the REAFEL project (IFD Project No. #6153–00009B) and the Copenhagen Center for Health Technology.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict ofinterest.

Publisher's Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Acknowledgments

The authors wish to thank the team headed by Dr. Rajeev Sharma, Head of Electrophysiology at Heart failure division at Mahatma Gandhi University of Medical Sciences and Technology (MGUMST), Jaipur India, for their support. The authors gratefully thank Maj Gen Dr. A. K. Singh (Retd.) and Prof. Bipin Kumar Rathod from the Department of Health Informatics at MGUMST for helping in the data collection process and patient recruitment.

References

1. Ball J, Carrington MJ, McMurray JJ, Stewart S. Atrial fibrillation: profile and burden of an evolving epidemic in the 21st century. Int J Cardiol. (2013) 167:1807–24. doi: 10.1016/j.ijcard.2012.12.093

PubMed Abstract | CrossRef Full Text | Google Scholar

2. Members AF, Camm AJ, Lip GYH, De Caterina R, Savelieva I, Atar D, et al. 2012 focused update of the ESC Guidelines for the management of atrial fibrillation: an update of the 2010 ESC Guidelines for the management of atrial fibrillation developed with the special contribution of the European Heart Rhythm Association. Eur Heart J. (2012) 33:2719–47. doi: 10.1093/eurheartj/ehs253

PubMed Abstract | CrossRef Full Text | Google Scholar

3. Fuster V, Rydén LE, Cannom DS, Crijns HJ, Curtis AB, Ellenbogen KA, et al. Acc/aha/esc 2006 guidelines for the management of patients with atrial fibrillation: a report of the American college of cardiology/American heart association task force on practice guidelines and the European society of cardiology committee for practice guidelines (writing committee to revise the 2001 guidelines for the management of patients with atrial fibrillation): developed in collaboration with the European heart rhythm association and the heart rhythm society. Circulation. (2006) 114:e257–354. doi: 10.1093/eurheartj/ehm315

PubMed Abstract | CrossRef Full Text | Google Scholar

4. Schäfer A, Flierl U, Berliner D, Bauersachs J. Anticoagulants for stroke prevention in atrial fibrillation in elderly patients. Cardiovasc Drugs Ther. (2020) 34:555–68. doi: 10.1007/s10557-020-06981-3

PubMed Abstract | CrossRef Full Text | Google Scholar

5. Khan MN, Jaïs P, Cummings J, Di Biase L, Sanders P, Martin DO, et al. Pulmonary-vein isolation for atrial fibrillation in patients with heart failure. N Engl J Med. (2008) 359:1778–85. doi: 10.1056/NEJMoa0708234

PubMed Abstract | CrossRef Full Text | Google Scholar

6. Dinakarrao SMP, Jantsch A, Shafique M. Computer-aided arrhythmia diagnosis with bio-signal processing: a survey of trends and techniques. ACM Comput Surveys. (2019) 52:1–37. doi: 10.1145/3297711

CrossRef Full Text | Google Scholar

7. Faust O, Ciaccio EJ, Acharya UR. A review of atrial fibrillation detection methods as a service. Int J Environ Res Publ Health. (2020) 17:3093. doi: 10.3390/ijerph17093093

PubMed Abstract | CrossRef Full Text | Google Scholar

8. Matias I, Garcia N, Pirbhulal S, Felizardo V, Pombo N, Zacarias H, et al. Prediction of atrial fibrillation using artificial intelligence on electrocardiograms: a systematic review. Comput Sci Rev. (2021) 39:100334. doi: 10.1016/j.cosrev.2020.100334

PubMed Abstract | CrossRef Full Text | Google Scholar

9. Moody G. A new method for detecting atrial fibrillation using RR intervals. Comput Cardiol. (1983) 227–30.

Google Scholar

10. Moody GB, Mark RG. The impact of the MIT-BIH arrhythmia database. IEEE Eng Med Biol Mag. (2001) 20:45–50. doi: 10.1109/51.932724

PubMed Abstract | CrossRef Full Text | Google Scholar

11. Wagner P, Strodthoff N, Bousseljot RD, Kreiseler D, Lunze FI, Samek W, et al. PTB-XL, a large publicly available electrocardiography dataset. Sci Data. (2020) 7:1–15. doi: 10.1038/s41597-020-0495-6

PubMed Abstract | CrossRef Full Text | Google Scholar

12. Clifford GD, Liu C, Moody B, Li-Wei HL, Silva I, Li Q, et al. AF Classification from a short single lead ECG recording: the PhysioNet/Computing in Cardiology Challenge 2017. In: 2017 Computing in Cardiology (CinC). (2017). p. 1–4. doi: 10.22489/CinC.2017.065-469

PubMed Abstract | CrossRef Full Text | Google Scholar

13. Shen Q, Gao H, Li Y, Sun Q, Chen M, Li J, et al. An open-access arrhythmia database of wearable electrocardiogram. J Med Biol Eng. (2020) 40:564–74. doi: 10.1007/s40846-020-00554-3

PubMed Abstract | CrossRef Full Text | Google Scholar

14. Wu MH, Chang EY. Deepq arrhythmia database: a large-scale dataset for arrhythmia detector evaluation. In: Proceedings of the 2nd International Workshop on Multimedia for Personal Health and Health Care. (2017). p. 77–80. doi: 10.1145/3132635.3132647

CrossRef Full Text | Google Scholar

15. Parvaneh S, Rubin J, Babaeizadeh S, Xu-Wilson M. Cardiac arrhythmia detection using deep learning: a review. J Electrocardiol. (2019) 57:70–4. doi: 10.1016/j.jelectrocard.2019.08.004

PubMed Abstract | CrossRef Full Text | Google Scholar

16. Liu F, Liu C, Zhao L, Zhang X, Wu X, Xu X, et al. An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection. J Med Imaging Health Inform. (2018) 8:1368–73. doi: 10.1166/jmihi.2018.2442

CrossRef Full Text | Google Scholar

17. Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation. (2000) 101:e215–20. doi: 10.1161/01.CIR.101.23.e215

PubMed Abstract | CrossRef Full Text | Google Scholar

18. Gao H, Liu C, Wang X, Zhao L, Shen Q, Ng E, et al. An open-access ECG database for algorithm evaluation of QRS detection and heart rate estimation. J Med Imag Health Inform. (2019) 9:1853–8. doi: 10.1166/jmihi.2019.2800

CrossRef Full Text | Google Scholar

19. Agrafioti F, Hatzinakos D. ECG biometric analysis in cardiac irregularity conditions. Signal Image Video Process. (2009) 3:329. doi: 10.1007/s11760-008-0073-4

CrossRef Full Text | Google Scholar

20. Van Dam P, Mouton S, Oosterhoff P. Template Matching Method for Monitoring of ECG Morphology Changes. US Patent 7,996,070. Google Patents (2011).

PubMed Abstract | Google Scholar

21. Ebrahimi Z, Loni M, Daneshtalab M, Gharehbaghi A. A review on deep learning methods for ECG arrhythmia classification. Expert Syst Appl. (2020) 2020:100033. doi: 10.1016/j.eswax.2020.100033

CrossRef Full Text | Google Scholar

22. Hannun AY, Rajpurkar P, Haghpanahi M, Tison GH, Bourn C, Turakhia MP, et al. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat Med. (2019) 25:65. doi: 10.1038/s41591-018-0268-3

PubMed Abstract | CrossRef Full Text | Google Scholar

23. Yao Z, Zhu Z, Chen Y. Atrial fibrillation detection by multi-scale convolutional neural networks. In: 2017 20th International Conference on Information Fusion (Fusion). (2017). p. 1–6. doi: 10.23919/ICIF.2017.8009782

CrossRef Full Text | Google Scholar

24. Ceylan R, Özbay Y. Comparison of FCM, PCA and WT techniques for classification ECG arrhythmias using artificial neural network. Expert Syst Appl. (2007) 33:286–95. doi: 10.1016/j.eswa.2006.05.014

CrossRef Full Text | Google Scholar

25. Andersen RS, Peimankar A, Puthusserypady S. A deep learning approach for real-time detection of atrial fibrillation. Expert Syst Appl. (2019) 115:465–73. doi: 10.1016/j.eswa.2018.08.011

PubMed Abstract | CrossRef Full Text | Google Scholar

26. CACHET. CACHET-CADB ToolKit. (2021). Available online at: https://github.com/cph-cachet/cachet-ecg-db (accessed April 20, 2021).

Google Scholar

27. Kumar D, Puthusserypady S, Bardram JE. CACHET-CADB. (2021). doi: 10.11583/DTU.14547264.v1

CrossRef Full Text | Google Scholar

28. Kumar D, Maharjan R, Maxhuni A, Dominguez H, Frólich A, Bardram JE. mCardia: a context-aware ECG collection system for ambulatory arrhythmia screening. ACM Trans Comput Healthc. (2022) 3:1–28. doi: 10.1145/3494581

CrossRef Full Text | Google Scholar

29. Movisens. EcgMove4. - ECG and Activity Sensor. (2020). Available online at: https://www.movisens.com/en/products/ecg-sensor/ (accessed December 20, 2021).

Google Scholar

30. CACHET. CACHET Research Platform (CARP). (2020). Available online at: https://carp.cachet.dk/ (accessed January 30, 2021).

Google Scholar

31. Movisens. Data Analyzer-Sensor Data Analysis. (2020). Available online at: https://www.movisens.com/en/products/dataanalyzer/ (accessed December 20, 2021).

Google Scholar

32. Anastasopoulou P, Tansella M, Stumpp J, Shammas L, Hey S. Classification of human physical activity and energy expenditure estimation by accelerometry and barometry. In: 2012 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. (2012). p. 6451–4. doi: 10.1109/EMBC.2012.6347471

PubMed Abstract | CrossRef Full Text | Google Scholar

33. Movisens. Unisens File Format. (2021). Available online at: https://docs.movisens.com/Unisens/UnisensFileFormat/ (accessed February 28, 2021).

Google Scholar

34. Pan J, Tompkins WJ. A real-time QRS detection algorithm. IEEE Trans Biomed Eng. (1985) 230–6. doi: 10.1109/TBME.1985.325532

PubMed Abstract | CrossRef Full Text | Google Scholar

35. Press WH, Teukolsky SA. Savitzky-Golay smoothing filters. Comput Phys. (1990) 4:669–72. doi: 10.1063/1.4822961

CrossRef Full Text | Google Scholar

36. Halvaei H, Svennberg E, Sörnmo L, Stridh M. False alarm reduction in atrial fibrillation screening. In: 2020 Computing in Cardiology. (2020). p. 1–4. doi: 10.22489/CinC.2020.255

CrossRef Full Text | Google Scholar

37. Fan X, Yao Q, Cai Y, Miao F, Sun F, Li Y. Multiscaled fusion of deep convolutional neural networks for screening atrial fibrillation from single lead short ECG recordings. IEEE J Biomed Health Inform. (2018) 22:1744–53. doi: 10.1109/JBHI.2018.2858789

PubMed Abstract | CrossRef Full Text | Google Scholar

38. CACHET. REAFEL: Reaching the Frail Elderly Patient for Optimizing Diagnosis of Atrial Fibrillation. (2020). Available online at: https://www.cachet.dk/research/Finalized-Research-Projects/REAFEL (accessed December 20, 2021).

39. Ramkumar S, Nerlekar N, D'Souza D, Pol DJ, Kalman JM, Marwick TH. Atrial fibrillation detection using single lead portable electrocardiographic monitoring: a systematic review and meta-analysis. BMJ Open. (2018) 8:e024178. doi: 10.1136/bmjopen-2018-024178

PubMed Abstract | CrossRef Full Text | Google Scholar

40. Hung CY, Wu TJ, Wang KY, Huang JL, Loh EW, Chen YM, et al. Falls and atrial fibrillation in elderly patients. Acta Cardiol Sin. (2013) 29:436.

Google Scholar

41. Groh CA, Faulkner M, Getabecha S, Taffe V, Nah G, Sigona K, et al. Patient-reported triggers of paroxysmal atrial fibrillation. Heart Rhythm. (2019) 16:996–1002. doi: 10.1016/j.hrthm.2019.01.027

PubMed Abstract | CrossRef Full Text | Google Scholar

42. Meira W Jr, Ribeiro AL, Oliveira DM, Ribeiro AH. Contextualized interpretable machine learning for medical diagnosis. Commun ACM. (2020) 63:56–8. doi: 10.1145/3416965

CrossRef Full Text | Google Scholar

43. Kumar D, Peimankar A, Sharma K, Domínguez H, Puthusserypady S, Bardram JE. DeepAware: a hybrid deep learning and context-aware heuristics-based model for atrial fibrillation detection. Comput Methods Prog Biomed. (2022) 2022:106899. doi: 10.1016/j.cmpb.2022.106899

PubMed Abstract | CrossRef Full Text | Google Scholar

44. Bumgarner JM, Lambert CT, Hussein AA, Cantillon DJ, Baranowski B, Wolski K, et al. Smartwatch algorithm for automated detection of atrial fibrillation. J Am Coll Cardiol. (2018) 71:2381–8. doi: 10.1016/j.jacc.2018.03.003

PubMed Abstract | CrossRef Full Text | Google Scholar

45. CACHET. The CACHET Contextualized Arrhythmia Database (CACHET-CADB). (2021).

Keywords: arrhythmias, context-aware ECG, wearable ECG, atrial fibrillation, ambulatory ECG, arrhythmia dataset

Citation: Kumar D, Puthusserypady S, Dominguez H, Sharma K and Bardram JE (2022) CACHET-CADB: A Contextualized Ambulatory Electrocardiography Arrhythmia Dataset. Front. Cardiovasc. Med. 9:893090. doi: 10.3389/fcvm.2022.893090

Received: 10 March 2022; Accepted: 08 June 2022;
Published: 01 July 2022.

Edited by:

Josip A. Borovac, University of Split, Croatia

Reviewed by:

Hasmukh D. Shah, Bhaikaka University, India
Bartosz Krzowski, Medical University of Warsaw, Poland

Copyright © 2022 Kumar, Puthusserypady, Dominguez, Sharma and Bardram. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Devender Kumar, ZGV2ZW5kZXIua21yMSYjeDAwMDQwO2dtYWlsLmNvbQ==; Jakob E. Bardram, amFrYmEmI3gwMDA0MDtkdHUuZGs=

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.