Answers are grounded in this paper and cite their sources.
Personal safety applications often focus on sending an emergency alert, but an effective system must process location information, respond reliably under concurrent requests, and provide meaningful contextual awareness. This paper presents KanyaRakshak, a distributed personal safety system that combines real-time location telemetry, geospatial analysis, machine learning, and a conversational large language model. The system is implemented as a browser-based frontend, a FastAPI backend, managed Upstash Redis, and external LLM inference services (openai/gpt-oss-20b via Groq). To decouple telemetry ingestion from background processing, KanyaRakshak employs a Redis Streams pipeline. Geospatial risk modeling is handled via a hybrid approach using DBSCAN clustering to identify spatial risk zones and a Random Forest model to classify locations into risk levels based on spatial and temporal features. The resulting risk context is integrated into an interactive conversational safety assistant. The application was empirically evaluated using direct latency measurements, load testing with Locust, and supervised model evaluation: Model Evaluation & Data Leakage: An initial 100% accuracy result was identified as data leakage because the label-generation rule was available as an input feature. After introducing label noise and spatial variation, the held-out accuracy adjusted to a realistic 82% on the synthetic dataset. Concurrency Optimization: Concurrent testing identified a blocking Redis operation in the asynchronous SOS route handlers. Offloading synchronous calls to worker threads using asyncio.to_thread() reduced average response times from 27.5 seconds to 9.7 seconds under 10 concurrent users without request failures. The paper documents the architectural design, empirical findings, engineering trade-offs, and critical limitations regarding synthetic data and cloud hosting.
No takes yet. Share an insight, caveat, or question.
Ramayanam et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: