Human action recognition using an improved string edit distance