Automatic recognition of sport events from spatio-temporal data: An application for virtual reality-based training in basketball