the present invention exploits a visual rendering of heart sounds and models the morphological variations of audio envelopes through a constrained non - rigid translation transform . similar heart sounds are then retrieved by recovering the corresponding alignment transform using a variant of shape - based dynamic time warping .