CNN-Based Speed Detection Algorithm For Walking and Running Using Wrist-Worn Wearable Sensors