Recognition of hand or arm movements