Identification of complex geochemical signatures of basalts from various tectonic settings using trace elements contents is still challenging due to uncertainties in existing classification diagrams and machine‐learning attempts. To address this, we trained a machine‐learning model using a random forest classifier on trace element concentrations of a global basalt‐dataset, categorized by types of tectonic plate boundary—destructive or constructive—at which they formed. Achieving an accuracy exceeding 98%, the model efficiently extracts the distinctive characteristics from each basalt type. When applied to the Bangong‐Nujiang suture zone in central Tibet, the model reveals that the basalts exhibited features of both boundary types prior to 108–107 Ma before transitioning to solely destructive characteristics. This transition is likely to be caused by the detachment of a descending oceanic slab, aligning with existing geological evidence. This case study highlights the promising potential of machine learning models, trained on simplified basalt types, in more accurately tracing lithospheric evolution.