A computer-implemented method is provided for classifying an input signal against a set of pre-classified signals. A computer system may calculate, for each of one or more signals of the set of pre-classified signals, a parallelism value indicating a level of the parallelism between that signal and the input signal. The computer system may calculate, for a first subset of the set of pre-classified signals, a sparse vector, wherein each element of the sparse vector serves as a coefficient for a corresponding signal of the first subset. The computer system may determine, for each of the signals in the set of pre-classified signals, a similarity value indicating a level of similarity between that signal and the input signal.