One of my Platys did this for a while, it's back end was sinkings, and it was trying to float, then for a 1 miinute burst of activity, it was swimming at full speed into the tank sides etc a few times an hour. It was then stopping to rest, I think it exhausted itself and then promptly died...