Although apple watch auto detects activities like outdoor walk and run, it does not detect other sport activities like tennis, soccer etc. Change in heart rate can be used to detect an activity automatically when apple watch doesn't detect it. I guess it would be hard to detect the specific activity but we can label the sport or activity manually.