Autonomous On-Device Heritage Vision Bhaktapur Durbar Square

Offline-First Real-Time
Heritage Recognition.

Identify historical monuments in Bhaktapur instantly using on-device edge AI. No internet required.

91.64%
Accuracy
1.80MB
TFLite Footprint
<100ms
Edge Latency
Zero Cloud Dependency
Knowledge-Distilled CNN
Bhaktapur Durbar Square UNESCO Zone
AR Heritage Real-Time Camera Scanner
TFLITE ACTIVE OPPO RELEASE • 98ms
Identified Monument 98.4% CONF
NYATAPOLA TEMPLE
Built 1702 CE • King Bhupatindra Malla
CORE BENCHMARKS:
TFLite Runtime: 1.80 MB FlatBuffer
Validation Accuracy: 91.64% (n=718)
Mean Inference: ~101 ms on Device
Architecture: EfficientNet → 4-Block Student CNN
Pipeline Backend: Anthropic Claude 3.5

Features & visual proof

Enterprise Vision.
Zero Connectivity Required.

Designed specifically for cultural heritage preservation in brick-and-timber UNESCO heritage corridors where cellular reception is congested or absent.

Live camera viewfinder with the gold reticle HUD Nyatapola detail screen with the 1702 CE narrative Architectural facts and photo gallery
Live Viewfinder • Gold Reticle HUD Nyatapola Detail Screen • 1702 CE Narrative Architectural Facts & Photo Gallery
Direct unedited production screenshots extracted from the AR Heritage final release build (Appendix A).

Real-Time Camera Scanning

Background Isolate

Real-time camera viewfinder calibrated with custom heritage corner brackets and animated gold shutter ring. Image decoding, bilinear downscaling to 160×160, and float32 normalization execute in an independent Dart isolate (compute), sustaining a locked 60 FPS UI.

• 0.80 Confidence Threshold • Animated Slide-up Match Panel

Offline Heritage Catalog

100% Bundled JSON

Deep historical narratives, builder timelines (King Bhupatindra Malla, 1702 CE), architectural blueprints (Panchadewal Newari Pagoda), and 2015 Gorkha earthquake structural resilience records. Bundled directly into the app assets with instant local fallback caching.

• 10-Photo High-Res Gallery • Pinch-to-Zoom InteractiveViewer

Local Bookmarking & Recents

Privacy First

Persistent local bookmarks and an LRU recently-explored monument queue capped at 10 entries via SharedPreferences. Zero user tracking, zero remote telemetry, and zero battery drain while exploring the Durbar Square alleyways.

• Instant Toggle State Feedback • Persistent Cache Sync

Empirical benchmarks & model topology

Edge-AI Performance &
Knowledge Distillation.

Compressing architectural feature extraction from heavy server vision into a 1.80 MB mobile model without sacrificing recognition confidence.

Model Classification Accuracy
91.64%

Validation set accuracy (n = 718) achieved by our distilled student CNN. Operates within 2.37% of the heavy EfficientNetB0 teacher (94.01%), beating the 5% project acceptance threshold.

Golden Gate F1: 0.9572 Nyatapola F1: 0.9011
Quantized Mobile Footprint
1.80MB

Total binary size of ar_heritage_student_v4.tflite. Converted with 100% output parity across validation checkpoints, with zero external server dependencies or API runtime requirements.

Total Params: 471,843 Input Size: 160×160×3
On-Device Inference Latency
<100ms

Sub-100ms class inference budget. Empirically profiled on physical release Android hardware (OPPO CPH2413): pure model inference averages ≈101 ms (range 95–111 ms) following warm-up.

Warm-up runs: 2 runs Sensor FPS: 60 FPS locked

Teacher vs. Student Knowledge Distillation Topology

Hinton et al. Soft-Probability Transfer with Kullback-Leibler (KL) Divergence Loss

Acceptance Margin < 5.0% (Achieved: 2.37%)
Teacher network versus student network: accuracy, size, input shape, memory and loss function
Metric / Dimension Teacher Network (EfficientNetB0) Student Network (AR Heritage v4) Edge Efficiency Delta
Validation Accuracy 94.01% 91.64% -2.37% (Accepted)
Total Parameter Count ~4,050,000 params 471,843 params 8.6× Parameter Reduction
Model File Size 16.2 MB 1.80 MB (.tflite) 9.0× Storage Savings
Input Tensor Shape [1, 224, 224, 3] float32 [1, 160, 160, 3] float32 49% Fewer Input Pixels
On-Device RAM Budget Prohibitive for background thread <14 MB Peak Allocated Zero UI Stutter
Loss Function Categorical Cross-Entropy KL Divergence Loss (T=3.0) Soft Probabilities Transfer
Figure 4.1 from Final Report

