Probabilistic detection of short events, with application to critical care monitoring