Atrial Fibrillation Detection Algorithm with Ratio Variation-Based Features