New machine learning-assisted method rapidly classifies quantum sources