Identification of gesture patterns