Architecture for Automatic Recognition of Group Activities Using Local Motions and Context