# A filter approach for feature selection in classification: application to automatic atrial fibrillation detection in electrocardiogram recordings

Pierre Michel, Nicolas Ngo, Jean-François Pons, Stéphane Delliaux, Roch Giorgi

<figure><img src="image_1.png" /></figure>

## To cite this version:

Pierre Michel, Nicolas Ngo, Jean-François Pons, Stéphane Delliaux, Roch Giorgi. A filter approach for feature selection in classification: application to automatic atrial fibrillation detection in electrocardiogram recordings. BMC Medical Informatics and Decision Making, 2021, 21 (S4), 10.1186/s12911-021-01427-8. doi:10.1186/s12911-021-01427-8

HAL Id: hal-03222439

https://amu.hal.science/hal-03222439

Submitted on 18 Oct 2023

HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d'enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_3.png" /></figure>

# A filter approach for feature selection in classification: application to automatic atrial fibrillation detection in electrocardiogram recordings

Pierre Michel<fnref n="1" />*, Nicolas Ngo², Jean-François Pons³, Stéphane Delliaux⁴,⁵ and Roch Giorgi⁶

From Computational Intelligence methods for Bioinformatics and Biostatistics, Bergamo, Italy. 4-6 September 2019

**Abstract**

**Background:** In high-dimensional data analysis, the complexity of predictive models can be reduced by selecting the most relevant features, which is crucial to reduce data noise and increase model accuracy and interpretability. Thus, in the field of clinical decision making, only the most relevant features from a set of medical descriptors should be considered when determining whether a patient is healthy or not. This statistical approach known as feature selection can be performed through regression or classification, in a supervised or unsupervised manner. Several feature selection approaches using different mathematical concepts have been described in the literature. In the field of classification, a new approach has recently been proposed that uses the γ-metric, an index measuring separability between different classes in heart rhythm characterization. The present study proposes a filter approach for feature selection in classification using this γ-metric, and evaluates its application to automatic atrial fibrillation detection.

**Methods:** The stability and prediction performance of the γ-metric feature selection approach was evaluated using the support vector machine model on two heart rhythm datasets, one extracted from the PhysioNet database and the other from the database of Marseille University Hospital Center, France (Timone Hospital). Both datasets contained electrocardiogram recordings grouped into two classes: normal sinus rhythm and atrial fibrillation. The performance of this feature selection approach was compared to that of three other approaches, with the first two based on the Random Forest technique and the other on receiver operating characteristic curve analysis.

**Results:** The γ-metric approach showed satisfactory results, especially for models with a smaller number of features. For the training dataset, all prediction indicators were higher for our approach (accuracy greater than 99% for models with 5 to 17 features), as was stability (greater than 0.925 regardless of the number of features included in the model). For the validation dataset, the features selected with the γ-metric approach differed from those selected with the other approaches; sensitivity was higher for our approach, but other indicators were similar.

<footnote>*Correspondence: pierre.michel@univ-amu.fr</footnote>

<footnote n="1">¹ CNRS, EHESS, Centrale Marseille, AMSE, Aix-Marseille Univ, Marseille, France</footnote>

<footnote>Full list of author information is available at the end of the article</footnote>
**Conclusion:** This filter approach for feature selection in classification opens up new methodological avenues for atrial fibrillation detection using short electrocardiogram recordings.

**Keywords:** γ-metric, Machine learning, Feature selection, Classification, Clinical decision making, Atrial fibrillation detection

## Background

In statistics and high-dimensional data analysis, the scoring and ranking of individual features may be necessary for feature selection and dimension reduction [1]. Indeed, this approach reduces both the complexity of the model and the noise present in the data, which increases model accuracy and interpretability [2]. Feature selection is a data preprocessing technique that consists in generating the best possible feature subset through selecting the most relevant features and removing redundant or noisy ones. This technique speeds up classification (training and testing) and optimizes model accuracy (e.g., prediction error rate).

Typically, a feature selection algorithm includes four steps [3]: (1) subset generation, in which candidate feature subsets are selected based on certain search methods (e.g., exhaustive, random, or heuristic search method); (2) evaluation function computation, in which the relevance of the selected candidate subsets is assessed; (3) identification of a stopping criterion, in which the criterion for stopping the algorithm and returning the selected subset is specified; and, (4) result validation, in which the performance of the feature selection algorithm is tested on a distinct dataset.

In step 1, the feature selection algorithm can use several methods to search for candidate subsets. The most common are the exhaustive and heuristic search methods. These include greedy approaches whereby only local optimal choices are made in search space (for example, by adding or removing features sequentially through a forward and backward search) and a unidirectional search is conducted (the forward search starts with an empty feature set and the backward search with a full feature set). More complex heuristic search methods also exist. Among these is the “best-first search” approach [4], which is similar to the greedy approach, but differs from it in that it chooses the best neighbor subset among all evaluated ones. In this method, the user defines how many times the feature subset search is to be repeated. One should also mention the more computationally complex metaheuristic approaches, such as the ant-colony algorithm [5] and the genetic algorithm (GA) [6]. These two algorithms are known to provide satisfactory solutions to many optimization problems, including the travelling salesman problem. A recent paper comparing the performance of different state-of-the-art metaheuristic

algorithms (including GA), found that these approaches may constitute good alternatives for the problem of parameter estimation in real world applications [7].

When the number of features *p* in a training dataset is too high (say *p* > 100), it becomes impossible to test all possible solutions, that is, the 2^p - 1 possible feature subsets. In this situation, feature selection becomes “NP-hard” [2]. Since the exhaustive search for solutions is not feasible, heuristic strategies must be considered, even though they can converge to local optima. One of these strategies is the forward search algorithm, which generates an initial solution with the most relevant features, evaluates this solution, and then assesses all feature subsets obtained by adding the most relevant feature from among the remaining ones.

In supervised learning (and especially in classification), the relevance of a feature is often assessed by quantifying its correlation with or dependence on a target feature *Y*, or by using consistency and separability indices or information theory-based metrics [8]. The feature selection method tries to find the best combination of features according to an evaluation function that quantifies the relevance of all features. Evaluation functions can be divided into five categories [9]: distance measures, information measures, dependence measures, consistency measures, and classifier error rate measures. Depending on the evaluation function, one can use either “wrapper” methods [10] to evaluate selected features based on the performance of a given classifier or “filter” methods to select features without employing a classifier.

Model complexity reduction in high-dimensional data analysis has many applications in the medical field. One such application is heart rhythm characterization, which is of clear clinical importance. At present, the main challenge for heart rhythm characterization is the automated detection of atrial fibrillation (AF). Indeed, AF, which is characterized by an irregular and often rapid heart rate, is associated with a five-fold increase in the risk of ischemic strokes [11]. It is currently the most common heart rhythm disorder and the second leading cause of mortality worldwide [12]. However, AF diagnosis is not obvious, especially in stroke patients, who often present with silent (asymptomatic) and mostly paroxysmal [13] forms. Fortunately, heart rhythm can be characterized by electrocardiogram (ECG), which is commonly used to explore electric cardiac activity and to detect arrhythmia.
Automatic detection of AF is now a source of hope, especially with the development of connected medical devices.

In a recent study, Pons et al. introduced a new feature selection approach, which consists in selecting highly discriminant features from a set of features [14]. They examined whether this approach could be used for heart rhythm characterization using 1-min RR interval time series derived from ECG recordings. In heart rhythm analysis, an electrical cardiac cycle is traditionally divided into five waves denoted P, Q, R, S, and T, with R being the wave with maximal amplitude. An RR interval represents the time elapsed between two consecutive R waves that leads to one cardiac beat. Indeed, RR interval variability is often used as a marker of heart rhythm. The new approach introduced by Pons et al. is specifically aimed at improving discrimination between different heart rhythms: normal sinus rhythm (NSR) and AF. It uses a new evaluation function, the γ-metric, which is defined as the algebraic distance between classes. The approach showed good performance and improved classification accuracy by reducing both the number of features considered in the model and the necessary length of the time series, even in datasets with added noise or missing data. Not only are these preliminary results encouraging, but this approach could supersede current state-of-the-art feature selection approaches. However, Pons et al. [14] used a logistic regression as a classifier and an exhaustive approach for feature selection. Moreover, both their training and validation datasets were extracted from the same PhysioNet database available on the internet.

The present paper proposes a filter approach for feature selection in classification that uses the γ-metric introduced by Pons et al. as an evaluation function as well as the support vector machine (SVM) model to [15] solve the supervised classification problem. This approach was applied to AF detection using electrocardiogram recordings derived from two independent datasets (with the validation dataset containing real electrocardiogram data). The classification performance of the approach was evaluated.

## Methods

This section covers the following topics: the ECG datasets used for the analysis; the mode of computation of the γ-metric and its use as a filter approach for feature selection; the measure of consistency used to assess feature selection stability; the SVM model used as a classifier; and the strategy for feature selection used for AF detection considered as a classification task.

## Description of the datasets

Two ECG datasets were used in our study: a training dataset and a validation dataset.

### Training dataset

The training dataset was extracted from the PhysioNet website [16], the open Massachusetts Institute of Technology-Beth Israel Hospital (MIT-BIH) NSR database (nsrdb), the MIT-BIH NSR RR interval database (nsr2db), and the MIT-BIH AF database (afdb). It contained 50, 028 1-min RR interval time series, 47, 128 of which corresponded to NSR rhythms and 2,900 to AF rhythms. No identifying information was used in the analysis.

### Validation dataset

The validation dataset was obtained from the Department of Cardiology and Rhythmology of Marseille University Hospital Center (Timone Hospital), France. A total of 105 patients undergoing continuous 24-hour Holter monitoring between 20 December 2016 and 26 February 2017 were considered for inclusion in the study. All ECG recordings were anonymized and no personal information was available except for age and gender. Preprocessing and quality check of RR interval time series consisted in tagging and excluding time series that contained misdetected R peaks (RR interval < 200ms) and/or undetected R peaks (RR interval > 3s). This procedure was aimed at ensuring the ECG signal quality (noise, signal interruption) of analyzed recordings and at assessing robustness of R peak detection against R peak detection algorithm limits. Premature ventricular and atrial contractions, which were present in the analyzed recordings of both AF and NSR patients, were not impacted by this preprocessing procedure. Patients with heart rhythm disorders other than AF were excluded from the analysis (n = 59). Of the remaining 46 patients, 6 AF patients were excluded because their AF episodes were deemed too short to be informative and analyzable (duration less than one minute), 2 AF patients due to unreliable annotations, and 4 NSR patients because their recordings contained inconsistent information (1 patient had a reported age of 0 years and 3 had time series with a recording start date posterior to the start date of the NSR episode). In the end, 34 patients were included the analysis, 11 of whom had AF (providing 11, 131 1-min RR interval time series) and 23 had NSR (yielding 30, 530 1-min RR interval time series). The flowchart presented in Fig. 1 summarizes the preprocessing procedure.

