{'fraction_non_alphanumeric': 0.02012987012987013, 'fraction_numerical': 0.0, 'mean_word_length': 5.529661016949152, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Smartphone Orientation Estimation Algorithm Combining Kalman Filter With Gradient Descent

Availability and all-in-one functionality of smartphones have become a multipurpose personal tool to improve our daily life. Recent advancements in hardware and accessibility of smartphones have spawn huge potential for assistive healthcare, in particular telerehabilitation. However, using smartphone sensors face certain challenges, in particular, accurate orientation estimation, which is usually less of a problem in specialized motion tracking sensor devices. Drift is one of the challenges. We first propose a simple feedback loop complementary filter (CFF) to reduce the error caused by the integration of the gyroscope's data in the orientation estimation. Next, we propose a new and better orientation estimation algorithm which combines quaternion-based kalman filter with corrector estimates using gradient descent (KFGD). We then evaluate CFF's and KFGD's performance on two early-stage rehabilitation exercises. The results show that CFF is capable of fast motion tracking and confirm that the feedback loop can correct the error caused by the integration of gyroscope data. The KFGD orientation estimation is comparable to XSENS Awinda and has shown itself to be stable than and outperforms CFF. KFGD also outperforms the prominent Madgwick algorithm using mobile data. Thus, KFGD is suitable for low-cost motion sensors or mobile inertial sensors, especially during early recovery stage of sport injuries and exercise for the elderly.