Machine learning enhanced optical microscopy image acquisition