An Algorithm for the Visualization of Relevant Patterns in Astronomical Light Curves
Christian Pieringer, Karim Pichara, M\'arcio Catel\'an and, Pavlos Protopapas

TL;DR
This paper introduces a novel visualization method for astronomical light curves inspired by dictionary-based image encoding, enabling automatic highlighting of significant features like peaks and drops in brightness.
Contribution
The paper presents a new approach that visualizes relevant patterns in light curves by encoding meaningful segments, inspired by dictionary-based image techniques, enhancing interpretability in astronomical data analysis.
Findings
Effective visualization of local peaks and drops in light curves.
Successful application to OGLE-III and StarLight datasets.
Automatic and intuitive pattern highlighting.
Abstract
Within the last years, the classification of variable stars with Machine Learning has become a mainstream area of research. Recently, visualization of time series is attracting more attention in data science as a tool to visually help scientists to recognize significant patterns in complex dynamics. Within the Machine Learning literature, dictionary-based methods have been widely used to encode relevant parts of image data. These methods intrinsically assign a degree of importance to patches in pictures, according to their contribution in the image reconstruction. Inspired by dictionary-based techniques, we present an approach that naturally provides the visualization of salient parts in astronomical light curves, making the analogy between image patches and relevant pieces in time series. Our approach encodes the most meaningful patterns such that we can approximately reconstruct light…
| No. of Instances | ||
| Class | Training | Test |
| CE | 152 | 1,777 |
| EB | 275 | 2,305 |
| RRL | 573 | 4,754 |
| Total | 1,000 | 8,236 |
| Configuration | RMSE LASSO | RMSE OMP | p-value |
|---|---|---|---|
| w:64 - a:32 | 0.899 | 0.907 | 1.6E-10 |
| w:64 - a:64 | 0.887 | 0.885 | 4.7E-19 |
| w:64 - a:96 | 0.878 | 0.889 | 1.7E-13 |
| w:128 - a:32 | 0.900 | 0.928 | 7.2E-09 |
| w:128 - a:64 | 0.891 | 0.930 | 5.9E-13 |
| w:128 - a:96 | 0.858 | 0.919 | 7.4E-165 |
| w:256 - a:32 | 0.900 | 0.963 | 1.6E-35 |
| w:256 - a:64 | 0.869 | 0.938 | 9.9E-167 |
| w:256 - a:96 | 0.829 | 0.940 | 0.0E+00 |
| w:384 - a:32 | 0.905 | 0.993 | 9.4E-111 |
| w:384 - a:64 | 0.859 | 0.974 | 0.0E+00 |
| w:384 - a:96 | 0.803 | 0.970 | 0.0E+00 |
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.
An Algorithm for the Visualization of Relevant Patterns in Astronomical Light Curves
Christian Pieringer,1 Karim Pichara,2,5 Marcio Catelan3,5 Pavlos Protopapas4
1Universidad Tecnológica de Chile – INACAP. Santiago, Chile.
2Department of Computer Science. School of Engineering, Pontificia Universidad Católica de Chile. Santiago, Chile.
3Institute of Astrophysics. Pontificia Universidad Católica de Chile. Santiago, Chile.
4Institute for Applied Computational Science (IACS). Harvard University. Cambridge, MA. USA.
5Millennium Institute of Astrophysics. Santiago. Chile. E-mail: [email protected] or [email protected]: [email protected]: [email protected]: [email protected]
(Accepted XXX. Received YYY; in original form ZZZ)
Abstract
Within the last years, the classification of variable stars with Machine Learning has become a mainstream area of research. Recently, visualization of time series is attracting more attention in data science as a tool to visually help scientists to recognize significant patterns in complex dynamics. Within the Machine Learning literature, dictionary-based methods have been widely used to encode relevant parts of image data. These methods intrinsically assign a degree of importance to patches in pictures, according to their contribution in the image reconstruction. Inspired by dictionary-based techniques, we present an approach that naturally provides the visualization of salient parts in astronomical light curves, making the analogy between image patches and relevant pieces in time series. Our approach encodes the most meaningful patterns such that we can approximately reconstruct light curves by just using the encoded information. We test our method in light curves from the OGLE-III and StarLight databases. Our results show that the proposed model delivers an automatic and intuitive visualization of relevant light curve parts, such as local peaks and drops in magnitude.
keywords:
variable stars – machine learning – sparse coding – visualization
††pubyear: 2018††pagerange: An Algorithm for the Visualization of Relevant Patterns in Astronomical Light Curves–An Algorithm for the Visualization of Relevant Patterns in Astronomical Light Curves
1 Introduction
In latest years, the modern astronomical hardware has made it possible to access and collect comprehensive information about the sky, switching the way that we understand the universe (Wootten, 2003; Dewdney et al., 2009; Thompson et al., 2013; LSST Science Collaboration et al., 2009). The massive amounts of data cannot be stored and analyzed in the way that we are used to because the current storage capacity surpasses our ability to process it. In this sense, machine learning is an essential piece and powerful tool for analyzing and extracting new knowledge from massive, high-dimensional and noisy datasets. Machine learning has contributed remarkably to time domain analysis allowing for the understanding of astrophysical phenomena providing valuable insight into astronomical objects that change through time (Debosscher et al., 2007; Richards et al., 2011; Bloom et al., 2012; Pichara et al., 2012; Graff et al., 2013; Pichara & Protopapas, 2013; Nun et al., 2014; Mackenzie et al., 2016; Pichara et al., 2016).
Light curves are a time series that encode the light variations of a pulsating object along the time. Automatic methods applied for light curves classification train a predictive model using templates or known type of variability (labels). On the one hand, the use of templates assumes that each object in a survey can be well modeled at least by one instance in the templates. This assumption may be unreasonable for large datasets and may cause a poor classification (Richards et al., 2012). On the other hand, the use of labeled dataset requires a cross-matching procedure to merge two astronomical catalogs. During cross-identification, we typically rely on the Right Ascension (RA) and the Declination (DEC) sky coordinates of known objects in one catalog to assign the object label for the closest object in the other catalog, assuming that the systematic positioning error between the two catalogs is zero (Nieto-Santisteban et al., 2007). Cross-matching is hard to solve because of the high computational complexity of large-scale catalogs, and the distance error between objects (Nieto-Santisteban et al., 2007; Du et al., 2014).
Furthermore, the matching procedure has significant problems in very crowded fields, such as the Galactic plane. This factor has implications on merging catalogs because matching algorithms will miss some matches due to significant flux contamination by faint and close objects, and finally carrying labeling mistakes for new catalogs (Wilson & Naylor, 2017). These facts suggest that in some cases it may be reasonable to create a training dataset from scratch.
Data visualization is another useful set of tools in the data science pipeline that aims to present and to encode the information precisely and efficiently as a visual object in a more informative and human-readable way. Visualization has become relevant in various domains (Fu et al., 2008; Tao et al., 2016). For example, in the astronomical context, a folded light curve of a variable star presents typical visual local patterns that we might discriminate by a set of salient waveforms. Recognizing these parts is essential for a human visual identification process and an enhanced analysis (Li & Yang, 2013). The automatic detection and visualization of relevant local parts based on machine learning algorithms has a high impact on communicating the information contained in an astronomical time series.
Dictionary-based classifiers use a dictionary of prototypes to encode an input signal as a linear combination of these prototypes. These methods have shown to be completely useful detecting and recognizing local patterns in other domains such as computer vision (Wright et al., 2010; Mairal et al., 2014), health signal (Wang et al., 2013; Yuan et al., 2014), and audio signals (Ness et al., 2012; Zubair et al., 2013). Its advantage falls on the fact that these methods take into account the local effects of prototypes in each part of the data. In this sense, we could able to identify and visualize where the model puts more efforts during reconstruction or in a classification model.
We propose a framework for providing to any scientist with visual clues where they have to pay attention to the time series in astronomical data sets. Our method learns the salient parts in light curves and provides help during the visual identification.
the use of a sparse approximation allows us to process time series providing a smooth and highlighted version of the real pattern in the data without using regression, 2. 2.
the set of encoding vectors provides an embedded mechanism to highlight salient parts in light curves, 3. 3.
the detection of salient parts allows us to organize an observational schedule for variable objects.
The article describes our method and results in synthetic and real datasets. Results show that our framework can be used promisingly in visual identification of astronomical time series and for observational planning. The rest of the text organizes as follow. Section 2 includes related work to visualization. Section 3 presents our algorithm and its theoretical foundations. Section 4 describes the datasets, the experiments and the results that we collect. Finally, Section 5 contains the conclusions and closing remarks from our approach.
2 Dictionary-based Learning
Dictionary-based learning is a state-of-art methodology used for approximating an input as a linear combination of an over-complete set of prototypes or atoms (Murphy, 2012). These prototypes represent most of the variations of the input signal, and it would be useful for reconstructing any class instance in the dataset. A decoding algorithm uses the dictionary to fit a new version of the light curve using a regularized linear combination of the atoms independently of the class from they where taken (Mairal et al., 2009b; Olshausen & Field, 1997).
A particular case of this learning algorithms family is Sparse Coding (SC). It is an unsupervised method that aims to build a dictionary of atoms able to encode and reconstruct a signal. A Sparse Coding algorithm typically learns the dictionary of representative atoms in a two-step optimization process using an unsupervised training set. First, the algorithm finds a set of atoms to represent the data. Second, it finds via a non-linear encoding scheme the linear set of estimators for representing the input signal according to the dictionary. The optimization ends when the reconstruction error is minimum. In our context of astronomical time series, each atom in the dictionary would represent a waveform prototype of the morphology of these data.
This section provides a theoretical explanation of sparse-based reconstruction and the stages involved in building the dictionary.
2.1 Sparse-based Reconstruction
Sparse-based methods rely on the assumption that any portion of an input signal can be approximated using a few sets of elements in a dictionary of representative parts of it. Elements in the dictionary receive the name of atoms. The approximated signal is a smooth version of the original signal and in some context reducing the noise of the input (Mairal et al., 2009b). These methods achieve the approximation by encoding the input through a linear combination of the atoms.
Let be a set of input signals , be an over-complete dictionary with atoms , and be a matrix of coding vectors . A sparse-based algorithm minimizes the reconstruction error of the input signal as follows:
[TABLE]
where is a regularization parameter. The penalty provides a sparse solution for . In case the solution fits the Orthogonal Matching Pursuit (OMP) algorithm (Pati et al., 1993). The OMP algorithm handles this optimization problem using a greedy approach. In this case, the algorithm finds the best matching atoms iteratively in the dictionary that minimize the reconstruction error in the sense of the norm. In cases where the minimization matches the solution proposed for SC (Olshausen & Field, 1997). The algorithm finds the solution according to Lasso regression (Tibshirani, 1996). This regression method allows variables selection and regularization, enhancing the prediction accuracy of the model it produces.
2.2 Dictionary Learning
As we explain in section 2.1, sparse-based models learn the data representation via a nonlinear encoding scheme. Also, these methods can simultaneously find the dictionary with the best atoms that fit specific data. The way of solving this problem is to alternate between the two variables and , minimizing over one while keeping the other one fixed in the next optimization problem (Mairal et al., 2009b; Olshausen & Field, 1997):
[TABLE]
As Coates & Ng (2011) conclude, the main advantage of sparse-based models is not learning better atoms but arises from its non-linear encoding scheme. Furthermore, SC solves a convex optimization problem iteratively that finally could be very expensive to deploy with large amounts of data. In this sense, the authors propose recommendations and conclusions about using K-Means to design the dictionary. K-means is a well-studied method to learn features directly from raw inputs in various domains. It is a simple, fast and scalable algorithm. K-means build the dictionary solving the following problem:
[TABLE]
where, similarly to SC, is the dictionary, and is the code vector associated with the input .
3 The Approximation Method
In this section, we propose and describe a methodology to reconstruct astronomical time series using sparse-based models and a dictionary with atoms previously learned from light curves.
3.1 Pre-processing
Before training the dictionary, our algorithm normalizes each light curve to zero-mean and unit variance. Then, it performs a rolling window of size along every light curve , where is the set of overlapped windows after this pre-processing. Finally, the algorithm randomly grabs a set of windows from the -th light curve.
3.2 Dictionary Learning
To train the dictionary, we use a mini-batch version of K-Means to handle a large amount of data (Pedregosa et al., 2011). First, the algorithm randomly initializes the centroids from a Normal distribution and then normalizes them to unit length. The algorithm reinitializes empty cluster centroids using random examples from sampled windows, as suggested in Coates & Ng (2012).
In each iteration, K-Means takes a chunk of sampled windows from a set of light curves, computing the new cluster centers, and updating the centroids calculated in the previous iteration. We substitute the centroids by the nearest sampled window in the training chunk. This procedure allows us to build a dictionary using real atoms from the dataset. As suggested in (Marascu et al., 2014), we build our dictionary from a set of per-class dictionaries. This means that , where is the number of classes. This approach allows us to include all the representative atoms from each class to the final dictionary.
3.3 Approximation Algorithm
The approximation algorithm has two main stages: encoding and reconstruction. During the encoding stage, the algorithm performs the rolling window pre-processing along the light curve to encode. It is the same sampling procedure performed during training. Then, the algorithm encodes each window into an vector applying the dictionary learned previously. We try two off-the-shelf encoding algorithms: OMP and LASSO. In the reconstruction, the algorithm builds a new version of the light curve from the encoded windows. This version is free of noise. We achieve the reconstruction using equation (1), where and is the window after the rolling window procedure. The algorithm merges all the segments by consecutively adding all the segments and dividing by the overlap.
Once the reconstruction is ready, the algorithm computes the relevance of each part of the light curve using the weight of the atoms provided by the encoder to each time series segment. Let be the relevance of the segment , we calculate the maximum weight of it as such that . Finally, we normalize in . During training and the reconstruction, our framework does not consider the error or the uncertainties related to measurements in the light curve. Our algorithm provides a visualization with a smooth version of the original light curve.
4 Results
This section describes the studies we conduct to analyze the contribution of our approach. In each case, we describe the datasets and our results.
4.1 Databases Description
- •
Starlight: It is a dataset from the University California Riverside (UCR) Time Series Classification Archive that combines light curves from the MACHO and OGLE surveys (Chen et al., 2015; Protopapas et al., 2006). The dataset contains 9,236 folded light curves through period estimation (Lomb, 1976; Reimann, 1994), and where the resulting folded curve has 1,024 data points. It has three classes of variable stars: 2,580 Eclipsing Binaries (EB), 1,329 Classical Type-I Cepheids (CEP) and 5,237 RRab and RRc RR Lyrae (RRL). Training set contains 1,000 objects and the test data 8,236 objects, distributed as shown in Table 1. We refer the reader to (Protopapas et al., 2006) for more details about this dataset.
- •
OGLE-3: It collects the data from the third phase of the Optical Gravitational Lensing Experiment (OGLE; Udalski et al., 2008). It organizes into the four targets: Galactic bulge (BLG), Galactic disk (GD), Large Magellanic Cloud (LMC), and Small Magellanic Cloud (SMC). The primary survey focuses on variable objects in the I-band filter. However, for all the fields it also includes some observations in the V-band. We specifically use SMC field that includes a total number of 30,550 light curves distributed as follows: 2,768 CEP; 6,138 EB; 19,384 Long Period Variables (LPV); 2,217 RRL; and 43 Type II Cepheids (T2CEP)
4.2 Case Study 1: Reconstruction
In this experiment, we analyze the reconstruction properties of the proposed approach even in noisy conditions. We use the datasets described in Section 4.1. This experiment allows us to know the behavior of our algorithm and adjust parameters such as the window size, the number of atoms in the dictionary and their effects on the final reconstruction.
First, we train the dictionaries as we describe in Section 3.2 getting samples from the training dataset. We implement supervised training, where we allow the algorithm to train one dictionary per class. We use a fixed number of atoms , and windows size . During dictionary training, we limit the algorithm to get only ten samples per light curve from 150 light curves per training chunk to feed the K-Means algorithm, and four training rounds for each dataset. For both encoding methods, We fix the number of zero coefficients. In the case of the LASSO, we regularize the hyper-parameter , where is the window size. This assumption provides about ten nonzero coefficients (Mairal et al., 2009a). In the case of OMP, we let the non-zero coefficients parameter be a of the number of atoms in the dictionary.
In the case of the Starlight dataset, we learn the dictionary using the training set and run evaluations in the test set. We also add Gaussian noise to each light curve to train the dictionaries as real light curves. In the case of OGLE-3, we fold the light curves before building the dictionary through the standard procedure based on period calculation via the Lomb-Scargle algorithm (Lomb, 1976; Scargle, 1982). We split the SMC with stratification into 4/5 of its samples to train dictionaries and 1/5 of its samples for the test the reconstruction.
Figures 1 and 2 show qualitative results for reconstruction on the StartLight and OGLE-3 datasets using OMP and LASSO as approximation method. These results point that the use of smaller windows during encoding allows for reconstructing a more detailed version of the input. Contrary, longer windows provide a smoother version of the approximation. Table 2 summarizes the results of applying the reconstruction algorithm on test light curves using different configurations of window size and atom numbers in OGLE-3. Results show that OMP achieves a low reconstruction error using the size of a window of and atoms, and LASSO using the size of a window of and atoms. A significance test based on the Kolmogorov-Smirnov framework points that there are no significant differences between the reconstruction errors provided by LASSO or OMP. However, in computation time OMP delivers faster results than LASSO. In the rest of the paper, we present results using OMP as the encoder.
Figure 3 shows three reconstruction examples of stars classes (ECL, LPV, and RRL) from the SMC set. Results show the reconstruction algorithm provides an overview of the original light curve. Furthermore, the output of our algorithm yields a smooth version of the input, removing most of the variations without fitting any regression model or filtering procedure. This effect is one of the advantages of sparse-based methods. In this way, we can visually distinguish the pattern of stars even for non-expert users.
Figure 4 provides two examples of the atoms found by the algorithm used to build the supervised dictionary using different window sizes. Results show that the dictionary training found a set of atoms with high coherence with the original data. It is possible to note in some of the atoms the visual pattern related with each star class. In our results, we note that narrower window sizes provide an excellent approximation; however, in some cases, it is difficult to distinguish in the atom a pattern relative to each star. In the case of broader window size, we observe a less precise reconstruction, but at the same time, still recognizing a pattern.
To clarify this point, we run non-overlapped rolling windows along a folded light curve. This visualization aims to show the trade-off in the selection of the window size. For each window, we get the atom with the maximum contribution to the reconstruction. Figure 5 shows two examples of relevant atoms for different window sizes. We note that at a finner resolution most of the atoms do not have any particular similarity with the light curve. However, each part allows for an overall reconstruction and understanding of the data.
4.3 Case Study 2: Highlighting Salient Parts
As we previously stated on Section 3, our method uses the embedded information in the code vectors to recognize salient parts in time series. We apply our algorithm to encode and highlight these salient parts in real light curves in the I band from the OGLE-3 SMC data set. First, we create the dictionary using five variability classes. The algorithm learns the dictionary using 64 atoms per class giving a dictionary size of 320 atoms. We fix the windows size to . Figure 6 shows examples of the results obtained when coding light curves and then using these code vectors to highlight the salient parts in the time series. In red we can observe where the encoding put most of the effort during the approximation procedure. All of the examples present a tight relationship with the visual clues typically used by scientist to discriminate the variability class associated with a given light curve, which includes, for instance, the amplitude, maximum and minimum magnitudes, and rise time (i.e., the difference in phase between light curve maximum and minimum).
5 Conclusion
We have presented a sparse-based framework to find and highlight salient parts in astronomical light curves. Our algorithm takes advantage of the K-Means clustering to create a dictionary of atoms efficiently without memory overloads during training. Furthermore, this approach, combined with an encoding algorithm such as LASSO or OMP, provides us with a way to reconstruct the light curves. Both aspects of our approach can be useful when dealing with massive datasets.
We evaluated our method experimentally on synthetic and real-world datasets. In both cases, we found that our method produces high-quality reconstructions compared to the original version of these light curves. Moreover, based on the reconstruction, we provide an intuitive and visual representation of the salient parts in a light curve. By efficiently and automatically highlighting the light curve features that are most representative of a given variability class, this representation may help expert and non-expert users alike to guide the visual identification of stars in new catalogs. Besides, the identification of the sections of a light curve that are potentially most important may help in the planning of potentially time-consuming follow-up astronomical observations, by enabling the astronomer to focus her/his efforts mostly on these highlighted phases of variability. In the future, we would like to test the efficacy of the saliency delivered by our framework implementing a poll using our visualizations with experts.
Acknowledgements
This research was funded by a grant for Interdisciplinary Research at Pontificia Universidad Católica de Chile (project PMI PUC1203). Additional support for this project is provided by the Ministry for the Economy, Development, and Tourism’s Millennium Science Initiative through grant IC 120009, awarded to the Millennium Institute of Astrophysics (MAS); by Proyecto Basal PFB-06/2007; by FONDECYT grant #1171273; by CONICYT’s PCI program through grant DPI20140066; and finally we acknowledge the support from CONICYT-Chile, through the FONDECYT Regular project number 1180054.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bloom et al. (2012) Bloom J., et al., 2012, Publications of the Astronomical Society of the Pacific, 124, 1175
- 2Chen et al. (2015) Chen Y., Keogh E., Hu B., Begum N., Bagnall A., Mueen A., Batista G., 2015, The UCR Time Series Classification Archive
- 3Coates & Ng (2011) Coates A., Ng A. Y., 2011, in Proceedings of the 28th International Conference on Machine Learning (ICML-11). pp 921–928
- 4Coates & Ng (2012) Coates A., Ng A. Y., 2012, in , Neural networks: Tricks of the trade. Springer, pp 561–580
- 5Debosscher et al. (2007) Debosscher J., Sarro L., Aerts C., Cuypers J., Vandenbussche B., Garrido R., Solano E., 2007, Astronomy & astrophysics, 475, 1159
- 6Dewdney et al. (2009) Dewdney P. E., Hall P. J., Schilizzi R. T., Lazio T. J. L., 2009, Proceedings of the IEEE, 97, 1482
- 7Du et al. (2014) Du P., Ren J., Pan J., Luo A., 2014, Science China Physics, Mechanics and Astronomy, 57, 577
- 8Fu et al. (2008) Fu T.-c., Chung F.-l., Kwok K.-y., Ng C.-m., 2008, Engineering Applications of Artificial Intelligence, 21, 1217
