Bed sensor that detects position of a person laying in a hospital bed using a machine learning classifier deployed to the cloud.