﻿{"id":15,"date":"2025-06-06T19:33:19","date_gmt":"2025-06-06T14:03:19","guid":{"rendered":"https:\/\/blogs.infosys.com\/topaz\/?p=15"},"modified":"2025-06-09T17:33:07","modified_gmt":"2025-06-09T12:03:07","slug":"enhancing-retail-store-analytics-with-video-ai-agent-real-time-video-analytics-part-1-3","status":"publish","type":"post","link":"https:\/\/blogs.infosys.com\/topaz\/nvidia\/enhancing-retail-store-analytics-with-video-ai-agent-real-time-video-analytics-part-1-3.html","title":{"rendered":"Enhancing Retail Store Analytics with Video AI Agent: Real-Time Video Analytics (Part 1\/3)"},"content":{"rendered":"<h1><strong>Introduction<\/strong><\/h1>\n<p>Retail environments are dynamic and require intelligent security systems to maintain safety and prevent theft. Traditional IP camera systems generate vast amounts of data but fail to provide actionable insights. <strong>Video AI Agent<\/strong> addresses this challenge by leveraging AI to transform raw video feeds into real-time, searchable intelligence.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-34 size-full aligncenter\" src=\"https:\/\/blogs.infosys.com\/topaz\/wp-content\/uploads\/2025\/06\/Picture1.png\" alt=\"\" width=\"657\" height=\"316\" \/><\/p>\n<h2>Infosys Video Analytics \u2013 Part of Infosys Topaz<\/h2>\n<p>Infosys Video Analytics, part of <strong>Infosys Topaz<\/strong>, is an enterprise-ready solution designed to enable the development of <strong>Vision AI models<\/strong> for product detection and other retail applications. This platform helps retailers automate operations and deploy AI-driven insights to enhance security, optimize inventory management, reduce reaction times, and improve customer experiences. Built on <a href=\"https:\/\/build.nvidia.com\/nvidia\/video-search-and-summarization\">NVIDIA(r) AI Blueprint for video search and summarization (VSS)<\/a> from <a href=\"https:\/\/www.nvidia.com\/en-us\/autonomous-machines\/intelligent-video-analytics-platform\/\">NVIDIA Metropolis<\/a>, Infosys Video Analytics enhances video intelligence capabilities for real-world scalability.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35 size-full\" src=\"https:\/\/blogs.infosys.com\/topaz\/wp-content\/uploads\/2025\/06\/Picture2.png\" alt=\"\" width=\"624\" height=\"387\" \/><\/p>\n<h2>Classical Vision Models vs. Vision Language Models (VLMs)<\/h2>\n<p>One of the key technologies underlying Video AI Agent is the vision AI model. Traditional <strong>computer vision models<\/strong> rely on handcrafted features and require <strong>domain-specific training data<\/strong> to detect objects or anomalies. Such models often struggle with variations in lighting, occlusions, and complex retail environments.<\/p>\n<p>In contrast, <strong>VLMs<\/strong> leverage multimodal learning, allowing them to understand <strong>both visual and textual context<\/strong>. This enhances their ability to:<\/p>\n<ul>\n<li><strong>Recognize objects in diverse conditions<\/strong> without extensive retraining.<\/li>\n<li><strong>Generate detailed, natural-language descriptions<\/strong> of scenes.<\/li>\n<li><strong>Reduce data annotation requirements<\/strong>, leveraging self-supervised learning for fine-tuning.<\/li>\n<\/ul>\n<p>By leveraging <strong>large-scale datasets<\/strong>, VLMs outperform classical models, enabling adaptive, <strong>real-time decision-making<\/strong> in retail applications.<\/p>\n<h2>Video AI Agent Architecture Overview<\/h2>\n<p>The Video AI Agent is built around two main pipelines:<\/p>\n<h3>Data Ingestion and Processing Pipeline<\/h3>\n<ol>\n<li>\n<h4><strong>Chunk-Based Video Processing:<\/strong><\/h4>\n<ul>\n<li>Videos, whether live or recorded,are segmented into small chunks (typically seconds to minutes) due to the limited number of frames a VLM can accept. The length of these segments can be customized based on the activity and duration of the video.<\/li>\n<li>Example: If a 30-second video is split into one second chunk sizes, and if a VLM can take 10 frames from each chunk, the total number of frames would be reduced from 900 frames to 30 chunks * 10 frames = 300 key representative frames across multiple Vision Language Model (VLM) calls.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h4><strong>Parallel Processing Across GPUs<\/strong>:<\/h4>\n<ul>\n<li>Chunks are processed concurrently on multiple GPUs (e.g., 8 x NVIDIA H100 Tensor Core GPUs), ensuring rapid and scalable analysis.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h4><strong>Embedding Generation and Captioning<\/strong>:<\/h4>\n<ul>\n<li>For each chunk, deep video embeddings are generated and passed to advanced VLMs (e.g., VILA 1.5, GPT-4o, and custom models) for captioning.<\/li>\n<li>Generated captions, combined with metadata (timestamps, camera ID, etc.), are used in subsequent analysis.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h4><strong>Data Transfer to Retrieval Pipeline<\/strong>:<\/h4>\n<ul>\n<li>Structured data from the ingestion pipeline is stored in databases optimized for fast retrieval.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Retrieval Pipeline<\/h3>\n<ol>\n<li>\n<h4><strong>Indexing and Storage<\/strong>:<\/h4>\n<ul>\n<li>Captions and metadata are stored in vector and graph databases, supporting both fast retrieval and context-aware queries.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h4><strong>Context-Aware RAG (CA-RAG):<\/strong><\/h4>\n<ul>\n<li>\u00a0<strong>Summarization:<\/strong> Uses recursive \u201cRefine\u201d techniques for live streams or a two-stage \u201cBatch\u201d process for longer videos.<\/li>\n<li><strong>Question &amp; Answer (Q&amp;A):<\/strong> Integrates with databases (e.g., Milvus DB\/and Neo4j) and leverages advanced LLM tool calling to extract precise, context-rich answers from video data.<\/li>\n<li><strong>Alerts:<\/strong> Event-based triggers notify managers in real time upon detecting suspicious or unsafe activities.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h1>Architecture<\/h1>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-36 size-full aligncenter\" src=\"https:\/\/blogs.infosys.com\/topaz\/wp-content\/uploads\/2025\/06\/Picture3.png\" alt=\"\" width=\"650\" height=\"474\" \/><\/h3>\n<h3>NVIDIA NIM Microservices Used:<\/h3>\n<ul>\n<li><strong>LLM:<\/strong> llama-3.1-70b-instruct<\/li>\n<li><strong>VLM:<\/strong> vila-1.5-34b<\/li>\n<li><strong>NeMo\u2122 Retriever Reranking:<\/strong> llama-3.2-nv-rerankqa-1b-v2<\/li>\n<li><strong>NeMo\u2122 Retriever Embedding<\/strong>: llama-3.2-nv-embedqa-1b-v2<\/li>\n<\/ul>\n<h3>Hardware Used:<\/h3>\n<ul>\n<li>8 x NVIDIA H100 GPUs (80GB each)<\/li>\n<li>256+ GB System Memory<\/li>\n<li>High-speed NVMe storage for rapid data access<\/li>\n<\/ul>\n<h3>Software Used:<\/h3>\n<ul>\n<li>\u00a0OS: Ubuntu 22.04+<\/li>\n<li>NVIDIA Driver: v535.161.08+<\/li>\n<li>CUDA(r): 12.2+<\/li>\n<li>Container Orchestration: Kubernetes v1.31.2, NVIDIA GPU Operator v23.9, cHelm v3.x<\/li>\n<li>NGC(\u2122) API Key: For accessing NVIDIA container registry<\/li>\n<\/ul>\n<h1>Implementation Workflow<\/h1>\n<ol>\n<li>\n<h3>Data Ingestion &amp; Dense Captioning<\/h3>\n<ul>\n<li>Video streams are chunked and processed in parallel, converting frames into embeddings.<\/li>\n<li>The fine-tuned model generates frame-level captions, capturing product details and timestamps.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37 size-full\" src=\"https:\/\/blogs.infosys.com\/topaz\/wp-content\/uploads\/2025\/06\/Picture4.png\" alt=\"\" width=\"975\" height=\"312\" \/><\/p>\n<ol>\n<li>\n<h3>Alert Aggregation<\/h3>\n<ul>\n<li>Alerts triggered by low stock or safety hazards are compiled into a searchable vector database.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h3>Actionable Insights:<\/h3>\n<ul>\n<li><span style=\"font-size: 16px\">Retail managers receive real-time notifications, and historical data assists in long-term inventory strategy planning.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<p>&nbsp;<\/p>\n<h3>Author<\/h3>\n<p>Apoorv Mishra, Senior Consultant, Infosys<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Retail environments are dynamic and require intelligent security systems to maintain safety and [&hellip;]<\/p>\n","protected":false},"author":865,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[12],"tags":[],"coauthors":[14],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-nvidia"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/users\/865"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":5,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/posts\/15\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/tags?post=15"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.infosys.com\/topaz\/wp-json\/wp\/v2\/coauthors?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}