<?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>DEV Community: Mohammed Ansari</title>
    <description>The latest articles on DEV Community by Mohammed Ansari (@mohammed_ansari_d2425db08).</description>
    <link>https://dev.to/mohammed_ansari_d2425db08</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%2F3887620%2F65a76a12-fede-45f9-a410-8c50e492a466.jpg</url>
      <title>DEV Community: Mohammed Ansari</title>
      <link>https://dev.to/mohammed_ansari_d2425db08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohammed_ansari_d2425db08"/>
    <language>en</language>
    <item>
      <title>Building a Smart Stadium AI Assistant using Google Cloud (Without Overengineering)</title>
      <dc:creator>Mohammed Ansari</dc:creator>
      <pubDate>Sun, 19 Apr 2026 17:24:54 +0000</pubDate>
      <link>https://dev.to/mohammed_ansari_d2425db08/building-a-smart-stadium-ai-assistant-using-google-cloud-without-overengineering-4mnj</link>
      <guid>https://dev.to/mohammed_ansari_d2425db08/building-a-smart-stadium-ai-assistant-using-google-cloud-without-overengineering-4mnj</guid>
      <description>&lt;p&gt;This is my first blog, so keeping it simple and real.&lt;/p&gt;

&lt;p&gt;Recently, I worked on a challenge where the goal was to improve the physical event experience in a large venue or a stadium.&lt;/p&gt;

&lt;p&gt;Think about any big cricket match or football game or a Summit.&lt;/p&gt;

&lt;p&gt;What usually happens?&lt;/p&gt;

&lt;p&gt;Long queues at registration or food stalls&lt;br&gt;
Confusion in finding exits&lt;br&gt;
Crowd congestion near gates&lt;br&gt;
No real-time visibility of what’s happening&lt;/p&gt;

&lt;p&gt;So the question was:&lt;/p&gt;

&lt;p&gt;Can we solve this using AI and cloud?&lt;/p&gt;




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

&lt;p&gt;Instead of building something overly complex, I focused on a practical system.&lt;/p&gt;

&lt;p&gt;The goal was to simulate a smart assistant that can:&lt;/p&gt;

&lt;p&gt;Guide users inside the venue/stadium&lt;br&gt;
Suggest less crowded paths&lt;br&gt;
Show real-time crowd density&lt;br&gt;
Alert during sudden crowd spikes&lt;/p&gt;

&lt;p&gt;Basically, make the experience smoother and stress-free.&lt;/p&gt;




&lt;p&gt;Key Design Decision&lt;/p&gt;

&lt;p&gt;Most people think:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;AI = complex models + Python + training&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But I took a different approach:&lt;/p&gt;

&lt;p&gt;Simulated intelligence using real-time logic&lt;/p&gt;

&lt;p&gt;Because in real-world systems:&lt;/p&gt;

&lt;p&gt;speed matters&lt;br&gt;
reliability matters&lt;br&gt;
simplicity matters&lt;/p&gt;




&lt;p&gt;System Architecture&lt;/p&gt;

&lt;p&gt;I built a simple but effective architecture:&lt;/p&gt;

&lt;p&gt;Frontend → shows venue/stadium layout and user interaction&lt;br&gt;
Backend → handles simulation and logic&lt;br&gt;
Simulation Engine → generates crowd movement and events&lt;br&gt;
AI Layer → gives recommendations based on context&lt;/p&gt;

&lt;p&gt;Everything works together like a mini real-world system.&lt;/p&gt;




&lt;p&gt;Stadium Layout&lt;/p&gt;

&lt;p&gt;I designed a structured stadium layout with:&lt;/p&gt;

&lt;p&gt;4 Gates (North, South, East, West)&lt;br&gt;
Parking Area&lt;br&gt;
First Aid Center&lt;br&gt;
Merchandise Store&lt;br&gt;
Food Stalls (outside stadium area)&lt;br&gt;
Fan Booth&lt;br&gt;
Cab Pickup, Metro, Bus stations&lt;/p&gt;

&lt;p&gt;All zones are connected with paths to simulate movement.&lt;/p&gt;




&lt;p&gt;Tech Stack&lt;/p&gt;

&lt;p&gt;Frontend: HTML, CSS, JavaScript&lt;br&gt;
Backend: Node.js (Express)&lt;br&gt;
Deployment: Google Cloud Run&lt;br&gt;
Containerization: Docker (via Cloud Run)&lt;br&gt;
Real-time Simulation: Custom event-driven logic&lt;/p&gt;

