Travel Mate

An AI-powered safety application for tourists, built for India's Growing Tourist Culture. Features proactive anomaly detection, blockchain-verified digital IDs, and a real-time dashboard for authorities.

Description

Travel-Mate: Intelligent Tourist Safety System (J&K Prototype)

Travel-Mate is a specialized safety platform designed for the high-risk, high-altitude terrain of Jammu & Kashmir. It operates on a Hybrid Architecture (Online + Offline) to ensure tourist safety even in "Red Zones" with zero connectivity.

Key Features & Implementation

1. The Silent Guardian (Offline Edge AI)

  • What it is: Detects if a tourist is injured or unconscious in a remote area without internet.

  • How it works:

    • Sensors: App listens to Accelerometer & Gyroscope data via sensors_plus.

    • Model: Runs movement_classifier.tflite locally to classify state (Walking, Stopped, Fall Detected).

    • Trigger: If Location == Red_Zone AND Inactivity > 45 mins, it triggers a local alarm. No reaction = Auto-SOS via SMS.

2. Dynamic Geofencing (The "Static" Shield)

  • What it is: Instant warnings when entering restricted border areas (LoC Buffer) or flood zones.

  • How it works:

    • PostGIS: We store "Red Zones" (e.g., Gurez) as Polygons in the database.

    • Query: ST_Contains(Red_Zone_Polygon, User_GPS) runs efficiently on the backend.

    • Delivery: Triggers a High-Priority Firebase Notification (Overrides Silent Mode).

3. Smart Route Predictor (Risk AI)

  • What it is: Recommends the Safest route, not just the fastest, based on live hazards.

  • How it works:

    • Scikit-learn Model: Calculates a Risk_Score (0-100) for a route.

    • Inputs: Weather_Forecast (Rain > 50mm) + Terrain_Data (Steep Slope) + History (Previous Landslides).

    • Output: If Score > 70, the API returns a "Warning" payload with the route.

4. Smart SOS Routing

  • What it is: Calls the correct local police station, not a generic control room.

  • How it works:

    • Uses the J&K Intelligence Database.

    • Logic: User in Baramulla presses SOS -> App queries local DB -> Calls Baramulla PCR (01952-234410) directly.

5. J&K Resiliency Mesh (Offline B2B Layer)

  • What it is: A decentralized "Store-and-Forward" network that functions when cellular towers are down or destroyed.

  • How it works:

    • Protocol: Uses Bluetooth Low Energy (BLE) & Wi-Fi Direct (via nearby_connections) to create a P2P mesh between phones.

    • The Hop: If a tourist in a "Red Zone" (No Signal) triggers SOS, the packet hops to nearby devices (Tourist B → Shepherd C → Army Truck).

    • Gateway Nodes: The packet travels until it hits a B2B Node (Police Tablet/Checkpost) which acts as a "Super Sink" to upload data to the cloud.

    • Security: Packets are AES-256 encrypted; intermediate phones relay the message without seeing the content.

Issues & Pull Requests Thread
No issues or pull requests added.