Brain-inspired automated visual object discovery and detection