Hierarchical Modelling and Recognition of Activities of Daily Living