The most common type of arrhythmia, atrial fibrillation is an irregular beating of the heart that can lead to strokes. And unless an electrocardiogram is being used, it can be difficult to detect. Soon, however, an app may be all that's required to do the job.