The Virtual Chemist is an automated method for the analysis of plastic flakes. After the machine is fed with the sample flakes, the detection and analysis are done automatically. The analysis is done in almost real-time and takes up to 5 minutes to compute the data sheet. This significantly reduces the required time and expertise for the analysis of a sample. In addition, the Virtual Chemist is very easy to use as it requires no technical expertise.