Quality Classification of Microscopic Imagery with Weakly Supervised Learning