For both datasets, 1-min RR interval time series were derived from ECG recording using a customized R-peak detector. RR intervals were expressed in milliseconds (ms). The methodology developed by Pons et al. [14] was applied to generate 32 candidate features: i) derivatives of time
<figure><img src="image_4.png" /><figcaption>**Fig. 1** Flowchart of data preprocessing. Grey boxes show the number of patients retained at each stage. Orange boxes provide details on the reasons for patient exclusion. The red and blue boxes at the bottom show the number of NSR and AF patients retained for further analysis</figcaption></figure>

series were considered from order 0 to 10; and ii) means (denoted $m_0, ..., m_{10}$) and standard deviations (denoted $sd_0, ..., sd_{10}$) were computed for each time series. The following time domain measures were then computed: (1) the standard deviation of the averages of 5-s RR intervals (SDANN); (2) the mean of all the standard deviations of 5-second RR intervals (SDNNidx); (3) the standard deviation of successive differences (SDSD); (4) the standard deviation of all RR intervals (SDNN); (5) the root-mean-square of successive differences (RMSSD); (6) the percentage of differences between successive RR intervals greater than 50ms (pNN50); (7) the length of the interval, as determined by the difference between the first and third quantiles of the RR time series (IRRR); (8) the integral of the density of the RR interval histogram divided by its height (HRV.index); (9) the triangular interpolation of the RR interval histogram (TINN); and (10) the median of the absolute differences between adjacent RR intervals (MADRR). These classic indicators, which cover several domains of heart rate variability, are of primary interest in

this field of analysis. They were computed using RHRV R package (Heart Rate Variability Analysis of ECG Data) [17].

## Feature selection with the γ-metric

Consider a set $S$ of $n$ observations {$X_i$}$_{i=1,...,n}$, characterized by $p$ features, where $X_i \in S \subset \mathbb{R}^p$ for $i = 1, ..., n$. Let $S$ be divided into $K$ classes such that we have an integer vector $Y$ where $Y_i = 1, ..., K, \forall i = 1, ..., n$. For each $k \in \{1, ..., K\}$, $W_{k,p}$ is the covariance matrix of the corresponding subsample of observations belonging to class $k$:

$$W_{k,p} = \operatorname{cov}(\{X_i|Y_i = k\}), \quad (1)$$

where $W_{k,p}$ is a diagonalizable $p \times p$ symmetrical positive semi-definite matrix in which all eigenvalues {$\lambda_{k,j}$}$_{j=1,...,p}$ are positive ($\forall j = 1, ..., p, \lambda_{k,j} \ge 0$). Let {$u_{k,j}$}$_{j=1,...,p}$ be the normalized eigenvectors associated with eigenvalues {$\lambda_{k,j}$}$_{j=1,...,p}$. These eigenvectors represent the direction of the $p$ axes of length $\sqrt{\lambda_{k,j}}$ in a $p$-dimensional ellipse centered in $\mu_k$, which is the mean vector of observations in
class k. Each class k ($k \in \{1, ..., K\}$) is thus represented by an ellipse in $\mathbb{R}^p$.

The $\gamma$-metric is a separability measure based on the sum of the distances between each pair of classes. This measure uses positive values in the case of class separability and negative values in the case of class overlapping. More intuitively, each class of individuals is represented by an ellipse in $\mathbb{R}^p$, and the $\gamma$-metric represents the sum of the distances between the centroids of each pair of ellipses minus the distances between the centroids and the borders of these two ellipses. When the distance between two centroids is less than the sum of the distances separating these centroids from their respective borders, then the value of the $\gamma$-metric becomes negative. Let there be $k_1, k_2 \in \{1, ..., K\}$ such that $k_1 < k_2$, then the algebraic distance $d_{k_1,k_2}$ between the pair of classes $k_1 \neq k_2$ along the mean-mean axis given by $\mu_{k_1} \mu_{k_2} = \mu_{k_2} - \mu_{k_1}$ can be defined as follows:

$$d_{k_1,k_2} = \frac{1}{\alpha_{k_1,k_2}} (\|\mu_{k_1}\mu_{k_2}\| - (d_{k_1,k_1k_2} + d_{k_2,k_2k_2})), \quad (2)$$

where $\alpha_{k_1,k_2}$ is a normalization factor defined as:

$$\alpha_{k_1,k_2} = \sqrt{\sum_{j=1}^{p} \lambda_{k_1,j}} + \sqrt{\sum_{j=1}^{p} \lambda_{k_2,j}}, \quad (3)$$

and $d_{k_1,k_1k_2}$ and $d_{k_2,k_2k_2}$ are defined as:

$$d_{k_1,k_1k_2} = \frac{1}{\sqrt{\sum_{j=1}^{p} \frac{\tilde{\mu}_{k_1,j}^2}{\tilde{\mu}_{k_1,j}}}}, \quad \text{and} \quad d_{k_2,k_2k_2} = \frac{1}{\sqrt{\sum_{j=1}^{p} \frac{\tilde{\mu}_{k_2,j}^2}{\tilde{\mu}_{k_2,j}}}}, \quad (4)$$

where $\tilde{\mu}_{k_1,j}$ (respectively $\tilde{\mu}_{k_2,j}$) represents the coordinates of the normalized vector $\mu_{k_1}\mu_{k_2}$ expressed in the orthogonal basis formed by the eigenvectors of ellipse $k_1$ (respectively $k_2$). If $U_{k_1}$ (respectively $U_{k_2}$) is the matrix whose columns correspond to the eigenvectors of ellipsoid $k_1$ (respectively $k_2$), then the normalized mean-mean vector $\tilde{\mu}_{k_1}$ (respectively $\tilde{\mu}_{k_2}$) can be written as:

<figure><img src="image_5.png" /></figure>
$$ \tilde{\mu}_{k1} = \mathcal{U}_{k1}^{-1} \frac{\mu_{k1} \mu_{k2}}{\|\mu_{k1} \mu_{k2}\|_2} \quad \text{and} \quad \tilde{\mu}_{k2} = \mathcal{U}_{k2}^{-1} \frac{\mu_{k1} \mu_{k2}}{\|\mu_{k1} \mu_{k2}\|_2}. \qquad (5) $$

In other words, $d_{k_1,k_1k_2}$ represents the distance between $\mu_{k_1}$ and the border of the ellipse, and any point on this border is determined by drawing a segment between $\mu_{k_1}$ and the border of the ellipse in the same direction as $\mu_{k_1}\mu_{k_2}$. Similarly, $d_{k_2,k_1k_2}$ is the distance between $\mu_{k_2}$ and the border of the ellipse, and any point on this border is determined by drawing a segment between $\mu_{k_2}$ and the border of the ellipse in the same direction as vector $-\mu_{k_1}\mu_{k_2}$.

Finally, the $\gamma$-metric for a set of $K$ classes of observations in $S \subset \mathbb{R}^p$ is defined as follows:

$$ \gamma_p = \sum_{k_1=1}^{K} \sum_{k_1 < k_2} d_{k_1, k_2}. \qquad (6) $$

The above computations were performed using $\mathbb{R}$ and are available on GitHub [18] with all codes and data. Figure 2 illustrates the $\gamma$-metric in two scenarios: the first using a positive value of the $\gamma$-metric, the second using a negative value. A step-by-step mathematical derivation of Eq. 4 is provided in the Additional file 1.

## Feature selection stability assessment

Feature selection stability is defined as the ability of a feature selection algorithm to find the same subsets of features in similar datasets [19] or, more generally, in datasets drawn from the same distribution [20]. In this study, feature selection stability was assessed using the Kuncheva index (KI, [21]).

Let $\mathbb{F} = \{f_1, f_2, ..., f_p\}$ be a set of $p$ features. Feature selection consists in selecting a subset $S \subset \mathbb{F}$ containing the $p' \le p$ most relevant features based on the values of a given evaluation function. Let $s = \{S_1, S_2, ..., S_\omega\}$ be a set of $\omega$ feature subsets obtained through $\omega$ runs of a feature selection algorithm performed on various datasets. Assuming that all elements in $s$ are of the same size (i.e $|S_i| = p'$, $\forall i \in \{1, ..., \omega\}$), KI can be defined as:

