When I was a swimmer, my best stroke was backstroke. This made it hard to judge where the end of the pool was to time my turn. I used the lights suspended over the pool, counting them down to know when I had reached the end. Could some light intensity sensor measure the patterns of the increasing and decreasing light levels as the swimmer passes each light, and estimate the speed from that? It won't be simple!