<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Tanish Diwakar</title>
    <description>The latest articles on Forem by Tanish Diwakar (@tanish_diwakar_9a16972ca4).</description>
    <link>https://forem.com/tanish_diwakar_9a16972ca4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3888528%2F915b87d7-cbcb-4c4e-b8de-2b05da4fdab4.jpg</url>
      <title>Forem: Tanish Diwakar</title>
      <link>https://forem.com/tanish_diwakar_9a16972ca4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tanish_diwakar_9a16972ca4"/>
    <language>en</language>
    <item>
      <title>VoteWise AI — Making the Election Process Simple, Interactive, and Intelligent</title>
      <dc:creator>Tanish Diwakar</dc:creator>
      <pubDate>Fri, 24 Apr 2026 17:52:40 +0000</pubDate>
      <link>https://forem.com/tanish_diwakar_9a16972ca4/votewise-ai-making-the-election-process-simple-interactive-and-intelligent-28n8</link>
      <guid>https://forem.com/tanish_diwakar_9a16972ca4/votewise-ai-making-the-election-process-simple-interactive-and-intelligent-28n8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm1talgg0iycrixtflnxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm1talgg0iycrixtflnxu.png" alt=" " width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VoteWise AI — Making the Election Process Simple, Interactive, and Intelligent&lt;/p&gt;

&lt;p&gt;Understanding the election process can feel overwhelming.&lt;br&gt;
There are multiple stages, different requirements, and often no clear guidance on what to do next.&lt;/p&gt;

&lt;p&gt;What if the entire process could guide you—step by step—like an intelligent assistant?&lt;/p&gt;

&lt;p&gt;That’s exactly why I built VoteWise AI.&lt;/p&gt;

&lt;p&gt;🚀 The Idea&lt;/p&gt;

&lt;p&gt;Most platforms provide static information:&lt;/p&gt;

&lt;p&gt;Lists of steps&lt;br&gt;
Government guidelines&lt;br&gt;
General instructions&lt;/p&gt;

&lt;p&gt;But they don’t answer a simple question:&lt;/p&gt;

&lt;p&gt;👉 “What should I do next based on my current state?”&lt;/p&gt;

&lt;p&gt;VoteWise AI solves this by turning the election process into an interactive, state-driven experience.&lt;/p&gt;

&lt;p&gt;🧭 What is VoteWise AI?&lt;/p&gt;

&lt;p&gt;VoteWise AI is an interactive assistant that:&lt;/p&gt;

&lt;p&gt;Guides users through the election process step-by-step&lt;br&gt;
Provides AI-like recommendations&lt;br&gt;
Visualizes the entire election timeline&lt;br&gt;
Validates system reliability through built-in testing&lt;/p&gt;

&lt;p&gt;Instead of reading through long instructions, users simply select their current state—and the system does the rest.&lt;/p&gt;

&lt;p&gt;🧠 Core Features&lt;br&gt;
1️⃣ Guided Election Flow&lt;/p&gt;

&lt;p&gt;The entire process is modeled as a state machine:&lt;/p&gt;

&lt;p&gt;Not Registered → Register → Verify → Ready to Vote → Vote → Results → Completed&lt;/p&gt;

&lt;p&gt;Each state determines:&lt;/p&gt;

&lt;p&gt;The next valid step&lt;br&gt;
The explanation for that step&lt;br&gt;
The confidence level of the recommendation&lt;br&gt;
2️⃣ AI Decision Assistant&lt;/p&gt;

&lt;p&gt;The system acts like a lightweight AI engine:&lt;/p&gt;

&lt;p&gt;Flow Engine → Determines next step&lt;br&gt;
Decision Engine → Generates explanation&lt;br&gt;
Confidence Scoring → Adds reliability&lt;br&gt;
The system provides explainable AI outputs with confidence scoring, improving transparency and trust.&lt;/p&gt;

&lt;p&gt;Example output:&lt;/p&gt;

&lt;p&gt;“You are currently in the ‘Verified’ stage. The next step is ‘Ready to Vote’.”&lt;/p&gt;

&lt;p&gt;3️⃣ Election Timeline Visualization&lt;/p&gt;

&lt;p&gt;Users can see where they are in the process:&lt;/p&gt;

&lt;p&gt;📝 Registration&lt;br&gt;
📢 Campaign / Verification&lt;br&gt;
🗳 Voting&lt;br&gt;
📊 Results&lt;/p&gt;

&lt;p&gt;This provides context + clarity—something missing in most systems.&lt;/p&gt;

&lt;p&gt;4️⃣ 🧪 Visible Testing Engine (Key Highlight)&lt;/p&gt;

