Intelligent endoscopic lesion detection