r/learnmachinelearning
•
u/hayAbhay
•
24d ago
•
2
Tutorial Oral-B ML model unpacked + distilled with Claude Code
this weekend i let claude plug into my oral-b toothbrush -- it can do really solid ai/ml research work.
here's a quick tl;dr, if you want to start exploring ML models over raw sensor data with claude.
- io5+ models have a 6-axis IMU sensor -- used to predict the brush's position in your mouth
- in < 10 mins claude read this stream & unpacked it (i pushed buttons & it monitored changes)
- i then downloaded the app & gave it access -- it yanked the model out -- oral-b uses a 1.2m param bi-directional recurrent net (GRU)
- it then found a public dental dataset & starting evaluating the model -- model was at 64% (~17 classes)
- the dataset didn't have sensor orientation -- so it figured out how to line up inputs by trying all 48 sensor orientations (i only found this out much later)
- the model seemed like an overkill so we ran ablation -- it was pretty thorough & said only ~10s motion history mattered -- it also looked to each of the xyz across accelerometer & gyro
- then i decided to distill -- it created a giant synthetic dataset drawn from manual brushing samples + added its own constraining movements by physics (it automatically looked at class distribution coverage & decided how to sample)
- it then trained a bunch of small nets with a fixed window and got a tiny CNN (100x smaller) close to original (also ensured test didn't leak)
all this happened in an evening -- ~2 days including a three-js live simulator -- i was mostly directing/barking at it from the terminal
here's the post + simulator, if you want to read more/try the sim.
42
u/sumit_654 24d ago
joma tech recently published the mathematically optimized way to wash dishes. my boy got inspired and made one for teeth. keep it up.
3
u/pugs_daily_dose 24d ago
Interesting experiment! How did you choose the sensor orientation, and was that choice made using a separate validation set from the final test? It would be useful to know how well the distilled model holds up on brushing sessions or people not represented in the synthetic data.
4
u/Natural_Tea484 24d ago
I might be too dumb, but how's this useful? I'm genuinely an idiot, sorry.
2
u/DigThatData 24d ago
why tho
2
u/Thistlemanizzle 24d ago
How close are you to brushing someone's teeth automatically?
2
u/Big-Coyote-1785 22d ago
I keep saying that these brand-name companies are going to have to protect their hardware somehow if they want to keep selling their slop-subscriptions, because it's so easy to get better yourself now. Cool stuff.
1
u/ZiddyBlud 24d ago
Where can i download and run this locally?
12
u/[deleted] 24d ago
[removed] — view removed comment