I know it's just for educational use (thanks!), but fun to think through what it would take to make this into a fully functional app.
Exercises that don't involve arm movement would be impossible to classify. An extra sensor on the leg might be enough to a) handle cases where just leg movement is involved and b) capture body position for static exercises like planks and wall sits.