Agile gesture recognition for low-power applications: customisation for generalisation