Maser, infrared and optical emission for late-type stars in the Galactic plane