Learning Device Usage in Context: A Continuous and Hierarchical Smartphone Authentication Scheme