CNN-based image analysis