Instrument recognition