How sumit031217/geosentinel-ai works
GeoSentinel AI is a geospatial monitoring dashboard for comparing satellite imagery over a user-drawn area, reporting detected surface change, and presenting map overlays, analytics, chat, and PDF exports. The principal flow runs from AOI drawing through the map client and FastAPI job API to a Celery worker, which fetches imagery, computes and vectorizes change, then returns results to the dashboard. The repository also contains a separate Siamese U-Net model and inference task scaffolding; the sampled active pipeline uses spectral differencing instead. Backend routes and services beyond sampled relationships are included as capabilities, but their wiring is not inferred.
Main entry points: tasks.py Celery pipeline · MapViewer.tsx Map and job client · main.py Analysis API · DashboardLayout.tsx Monitor and export
Components 25
Dashboard
- Dashboard shell
Desktop/geosentinel-ai/frontend/src/App.tsx - Monitor and export
Desktop/geosentinel-ai/frontend/src/pages/DashboardLayout.tsx - Map and job client
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - AOI drawing
Desktop/geosentinel-ai/frontend/src/components/AOIDrawer.tsx - Chat panel
Desktop/geosentinel-ai/frontend/src/components/AIChatPanel.tsx
API and jobs
- Analysis API
Desktop/geosentinel-ai/backend/main.py - Celery pipeline
Desktop/geosentinel-ai/backend/tasks.py - Celery configuration
Desktop/geosentinel-ai/backend/core/celery_app.py - Inference task scaffold
Desktop/geosentinel-ai/backend/tasks/inference_tasks.py - Region endpoints
Desktop/geosentinel-ai/backend/api/regions.py - Job endpoints
Desktop/geosentinel-ai/backend/api/jobs.py
Satellite analysis
- Satellite imagery fetch
Desktop/geosentinel-ai/backend/services/satellite_fetcher.py - Spectral analysis
Desktop/geosentinel-ai/backend/services/spectral_analysis.py - Change vectorization
Desktop/geosentinel-ai/backend/services/vectorizer.py - Report generation
Desktop/geosentinel-ai/backend/services/report_generator.py - AI reporting
Desktop/geosentinel-ai/backend/services/ai_reporter.py
Geospatial assistant
- Chat endpoint
Desktop/geosentinel-ai/backend/api/ai_chat.py - Geospatial retrieval
Desktop/geosentinel-ai/backend/services/geospatial_rag.py - Ollama service
ML model
- Siamese U-Net
Desktop/geosentinel-ai/ml_engine/models/siamese_unet.py - Inference tiler
Desktop/geosentinel-ai/ml_engine/inference/tiler.py - Model training
Desktop/geosentinel-ai/ml_engine/training/train_siamese.py
Other components
- Analyst
- Satellite imagery provider
- Redis broker/results
Connections 30
- Analyst → AOI drawing: draws AOI
- AOI drawing → Map and job client: emits geometry
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - Map and job client → Analysis API: starts job
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - Analysis API → Celery pipeline: dispatches pipeline
Desktop/geosentinel-ai/backend/main.py - Map and job client → Analysis API: polls status
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - Analysis API → Redis broker/results: reads job result
Desktop/geosentinel-ai/backend/main.py - Celery pipeline → Satellite imagery fetch: fetches scenes
Desktop/geosentinel-ai/backend/tasks.py - Satellite imagery fetch → Satellite imagery provider: queries and reads
- Celery pipeline → Map and job client: returns analysis
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - Map and job client → Monitor and export: reports completion
Desktop/geosentinel-ai/frontend/src/pages/DashboardLayout.tsx - Dashboard shell → Monitor and export: renders
Desktop/geosentinel-ai/frontend/src/App.tsx - Monitor and export → Map and job client: renders
Desktop/geosentinel-ai/frontend/src/pages/DashboardLayout.tsx - Monitor and export → Chat panel: renders
Desktop/geosentinel-ai/frontend/src/pages/DashboardLayout.tsx - Monitor and export → Analyst: exports PDF
Desktop/geosentinel-ai/frontend/src/pages/DashboardLayout.tsx - Map and job client → AOI drawing: renders
Desktop/geosentinel-ai/frontend/src/components/MapViewer.tsx - Analysis API → Job endpoints: job routes
- Analysis API → Region endpoints: region routes
- Chat endpoint → Geospatial retrieval: queries
Desktop/geosentinel-ai/backend/api/ai_chat.py - Geospatial retrieval → Ollama service: sends grounded prompt
Desktop/geosentinel-ai/backend/services/geospatial_rag.py - Celery pipeline → Spectral analysis: computes change
- Celery pipeline → Change vectorization: vectorizes results
- Celery pipeline → Report generation: generates report
- Celery pipeline → AI reporting: produces brief
- Celery configuration → Inference task scaffold: registers task
Desktop/geosentinel-ai/backend/core/celery_app.py - Inference task scaffold → Satellite imagery fetch: fetches scene pair
Desktop/geosentinel-ai/backend/tasks/inference_tasks.py - Inference task scaffold → Change vectorization: writes mask
Desktop/geosentinel-ai/backend/tasks/inference_tasks.py - Inference task scaffold → Siamese U-Net: invokes model
- Inference tiler → Siamese U-Net: uses model
Desktop/geosentinel-ai/ml_engine/inference/tiler.py - Model training → Siamese U-Net: trains model
Desktop/geosentinel-ai/ml_engine/training/train_siamese.py - Celery pipeline → Redis broker/results: uses broker