Hierarchical algorithm for daily activity recognition via smartphone sensors | Synapse