A method for generating output data identifying a class of a predetermined plurality of classes. The method comprises receiving data representing an acoustic signal; determining an amplitude of at least a first predetermined frequency component of said acoustic signal; and comparing the or each amplitude with a respective primary threshold; and generating output data identifying one of said classes to which said acoustic signal should be allocated, based upon said comparison.