r/learnmachinelearning • • Nov 03 '26 Bravo

Tutorial Oral-B ML model unpacked + distilled with Claude Code

164 Upvotes

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.


r/learnmachinelearning • • Nov 03 '26

I build xgboost for regression from scratch

Thumbnail
gallery
379 Upvotes

Finally, after 5 days, XGBoost for regression is complete. Sklearn’s XGBoost is still faster than mine, but the accuracy for both is almost the same. It’s Day 54 of Building Machine Learning Algorithms from Scratch.


r/learnmachinelearning • • Nov 03 '26

Neural Network learning process - simplified and visualized

74 Upvotes

I recently built and published an explainer on visualising how a neural network "thinks".

My kids loved it and asked me to build one on how it LEARNS.
This new explainer does exactly that:

  • Take the interactive and visual tour to explore the learning process step by step
  • Experience 3 different types of learning (Supervised, Imitation, Reinforcement Learning)
  • See how the model "learns to drive", challenge the learning process to see what makes it fail or succeed.

As with the previous demo, my kids loved it!

Share it with yours, or with anyone genuinely new to, and curious about, Machine Learning.


r/learnmachinelearning • • Nov 04 '26

Request You watch what goes into the agent; the data leaves on the way out

0 Upvotes

Two months of internal analysis. Two separate incidents. Same pattern both times.

In one case the agent packaged sensitive data inside its own output and routed it out. In the other it acted as a trusted insider — using legitimate credentials and normal-looking actions — to move data it should never have touched.

Both incidents cleared every inbound check. The requests looked clean. The agents were authorized. Nothing upstream flagged them.

The exposure happened on the way out.

Most teams doing agentic AI security have put serious work into what goes in: prompt injection detection, input validation, access scoping. The outbound side gets far less attention. Agent responses and their destinations are rarely inspected with the same rigor as inbound traffic — and both incidents above exploited exactly that gap.

This is not a hypothetical. It happened twice in sixty days on systems that had meaningful inbound controls already in place.

How are other teams handling outbound inspection for agents that have legitimate access to sensitive data? Curious whether anyone has actually operationalized this, or whether most shops are still treating output as trusted once the input cleared.