r/learnmachinelearning • • 1d ago

Help Our exercise classifier keeps missing obvious mistakes. What should we try?

Hi! We’re working on a graduation project that checks rehabilitation exercises using a camera.

We use YOLO for pose estimation, then extract features like elbow angles, wrist height and arm symmetry. A Random Forest classifies each repetition as correct or incorrect.

The problem is with arm raises. Sometimes someone clearly bends their elbows, but the model still says correct. We manually labeled the repetitions, and slight bending is acceptable, so treating every bend as incorrect wouldn’t match our labels.

We have 349 repetitions from 70 people and use participant-separated 5-fold cross-validation. Our baseline Macro F1 is around 0.75. It catches 30 out of 67 incorrect repetitions, with 8 false alarms.

We’ve tried tuning, different classifiers, phase and temporal features, augmentation and DTW. Nothing has clearly improved the overall results. We’ve also checked some missed examples, and the bending appears in the extracted measurements.

I feel like we’re trying too many things without understanding what’s actually holding it back. Could summarizing the whole repetition be hiding the mistake? Or could the 2D angles look too similar between acceptable and incorrect movements?

What would you check next? Papers or practical suggestions would really help.

2 Upvotes

4 comments sorted by

1

u/PLBjt 1d ago

The bend showing up in the features but still getting labeled correct usually means the forest is keying off something that correlates with correct more strongly than peak elbow angle, like how long the arm stays up. I'd pull the missed reps and plot max elbow flexion against the model's probability, split by participant, and see whether the mistakes cluster in a few people or sit right on the slight-bend boundary you called acceptable. If they're on that boundary, a single correct/incorrect label is throwing away the only signal you have, and a threshold on peak angle or a third borderline class will beat another classifier. The tradeoff is a hand-set angle rule won't match your labels exactly, but you'll know which errors are the definition and which are the pose estimate lying.

1

u/heeeeyYaaa 21h ago

How many of the 349 reps are actually labelled wrong for the elbow bend? If it's like 15 the forest barely saw that class (and slight bend = acceptable makes the line even mushier)

1

u/Special_Ebb_1933 16h ago

Your numbers show one quick thing to try: 30 of 67 incorrect reps caught with only 8 false alarms means the classifier is conservative, and Random Forest decides at a 0.5 probability by default. Get out-of-fold probabilities with cross_val_predict(..., method="predict_proba"), plot caught errors and false alarms against the threshold, and also try class_weight="balanced". This does not fix the features, but it shows how much of the gap is only the decision point.

Yes, summarizing the whole repetition can hide the mistake, because a bend near the top of the raise gets averaged with the rest. Add features from the phase where the error matters, for example the minimum elbow angle while the wrist is above shoulder height, and the number of frames it stays below a limit.

2D angles are a real limit too. If the arm points partly toward the camera, foreshortening makes a straight arm look bent and a bent arm look straight. Check if the missed reps come from one camera position or from people who stand at a different angle. If so, fix the camera position (a side view for elbow bend) or use a 3D pose estimate.

Also check the labels near the "slight bend is fine" boundary. Have two people relabel a sample of the missed reps without seeing the old label. If they often disagree, the limit is the label definition, not the model.