Optoelectronics driven by ai