$$ \text{KI}(s) = \frac{2}{\omega(\omega - 1)} \sum_{i=1}^{\omega-1} \sum_{j=i+1}^{\omega} \frac{|S_i \cap S_j|p - p'^2}{p'(p - p')}. \qquad (7) $$

This consistency index ranges from -1 to 1, with values close to 1 representing high feature selection stability and values close to -1 representing instability. By convention, the consistency index is null for $p' = p$. Values of $\omega$ were assessed by analyzing their effect on the computation of the stability index. The value that corresponded to the stabilization of KI values was retained.

$$ y_k h(\mathbf{x}_k) \ge 0, \forall k \in \{1, ..., n\} \Leftrightarrow y_k (\theta^\top \mathbf{x}_k + b) \ge 0, \forall k \in \{1, ..., n\}, \qquad (10) $$

## Support vector machine

The problem of discriminating between NSR and AF rhythms was treated as a supervised binary classification problem (the target variable was encoded '0' for observations corresponding to NSR rhythms and as '1' for observations corresponding to AF rhythms). Given the imbalance in our datasets (with AF times-series accounting for 5.79% of the training dataset and for 26.72% of the validation dataset), the support vector machine (SVM) [15] model seemed appropriate for our purpose of classifying heart rhythms. Indeed, SVM is a well-known classification model in high dimensional data analysis that does not require any assumption on the distribution of target values in the study sample [22]. In our study, the SVM classifier with linear kernel was used to measure the prediction performance of the $\gamma$-metric feature selection approach.

Briefly put, SVM is a machine learning model that can be used for both regression and classification. It works by identifying a hyperplane that distinctly classifies data points in a $p$-dimensional space (where $p$ is the number of features). Although several hyperplanes can be selected, the SVM algorithm selects the one with the largest distance to the nearest training-data points of any class. This optimal hyperplane is then treated as a decision boundary, such that new data points falling on either side of this boundary are attributed to a different class. The model can be seen as an optimization problem in which the smallest distance between the hyperplane and the data points must be maximized. The distance between the hyperplane and the closest data points is called the margin, and the closest data points are called support vectors.

Given a training dataset of $n$ points of the form $\{(x_1, y_1), ..., (x_n, y_n)\} \subset \mathbb{R}^p \times \{-1, 1\}$, we wish to find the maximum-margin hyperplane (or optimal separating hyperplane) that divides the group of points $x_i$, where $y_i = 1$ from the group of points $x_i$ where $y_i = -1$. The form of the hyperplane equation can be written as:

$$ h(\mathbf{x}) = \theta^\top \mathbf{x} + b, \qquad (8) $$

where $\theta = (\theta_1, ..., \theta_p)^\top \in \mathbb{R}^p$ and $b \in \mathbb{R}$. For a new data point $\mathbf{x}$ the decision rule will be:

$$ \hat{y} = \begin{cases} 1 & \text{if } h(\mathbf{x}) \ge 0 \\ -1 & \text{otherwise} \end{cases}. \qquad (9) $$

Thus, given the training dataset, we wish to find $h$ as follows:
where $M = \frac{1}{||\theta||}$ is the margin solution of $\min_{1 \le k \le n} y_k (\theta^\top x_k + b)$. The hyperplane is the solution of the following optimization problem:

$$ \begin{array}{ll} \max_{\theta,b} M, & \\ \text{s.t.} \quad y_k(\theta^\top x_k + b) \ge M, \quad k = 1, \dots, n. & (11) \end{array} $$

By setting $||\theta|| = \frac{1}{M}$, we obtain the following formulation of the optimization problem:

$$ \begin{array}{ll} \min_{\theta,b} \frac{1}{2} ||\theta||^2 & \\ \text{s.t.} \quad y_k(\theta^\top x_k + b) \ge 1, \quad k = 1, \dots, n. & (12) \end{array} $$

## Strategy for feature selection in atrial fibrillation detection

In addition to the γ-metric, three other variable importance scores were computed for each individual feature. Two were derived from the Random Forest (RF) algorithm [23]: the first was the mean decrease in Gini index (MDG), which is obtained by replacing each split in each tree of the forest with its surrogate split; the second was the mean decrease in accuracy (MDA), which is obtained by randomly shuffling feature values in the out-of-bag data. Both the MDA and the MDG were computed using randomForest R package [24]. The third variable importance score was the AUC. This score is obtained using an intuitive approach: each individual feature is entered in a classification model (SVM in our case); a receiver operating characteristic (ROC) curve analysis is then conducted for each predictor; and the area under the ROC curve (AUC) is used as a measure of variable importance. The AUC was computed using caret R package [25].

The proposed strategy for feature selection in atrial fibrillation detection consists of four steps summarized as follows:

1. *Computation of variable importance scores* (γ-metric, MDA, MDG, AUC) for each individual feature of the training dataset using 150 bootstrap replications. Features were ranked in descending order for each variable importance score. The KI was measured using the 150 rankings obtained for each variable importance score.

2. *Feature ranking* in descending order according to the median value of each variable importance score for the 150 bootstrap replications.

3. *SVM fitting* of each feature ranking using 5-fold cross validation repeated 10 times on the training dataset. At each iteration, only the remaining feature with the highest variable importance value was included. For each variable importance score, 32 models were yielded. The first model contained only the most relevant feature according to the metric used, and the last one contained all the features.

<table><caption>**Table 1** Descriptive statistics of the patients with ECG recordings. Continuous features (age, ECG recording duration) are expressed as means and standard deviations, and categorical features (gender) are expressed as absolute and relative frequencies</caption><thead><tr><th></th><th>AF (N = 11)</th><th>NSR (N = 23)</th><th>Total (N = 34)</th><th>p-value</th></tr></thead><tbody><tr><td>Age (mean (sd))</td><td>68.64(15.98)</td><td>59.74(11.66)</td><td>62.62(13.63)</td><td>0.074</td></tr><tr><td>Gender (Male (%)</td><td>4(36.4)</td><td>14(60.9)</td><td>18(52.9)</td><td>0.331</td></tr><tr><td>ECG recording duration (mean (sd))</td><td>16.92(9.18)</td><td>22.17(2.62)</td><td>20.47(6.03)</td><td>0.243</td></tr></tbody></table>

The *p*-value corresponds to a Student's t-test (respectively χ² test) used for continuous (respectively categorical) features

4. *Computation of the classification performances* of each model on the testing folds of the 5-fold cross-validation repeated 10 times on the training dataset. Mean accuracy, specificity, sensitivity, and Matthews correlation coefficient (MCC) [26] with their standard deviations were considered. Performance results are reported in Table 3.

Finally, prediction performance was evaluated for each feature selection approach by computing median accuracy, specificity, sensitivity, and MCC with 1000 bootstrap replications of the independent validation dataset. For each performance indicator, interquartile ranges were computed as a measure of dispersion. Results are reported in Table 4.

## Results

Demographic data and ECG recording duration for the 34 patients of the validation dataset are given in Table 1. Mean age was 62.62 years (68.64 in the AF group and 59.74 in the NSR group). Slightly more than half of the patients were male (36.4% in the AF group and 60.9% in the NSR group), and mean duration of ECG recordings was 20.47 hours (16.92 hours in the AF group and 22.17 hours in the NSR group). No significant difference was found between the AF and NSR groups.

Table 2 presents the means and standard deviations for each feature of the validation dataset for both the AF and NSR groups. It also shows the *p*-value between the two groups that corresponds to an unpaired bilateral Student's means comparison test in case of normal distribution and to a Wilcoxon's mean comparison test in case of non-normal distribution. The training dataset contained 50, 028 1-min RR interval time series and the validation dataset contained 41, 661. There was an imbalance in
<figure><img src="image_6.png" /><figcaption>**Fig. 3** Variable importance scores of each feature obtained using the γ-metric (top-left panel), MDA (top-right panel), MDG (bottom-left panel) and AUC (bottom-right panel) feature selection approaches</figcaption></figure>

both the training and validation datasets due to a much higher proportion of NSR patients (94.2% in the training dataset and 73.3% in the validation dataset). No significant differences were observed for features $m_8$, $m_9$, and $m_{10}$ of the validation dataset, as shown in Table 2.

Figure 3 shows the variable importance values of each feature of the training dataset obtained using the γ-metric (top-left panel), MDA (top-right panel), MDG (bottom-left panel), and AUC (bottom-right panel) approaches. When using the γ-metric approach, the three most discriminant features were $sd_1$, $sd_2$, and $sd_3$. This finding supports the study by Pons et al. [14], who found values that fell within the confidence intervals of our predictions, confirming the ability of the γ-metric approach to retrieve the most discriminant features. When using the MDA approach, the three most discriminant features were $sd_3$, $sd_2$, and $sd_4$. When using the MDG and AUC approaches, the three most discriminant features were $sd_3$, $sd_2$, and $m_3$.

The third column in Table 3 shows the stability performance of the four feature selection approaches, as measured by the KI values obtained for each model using the training dataset (the name of the feature selected at each step is specified in the second column). For a number of selected features $p < 16$ (i.e., less than half of the

initial features), the KI values obtained using the γ-metric approach were higher than those obtained using RF-based (MDA and MDG) approaches. This superiority of the γ-metric approach was no longer observed for $p > 16$, with the AUC approach then yielding the highest KI values (results not shown).

Figure 4 presents the mean test accuracy, specificity, sensitivity, and MCC values for each model fitted on the 10 replicates of the 5-fold cross validation applied to the training dataset (models with one to 32 features). The γ-metric approach outperformed the three other approaches for all indicators, especially for $p' \le 16$. Maximal accuracy for the γ-metric approach (99.98%) was observed for $p' = 13$ features. Likewise, maximal MCC for the γ-metric approach (0.998) was observed for $p' = 13$. Specificity and sensitivity increased until $p' = 16$, and remained constant with higher number of features for all four approaches. Table 3 presents these same values for models with one to 16 features. In most cases, the γ-metric approach outperformed the other approaches in terms of accuracy, specificity, sensitivity, and MCC. Of the two RF-based approaches, the MDA approach showed the best indicators.

Figure 5 presents the median accuracy, specificity, sensitivity, and MCC values for each model calculated
<figure><img src="image_7.png" /><figcaption>**Fig. 4** Classification performance (mean accuracy, specificity, sensitivity, and MCC values) computed on 10 replicates of 5-fold cross validation applied to the training dataset in function of the number of features and for each feature selection approach (γ-metric, MDA, MDG, and AUC)</figcaption></figure>

on bootstrap samples of the validation dataset (models with one to 32 features). Table 4 presents these same values for models with one to 16 features. Surprisingly, maximal accuracy was observed for the γ-metric approach for $p' = 1$ (using only feature $sd_2$). This approach outperformed all others for $p' = 13$ with an accuracy of 89.8%, corroborating our earlier test set results obtained through 5-fold cross validation. It also outperformed all other approaches for the MCC indicator, with a value of 0.73 for $p' = 13$. However, the γ-metric approach did not have the highest specificity; moreover, the lowest specificity was 94.45 for $p' = 6$. On the other hand, sensitivity values for the γ-metric approach corroborated our earlier test set results, with the highest sensitivity observed for $p' \le 18$.

The γ-metric feature selection approach, which is a filter method, had the shortest running time at 0.31 s. The other three feature selection approaches are wrapper methods, and therefore involve a learning phase. The MDG and MDA approaches were applied simultaneously and had the longest running time at 65.17 s. The AUC approach, which was applied using an SVM classification model, had a running time of 3.09 s. Average running times were computed using 10 bootstrap

samples from the training dataset with Intel(R) Xeon(R) W-2104 CPU at 3.20GHz, on a 64-bits system.

## Discussion

In this paper, we described a filter approach for feature selection in classification using an evaluation function, the γ-metric, which assesses separability between classes. We compared this feature selection approach to state-of-the-art approaches using two independent datasets containing 1-min RR interval time series of heart rhythms (NSR and AF) in a context of supervised binary classification.

This γ-metric feature selection approach showed satisfactory results and outperformed almost all other approaches both in terms of classification performance (which was computed using test sets obtained through cross-validation applied to the training dataset as well as validation sets obtained through bootstrap resampling applied to the validation dataset) and feature selection stability (which was computed using bootstrap resampling applied to the training dataset). While there was an imbalance in our two datasets (as the prevalence of NSR is much higher than that of AF), this problem was accounted for by using the SVM model as a classifier and the MCC [26] as a classification performance index.
<table><caption>**Table 2** Descriptive analysis of the features of the validation dataset</caption><thead><tr><th>Features</th><th>AF (N = 11)</th><th>NSR (N = 23)</th><th>p-value</th></tr></thead><tbody><tr><td>m<sub>0</sub></td><td>0.769 (0.248)</td><td>0.873 (0.114)</td><td>0.028</td></tr><tr><td>m<sub>1</sub></td><td>-0.036 (0.016)</td><td>-0.002 (0.002)</td><td>0.000</td></tr><tr><td>m<sub>2</sub></td><td>0.109 (0.061)</td><td>0.006 (0.007)</td><td>0.000</td></tr><tr><td>m<sub>3</sub></td><td>-0.273 (0.188)</td><td>-0.019 (0.023)</td><td>0.000</td></tr><tr><td>m<sub>4</sub></td><td>0.656 (0.536)</td><td>0.065 (0.085)</td><td>0.000</td></tr><tr><td>m<sub>5</sub></td><td>-1.633 (1.508)</td><td>-0.252 (0.356)</td><td>0.000</td></tr><tr><td>m<sub>6</sub></td><td>4.331 (4.453)</td><td>1.104 (1.602)</td><td>0.002</td></tr><tr><td>m<sub>7</sub></td><td>-13.642 (16.670)</td><td>-5.073 (7.710)</td><td>0.015</td></tr><tr><td>m<sub>8</sub></td><td>53.254 (91.939)</td><td>24.687 (38.695)</td><td>0.071</td></tr><tr><td>m<sub>9</sub></td><td>-288.073 (666.902)</td><td>-124.233 (203.657)</td><td>0.243</td></tr><tr><td>m<sub>10</sub></td><td>1901.032 (5304.157)</td><td>648.314 (1122.787)</td><td>0.690</td></tr><tr><td>sd<sub>0</sub></td><td>0.142 (0.037)</td><td>0.047 (0.019)</td><td>0.000</td></tr><tr><td>sd<sub>1</sub></td><td>0.270 (0.069)</td><td>0.042 (0.020)</td><td>0.000</td></tr><tr><td>sd<sub>2</sub></td><td>0.714 (0.296)</td><td>0.097 (0.057)</td><td>0.000</td></tr><tr><td>sd<sub>3</sub></td><td>2.163 (1.235)</td><td>0.297 (0.240)</td><td>0.000</td></tr><tr><td>sd<sub>4</sub></td><td>7.190 (5.080)</td><td>1.077 (1.071)</td><td>0.000</td></tr><tr><td>sd<sub>5</sub></td><td>25.866 (21.270)</td><td>4.355 (4.916)</td><td>0.000</td></tr><tr><td>sd<sub>6</sub></td><td>99.809 (91.928)</td><td>18.842 (23.025)</td><td>0.001</td></tr><tr><td>sd<sub>7</sub></td><td>411.791 (416.661)</td><td>85.683 (111.063)</td><td>0.005</td></tr><tr><td>sd<sub>8</sub></td><td>1822.127 (2043.844)</td><td>404.282 (549.422)</td><td>0.008</td></tr><tr><td>sd<sub>9</sub></td><td>8773.333 (11,389.615)</td><td>1976.371 (2815.619)</td><td>0.026</td></tr><tr><td>sd<sub>10</sub></td><td>46,563.114 (73,918.526)</td><td>9916.219 (14,751.188)</td><td>0.042</td></tr><tr><td>SDNN</td><td>141.717 (37.248)</td><td>46.580 (18.907)</td><td>0.000</td></tr><tr><td>SDANN</td><td>60.200 (24.675)</td><td>35.914 (14.735)</td><td>0.010</td></tr><tr><td>SDNNIDX</td><td>131.858 (32.635)</td><td>25.081 (12.269)</td><td>0.000</td></tr><tr><td>pNN50</td><td>74.878 (6.375)</td><td>10.601 (11.328)</td><td>0.000</td></tr><tr><td>SDSD</td><td>195.287 (47.089)</td><td>35.023 (18.044)</td><td>0.000</td></tr><tr><td>RMSSD</td><td>193.983 (46.599)</td><td>34.779 (17.902)</td><td>0.000</td></tr><tr><td>IRRR</td><td>185.401 (54.637)</td><td>57.067 (26.341)</td><td>0.000</td></tr><tr><td>MADRR</td><td>123.929 (30.981)</td><td>17.391 (11.339)</td><td>0.000</td></tr><tr><td>TINN</td><td>247.492 (27.711)</td><td>114.821 (33.433)</td><td>0.000</td></tr><tr><td>HRV.index</td><td>15.839 (1.773)</td><td>7.349 (2.140)</td><td>0.000</td></tr></tbody></table>

For each patient, we computed the mean value of the features derived from each of his or her 1-min RR interval. Each line corresponds to the mean values and standard deviations of all patients in the AF and NSR groups. The *p*-value corresponds to a Student's t-test in case of normal distribution and to a Mann-Whitney U test in case of non-normal distribution

The main advantage of the proposed approach is its filtering process. Unlike wrapper methods [10], which evaluate the selected features using the performance of a given classifier, filter methods are model-agnostic and select features without employing a classifier, which is less greedy in terms of running time.

This study also examined the stability of the feature selection performed by the γ-metric approach. In the field of classification, very large and very small sample sizes have presented a major challenge for researchers in recent years because they can lead to instability.

Assessing the stability of our feature selection algorithm, and not just its classification performance, seemed to us important in this context. A taxonomy of feature selection stability indices has already been proposed in the literature [27]. While other indices such as the weighted consistency index and the average Tanimoto index are available for more general cases (for instance, when the number of selected features is variable), we chose to use the KI because it implies that the feature subsets obtained with different approaches all have the same size.

With the development of connected medical devices, automatic AF detection has become a source of hope, as it can be used to detect the onset of fibrillation early on and therefore to provide appropriate medical care. As our study indicates, whatever the variable importance score computed for each individual feature (γ-metric, MDA, MDG, AUC), *sd*₂ and *sd*₃ are the most discriminant of the 32 candidate features covering different domains of heart rate variability. As such, they are of primary interest for heart rhythm characterization. The classification performance of the γ-metric feature selection approach was found to be stable even with only five features (*sd*₂, *sd*₃, *sd*₁, pNN50, and *sd*₄). Not only do our results support those of Pons et al. [14], but they confirm the advantages of the γ-metric approach for a wider range of features. Moreover, our algorithm performed well despite the imbalance in our datasets, an imbalance that reflects conditions in the real world where NSR is more prevalent than AF.

The γ-metric feature selection approach was found to be very efficient for heart rhythm characterization using ECG recordings. However, extrapolation to other fields of application should only be made with caution. While Pons et al. thoroughly examined the robustness of the γ-metric approach using perturbated data and induced RR interval time series [14], we compared the approach to other feature selection tools using more clear-cut data (AF versus NSR). This means that our algorithm was presented with a relatively easy classification problem, as shown by the high accuracy values. Accordingly, we should not expect to obtain similar results in more complex classification tasks, for instance when dealing with unusual heart rhythms and ECG dynamics (high density of polymorphic ectopic beats, slow AF, conduction disorders, large R waves, etc.) or with more heterogeneous datasets as found in oncology.

In our study, the SVM model was used as a classifier [15]. No other classifier was considered because our aim was to compare feature selection approaches in terms of classification performance, and stability, not to compare
<figure><img src="image_8.png" /></figure>

classifiers. By contrast, in their study, Pons et al. [14] used an unregularized logistic regression classifier trained on a dataset containing 22 features. Our approach could be improved by using other benchmark classifiers, particularly those that are employed in machine learning tasks: classification and regression trees (CART [28]) and their RF extensions [23] or gradient boosting machine [29]. These supervised learning approaches can serve as classification methods for this kind of study; they also provide variable importance scores that can be used for feature selection.

There was an imbalance in our datasets, as the percentage of NSR patients was much higher in both datasets (94.2% in the training dataset and 73.3% in the validation dataset). While the SVM model works fine on sparse and imbalanced data, and while accuracy values obtained for the two datasets were significantly greater than the percentage of observations in the most occurring class (NSR), this imbalance may have biased our estimates [30]. One solution to the problem of imbalance may be to assign different weights to individuals depending on the

class they belong to, with weights attributing a greater misclassification penalty to individuals in the least occurring class (AF). Another solution may be to over-sample observations in the least occurring class, or, conversely, to under-sample observations in the most occurring class. Lastly, one could use the Synthetic Minority Over-sampling Technique (SMOTE) [31], a method that combines over-sampling with under-sampling to improve the performance of the classifier. We did not use the weighted SVM or SMOTE in our study, as the performance results obtained with the current SVM version were satisfactory in terms of prediction and stability. As such, we were able to use the exact same model for each feature selection approach considered, which was important for comparability purposes. For similar reasons of comparability, we did not run a hyper-parameter tuning of the SVM model, nor did we use other kernels. Future studies should compare the results obtained with different versions of the SVM model using other kernels (linear, polynomial, Gaussian, radial, etc.) to better account for non-linear effects.
<table><caption>**Table 3** Classification performances (mean accuracy, specificity, sensitivity, and MCC values with their standard deviations) computed on 10 replicates of 5-fold cross validation applied to the training dataset</caption><thead><tr><th colspan="3">Feature selection (Training dataset)</th><th colspan="4">Classification performances (Training dataset)</th></tr><tr><th>Dim</th><th>Added feature</th><th>KI</th><th>Accuracy</th><th>Specificity</th><th>Sensitivity</th><th>MCC</th></tr></thead><tbody><tr><td colspan="7"><strong>γ-metric</strong></td></tr><tr><td>1</td><td>sd<sub>2</sub></td><td>1.000</td><td>0.9993 (0.000228)</td><td>0.9997 (0.000172)</td><td>0.9933 (0.000030)</td><td>0.994 (0.0021)</td></tr><tr><td>2</td><td>sd<sub>3</sub></td><td>1.000</td><td>0.9996 (0.000164)</td><td>0.9997 (0.000127)</td><td>0.9963 (0.000024)</td><td>0.997 (0.0015)</td></tr><tr><td>3</td><td>sd<sub>1</sub></td><td>1.000</td><td>0.9996 (0.000181)</td><td>0.9998 (0.000134)</td><td>0.9963 (0.000025)</td><td>0.997 (0.0017)</td></tr><tr><td>4</td><td>pNN50</td><td>0.971</td><td>0.9997 (0.000174)</td><td>0.9999 (0.000139)</td><td>0.9962 (0.000019)</td><td>0.997 (0.0016)</td></tr><tr><td>5</td><td>sd<sub>4</sub></td><td>1.000</td><td>0.9996 (0.000197)</td><td>0.9999 (0.000104)</td><td>0.9960 (0.000026)</td><td>0.997 (0.0018)</td></tr><tr><td>6</td><td>RMSSD</td><td>0.926</td><td>0.9998 (0.000133)</td><td>0.9999 (0.000080)</td><td>0.9973 (0.000018)</td><td>0.998 (0.0012)</td></tr><tr><td>7</td><td>SDSD</td><td>0.918</td><td>0.9998 (0.000143)</td><td>0.9999 (0.000093)</td><td>0.9972 (0.000017)</td><td>0.998 (0.0013)</td></tr><tr><td>8</td><td>m<sub>2</sub></td><td>1.000</td><td>0.9997 (0.000145)</td><td>0.9999 (0.000085)</td><td>0.9969 (0.000023)</td><td>0.998 (0.0013)</td></tr><tr><td>9</td><td>m<sub>3</sub></td><td>1.000</td><td>0.9997 (0.000145)</td><td>0.9999 (0.000086)</td><td>0.9968 (0.000021)</td><td>0.997 (0.0013)</td></tr><tr><td>10</td><td>m<sub>1</sub></td><td>1.000</td><td>0.9997 (0.000151)</td><td>0.9999 (0.000100)</td><td>0.9966 (0.000026)</td><td>0.997 (0.0014)</td></tr><tr><td>11</td><td>SDNNIDX</td><td>0.981</td><td>0.9998 (0.000132)</td><td>1.0000 (0.000065)</td><td>0.9971 (0.000021)</td><td>0.998 (0.0012)</td></tr><tr><td>12</td><td>sd<sub>5</sub></td><td>0.995</td><td>0.9998 (0.000152)</td><td>1.0000 (0.000065)</td><td>0.9971 (0.000024)</td><td>0.998 (0.0014)</td></tr><tr><td>13</td><td>m<sub>4</sub></td><td>1.000</td><td>0.9998 (0.000154)</td><td>1.0000 (0.000061)</td><td>0.9974 (0.000022)</td><td>0.998 (0.0014)</td></tr><tr><td>14</td><td>MADRR</td><td>0.990</td><td>0.9998 (0.000136)</td><td>0.9999 (0.000072)</td><td>0.9973 (0.000021)</td><td>0.998 (0.0012)</td></tr><tr><td>15</td><td>sd<sub>6</sub></td><td>0.967</td><td>0.9998 (0.000132)</td><td>1.0000 (0.000065)</td><td>0.9973 (0.000021)</td><td>0.998 (0.0012)</td></tr><tr><td>16</td><td>m<sub>5</sub></td><td>1.000</td><td>0.9998 (0.000134)</td><td>0.9999 (0.000091)</td><td>0.9973 (0.000018)</td><td>0.998 (0.0012)</td></tr><tr><td colspan="7"><strong>Mean decrease accuracy</strong></td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>1.000</td><td>0.9995 (0.000209)</td><td>0.9998 (0.000151)</td><td>0.9955 (0.002087)</td><td>0.996 (0.0019)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.876</td><td>0.9996 (0.000162)</td><td>0.9998 (0.000136)</td><td>0.9962 (0.002022)</td><td>0.996 (0.0015)</td></tr><tr><td>3</td><td>sd<sub>4</sub></td><td>0.902</td><td>0.9996 (0.000175)</td><td>0.9998 (0.000127)</td><td>0.9963 (0.002363)</td><td>0.997 (0.0016)</td></tr><tr><td>4</td><td>m<sub>3</sub></td><td>0.852</td><td>0.9996 (0.000220)</td><td>0.9998 (0.000144)</td><td>0.9963 (0.003057)</td><td>0.997 (0.0020)</td></tr><tr><td>5</td><td>sd<sub>5</sub></td><td>0.868</td><td>0.9996 (0.000179)</td><td>0.9999 (0.000130)</td><td>0.9963 (0.002221)</td><td>0.997 (0.0016)</td></tr><tr><td>6</td><td>m<sub>2</sub></td><td>0.886</td><td>0.9996 (0.000151)</td><td>0.9998 (0.000114)</td><td>0.9962 (0.002100)</td><td>0.997 (0.0014)</td></tr><tr><td>7</td><td>sd<sub>6</sub></td><td>0.883</td><td>0.9997 (0.000171)</td><td>0.9999 (0.000114)</td><td>0.9963 (0.002735)</td><td>0.997 (0.0016)</td></tr><tr><td>8</td><td>m<sub>4</sub></td><td>0.858</td><td>0.9997 (0.000122)</td><td>0.9999 (0.000100)</td><td>0.9966 (0.001843)</td><td>0.997 (0.0011)</td></tr><tr><td>9</td><td>sd<sub>7</sub></td><td>0.838</td><td>0.9997 (0.000161)</td><td>0.9999 (0.000094)</td><td>0.9966 (0.002583)</td><td>0.997 (0.0015)</td></tr><tr><td>10</td><td>sd<sub>1</sub></td><td>0.815</td><td>0.9997 (0.000177)</td><td>0.9999 (0.000120)</td><td>0.9966 (0.002512)</td><td>0.997 (0.0016)</td></tr><tr><td>11</td><td>sd<sub>8</sub></td><td>0.802</td><td>0.9997 (0.000171)</td><td>0.9999 (0.000109)</td><td>0.9965 (0.002426)</td><td>0.997 (0.0016)</td></tr><tr><td>12</td><td>sd<sub>9</sub></td><td>0.796</td><td>0.9997 (0.000161)</td><td>0.9999 (0.000081)</td><td>0.9965 (0.002487)</td><td>0.997 (0.0015)</td></tr><tr><td>13</td><td>m<sub>1</sub></td><td>0.801</td><td>0.9997 (0.000156)</td><td>0.9999 (0.000119)</td><td>0.9965 (0.002089)</td><td>0.997 (0.0014)</td></tr><tr><td>14</td><td>sd<sub>10</sub></td><td>0.824</td><td>0.9997 (0.000191)</td><td>0.9999 (0.000102)</td><td>0.9965 (0.002697)</td><td>0.997 (0.0018)</td></tr><tr><td>15</td><td>m<sub>5</sub></td><td>0.851</td><td>0.9997 (0.000144)</td><td>0.9999 (0.000090)</td><td>0.9965 (0.002118)</td><td>0.998 (0.0013)</td></tr><tr><td>16</td><td>SDSD</td><td>0.853</td><td>0.9998 (0.000151)</td><td>0.9999 (0.000070)</td><td>0.9971 (0.002154)</td><td>0.998 (0.0014)</td></tr><tr><td colspan="7"><strong>Mean decrease gini</strong></td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>0.634</td><td>0.9996 (0.000210)</td><td>0.9998 (0.000128)</td><td>0.9955 (0.002808)</td><td>0.996 (0.0019)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.778</td><td>0.9996 (0.000176)</td><td>0.9998 (0.000112)</td><td>0.9964 (0.002226)</td><td>0.997 (0.0016)</td></tr><tr><td>3</td><td>m<sub>3</sub></td><td>0.790</td><td>0.9996 (0.000157)</td><td>0.9998 (0.000101)</td><td>0.9964 (0.002343)</td><td>0.997 (0.0014)</td></tr><tr><td>4</td><td>m<sub>4</sub></td><td>0.883</td><td>0.9997 (0.000154)</td><td>0.9998 (0.000118)</td><td>0.9966 (0.002061)</td><td>0.997 (0.0014)</td></tr><tr><td>5</td><td>sd<sub>4</sub></td><td>0.886</td><td>0.9997 (0.000164)</td><td>0.9998 (0.000147)</td><td>0.9966 (0.001517)</td><td>0.997 (0.0015)</td></tr><tr><td>6</td><td>m<sub>2</sub></td><td>0.911</td><td>0.9997 (0.000173)</td><td>0.9998 (0.000136)</td><td>0.9966 (0.002243)</td><td>0.997 (0.0016)</td></tr><tr><td>7</td><td>m<sub>5</sub></td><td>0.910</td><td>0.9997 (0.000206)</td><td>0.9999 (0.000113)</td><td>0.9964 (0.002639)</td><td>0.997 (0.0019)</td></tr><tr><td>8</td><td>sd<sub>5</sub></td><td>0.915</td><td>0.9997 (0.000135)</td><td>0.9999 (0.000106)</td><td>0.9964 (0.002013)</td><td>0.997 (0.0012)</td></tr><tr><td>9</td><td>sd<sub>1</sub></td><td>0.914</td><td>0.9997 (0.000168)</td><td>0.9999 (0.000113)</td><td>0.9965 (0.002046)</td><td>0.997 (0.0015)</td></tr><tr><td>10</td><td>sd<sub>6</sub></td><td>0.929</td><td>0.9997 (0.000162)</td><td>0.9999 (0.000115)</td><td>0.9966 (0.002147)</td><td>0.997 (0.0015)</td></tr><tr><td>11</td><td>m<sub>1</sub></td><td>0.931</td><td>0.9997 (0.000176)</td><td>0.9999 (0.000109)</td><td>0.9962 (0.002669)</td><td>0.997 (0.0016)</td></tr><tr><td>12</td><td>sd<sub>7</sub></td><td>0.912</td><td>0.9997 (0.000151)</td><td>0.9999 (0.000108)</td><td>0.9965 (0.002256)</td><td>0.997 (0.0014)</td></tr></tbody></table>
<table><caption>**Table 3** (continued)</caption><thead><tr><th colspan="3">Feature selection (Training dataset)</th><th colspan="4">Classification performances (Training dataset)</th></tr><tr><th>Dim</th><th>Added feature</th><th>KI</th><th>Accuracy</th><th>Specificity</th><th>Sensitivity</th><th>MCC</th></tr></thead><tbody><tr><td>13</td><td>m<sub>6</sub></td><td>0.919</td><td>0.9997 (0.000128)</td><td>0.9999 (0.000091)</td><td>0.9963 (0.001798)</td><td>0.997 (0.0012)</td></tr><tr><td>14</td><td>sd<sub>8</sub></td><td>0.922</td><td>0.9997 (0.000170)</td><td>0.9999 (0.000085)</td><td>0.9963 (0.002337)</td><td>0.997 (0.0016)</td></tr><tr><td>15</td><td>sd<sub>9</sub></td><td>0.912</td><td>0.9997 (0.000156)</td><td>0.9999 (0.000082)</td><td>0.9962 (0.002653)</td><td>0.997 (0.0014)</td></tr><tr><td>16</td><td>sd<sub>10</sub></td><td>0.880</td><td>0.9997 (0.000143)</td><td>0.9999 (0.000102)</td><td>0.9962 (0.002302)</td><td>0.997 (0.0013)</td></tr><tr><td colspan="8">AUC</td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>1.000</td><td>0.9995 (0.000193)</td><td>0.9998 (0.000149)</td><td>0.9955 (0.002061)</td><td>0.996 (0.0018)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.861</td><td>0.9996 (0.000163)</td><td>0.9998 (0.000114)</td><td>0.9964 (0.002626)</td><td>0.997 (0.0015)</td></tr><tr><td>3</td><td>m<sub>3</sub></td><td>0.802</td><td>0.9996 (0.000182)</td><td>0.9998 (0.000132)</td><td>0.9963 (0.002337)</td><td>0.997 (0.0017)</td></tr><tr><td>4</td><td>sd<sub>4</sub></td><td>0.857</td><td>0.9996 (0.000184)</td><td>0.9998 (0.000122)</td><td>0.9963 (0.002353)</td><td>0.997 (0.0017)</td></tr><tr><td>5</td><td>m<sub>2</sub></td><td>0.879</td><td>0.9996 (0.000191)</td><td>0.9998 (0.000109)</td><td>0.9962 (0.002470)</td><td>0.997 (0.0018)</td></tr><tr><td>6</td><td>sd<sub>5</sub></td><td>0.897</td><td>0.9996 (0.000165)</td><td>0.9998 (0.000110)</td><td>0.9963 (0.002512)</td><td>0.997 (0.0015)</td></tr><tr><td>7</td><td>m<sub>4</sub></td><td>0.924</td><td>0.9997 (0.000150)</td><td>0.9998 (0.000129)</td><td>0.9966 (0.002119)</td><td>0.997 (0.0014)</td></tr><tr><td>8</td><td>sd<sub>1</sub></td><td>0.970</td><td>0.9997 (0.000172)</td><td>0.9998 (0.000136)</td><td>0.9966 (0.002388)</td><td>0.997 (0.0016)</td></tr><tr><td>9</td><td>sd<sub>6</sub></td><td>0.978</td><td>0.9997 (0.000115)</td><td>0.9999 (0.000093)</td><td>0.9966 (0.002001)</td><td>0.997 (0.0011)</td></tr><tr><td>10</td><td>m<sub>1</sub></td><td>0.907</td><td>0.9997 (0.000186)</td><td>0.9999 (0.000097)</td><td>0.9965 (0.002535)</td><td>0.997 (0.0017)</td></tr><tr><td>11</td><td>sd<sub>7</sub></td><td>0.924</td><td>0.9997 (0.000149)</td><td>0.9999 (0.000087)</td><td>0.9966 (0.001939)</td><td>0.997 (0.0014)</td></tr><tr><td>12</td><td>m<sub>5</sub></td><td>0.941</td><td>0.9997 (0.000154)</td><td>0.9999 (0.000098)</td><td>0.9964 (0.002420)</td><td>0.997 (0.0014)</td></tr><tr><td>13</td><td>sd<sub>8</sub></td><td>0.995</td><td>0.9997 (0.000138)</td><td>0.9999 (0.000082)</td><td>0.9964 (0.002398)</td><td>0.998 (0.0013)</td></tr><tr><td>14</td><td>sd<sub>9</sub></td><td>1.000</td><td>0.9997 (0.000135)</td><td>0.9999 (0.000087)</td><td>0.9964 (0.001707)</td><td>0.997 (0.0012)</td></tr><tr><td>15</td><td>sd<sub>10</sub></td><td>0.947</td><td>0.9997 (0.000159)</td><td>0.9999 (0.000094)</td><td>0.9964 (0.002237)</td><td>0.997 (0.0015)</td></tr><tr><td>16</td><td>RMSSD</td><td>0.951</td><td>0.9998 (0.000162)</td><td>0.9999 (0.000094)</td><td>0.9970 (0.002176)</td><td>0.998 (0.0015)</td></tr></tbody></table>

Results are presented according to the number of features (from 1 to 16) and to the KI calculated on 150 replications of the ranking given by the four feature selection approaches (γ-metric, MDA, MDG, and AUC)

Similarly, multi-layer neural networks may be a good alternative to more traditional machine learning models. Indeed, these networks use non-linear activation functions (rectified linear, hyperbolic tangent, and sigmoid activation functions being the most common) that can lead to significantly better performance results. A recent literature review [32] has described different applications of deep learning models in healthcare using physiological data; it has concluded by recommending these models to improve diagnostic performance. In the field of automatic atrial detection, the use of convolutional neural networks [33] seems to yield more accurate and robust results. Another study has described the advantages of using deep neural networks in the field of AF detection when considering more than three classes (for example, NSR, AF, and noise) [34]. More recently, a method based on deep

learning and feature extraction (MultiFusionNet, [35]) has been proposed that outperforms most recent algorithms. The main advantage of this method is that it combines extracted features with raw data to train the deep classifier, which can be construed as a form of feature selection. Future evaluations of the γ-metric feature selection approach should consider using such methods.

In the future, studies should be conducted to evaluate the performance of the γ-metric feature selection approach for a greater number of classes. In particular, it would be interesting to determine the impact of using a greater number of classes on the selected variables along with error rates and stability indices. In the field of automated AF detection, this approach could cover several pathological conditions and, consequently, and could therefore help improve clinical decision making.
<table><caption>**Table 4** Classification performances (median accuracy, sensitivity, specificity, and MCC values with their interquartile ranges) computed by bootstrap with 1000 replications applied to the validation dataset</caption><thead><tr><th colspan="2">Features</th><th colspan="4">Classification performances (Validation dataset)</th></tr><tr><th>Dim</th><th>Added feature</th><th>Accuracy</th><th>Specificity</th><th>Sensitivity</th><th>MCC</th></tr></thead><tbody><tr><td colspan="6"><strong>γ-metric</strong></td></tr><tr><td>1</td><td>sd<sub>2</sub></td><td>0.9108 (0.0019)</td><td>0.9518 (0.0016)</td><td>0.7983 (0.0054)</td><td>0.768 (0.0051)</td></tr><tr><td>2</td><td>sd<sub>3</sub></td><td>0.8973 (0.0020)</td><td>0.9502 (0.0017)</td><td>0.7520 (0.0051)</td><td>0.730 (0.0053)</td></tr><tr><td>3</td><td>sd<sub>1</sub></td><td>0.8972 (0.0019)</td><td>0.9502 (0.0017)</td><td>0.7518 (0.0054)</td><td>0.730 (0.0052)</td></tr><tr><td>4</td><td>pNN50</td><td>0.8945 (0.0022)</td><td>0.9449 (0.0018)</td><td>0.7565 (0.0055)</td><td>0.724 (0.0054)</td></tr><tr><td>5</td><td>sd<sub>4</sub></td><td>0.8945 (0.0020)</td><td>0.9448 (0.0017)</td><td>0.7563 (0.0054)</td><td>0.724 (0.0051)</td></tr><tr><td>6</td><td>RMSSD</td><td>0.8933 (0.0020)</td><td>0.9445 (0.0018)</td><td>0.7531 (0.0051)</td><td>0.721 (0.0052)</td></tr><tr><td>7</td><td>SDSD</td><td>0.8935 (0.0021)</td><td>0.9446 (0.0018)</td><td>0.7533 (0.0058)</td><td>0.721 (0.0054)</td></tr><tr><td>8</td><td>m<sub>2</sub></td><td>0.8944 (0.0021)</td><td>0.9456 (0.0018)</td><td>0.7543 (0.0057)</td><td>0.724 (0.0053)</td></tr><tr><td>9</td><td>m<sub>3</sub></td><td>0.8941 (0.0020)</td><td>0.9464 (0.0018)</td><td>0.7509 (0.0057)</td><td>0.722 (0.0052)</td></tr><tr><td>10</td><td>m<sub>1</sub></td><td>0.8931 (0.0021)</td><td>0.9448 (0.0018)</td><td>0.7512 (0.0056)</td><td>0.720 (0.0052)</td></tr><tr><td>11</td><td>SDNNIDX</td><td>0.8983 (0.0021)</td><td>0.9492 (0.0016)</td><td>0.7586 (0.0056)</td><td>0.733 (0.0054)</td></tr><tr><td>12</td><td>sd<sub>5</sub></td><td>0.8980 (0.0021)</td><td>0.9500 (0.0017)</td><td>0.7552 (0.0057)</td><td>0.732 (0.0052)</td></tr><tr><td>13</td><td>m<sub>4</sub></td><td>0.8980 (0.0019)</td><td>0.9490 (0.0016)</td><td>0.7583 (0.0058)</td><td>0.733 (0.0050)</td></tr><tr><td>14</td><td>MADDR</td><td>0.8961 (0.0020)</td><td>0.9474 (0.0016)</td><td>0.7551 (0.0056)</td><td>0.728 (0.0054)</td></tr><tr><td>15</td><td>sd<sub>6</sub></td><td>0.8957 (0.0021)</td><td>0.9474 (0.0018)</td><td>0.7542 (0.0052)</td><td>0.727 (0.0054)</td></tr><tr><td>16</td><td>m<sub>5</sub></td><td>0.8955 (0.0021)</td><td>0.9465 (0.0018)</td><td>0.7554 (0.0055)</td><td>0.726 (0.0054)</td></tr><tr><td colspan="6"><strong>Mean decrease accuracy</strong></td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>0.8930 (0.0022)</td><td>0.9517 (0.0017)</td><td>0.7317 (0.0059)</td><td>0.718 (0.0060)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.8972 (0.0021)</td><td>0.9502 (0.0017)</td><td>0.7517 (0.0051)</td><td>0.730 (0.0055)</td></tr><tr><td>3</td><td>sd<sub>4</sub></td><td>0.8972 (0.0019)</td><td>0.9506 (0.0017)</td><td>0.7509 (0.0053)</td><td>0.730 (0.0053)</td></tr><tr><td>4</td><td>m<sub>3</sub></td><td>0.8975 (0.0020)</td><td>0.9514 (0.0014)</td><td>0.7498 (0.0055)</td><td>0.731 (0.0051)</td></tr><tr><td>5</td><td>sd<sub>5</sub></td><td>0.8970 (0.0020)</td><td>0.9513 (0.0017)</td><td>0.7484 (0.0054)</td><td>0.729 (0.0053)</td></tr><tr><td>6</td><td>m<sub>2</sub></td><td>0.8979 (0.0019)</td><td>0.9512 (0.0017)</td><td>0.7520 (0.0052)</td><td>0.732 (0.0051)</td></tr><tr><td>7</td><td>sd<sub>6</sub></td><td>0.8977 (0.0020)</td><td>0.9514 (0.0016)</td><td>0.7506 (0.0059)</td><td>0.731 (0.0052)</td></tr><tr><td>8</td><td>m<sub>4</sub></td><td>0.8971 (0.0021)</td><td>0.9504 (0.0017)</td><td>0.7510 (0.0057)</td><td>0.730 (0.0053)</td></tr><tr><td>9</td><td>sd<sub>7</sub></td><td>0.8976 (0.0019)</td><td>0.9512 (0.0017)</td><td>0.7505 (0.0057)</td><td>0.731 (0.0051)</td></tr><tr><td>10</td><td>sd<sub>1</sub></td><td>0.8978 (0.0020)</td><td>0.9511 (0.0016)</td><td>0.7516 (0.0059)</td><td>0.731 (0.0051)</td></tr><tr><td>11</td><td>sd<sub>8</sub></td><td>0.8981 (0.0021)</td><td>0.9515 (0.0016)</td><td>0.7516 (0.0060)</td><td>0.732 (0.0055)</td></tr><tr><td>12</td><td>sd<sub>9</sub></td><td>0.8977 (0.0021)</td><td>0.9522 (0.0016)</td><td>0.7482 (0.0057)</td><td>0.731 (0.0053)</td></tr><tr><td>13</td><td>m<sub>1</sub></td><td>0.8972 (0.0020)</td><td>0.9510 (0.0016)</td><td>0.7499 (0.0058)</td><td>0.730 (0.0052)</td></tr><tr><td>14</td><td>sd<sub>10</sub></td><td>0.8970 (0.0020)</td><td>0.9514 (0.0016)</td><td>0.7475 (0.0055)</td><td>0.729 (0.0054)</td></tr><tr><td>15</td><td>m<sub>5</sub></td><td>0.8978 (0.0021)</td><td>0.9522 (0.0016)</td><td>0.7487 (0.0055)</td><td>0.732 (0.0054)</td></tr><tr><td>16</td><td>SDSD</td><td>0.8989 (0.0020)</td><td>0.9532 (0.0017)</td><td>0.7499 (0.0054)</td><td>0.734 (0.0053)</td></tr><tr><td colspan="6"><strong>Mean decrease gini</strong></td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>0.8931 (0.0022)</td><td>0.9516 (0.0017)</td><td>0.7321 (0.0058)</td><td>0.718 (0.0056)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.8973 (0.0021)</td><td>0.9503 (0.0017)</td><td>0.7517 (0.0051)</td><td>0.730 (0.0054)</td></tr><tr><td>3</td><td>m<sub>3</sub></td><td>0.8977 (0.0019)</td><td>0.9509 (0.0016)</td><td>0.7517 (0.0054)</td><td>0.731 (0.0051)</td></tr><tr><td>4</td><td>m<sub>4</sub></td><td>0.8972 (0.0021)</td><td>0.9506 (0.0017)</td><td>0.7512 (0.0056)</td><td>0.730 (0.0053)</td></tr><tr><td>5</td><td>sd<sub>4</sub></td><td>0.8973 (0.0019)</td><td>0.9507 (0.0016)</td><td>0.7507 (0.0052)</td><td>0.730 (0.0051)</td></tr><tr><td>6</td><td>m<sub>2</sub></td><td>0.8983 (0.0019)</td><td>0.9509 (0.0016)</td><td>0.7541 (0.0050)</td><td>0.733 (0.0051)</td></tr><tr><td>7</td><td>m<sub>5</sub></td><td>0.8975 (0.0020)</td><td>0.9510 (0.0017)</td><td>0.7507 (0.0060)</td><td>0.731 (0.0052)</td></tr><tr><td>8</td><td>sd<sub>5</sub></td><td>0.8977 (0.0020)</td><td>0.9510 (0.0017)</td><td>0.7515 (0.0057)</td><td>0.731 (0.0053)</td></tr><tr><td>9</td><td>sd<sub>1</sub></td><td>0.8975 (0.0020)</td><td>0.9504 (0.0017)</td><td>0.7528 (0.0056)</td><td>0.731 (0.0051)</td></tr><tr><td>10</td><td>sd<sub>6</sub></td><td>0.8974 (0.0020)</td><td>0.9513 (0.0016)</td><td>0.7497 (0.0059)</td><td>0.731 (0.0052)</td></tr><tr><td>11</td><td>m<sub>1</sub></td><td>0.8964 (0.0020)</td><td>0.9504 (0.0016)</td><td>0.7486 (0.0060)</td><td>0.728 (0.0055)</td></tr><tr><td>12</td><td>sd<sub>7</sub></td><td>0.8970 (0.0021)</td><td>0.9513 (0.0017)</td><td>0.7478 (0.0060)</td><td>0.729 (0.0054)</td></tr></tbody></table>
<table><caption>**Table 4** (continued)</caption><thead><tr><th colspan="2">Features</th><th colspan="4">Classification performances (Validation dataset)</th></tr><tr><th>Dim</th><th>Added feature</th><th>Accuracy</th><th>Specificity</th><th>Sensitivity</th><th>MCC</th></tr></thead><tbody><tr><td>13</td><td>m<sub>6</sub></td><td>0.8974 (0.0020)</td><td>0.9529 (0.0015)</td><td>0.7456 (0.0060)</td><td>0.730 (0.0052)</td></tr><tr><td>14</td><td>sd<sub>8</sub></td><td>0.8977 (0.0021)</td><td>0.9531 (0.0015)</td><td>0.7459 (0.0056)</td><td>0.731 (0.0053)</td></tr><tr><td>15</td><td>sd<sub>9</sub></td><td>0.8978 (0.0021)</td><td>0.9537 (0.0016)</td><td>0.7447 (0.0056)</td><td>0.731 (0.0055)</td></tr><tr><td>16</td><td>sd<sub>10</sub></td><td>0.8981 (0.0020)</td><td>0.9536 (0.0017)</td><td>0.7459 (0.0055)</td><td>0.732 (0.0052)</td></tr><tr><td colspan="6">AUC</td></tr><tr><td>1</td><td>sd<sub>3</sub></td><td>0.8930 (0.0022)</td><td>0.9517 (0.0017)</td><td>0.7317 (0.0059)</td><td>0.718 (0.0056)</td></tr><tr><td>2</td><td>sd<sub>2</sub></td><td>0.8973 (0.0020)</td><td>0.9502 (0.0017)</td><td>0.7317 (0.0059)</td><td>0.730 (0.0053)</td></tr><tr><td>3</td><td>m<sub>3</sub></td><td>0.8977 (0.0019)</td><td>0.9509 (0.0016)</td><td>0.7516 (0.0055)</td><td>0.731 (0.0051)</td></tr><tr><td>4</td><td>sd<sub>4</sub></td><td>0.8975 (0.0020)</td><td>0.9514 (0.0017)</td><td>0.7501 (0.0056)</td><td>0.731 (0.0053)</td></tr><tr><td>5</td><td>m<sub>2</sub></td><td>0.8974 (0.0020)</td><td>0.9515 (0.0016)</td><td>0.7490 (0.0054)</td><td>0.730 (0.0052)</td></tr><tr><td>6</td><td>sd<sub>5</sub></td><td>0.8977 (0.0019)</td><td>0.9515 (0.0017)</td><td>0.7502 (0.0051)</td><td>0.731 (0.0052)</td></tr><tr><td>7</td><td>m<sub>4</sub></td><td>0.8976 (0.0020)</td><td>0.9507 (0.0016)</td><td>0.7520 (0.0059)</td><td>0.731 (0.0052)</td></tr><tr><td>8</td><td>sd<sub>1</sub></td><td>0.8974 (0.0021)</td><td>0.9506 (0.0017)</td><td>0.7518 (0.0056)</td><td>0.731 (0.0053)</td></tr><tr><td>9</td><td>sd<sub>6</sub></td><td>0.8971 (0.0019)</td><td>0.9504 (0.0017)</td><td>0.7512 (0.0057)</td><td>0.730 (0.0052)</td></tr><tr><td>10</td><td>m<sub>1</sub></td><td>0.8965 (0.0020)</td><td>0.9508 (0.0016)</td><td>0.7473 (0.0060)</td><td>0.728 (0.0051)</td></tr><tr><td>11</td><td>sd<sub>7</sub></td><td>0.8967 (0.0021)</td><td>0.9504 (0.0016)</td><td>0.7496 (0.0059)</td><td>0.729 (0.0054)</td></tr><tr><td>12</td><td>m<sub>5</sub></td><td>0.8970 (0.0021)</td><td>0.9513 (0.0017)</td><td>0.7478 (0.0060)</td><td>0.729 (0.0054)</td></tr><tr><td>13</td><td>sd<sub>8</sub></td><td>0.8971 (0.0020)</td><td>0.9519 (0.0015)</td><td>0.7470 (0.0057)</td><td>0.730 (0.0052)</td></tr><tr><td>14</td><td>sd<sub>9</sub></td><td>0.8974 (0.0020)</td><td>0.9525 (0.0016)</td><td>0.7464 (0.0055)</td><td>0.730 (0.0054)</td></tr><tr><td>15</td><td>sd<sub>10</sub></td><td>0.8978 (0.0021)</td><td>0.9522 (0.0016)</td><td>0.7486 (0.0055)</td><td>0.731 (0.0054)</td></tr><tr><td>16</td><td>RMSSD</td><td>0.8991 (0.0020)</td><td>0.9526 (0.0018)</td><td>0.7522 (0.0055)</td><td>0.735 (0.0051)</td></tr></tbody></table>

Results are presented according to the number of features (from 1 to 16) selected by each feature selection approach (γ-metric, MDA, MDG, and AUC). Interquartile ranges were computed on the bootstrap estimations of the performance indicators as a measure of dispersion

## Conclusion

The present study proposed and evaluated a filter approach for feature selection in classification using an evaluation function, the γ-metric. This approach yielded encouraging results for its application in AF detection. Indeed, AF is frequently paroxysmal and/or asymptomatic; moreover, its prevalence increases with age and it is one of the leading causes of stroke. Developing efficient automated tools for early AF detection could help physicians better manage this disorder, including via the administration of oral anticoagulation treatment which has proven to be highly efficacious for stroke prevention. In this perspective, feature selection combined with classification could offer new strategies for quasi real-time diagnosis using other types of big data, in particular physiological data obtained with connected health objects and mobile health applications.

### Abbreviations

AF: Atrial fibrillation; afb: Atrial fibrillation database; AUC: Area under the curve; CART: Classification and regression tree; ECG: Electrocardiogram; GA: Genetic algorithm; HRV.index: Heart rhythm variability index; IRRR

Interquartile range of RR intervals; KI: Kuncheva index; MADRR: Median of the absolute differences between adjacent RR intervals; MCC: Matthews correlation coefficient; MDA: Mean decrease in accuracy; MDG: Mean decrease in Gini index; MIT-BIH: Massachusetts Institute of Technology-Beth Israel Hospital; NSR: Normal sinus rhythm; nsrdb: Normal sinus rhythm database; pNN50: Percentage of differences between successive RR intervals greater than 50 ms; RF: Random forest; RMSSD: Root-mean-square of successive differences; ROC: Receiver operating characteristic; SDANN: Standard deviation of the averages of 5-s RR intervals; SDNN: Standard deviation of all RR intervals; SDNNIdx: Mean of all standard deviations of 5-s RR intervals; SDSD: Standard deviation of successive differences; SMOTE: Synthetic minority over-sampling technique; SVM: Support vector machine; TINN: Triangular interpolation of the RR interval histogram.

## Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1186/s12911-021-01427-8.

**Additional file 1.** Step-by-step mathematical derivation of Equation 4 to compute $d_{k1} \times k_{1k2}$.

### Acknowledgements

This work was supported by the French National Research Agency (Grant ANR-17-EURE-0020) and the Carnot STAR Institute. The authors are grateful to Joris Ravaglia for useful discussions and comments. The authors would also like to thank Arianne Dorval for revising the manuscript.
**About this supplement**

This article has been published as part of BMC Medical Informatics and Decision Making Volume 21, Supplement 4 2021: 15th and 16th International Conference on Computational Intelligence methods for Bioinformatics and Biostatistics (CIBB 2018-19). The full contents of the supplement are available at https://bmcmedinformdecismak.biomedcentral.com/articles/supplements/volume-21-supplement-4.

**Authors' contributions**

PM, NN, and RG designed the study. PM and NN designed the computational framework, analyzed the data, and wrote the first version of the manuscript. RG contributed to the analysis of the data, the interpretations of the findings, and the drafting of the manuscript. JFP and SD provided the data, identified the medical variables of interest, and critically revised the article. All authors read and approved the final manuscript.

**Funding**

This work was supported by the French National Research Agency (Grant ANR-17-EURE-0020) and the Carnot STAR Institute.

**Availability of data and materials**

Data from the Physionet website are in open access. To obtain 24-hours Holter data from the Department of Cardiology and Rhythmology of Marseille University Hospital Center (Timone Hospital), researchers can submit a written request to roch.giorgi@ap-hm.fr.

**Ethics approval and consent to participate**

Data obtained from Physionet are in open access, as per the license available on the Physionet website. Data obtained from the Department of Cardiology and Rhythmology of Marseille University Hospital Center (Timone Hospital) were previously collected as part of medical care.

**Consent to publish**

Considering that this research did not involve human subjects, and according to hospital rules, all patients were informed at the time of their hospitalization that their data could be used for research purposes.

**Competing interests**

The authors declare that they have no competing interests.

**Author details**

Received: 25 January 2021 Accepted: 9 February 2021

Published: 4 May 2021

**References**

1. Liu H, Yu L. Toward integrating feature selection algorithms for classification and clustering. IEEE Trans Knowl Data Eng. 2005;17(4):491-502.

2. Guyon I, Elisseeff A. An introduction to variable and feature selection. J Mach Learn Res. 2003;3:1157-82.

3. Liu H, Motoda H. Feature selection for knowledge discovery and data mining. Berlin: Springer; 1998.

4. Rich E, Knight K. Artificial intelligence. 2nd ed. New York: McGraw-Hill Publishing Co.; 1990.

5. Dorigo M, Birattari M, Stutzle T. Ant colony optimization. IEEE Comput Intell Mag. 2006;1(4):28-39.

6. Holland JH, et al. Adaptation in natural and artificial systems: an introduc-tory analysis with applications to biology, control, and artificial intel-gligence. Cambridge: MIT Press; 1992.

7. Tangherloni A, Spolaor S, Cazzaniga P, Besozzi D, Rundo L, Mauri G, et al. Biochemical parameter estimation vs. benchmark functions: a comparative study of optimization performance and representation design. Appl Soft Comput. 2019;81:105494.

8. Duch W, Grabczewski K, Winiarski T, Biesiada J, Kachel A. Feature selection based on information theory, consistency and separability indices. In: Proceedings of the 9th international conference on neural information processing, ICONIP '02, vol 4; 2002. p. 1951-1955.

9. Dash M, Liu H. Feature selection for classification. Intell Data Anal. 1997;1(1):131-56.

10. Kohavi R, John GH. Wrappers for feature subset selection. Artif Intell. 1997;97(1):273-324.

11. Wolf PA, Abbott RD, Kannel WB. Atrial fibrillation as an independent risk factor for stroke: the Framingham Study. Stroke. 1991;22(8):983-8.

12. Virani SS, Alonso A, Benjamin EJ, Bittencourt MS, Callaway CW, Carson AP, et al. Heart disease and stroke statistics-2020 update: a report from the American Heart Association. Circulation. 2020;141(9):e139-596.

13. Reiffel JA. Atrial fibrillation and stroke: epidemiology. Am J Med. 2014;127(4):e15-16.

14. Pons JF, Haddi Z, Deharo JC, Charaï A, Bouchakour R, Ouladsine M, et al. Heart rhythm characterization through induced physiological variables. Sci Rep. 2017;7(1):5059.

15. Cortes C, Vapnik V. Support-vector networks. Mach Learn. 1995;20(3):273-97.

16. 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(23):E215-220.

17. Martínez CAG, Quintana AO, Vila XA, Touriño MJL, Rodríguez-Liñares L, Presedo JMR, et al. Heart rate variability analysis with the R package RHRV. Use R! Berlin: Springer; 2017.

18. GitHub. https://github.com/Pierre-Michel/gammaMetric.

19. Dernoncourt D, Hanczar B, Zucker JD. Analysis of feature selection stability on high dimension and small sample data. Comput Stat Data Anal. 2014;71:681-93.

20. Kalousis A, Prados J, Hilario M. Stability of feature selection algorithms: a study on high-dimensional spaces. Knowl Inf Syst. 2007;12(1):95-116.

21. Kuncheva LI. A stability index for feature selection. In: Proceedings of the 25th conference on proceedings of the 25th IASTED international multi-conference: artificial intelligence and applications. AIAP'07, Anaheim, CA, USA. ACTA Press; 2007. p. 390-395. http://dl.acm.org/citation.cfm?id=1295303.1295370.

22. Tufféry S. Data Mining et Statistique décisionnelle : La science des données. 5th ed. Paris: Editions Technip; 2017.

23. Breiman L. Random forests. Mach Learn. 2001;45(1):5-32. https://doi.org/10.1023/A:1010933404324.

24. Liaw A, Wiener M. Classification and regression by random forest. R News. 2002;2(3):18-22.

25. Kuhn M. Building predictive models in R using the caret package. J Stat Softw. 2008;28(5):1-26.

26. Matthews BW. Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochim Biophys Acta (BBA) Protein Struct. 1975;405(2):442-51.

27. Somol P, Novovicová J. Evaluating stability and comparing output of feature selectors that optimize feature subset cardinality. IEEE Trans Pattern Anal Mach Intell. 2010;32(11):1921-39.

28. Breiman L. Classification and regression trees. Belmont: Wadsworth International Group; 1984.

29. Friedman JH. Greedy function approximation: a gradient boosting machine. Ann Stat. 2001;29(5):1189-232.

30. Veropoulos K, Campbell C, Cristianini N. Controlling the sensitivity of support vector machines. In: Proceedings of the international joint conference on AI; 1999. p. 55-60.

31. Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. SMOTE: synthetic minority over-sampling technique. J Artif Intell Res. 2002;16:321-57.

32. Faust O, Hagiwara Y, Hong TJ, Lih OS, Acharya UR. Deep learning for healthcare applications based on physiological signals: a review. Comput Methods Programs Biomed. 2018;161:1-13.

<footnote n="1">¹ CNRS, EHESS, Centrale Marseille, AMSE, Aix-Marseille Univ, Marseille, France.</footnote>

<footnote n="2">² INSERM, IRD, SESSTIM, Sciences Economiques & Sociales de la Santé & Traitement de l'Information Médicale, Aix Marseille Univ, Marseille, France.</footnote>

<footnote n="3">³ WitMonki SAS, Marseille, France. ⁴ INSERM, INRAE, C2VN, Aix Marseille Univ, Marseille, France. ⁵ Hôpital Nord, Service des Explorations Fonctionnelles Respiratoires, Pôle cardiovasculaire, APHM, Marseille, France. ⁶ APHM, INSERM, IRD, Sciences Economiques & Sociales de la Sante & Traitement de l'Information Médicale (SESSTIM), Hop Timone, Biostatistique et Technologies de l'Information et de la Communication (BioSTIC), Aix Marseille Univ, Marseille, France.</footnote>
33. Shashikumar SP, Shah AJ, Li Q, Clifford GD, Nemati S. A deep learning approach to monitoring and detecting atrial fibrillation using wearable technology. In: IEEE EMBS international conference on biomedical health informatics (BHI); 2017. p. 141–144.

34. Khriji L, Fradi M, Machhout M, Hossen A. Deep learning-based approach for atrial fibrillation detection. In: Jmaiel M, Mokhtari M, Abdulrazak B, Aloulou H, Kallel S, editors. The impact of digital technologies on public health in developed and developing countries. Lecture notes in computer science. Berlin: Springer; 2020. p. 100–13.

35. Tran L, Li Y, Nocera L, Shahabi C, Xiong L. MultiFusionNet: atrial fibrillation detection with deep neural networks. AMIA Summits Transl Sci Proc. 2020;2020:654–63.

**Publisher’s Note**

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Ready to submit your research? Choose BMC and benefit from:

* fast, convenient online submission

* thorough peer review by experienced researchers in your field

* rapid publication on acceptance

* support for research data, including large and complex data types

* gold Open Access which fosters wider collaboration and increased citations

* maximum visibility for your research: over 100M website views per year

At BMC, research is always in progress.

Learn more biomedcentral.com/submissions

<figure><img src="image_9.png" /></figure>