About
## The problem it solves
 ## The problem
Space telescopes like NASA's **TESS** record the brightness of hundreds of thousands of stars. When a planet passes in front of its star, the star dims very slightly. Finding these tiny, repeating dips in noisy data is slow and technical. It needs specialist tools and knowledge, so students and curious people rarely get to see how a planet is actually detected.
## What NAKSHATRA-X does
NAKSHATRA-X is an **AI-assisted exoplanet transit detection platform** that takes a real TESS light curve and walks it through a transparent, 9-stage pipeline you can watch live:
- Data ingestion (real TESS light curves)
- Quality filtering
- Normalization
- Detrending
- BLS transit search
- Feature extraction
- Classification
- AI explanation
- Report generation
Anyone can enter a **TIC ID** and see the raw curve, the detrended curve, the phase-folded transit, and the detected period, depth, SNR and number of transits.
## Why it is useful
- **Learn by seeing:** every stage is shown, so people understand *how* a planet is found, not just the final answer.
- **Plain-language explanations:** Gemini explains the result in simple words using only the measured facts, so it does not invent anything.
- **Instant alerts:** a Telegram bot sends a message when a real target meets the candidate criteria.
- **Exportable report:** each run produces a PDF report.
- **Physical demo:** an Arduino with an LCD and buzzer shows live status and gives a 2-second beep on a real candidate.
## Honest scope
- The data is **real TESS data**; synthetic data is clearly labelled and never raises an alert.
- The classifier is **rule-based** (not a trained ML model).
- A "candidate" means the signal met our detection thresholds (SDE, SNR, number of transits). It is **not a confirmed exoplanet** and needs follow-up observation.
## Challenges we ran into
## 1. Huge memory use in the transit search (MemoryError)
When two TESS sectors observed years apart were combined, the time baseline became about **1100 days**. The Box Least Squares search then built an enormous period grid and crashed with a `MemoryError`.
**Fix:** we calculate the period grid size analytically from the baseline and the shortest transit duration, so the grid stays small and fast. As a safe fallback we also limit how many sectors are downloaded per target.
## 2. Real data vs demo data
The first versions fell back to **synthetic data** when the configuration was missing, which made results look real when they were not.
**Fix:** real TESS data is now the default, every synthetic run is clearly labelled, and synthetic data can **never** trigger a candidate alert, a Telegram message, or the hardware buzzer.
## 3. Race condition in the live pipeline status
The run was sometimes marked completed before the last stages finished, so the interface (and our tests) occasionally missed the final stage.
**Fix:** the final status is now set only at the very end, after the report is built.
## 4. Environment and configuration problems
Gemini and Telegram stayed "not configured" because the environment file was not loaded in some Python setups.
**Fix:** we replaced the dependency with a small built-in loader, so configuration works the same on every machine.
## 5. Serial port and Arduino timing
- The LCD stayed on "Waiting host" because opening the USB serial port can reset the board, and our first message was sent before it finished booting. **Fix:** a longer startup wait plus a heartbeat.
- A real candidate was shown as "No candidate" because the result flag was read from the wrong place in the API response. **Fix:** we checked the real API output and corrected it.
## 6. Keeping hardware out of the science
We wanted the LCD and buzzer demo **without touching the scientific code**. We built it as a separate, read-only watcher that polls
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











