Text this: Artificial Neural Networks as Digital Twins for Whispering Gallery Mode Optical Sensors in Robotics Applications