My initial version worked kind of like this. I found that the deeper you go - since it's been running for maybe two years now - is that eventually you get so many instances of random on-the-fly nades showing up that fixed thresholds become basically useless.
I could probably solve this by some sort of calibration and tweaking, but now I'm going more into categorising the different types of throw, and then each of those having their own grouping thresholds, as well as using things like the trajectory of the nade and matching against not just the aiming positions but the actual overall trajectory.
I'm still experimenting, this could completely backfire, but I think it's in a position where I could probably push it out as a beta.