I was confused by my iPhone asking me constantly if I want to undo typing. Turned out this was the device thinking I am shaking to undo.
I know that iPhones can alert the user when ambient noise levels exceed safety thresholds, and Apple Watches can detect and alert about detected falls, and even atrial fibrillation. I wouldn't be surprised if phone accelerometer signal processing could predict something like Parkinson's disease.