Skip to content

An AI-powered tool that classifies exoplanets using NASA datasets and provides an interactive web interface for real-time exploration and discovery.

License

Notifications You must be signed in to change notification settings

LLuisPP/Hunting_for_Exoplanets_with_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



SWAI - Hunting for Exoplanets with AI


Silent Watcher AI (SWAI) is an interactive project that combines AI with NASA’s open datasets to classify and explore exoplanets. It makes cutting-edge space science accessible through an intuitive web interface, fostering curiosity, learning, and engagement in the search for new worlds beyond our solar system.


Meet the SWAI (Silent Watcher AI) members:

Brian Lauriane Tomás Patricia Luis Hala
Developer Developer Developer Developer Developer Developer
Video & speech Design & video UI & 3D modeling Web interface & document Model training Technical content

Performing 'A World Away: Hunting for Exoplanets with AI' from NASA Spaceapps Challenge 2025

Team logo

Logo Why SWAI?
swai The name SWAI stands for Silent Watcher Artificial Intelligence. It suggest the idea of an AI system that quietly and consistently observes stellar data, searching for the faint signals that reveal hidden worlds.

Description

The project focuses on building a machine learning model capable of classifying exoplanets and making the results accessible through an interactive web application.

The application is designed to run on the web for accessibility.
It uses real scientific data provided by NASA and Exoplanet Archives.
The machine learning model performs supervised classification of planetary candidates, confirmed planets, and false positives.
The web interface enables users to test new data points in real time, visualize outputs, and engage with the classification process.

General Specifications:

You may (but are not required to) consider the following:

Target audience: students, researchers, and space enthusiasts interested in exoplanet science.

Your tool could:
• Provide an interactive web interface to classify exoplanets in real time using NASA datasets (Kepler, K2, TESS).
• Show how exoplanets are detected and confirmed, focusing on light curves and transit methods.
• Visualize the difference between candidate planets, confirmed planets, and false positives.
• Explain the role of NASA’s Exoplanet Exploration Program and link to official NASA resources.
• Offer simple educational visualizations to make data science and astronomy accessible.
• Optionally include extra interactive features (e.g., data input by users, exploration of model accuracy, or quizzes to reinforce learning).

For datasets and resources, NASA’s Exoplanet Archive and mission data are integrated directly into the project.

Tecnologies

IDE's & languages:

Technologies Libs & tools
• TensorFlow / Scikit-learn
• Pandas / NumPy
• Matplotlib / Seaborn
• Streamlit (local web interface)
• Render (static lightwheigt web interface)
• GitHub Actions (deployment & CI/CD)

Model Overview

The model uses supervised machine learning to classify potential exoplanet candidates based on key astrophysical parameters. It was developed primarily with:
scikit+python

The algorithm processes tabular input data derived from NASA’s Exoplanet Archive, which includes parameters such as:

  • Orbital period
  • Transit duration
  • Radius ratio (Rp/Rs)
  • Impact parameter
  • Signal-to-noise ratio (SNR)
  • Stellar effective temperature

After preprocessing and feature normalization, the model is trained to predict whether a candidate is likely to be:

  • Confirmed Planet
  • Candidate
  • False Positive

The classifier outputs both the predicted label and a confidence score, representing the model’s estimated probability of the prediction being correct. This score is displayed in the interface as a “trust” or “confidence” percentage.

The trained model is serialized and stored as an artifact for later inference within the Streamlit web interface, allowing users to input new observation parameters and instantly receive classification results.

How to install:

Warning

To run the project locally you must have Python 3.9+ installed and set up a virtual environment. All other dependencies can be installed via pip install -r requirements.txt.

How to run:

1 - Clone or download the repository.

git clone https://github.com/LLuisPP/Hunting_for_Exoplanets_with_AI.git swai
cd swai-exoplanets

2 - Create a virtual environment and install dependencies:

python3 -m venv venv
source venv/bin/activate # Linux / Mac
venv\Scripts\activate # Windows
pip install -r requirements.txt

Fetch data from NASA resource site: Link

python3 src/fetch_data.py

Train the model:

python3 src/train_model.py

3 - Run the app locally (if you don’t want to use the hosted version):

streamlit run src/app.py

4 - Open your browser at localhost shown in terminal:

http://localhost:8501

5 - Or simply access the deployed version directly on Render:

SWAI Explore Exoplanets (Hosted on Render) -> SWAI_static_web

Or using QR:

SWAI_staticweb

Light static web model:

SWAI_web

Developing tools:

Python & package manager https://www.python.org/ | https://pip.pypa.io/
Virtual environments https://docs.python.org/3/library/venv.html | https://python-poetry.org/
Jupyter Notebook / Lab https://jupyter.org/
Data analysis https://pandas.pydata.org/ | https://numpy.org/
Machine Learning https://scikit-learn.org/ | https://www.tensorflow.org/ (opcional)
Visualization https://matplotlib.org/
Web app (frontend ligero + backend) https://streamlit.io/ | https://flask.palletsprojects.com/ (alternativa)
Model persistence (opcional) https://joblib.readthedocs.io/en/latest/ | https://docs.python.org/3/library/pickle.html
Linting & formatting https://docs.astral.sh/ruff/ | https://black.readthedocs.io/
Gimp for image edit https://www.gimp.org/
AI image animation https://magi.sand.ai/
Video to gif tool https://ezgif.com/video-to-gif

Webgraphy

Documentation & Open-Source Principles

  • https://k12cs.org/navigating-the-practices/
  • Principle of Citation/Code Use: Incorporate existing code, media, and libraries into original programs while citing their source.
  • Use of Digital Tools: Employ digital tools (e.g., computers) to analyze very large datasets for patterns and trends.

Scientific Data & Exoplanet Context

Hackathon & NASA Resources


Document-PDF

https://github.com/LLuisPP/Hunting_for_Exoplanets_with_AI/blob/main/SWAI.pdf

Vídeo


Participation Certificate

About

An AI-powered tool that classifies exoplanets using NASA datasets and provides an interactive web interface for real-time exploration and discovery.

Topics

Resources

License

Stars

Watchers

Forks

Languages