Elucidating the tectonic setting of unknown rock samples has long attracted the interest of not only igneous petrologists but also a wide range of geoscientists. Recently, attempts have been made to use machine learning to discriminate the tectonic setting of igneous rocks. However, few studies have designed methods that are applicable to altered rocks. This study proposes a novel approach that…