There was a discussion on a recent podcast about exercising after a concussion, and the challenge of having some activity, but not too much activity.
I came across an Ottawa company Neurovine that is trying to solve this problem by monitoring electrical signals in your brain using a wearable headband. (Like meditation apps use.) They detect when you should stop exercising before any symptoms appear.
It’s still in trials, but based on some good research.