Text this: Artificial intelligence-based Bayesian optimization and transformer model for tennis motion recognition