Multi-task learning approach for optical luminescence sensing