ContextNet: Deep learning for Star Galaxy Classification

Noble Kennamer, David Kirkby, Alexander Ihler, Francisco Javier Sanchez-LopezICML 2018

Introduction: The Challenge of Atmospheric Blurring

In an ideal astronomical observation, distinguishing a star from a galaxy is straightforward: stars appear as sharp points of light, while galaxies present as extended, fuzzy blobs. However, ground-based telescopes must peer through Earth's turbulent atmosphere, which inherently blurs these images. This blurring effect, quantified as the Point Spread Function (PSF), is not static; it varies significantly based on weather conditions, time of observation, and even the specific position on the telescope's sensor.

Because of the PSF, a star in a "blurry" exposure can look virtually identical to a distant galaxy in a "clear" one. Traditional machine learning models, such as standard Convolutional Neural Networks (CNNs), treat every detected object as an independent and identically distributed (IID) event. This assumption causes them to fail dramatically—often dropping to near-random guessing (50% accuracy)—when the PSF changes between images. To classify an object accurately, astronomers cannot look at it in isolation; they must look at surrounding objects in the same exposure to "calibrate" their understanding of the current atmospheric conditions.

The effect of Point Spread Function (PSF) blurring on stars and galaxies, alongside a traditional size-magnitude classification plot.

ContextNet: Breaking the IID Assumption

To address this, the authors propose ContextNet, a modular deep learning framework designed to classify stars and galaxies by considering the "context" of an entire astronomical image. The core insight of ContextNet is that astronomical data is inherently non-IID. Objects in the same frame share a hidden variable—the atmospheric state—that must be modeled to achieve high accuracy. In essence, the model learns to use the stars in the image as calibration tools to measure the PSF, and then uses that measurement to "de-blur" its interpretation of other objects.

ContextNet is divided into three distinct artificial neural networks (ANNs):

  1. Local Network (LN): A CNN that examines individual "cutouts" (small 28x28 pixel images of a single detected source) to extract local features like shape and brightness.
  2. Global Network (GN): This network takes the features from all detected objects in a single exposure (typically around 1,000 to 2,000 sources) and distills them into a single "global context vector." This vector captures the state of the PSF for that specific moment in time.
  3. Prediction Network (PN): This final stage combines the local features of a specific object (from the LN) with the global context vector (from the GN) to make a final classification.
ContextNet leverages both the wide-field global context of an exposure and the local cutouts of individual objects.

To handle the reality that every telescope exposure contains a different number of objects, the authors employ an ensembling technique similar to bagging. They sub-sample fixed-size groups of objects to feed into the Global Network and average the results, ensuring the model remains robust regardless of how crowded the field of view is.

Datasets and Experimental Setup

The study utilizes simulated data designed to mimic the upcoming Large Synoptic Survey Telescope (LSST), a massive astronomical survey expected to produce 15 terabytes of data every night. The images were generated using the GalSim image simulation package, which allows researchers to create highly realistic astronomical images with known "ground truth" labels. The dataset consisted of 5,000 training exposures and 1,000 test exposures, with each exposure containing between 1,200 and 2,200 detected objects.

Key Results

ContextNet was evaluated against the "DM Stack" classifier, which represents the current state-of-the-art tool used by the astronomical community. The deep learning approach demonstrated significant improvements across the board:

  • Overall Accuracy: ContextNet achieved 93% accuracy, a substantial leap over the DM Classifier’s 85%.
  • Precision and Recall: The model showed marked improvements in both precision (0.88 vs. 0.82) and recall (0.96 vs. 0.92).
  • Performance on Dim Objects: The most critical victory for ContextNet was its performance on dim, low-magnitude objects. Traditional methods heavily rely on brightness and struggle as objects get fainter. ContextNet maintained high accuracy in these faint regimes, a capability that is absolutely vital for the LSST’s primary goal of mapping the distant, faint universe.

Limitations and Future Work

While the results are highly promising, the authors note a few limitations. Primarily, while GalSim is sophisticated, the model has yet to be tested on real-world observational data where establishing an absolute "ground truth" is much harder. Additionally, the current architecture relies on fixed 28x28 pixel cutouts. Future iterations could employ multiple local networks to handle objects of varying sizes or different zoom levels.

Looking forward, the ContextNet framework is general enough that it could be extended beyond simple binary classification. By effectively modeling the confounding factor of the PSF, similar architectures could be used to measure other critical astronomical properties, such as the subtle shapes of galaxies for weak gravitational lensing studies or their distances via photometric redshift estimation.

Summary updated

BibTeX
@inproceedings{kennamer2018contextnet,
  author = {Noble Kennamer and David Kirkby and Alexander Ihler and Francisco Javier Sanchez-Lopez},
  title = {{ContextNet: Deep learning for Star Galaxy Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure