128²
Every image is decoded to grayscale, resized to 128 × 128, then routed through a train / validation / test split.
A convolutional neural network trained to identify geological features in NASA's HiRISE orbital imagery.
Upload a terrain image or pick a sample, choose a model, and run it.
Upload an image or pick a sample to get started.
A visual summary of the dataset contract and training choices used by the Rust pipeline.
Every image is decoded to grayscale, resized to 128 × 128, then routed through a train / validation / test split.
The pipeline reports per-class counts and uses class-weighted cross-entropy so minority terrain types are not hidden by "other."
These plots show the metrics your teacher will expect in a CNN analysis: convergence, generalization, and class-level errors.
A healthy run should show both curves falling. A widening gap can indicate overfitting.
Macro-F1 is the selection metric because the "other" class can otherwise dominate accuracy.
Bright diagonal cells represent correct predictions; off-diagonal cells show which terrains the model confuses.
Per-class F1 makes it clear which geological features need more data or better augmentation.
Four convolutional stages progressively compress the orbital image into a compact representation, then a linear head chooses between eight classes.
Both models side by side make the trade-off visible: accuracy alone is not enough for this imbalanced terrain dataset.
The same VGG-style CNN trained with AdamW, augmentation and class weights. The optimized model was retrained at 96px for 20 epochs with stronger augmentation, label smoothing and averaged weights, and its prediction is averaged over all 8 rotations and flips. That lifted validation macro-F1 from 60.2% to 65.1%. These are held-out test results.
Macro-F1 is the balanced metric across all eight terrain classes; accuracy is inflated by the dominant other class.
HiRISE captures Mars in extraordinary detail. This model turns those pixels into a first-pass geological read, making it easier to scan vast archives and find patterns worth a closer look.
Explore the HiRISE archive