Skip to content

Implementing transformer models to detect exoplanet from light curve data

Notifications You must be signed in to change notification settings

savula13/Exoplanet-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Exoplanet Transit Classification with CNNs and Multi View Transformers

This repository contains the code and experiments for our graduate-level CSE project on classifying exoplanet transit candidates using phase–folded light curves from NASA’s TESS mission. We evaluate three architectures β€” a CNN baseline, a supervised transformer, and two self-supervised extensions β€” to leverage both labeled and unlabeled astronomical observations.


Disclaimer: All collaboration and code execution was done in a Google Colab environment, with the environment containing the necessary files and packages.


πŸš€ Project Overview

Exoplanet detection from light curves is challenging due to:

  • high class imbalance (confirmed planets are very rare!)
  • stellar variability and instrumental noise
  • subtle temporal patterns in transit crossing events (TCEs)

Our approach uses two views of each light curve:

  • Global view: full orbital phase (captures context and baseline shape)
  • Local view: zoomed window around centroid peak (captures transit structure)

Both flux and centroid signals are encoded as aligned channels.


🧠 Model Architectures

Model Input Learning Type Purpose
CNN Baseline Global flux only Supervised Local dip detection
Transformer Encoder Dual-view flux + centroid Supervised Global + local temporal reasoning
Pseudo-Labeled Transformer Same as above Semi-supervised Expand training with confident predictions
SSL Reconstruction Transformer Same as above Self-supervised β†’ fine-tuned Learn transit curve structure without labels

Full methodology details are provided in the project report (report/).


πŸ“‚ Repository Structure

.
β”œβ”€β”€ data/                         # Not included, stored in google drive
β”‚
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ cnn.ipynb                 # CNN baseline implementation
β”‚   β”œβ”€β”€ transformer.ipynb         # Supervised transformer
    β”œβ”€β”€ pseudo_labeling.ipynb     # Psuedo-labeled transformer
β”‚   β”œβ”€β”€ ssl_reconstruction.ipynb  # Masked reconstruction transformer (not included in results)
β”‚   └── reading_bulk_data.ipynb   # Utility functions for reading data
β”‚
β”œβ”€β”€ report/
β”‚   └── final_report.pdf
β”‚
└── README.md

About

Implementing transformer models to detect exoplanet from light curve data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •