Machine learning tools for mineral recognition and