1. A method for classifying a signal, comprising: obtaining an input signal; determining a time-frequency representation of the input signal; determining whether a signal of interest is present in the time-frequency representation; identifying an interval of the time-frequency representation that contains the signal of interest; measuring a signal-to-noise ratio of the time-frequency representation; rescaling frequency bands of the time-frequency representation by a weighting proportional to the measured signal-to-noise ratio of the time-frequency representation; comparing the rescaled time-frequency representation of the interval to a plurality of time-frequency spectrogram templates in response to identifying the interval of the time-frequency representation that contains the signal of interest; and selecting a matching time-frequency spectrogram template from the plurality of time-frequency spectrogram templates, by a processor, based on an amount of distortion between the rescaled time-frequency representation and at least one of the plurality of time-frequency spectrogram templates.