real-time raw material analysis