A device-algorithm co-design is proposed to emulate human retina and the affordable learning paradigm. Algorithms designed to fit the characters of a novel optoelectronic device, with in-sensor computing.