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; comparing the 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 time-frequency representation and at least one of the plurality of time-frequency spectrogram templates.