Oculon: Delhi Hotspots ML Explorer
Spatiotemporal crime & safety forecasting • Completely user-controlled queries across all 4 datasets • Hugging Face Space: AbhyudayMishr/Oculon
four_dataset_hotspot_explorer.html
Flexible User-Controlled Query Engine
Select what kind of data you need and how much data to return (any count or the complete dataset). Runs automatic independent related analysis across multi-year history.
Click 'Execute User-Controlled Query' to view records.
Col 1 | Col 2 | Col 3 | Col 4 | Col 5 | Col 6 | Col 7 |
|---|---|---|---|---|---|---|
Dynamic On-The-Fly Model Execution
Run the spatial multigram model dynamically for any month using the complete historical event stream. Evaluate any custom count of units or all 210 candidate police stations.
Choose parameters and click 'Run Live Model Forecast'.
Rank | Station Name | District | Probability Score | Coordinates | Spatial Basis |
|---|---|---|---|---|---|
Rank | Station Name | District | Probability Score | Coordinates | Spatial Basis |
|---|
Dual Evaluation & Oracle Perplexity Framework
The Delhi Hotspots ML system is evaluated on two rigorous, independent benchmarks:
- Preserved Baseline (80/20 Random Holdout): Historical holdout evaluation.
- Strict Forward-Time (Expanding-Window Rolling Origin): Reserves the latest 20% of complete calendar months, strictly forecasting each test month using only past events.
- Theoretical Oracle Floor: Evaluated at 125.82 perplexity across 27 holdout months.
1. Preserved 80/20 Holdout Baseline
Dataset | 80/20 Split (Train/Test) | Holdout F1 | Mean Miss Distance | Spatial Basis |
|---|---|---|---|---|
Stolen vehicles (Metro) | 83,388 / 20,847 | 0.395 | 3.21 km | Police-station reporting proxy (210 units) |
Dataset | 80/20 Split (Train/Test) | Holdout F1 | Mean Miss Distance | Spatial Basis |
|---|---|---|---|---|
Missing persons | 83,388 / 20,847 | 0.395 | 3.21 km | Police-station reporting proxy (210 units) |
Unidentified bodies | 7,914 / 1,978 | 0.446 | 2.69 km | Police-station reference proxy (210 units) |
Stolen vehicles (Metro) | 21,082 / 5,270 | 0.450 | 4.82 km | Nearest metro station (259 units) |
Stolen vehicles (PIN) | 21,082 / 5,270 | 0.372 | 6.24 km | Postal PIN centroid (98 units) |
Missing mobiles | 1,282 / 320 | N/A | N/A | Virtual eTheft station (non-spatial) |
2. Forward-Time Rolling-Origin Evaluation (27 Complete Test Months)
Dataset Representation | Test Window | Accuracy | F1 (Top 10%) | Avg Precision | Log Loss | Perplexity | Wasserstein W1 |
|---|---|---|---|---|---|---|---|
Missing persons (Pure Temporal) | 27 (2024-06 to 2026-08) | 0.9210 | 0.5234 | 0.5372 | 4.9907 | 146.70 | 1.23 km |
Dataset Representation | Test Window | Accuracy | F1 (Top 10%) | Avg Precision | Log Loss | Perplexity | Wasserstein W1 |
|---|---|---|---|---|---|---|---|
Missing persons (Baseline) | 27 (2024-06 to 2026-08) | 0.9210 | 0.5234 | 0.5372 | 4.9907 | 146.70 | 1.23 km |
Missing persons (Pure Temporal) | 27 (2024-06 to 2026-08) | 0.9369 | 0.6191 | 0.6684 | 4.9432 | 140.21 | 0.88 km |
Unidentified bodies | 11 (2025-10 to 2026-08) | 0.9628 | 0.5169 | 0.5493 | 4.7368 | 117.02 | 2.10 km |
Stolen vehicles (PIN) | 17 (2025-04 to 2026-08) | 0.9436 | 0.5727 | 0.6354 | 4.0215 | 55.96 | 2.00 km |
Stolen vehicles (Metro) | 17 (2025-04 to 2026-08) | 0.9777 | 0.5149 | 0.6436 | 3.9023 | 49.15 | 1.69 km |
Connect AI Agents to Delhi Hotspots ML via MCP
This Hugging Face Space functions as a complete remote MCP Server that can run independent related queries and live model inference on the complete datasets.
1. Claude Desktop Configuration
Supports both Streamable HTTP (recommended, modern MCP specification) and legacy SSE:
Option A: Streamable HTTP via mcp-remote (Recommended)
{
"mcpServers": {
"oculon_delhi_hotspots": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://abhyudaymishr-oculon.hf.space/mcp",
"--transport",
"http-only"
]
}
}
}
Option B: Claude Remote Connector (Streamable HTTP)
Under Claude Desktop Connectors -> Advanced -> Transport: Select Streamable HTTP, URL:
https://abhyudaymishr-oculon.hf.space/mcp
Option C: Legacy SSE Transport
https://abhyudaymishr-oculon.hf.space/sse
2. Available Universal MCP Tools
fetch_dataset_records(dataset, data_type, month, limit, offset, filter_district, filter_station): Completely user-controlled fetching (any limit or 'all') for any data type.query_hotspots(dataset, month, query_text, top_k): Query complete datasets with user-chosen top_k.predict_hotspots(dataset, target_month, top_k): Run live model prediction on-the-fly for any month.query_dataset_analytics(dataset, query_type, entity_name, limit): Historical longitudinal aggregations.get_hotspot_map(map_type): Direct URLs to interactive Leaflet hotspot maps.get_model_metrics(dataset, evaluation_type): Dual-evaluation benchmarks and oracle perplexity floor.
3. Programmatic REST API
GET /api/hotspots?dataset=missing_persons&top_k=50GET /api/fetch_records?dataset=stolen_vehicles&data_type=all_units&limit=allPOST /api/query_hotspots(body:{"dataset": "unidentified_bodies", "top_k": "all"})POST /api/fetch_records(body:{"dataset": "missing_persons", "data_type": "monthly_timeline", "limit": "all"})POST /api/predict_hotspots(body:{"dataset": "missing_persons", "target_month": "2026-12", "top_k": 210})