Biophotonics empowered by AI for medical diagnostics