Classification of raw materials