Addressing the problem that backsplash galaxies and first-infall galaxies in the outskirts of galaxy clusters are hard to distinguish observationally, this paper trains a random forest classifier on the The300 hydrodynamic cluster simulation dataset, develops an online classification tool that dynamically adapts to any subset of observational parameters, and validates it across multiple scenarios.
The backsplash galaxies targeted in this study are galaxies that currently lie beyond the cluster's characteristic radius but that have crossed that radius at some point in the past. There is not yet absolute consensus in the community on the choice of this characteristic radius; to remain consistent with most existing literature, this study uses throughout as the reference radius for defining backsplash galaxies.
Galaxy cluster members in the outer regions comprise two populations with completely different evolutionary paths: one is galaxies that have already undergone pre-processing in small galaxy groups or in large-scale filamentary structures, and the other is backsplash galaxies that have recently passed through the cluster's central regions. Distinguishing the evolutionary paths of these two classes observationally poses a significant challenge. In typical observational settings, researchers generally cannot directly measure a galaxy's three-dimensional orbital information, and observational data alone make it very difficult to trace whether a galaxy has entered the cluster's core region in the past; this is the central observational limitation that has long faced backsplash galaxy identification.
Current mainstream backsplash galaxy classification methods are mostly based on projected phase-space information. The core logic is to classify galaxies within a particular phase-space region defined jointly by two-dimensional position and line-of-sight velocity as backsplash galaxies. The community has not yet reached a clear consensus on how to delineate this "backsplash region"; the various definition schemes proposed by different studies share some common features, and all schemes center their key selection dimension on low-velocity galaxies.
Among published hard-cutoff classification schemes, those of Rhee et al. 2017 and Martínez et al. 2023 identify galaxies with projected distance from the cluster centroid satisfying and line-of-sight velocity satisfying as backsplash galaxies, a rule consistent with the physical picture that such objects are near the apocenter of their orbits. Follow-up work has extended this basic path: de los Rios et al. 2021 developed a machine-learning method based on phase-space information that reconstructs galaxy orbits to separate backsplash galaxies, and other studies have explored using other galaxy properties to identify backsplash galaxies.
This work uses a random forest classifier trained on the The300 hydrodynamic cluster simulation dataset. Training uses galaxy observable properties extracted from the simulation data, together with measures of the clusters' dynamical states, to fit the model. The classifier can identify individual backsplash galaxies, classifying galaxies into infall and backsplash classes, and no longer relies on hard-cutoff boundaries in phase space to perform classification.
The core design goal of the algorithm is to let users obtain a galaxy classification using only whatever subset of observational parameters they already have on hand. To avoid the redundant overhead of pre-training tens of thousands of different models for all possible parameter combinations, the team implemented an online retraining mechanism: whenever a user selects a new parameter subset, the system immediately trains a brand-new random forest model. Thanks to the lightweight computational nature of random forests, this takes only a few minutes.
The team has packaged the entire model as a publicly accessible web service: users can upload a CSV file containing the specified galaxy properties, and the platform returns the backsplash probability for each galaxy along with basic data visualizations.
The classifier's feature importance assessment uses a permutation importance scheme. The procedure is as follows: first run the classifier on the full test dataset and evaluate its baseline performance; then randomly shuffle the values of one feature across all galaxy samples, rerun the classifier, and measure the performance drop. Repeating this for all features yields a quantified contribution of each feature to classification ability, which users can use to select which parameters are worth observing to improve classification performance.
For classification on unbalanced datasets, the scheme adjusts the backsplash classification probability threshold p(Backsplash), tuning it to a target purity or completeness at the level of the full dataset rather than only on a balanced dataset. Raising the threshold above 50% increases both classification purity and accuracy, at the cost of reduced completeness. The threshold selection rule adopted in this study is: on each cluster dimension of the training dataset, require the model's predicted fraction of backsplash galaxies to exactly match the true fraction of backsplash galaxies. This threshold is about 0.6 in the vast majority of model iterations, which is close to the value that maximizes classifier accuracy. Users can also manually modify the threshold to produce higher-purity output datasets.
For galaxies in the projected annulus , the full classification model using all features achieves an overall accuracy of 84% in classifying backsplash versus first-infall galaxies, with purity and completeness of 75% each for the backsplash sample and 88% each for the first-infall sample. Using only the 6 core important parameters, these metrics drop by only 1% to 2%, indicating that the remaining extra features provide almost no incremental information for the classification task. You can consult the confusion matrix that follows to directly see how the true and predicted labels of the two galaxy classes correspond.
The simplest version of the model, using only three features — projected cluster-centric distance, line-of-sight velocity, and R-band magnitude difference — achieves a classification accuracy of 74%, close to the 72% accuracy of the existing R17 phase-space hard-cutoff method on the same test set. However, the completeness of the backsplash sample output by the random forest classifier reaches 61%, far higher than the R17 method's 40%, with only a small drop in purity from 61% to 59%, giving a more balanced overall performance.
Adding a second velocity component direction as an input on top of the simplest three-feature model raises the overall classification accuracy from 74% to 81%; the backsplash sample then has a purity of 69% and completeness of 72%, and the first-infall sample a purity of 86% and completeness of 85%, a significant performance improvement over the existing baseline method.
The team applied the model to a sample of galaxies in the region of the Virgo Cluster's outskirts as a proof of concept. The 10 galaxies with clearly asymmetric HI gas distributions undergoing ram-pressure stripping were all flagged by the model as first-infall galaxies, even though some of them have properties that would otherwise make them easy to misclassify as backsplash galaxies. This result supports the hypothesis that cold gas is heavily stripped during a galaxy's first approach to a cluster, and that galaxies retain almost no such cold gas after a single passage through the dense core of a galaxy cluster.
The current random forest classifier has a clear overestimation bias in the lower-left corner of the phase-space diagram, the region corresponding to galaxies with projected distance and line-of-sight velocity : the model identifies almost 100% of galaxies in this region as backsplash galaxies, whereas the simulation ground truth shows that some galaxies in this region are in fact not backsplash galaxies. The bias stems from the classifier's mechanism of judging each galaxy independently on a case-by-case basis: when any single galaxy in this region has a higher probability of being classified as backsplash than as infall, the overall estimated backsplash fraction for the region approaches 100%, deviating from the true distribution.
The current model assigns low feature importance to morphology-type parameters; this limitation stems from the limited resolution of the The300 simulation dataset used for training, which causes galaxy-scale properties to carry relatively high noise. The team plans to retrain the existing classifier once a higher-resolution version of the The300 simulation dataset becomes available.