&lt;p&gt;No heavy frameworks. No unnecessary dependencies.&lt;/p&gt;




&lt;p&gt;Real-Time Simulation&lt;/p&gt;

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

&lt;p&gt;Crowd density across zones (%)&lt;br&gt;
Gradual increase in crowd&lt;br&gt;
Sudden spike when event ends&lt;br&gt;
Empty stadium scenario&lt;/p&gt;

&lt;p&gt;This makes the app feel “live” instead of static.&lt;/p&gt;




&lt;p&gt;AI Routing Assistant&lt;/p&gt;

&lt;p&gt;User can ask:&lt;/p&gt;

&lt;p&gt;“I am at West Gate. Which is the nearest food stall?”&lt;/p&gt;

&lt;p&gt;Instead of generic replies, the system responds like:&lt;/p&gt;

&lt;p&gt;“The best option is Food Stall 2 towards South-East (near East Gate). It has low crowd (12%).”&lt;/p&gt;

&lt;p&gt;This is based on:&lt;/p&gt;

&lt;p&gt;current crowd data&lt;br&gt;
zone positions&lt;br&gt;
user intent&lt;/p&gt;




&lt;p&gt;Security &amp;amp; Efficiency&lt;/p&gt;

&lt;p&gt;Even though this is a demo, I added:&lt;/p&gt;

&lt;p&gt;Input validation&lt;br&gt;
Rate limiting&lt;br&gt;
Secure headers&lt;/p&gt;

&lt;p&gt;Also kept the repo:&lt;/p&gt;

&lt;p&gt;Under 10 MB (very lightweight)&lt;/p&gt;




&lt;p&gt;Deployment&lt;/p&gt;

&lt;p&gt;Deployed using Google Cloud Run.&lt;/p&gt;

&lt;p&gt;Why Cloud Run?&lt;/p&gt;

&lt;p&gt;Easy deployment&lt;br&gt;
Scales automatically&lt;br&gt;
Works well with containerized apps&lt;/p&gt;

&lt;p&gt;Live app: &lt;a href="https://crowd-ctrl-app-986344078772.asia-south1.run.app" rel="noopener noreferrer"&gt;https://crowd-ctrl-app-986344078772.asia-south1.run.app&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Challenges Faced&lt;/p&gt;

&lt;p&gt;Some real issues I faced:&lt;/p&gt;

&lt;p&gt;Serving frontend correctly in Cloud Run&lt;br&gt;
Fixing API base URLs for production&lt;br&gt;
Avoiding large repo size (node_modules issue)&lt;br&gt;
Making UI clean without overloading it&lt;/p&gt;

&lt;p&gt;Each of these taught something practical.&lt;/p&gt;




&lt;p&gt;Key Learnings&lt;/p&gt;

&lt;p&gt;This project changed how I think about AI systems.&lt;/p&gt;

&lt;p&gt;You don’t always need complex AI models&lt;br&gt;
System design matters more than tools&lt;br&gt;
Simplicity + clarity = better results&lt;/p&gt;

&lt;p&gt;And most importantly:&lt;/p&gt;

&lt;p&gt;Don’t overengineer just to “look advanced” ;)&lt;/p&gt;




&lt;p&gt;What I Would Improve Next&lt;/p&gt;

&lt;p&gt;Add real Google Maps integration&lt;br&gt;
Use actual real-time data from sensors&lt;br&gt;
Improve route optimization logic&lt;br&gt;
Add multilingual support&lt;/p&gt;




&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;This was not just about building a Solution.&lt;/p&gt;

&lt;p&gt;It was about:&lt;/p&gt;

&lt;p&gt;thinking like a product builder&lt;br&gt;
focusing on user experience&lt;br&gt;
balancing simplicity and intelligence&lt;/p&gt;

&lt;p&gt;If you are starting in AI or development:&lt;/p&gt;

&lt;p&gt;Start building systems, not just models.&lt;/p&gt;




&lt;p&gt;Thanks for reading 🙌&lt;br&gt;
Would love to hear your thoughts or feedback!&lt;/p&gt;

&lt;h1&gt;
  
  
  AI #GoogleCloud #CloudRun #WebDevelopment #SystemDesign #LearningInPublic #BuildwithAI #PromptWarsVirtual
&lt;/h1&gt;

&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%2Fbge9am1dio2e7zuqmoos.JPG" 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%2Fbge9am1dio2e7zuqmoos.JPG" alt=" " width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cloud</category>
      <category>google</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
