Classifying the formation processes of S0 galaxies using Convolutional Neural Networks
J.D. Diaz, Kenji Bekki, Duncan A. Forbes, Warrick J. Couch, Michael J., Drinkwater, and Simon Deeley

TL;DR
This paper demonstrates that convolutional neural networks can accurately classify simulated S0 galaxies based on their formation processes and predict merger mass ratios, linking morphological features to physical origins.
Contribution
The study introduces a CNN-based method to classify galaxy formation pathways and predict merger mass ratios from simulated galaxy images, highlighting physical interpretability.
Findings
CNNs classify S0 galaxy formation pathways with over 99% accuracy.
Predicted merger mass ratios align within one standard deviation of true values.
CNNs show potential for linking galaxy morphology to physical formation processes.
Abstract
Numerous studies have demonstrated the ability of Convolutional Neural Networks (CNNs) to classify large numbers of galaxies in a manner which mimics the expertise of astronomers. Such classifications are not always physically motivated, however, such as categorising galaxies by their morphological types. In this work, we consider the use of CNNs to classify simulated S0 galaxies based on fundamental physical properties. In particular, we undertake two investigations: (1) the classification of simulated S0 galaxies into three distinct evolutionary paths (isolated, tidal interaction in a group halo, and Spiral-Spiral merger), and (2) the prediction of the mass ratio for the S0s formed via mergers. To train the CNNs, we first run several hundred N-body simulations to model the formation of S0s under idealised conditions; and then we build our training datasets by creating images of…
| Model A | Model B | Model C | ||
|---|---|---|---|---|
| B/D | 0.17 | 0.5 | 1.0 | |
| (kpc) | 3.5 | 6.1 | 8.6 | |
| (kpc) | 3.5 | 3.5 | 3.5 | |
| Hubble Type | Sb/Sbc | Sa | S0/a |
| Tidal | |||
|---|---|---|---|
| Parameter | Description | unit | Range of values |
| Total group mass | () | ||
| Initial position | ( of halo) | ||
| Initial velocity | ( at ) | ||
| Polar angle | (∘) | ||
| Azimuthal angle | (∘) | ||
| Sp-Sp Mergers | |||
| Parameter | Description | unit | Range of values |
| Mass ratio | - | ||
| Pericentre | (kpc) | ||
| Orbital eccentricity | - | ||
| Polar angle A | (∘) | ||
| Azimuthal angle A | (∘) | ||
| Polar angle B | (∘) | ||
| Azimuthal angle B | (∘) | ||
| Scientific prediction | Task | Input image type | Input image shape | |
|---|---|---|---|---|
| Model 1a | S0 formation pathway | Classification | Morphology & Kinematics | |
| Model 1b | ” | ” | Morphology | |
| Model 1c | ” | ” | Kinematics | |
| Model 2a | Merger mass ratio | Regression | Morphology & Kinematics | |
| Model 2b | ” | ” | Morphology | |
| Model 2c | ” | ” | Kinematics |
| Predictions on training data | |||
|---|---|---|---|
| Isolated | Tidal | Merger | |
| True Isolated | 3537 | 214 | 0 |
| True Tidal | 17 | 104294 | 279 |
| True Merger | 0 | 3 | 104896 |
| Predictions on test data | |||
| Isolated | Tidal | Merger | |
| True Isolated | 950 | 99 | 0 |
| True Tidal | 5 | 25957 | 98 |
| True Merger | 0 | 15 | 26186 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Classifying the formation processes of S0 galaxies using Convolutional Neural Networks
J.D. Diaz,1 Kenji Bekki,1 Duncan A. Forbes,2 Warrick J. Couch,2 Michael J. Drinkwater3, and Simon Deeley3
1ICRAR, M468, The University of Western Australia 35 Stirling Highway, Crawley Western Australia, 6009, Australia
2Centre for Astrophysics & Supercomputing, Swinburne University, Hawthorn, VIC 3122, Australia
3School of Mathematics and Physics, University of Queensland, QLD 4072, Australia Email: [email protected]
Abstract
Numerous studies have demonstrated the ability of Convolutional Neural Networks (CNNs) to classify large numbers of galaxies in a manner which mimics the expertise of astronomers. Such classifications are not always physically motivated, however, such as categorising galaxies by their morphological types. In this work, we consider the use of CNNs to classify simulated S0 galaxies based on fundamental physical properties. In particular, we undertake two investigations: (1) the classification of simulated S0 galaxies into three distinct evolutionary paths (isolated, tidal interaction in a group halo, and Spiral-Spiral merger), and (2) the prediction of the mass ratio for the S0s formed via mergers. To train the CNNs, we first run several hundred N-body simulations to model the formation of S0s under idealised conditions; and then we build our training datasets by creating images of stellar density and two dimensional kinematic maps for each simulated S0. Our trained networks have remarkable accuracies exceeding 99% when classifying the S0 formation pathway. For the case of predicting merger mass ratios, the mean predictions are consistent with the true values to within roughly one standard deviation across the full range of our data. Our work demonstrates the potential of CNNs to classify galaxies by the fundamental physical properties which drive their evolution.
keywords:
galaxies: elliptical and lenticular – galaxies: kinematics and dynamics
1 Introduction
As astronomy enters the era of ‘big data’, scientists will be tasked with extracting knowledge from ever-increasing volumes of data created by facilities such as the LSST and SKA. To cope with the scale of this task, new techniques are being explored to expand the analytical tools available to scientists. Among such tools are artificial neural networks, which are a large set of complex algorithms borrowed from adjacent fields such as computer vision. As an example, numerous recent papers have demonstrated how Convolutional Neural Networks (CNNs) can automate the classification of galaxy morphologies for huge datasets of input images (e.g. Dieleman et al. 2015; Domínguez Sánchez et al. 2018).
Neural networks are also being developed to supplement or perhaps even supplant the traditional analytical tools for a wide range of astronomical applications. Such tasks include photometric decomposition of galaxies (e.g. Tuccillo et al. 2018; Stark et al. 2018), finding galaxy lenses (Petrillo et al. 2018), measuring photometric redshifts (Hoyle 2016), classifying supernovae light curves (e.g. Charnock & Moss 2017), and more.
In essence, these previous efforts demonstrate the potential of various flavours of neural networks to automate and accelerate familiar tasks for astronomers. This is particularly useful not only because ever larger datasets can be passed into the networks for analysis, but also because it enables the scientist to spend more time on scientifically meaningful and challenging tasks.
However, the utility of neural networks (and more broadly, artificial intelligence) in astronomy is not limited to this scope. In addition to replicating the abilities of human scientists, neural networks may also be used to extend those abilities into new realms by addressing scientific problems which would otherwise lie beyond reach. Recent work in this vein includes the use of CNNs to detect dark matter subhalos by their kinematic imprints in discs (Bekki et al. 2019; Shah et al. 2019), and using CNNs to constrain the orbits of cluster galaxies from the properties of stripped gas (Bekki 2019). In this paper, we contribute to this trend by training CNNs to classify S0 galaxies according to their formation processes.
The morphology and kinematics of present-day galaxies have long been considered to bear imprints of their formation histories (Buta et al. 2007; Kormendy & Bender 2012; Forbes et al. 2016). Extracting this fossil information, however, is a considerable challenge. For this reason, astronomers have traditionally discussed morphologies in terms of an ad-hoc visual classification known as the Hubble tuning fork (Hubble 1936) and its various revisions (e.g. de Vaucouleurs 1959; Sandage 1961).
A number of surveys utilising integral field spectroscopy (IFS) have been recently completed or are currently underway, including ATLAS3D (Cappellari et al. 2011), CALIFA (Sánchez et al. 2012), SAMI (Croom et al. 2012), SLUGGS (Brodie et al. 2014), MASSIVE (Ma et al. 2014), and MaNGA (Bundy et al. 2015). These surveys have produced a wealth of two dimensional kinematic observations of nearby galaxies and have delivered new insights into galaxy evolution. The availability of this high resolution kinematic data presents an opportunity to explore new methods for further analysis. In this work, we consider the possibility that CNNs can leverage the information contained within such kinematic data for the purposes of galaxy classification. The theme of re-classifying galaxies based on kinematic data is not new; for instance, the taxonomy of the Hubble tuning fork can be reorganised on the basis of rotational properties of early-type galaxies (Cappellari et al. 2011). Nevertheless, the fundamental physical processes which regulate galactic morphologies and kinematics remain largely uncertain.
We address this uncertainty by using numerical simulations to study the connection between the formation histories of S0 galaxies and their resulting morphologies and kinematics. While all S0s share broadly similar properties (e.g. dominant bulges and discs which lack spiral features), a growing body of literature considers S0s to be a grab-bag category encompassing a range of distinct formation histories (e.g. Laurikainen et al. 2010; Barway et al. 2013; Fraser-McKelvie et al. 2018). This motivates a new approach which can clarify the fundamental physical mechanisms at play.
In this work, we simulate a variety of S0 formation pathways including: isolated formation via disc instabilities (e.g. Noguchi 1998; Saha & Cortesi 2018), tidal formation in a group halo (e.g. Byrd & Valtonen 1990; Bekki & Couch 2011), and formation via mergers (e.g. Bekki 1998; Prieto et al. 2013). To be clear, we do not consider S0 formation in dense environments, such as ram pressure stripping in galaxy clusters (e.g. Quilis et al. 2000), which we leave to future work. Nevertheless, we do not expect the ram pressure mechanism to differ significantly from other S0 formation mechanisms that we consider here. For instance, the ram pressure scenario lacks violent global heating, which is also true for isolated disc instability driven by the local heating of clumps.
Our three formation pathways prevail in low-density environments such as groups and the field, and in each case we model the progenitor as a Spiral galaxy. These pathways may be distinguished somewhat by the typical ratio of rotation to dispersion in the S0 disc, with values ranging from for the isolated case, for the tidal pathway, and for mergers (e.g. see comparisons in Diaz et al. 2018).
The goal of the present work is to train CNNs to extract fossil information from images and thereby predict various quantities associated with the formation of each S0. To accomplish this, we first build a synthetic dataset consisting of morphological images of stellar density and spatial maps of line-of-sight velocities for simulated S0s. Our synthetic dataset is constructed to resemble observational images and kinematic maps111Throughout this paper we use the term ‘kinematic map’ to refer strictly to the map of velocities projected along the line-of-sight to the observer, revealing the rotational pattern in the S0. We use the term ‘morphological image’ to refer to images of the stellar surface density. of S0s, except with the added benefit that our simulations provide us with the exact formation history associated with each image. We leverage this information from our simulations and train our CNNs to predict the correct formation pathway for each S0. We also train CNNs to predict the merger mass ratio for those S0s which formed via mergers.
The structure of this paper is as follows. In Section 2 we describe our overall set of S0 simulations including the parameter space that we explore. In Section 3 we describe how our simulations are transformed into synthetic datasets of morphological and kinematic images which comprise the training data for our CNNs. In Section 4 we outline the architecture of our CNNs, and we provide details on how we train the CNNs. Section 5 describes the main results of the present work. We provide a discussion in Section 6 including our thoughts on extending the present results to future analyses of observational data. In Section 7 we summarise and conclude.
2 Description of N-body simulations
Our simulations model the transformation of Spiral galaxies into S0s using various physical mechanisms: disc instabilities, the tidal field of a group halo, and mergers. To distinguish between these formation mechanisms using CNNs, we must create a large synthetic dataset from N-body simulations comprising density maps and 2D kinematic maps. Our simulations are parameterised by numerous quantities which control the evolution within each scenario. It is important to ensure that our simulations are sufficiently diverse within the parameter space of possible interactions. This will help to guarantee that our synthetic data is representative of each S0 formation path, and it will also help to prevent the CNNs from over-fitting to only a handful of examples with specific parameter values.
2.1 Initial conditions
For each of the S0 formation pathways that we consider in this study, we assume that the progenitor is a Spiral galaxy. We construct the dark matter halo and the stellar disc to be similar to those of the Milky Way with parameterisations that are typical for models of Spiral galaxies (e.g. Bekki 2015). For its dark matter halo, we choose a mass distribution following the NFW profile (Navarro et al. 1996) with a total mass of and a virial radius of 245 kpc. We choose a concentration of 10 based on correlations with halo mass in cosmological simulations (e.g. Neto et al. 2007) . The stellar disc follows an exponential profile with a total mass of , a radial scale length of 3.5 kpc, a truncation radius of 17.5 kpc, and a gas mass fraction of .
The main free parameter that we consider in the present work is the bulge-to-disc mass ratio (B/D). Choosing a value for B/D determines the mass of the bulge as some fraction of the mass of the disc. This in turn determines the half-light radius of the bulge through the Kormendy relation between stellar mass and radius (Kormendy 1977). The mass distribution of the bulge is specified by a Hernquist profile parameterised by and . For the present investigation, we construct three distinct models to use as initial conditions for our N-body simulations, with B/D and values given in Table LABEL:tab:ic. In each case, the truncation radius of the bulge is set to be five times the scale length.
The Toomre parameter which controls the stability of the disc is set to a nominal value of 1.5 for the merger and group tidal simulations. This ensures that any significant evolution of the disc is determined by external interactions. For the isolated case, however, we set up an unstable disc with by reducing the radial velocity dispersion to zero. As a consequence, the disc can evolve significantly through the formation and eventual dissolution of clumps. This choice is motivated in particular by the fact that unstable discs can evolve into S0-like remnants through isolated dynamical evolution alone (Saha & Cortesi 2018; Noguchi 1998).
2.2 Parameters for the tidal simulations
For the tidal interaction scenario, we place a given Spiral model in an orbit around a fixed gravitational potential representing a group-scale halo. This treatment does not consider galaxy-galaxy interactions within the group, only the tidal interaction with the smooth gravitational potential of the group itself. We consider spherical group halos given by the NFW profile with a total mass in the range . The concentration parameter for each group halo is computed as a function of its mass in accordance with the results of cosmological simulations (e.g. Neto et al. 2007). We place the Spiral galaxy at a distance from the centre of the group halo, where is considered to be some multiple of the NFW group halo’s scale radius as given in Table LABEL:tab:par.
The initial velocity of the galaxy is oriented in a perpendicular direction to its position vector, and its magnitude is considered to be some fraction of the velocity needed to maintain a circular orbit at . This choice initialises the orbit at its apocentre, which allows our initial equilibrium model to gradually evolve under tidal forces as it falls into the group halo for the first time. The orientation of the disc is given by the polar angle and azimuthal angle , with values varying over the range given in Table LABEL:tab:par.
2.3 Parameters for the merger simulations
For the merger scenario, we place two Spiral models in an eccentric mutual orbit and rescale one of the models for a given mass ratio. We choose eccentric orbits which are likely to lead to mergers on the fixed timescale of our simulations, as given in Table LABEL:tab:par. We explore mass ratios in the range because smaller values will not yield mergers over the timescales we consider, and larger values can yield violent mergers which may destroy the disc and therefore fail to produce S0-like remnants.
We separate the galaxies by an initial distance corresponding to the mean of the pericentre and apocentre, which we calculate from the chosen values of and . We truncate the maximum value of at 170 kpc so that highly eccentric orbits (i.e. those with very large apocentres) may have time to merge within the time window of the simulation.
The orientation of the primary Spiral is given by the polar angle and azimuthal angle , and the corresponding angles for the secondary Spiral are and . As with the tidal scenario, values for these angles are drawn from a uniform distribution over their full range as indicated in Table LABEL:tab:par.
2.4 Dynamical evolution
We adopt the GPU-accelerated numerical code described in detail in our previous work (e.g. Bekki 2013, 2014). Whereas the gravitational dynamics are computed on GPUs, all other calculations are performed on the CPU, including gas dynamics and star formation. Further details on the simulation code are presented in Appendix A.
We ran each simulation on a server equipped with a GeForce GTX 1080 Ti at the University of Western Australia. For a given initial Spiral model (A, B, or C in Table LABEL:tab:ic), we choose 100 random combinations of parameter values for the tidal scenario and 100 random parameter sets for the merger case from the ranges in Tables LABEL:tab:par. For the isolated scenario, we simply run the version of each of the initial Spiral models. This yields a total of 603 simulations. In each case, we evolve our models for a total of 5.6 Gyr with a fixed timestep of 1.4 Myr.
3 Description of synthetic data
Here we describe how we convert the outputs of our simulations into input data for our CNNs. First we must judge which simulations result in the formation of S0s and at what times. Then we describe our process for creating images of the morphology and kinematics of the selected galaxies.
3.1 Criteria for selecting S0s
3.1.1 Isolated Models
For our isolated pathway of S0 formation, there are only three total simulations to consider: the Q=0 version of the initial disc for the initial models A, B, and C (see Table LABEL:tab:ic). When simulating each of these models in isolation, the disc rapidly forms clumps and other substructures owing to its inherent instability. The clumps coalesce into the centre of the galaxy over time which builds up the bulge, resulting in final B/D ratios of 0.47, 0.78, and 1.22 for models A, B, and C, respectively222The final B/D values for the isolated models are determined by a two-component Sersic fit to the one-dimensional surface density profile in the plane of the disc.. Given initial B/D values of 0.17, 0.5, and 1.0 (see Table LABEL:tab:ic), this means the discs lose 20%, 16%, and 10% of their initial mass, respectively, due to the formation and migration of clumps.
Saha & Cortesi (2018) explore the same mechanism of dynamical instability in the context of S0 formation and focus on the evolution of an initial disc with a negligible bulge (). In their simulations, the formation and migration of clumps leads to the formation of a final S0 with . This corresponds to a mass loss of 35% for the disc as it builds the bulge, which is somewhat higher than the values for our simulations.
Following the phase of bulge build-up, the discs of our isolated models are relatively featureless apart from a central bar. We consider the initial Spiral to have transformed to S0 under this scenario when substructure (e.g. clumps) are no longer dominant features of the morphology. This occurs in all cases around 1.5 Gyr after the start of the simulation.
3.1.2 Tidal Models
Not all of the simulations will form S0s. For the tidal models, numerous models never pass close enough to the centre of the group halo to undergo tidal processing. This is a result of having large values for both and as given in Table LABEL:tab:par. In contrast, other models pass too close to the group centre, suffering significant disc disruption. For most models, there are one or more close encounters with the group centre which heat the disc and might also disrupt its outskirts.
Without knowing a-priori the ideal parameters to produce S0s, we opt to verify the transition from Spiral to S0 by visual inspection for each of the simulations. Primarily we inspect the two-dimensional surface density for a coherent disc without spiral arms as well as a visually dominant bulge. This allows us to exclude simulations in which tidal forces or mergers are too strong and destroy the disc, and it also excludes simulations where the interactions are weak and the progenitor remains a Spiral galaxy. Because we wish to create a diverse set of simulations for training our CNNs, we choose not to apply any restrictions on other properties such as kinematics, presence of bars, star formation, etc.
After cross-checking to see which parameter combinations and orbits yield a good collection of simulated S0s, we apply cutoffs on orbital properties as follows.
First, we require that at least one pericentre in the orbit passes within 130 kpc of the group centre. If a pericentre is 30 kpc or less, we exclude all subsequent evolution from consideration. Of the remaining orbits, we consider the first pericentre to be the initial phase of transformation into S0. However, the close encounters will in general remove some material from the disc (e.g. producing tidal tails), such that the galaxy would be categorised as irregular. We find that it takes Gyr for these irregularities to resettle to equilibrium and visually dissipate. We primarily consider the Spiral to have transformed to S0 if after the tidal interaction the galaxy contains a disc without spiral features. We classify the galaxy as S0 from this point in time up until the next pericentre; we then iteratively apply these same criteria at each pericentre until the end of the simulation is reached.
Imposing these criteria on our full set of group simulations, we find that 64% of Spirals undergo a transformation to S0. Figure 1 shows the unique orbits for our set of tidal simulations, where each orbit is characterised by a random combination of parameter values from the ranges given in Table LABEL:tab:par. Red lines are those which pass our criteria at some point in their evolution, with solid and dashed linestyles distinguishing the timesteps which do and do not pass the criteria, respectively. Grey lines are those orbits which never pass our criteria.
3.1.3 Merger Models
For the merger case, a number of models do not merge within the time frame (5.64 Gyr) of the simulation, particularly for small mass companions (e.g. ). The force which drives the merger (dynamical friction) scales as the squared mass of the satellite, which means that the timescale of the merger is highly dependent on the satellite mass (e.g. Binney & Tremaine 2008). We find that the minimum mass ratio required to create a merger in our fixed time frame is 0.1.
As in the tidal scenario, we consider S0s to have formed in the merger scenario if the morphology of the merger remnant contains a bulge and disc without spiral features. We visually inspect the simulations to see which mergers yield such results and at what times. We capture these good models into our final set of S0s by imposing the following criteria: the separation between the centres of the two galaxies must remain below 10 kpc for a duration of at least 0.75 Gyr. For convenience, we estimate each centre as the position of the particle at the true centres-of-mass at T=0. When tracked in this manner, the separation between the centres will not necessarily tend toward zero in our mergers. For the smaller galaxy in particular, this central particle may be displaced from the true centre owing to disruption into streams, rings, or other substructure within the disc.
Orbits which do not yield a merger are shown as grey lines in Figure 2. As stated above, mass ratios of 0.1 and less are those which do not create mergers. The other orbits (red in Figure 2) span the range of mass ratios . Overall, we find that none of the mergers are strong enough to significantly disrupt the disc of the primary, due to the fact that we do not explore mass ratios larger than 0.4. We check visually that the morphologies of the merger remnants do indeed resemble S0s, and those which do not pass this step of visual inspection are removed from the sample. Under these criteria, 65% of our Sp-Sp merger simulations produce an S0.
3.2 Creating input images for the CNNs
Our synthetic data is compiled from the models which produce S0s as described in the previous section. This gives us a total of 64 tidal models, 65 merger models, and one isolated model for each initial condition A, B, and C (Table LABEL:tab:ic), which sums to 390 total N-body models. For a given model, the galaxy is considered an S0 at a specific range of times, shown graphically as the solid red lines in Figures 1 and 2. Within those range of times, we take snapshots of the model at time intervals of 140 Myr. We then produce images of mass surface density and mass-weighted velocities projected at 50 random orientations, varying both the inclination of the disc as well as the azimuthal angle within the disc plane.
Summing across all valid timesteps for the models, our synthetic dataset has a total of 266,550 images of stellar density, and the same number of two-dimensional kinematic images. The respective total for each S0 formation pathway is 131,100 images for mergers, 130,650 for tidal, and 4,800 for isolated.
The focus of the present work is to validate our new methodology on simulated data, but our choice of image parameters such as physical scale and resolution is motivated by recent observational datasets. For instance, the SAMI Galaxy Survey obtains spatially resolved spectra for many thousands of galaxies with spatial resolutions of across a diameter of 31 pixels. This translates to physical sizes of kpc for each galaxy at resolutions of kpc per pixel (Bryant et al. 2015).
We choose nominal values within these ranges for image scale and resolution, placing each S0 at the centre of a pixel image with a fixed size of per side, giving a resolution of 0.9 kpc per pixel. These fixed values suffice for our present purposes, but in the future we will strive to create simulated datasets which reproduce the observations accurately. To accomplish this, we would need to use a range of scales and resolutions for our images as well as consider other factors such as noise. While we have not added any noise to our images, it will be important to do so in the future to mimic observational conditions.
To create our morphological images, we compute the surface mass density of the stellar particles on a logarithmic scale in the range . To create our kinematic maps, we compute the mass-weighted average velocity of all stellar particles in each spatial bin in the range to . We perform this computation in the rest frame of each S0, and we consider only the line-of-sight velocity for each given projection. For both morphological images and kinematic maps, the value of any bin exceeding the lower or upper limit is set to the respective bounding value.
If a spatial bin does not contain any particles, we must set its pixel value by hand. We must do so because missing values would be passed into a neural network as non-numerical values or infinities which would then propagate into the weights of the network and break its training. For the morphological images, pixels with no data are assigned to the value of the lower bound. This corresponds naturally to a black sky background.
For the kinematic images, however, setting the value of empty pixels to the lower ( upper) bound improperly assigns that pixel a large negative (positive) velocity. We therefore assign empty pixels a velocity of to match the rest frame of each galaxy, which corresponds to the midpoint in the range of possible pixel values.
Nearly all images have empty pixels, apart from several images of face-on S0s. The fraction of empty pixels can be large for some images, e.g. up to for edge-on systems. On average across the full set of images, the fraction of empty pixels in each image is only .
Figures 3 and 4 show morphological and kinematic images, respectively, drawn randomly from our synthetic dataset. Despite differences in formation pathway and initial conditions, many of these images appear quite similar, suggesting that visual classification would be challenging and time-consuming for humans. This underscores the scientific role that CNNs could potentially fulfil by supplementing the abilities of astronomers.
We emphasise that the images in Figures 3 and 4 are shown in colour for visual illustration only. When passed into the CNNs, the images are monochromatic. We also emphasise that the presence of randomness within some images, particularly in Figure 4, is intrinsic to the simulations (e.g. dispersion of the bulge or heating of the disc). No artificial noise was added to the images, as stated previously. Several high-resolution images of representative S0 simulations are shown in Appendix B for comparison.
3.3 Preparing the training data
In the present work, we have two scientific tasks: to train a CNN to classify S0 formation pathways, and to train another CNN to predict merger mass ratios. In principle, we can create a decision tree whereby our first CNN predicts which galaxies are formed by mergers and passes them to the second CNN which then estimates the merger mass ratios. We do not explore this approach in the present work, however. Our two CNNs are independent of one another.
For each of these scientific tasks, we perform three experiments. We train one network on the morphological images only, we train a second network on the kinematic images only, and we train a third network on both the morphological and kinematic maps. Table LABEL:tab:nn provides a summary of the CNNs that we train.
In the third case (which we will take to be our main results), matching pairs of images are passed into the network as separate channels of an image array. That is, an S0 at a given time and at a given orientation will be represented by an image array of size , with the morphological and kinematic images occupying different slices in the final dimension. When passing the image data into the network, pixel values in the range 0 to 255 are rescaled to the range 0.0 to 1.0 as is typical for machine learning tasks.
Rather than using our full synthetic dataset to train the networks, we take a random 80% fraction of the dataset as our training data. The remainder of the full dataset is known as the test set, which will be used to validate the predictions of our trained network. In other words, it is important to verify that the network provides accurate predictions for both its training data as well as new data which it has not been exposed to.
3.3.1 Classifying S0 formation pathway
For our first scientific task, we must train a network to predict formation paths from a set of input images. We take a random 80% and 20% sampling of the full dataset to create our training and test data, respectively. This gives us 213,240 images in the training set, and 53,310 in the test set.
As a supervised learning task, we must assign a categorical label to each input image. These labels identify the formation pathway as ‘Isolated’, ‘Tidal’, or ‘Merger’, which we convert to the numerical labels 0, 1, and 2, respectively.
3.3.2 Predicting merger mass ratio
For the task of predicting mass ratios, we discard all input images except those which pertain to the mergers. To each of these images we assign a numerical label equal to the mass ratio which was used as an initial parameter in the N-body simulation (Table LABEL:tab:par). In Figures 5 and 6 we show a random sample of these morphological and kinematic images, respectively, and we also label the associated mass ratio and progenitor Spiral model in each panel. As in Figures 3 and 4, the colours shown in Figures 5 and 6 are for visual illustration only. When passed into our CNNs, the images are monochromatic.
To split our data into training and test sets, we do not take random samples as we did before. This is because a random sampling of the merger data will be biased toward certain mass ratios which dominate the dataset. Figure 7 shows the non-uniform distribution of this data as a function of mass ratio. Some of the non-uniformity is simply due to random sampling of simulation parameters, resulting in some mass ratios being represented by a larger pool of simulations as compared to others.
However, the peaks in the histogram generally indicate a true preference to form S0s by mergers for mass ratios in the range . Several factors may contribute to this, including artificial issues related to how we configure the simulations (e.g. small mass ratios requiring longer timescales to merge than we considered in our setup of the N-body simulations), as well as genuine physical reasons (e.g. larger mass ratios capable of disrupting the disc). To ensure that our network is not significantly biased toward over-represented mass ratios during training, we need our training data to have a roughly uniform distribution across the full range of mass ratios.
To construct such a training set, we require that all data with a given mass ratio constitute at most 5% of the overall dataset. Figure 7 shows the distribution of this training set in red, which sums to a total of 86,622 images. The remaining 44,478 images in the merger dataset are used as the test set, resulting in a fractional split between the training and test data of 66% and 34%, respectively.
4 Description of Neural Networks
4.1 Architecture
As demonstrated by previous studies, neural networks composed of only a handful of convolutional layers can be trained to successfully classify galaxy images (e.g. Dieleman et al. 2015; Domínguez Sánchez et al. 2018). Meanwhile, complex state-of-the-art convolutional networks with a multitude of layers (i.e. ‘deep’ networks) have also proven to be very successful at classifying galaxies, even though these architectures were originally devised for general purpose image classification (e.g. Dai & Tong 2018; Ackermann et al. 2018).
In the present work, we adopt a simple network architecture rather than a deep network. We are guided by the notion that our methods should be no more complex than required by our scientific goals. Figure 8 shows a schematic of the adopted network architecture, with variations labelled for each of our CNNs as given in Table LABEL:tab:nn. In each case, we use only three convolutional layers, which is fewer than that of various previous studies which have adopted four convolutional layers (e.g. Dieleman et al. 2015; Domínguez Sánchez et al. 2018).
The input layer of our CNNs depends on the physical data being passed into the network. For models trained on both morphological images and kinematic maps (i.e. models 1a and 2a as given in Table LABEL:tab:nn), the input is an image array of size , where the final dimension denotes the separate image channels assigned to the morphology and kinematics, respectively. For models trained on either morphology or kinematics (i.e. models 1b, 1c, 2b, and 2c), the input image shape is simply . These differences in the input layer are illustrated in the leftmost column of the schematic Figure 8.
The next layer in our architecture convolves a kernel of size with the given input for each of 32 total convolutional filters. A nonlinear activation known as ‘relu’ (rectified linear unit) is then applied, which has the effect of setting any negative output values to zero. Once the output of each of the 32 convolutions are stacked together, an array of size is produced. We then follow this operation with a dropout layer, which randomly sets a given fraction of inputs to zero at each update during training time. We choose the dropout fraction to be 0.25. The effect of the dropout layer is to prevent the parameters of the network from being tuned to any one particular feature that is produced from the preceding layer. In other words, dropout helps to prevent overfitting.
Following this, we have two additional convolutional layers along with dropout layers. These additional layers have the same structure as before, except that the number of filters in the second and third convolutional layers is increased to 64 and 128, respectively. Consequently, the output of the second convolutional layer has size , and the output from the third convolution has size . We then flatten this image array into a one-dimensional output vector of length 25,088. The final layer of the network is the fully connected output which performs linear combinations of the 25,088 values from the previous layer.
The nature of the fully connected layer depends on whether the network is performing classification (green in the rightmost column of Figure 8) or regression (blue). For classification networks (models 1a, 1b, 1c), the linear combination is performed at each of three independent nodes, one for each S0 formation pathway (isolated, tidal, merger). A ‘softmax’ activation is applied to the layer to guarantee that the output values for the three nodes sum to one. We can then interpret these three values as the predicted probabilities that the given input image is a member of each of the respective classes. The class with the largest probability is taken to be the predicted class for that input image.
For regression networks (models 2a, 2b, 2c), the fully connected layer contains a single node and no activation function is applied. We interpret this single number as the predicted mass ratio generated by the network for the given input image.
We arrived at the adopted architecture by an ad-hoc process of stacking variations of the convolutional layers with variations of dropout layers and training each architecture on the same data. By tweaking layers and their hyperparameters, we eventually found acceptable results with the adopted architecture. It is possible that this architecture can be further simplified while retaining equivalent or perhaps marginally improved results, but doing so is beyond the scope of the present work. We focus instead on satisfying our scientific goals as detailed in Section 5, and we leave the exploration of an optimised or minimal network to future work.
4.1.1 Training
The trainable parameters in the convolutional layers are the pixel values within each of the kernels. With kernels applied to an array of input images plus one bias parameter, the total number of parameters for a given kernel is . For the first convolutional layer, the number of trainable parameters for each of the 32 kernels is either 10 (for models 1b, 1c, 2b, 2c) or 19 (for models 1a, 2a), which sums to 320 and 608 parameters in total, respectively. Similarly, the number of trainable parameters in the second and third convolutional layers can be summed to 18,496 and 73,856, respectively.
In addition to the convolutional layers, trainable parameters also occur in the final fully connected layer as weights in the linear combinations. For regression networks (models 2a, 2b, 2c), there is one bias parameter plus one weight per input value, which sums to 25,089 total parameters in the final layer. For classification networks (models 1a, 1b, 1c), the same number of parameters exist for each of three nodes, totalling to 75,267 parameters in the fully connected layer.
Summing across all layers of each network, the classification networks have total trainable parameters, and the regression networks have parameters. These parameters are initialised to random values prior to training.
The goal of training each network is to adjust the values of its parameters so that its predictions on the training data are optimised against a given cost function. For our classification networks, the cost function is taken to be the categorical cross-entropy and we use the Adadelta optimiser with adaptive learning rate (Zeiler 2012). For our regression networks, our cost function is the mean squared error between the true and predicted values, and we use the Adam optimiser with a learning rate of 0.001 (Kingma & Ba 2014).
The training data for each of our CNNs is described previously in Section 3.3. Rather than passing an entire dataset into each network, we split up the data into many batches containing 128 samples each. Passing one of these batches through the full network allows us to evaluate the cost function which in turn allows us to minimise the cost with respect to the parameters of the network. In this way, we iteratively adjust the trainable parameter values with each successive batch of training data. A single training ‘epoch’ is completed after all batches in the training data have been fed into the network. We train each of our networks for 50 total epochs.
We construct our CNNs using the Keras API (Chollet et al. 2015) and the TensorFlow backend (Abadi et al. 2016). We train our networks with GPU acceleration using the same GeForce GTX 1080 Ti which was used to compute our N-body simulations.
5 Results
5.1 Classifying S0 formation pathways
The CNNs which classify S0 formation pathways (i.e. models 1a, 1b, and 1c) yield a discrete class prediction for each input image. This means that the accuracy of each trained network on a given dataset is straightforward to calculate by dividing the number of correct predictions by the total number of images in the dataset.
Our trained models 1a, 1b, and 1c each yield highly accurate predictions on the data with only marginal differences separating their performance. Model 1a (which is trained on both morphological and kinematic images; see Table LABEL:tab:nn) provides the best results, with 99.8% accuracy when predicting the S0 formation pathway for the training data, and 99.6% accuracy for the test data. Model 1b (which is trained on morphology alone) provides the lowest accuracies, but they are nevertheless extremely high at 99.0% for the training data and 98.5% for the test data. Model 1c (which is trained on the kinematic data only) provides intermediate results, with 99.5% accuracy for the training data and 99.1% accuracy for the test data.
In summary, our trained CNNs provide remarkably accurate predictions for the formation pathway of our simulated S0s, no matter what dataset is used to train them. Nevertheless, it seems kinematics convey marginally better information than morphology for the purposes of classification; but their combination provides the best results.
Incorrect classifications can be summarised in an error matrix, as shown in Table LABEL:tab:errormat for model 1a. Rows indicate the true class for images in the given dataset and columns indicate the class which is predicted by the trained model. Entries along the diagonal represent correct predictions, and off-diagonal entries are incorrect predictions. The error matrix essentially tells us where the CNN struggles and where it is successful. For instance, the entries equalling zero in Table LABEL:tab:errormat indicate that the CNN has no trouble distinguishing between the isolated and merger classes. In other words, zero merger images are misclassified as the isolated class, and zero images of the isolated class are misclassified as mergers.
Using Table LABEL:tab:errormat we can compute other interesting quantities, such as the prediction accuracy for each S0 formation pathway. For the training data, 99.9% of the images in the merger class are predicted correctly, 99.7% of the tidal class is predicted correctly, and 94.3% of the isolated class is predicted correctly. The corresponding accuracies on the test data are 99.9%, 99.6%, and 90.6% for the merger, tidal, and isolated classes, respectively. Because the accuracies on the training and test datasets are so similar, we can state with confidence that our CNNs do not suffer from overfitting.
The lowest accuracies occur for the isolated case. The values of 94.3% and 90.6% for the training and test sets, respectively, are acceptable for the present work because they more than satisfy our goal of addressing our scientific questions. For the future work described in Section 6.6, however, we would seek to optimise the performance of our CNNs by improving these accuracies on the isolated class.
In Section 6.1 we consider one factor which may explain why the predictions on the tidal and merger classes are superior: the isolated class is under-represented in the overall training data (comprising 1.75% of the total) compared to the merger class (49.2%) and tidal class (49.0%). Despite this lack of balance between the classes, the trained CNN performs remarkably well on the isolated class, with only misclassified as tidal, and zero misclassified as mergers. The mild confusion between the tidal and isolated class may not be surprising because the morphology and kinematics produced in isolation may largely resemble those produced by weak tidal events.
5.2 Regression: predicting merger mass ratios
The CNNs which predict merger mass ratios (i.e. models 2a, 2b, 2c) do not permit a straightforward accuracy score as done previously for the classification CNNs. This is because the predicted mass ratio for a given input image will be a continuous numerical value in the range , and its discrepancy with respect to the true value must be addressed from a statistical perspective.
Figure 9 displays the predicted mass ratios for model 2a on both the training dataset and test dataset. The spread of predicted values at a given true value is nominally indicated by the scatter among the blue points, where each point represents the prediction for an individual image in the dataset. The statistical spread is more accurately depicted by the red shaded region, which represents the values centred on the mean predicted value for a given mass ratio.
The standard deviation in the predicted values is roughly constant across all true values for the mass ratios within both the training and test data. This would seem to indicate that the predictions of the CNN are well-calibrated across the full dataset, and that the value of 0.03 represents a fundamental scatter within the features of the data independent of the mass ratio.
In each panel, the red shaded region either encompasses or lies quite close to the dashed black line, which delineates an exact match between the predicted and true values. This means that the mean predictions of model 2a are consistent with the true values to within across the full range of mass ratios in the training and test datasets. This gives us confidence that the trained network makes sensible predictions both in regions where there is an abundance of data (e.g. mass ratios of ) and in regions where there is relatively less data (e.g. for mass ratios of or less).
Discrepancies are nevertheless present and exhibit a clear trend, with the smallest mass ratios being over-predicted (by roughly 0.05) and the largest mass ratios being under-predicted (by roughly 0.03). For the training data, the largest discrepancies occur at mass ratios of , which may not be surprising because these mass ratios constitute the smallest fraction of the overall training dataset (e.g. see Figure 7) and thereby contribute the least to the training of the CNN.
Also evident from Figure 9 is the fact that the predictions on the training data are quite similar to those on the test data (i.e. for the mass ratios within the test data). Accordingly, we can conclude that our trained CNN does not suffer from overfitting. As a side note, the full range of mass ratios is not present in the test data simply because of how we construct the training dataset, as described in Section 3.3.2. This difference between the two datasets is also indicated graphically in Figure 7.
Training the CNN on only morphology (model 2b) or only kinematic maps (model 2c) yields measurably different results. Figure 10 displays these differences, showing that the predictions for models 2b and 2c are inferior to those of model 2a across all mass ratios, with the mean discrepancies increasing in a manner which ‘flattens’ the overall trend of predictions. The predictions when trained on morphology alone are particularly poor, with mean discrepancies exceeding 0.1 for small ratios, and with markedly increased dispersions about the mean. This would suggest that S0 morphology conveys relatively little information on merger mass ratios.
In the range of mass ratios from to , Figure 10 indicates that the mean predictions of models 2a (red) and 2c (yellow) are broadly similar. In other words, supplementing the kinematic maps with morphological data does not, on average, improve the performance of the CNN compared to training on kinematics alone for these mass ratios. Beyond this range of mass ratios, however, the combination of morphological images with kinematic maps does yield an improvement in the predictions. In other words, even though the morphology conveys comparatively little information on the mass ratio, this information nevertheless acts to complement the kinematic data and thereby improve the performance of the trained CNN.
6 Discussion
In this section, we discuss several issues including the effect of training our CNNs with different variations of the training datasets (e.g. changing the relative distributions of classes). We also discuss how the predictions of our CNNs may depend mildly on the inclination of the S0 discs, and we sketch our plans for future work.
6.1 Relative fraction of formation pathways
As described in Section 3.3, our training dataset for models 1a, 1b, and 1c is selected as a random 80% subset of our overall data, with no consideration for preserving the relative fraction of each class. For instance, the isolated class constitutes 1.80% of the overall dataset, but the relative fraction of this class in the training data drops to 1.75% due to random sampling. In the test dataset, in contrast, the isolated class comprises 1.97% of the total, as can be checked with the numbers given in Table LABEL:tab:errormat.
When we take a different random sample of the images as our training data, we can get marginally different results. For instance, we repeated the training of our CNN model 1a with a different random training dataset for which the isolated class comprised 1.81% of the total. While this fractional increase may not seem very large, it is enough to produce a marked increase in the prediction accuracy for the isolated class. This newly trained CNN predicts 98.7% of the isolated class correctly in the training data, and 96.1% correctly in the test dataset. Recall the corresponding accuracies reported in our main results in Section 5.1 were 94.3% and 90.6%, respectively.
This boost in performance of the CNN highlights the importance of optimising the relative fraction of classes within the data when training CNNs. Ideally, each class should have equal representation in the data so that the training is not biased toward any particular class. However, equal representation is not feasible in our case due to the nature of the isolated class. That is, isolated formation histories will always be lacking in variety when compared to the diverse evolutionary histories possible via galactic interactions (e.g. tidal and mergers). Because our dataset aims to capture this evolutionary variety, the isolated class naturally constitutes a tiny fraction of the whole.
Nevertheless, in the future we can increase the number of isolated S0 models by varying structural and kinematic properties of the disc, such as the Toomre Q parameter. By increasing the number of Spiral disc models, we will be able to have a larger variety of isolated S0 models and a larger number of corresponding images for training the CNNs. As we have seen, such an increase in the fraction of training images will likely improve the classification accuracies for the isolated formation pathway.
6.2 Distribution of mass ratios
In Section 5.2, we report the results of using a roughly uniform distribution of merger mass ratios to train our models 2a, 2b, and 2c. We chose to construct the training data in this way in order to improve the overall accuracy for the CNNs across the full range of mass ratios. When training the CNNs on a simple 80% random sample of the dataset, the results are markedly inferior, particularly at low mass ratios. For instance, at a mass ratio of 0.11, this CNN overpredicts the true value by on average, and it overpredicts the mass ratios of 0.2 by on average. This discrepancy is roughly a factor of two larger than the results shown in Figure 9 when training on the roughly uniform dataset.
Taking the training data as an 80% random sample produces a dataset which is biased toward mass ratios of , as can be seen in Figure 7. This range of values is notable because we find that the CNN trained with this biased training data exhibits its most accurate predictions in this same range, . This contrasts with our main results in Section 5.2, for which the most accurate predictions occur in the range as seen in Figure 9.
Thus, when the training data is dominated by a particular subset of mass ratios, the performance of the CNN improves within that range of values but may suffer elsewhere, particularly at low mass ratios. By taking a roughly uniform subset of the mass ratios, we are able to create a more balanced dataset. (It nevertheless still suffers from under-representation of low mass ratios of as mentioned in Section 5.2.) Training with a balanced dataset improves the proportional representation of low mass ratios, and it likewise improves the predictions of the CNN at a wider range of input values.
Accordingly, we can further improve the accuracies of our CNNs by training with a truly uniform sample across the full range of mass ratios. Even though we imposed an upper limit on the relative frequency at each mass ratio in our training data, our present dataset is still rather sparse below a mass ratio of 0.15 as seen in Figure 7. To assemble a truly uniform dataset, we would need to resimulate many more examples of S0 formation from mergers at low mass ratios with an expanded parameter space beyond our present investigation (e.g. Table LABEL:tab:par). As this goes beyond the present scope, we leave this task to future study.
6.3 Morphology, kinematics, and their combination
As described in Section 5.1, the CNNs which classify S0 formation pathways are more accurate when trained on kinematics (i.e. model 1c) than when trained on morphology (model 1b). The advantages of the kinematic data are also apparent for the CNNs which predict merger mass ratios, because the performance of model 2c is markedly superior to model 2b (e.g. Figure 10). This suggests that the physical imprints of S0 formation processes are best preserved in the kinematics rather than morphology. This fact underscores the importance of IFS surveys such as the SAMI galaxy survey (Croom et al. 2012), SLUGGS (Brodie et al. 2014), and MaNGA (Bundy et al. 2015) to assemble the key data needed to illuminate the formation processes of observed S0s.
It is not surprising that our most accurate CNNs are trained on the combined dataset of morphology plus kinematics. This is particularly evident in Figure 10 for the CNNs which are trained to predict merger mass ratios, and it is true (albeit only marginally) for the CNNs which classify S0 formation pathway as reported in Section 5.1. The reason for this is simply because combining multiple physical quantities into the data provides the largest set of independent inputs that can be used to tune the predictions of the network.
It is likely that bundling even more physical quantities into the training datasets will provide even better results. For instance, one could imagine training the CNNs on image arrays with additional channels consisting of two-dimensional velocity dispersion maps, metallicity maps, H- distributions, neutral hydrogen kinematics, globular cluster kinematics, etc. Such data may help to improve the classification accuracies in areas where the CNN struggles, such as the mild confusion between the isolated class and tidal class described in Section 5.1.
Providing the CNNs with additional physical data during training may also reduce the statistical scatter in the predicted mass ratios. It is likely that the scatter in Figure 9 can be traced to some extent to the diversity of morphologies and kinematic maps at a given value of the mass ratio, which in turn is influenced by the use of multiple initial conditions with varying bulge-to-disc ratios (Table LABEL:tab:ic). By training the CNN on multiple additional physical quantities, the network has a better chance to extract the essential information to uniquely identify the mass ratio (or other physical measurements of interest) among the diversity of input images.
6.4 Physical intuition for the CNN predictions
6.4.1 Feature Maps
We have demonstrated empirically in Section 5 that CNNs can accurately classify simulated S0s by their formation pathways and merger mass ratios. However, we have not yet explored exactly how the CNN achieves this high performance, nor which physical features in the images are being utilised by the CNN. To attempt to address these questions, we discuss in this section the so-called “feature maps” of a selection of input images.
As an input image passes through the layers of the CNN, that image is transformed into many intermediate states called feature maps which the CNN utilises for its final prediction. These feature maps are the result of convolving one of the convolutional filters with the input to a layer. When a single input image is passed into our CNN (see the architecture schematic in Figure 8), the first convolutional layer produces 32 feature maps (each of size pixels), the second convolutional layer produces 64 feature maps (of size ), and the final convolution produces 128 feature maps (of size ).
In Figure 11 we show feature maps pertaining to three visually similar input images from each formation pathway. In each case, the CNN correctly predicts the formation pathway with probability exceeding 99.9%. Owing to limitations of space, it is not feasible to inspect all feature maps for a given input image, so instead we restrict our attention to the two feature maps with highest total activation (i.e. highest summed pixel value) from each layer.
The feature maps from the first convolutional layer (columns three and four in Figure 11) are all quite similar, which suggests that the CNN is not able to distinguish the three formation pathways after only the first convolution. The feature maps begin to diverge visually after the second convolutional layer (columns five and six), and the variety is even larger after the third convolution (final two columns). This highlights the fact that a CNN requires numerous convolutional layers stacked together to be able to extract meaningful feature maps from the input.
Focusing on the final two columns of Figure 11, we can infer that most of the feature maps have high activation (high pixel value) in the midplane of the disc where the rotational velocities likely peak. This suggests that the CNN is using rotational amplitudes in some way to distinguish the pathways. The emphasis of the central region in the feature maps varies between the three pathways, which may signify the varying importance of the bulge across the three progenitor models we consider. The feature map in the bottom right corner of Figure 11 is quite interesting, as it exhibits activations across broad regions of the inner disc and above the disc plane. This likely means the CNN is picking up on the presence of a greater amount of random motions for mergers in comparison to the other pathways.
We specifically selected input images which appear similar in morphology and kinematics in Figure 11 in order to highlight the following point: the human eye is almost certainly unable to distinguish the true formation pathways due to the similarity of these images, but the CNN predicts the correct pathway with a probability exceeding 99.9%. The same is true for Figure 12, which shows three similar inputs to our second CNN for predicting merger mass ratios. The CNN again exhibits great performance despite the similarity in the images, predicting the correct mass ratio in each case to within an absolute error of 0.01.
Whereas the feature maps of Figure 11 primarily emphasize the elongated and rapidly rotating disc, the feature maps of Figure 12 emphasize different regions. For instance, the feature maps of the final convolutional layer (final two columns in Figure 12) strikingly emphasize a broad region of the disc while excluding the inner region where the bulge dominates, creating a visual impression of a hole. This suggests that the key information needed to infer merger mass ratios may be preserved in the disc rather than the bulge, and may be connected to how much the galactic disc has been disturbed following the merger.
6.4.2 The role of randomness
Inspecting feature maps can provide hints at how the CNN operates, but in general there is no straightforward way to extract a simple physical interpretation. This is particularly important to remember when inspecting feature maps of only a few input images as in Figures 11 and 12. It is tempting to isolate differences in the properties of these few images and draw conclusions for physical intuition, but the network is not producing feature maps based on the differences between just these few images; it is trained to distinguish the differences between the full set of training data, comprising on the order of one hundred thousand input images. Inspecting the full set of feature maps of all input data is simply not feasible.
Instead, we may speculate on the broad properties that distinguish the images of one formation pathway from another. In particular, the amount of pixel-by-pixel randomness in both density images and kinematic maps seems to be correlated with formation pathway. Here we use the term ‘randomness’ to qualitatively denote areas of an image which exhibit large fluctuations in the amplitude of velocity (for the kinematic maps) or density (for the morphological maps), such that the image does not appear smooth. For the images of the present study, the presence of such randomness is an intrinsic feature of the simulations themselves rather than a product of how the images are constructed.
When inspecting various images (e.g. Figures 3, 4, and 11), one may judge that the least amount of randomness is present in the isolated images and the greatest amount of randomness appears in the merger images. This seems to hold true regardless of the size of the initial bulge in the Spiral model. The presence of randomness is somewhat more clear within the kinematic maps in comparison to the density maps, for several possible reasons. As a vector quantity, the velocities of different particles can sum in opposite directions whereas density maps are summed from scalar masses. This may naturally allow the amplitude of random motions to be stronger than the amplitude of random density variations. Also, the logarithmic scaling of the density images suppresses the scale of any randomness which is present.
There are physical reasons why we would expect S0s to exhibit different degrees of randomness for each of our three pathways. An essential ingredient to the formation of S0s is the disappearance of spiral features due to disc heating, but the mechanism for dynamical heating can vary in terms of strength and direction for different pathways. It is least disruptive for the isolated pathway, wherein clumps migrate through the disc (but never out of the disc) and produce an overall smooth velocity field. The heating mechanism for mergers is the most violent (strong mergers can destroy the disc altogether) and can occur in random directions based on the relative orientations of the two galaxies. The tidal pathway stands in between, as the tidal forces are strong enough to warp and disrupt a disc though not destroy it, and the direction may be randomly oriented with respect to the initial disc. Accordingly it makes intuitive sense that the amount of pixel-to-pixel randomness in the images is likely correlated with the disc heating mechanism, with progressively larger degrees of randomness for the isolated, tidal, and merger pathways, respectively.
If the above intuition holds true, then we may further speculate that the CNN is able to capture these subtle differences in image randomness and thereby produce highly accurate predictions. This may also explain why the CNN struggles in some cases. For instance, the large errors in the predictions at low merger mass ratios may potentially be explained by the relative lack of randomness for low mass ratio mergers in comparison to higher mass ratio mergers.
Though the discussion is only qualitative at this point, we will seek to quantify the amount of such randomness present in our training data in the future. More importantly, we plan to correlate the predictions of the CNNs with the amount of randomness or other potentially important quantities. In this way we may be able to address the key question of how the CNN generates its predictions on our dataset and thereby understand how to best improve the results.
6.5 Accuracies as a function of inclination
Here we consider whether the accuracy of our CNNs is affected by the inclination of the S0 discs (e.g. whether face-on or edge-on orientations are better classified). We emphasise that the projected images in our synthetic dataset vary in terms of disc inclination as well as the azimuthal angle of the disc. However, our simulated S0s are generally axisymmetric, which implies the variation of azimuthal angle is not as important as the variation of inclination.
Figure 13 shows the prediction accuracy of our trained CNN model as a function of inclination for each S0 formation pathway. The left panel indicates a noticeable trend for the isolated class: the accuracies generally increase with disc inclination, for both the training and test datasets. The accuracies drop to for face-on S0s in the test data, and for face-on images of the training data.
Such a significant drop in accuracy may be due in part to the small total number of images in the isolated class (e.g. see Section 6.1). Nevertheless it likely implies that the edge-on images of the isolated class contain more distinguishing features in comparison to the face-on images. This may be surprising, because an edge-on image contains fewer non-trivial pixels than face-on, simply because the sky background covers more of the image. In other words, despite the fact that edge-on galaxies span fewer pixels, these orientations are easier for the CNN to classify correctly (for the isolated class).
There may be several physical reasons for this. For instance, face-on kinematic maps convey relatively little information because the orbits within the disc are aligned orthogonally to the image projection. Thus, the salient kinematic features of each S0 formation pathway may largely disappear in the face-on projection, making such images harder to classify. In addition, each of the galaxies is roughly axisymmetric, which suggests that the features of the disc may be largely redundant as a function of azimuthal angle. Lastly, the sharp sky background of the edge-on isolated images may prove useful to the CNN, particularly when the tidal and merger scenarios produce discs with increased vertical scale-heights and dispersions, which may be easily detected in edge-on but not face-on projections.
Trends with inclination are less noticeable for the tidal (middle panel) and merger classes (right) in Figure 13. This is primarily because the accuracies are extremely high for all inclinations, exceeding 99.1% and 99.9%, respectively. The tidal class may exhibit a weak upward trend with inclination for the training data, but the same cannot be said for the test data. The merger class, meanwhile, shows its lowest accuracies for higher inclinations, both for the training and test data. However, this trend does not signify a systemic issue for the class because vanishingly few images are misclassified.
Figure 14 shows the mean prediction for merger mass ratios for a set of different inclinations as given by our trained model 2a. For this CNN, the predictions are most accurate at high inclinations (yellow line), and the predictions seem to be least accurate at low inclinations (blue line), particularly at high mass ratios (e.g. ). At low mass ratios (), the mean predictions are roughly equivalent for different inclinations, but the highest inclinations nevertheless still perform the best. The physical reason underlying these trends is likely related to the information contained in the vertical thickness and dispersion of the discs, which is amplified in particular for high mass ratio mergers.
It is interesting that the right panel of Figure 13 indicates an opposite trend with inclination compared to that of Figure 14. In other words, the classification of merger images by formation pathway has highest accuracy at low inclinations; but the prediction of merger mass ratios has highest accuracy at high inclinations. Such a contrast highlights the fact that the quality of information contained in a galactic image can change depending on the physical quantity being measured.
6.6 Future Work
Though we have focused exclusively on simulated data in this paper, our ambitions for future work are to extract fossil information from observational data. In particular, our strategy is to train CNNs using the known formation processes of simulated S0s and to subsequently feed observed images into these pre-trained networks for classification. In other words, we will be able to predict the fundamental physical quantities which underpin each observed system. The current work serves to validate this approach by demonstrating its viability on a simulated dataset.
The success of our future work depends on a variety of factors. For instance, the simulated images and kinematic maps must be produced with a greater level of sophistication than in the present work, so that they are fully representative of the features contained in the observational data. This includes, for instance, adding realistic image noise to mimic observational conditions as well as choosing appropriate image resolutions and scales. In addition, the variety of formation pathways in the simulations must equal or exceed the true range of formation histories of the observed systems. Because the true formation histories are unknown, we can attempt to satisfy this requirement by creating a substantially larger set of simulations with an expanded parameter space. It may also be important to incorporate additional physics not considered in this work, such as hydrodynamical interactions with gaseous halos, cosmological gas accretion, galactic feedback, etc.
7 Summary and Conclusion
In this paper we have demonstrated that CNNs can be trained to classify simulated S0 galaxies according to their formation pathways and merger mass ratios. We first assembled a large set of N-body simulations which model the formation of S0s from Spiral progenitors under idealised but reasonable conditions for the merger, tidal, and isolated pathways. We then created a dataset of stellar density images and two-dimensional kinematic maps of our simulated S0s, and we trained our CNNs on these images. Our trained CNNs successfully confirm each S0 formation pathway for the vast majority of images across various training and test datasets. We also find success when predicting the merger mass ratios, as our trained CNNs produce mean predictions which differ from the true values to within roughly across the full range of our data.
In the future, we will apply our trained networks to observed images and kinematic maps of S0s, and thereby classify observed systems based on fundamental physical processes. In principle, the applicability of our method is not limited to the classification of S0s. For instance, the methodology could be applied to other types of galaxies with multiple formation pathways, such as dwarf ellipticals which may form by mergers or by tidal stirring (Mayer et al. 2001; Yozin & Bekki 2012).
Overall, we find that the CNNs trained on kinematic maps are more accurate than those trained on only images of the stellar density; but the most accurate CNNs are trained on the combination of kinematics plus morphology. This is particularly true for predictions of merger mass ratios. This suggests that the imprints of fundamental formation processes are found primarily in the kinematics of a galaxy, which in turn highlights the importance of observational surveys to assemble the kinematic data needed to illuminate such processes in the real universe. Key questions remain to be answered, such as clarifying exactly how the CNNs achieve their accurate predictions and why the kinematic data are superior to the density maps.
The utility of training CNNs to achieve our scientific goals is particularly relevant in light of the remarkable similarities among the morphologies and kinematics of the input data. Due to these similarities, it is likely quite difficult if not impossible for astronomers to visually predict formation processes with accuracies that would compete with the CNNs. This fact underscores the role that CNNs may provide in the future to augment the abilities of astronomers.
In summary, our current work is an important step toward classifying galaxies by the fundamental physical properties which drive their evolution. We conclude that training CNNs on simulated datasets of S0 formation may provide key insights in the future toward dividing S0s into an assortment of physically-motivated subcategories.
Acknowledgements
This research was supported by the Australian government through the Australian Research Council’s Discovery Projects funding scheme (DP170102344).
Appendix A Details of adopted simulation code
Here we discuss various implementation details of our simulation code as it relates to our present study of S0s. For full details on the code, see Bekki (2013) (hereafter B13) and Bekki (2014).
A range of physical processes are modelled self-consistently in our simulations, including: gas dynamics (smoothed-particle hydrodynamics), star formation, formation on dust grains, formation of dust grains in the stellar winds of supernovae and asymptotic giant branch stars, time evolution of interstellar radiation field, growth and destruction processes of dust in the interstellar medium, and photo-dissociation due to far ultra-violet light. The code does not include feedback from active galactic nuclei on the interstellar medium nor the growth of supermassive black holes. Such feedback effects could be important for several pathways of S0 formation (particularly in relation to central star formation), so we will investigate such effects in the future.
Applied to the formation of S0s, our numerical code allows us to derive the structural and kinematical properties, dust abundances, and spatial distributions of atomic and molecular hydrogen. For the present work, however, we focus exclusively on the stellar properties of our S0 models in order to draw parallels with IFS surveys.
We adopt the ‘-dependent’ star formation recipe of B13 in which the star formation rate (SFR) is determined by the local molecular fraction () of each gas particle. A gas particle can be converted into a new star if the following three conditions are met: (i) the local dynamical time scale is shorter than the sound crossing time scale (mimicking the Jeans instability), (ii) the local velocity field is identified as being consistent with gravitational collapse (i.e., ), and (iii) the local density exceeds the threshold density of 1 cm*-3* for star formation. We also adopt the Kennicutt-Schmidt law, which is described as ; (Kennicutt 1998), where is the power-law slope. A reasonable value of is adopted for all models.
Each supernova (SN) is assumed to eject a total feedback energy () of erg. Of this total, 90% and 10% of are deposited as an increase of thermal energy (‘thermal feedback’) and random motion (‘kinetic feedback’), respectively. The thermal energy is used for the ‘adiabatic expansion phase’, where each SN can remain adiabatic for a timescale of . This timescale is set to be yr. We adopt a fixed canonical stellar initial mass function (IMF) proposed by Kroupa (2001), which in turn determines the chemical evolution, SN feedback, and dust formation and evolution.
Chemical enrichment through star formation and metal ejection from SNIa, SNII, and AGB stars is self-consistently included in the chemodynamical code. The code explicitly evolves 11 chemical elements (H, He, C, N, O, Fe, Mg, Ca, Si, S, and Ba) in order to predict both chemical abundances and dust properties. There is a time delay between the epoch of star formation and those of supernova explosions and the commencement of AGB phases (i.e., non-instantaneous recycling of chemical elements). We adopt the nucleosynthesis yields of SNe II and Ia from Tsujimoto et al. (1995) and AGB stars from van den Hoek & Groenewegen (1997) in order to estimate chemical yields. Dust can grow through accretion of existing metals onto dust grains with a timescale of . Dust grains can be destroyed though supernova blast waves in the ISM of galaxies and the destruction process is parameterised by the destruction time scale (). As discussed in B13, we consider models with Gyr and Gyr. Despite the fact that the adopted code contains the above features related to chemical evolution and dust evolution, we do not investigate these properties in the present study.
The temperature (), hydrogen density (), dust-to-gas ratio () of a gas particle, and the strength of the FUV radiation field () around the gas particle are calculated at each time step so that the fraction of molecular hydrogen () for the gas particle can be derived based on the formation/destruction equilibrium conditions. The SEDs of stellar particles around each -th gas particle (thus ISRF) are first estimated from ages and metallicities of the stars by using stellar population synthesis codes for a given IMF (e.g., Bruzual & Charlot 2003). Then the strength of the FUV-part of the ISRF is estimated from the SEDs so that can be derived for the -th gas particle. Based on , , and of the gas particle, we can derive (see Figure 1 in B13). Thus each gas particle has , metallicity ([Fe/H]), and gas density. The total dust, metal, and masses are estimated from these properties.
Appendix B High resolution images of representative S0 models
As explained in Section 3.2, we chose the resolution of our images and velocity maps to match the spatial resolutions of IFS surveys. Here we show three representative S0 models at high resolution in order to reveal any structure which is present in the simulations but is concealed in the low resolution images that we supply to the CNNs (such as those of Figures 3 and 4). S0 simulations for the isolated, tidal, and merger pathways are given in Figures 15, 16, and 17, respectively. Each of these S0s originated from a Spiral galaxy of Model C (see Table LABEL:tab:ic). A number of distinguishing features are apparent in the surface density and velocity maps, such as the magnitude of out-of-plane motions, the presence of a bar, and the amount of randomness in particle location and velocity as discussed in Section 6.4.2.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Abadi et al. (2016) Abadi, M., Agarwal, A., Barham, P., et al. 2016, ar Xiv:1603.04467
- 2Ackermann et al. (2018) Ackermann, S., Schawinski, K., Zhang, C., Weigel, A. K., & Turp, M. D. 2018, MNRAS, 479, 415
- 3Barway et al. (2013) Barway, S., Wadadekar, Y., Vaghmare, K., & Kembhavi, A. K. 2013, MNRAS, 432, 430
- 4Bekki (1998) Bekki, K. 1998, Ap J, 502, L 133
- 5Bekki & Couch (2011) Bekki, K., & Couch, W. J. 2011, MNRAS, 415, 1783
- 6Bekki (2013) Bekki, K. 2013, MNRAS, 432, 2298
- 7Bekki (2014) Bekki, K. 2014, MNRAS, 444, 1615
- 8Bekki (2015) Bekki, K. 2015, MNRAS, 449, 1625
