# Comparison of ANN and ANFIS Models for AF Diagnosis Using RR Irregularities
## 3 Results and Discussion
The ANFIS enhances the performance of the ANN through fuzzy logic that makes the model able to capture important characteristics of the data. Figure 6: Tukey pairwise comparisons of variables, when numbers 1, 2, and 3 represent NSR, PAF, and AF, respectively. \begin{table}
\begin{tabular}{c c c c c c c c c c c c} \hline  & \multirow{2}{*}{**\%-10-Fold**} & \multirow{2}{*}{**ACC**} & \multicolumn{3}{c}{**NSR**} & \multicolumn{3}{c}{**PAF**} & \multicolumn{3}{c}{**AF**} \\ \cline{3-13}  & & & **SE** & **SP** & **PPR** & **SE** & **SP** & **PPR** & **SE** & **SP** & **PPR** \\ \hline
**CV** & & & & & & & & & & & & \\ ANN (10) & 46.33\% & 49.33\% & 60.00\% & 100.00\% & 100.00\% & 72.00\% & 45.61\% & 36.73\% & 16.00\% & 86.00\% & 36.36\% \\ ANN (15) & 51.31\% & 53.33\% & 64.00\% & 100.00\% & 100.00\% & 76.00\% & 48.21\% & 39.58\% & 20.00\% & 88.00\% & 45.45\% \\ ANN (25) & 52.32\% & 57.33\% & 68.00\% & 100.00\% & 100.00\% & 80.00\% & 50.91\% & 42.55\% & 24.00\% & 90.00\% & 54.55\% \\ ANN (50) & 69.00\% & 64.00\% & 68.00\% & 100.00\% & 100.00\% & 52.00\% & 75.81\% & 46.43\% & 72.00\% & 76.00\% & 60.00\% \\ ANN (100) & 77.03\% & 72.00\% & 68.00\% & 100.00\% & 100.00\% & 76.00\% & 73.21\% & 55.88\% & 72.00\% & 88.00\% & 75.00\% \\ ANPS\_trinfinf & 71.28\% & 69.33\% & 72.00\% & 98.00\% & 94.74\% & 76.00\% & 73.21\% & 55.88\% & 60.00\% & 86.00\% & 68.18\% \\ ANPS\_trempt & 71.99\% & 72.00\% & 78.00\% & 94.74\% & 72.00\% & 78.95\% & 60.00\% & 72.00\% & 84.00\% & 69.23\% \\ ANPS\_bellinf & 60.04\% & 64.00\% & 72.00\% & 98.00\% & 94.74\% & 68.00\% & 67.24\% & 47.22\% & 52.00\% & 86.00\% & 65.00\% \\ ANPS\_gaussian & 70.31\% & 63.33\% & 72.00\% & 96.00\% & 90.00\% & 64.00\% & 71.19\% & 48.48\% & 60.00\% & 86.00\% & 68.18\% \\ ANPS\_gaussian\(\!\) & 67.37\% & 65.33\% & 72.00\% & 96.00\% & 90.00\% & 64.00\% & 71.19\% & 48.48\% & 60.00\% & 86.00\% & 68.18\% \\ \hline
**MAD** & & & & & & & & & & & \\ ANN (10) & 47.34\% & 49.33\% & 64.00\% & 96.00\% & 88.89\% & 32.00\% & 68.66\% & 27.59\% & 52.00\% & 70.00\% & 46.43\% \\ ANN (15) & 52.63\% & 50.67\% & 68.00\% & 100.00\% & 100.00\% & 28.00\% & 72.00\% & 26.92\% & 56.00\% & 64.00\% & 43.75\% \\ ANN (25) & 57.28\% & 57.33\% & 76.00\% & 98. \begin{table}
\begin{tabular}{c c c c c c c c c c c c} \hline \hline  & \%\_10-Fold & ACC & \multicolumn{3}{c}{**NSR**} & \multicolumn{3}{c}{**PAF**} & \multicolumn{3}{c}{**AF**} \\ \cline{3-13}  & & & **SE** & **SP** & **PFR** & **SE** & **SP** & **PFR** & **SE** & **SP** & **PFR** \\ \hline
**SAV \({}^{*}\)** & & & & & & & & & & & & \\ ANN (10) & 60.34\% & 65.33\% & 80.00\% & 98.00\% & 95.24\% & 52.00\% & 77.42\% & 48.15\% & 64.00\% & 78.00\% & 59.26\% \\ ANN (15) & 67.64\% & 70.67\% & 84.00\% & 96.00\% & 91.30\% & 56.00\% & 81.97\% & 56.00\% & 72.00\% & 82.00\% & 66.67\% \\ ANN (52) & 72.70\% & 74.76\% & 84.00\% & 100.00\% & 100.00\% & 64.00\% & 83.05\% & 61.54\% & 76.00\% & 82.00\% & 67.86\% \\ ANN (50) & 84.98\% & 80.00\% & 92.00\% & 100.00\% & 100.00\% & 68.00\% & 87.93\% & 70.83\% & 80.00\% & 84.00\% & 71.43\% \\ ANN (100) & 86.32\% & 85.33\% & 96.00\% & 100.00\% & 100.00\% & 80.00\% & 89.00\% & 76.92\% & 80.00\% & 90.00\% & 80.00\% \\ ANPS,fmfmf & 86.32\% & 85.33\% & 100.00\% & 92.00\% & 86.21\% & 76.00\% & 91.00\% & 79.17\% & 80.00\% & 100.00\% & 100.00\% \\ \hline
**ANPS,fmfmf** & **87.30\%** & **89.33\%** & **100.00\%** & **94.00\%** & **89.29\%** & **88.00\%** & **90.57\%** & **81.48\%** & **80.00\%** & **96.00\%** & **90.91\%** \\ ANPS,bfmf & 76.02\% & 80.00\% & 96.00\% & 92.00\% & 85.71\% & 68.00\% & 87.93\% & 70.83\% & 76.00\% & 92.00\% & 82.61\% \\ ANPS,gaussmf & 87.95\% & 84.00\% & 100.00\% & 84.00\% & 75.76\% & 68.00\% & 93.10\% & 80.95\% & 84.00\% & 100.00\% & 100.00\% \\ ANPS,gauss2 mf & 81.00\% & 84.00\% & 100.00\% & 86.00\% & 78.13\% & 72.00\% & 91.23\% & 78.28\% & 80.00\% & 100.00\% & 100.00\% \\ \hline \multicolumn{10}{c}{\({}^{*}\) a newly proposed feature for this research.} \\ \hline \hline \end{tabular}
\end{table}