A framework for the recognition of horse gaits through wearable devices