Skip to main content
AgriSpectra-Q

Technology Stack

A full-stack hyperspectral intelligence platform built on open-source geospatial science, a lean Python backend, and a modern Next.js frontend.

End-to-End Flow

1

Select an EnMAP scene

Choose from three pre-loaded hyperspectral scenes captured over agricultural zones in the UAE

2

Live analysis engine activates

Two-pass spectral anomaly detection runs across all 224 bands of the selected scene

3

Risk raster computed

Per-pixel RMS spectral deviation scores identify crop stress signatures across the full scene

4

Priority zones extracted

High-risk connected regions are ranked by severity, area, and spectral confidence

5

Georeferenced outputs generated

Zone boundaries, spectral evidence, and inspection budget are exported with full coordinate metadata

6

Interactive dashboard rendered

Zones, risk maps, spectral charts, and budget recommendations are displayed in real time

Dependencies by Layer

Frontend

Next.js 15React framework with server-side rendering
React 19UI component library
TypeScript 5.7End-to-end type safety
Tailwind CSSResponsive design system
RechartsRisk & budget visualisation charts
MapLibre GLInteractive georeferenced zone maps

Backend API

Python 3.11+Core runtime for analysis engine and API
Flask 3.0Lightweight REST API server

Processing Engine

RasterioGeoreferenced GeoTIFF reading with windowed streaming
NumPyVectorised spectral band arithmetic
SciPyConnected-component zone detection

Scientific Benchmark

scikit-learnRandom Forest, calibration, cross-validation
XGBoostGradient-boosted tree models on spectral features
pandasData manipulation and result tables
matplotlibScientific figures and benchmark charts

Data

EnMAP GeoTIFF224-band hyperspectral L2A scenes at 30 m/px resolution
GeoJSONGeoreferenced zone boundaries with coordinate metadata

Deployment

VercelFrontend — global edge network, automatic HTTPS
Ubuntu VPS + nginxBackend — dedicated server with SSL certificates
DockerContainerised engine for reproducible builds

Design Principles

No Label Leakage

The live engine uses only unsupervised spectral anomaly statistics. No disease labels, no test-set data, no ground truth.

Frozen Benchmark

The six-model scientific validation is completely separate from the live engine. Benchmark results are pre-computed and immutable.

Scene-Relative Thresholds

Priority thresholds are percentile-based within each scene. They are not absolute disease severity levels.

Reproducible Runs

Every run writes a manifest.json with the run ID, source path, CRS, and leakage-control statement.

Windowed Streaming

Full GeoTIFF scenes are processed block-by-block with constant memory footprint regardless of scene size.

Honest Uncertainty

The system explicitly reports limitations: wavelength metadata unavailable, proxy labels only, thresholds are relative.