text: Spectral and spatial is collected by the detection system. The spatial component catches the position of the particles distribution across the width of the sorting machine, which is then used in case the ejection mechanism is activated for a single particle. Spectral data comprises the features that are used for material discrimination. In a superseding processing step, spectral and spatial can be combined to include patterns into the separation criterion. Huge amount of data is collected in real time multiple processing and filtering steps are bringing the data down to the Yes/no decision – either for ejecting a particle or for keeping the ejection mechanism still for that one.