Gravar-mail: A Hierarchy-Based System for Recognizing Customer Activity in Retail Environments