from Hacker News

Apple Watch knows when I wash my hands Does it also know when I'm jerking off?

by ridiculous_leke on 6/28/23, 3:54 PM with 20 comments

  • by dmitrygr on 6/28/23, 4:49 PM

    A long time ago, when I was working on the initial implementation of android wear at Google, I actually worked with the code that does stuff like this, so I might be able to answer somewhat usefully. At least there, the way it worked, is that every 30 seconds, the device would wake up the accelerometer and collect 2 seconds of data at 120(?)Hz. After that, there was a relatively large decision tree based on the values, their derivatives, etc. This decision tree was an output of a large trained model, but was itself pretty small: a few thousand values. It could only classify things it was trained on - the output was an activity index. At Google at the time, the supported activities were: walking, biking, running, driving, sitting, unknown. The model cannot output anything other than the activity index.

    The practical upshot: Could one detect such activities based on accelerometer data? Surely yes. However, unless somebody trained it on masturbation, it is unlikely that that is an actual possible output of it.

    Details: model format was more or less this

        node {
          int activity; //positive if this is the terminal
             //node and this is the answer, else this is
             //not terminal. Then it is the index of the
             //input sample to read (times minus one) to
             //compare to the next value
           float compareWith;
           unsigned gotoNodeIdxIfLessThan;
           unsigned gotoNodeIdxIfGreaterOrEq;
         }
    
         model {
           node nodes[];
         }
    
    You’d start at node [0] and walk the tree as per comparison instructions (index of input samples and float to compare to) till you reached a terminal node.
  • by mtmail on 6/28/23, 4:08 PM

    URL is likely https://old.reddit.com/r/AppleWatch/comments/s8fmes/apple_wa... (not the https://old.reddit.com/over18/ interstitial page)

    Despite 300 mostly funny comments nobody has an answer.

  • by bombcar on 6/28/23, 4:51 PM

    There’s probably code to NOT make the hand washing alert come on during such struggle sessions.
  • by wmichelin on 6/28/23, 4:44 PM

    Mods please fix the URL!
  • by scrum-treats on 6/28/23, 4:06 PM

    Truthfully... Yes. Many other apps and services do as well. Careful what you give camera and mic permissions to, and always read the privacy agreements, especially for FAANG. If you don't think Amazon, Facebook, Apple, Google, and Microsoft are watching/listening (with and without the light indicators), think again.