Analyzing training exercises with mathematical algorithms and convolutional neural network