<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Khushi Pandya on Medium]]></title>
        <description><![CDATA[Stories by Khushi Pandya on Medium]]></description>
        <link>https://medium.com/@khushihp7903?source=rss-8f6449c2c4e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sy2O8E-dYyzZE6ro1WOd0A.jpeg</url>
            <title>Stories by Khushi Pandya on Medium</title>
            <link>https://medium.com/@khushihp7903?source=rss-8f6449c2c4e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:21:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khushihp7903/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Trained 7 ML Models on Gujarati Sign Language — Here’s What Actually Worked]]></title>
            <link>https://medium.com/@khushihp7903/i-trained-7-ml-models-on-gujarati-sign-language-heres-what-actually-worked-cccd5bd52ebe?source=rss-8f6449c2c4e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cccd5bd52ebe</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[sign-language]]></category>
            <category><![CDATA[comparative-analysis]]></category>
            <category><![CDATA[gujarati-sign-language]]></category>
            <dc:creator><![CDATA[Khushi Pandya]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 17:46:40 GMT</pubDate>
            <atom:updated>2026-06-13T17:46:40.514Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This research was published at IEEE MPSec ICETA 2025. Here’s the full story behind it.</blockquote><h3>Why Gujarati Sign Language?</h3><p>Most sign language research focuses on American Sign Language (ASL) or Indian Sign Language (ISL). Gujarati sign language — used by the deaf and hard of hearing community across Gujarat — has almost no published AI research.</p><p>That felt like a problem worth solving.</p><p>The goal was straightforward: build a system that could recognize 34 Gujarati consonant letters from hand gesture images in real time. But before writing a single line of model code, there was a more fundamental problem to solve — the dataset didn’t exist.</p><h3>Building the Dataset from Scratch</h3><p>There were no publicly available Gujarati sign language image datasets. So I built one.</p><p><strong>How the dataset was collected:</strong></p><ul><li>34 folders — one for each Gujarati consonant (ક, ખ, ગ… all 34)</li><li>110 images per consonant, captured manually</li><li>Multiple individuals, varied backgrounds, different lighting conditions</li><li>Multiple hand orientations and rotation angles</li></ul><p>This diversity was intentional. A model trained only on images from one person in one lighting condition fails the moment someone else uses it. Real-world robustness had to be baked in from the start.</p><p><strong>Data augmentation</strong> was applied to further expand the dataset — random rotations, flips, scaling, and noise addition — bringing the final count to:</p><ul><li>Training set: <strong>3,798 images</strong></li><li>Testing set: <strong>749 images</strong></li></ul><h3>The Preprocessing Pipeline</h3><p>Raw images can’t go directly into a model. Several preprocessing steps were applied:</p><p><strong>Noise reduction</strong> using Gaussian blur and median filtering — phone cameras in varying lighting produce a lot of visual noise that confuses models.</p><p><strong>Hand segmentation</strong> using contour detection and skin-tone masking — isolating just the hand region and removing background clutter.</p><p><strong>Normalization</strong> — all pixel values scaled to [0, 1] and all images resized to 256×256 pixels for consistency across models.</p><p><strong>PCA (Principal Component Analysis)</strong> — for traditional ML models (SVM, LR, Random Forest, ANN), image data is extremely high-dimensional. PCA reduced this dimensionality while retaining 95% of the data’s variance. This made training faster and reduced overfitting risk significantly.</p><h3>The 7 Models — What Each One Does and Why It Was Included</h3><p>Rather than jumping straight to deep learning, I wanted to understand how traditional ML compares to modern architectures on this specific problem. So I tested all of them.</p><h3>1. Support Vector Machine (SVM) with PCA</h3><p>SVM finds the optimal boundary (hyperplane) that separates different classes with the maximum margin. For image data, the RBF (Radial Basis Function) kernel was used to capture non-linear relationships between classes. Hyperparameter tuning via grid search optimized the regularization and kernel parameters.</p><h3>2. Logistic Regression (LR) with PCA</h3><p>The simplest model in the comparison — a probabilistic linear classifier. L2 regularization was applied to prevent overfitting. Included as the baseline: if even logistic regression performs well, the problem might not need deep learning at all.</p><h3>3. Random Forest</h3><p>An ensemble method that trains multiple decision trees on random data subsets and aggregates their votes. 50–200 trees were tested, with max depth limited to 10 to prevent overfitting. Feature importance analysis was performed post-training to understand which image features mattered most.</p><h3>4. Artificial Neural Network (ANN)</h3><p>A feedforward network with two hidden layers (128 and 64 neurons, ReLU activation) trained on PCA-reduced features. Adam optimizer, 50 epochs, batch size 32, dropout regularization at 0.3 to prevent overfitting.</p><h3>5. Convolutional Neural Network (CNN)</h3><p>Custom CNN built from scratch — three convolutional layers with 3×3 filters, max-pooling, and fully connected layers with softmax output. Unlike the models above, CNN works directly on raw image pixels and learns spatial features automatically.</p><h3>6. ResNet50</h3><p>A 50-layer deep network with residual (skip) connections that solve the vanishing gradient problem in very deep networks. Transfer learning was used — pretrained on ImageNet, with top layers replaced for 34-class Gujarati classification. Lower layers were frozen initially, then gradually unfrozen during fine-tuning.</p><h3>7. VGG19</h3><p>A 19-layer network known for its uniform architecture of sequential 3×3 convolutional layers. The fully connected layers were replaced with a Global Average Pooling (GAP) layer to reduce parameters and improve generalization. L2 regularization (weight decay 0.0001) was applied throughout.</p><h3>The Results — What Actually Happened</h3><p>Model Training Accuracy Testing Accuracy SVM + PCA 93.60% 87.97% Logistic Regression + PCA 92.37% 82.38% Random Forest 88.44% 88.44% ANN 90.48% 79.77% <strong>VGG19</strong> <strong>94.28%</strong> <strong>87.23%</strong> CNN 73.53% 64.21% ResNet50 54.29% —</p><h3>Breaking Down the Surprises</h3><h3>VGG19 won — but not by as much as expected</h3><p>VGG19 achieved the highest training accuracy (94.28%) and strong testing accuracy (87.23%). Its deep, uniform architecture excels at extracting hierarchical image features — edges → shapes → gesture patterns — which is exactly what hand gesture recognition needs.</p><p>But the margin over SVM was surprisingly small.</p><h3>SVM was the real surprise</h3><p>SVM with PCA achieved 87.97% testing accuracy — just 0.74% below VGG19, while being dramatically simpler to train and computationally cheaper. For a traditional ML algorithm working on hand gesture images, this is impressive.</p><p>Why did it work so well? PCA removed noise from the high-dimensional image data, giving SVM a clean, reduced feature space where it could find clear decision boundaries. The RBF kernel then handled the non-linear separability of different hand shapes.</p><p><strong>Lesson: don’t underestimate classical ML when preprocessing is done well.</strong></p><h3>Random Forest was the most consistent</h3><p>Random Forest showed identical training and testing accuracy (88.44%) — a sign of excellent generalization. No overfitting at all. For a production system where stability matters more than peak accuracy, Random Forest is a strong choice.</p><h3>CNN underperformed — and here’s why</h3><p>The custom CNN from scratch achieved only 64.21% testing accuracy, the lowest of all models. This is counterintuitive — CNNs are supposed to be great at images.</p><p>The reason: CNNs need large datasets to learn meaningful features. With only 3,798 training images across 34 classes (about 112 images per class), the CNN simply didn’t have enough data to learn properly. Compare this to VGG19, which came pretrained on millions of ImageNet images and only needed to fine-tune the top layers for our specific gestures.</p><p><strong>Lesson: for small datasets, transfer learning always beats training from scratch.</strong></p><h3>ResNet50 failed completely</h3><p>54.29% training accuracy with testing accuracy not even reportable. Transfer learning didn’t help here — the pre-trained ImageNet weights didn’t transfer well to this specific dataset, and the gradual unfreezing strategy wasn’t enough to compensate.</p><p>This suggests ResNet50 needs either a much larger dataset or significantly different fine-tuning strategy for this task.</p><h3>ANN gap between training and testing</h3><p>ANN achieved 90.48% training but only 79.77% testing — the largest gap in the comparison. The 10%+ drop indicates overfitting despite dropout regularization. The model learned the training data well but didn’t generalize as effectively as simpler models like SVM or Random Forest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYTOlhvjwjoR1gLIqoN-3w.png" /></figure><h3>What I Learned</h3><p><strong>1. Preprocessing is more important than model choice.</strong> The PCA step transformed SVM from a mediocre image classifier into a near-VGG19 performer. Time spent on preprocessing returned more value than time spent on model architecture.</p><p><strong>2. Dataset size determines which models you can use.</strong> With a small dataset, transfer learning (VGG19) beats training from scratch (CNN, ResNet50). Always start with pretrained models when data is limited.</p><p><strong>3. Consistency beats peak performance.</strong> Random Forest never overfit, while ANN showed a 10% train-test gap. In production, consistent performance is more valuable than occasional high accuracy.</p><p><strong>4. Test everything.</strong> I went in assuming deep learning would dominate. The results showed classical ML (SVM) was nearly as good with 1/100th the complexity. That would have been missed if I’d only tested neural networks.</p><h3>The Real-World Application</h3><p>Beyond the model comparison, the system was integrated into a web application that converts recognized gestures into spoken output using Text-to-Speech (TTS). A user signs a Gujarati consonant in front of a camera — the model recognizes it — and the system speaks the corresponding letter aloud.</p><p>The goal is to help bridge communication between Gujarati sign language users and those who don’t know sign language, making everyday interactions in education, healthcare, and public services more accessible.</p><h3>What’s Next</h3><p>The current system handles 34 consonants. The natural next step is extending it to:</p><ul><li>Gujarati vowels</li><li>Common words and phrases</li><li>Dynamic gestures (involving motion, not just static hand positions)</li><li>Real-time mobile deployment</li></ul><p>Temporal models like LSTMs or Vision Transformers could handle the dynamic gesture challenge — that’s the direction future work is heading.</p><h3>The Paper</h3><p>This research was published at <strong>IEEE MPSec ICETA 2025</strong> (International Conference on Emerging Technologies and Applications), Gwalior, India.</p><p>DOI: <a href="https://ieeexplore.ieee.org/document/11118850">10.1109/MPSecICETA64837.2025.11118850</a></p><p>Kaggle notebooks with the model implementations: <a href="https://www.kaggle.com/khushihpandya">kaggle.com/khushihpandya</a></p><p><em>I’m Khushi Pandya, a software engineer working on AI/ML systems and backend development. Find me on </em><a href="https://dev.to/khushipandya"><em>Dev.to</em></a><em> | </em><a href="https://github.com/khushi-79"><em>GitHub</em></a><em> | </em><a href="https://www.kaggle.com/khushihpandya"><em>Kaggle</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cccd5bd52ebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a Voice AI Agent System with Asterisk and LLMs]]></title>
            <link>https://medium.com/@khushihp7903/how-i-built-a-voice-ai-agent-system-with-asterisk-and-llms-780c86419419?source=rss-8f6449c2c4e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/780c86419419</guid>
            <category><![CDATA[voice-ai]]></category>
            <category><![CDATA[asterisk]]></category>
            <category><![CDATA[openai-api]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Khushi Pandya]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 10:52:51 GMT</pubDate>
            <atom:updated>2026-06-06T10:52:51.208Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>When your support team is busy, AI picks up the phone.</blockquote><h3>The Problem We Were Solving</h3><p>Imagine a user calls your company’s technical support line at 7 PM. Everyone on the support team has logged off. The phone rings… and rings. The user hangs up frustrated.</p><p>That was the exact problem my company wanted to solve. The goal was simple to describe but complex to build: <strong>when no human agent is available, an AI agent should pick up the call, understand the user’s problem, and answer it — just like a support executive would.</strong></p><p>I was given this task as a solo developer. What followed was one of the most technically interesting projects I’ve worked on — combining telephony, AI, speech processing, and real-time dashboards into one working system.</p><p>Here’s everything I built, how it works, and what I learned.</p><h3>The Architecture at a Glance</h3><p>Before diving deep, here’s the high-level flow of a call through the system:</p><pre>User calls → Asterisk PBX → Python AGI Script<br>                                    ↓<br>                          Speech-to-Text (Google STT)<br>                                    ↓<br>                          Noise filtering + silence detection<br>                                    ↓<br>                          Company Knowledge Base → OpenAI API<br>                                    ↓<br>                          Text-to-Speech (Google TTS)<br>                                    ↓<br>                        Voice response played back to user<br>                                    ↓<br>                    [If unresolved] → Transfer to human agent</pre><p>Every step in that chain had its own set of challenges. Let’s go through each one.</p><h3>Part 1: Asterisk — The Phone System Brain</h3><h3>What is Asterisk?</h3><p>Think of Asterisk as a software-based phone exchange — the same kind of system a large call center uses, but open-source and running on a Linux server. It’s what connects incoming phone calls to your application logic.</p><p>In real life, when you call a bank and hear <em>“Press 1 for account balance, press 2 for loans”</em> — that’s a PBX (Private Branch Exchange) system doing the routing. Asterisk is one of the most widely used open-source PBX systems in the world.</p><p>For our project, I used <strong>FreePBX</strong> — a GUI layer on top of Asterisk — which made managing extensions and call routing significantly easier without touching raw config files constantly.</p><h3>How Asterisk Connects to Your Code</h3><p>Asterisk has a feature called <strong>AGI (Asterisk Gateway Interface)</strong> — it lets you write scripts in Python (or any language) that Asterisk calls during a live phone session. Think of it like a webhook, but for phone calls.</p><p>When a user calls in, Asterisk hands control to your Python script mid-call. Your script can:</p><ul><li>Play audio to the caller</li><li>Record the caller’s voice</li><li>Send that recording somewhere for processing</li><li>Play back a response</li><li>Transfer the call to another extension</li></ul><h3>Key Protocols Asterisk Works With</h3><p>Asterisk relies on two core protocols under the hood:</p><p><strong>SIP (Session Initiation Protocol)</strong> — handles how calls are initiated, maintained, and ended over IP networks. Think of it as the process of dialing a number and getting the other person to pick up.</p><p><strong>RTP (Real-time Transport Protocol)</strong> — carries the actual voice audio once a call is connected. If SIP is the handshake, RTP is the conversation itself.</p><h3>Part 2: Speech Processing — The Hardest Part Nobody Talks About</h3><p>Getting AI to “hear” properly is not just about sending audio to Google. Raw phone audio is messy — background noise, varying volumes, long silences, people who trail off mid-sentence.</p><h3>Google STT (Speech-to-Text)</h3><p>I used <strong>Google Cloud Speech-to-Text</strong> because it’s free within generous limits and supports Indian English well (important for our user base).</p><h3>Noise Filtering and Volume Normalization</h3><p>Phone call audio comes in at 8000 Hz (much lower quality than a microphone recording). Background noise is a real problem — fans, traffic, other people talking. I used <strong>SoX</strong> (Sound eXchange), a command-line audio tool, to pre-process audio before sending it to STT — normalizing volume to a consistent level and stripping out leading/trailing silence automatically.</p><h3>Silence Detection and Timeout</h3><p>One subtle but critical thing: <strong>how do you know the user has finished speaking?</strong></p><p>I configured Asterisk’s record command with a silence threshold — if the user stops speaking for more than 2 seconds, the recording stops automatically and processing begins. Too short and it cuts people off mid-sentence. Too long and the call feels unresponsive.</p><h3>Part 3: The AI Brain — OpenAI + Company Knowledge Base</h3><h3>How the AI Knew What to Answer</h3><p>If you just send a user’s question directly to OpenAI’s GPT model, it answers from its general training data — which knows nothing about your company’s specific products, policies, or support procedures.</p><p>To solve this, my company provided a pre-built knowledge base — a structured dataset of Q&amp;A pairs covering both sales and technical support scenarios, sourced from their website and internal documentation. My job was to integrate this into the pipeline so the AI could reference it when answering.</p><p>When a user speaks, their transcribed question is matched against the knowledge base, the most relevant answer context is retrieved, and that gets passed to OpenAI along with a carefully crafted system prompt. One critical instruction in that prompt: <em>keep answers short — this will be spoken out loud on a phone call.</em> Nobody wants to listen to 3 paragraphs read aloud.</p><p>If the AI cannot find a confident answer, it tells the user it will connect them to a human agent — and the transfer kicks in automatically.</p><h3>Part 4: Text-to-Speech — Giving the AI a Voice</h3><p>I used <strong>Google Text-to-Speech (gTTS)</strong> — free, supports multiple voices, and sounds natural enough for support calls. The generated audio was converted to the 8000 Hz mono format that Asterisk expects, then played directly into the live call. I configured both male and female voice options and applied volume gain adjustments to ensure the AI voice was clear and comfortable to listen to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXL-yPsSgRR4YdRKgg5DZg.png" /></figure><h3>Part 5: Call Routing — Round Robin and Human Escalation</h3><h3>Round Robin for Human Agents</h3><p>If the AI couldn’t resolve an issue (or the user asked to speak to a human), the call needed to be transferred. But what if the first agent didn’t pick up?</p><p>I implemented <strong>round robin dialing</strong> — Asterisk tries the first agent’s extension, and if there’s no answer after 20 seconds, it moves to the next, then the next. If all agents are busy, the caller hears a message and the call is gracefully ended.</p><p>Each agent’s phone (a mobile app or desk phone) was registered to Asterisk as a SIP extension — same as how your office desk phone connects to the company switchboard.</p><h3>The Mobile App</h3><p>Support agents used a <strong>SIP-based mobile app</strong> (like Zoiper or Linphone — both free) registered to our Asterisk server. This meant agents could receive transferred calls on their phones from anywhere, without needing to be physically at a desk.</p><h3>Part 6: The Real-Time Dashboard</h3><p>Beyond the AI agent itself, I built a dashboard for the support team so they could monitor what was happening on every call.</p><p><strong>Call statuses tracked in real-time:</strong></p><ul><li>🟢 On Call</li><li>🟡 On Hold</li><li>🔵 Pending (AI handling)</li><li>⏭️ Skipped (no agent picked up)</li><li>🔁 Transferred (to human agent)</li></ul><p>I used <strong>Asterisk’s AMI (Asterisk Manager Interface)</strong> — a socket-based API that streams live call events — to feed real-time data into the dashboard. Every time a call changed state (answered, transferred, ended), AMI fired an event and the dashboard updated instantly.</p><h3>Call Recording and Playback</h3><p>All calls were automatically recorded using Asterisk’s built-in MixMonitor feature and stored as audio files. The dashboard gave the support team a simple UI to browse, filter by date or status, and play back any recorded call.</p><h3>What I Learned Building This Alone</h3><p><strong>1. Phone audio is not microphone audio.</strong> Everything you know about audio quality from web projects goes out the window. 8000 Hz, mono, heavy compression — you have to design around it.</p><p><strong>2. AI response length matters more than quality for voice.</strong> A perfectly accurate 200-word answer is useless on a phone call. The AI prompt must explicitly constrain response length.</p><p><strong>3. Silence is a feature, not a bug.</strong> Getting silence detection thresholds right — on both the STT input side and the TTS pause side — made the difference between the agent feeling natural and feeling like a broken IVR.</p><p><strong>4. Data quality is everything.</strong> The knowledge base I received had inconsistent formatting and some duplicate entries. Cleaning that data was 30% of the total work — garbage in, garbage out applies even more strictly when AI is speaking to real users.</p><p><strong>5. Test with real phone calls early.</strong> The system worked perfectly in local testing. On actual phone calls, background noise revealed three bugs I had never seen in a controlled environment.</p><h3>Final System Overview</h3><p>Component Technology Used PBX / Telephony Asterisk + FreePBX Call Scripting Python AGI Speech-to-Text Google Cloud STT Audio Processing SoX AI / LLM OpenAI GPT-4o-mini Knowledge Base Company-provided Q&amp;A dataset Text-to-Speech Google TTS (gTTS) Agent Mobile App SIP client (Zoiper/Linphone) Dashboard Python + real-time AMI events Call Recording Asterisk MixMonitor</p><h3>Wrapping Up</h3><p>Building this system as a solo developer taught me that production AI is far less about the AI model itself and far more about the plumbing around it — audio quality, latency, data preparation, and graceful fallback when the AI doesn’t know the answer.</p><p>The most rewarding moment was watching the first real call go through — a user called, the AI answered, understood the question, found the right answer from our knowledge base, and spoke it back clearly. No human involved.</p><p>If you’re thinking about building something similar, start small: get Asterisk running locally, write a basic AGI script that just records and plays back audio, then layer in the AI piece once the telephony is solid.</p><p><em>I’m Khushi Pandya, a software engineer working on AI-driven backends, voice systems, and developer tooling. Find me on </em><a href="https://medium.com/@khushihp7903"><em>Medium</em></a><em> | </em><a href="https://github.com/khushi-79"><em>GitHub</em></a><em> | </em><a href="https://linkedin.com/in/khushi-pandya"><em>LinkedIn</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=780c86419419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey into Generative AI: Earning Google Cloud Badges and Building Real-World Applications]]></title>
            <link>https://medium.com/@khushihp7903/my-journey-into-generative-ai-earning-google-cloud-badges-and-building-real-world-applications-91a9fbe18f67?source=rss-8f6449c2c4e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/91a9fbe18f67</guid>
            <dc:creator><![CDATA[Khushi Pandya]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 17:20:21 GMT</pubDate>
            <atom:updated>2025-08-30T17:20:21.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>As a tech enthusiast and learner from <strong>Rajkot, Gujarat, India</strong>, I’ve always been fascinated by the rapid advancements in Artificial Intelligence. Recently, I embarked on an incredible journey through the <strong>Gen AI Exchange Program</strong>, a collaborative initiative by Google and Hack2skill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2Xj3oMGNufXgGOLZDFceg.png" /></figure><p>This program wasn’t just about theoretical learning; it provided hands-on experience that culminated in earning several valuable Google Cloud skill badges. These badges represent my deep dive into the practical applications of Generative AI, a field that’s reshaping our technological landscape.</p><p>In this blog post, I’d like to share my experience, the key technologies I mastered, and why these skills are crucial for anyone looking to make an impact in the world of AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xdfPi5SJwdpR-X51.png" /><figcaption>Google Cloud Console</figcaption></figure><h3>Diving Deep into Generative AI with Google Cloud Badges</h3><p>The Gen AI Exchange Program is meticulously designed, covering fundamental to advanced concepts. Each badge I earned signifies a specific skill set and proficiency in critical Generative AI tools and techniques.</p><h4>1. Explore Generative AI with the Vertex AI Gemini API</h4><p><strong>The Skill:</strong> This badge was my entry point into the powerful world of Google’s <strong>Gemini API</strong> on <strong>Vertex AI</strong>. It focused on understanding how to interact with large language models (LLMs) and multi-modal models programmatically. I learned to send prompts, receive responses, and explore the vast capabilities of Gemini for various tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*ovzBW9nygOziqf1U.png" /></figure><p><strong>Why it’s Important:</strong> The Gemini API is at the forefront of AI development. Mastering it means I can integrate advanced conversational AI, content generation, and sophisticated reasoning into applications. Vertex AI provides a unified platform for MLOps, making model deployment and management seamless.</p><h4>2. Prompt Design in Vertex AI</h4><p><strong>The Skill:</strong> Crafting effective prompts is an art and a science. This badge honed my ability to design prompts that yield accurate, creative, and relevant outputs from Generative AI models. It covered techniques like few-shot prompting, chain-of-thought, and understanding model biases to get the best results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*svXpCp2Jw-l373Ez.png" /></figure><p><strong>Why it’s Important:</strong> Poor prompt design can lead to irrelevant or hallucinated outputs. With strong prompt engineering skills, I can unlock the full potential of LLMs, ensuring that the AI assists effectively in tasks ranging from content creation to complex problem-solving. This is a crucial skill for anyone working with Generative AI today.</p><h4>3. Inspect Rich Documents with Gemini Multimodality and Multimodal RAG</h4><p><strong>The Skill:</strong> This badge delved into <strong>multimodality</strong> — the ability of AI models like Gemini to understand and process various types of data, including text, images, and even audio. I learned about <strong>Multimodal RAG (Retrieval-Augmented Generation)</strong>, a technique that combines the power of LLMs with external knowledge bases to provide more accurate and contextually rich responses from diverse document types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>Why it’s Important:</strong> Real-world data is rarely just text. Multimodal RAG allows AI systems to interpret complex documents (e.g., reports with charts and images), leading to more intelligent information retrieval and generation. This is essential for building robust enterprise AI solutions that can truly understand and act upon varied business data.</p><h4>4. Develop GenAI Apps with Gemini and Streamlit</h4><p><strong>The Skill:</strong> This was where theoretical knowledge met practical application. I learned how to build interactive Generative AI applications using <strong>Streamlit</strong>, a popular Python library for creating web apps, integrated with the Gemini API. This involved creating user interfaces, handling user input, and displaying AI-generated content in a user-friendly manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*3JiNJf3vgTSAPofw.png" /></figure><p><strong>Why it’s Important:</strong> Being able to <strong>develop functional Gen AI applications</strong> is key to bringing these powerful models to end-users. Streamlit’s simplicity allows for rapid prototyping and deployment, enabling developers to quickly demonstrate and deploy AI solutions, bridging the gap between model development and practical utility.</p><p><strong>Why it’s Important:</strong> Being able to <strong>develop functional Gen AI applications</strong> is key to bringing these powerful models to end-users. Streamlit’s simplicity allows for rapid prototyping and deployment, enabling developers to quickly demonstrate and deploy AI solutions, bridging the gap between model development and practical utility.</p><h4>5. Build Real World AI Applications with Gemini and Imagen</h4><p><strong>The Skill:</strong> This badge was a highlight, focusing on integrating <strong>Gemini</strong> (for text and reasoning) with <strong>Imagen</strong> (Google’s advanced text-to-image model) to build comprehensive AI applications. I explored how to generate high-quality images from text descriptions and combine this with the conversational abilities of Gemini to create truly multimodal experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*HR324rNfdwxmZ467.png" /></figure><p><strong>Why it’s Important:</strong> The ability to generate realistic and creative images on demand opens up vast possibilities in design, marketing, content creation, and entertainment. By combining Gemini and Imagen, I can build applications that not only understand and generate text but also create compelling visual content, moving towards truly immersive AI experiences.</p><h3>Why These Skills Matter for the Future</h3><p>The rapid evolution of Generative AI means that skills in platforms like Google Cloud’s Vertex AI, models like Gemini and Imagen, and development tools like Streamlit are no longer niche — they are becoming fundamental.</p><ul><li><strong>Innovation:</strong> These technologies empower developers to create novel solutions across industries, from automating content generation to revolutionizing customer service and data analysis.</li><li><strong>Career Growth:</strong> As organizations increasingly adopt AI, professionals with hands-on experience in these cutting-edge tools will be highly sought after.</li><li><strong>Problem Solving:</strong> Generative AI provides powerful new ways to approach complex problems, offering creative solutions that were previously unimaginable.</li></ul><h3>My Continuing Journey</h3><p>Earning these badges through the Gen AI Exchange Program has been an incredibly rewarding experience, solidifying my foundational understanding and practical skills in Generative AI. I’m excited to apply this knowledge to real-world challenges and contribute to the vibrant AI community.</p><p>I’m truly <strong>looking forward to learning even more</strong> and diving deeper into the endless possibilities that Generative AI offers! This is just the beginning of my journey in building the future with AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91a9fbe18f67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Image Segmentation with the Region Growing Algorithm]]></title>
            <link>https://medium.com/@khushihp7903/exploring-image-segmentation-with-the-region-growing-algorithm-4972dae63680?source=rss-8f6449c2c4e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4972dae63680</guid>
            <category><![CDATA[segmentation]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[image-segmentation]]></category>
            <category><![CDATA[region-growing]]></category>
            <dc:creator><![CDATA[Khushi Pandya]]></dc:creator>
            <pubDate>Fri, 19 Apr 2024 05:58:28 GMT</pubDate>
            <atom:updated>2024-04-19T05:59:42.684Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Region growing breaks down images into distinct areas.</strong> It starts by picking individual pixels (seeds) and then incorporates their neighbors that share similar characteristics, like color or intensity. This process continues until well-defined regions emerge, making it a simple yet effective segmentation technique.</p><p>Logic behind region growing algorithm is <strong>principle of similarity.</strong></p><p>Principle of similarity states that region is coherent if all pixels of that region are homogeneous. Similarity of regions is used as the main segmentation criterion in region growing. (choice of criteria affects segmentation results dramatically!)</p><ul><li>Gray level</li><li>Color</li><li>Texture</li><li>Shape</li><li>Model etc.</li></ul><p>Major steps of region growing algorithm are:</p><ol><li>Selection of initial seed</li><li>Seed growing criteria</li><li>Termination of segmentation process</li></ol><p>For example, from one image, select one pixel p1 as an RGB value (91,134,234) and one pixel p2 as an RGB value (231,105,100). Now check whether these two pixels are similar to each other or homogeneous.We will check using <strong>Euclidean distance, </strong>and distance is represented as d (p1, p2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*lXR3CMX8cK8kOAOjj2wVjQ.png" /></figure><p>Putting each pixel value into a formula and calculating the distance between two pixels. The answer here is approximately 195.951 units. Then, the user must define a homogeneity <strong>threshold (T) </strong>between pixels. If the distance is less than or equal to the threshold, then pixels are homogeneous; if the distance is greater than the threshold value, then pixels are not homogeneous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*wNRohG7KzbFmMgDTd-qOhg.png" /></figure><p>Similarly, do more initial seed points, choose the threshold value wisely, and compute the similarity region from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*esM5Gr7xMDU5E-AK.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*7ZcWRbBrvuLMxG17rxnqjQ.png" /><figcaption>Visual example of region growing algorithm</figcaption></figure><p>This algorithm has some issue for segmentation,</p><p>- <strong>Seed Point Selection</strong>: Seed points are chosen based on user preference. For instance, in a grayscale lightning image, seed points might be selected from the highest range of the histogram to segment lightning from the background.</p><p>- <strong>Image Information:</strong> Understanding pixel connectivity and adjacency helps determine appropriate thresholds and seed points for segmentation.</p><p>- <strong>Minimum Area Threshold: </strong>Ensures no segmented region in the result is smaller than this specified threshold.</p><p>- <strong>Similarity Threshold:</strong> Determines if regions are considered the same based on pixel value differences or average grayscale differences within a set of pixels. Regions with differences less than this threshold are considered homogeneous.</p><h4><strong>Advantages and Disadvantages</strong></h4><p><strong>Advantages:</strong> <br>- Can accurately divide regions with the same attributes we specify. <br>- Can give original photos with crisp edges and good segmentation results. <br>- Simple concept: we only need a few seed points to symbolize the desired attribute, and then we can expand the region. <br>- We can specify the seed points and criteria we want to use. <br>- Can select many criteria at the same time.</p><p><strong>Disadvantages:</strong> <br>- Unless a threshold function has been applied to the image, there may be a continuous trail of color-related dots connecting any two points in the image. <br>- Practically random memory access slows down the method, therefore adaptation may be necessary.</p><h4><strong>Applications:</strong></h4><ul><li><strong>Object tracking and shape analysis:</strong> By segmenting objects in an image sequence, the region growing algorithm can track their movement and analyze their shape changes. This is useful in applications like video surveillance or medical imaging.</li><li><strong>Medical image analysis:</strong> In medical images, the algorithm can segment organs, tumors, or other structures with similar intensity or texture. This helps doctors diagnose diseases.</li></ul><figure><img alt="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.mdpi.com%2F2313-433X%2F7%2F2%2F22&amp;psig=AOvVaw0rkvheC8C2NoRvmRN4M3Gd&amp;ust=1713584431350000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBIQjRxqFwoTCKD3ra-tzYUDFQAAAAAdAAAAABAh" src="https://cdn-images-1.medium.com/max/906/1*oUGNCU-xlWaoCn1GTetQ7w.png" /><figcaption>Tumor identified</figcaption></figure><ul><li><strong>Agriculture area segmentation:</strong> It can segment fields, crops, and weeds based on their color or texture in aerial imagery. This information can be used to assess crop health, monitor yields, and optimize fertilizer application.</li><li><strong>Self-driving cars:</strong> Segmenting lanes, traffic signs, and pedestrians for safe navigation.</li></ul><figure><img alt="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fsweta-nit.medium.com%2Fhow-semantic-segmentation-are-used-in-autonomous-vehicles-585d2bf404c9&amp;psig=AOvVaw073Ferndyyd5EPEoBrLOtE&amp;ust=1713585462807000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBIQjRxqFwoTCPjP_6CxzYUDFQAAAAAdAAAAABAR" src="https://cdn-images-1.medium.com/max/716/0*Sd9BLUyxn8INeP9L.jpeg" /><figcaption>objects (vehicles) identified</figcaption></figure><ul><li><strong>Satellite imagery analysis:</strong> Identifying different land cover types (forests, water bodies, etc.) for environmental monitoring.</li><li><strong>Material defect detection:</strong> Detecting cracks or flaws in materials by segmenting regions with unusual texture or intensity.</li></ul><p>In conclusion, region growing offers a flexible approach to image segmentation by leveraging seed point selection and homogeneity criteria, enabling accurate delineation of regions based on specified attributes like color, texture, or shape.</p><p>Despite its advantages in producing crisp segmentation results with minimal seed points, region growing can encounter challenges with memory efficiency and may require adaptation to optimize performance in practical applications.</p><h4>References:</h4><ul><li><a href="https://sbme-tutorials.github.io/2019/cv/notes/6_week6.html#region-seed-growing-segmentation">Week 6: Region Growing and Clustering Segmentation)</a></li><li><a href="https://en.wikipedia.org/wiki/Region_growing">Region growing - Wikipedia</a></li><li><a href="https://deeplobe.ai/image-segmentation-the-most-interesting-applications/">Image Segmentation: The Most Interesting Applications - DeepLobe</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4972dae63680" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NeuroDeep : The Connection between Neuroscience and Deep Learning]]></title>
            <link>https://medium.com/@khushihp7903/neurodeep-the-connection-between-neuroscience-and-deep-learning-a1eeb158f2ed?source=rss-8f6449c2c4e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1eeb158f2ed</guid>
            <dc:creator><![CDATA[Khushi Pandya]]></dc:creator>
            <pubDate>Thu, 02 Nov 2023 11:44:48 GMT</pubDate>
            <atom:updated>2023-11-02T11:44:48.564Z</atom:updated>
            <content:encoded><![CDATA[<h3>NeuroDeep : The Connection between Neuroscience and Deep Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntMc1XVQPUUfWFOn5HCawQ.jpeg" /><figcaption>The future of mind-machine communication.</figcaption></figure><blockquote>“In the dance between neurons and algorithms, neuroscience whispers secrets, and deep learning translates them into artificial intelligence, forging a bridge between the biological and the digital realms.”</blockquote><p>Neuroscience, the scientific study of the human brain and its intricate neural networks, has emerged as a profound source of inspiration for the world of deep learning. At its core, deep learning seeks to replicate the brain’s remarkable capacity for understanding, learning, and decision-making in machines. By going into the inner workings of the brain, researchers have gained insights that shape the very algorithms and architectures that power modern AI. In this exploration, we’ll uncover how neuroscience has not only inspired but continues to inform the evolution of deep learning, driving us closer to unlocking the full potential of artificial intelligence.</p><p><strong>Neural networks are the building blocks of the brain and AI</strong>. They are interconnected nodes that transmit signals to each other. Artificial neural networks are inspired by biological neural networks and are trained to perform tasks by being given examples of inputs and outputs. <em>Neurons</em> are connected to each other at synapses, which are specialized junctions where signals are transmitted from one neuron to another. The strength of a synapse is determined by how often it is used, and this process is called synaptic plasticity. Synaptic plasticity is the basis for learning and memory in the brain.</p><p>Deep neural networks (DNNs) are a type of artificial neural network that have multiple layers of neurons. Each layer of neurons takes the output of the previous layer as its input. The first layer of neurons in a DNN is called the input layer, and the last layer of neurons is called the output layer. The layers in between the input layer and the output layer are called hidden layers. Neurons in a DNN are typically connected in a feedforward manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qk2Nvjn11tZ3gn_l.png" /><figcaption>Layers of Deep learning model</figcaption></figure><p>Here is a simplified example of the architecture of a deep neural network for image classification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*tY5Cq3w0_HOvFO6FpA9cgA.png" /></figure><p>The input layer neurons represent the pixel values of the image. The hidden layer neurons learn to extract features from the image, such as edges, shapes, and colors. The output layer neurons then classify the image into one of 10 classes.</p><p>Here are some specific examples of how deep learning architectures relate to different aspects of neuroscience:</p><ul><li><strong>CNNs and the visual cortex:</strong> The architecture of CNNs is inspired by the structure and function of the visual cortex. The visual cortex is made up of a series of layers of neurons, each of which specializes in extracting different features from visual images. The above visual cortex acts as layers of the CNN. CNN is very effective to analyze scenarios as Edge Detection, Face Detection, In-variance detection (i.e. Rotated Face Detection, Large or Small Face Detection), image classification tasks, such as identifying objects in images.</li></ul><figure><img alt="https://medium.com/@gopalkalpande/biological-inspiration-of-convolutional-neural-network-cnn-9419668898ac" src="https://cdn-images-1.medium.com/max/772/1*TquZHkNsv2j7cb2N_ZGlAg.png" /><figcaption>Working of visual cortex and CNN seems similar</figcaption></figure><ul><li><strong>RNNs and the hippocampus:</strong> The hippocampus is a small, curved organ in the brain that’s part of the limbic system. The hippocampus is primarily associated with memory, especially long-term memory. It also plays a role in: Learning, Emotions, Spatial processing, Navigation, Perception of space. The hippocampus is made up of a network of neurons that are interconnected in a way that is similar to the architecture of RNNs. Neuronal activity in the hippocampus is thought to underpin concept association and decision-making in mammals via recurrent neural networks (RNNs) also be effective at tasks that involve sequential data, such as natural language processing and speech recognition.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*v-UqgzpdDKQ4UgGl.jpg" /><figcaption>Hippocampus and RNN</figcaption></figure><p>More deep learning models, including Convolutional Neural Networks (CNNs), excel in <strong>image recognition and object detection</strong>, while Recurrent Neural Networks (RNNs) and Long Short-Term Memory networks (LSTMs) find their forte in <strong>natural language processing</strong> tasks like language modeling and machine translation. <strong>Deep reinforcement learning models</strong> mirror the principles of brain-based reinforcement, learning to adapt in various environments by associating actions with rewards. <strong>Brain-Computer Interfaces (BCIs)</strong> offer the unique ability to control external devices using one’s thoughts, with deep learning enhancing their performance by decoding brain signals. Additionally, the field of <strong>neuromorphic computing</strong> aims to emulate the brain’s structure and function in both hardware and software, with deep learning playing a pivotal role in the development of neuromorphic systems that simulate brain-like computation.</p><p><strong>Challenges in Connecting Neuroscience and Deep Learning</strong></p><p>Connecting neuroscience and deep learning is challenging due to, interdisciplinary divide, <strong>data integration challenges,</strong> <strong>transfer of learning difficulties</strong>, biological vs. artificial neuron differences, and ethical and privacy concerns.</p><p><strong>Potential areas of growth</strong></p><p><strong>Neuromorphic computing and BCIs </strong>are emerging technologies that leverage deep learning to bridge the gap between neuroscience and engineering, with the potential to revolutionize our understanding of the brain, develop new treatments for neurological disorders, and significantly assist individuals with paralysis.</p><p><strong>The Future of Deep Learning and Neuroscience</strong></p><p>Deep learning and neuroscience are rapidly advancing fields with the potential to revolutionize our understanding of the brain and develop <strong>new treatments for neurological disorders.</strong> One promising research direction is the development of <strong>deep learning models</strong> that can learn from both neuroscience data and real-world data. This could lead to new insights into how the brain works and the development of new treatments for neurological disorders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dJFh2xftmiFdz5C2.jpeg" /><figcaption>Neuromorphic computing: Simulating the brain with deep learning.</figcaption></figure><p><strong>Conclusion</strong></p><p>The integration of deep learning and neuroscience opens a gateway to pioneering advancements in both fields. As we struggle to emulate the brain’s cognitive prowess, we unveil insights that shape AI algorithms and drive us toward unlocking the full potential of artificial intelligence. The synergy between deep learning and neuroscience not only informs the development of innovative technologies like neuromorphic computing and Brain-Computer Interfaces but also promises to revolutionize our understanding of the brain and the treatment of neurological disorders. Embracing interdisciplinary collaboration and addressing challenges will be essential on this exciting journey, as we witness the profound impact of this evolving relationship on science, technology, and healthcare.</p><p><strong>References</strong></p><ul><li><a href="https://medium.com/@gopalkalpande/biological-inspiration-of-convolutional-neural-network-cnn-9419668898ac">Biological Inspiration of Convolutional Neural Network (CNN)</a></li><li><a href="https://ieeexplore.ieee.org/document/9180513">A Spiking Recurrent Neural Network with Phase Change Memory Synapses for Decision Making</a></li><li><a href="https://www.sciencedirect.com/science/article/abs/pii/S0165027019301463">A hybrid Convolutional and Recurrent Neural Network for Hippocampus Analysis in Alzheimer&#39;s Disease</a></li><li><a href="https://www.frontiersin.org/articles/10.3389/fncom.2016.00094/full">Toward an Integration of Deep Learning and Neuroscience</a></li><li><a href="https://www.simplilearn.com/tutorials/deep-learning-tutorial/deep-learning-algorithm">Top 10 Deep Learning Algorithms You Should Know in 2023</a></li><li><a href="https://www.knowledgehut.com/blog/data-science/deep-learning-future">The Future of Deep Learning: Predictions and Opportunities</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1eeb158f2ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>