Machine Learning Adaptation in Swimming Motion