Optimized deep networks for the classification of nanoparticles in scanning electron microscopy imaging