Logo
Overview

ExSO (Exoplanet Classifier SDK)

An open-source machine learning Python toolkit and stacking ensemble model (LightGBM + XGBoost + CatBoost) built for the NASA Space Apps Challenge 2025. Analyzes transit photometry and Kepler, K2, and TESS datasets to classify exoplanet candidates with 94% accuracy.

October 4, 2025
3 min read
Machine Learning Python NASA Space Apps Astronomy Scikit Learn Ensemble Learning PyPI Package
ExSO (Exoplanet Classifier SDK)

Overview

ExSO (Exoplanet Classification Toolkit) is a high-performance machine learning SDK developed for the NASA Space Apps Challenge 2025. Engineered by team Smooth Operator, ExSO automates the classification of exoplanetary candidates discovered by NASA space telescope missions—including Kepler (KOI), K2, and TESS.

Historically, identifying genuine exoplanets from photometric transit light curves required exhaustive, manual vetting by astrophysicists to weed out eclipsing binary stars, background stellar variations, and instrumental artifacts (“false positives”). ExSO addresses this bottleneck through an automated, production-ready Python library and stacking ensemble pipeline that reaches 94% classification accuracy while processing over 1,000 candidates per minute.

ExSO is published on PyPI as exso-sdk and packaged with an interactive web demonstration portal and Flask REST API.


Core Machine Learning Architecture

Transit Photometry Data (Kepler / K2 / TESS)
│
▼
┌──────────────────────────────────────────────┐
│ Validation & Preprocessing Layer │
│ - 16 Exoplanet Parameters Validated │
│ - Strategic NaN Imputation & Normalization │
└──────────────────────┬───────────────────────┘
│
▼
┌──────────────────────────────────────────────┐
│ V2 Stacking Ensemble Classifiers │
│ ├── LightGBM Classifier │
│ ├── XGBoost Classifier │
│ └── CatBoost Classifier │
└──────────────────────┬───────────────────────┘
│
▼
┌──────────────────────────────────────────────┐
│ Meta-Learner Stacking Layer │
│ - Computes Class Probability Distributions │
│ - Outputs Confidence Calibration Score │
└──────────────────────┬───────────────────────┘
│
┌───────────────┼───────────────┐
▼ ▼ ▼
[ False Positive ] [ Candidate ] [ Confirmed Positive ]

1. Stacking Ensemble Mechanism

Rather than relying on a solitary tree or neural network, ExSO leverages a stacked meta-learning architecture combining three gradient boosting algorithms:

  • LightGBM: Optimized for high-speed histogram binning and handling sparse stellar features.
  • XGBoost: Provides exact split finding with regularized objective functions to curtail overfitting on unbalanced candidate sets.
  • CatBoost: Excels at continuous astronomical measurement boundaries without requiring heavy manual categorical encoding.

The base model probability outputs are fed into a trained meta-classifier that calibrates the final decision boundary across three distinct target classifications:

  1. Confirmed Positive (1): Genuine planetary transit signal.
  2. Candidate (0): Strong signal requiring further radial velocity or spectroscopy follow-up.
  3. False Positive (-1): Systematic noise, stellar variability, or eclipsing binary signature.

2. Feature Engineering & Key Planetary Parameters

ExSO processes 16 curated physical and orbital metrics derived from space telescope observation pipelines:

  • Critical Orbital Dynamics: Orbital Period (koi_period), Transit Depth (koi_depth), Planetary Radius (koi_prad), Semi-Major Axis (koi_sma), Equilibrium Temperature (koi_teq), Insolation Flux (koi_insol), and Model Signal-to-Noise Ratio (koi_model_snr).
  • Stellar Host Characteristics: Stellar Effective Temperature (koi_steff), Surface Gravity (koi_slogg), Metallicity (koi_smet), Stellar Radius (koi_srad), Stellar Mass (koi_smass), and Stellar Density (koi_srho).
  • Transit Geometry: Impact Parameter/Inclination (koi_incl), Transit Epoch (koi_time0bk), and Transit Duration (koi_duration).

SDK Capabilities & Developer Experience

ExSO was designed not just as a standalone research notebook, but as a reusable, installable Python library:

1. Simple Installation via PyPI

Terminal window
pip install exso-sdk

2. Pythonic Prediction Interface

import exso_sdk
import pandas as pd
# Initialize the trained stacking predictor
predictor = exso_sdk.ExoplanetPredictor()
# Load astronomical target candidate parameters
candidate_df = pd.DataFrame([{
'koi_period': 15.2,
'koi_depth': 2100.5,
'koi_prad': 1.8,
'koi_sma': 0.12,
'koi_teq': 750.0,
'koi_insol': 85.0,
'koi_model_snr': 35.2,
'koi_time0bk': 2454833.5,
'koi_duration': 0.4,
'koi_incl': 88.9,
'koi_srho': 1.6,
'koi_srad': 0.95,
'koi_smass': 1.05,
'koi_steff': 5800.0,
'koi_slogg': 4.5,
'koi_smet': 0.1
}])
# Predict with calibrated confidence metrics
result = predictor.predict(candidate_df, return_confidence=True)
print(f"Classification: {result['prediction_labels'][0]}")
print(f"Confidence: {result['confidence_scores'][0]:.1%}")

3. High-Throughput Batch Processing

  • Sub-100ms Inferences: Optimized C-extensions allow processing over 1,000 celestial candidates per minute.
  • Missing Value Robustness: Feature-specific imputation strategies prevent pipeline crashes when raw telemetry contains missing sensor values.
  • Model Interpretability: Built-in feature importance introspection using SHAP and gradient contribution matrices.

Project Highlights & Open Source Impact

  • NASA Space Apps Challenge 2025: Developed and submitted as part of the worldwide hackathon under the exoplanet exploration challenge.
  • PyPI Release: Published with automated testing suites, packaging scripts, and type definitions.
  • Live Web Explorer & REST API: Deployed with a lightweight Flask web interface (run_web.py) enabling drag-and-drop CSV dataset evaluation for students and citizen scientists.
  • Open Source Repository: github.com/darwindanish/ExSO