&lt;p&gt;One of the most unique aspects of this project:&lt;/p&gt;

&lt;p&gt;👉 Testing is not hidden—it’s visible inside the UI.&lt;/p&gt;

&lt;p&gt;The system automatically runs tests and displays:&lt;/p&gt;

&lt;p&gt;✅ All Tests Passed&lt;br&gt;&lt;br&gt;
Passed: 12 | Failed: 0&lt;/p&gt;

&lt;p&gt;This includes:&lt;/p&gt;

&lt;p&gt;Flow validation&lt;br&gt;
Input validation&lt;br&gt;
XSS protection&lt;br&gt;
Decision correctness&lt;br&gt;
5️⃣ 🧠 System Health Indicator&lt;/p&gt;

&lt;p&gt;To make reliability even clearer:&lt;/p&gt;

&lt;p&gt;🧠 System Health: 100% ✔&lt;/p&gt;

&lt;p&gt;This updates dynamically based on test results.&lt;/p&gt;

&lt;p&gt;It’s a small feature—but incredibly powerful for:&lt;/p&gt;

&lt;p&gt;User trust&lt;br&gt;
System transparency&lt;br&gt;
Real-world product thinking&lt;br&gt;
6️⃣ ⚡ Real-Time Interactive UI&lt;/p&gt;

&lt;p&gt;The UI is built using Vanilla JavaScript, focusing on simplicity and control.&lt;/p&gt;

&lt;p&gt;Key aspects:&lt;/p&gt;

&lt;p&gt;No page reloads&lt;br&gt;
Dynamic updates&lt;br&gt;
Clean 3-panel layout:&lt;br&gt;
User State&lt;br&gt;
Timeline&lt;br&gt;
AI Assistant&lt;br&gt;
7️⃣ 🔒 Security First&lt;/p&gt;

&lt;p&gt;Security was treated as a core requirement, not an afterthought.&lt;/p&gt;

&lt;p&gt;Implemented:&lt;/p&gt;

&lt;p&gt;Input validation&lt;br&gt;
Sanitization function to prevent XSS&lt;br&gt;
Safe DOM updates using textContent&lt;br&gt;
8️⃣ ♿ Accessibility Support&lt;/p&gt;

&lt;p&gt;Accessibility features include:&lt;/p&gt;

&lt;p&gt;aria-live regions for dynamic updates&lt;br&gt;
role="alert" for critical notifications&lt;br&gt;
role="log" for assistant outputs&lt;/p&gt;

&lt;p&gt;This ensures the system works well with assistive technologies.&lt;/p&gt;

&lt;p&gt;9️⃣ ☁️ Firebase Integration (Real Backend)&lt;/p&gt;

&lt;p&gt;To bring real-world system behavior into the project:&lt;/p&gt;

