Implement sport type autodetection (issue #12)