Grain quality assessment