&lt;p&gt;User interactions are logged using Firebase Firestore&lt;br&gt;
Events tracked include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;app_loaded&lt;/li&gt;
&lt;li&gt;state_changed&lt;/li&gt;
&lt;li&gt;next_step_clicked&lt;/li&gt;
&lt;li&gt;decision_generated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All logs are stored in a structured format inside a Firestore collection (&lt;code&gt;user_logs&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Additionally, Firebase Analytics is used to track user behavior patterns.&lt;/p&gt;

&lt;p&gt;A visible UI banner confirms live activity:&lt;br&gt;
📡 Firebase Connected – Logging user actions in real-time&lt;/p&gt;

&lt;p&gt;This transforms the system from a frontend-only experience into a real-time, data-driven application.&lt;/p&gt;

&lt;p&gt;🏗️ Architecture Overview&lt;/p&gt;

&lt;p&gt;The project follows a modular structure:&lt;/p&gt;

&lt;p&gt;engine/&lt;br&gt;
  flow.js        → state transitions&lt;br&gt;
  decision.js    → AI logic&lt;br&gt;
  utils.js       → validation + sanitization&lt;/p&gt;

&lt;p&gt;services/&lt;br&gt;
  firebase.js    → logging simulation&lt;/p&gt;

&lt;p&gt;tests/&lt;br&gt;
  test.js        → system validation&lt;/p&gt;

&lt;p&gt;app.js           → main UI logic&lt;br&gt;
🎯 What Makes This Different?&lt;/p&gt;

&lt;p&gt;Most projects:&lt;/p&gt;

&lt;p&gt;Show functionality&lt;br&gt;
Hide reliability&lt;/p&gt;

&lt;p&gt;VoteWise AI:&lt;/p&gt;

&lt;p&gt;Shows both&lt;/p&gt;

&lt;p&gt;Key differentiators:&lt;/p&gt;

&lt;p&gt;🧪 Visible testing system&lt;br&gt;
🧠 System health feedback&lt;br&gt;
🔄 State-driven logic&lt;br&gt;
⚡ Real-time UI behavior&lt;br&gt;
🔒 Security-aware implementation&lt;br&gt;
🌍 Why This Matters&lt;br&gt;
☁️ Real backend integration with persistent user interaction logging&lt;/p&gt;

&lt;p&gt;The election process is critical—but often confusing.&lt;/p&gt;

&lt;p&gt;VoteWise AI transforms:&lt;/p&gt;

&lt;p&gt;Traditional Systems VoteWise AI&lt;br&gt;
Static instructions Interactive guidance&lt;br&gt;
No feedback Real-time updates&lt;br&gt;
Hidden logic    Transparent system&lt;br&gt;
No validation   Built-in testing&lt;br&gt;
🏁 Final Thoughts&lt;/p&gt;

&lt;p&gt;This project started as a simple idea:&lt;/p&gt;

&lt;p&gt;👉 “What if systems could guide users instead of just informing them?”&lt;/p&gt;

&lt;p&gt;It evolved into something more:&lt;/p&gt;

&lt;p&gt;A state-driven assistant&lt;br&gt;&lt;br&gt;
A self-validating system&lt;br&gt;&lt;br&gt;
A real-time, data-aware application&lt;br&gt;&lt;br&gt;
A user-focused experience&lt;/p&gt;

&lt;p&gt;🔗 Project Link&lt;/p&gt;

&lt;p&gt;👉 GitHub Repository:&lt;a href="https://github.com/TanishCodeBase/VoteWise-Ai.git" rel="noopener noreferrer"&gt;https://github.com/TanishCodeBase/VoteWise-Ai.git&lt;/a&gt;&lt;br&gt;
   Live Demo:&lt;a href="https://votewise-ai-375202352975.us-central1.run.app/" rel="noopener noreferrer"&gt;https://votewise-ai-375202352975.us-central1.run.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>CrowdOS — Autonomous Event Intelligence System for Smart Crowd Management</title>
      <dc:creator>Tanish Diwakar</dc:creator>
      <pubDate>Mon, 20 Apr 2026 08:37:52 +0000</pubDate>
      <link>https://forem.com/tanish_diwakar_9a16972ca4/crowdos-autonomous-event-intelligence-system-for-smart-crowd-management-46k6</link>
      <guid>https://forem.com/tanish_diwakar_9a16972ca4/crowdos-autonomous-event-intelligence-system-for-smart-crowd-management-46k6</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98cauyoe40gerjm5x2yp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98cauyoe40gerjm5x2yp.png" alt=" " width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🎯 Introduction&lt;/p&gt;

&lt;p&gt;Large-scale events like cricket matches, concerts, and festivals bring together thousands of people in confined spaces. While these events are exciting, they often suffer from a common problem:&lt;/p&gt;

&lt;p&gt;🚶 Overcrowded walkways&lt;br&gt;
⏱ Long waiting times at food stalls and restrooms&lt;br&gt;
🚨 Unsafe congestion during peak moments&lt;br&gt;
❌ Lack of real-time guidance&lt;/p&gt;

&lt;p&gt;Traditional navigation systems focus on the shortest path, but in high-density environments, the shortest path is often the most dangerous one.&lt;/p&gt;

&lt;p&gt;To address this, I built CrowdOS — an AI-powered real-time crowd intelligence system that transforms how people navigate large venues.&lt;/p&gt;

&lt;p&gt;💡 Problem Statement&lt;/p&gt;

&lt;p&gt;In stadiums like M. A. Chidambaram Stadium (Chepauk), crowd movement is unpredictable and dynamic. During intermissions or match breaks:&lt;/p&gt;

&lt;p&gt;Thousands of people move simultaneously&lt;br&gt;
Certain zones become overloaded&lt;br&gt;
Bottlenecks form quickly&lt;br&gt;
Safety risks increase&lt;/p&gt;

&lt;p&gt;Existing systems:&lt;/p&gt;

&lt;p&gt;Do not predict congestion&lt;br&gt;
Do not adapt in real-time&lt;br&gt;
Do not provide intelligent routing&lt;/p&gt;

&lt;p&gt;👉 The result: inefficient and unsafe crowd flow.&lt;/p&gt;

&lt;p&gt;🧠 Solution Overview — What is CrowdOS?&lt;/p&gt;

&lt;p&gt;CrowdOS is a real-time decision intelligence system that:&lt;/p&gt;

&lt;p&gt;Predicts crowd behavior before congestion happens&lt;br&gt;
Dynamically reroutes users to safer paths&lt;br&gt;
Minimizes waiting time using smart recommendations&lt;br&gt;
Coordinates crowd movement across the entire venue&lt;/p&gt;

&lt;p&gt;👉 It acts like a digital control system for live crowd management&lt;/p&gt;

&lt;p&gt;🏟️ Digital Twin of the Stadium&lt;/p&gt;

&lt;p&gt;At the core of CrowdOS is a custom-built digital twin of Chepauk Stadium.&lt;/p&gt;

&lt;p&gt;🔹 Modeling Approach&lt;br&gt;
Nodes (Zones):&lt;br&gt;
Gates (Entry/Exit points)&lt;br&gt;
Stands (Seating areas)&lt;br&gt;
Food courts &amp;amp; amenities&lt;br&gt;
Edges:&lt;br&gt;
Walkable paths between zones&lt;br&gt;
Visualization:&lt;br&gt;
Built using SVG rendering&lt;br&gt;
Radial layout representing real stadium structure&lt;/p&gt;

&lt;p&gt;Each zone maintains:&lt;/p&gt;

&lt;p&gt;Current density&lt;br&gt;
Capacity&lt;br&gt;
Type (gate, stand, food area)&lt;br&gt;
⚙️ System Architecture&lt;/p&gt;

&lt;p&gt;CrowdOS is designed using a 3-layer AI pipeline:&lt;/p&gt;

&lt;p&gt;1️⃣ Perception Engine (perception.js)&lt;/p&gt;

&lt;p&gt;Responsible for understanding the environment:&lt;/p&gt;

&lt;p&gt;Tracks live crowd density&lt;br&gt;
Monitors inflow and outflow&lt;br&gt;
Maintains zone-level data&lt;/p&gt;

&lt;p&gt;👉 Acts as the system’s “eyes”&lt;/p&gt;

&lt;p&gt;2️⃣ Prediction Engine (prediction.js)&lt;/p&gt;

&lt;p&gt;Responsible for forecasting future conditions:&lt;/p&gt;

&lt;p&gt;Simulates crowd movement&lt;br&gt;
Predicts density changes&lt;br&gt;
Detects potential congestion early&lt;/p&gt;

&lt;p&gt;👉 Converts current state → future state&lt;/p&gt;

&lt;p&gt;3️⃣ Decision Engine (decision.js)&lt;/p&gt;

&lt;p&gt;Responsible for taking intelligent actions:&lt;/p&gt;

&lt;p&gt;Evaluates all possible routes&lt;br&gt;
Calculates risk and efficiency&lt;br&gt;
Selects optimal path&lt;/p&gt;

&lt;p&gt;👉 Acts as the system’s “brain”&lt;/p&gt;

&lt;p&gt;🔄 AI Logic (INPUT → PROCESS → OUTPUT)&lt;/p&gt;

&lt;p&gt;Let’s understand how CrowdOS works in real-time.&lt;/p&gt;

&lt;p&gt;📥 INPUT&lt;br&gt;
User location (e.g., MCC Lounge)&lt;br&gt;
Live crowd density data&lt;br&gt;
Zone connections&lt;br&gt;
⚙️ PROCESS&lt;/p&gt;

&lt;p&gt;The system evaluates:&lt;/p&gt;

&lt;p&gt;Future congestion levels&lt;br&gt;
Distance between zones&lt;br&gt;
Risk of overcrowding&lt;/p&gt;

&lt;p&gt;Using a weighted formula:&lt;/p&gt;

&lt;p&gt;Score = Distance + Congestion + Risk + Wait Time&lt;br&gt;
📤 OUTPUT&lt;/p&gt;

&lt;p&gt;The system generates:&lt;/p&gt;

&lt;p&gt;🚀 Recommended action&lt;br&gt;
⏱ Estimated time&lt;br&gt;
⚠ Risk level&lt;br&gt;
📊 Efficiency score&lt;br&gt;
💡 Explanation (why this route was chosen)&lt;br&gt;
📊 Core Metrics&lt;/p&gt;

&lt;p&gt;CrowdOS uses quantitative metrics to make decisions:&lt;/p&gt;

&lt;p&gt;Risk Score (0–1) → Safety level&lt;br&gt;
Congestion Index (%) → Density of zones&lt;br&gt;
Route Efficiency (0–1) → Path optimization&lt;br&gt;
Coordination Score (%) → System-wide balance&lt;br&gt;
🔥 Key Features&lt;br&gt;
🧭 Smart Wayfinding&lt;br&gt;
Dynamic routing (not shortest path)&lt;br&gt;
Avoids crowded zones&lt;br&gt;
Prioritizes safety&lt;br&gt;
🍔 Smart Concessions&lt;br&gt;
Predicts wait times&lt;br&gt;
Suggests fastest food stalls&lt;br&gt;
Reduces queue pressure&lt;br&gt;
🚨 Live Alert System&lt;br&gt;
Detects high-density zones&lt;br&gt;
Triggers real-time alerts&lt;br&gt;
Suggests alternate paths&lt;br&gt;
🧠 Predictive Decision Logic&lt;br&gt;
Suggests whether to wait or move&lt;br&gt;
Anticipates congestion before it happens&lt;br&gt;
⚙️ System Status Monitoring&lt;br&gt;
Tracks critical zones&lt;br&gt;
Identifies safe zones&lt;br&gt;
Displays overall congestion&lt;br&gt;
🔄 Real-Time Simulation&lt;/p&gt;

&lt;p&gt;Since real IoT data is not available, CrowdOS uses:&lt;/p&gt;

&lt;p&gt;Simulation loops&lt;br&gt;
Randomized flow changes&lt;br&gt;
Continuous updates&lt;/p&gt;

&lt;p&gt;👉 Mimics real-world sensor data streams&lt;/p&gt;

&lt;p&gt;☁️ Deployment (Google Cloud)&lt;/p&gt;

&lt;p&gt;CrowdOS is deployed using:&lt;/p&gt;

&lt;p&gt;Google Cloud Run&lt;br&gt;
Lightweight Node.js server&lt;br&gt;
Containerized build via Cloud Build&lt;br&gt;
Why Cloud Run?&lt;br&gt;
Scalable&lt;br&gt;
Serverless&lt;br&gt;
No infrastructure management&lt;br&gt;
🧪 Edge Case Handling&lt;/p&gt;

&lt;p&gt;CrowdOS is designed to be robust:&lt;/p&gt;

&lt;p&gt;❌ Invalid location → safe fallback&lt;br&gt;
🚨 Extreme congestion → rerouting&lt;br&gt;
⚠ Overflow protection using bounded calculations&lt;br&gt;
🔗 Disconnected zones → system alerts&lt;br&gt;
📈 Scalability&lt;/p&gt;

&lt;p&gt;CrowdOS is not limited to stadiums.&lt;/p&gt;

&lt;p&gt;It can be adapted to:&lt;/p&gt;

&lt;p&gt;Airports&lt;br&gt;
Concert venues&lt;br&gt;
Metro stations&lt;br&gt;
Smart cities&lt;/p&gt;

&lt;p&gt;👉 Simply update the dataset → system adapts instantly&lt;/p&gt;

&lt;p&gt;🌍 Why CrowdOS Matters&lt;/p&gt;

&lt;p&gt;Most systems answer:&lt;/p&gt;

&lt;p&gt;“What is the shortest route?”&lt;/p&gt;

&lt;p&gt;CrowdOS answers:&lt;/p&gt;

&lt;p&gt;“What is the safest and most efficient route right now?”&lt;/p&gt;

&lt;p&gt;🏁 Conclusion&lt;/p&gt;

&lt;p&gt;CrowdOS transforms event navigation from:&lt;/p&gt;

&lt;p&gt;👉 Passive navigation → Active crowd intelligence&lt;/p&gt;

&lt;p&gt;It enables:&lt;/p&gt;

&lt;p&gt;Safer movement&lt;br&gt;
Faster decisions&lt;br&gt;
Better user experience&lt;br&gt;
💬 Final Thoughts&lt;/p&gt;

&lt;p&gt;This project explores how AI, simulation, and real-time systems can be combined to solve real-world problems in crowd management.&lt;/p&gt;

&lt;p&gt;As large events continue to grow, systems like CrowdOS can play a crucial role in ensuring safety, efficiency, and scalability.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔗 Links
&lt;/h2&gt;

&lt;p&gt;👉 Live Demo: &lt;a href="https://croudos-475082497728.us-central1.run.app/" rel="noopener noreferrer"&gt;https://croudos-475082497728.us-central1.run.app/&lt;/a&gt;&lt;br&gt;&lt;br&gt;
👉 GitHub Repository: &lt;a href="https://github.com/TanishCodeBase/crowdos-ai-system.git" rel="noopener noreferrer"&gt;https://github.com/TanishCodeBase/crowdos-ai-system.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>algorithms</category>
      <category>machinelearning</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
