Maximum a posteriori detection of heartbeats from a chest-worn accelerometer | Synapse