1. A method comprising: accessing a set of samples of sensor data recording a plurality of medical measurements taken by one or more medical sensors; generating a characteristic function from the set of samples, the characteristic function indicating whether a given sample is a member of the set of samples; and identifying one or more samples of the set of samples that are associated with a given medical annotation according to the characteristic function.