Machine Learning-Enabled Optical Sensors And Devices