How jamesjoshua-k/nssc2026-dataanalytics-orbitiq works
This repository is a research pipeline for unsupervised anomaly detection in Mars HiRISE crops. Its main workflow preprocesses imagery, learns scene and residual latents with convolutional autoencoders, scores those latents with an Isolation Forest, applies a robust threshold, and interprets flagged crops with reconstruction-error heatmaps and metadata. It also includes a planted-fakes benchmark and a post-submission v7 experimentation branch. The README documents the overall flow; detailed internal wiring is shown only for sampled files, so uncertain links are omitted.
Main entry points: flagged_anomalies.csv Flagged crops · nssc_core.py Autoencoder training · run_version.py Version runner · r2lib.py V7 experiment library
Components 15
Imagery preparation
- Mask and preprocess
nssc_core.py
Anomaly detection
- Autoencoder training
nssc_core.py - Version runner
run_version.py - Latent extraction
nssc_core.py - Isolation Forest
nssc_core.py - Robust threshold
nssc_core.py
Evaluation and interpretation
- Flagged crops
outputs/flagged_anomalies.csv - Error heatmaps
NSSC_DA_HiRISE.ipynb - Crop metadata
outputs/novelty_scores_with_metadata.csv - Planted-fakes benchmark
benchmark.py
V7 experiments
- V7 search harness
post_submission_improvements/iteration_v7/code/p3.py - V7 experiment library
post_submission_improvements/iteration_v7/code/r2lib.py - Latent evaluation
post_submission_improvements/iteration_v7/code/evaluate.py
Other components
- Analyst
- HiRISE crops
Connections 13
- HiRISE crops → Mask and preprocess: provides images
README.md - Mask and preprocess → Autoencoder training: prepares inputs
README.md - Analyst → Version runner: runs version
README.md - Version runner → Autoencoder training: trains model
run_version.py - Autoencoder training → Latent extraction: encodes crops
README.md - Latent extraction → Isolation Forest: scores latents
README.md - Isolation Forest → Robust threshold: produces scores
README.md - Robust threshold → Flagged crops: flags crops
README.md - Flagged crops → Error heatmaps: interprets errors
README.md - Flagged crops → Crop metadata: joins metadata
README.md - HiRISE crops → Planted-fakes benchmark: compares versions
README.md - V7 search harness → V7 experiment library: uses experiments
post_submission_improvements/iteration_v7/code/p3.py - Latent evaluation → V7 experiment library: scores latents
post_submission_improvements/iteration_v7/code/evaluate.py