We developed SmartEM, a method that integrates machine learning directly into the image acquisition process of an electron microscope. By allocating imaging time in a specific manner — scanning ...