Student Distillation v4 Training Trajectory

64 Epochs
Student Distillation v4 Training Curves

Validation curves demonstrate monotonic distillation convergence: loss drops from 7.15 to 1.09, while AUC surpasses 0.98. The 4-block CNN learns fine Newari architectural cues directly from the teacher's probability distribution.

Figure 4.2 from Final Report

Student v4 Confusion Matrix (3-Class)

n = 718 Validation
Student Model Confusion Matrix

Evaluation shows extraordinary discriminative power: Golden Gate achieved 246/252 correct predictions (F1 = 0.9572), while Nyatapola Temple scored 196/220 (F1 = 0.9011).

Figure 3.7 & 3.9 System Topology

On-Device Decoupled Layer Architecture

Dart Isolates • TFLite C++ Runtime • Zero Server Round-Trip
AR Heritage Component Architecture

Claude-assisted data pipeline

Generative AI Pipeline:
Structuring Centuries of History.

How we leverage Claude (Anthropic's frontier AI) on the backend to process, structure, and sanitize dense, unstructured historical texts into the highly-optimized offline JSON catalogs that the mobile application relies on.

01

Unstructured Ingestion

Ingestion of dense archaeological monographs, Department of Archaeology bulletins, and Malla-era Sanskrit/Nepal Bhasa epigraphic field logs.

02

Claude Deep Synthesis

Anthropic Claude extracts factual chronologies, architectural terminology (e.g. Panchadewal), builder lineages, and seismic damage reports from source texts into structured fields.

03

Schema Sanitization

Claude parses and validates output against strict Pydantic/Dart data contracts: key highlights, localized Nepali typography, and verified hex color palettes.

04

Offline JSON Bundling

Compiled into ultra-lightweight monuments.json bundled inside the Flutter asset cache, ready for millisecond lookup without cellular connection.

pipeline/claude_heritage_sanitizer.py → assets/data/monuments.json
// Sanitized by Anthropic Claude • Bundled in AR Heritage production build
[
  {
    "id": "nyatapola_temple",
    "name": "Nyatapola Temple",
    "nepali_name": "न्यातापोला मन्दिर",
    "architecture_style": "Newari Pagoda (Panchadewal)",
    "built_year": "1702 CE",
    "built_by": "King Bhupatindra Malla",
    "height_label": "30.5 m",
    "full_history": "Built in 1702 by King Bhupatindra Malla in just seven months, Nyatapola is dedicated to the goddess Siddhi Lakshmi. Each of its five terraced plinths is guarded by a pair of figures — wrestlers, elephants, lions, griffins, and goddesses — each pair believed to be ten times more powerful than the one below. The temple survived the 2015 Gorkha earthquake with only minor damage, a testament to its masterful Newari earthquake-resistant construction.",
    "earthquake_note": "Sustained only superficial plaster cracks in the 2015 earthquake. Restoration completed by 2017.",
    "highlights": [
      "30 m tall – tallest pagoda in Nepal",
      "5 guardian pairs on ascending terraces",
      "Dedicated to Tantric goddess Siddhi Lakshmi",
      "Built in under 7 months",
      "UNESCO World Heritage Site component"
    ]
  }
]
Schema Status: Validated by Pydantic • 0 Parse Exceptions Bundled directly in Flutter Assets

Field verification in Nepal

Field-Tested in Real World Conditions

Evaluated in high-glare noon sunlight, monsoon overcast conditions, and crowded festival days (Bisket Jatra) at Taumadhi Square.

Field Photo Gallery

Full-Resolution Photo Gallery

Equipped with 10 high-resolution historical perspectives and zoomable archival photos from 1894 to present day.

Taumadhi Square Detail

Interactive Pinch-to-Zoom

Inspect intricate wood carvings, multi-tiered strut reliefs, and guardian plinth statues with zero pixelation lag.

The Heritage of Nepal Home Screen

Editorial Exploration Feed

Curated editorial typography celebrating Nepal’s architecture with instant jump-points to recently discovered landmarks.

AR Heritage Pagoda Icon

Ready to Deploy Edge Vision for
Cultural Preservation?

Experience our offline-first Flutter application now, or join our enterprise waitlist for expanded landmark models across Kathmandu Valley.

Requires Android 8.0 (API Level 26) or newer • Camera hardware permission required for real-time edge scanning.