The device could help detect a common heart rhythm disorder before it leads to a life-threatening stroke.