Expectation grammars: leveraging high-level expectations for activity recognition | Synapse