Smart microscope captures aggregation of misfolded proteins