Photochromic and Luminescent Compounds at the service of Artificial Intelligence