Recognizing materials used