Balavishvas/Touriest-Safety-Monitoring-And-Incident-Response-System

GitHub: Balavishvas/Touriest-Safety-Monitoring-And-Incident-Response-System

基于区块链和AI的游客安全监控系统,实现数字身份管理、异常行为检测和紧急事件响应。

Stars: 0 | Forks: 0

# 🌍 TourChain ### 智能游客安全与事件响应系统 ## 📝 概述 TourChain 是一个**智能游客安全监控与事件响应系统**,旨在利用 **AI、Blockchain、IoT 和 Geo-Fencing 技术**增强游客的安全性。 它使当局能够实时监控、响应和保护游客,同时确保**隐私、透明度和安全的数字身份管理**。 通过集成**数字游客 ID、基于 AI 的异常检测、Geo-Fencing 警报和紧急响应系统**,TourChain 旨在**彻底变革**高风险和偏远地区的**旅行安全**。 ## 🔥 功能特性 1. 🆔 **数字游客 ID**:基于 Blockchain 的防篡改数字 ID,包含 KYC 和行程详情。 2. 📍 **Geo-Fencing 警报**:当游客进入不安全或受限区域时实时通知。 3. 🆘 **紧急按钮 & SOS**:即时与警方、家属和紧急联系人共享实时位置。 4. 🤖 **AI 驱动的安全监控**:检测异常出行模式、突然失联或长时间静止。 5. 📊 **警方与旅游仪表盘**:热力图、游客聚集区、ID 验证和自动化 e-FIR 生成。 6. ⌚ **IoT 集成**:可选的智能手环,用于在高风险区域持续发送位置/健康信号。 7. 🌐 **多语言支持**:App 支持 5 种以上的印度语言 + 英语,并提供语音/文本紧急访问。 8. 🔒 **数据隐私与安全**:端到端加密及由 Blockchain 支持的安全记录。 ## 🛠 技术栈 ### 前端 - 🌐 HTML, Tailwind CSS, Vanilla JavaScript, Leaflet Maps, Google Maps API ### 后端 - ⚙ Node.js, Express.js - 🗄 MongoDB, Mongoose - 🔑 JSON Web Tokens (JWT) - 📡 WebSockets (Socket.io) - ⛓ Blockchain: Solidity, Hardhat, Ethers.js, Polygon Amoy Testnet ### AI/ML 引擎 - 🚀 FastAPI (Python) - 📊 Scikit-learn, Numpy, Pandas - 🤖 TensorFlow, LSTM Autoencoder (用于异常检测) ## 🚀 安装与运行 为了最快启动,请在终端中使用提供的脚本: ``` # 运行启动脚本 .\start_all.ps1 ``` 或者手动运行所有内容: ``` # 1. 启动 Main Backend cd backend npm install npm run dev # 2. 启动 Police/Admin Backend cd police_backend npm install npm run dev # 3. 启动 AI Engine cd backend/ai_engines pip install -r requirements.txt python main.py # 4. 启动 Tourist App cd frontend/tourist/www python -m http.server 8001 # 5. 启动 Admin Dashboard cd frontend/admin python -m http.server 8002 ``` ## 🎯 使用指南 1. 🆔 **游客注册** – 生成由 Blockchain 保护的数字游客 ID。 2. 🗺 **行程创建** – 输入行程和检查点。 3. 📍 **Geo-Fencing 警报** – 在进入不安全区域时收到通知。 4. 🆘 **紧急 SOS** – 紧急按钮触发向警方和家属的警报。 5. 📊 **当局仪表盘** – 监控聚集区、查看实时追踪并实时响应事件。 ## 🔐 安全措施 1. ⛓ 基于 Blockchain 的 ID 不可变性与防篡改记录。 2. 🔑 用于 API 的基于 Token 的认证。 3. 🔒 警方和管理员验证的访问控制。 4. 🛡 用于主动安全监控的 AI 异常检测。 ## 📂 项目结构与路线图 以下是项目架构的目录路线图,显示了所有结构组件、模型和脚本的存储位置: ``` TourChain/ │ ├── backend/ # Main backend handling tourists and AI proxies │ ├── ai_engines/ # Python-based ML engine │ │ ├── anomaly_detector.py # Autoencoder detection logic │ │ ├── main.py # FastAPI server (Port 5001) │ │ ├── scaler.gz # Pre-trained ML scaler │ │ ├── threshold.json # Anomaly threshold data │ │ └── tourist_anomaly_model.h5 # Main TensorFlow model │ │ │ ├── config/ # MongoDB connection variables │ ├── contracts/ # Blockchain smart contracts (Solidity) │ ├── controllers/ # API endpoint logic (Auth, Tourist, Profile, etc.) │ ├── models/ # MongoDB schemas (User, Profile, Journey, Panic) │ ├── routes/ # Express Router definitions │ ├── scripts/ # Hardhat deployment scripts │ ├── services/ # Business logic (QR codes, Blockchain interaction) │ └── index.js # Application entry point (Port 5000) │ ├── frontend/ # Web-based User Interfaces │ ├── admin/ # Police & Supervisor Dashboard │ │ ├── config.js # Server URLs mapping │ │ └── index.html # Single-page dashboard (Starts on Port 8002) │ │ │ └── tourist/ # Tourist Application │ └── www/ │ ├── config.js # API configs │ └── index.html # Main App Interface (Starts on Port 8001) │ ├── police_backend/ # Dedicated backend for Police & Admins │ ├── config/ # Database Setup │ ├── controllers/ # Dashboard and E-FIR handling logic │ ├── middlewares/ # Admin Authentication guards │ ├── models/ # Police-specific extensions (Officers, Reports) │ ├── routes/ # Secure Admin/Police API routes │ ├── services/ # Socket.io real-time alerts service │ └── index.js # Server entry point (Port 5002) │ ├── start_all.ps1 # Master powershell script to launch all 5 servers ├── ANDROID_BUILD.md # Instructions for compiling Mobile APKs ├── RUN_INSTRUCTIONS.md # App login logic and run data ├── PROJECT_STATUS.md # Live status details of running services └── README.md # This documentation file ```
标签:AI行为分析, AV绕过, Express.js, FastAPI, GNU通用公共许可证, IPv6支持, KYC, Libemu, LSTM, MITM代理, MongoDB, Node.js, Polygon, RESTful API, Socket.io, Solidity, SOS求救, TensorFlow, WebSockets, 仪表盘, 位置服务, 区块链身份认证, 地理围栏, 子域名变形, 应急响应系统, 异常检测, 提示词优化, 政府科技, 数字身份, 旅游安全, 旅游科技, 智慧旅游, 智慧警务, 智能合约, 物联网安全, 端到端加密, 网络安全, 逆向工具, 配置审计, 隐私保护