Arm gesture recognition and humanoid imitation using functional principal component analysis | Synapse