Title: Learning Activity Packages for Pattern Recognition