Portfolio · github.com/Maanya8

From orbit to outcrop

Machine-learning projects about satellites, clouds, minerals, sunlight and video, told as one descent from orbit to the ground.

Scroll to begin
github.com/Maanya8/lite-speed ↗
github.com/Maanya8/cloud-segmentation ↗
github.com/Maanya8/minerals-from-hyperspectral ↗
github.com/Maanya8/anomaly-detection ↗
github.com/Maanya8/intelligent-video-chunking ↗
T+00 · standing by
01 · Ground telescope locks on

lite-speed

Satellite keypoint pose estimation
Predicted keypoint heatmaps glowing over a spacecraft in a SPEED test image, with numbered keypoints
All 11 predicted heatmaps over test image img000021 (test_results/img000021_overlay.png).
Interactive viewComing next: explore this model's real output here.

A shared image encoder feeds two heads: a Gaussian heatmap for each keypoint, and a visibility flag that says whether the point is in view or hidden behind the spacecraft itself.

Heatmaps and visibility labels are generated from the satellite’s 3D geometry and the camera intrinsics before training, so the model learns both where a point is and whether it should be visible at all.

Data
SPEED (Spacecraft PosE Estimation Dataset)
Model
MobileNetV2 backbone + FPN-style decoder
Heads
Heatmap regression + visibility logits
Input
240 × 384 px
github.com/Maanya8/lite-speed ↗
02 · The beam hits weather

cloud-segmentation

Per-pixel cloud masks on Landsat-8
No output image in the repository yet. Add one in src/data/projects.ts.
Interactive viewComing next: explore this model's real output here.

Raw digital numbers are converted to top-of-atmosphere reflectance using each scene’s metadata and sun elevation, so inputs are comparable across scenes.

A pretrained MobileNetV2 encoder is adapted from 3 to 4 input bands (red, green, blue, near-infrared), and an FPN/U-Net-style decoder produces one cloud logit per pixel. Training combines binary cross-entropy with Dice loss, with the backbone frozen for a warm-up period.

Data
38-Cloud: 38 scenes, ~8,400 training patches
Bands
Red, green, blue, near-infrared
Patch
384 × 384 px
Loss
BCE + Dice; reports IoU, Dice, F1
github.com/Maanya8/cloud-segmentation ↗
03 · The clouds part over Nevada

minerals-from-hyperspectral

Spectral unmixing of the AVIRIS Cuprite scene
Map of the Cuprite scene coloured by the dominant endmember at each pixel, with a legend of matched minerals
Dominant endmember per pixel, 12-endmember run (dominant_mineral_map_p12.png).
Grid of 12 abundance maps, one per endmember
FCLS abundance map for each endmember (abundance_maps_grid_p12.png).
Interactive viewComing next: explore this model's real output here.

Vertex Component Analysis (VCA) extracts the endmember spectra, Fully Constrained Least Squares (FCLS) estimates per-pixel abundances that are non-negative and sum to one, and each endmember is matched against the USGS spectral library in diagnostic SWIR and VNIR windows.

Removing one corrupted band cut reconstruction RMSE from 171.6 to 67.0. The endmember count was chosen by triangulating an SVD elbow, literature convention and an HFC virtual-dimensionality estimate.

Site
Cuprite, Nevada · 37.5° N, 117.2° W
Scene
250 × 190 px, ≈5 × 4 km at ~20 m/px
Fit
12 endmembers, 1.94% relative RMSE
Fix
Dropping one bad band cut RMSE 171.6 → 67.0
github.com/Maanya8/minerals-from-hyperspectral ↗
04 · Sunlight at a glancing angle

anomaly-detection

Brightness anomalies vs. solar equatorial phase angle
Magnitude versus SEPA scatter plot for one satellite, reference points in green, current points in yellow, flagged points in red near the glint peak
Satellite 17, era 3, kNN scoring: reference (green), current (yellow), flagged (red) (output/plots_knn/era3/17.png).
Interactive viewComing next: explore this model's real output here.

Glint near 0° SEPA is detected from the data: bins whose magnitude spread is much larger than the baseline spread are tagged and excluded from scoring.

Current points are scored against reference points with similar SEPA, once with k-nearest neighbours and once with a fixed-window rolling median, using a robust z-score. Satellites are then clustered by element set per era to spot group-membership shifts.

Steps
Glint tag → kNN → rolling median → era clustering
Score
z = (mag − median) / √((1.4826·MAD)² + σ²)
Run
94 satellite files across 3 eras
github.com/Maanya8/anomaly-detection ↗
05 · End of transmission

intelligent-video-chunking

Cutting long videos into searchable pieces
#12 shots#21 shot#31 shot#51 shot#61 shot#81 shot#91 shot#102 shots0:002:084:166:248:32
video startcamera cutsplit (too long)Video 3EQzRz-V7uE (Life Record), 10 chunks (final_metrics/chunks.csv).
Interactive viewComing next: explore this model's real output here.

Camera cuts come from TransNet V2. Neighbouring shots that look alike (CLIP ViT-B-32, cosine ≥ 0.75) are merged, chunks that run too long are split at a subtitle gap, then an audio silence, then an even point, and boundaries are snapped to speech pauses within ±1.5 s.

The pipeline only compares neighbouring shots, so its cost grows linearly with the size of the corpus.

Cuts
TransNet V2 (threshold 0.5, 0.6 for handheld)
Merge
CLIP ViT-B-32, cosine ≥ 0.75
Split
Subtitle gap → audio silence → even point
Eval
Video-MME sample: 90 videos, 25.9 h, 6 domains
github.com/Maanya8/intelligent-video-chunking ↗