<?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 Dijin Dominic on Medium]]></title>
        <description><![CDATA[Stories by Dijin Dominic on Medium]]></description>
        <link>https://medium.com/@dijdomv01?source=rss-a46eeb0ef3e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N7swehiHIdi1kNrUX0e_5Q.jpeg</url>
            <title>Stories by Dijin Dominic on Medium</title>
            <link>https://medium.com/@dijdomv01?source=rss-a46eeb0ef3e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:18:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dijdomv01/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[Vibe Coding: Ming AI.]]></title>
            <link>https://medium.com/@dijdomv01/vibe-coding-ming-ai-a6390a8d47aa?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6390a8d47aa</guid>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 09:15:29 GMT</pubDate>
            <atom:updated>2025-09-20T18:33:52.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDvqzY_-MP6QJh6teNM9aQ.png" /><figcaption>Screenshot from the app developed.</figcaption></figure><p>My experience building a personalized AI companion in a day at Google, Bangalore.<br>The vibe was definitely checked and coded this past Saturday, September 20th, 2025, at the incredible Google campus in Kyoto West Bagmane, Bangalore. I want to start with a deep thank you to the <a href="https://www.meetup.com/deeptechstars/">Deep Tech Stars community</a> for organizing the Vibe Coding Hackathon with Firebase Studio &amp; Gemini.</p><p>I feel incredibly humbled to have been a part of this event. It was a whirlwind of coding, creativity, and collaboration. There’s no feeling quite like working intensely on an idea you’re passionate about and seeing it come to life as a functional product by the end of the day.</p><p>Before we dive into the details, here are the links to the project:</p><p>GitHub Repository: <a href="https://github.com/Dij-dom/myapp.git">https://github.com/Dij-dom/myapp.git</a></p><p>Working Demo: <a href="https://drive.google.com/file/d/1_lA05XwPUOeap_OWaKjOqotJiAIKZjcN/view?usp=sharing">Watch the Video Here</a></p><p>Live App: Experience <a href="https://mellow-nasturtium-7cd661.netlify.app/">MingAI Here</a></p><p><strong>Introducing MingAI 🧠✨</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tP8x6I1WSBW0jPQo__bMmQ.png" /><figcaption>Adding the tasks</figcaption></figure><p>I am a person who is really passionate about healthcare and building personalized products that make an individual’s life better. This hackathon was the perfect catalyst to build an application inspired by that passion. So, let me introduce you to MingAI.</p><p>“<em>Upgrade your lifestyle with personalized guidance — your buddy who keeps you on track, every step of the way.</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuI95Mm15d-N8m5Bp16j0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QbIXvTKqNiXRRnIvbp9SQ.png" /><figcaption>Reviewing and editing the tasks powered by Gemini 2.5 flash.</figcaption></figure><p>Staying consistent with daily goals is tough in today’s fast-paced world. <strong>MingAI</strong> is your personalized AI companion that helps you plan, track, and improve your habits every day.</p><p>Each night, you set up to five tasks, and MingAI refines them into actionable, achievable steps using smart AI guidance. You review and approve the suggestions, keeping full control, while MingAI acts as a coach that learns from your progress.</p><p>With reminders, progress tracking, and a conversational interface, MingAI turns your goals into daily wins — it’s the buddy who keeps you accountable, motivated, and moving forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6959hy4pDVJXO4qIDmlNQ.png" /><figcaption>Centralized dashbaord to add more task when needed.</figcaption></figure><p><strong>Key Features We Built</strong><br><em>🔐 Secure Authentication &amp; User State Retention</em><br>Firebase Authentication: MingAI uses Firebase for secure and reliable user authentication (Sign In &amp; Sign Up).</p><p>Persistent Sessions: Your session is securely maintained, so you stay logged in and your data is always accessible.</p><p>Real-time Database Sync: We used Firebase Realtime Database to store and sync daily plans. Data is saved automatically and is available instantly, ensuring a seamless user experience.</p><p>🧠<strong> Intelligent Task Processing with Google Gemini</strong><br>Dynamic Task Generation: The core of MingAI is powered by a Genkit flow that calls the Google Gemini model. This is where vague goals are transformed into clear, actionable steps.</p><p>Personalized Suggestions: A “Daily Review” feature feeds performance data back into Gemini to generate targeted advice, helping users overcome obstacles and build better habits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*angJfIBK1FnRyv0qR7D00Q.png" /><figcaption>Daily Review Section</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05ijro8oo6_pFLpPqwmLJw.png" /><figcaption>Getting meaningful AI suggestions.</figcaption></figure><p>🎨 <strong>Modern &amp; Responsive User Interface</strong><br>Built with Next.js &amp; ShadCN UI: The frontend is a fast, server-rendered React application built with the Next.js App Router.</p><p>Dynamic Theming: Features a beautiful, animated gradient background that adapts seamlessly to both Light and Dark modes.</p><p>Fully Responsive: A clean, intuitive, and mobile-first design ensures a great experience on any device.</p><p><strong>The Technology Stack</strong><br>Here’s a look at the technologies that powered MingAI during the hackathon:</p><p><em>Framework</em>: Next.js (App Router)</p><p><em>Styling</em>: Tailwind CSS &amp; ShadCN UI</p><p><em>Authentication</em>: Firebase Authentication</p><p><em>Database</em>: Firebase Realtime Database</p><p><em>AI Integration</em>: Google AI (Gemini) via Genkit. We specifically used gemini-2.5-flash with a fine-tuned prompt and set the temperature parameter to 0.2 for better consistency in the AI-generated responses.</p><p>This hackathon was an amazing experience, not just for the opportunity to build a project I care about, but also for the chance to work with powerful, cutting-edge tools. Thank you again to everyone involved!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6390a8d47aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attention is all you need]]></title>
            <link>https://medium.com/@dijdomv01/attention-is-all-you-need-cb40d277acc6?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb40d277acc6</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[self-attention-mechanism]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 11:13:30 GMT</pubDate>
            <atom:updated>2025-06-17T11:13:30.355Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Every Token Wants You to Know</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*XokGhEIEcu0Or18S0rKujA.png" /></figure><p>Isn’t that what we all seek in life — <strong>to be seen, to be heard, to be loved</strong>? Attention drives so much of human behavior.</p><p>But don’t worry — this isn’t a philosophical or psychological blog.</p><p>I’m here to talk about <strong>attention in the world of Natural Language Processing (NLP)</strong> — and how a single idea from a 2017 paper titled <em>“</em><a href="https://arxiv.org/abs/1706.03762"><em>Attention Is All You Need</em></a><em>”</em> flipped the AI landscape upside down</p><p>In this blog, I’ll share my understanding and key use cases for attention in NLP.</p><h4>What Is Attention?</h4><p>Imagine reading a long sentence but only focusing on the most meaningful words to understand its intent.<br> That’s <strong>attention</strong> — a method that allows a model to selectively <strong>focus on relevant parts of the input</strong> when making predictions or generating text.</p><p>It’s like <strong>Google Maps for meaning</strong> — helping the model navigate which parts of a sentence (or even a paragraph) are most useful. Unlike RNNs, which have to remember long histories, attention lets models jump to the most relevant context instantly. It’s the backbone of models like BERT, GPT, and other LLMs.</p><p>Have you ever wondered how an LLM understands the random prompts we give it?</p><p>The answer is through <strong>attention</strong> — specifically, <strong>self-attention</strong>, which is the foundational mechanism behind how LLMs process and understand language.</p><h4>Let’s break it down</h4><h4>1. Tokens, not words</h4><p>First, your input is broken into <strong>tokens. </strong>Tokens can be a word, sentence, sub-word or even a character.</p><h4>2. Embeddings</h4><p>Each token is converted into a <strong>vector</strong> using something called an <strong>embedding layer</strong>, which gives the model a numerical representation of the word’s meaning.</p><p>Let’s see an example</p><p>Check out this site here: <a href="https://tiktokenizer.vercel.app/">Tiktokenizer</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z36lrPuob4TZVVb-VkswZw.png" /></figure><p>See, how a sentence is read by the LLM Llama. You can play with how different model tokens varies. For each model, the vectorization method can be different. It’s always better to chose an embedding model based on the domain we work on.</p><p>There can be a confusion regarding vectorization and embedding. <strong>Vectorization</strong> is the general process of converting data into numerical vectors, while <strong>embedding</strong> is a learned, dense vector representation that captures semantic meaning. That is, <a href="https://tiktokenizer.vercel.app/">Tiktokenizer</a> turns sentences into pieces of text (tokens) whereas Embedding model (like BERT) turns sentences or tokens into meaningful dense vectors.</p><h4>3. Self-Attention = Understanding Context</h4><p>Now comes the magic.<br>The model applies <strong>self-attention</strong>, where every token <strong>looks at all other tokens</strong> and decides:</p><p><em>“Which other words should I pay attention to, and how much?”</em></p><p>This is where the model <strong>understands context</strong>, like:</p><ul><li>“it” in “The dog chased the cat because it was fast” refers to <strong>“cat”</strong>, not <strong>“dog”</strong> (hopefully).</li></ul><h3>What happens under the hood when we give a prompt?</h3><p>In simple words, You give the model</p><blockquote>sentence → it converts it into math → uses pattern-recognition layers to understand and reason → generates one word at a time → and finally stitches the words back into readable text.</blockquote><p>But again how is it done?</p><p>Here comes the architecture of Transformers to understand clearly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*VAHFSVWVut7iBqZqPGTjlQ.png" /><figcaption>Transformer Architecture from the paper Attention is all you need.</figcaption></figure><p>Let’s delve deep into the architecture of Transformers.</p><p>The <strong>Transformer</strong> is a deep learning architecture that completely revolutionized how machines understand and generate language.<br>Unlike older models (like RNNs, LSTMs), it <strong>doesn’t read text one word at a time</strong> — instead, it looks at the whole sentence (or paragraph) at once using <strong>attention</strong>.</p><p>A <strong>Transformer</strong> is made up of two main components:</p><ol><li>Encoder: Reads and understands the input (e.g., a sentence in English</li></ol><p>Encoder does the following tasks:</p><ul><li><strong>Tokenizes input</strong> into smaller pieces (like subwords or words).</li><li><strong>Converts each token into a vector</strong> (via embeddings).</li><li><strong>Adds positional information</strong> (so the model knows the order of words).</li><li><strong>Passes it through multiple encoder layers</strong>, each of which uses <strong>self-attention</strong> to understand how each word relates to the others.</li><li>Applies a <strong>feed-forward neural network</strong> to refine its understanding.</li></ul><p>2. Decoder: Generates the output</p><ul><li>It gets the already-generated tokens (starting with a special &lt;start&gt; token).</li><li>Applies <strong>masked self-attention</strong> (so it can’t peek into the future — it only sees what it’s generated so far).</li><li>Uses <strong>cross-attention</strong> to look at the encoder output — this is how it “understands” the input sentence.</li><li>Outputs a probability distribution over possible next tokens.</li><li>Repeats the process until a complete sentence is formed or an &lt;end&gt; token is generated.</li></ul><p>Think of the transformer as a classroom.</p><ul><li><strong>Encoder:</strong> A student reading and deeply understanding a textbook.</li><li><strong>Decoder:</strong> The same student writing an answer based on what they understood.</li><li><strong>Attention:</strong> The student focusing on the most important parts of the book to write the answer.</li></ul><p>Now we have understood the basic flow of transformers and related models developed after it, let’s come back to 2017 and find what was the use of Transformers back then.</p><h4>Why Transformers?</h4><p>Transformers overcame the limitations of RNNs and LSTMs by allowing <strong>parallel processing of entire input sequences</strong>, unlike the sequential nature of RNNs which slowed down training. They also used self-attention to <strong>capture long-range dependencies</strong> more effectively, avoiding issues like vanishing gradients and limited context windows.</p><p><strong>How come transformers give rise to LLM?</strong></p><p>Transformers was first developed to address the issue with language translation. Specifically to overcome the limitations of RNNs (Recurrent Neural Networks) and their variants like LSTMs and GRUs.</p><p>Let’s see what happened before and after transformers.</p><p>Before Transformers:</p><ul><li>Models like <a href="https://arxiv.org/abs/1409.3215"><strong>seq2seq</strong></a><strong> with attention(2014) </strong>were already an improvement over vanilla RNNs.</li><li>However, they still struggled with long-range dependencies, were <strong>slow to train</strong> due to sequential computation, and had trouble capturing context efficiently.</li></ul><p>After Transformers:</p><ul><li><strong>Parallelization architecture</strong> (no recurrence),</li><li><strong>Self-attention</strong> to capture dependencies regardless of position.</li><li>And <strong>positional encoding</strong> to retain word order.</li></ul><p>As a result, massive improvements in <strong>translation quality, speed, and scalability</strong>.</p><p>It all started with the problem: <strong>how to translate one language to another more effectively</strong>.</p><p>The research wasn’t just a fix — it was a <strong>paradigm shift</strong>. Are you thinking how come a translation job gave rise to the LLMs we have now?</p><h4>From Translation to LLMs: The Evolution</h4><p><strong>Translation was the gateway.</strong></p><ul><li>Transformers used <strong>attention mechanisms</strong> to determine which words mattered most in a sentence, capturing meaning better than ever before.</li><li>They processed entire sequences at once, unlike RNNs that went step-by-step.</li></ul><p><strong>Researchers soon realized:</strong></p><ul><li>If attention can understand relationships between words in one sentence, it can understand relationships in <strong>any text</strong>.</li><li>Why limit it to translation?</li></ul><p><strong>This gave rise to:</strong></p><ul><li><strong>BERT</strong> (2018): Master of understanding text (fill-in-the-blank, sentiment, classification).</li><li><strong>GPT</strong> (2018 onward): Master of generating text (completions, essays, code, dialogue).</li></ul><p>Here’s something you need to know. BERT and GPT are transformer based models, but BERT is encoder only Transformer whereas GPT is decoder only Transformer.</p><p>This specific architecture gives the above models the following advantages.</p><p>Bert does Sentiment analysis, Named entity recognition, Question answering, Sentence similarity etc.. . whereas GPT does Autocompletion, Text generation, Chatbots, Story writing, Code generation etc … .</p><p>BERT (encoder) is like someone reading and deeply analyzing a paragraph, understanding every nuance and GPT (decoder) is like someone writing a sentence word-by-word, choosing the next word based only on what they’ve written so far.</p><p><strong>Scale changed everything.</strong></p><ul><li>More data + bigger models = <strong>emergent intelligence</strong>.</li><li>Example: GPT-2, GPT-3, GPT-4… all built on that same Transformer core, scaled up.</li></ul><h4>So yes — a humble translation problem led us here.</h4><p>To a world where machines:</p><ul><li>Write code and even develop an entire application on it’s own.</li><li>Summarize legal documents</li><li>Chat like humans</li></ul><p>And it all traces back to that <strong>brilliantly simple idea</strong>:</p><p><em>Let every word learn how much to care about every other word.</em></p><p>That’s attention. That’s the Transformer. That’s the birth of LLMs.</p><h4>What We Learned</h4><p>- Attention allows models to focus on relevant parts of a sequence.<br>- Transformers use attention to process sequences in parallel.<br>- BERT uses encoders (for understanding).<br>- GPT uses decoders (for generation).<br>- Modern LLMs are just scaled-up Transformer models.</p><blockquote>If you’re curious to explore further, here are two beautifully illustrated resources:</blockquote><blockquote><a href="https://jalammar.github.io/illustrated-transformer/">https://jalammar.github.io/illustrated-transformer/</a> <a href="https://erdem.pl/2021/05/introduction-to-attention-mechanism">https://erdem.pl/2021/05/introduction-to-attention-mechanism</a>.</blockquote><p>In the upcoming blogs we will be deeply diving into the realm of Large Language Models.</p><p>Stay tuned!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb40d277acc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VIBE CODING IS VIBING!!]]></title>
            <link>https://medium.com/@dijdomv01/vibe-coding-is-vibing-7e8914b3178a?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e8914b3178a</guid>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Sun, 30 Mar 2025 19:19:11 GMT</pubDate>
            <atom:updated>2025-03-30T19:22:08.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vm6RQN2hpsIQlEbarGF8XQ.png" /><figcaption>AI-generated image using DALL·E</figcaption></figure><p>The term “Vibe Coding” has been trending for a few days. Is it like AI is making the coding task vibe? I would say yes. But have you ever wondered how? Let me explain.</p><p>Vibe coding was the term introduced by Andrej Karpathy in February, 2025. This means that we generate code using artificial intelligence, making the developers&#39; tasks easier. Integrating an LLM model into our code editor will enhance our productivity, allowing developers to guide, test, and refine the AI-generated code.</p><p>As a fresher who is starting into the realm of data, I would strongly say no to this kind of code generation using AI. For example, creating a virtual environment in a project is something everyone does. As a fresher, it’s important to know how to do it, but if one depends on AI to do the task, what is the learning? An experienced person can use it since he may have done it many times and needed an escape from that repetitive task.</p><p>Hence, it’s important to define how and where we should use this integration. That being said, freshers can use it to ask for suggestions on their written code, learn from their mistakes, and become better coders. Every day, new features will emerge, but we should focus on how we can use this feature of AI and grow along with it.</p><p>Let’s make artificial intelligence our companion and our mentor in the learning process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e8914b3178a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Confusion Matrix really confusing?]]></title>
            <link>https://medium.com/@dijdomv01/is-confusion-matrix-really-confusing-5155b86aa9fd?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5155b86aa9fd</guid>
            <category><![CDATA[confusion-matrix]]></category>
            <category><![CDATA[classification-algorithms]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[accuracy]]></category>
            <category><![CDATA[model-performance]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 02:49:39 GMT</pubDate>
            <atom:updated>2024-12-23T02:49:39.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*3zjR7-Jz4NGAMk1QECCycw.png" /></figure><p>Even though we try to remember the confusion matrix and its related terms, at some point, the confusion matrix is really hard to explain.</p><p>Let’s deal with it.</p><p>A <strong>confusion matrix</strong> is a powerful tool in machine learning for evaluating the performance of a classification model. It is a table that contrasts the actual values (ground truth) with the predictions made by the model, providing insights into where the model excels and falters. Let’s break this down engagingly, turning technical terms into an approachable narrative.</p><p>Think of the confusion matrix as a storyteller with four boxes that reveal the outcomes of a classifier’s predictions. Here’s what each box represents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsG-IR8Ze7zVhtAi_iBEIw.png" /><figcaption>Image from evidentlyai.com</figcaption></figure><ul><li><strong>True Positive (TP):</strong><br>The model predicts “Positive,” and it’s <strong>correct</strong>. Think of diagnosing a disease: the model catches it, and the patient indeed has it.</li><li><strong>False Negative (FN):</strong><br>The model predicts “Negative,” but it’s <strong>wrong</strong>. It misses something critical. The patient has the disease, but the model says they’re fine.</li><li><strong>False Positive (FP):</strong><br>The model predicts “Positive,” but it’s <strong>wrong</strong>. It raises a false alarm, diagnosing a healthy person with a diseases.</li><li><strong>True Negative (TN):</strong><br>The model predicts “Negative,” and it’s <strong>correct</strong>. No disease, no false alarms. A perfect clean bill of health!</li></ul><h3>Key Metrics Derived From the Matrix</h3><ol><li><strong>Accuracy</strong><br>Proportion of correct predictions,</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*flLKIBnaUTCVlxymlb_WTQ.png" /></figure><p><strong>2. Precision</strong> (Positive Predictive Value)<br>Out of all the predicted positives, how many are correct?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*xpjF7d-TOjy1FmytQZoVLg.png" /></figure><p><strong>3. Recall (Sensitivity)</strong><br>Out of all the actual positives, how many did we catch?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*13XtOmqItgCbpQeaElj2kg.png" /></figure><p>​</p><p><strong>4. F1-Score</strong><br>Balances precision and recall. A harmonic mean of both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*2oFbEZmFMqOhL3uiVGJTZA.png" /></figure><h3>Type I and Type II Errors</h3><ol><li><strong>Type I Error (False Positive)</strong><br>It’s the alarm that shouldn’t have rung. Typical examples of Type 1 errors:</li></ol><p>Examples include:</p><ul><li>Identifying a non-spam message as spam.</li><li>Diagnosing a healthy person with a serious illness.</li></ul><ol><li><strong>Type II Error (False Negative)</strong><br>The silence when an alarm was needed. <strong>Type I Error</strong> is like a <strong>false alarm</strong>: we act when we don’t need to.</li></ol><p>Examples include:</p><ul><li>A critical disease goes unnoticed.</li><li>Ignoring an actual intruder in a building</li></ul><h3>When Does FN (False Negative) Matter More?</h3><p><strong>Healthcare</strong> is a domain where <strong>False Negatives</strong> are often far more critical. Missing a disease like cancer or heart conditions can have life-threatening consequences. It’s better to flag someone for further tests (even if it’s a false positive) than to miss diagnosing a critical condition. Here, <strong>recall</strong> becomes the primary focus.</p><h3>When Does FP (False Positive) Matter More?</h3><p>In contrast, <strong>False Positives</strong> can be more problematic in spam or fraud detection scenarios. Imagine flagging a legitimate user’s transaction as fraudulent or marking an important email as spam. In these cases, <strong>precision</strong> takes priority to reduce unnecessary disruptions.</p><h3>When F1-Score is Useful</h3><p>The F1-score is particularly helpful in scenarios where:</p><ol><li><strong>Imbalanced Datasets</strong>: When one class is significantly more frequent than the other (e.g., fraud detection, rare disease detection). Accuracy alone can be misleading in such cases, while the F1-score accounts for both Precision and Recall.</li><li><strong>Equal Importance of FP and FN</strong>: If the cost of False Positives and False Negatives is comparable, the F1-score helps balance the trade-off between the two.</li></ol><h3>Introducing the ROC-AUC from the Confusion Matrix</h3><p>The <strong>ROC-AUC (Receiver Operating Characteristic — Area Under the Curve)</strong> helps evaluate a classification model’s performance by showing how well it distinguishes between the positive and negative classes. It uses <strong>True Positive Rate (TPR) in y-axis </strong>and <strong>False Positive Rate (FPR) in x axis</strong>, which are calculated using values from the <strong>confusion matrix</strong>:</p><p><strong>True Positive Rate (TPR)</strong> or <strong>Recall</strong> or <strong>Sensitivity</strong></p><ul><li>It tells us how many actual positives were correctly predicted.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*Q3MspIFRq_KeolPRRiZtPA.png" /></figure><p><strong>False Positive Rate (FPR)</strong> or (1-Specificity)</p><ul><li>It tells us how many actual negatives were incorrectly classified as positives.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*qNAagLLnmESl0AH4-rPA2Q.png" /></figure><p>The ROC curve plots <strong>TPR vs. FPR</strong> at different decision thresholds (e.g., 0.2, 0.5, 0.8). A lower FPR is better (closer to 0) and represents how often the model falsely predicts positives. A higher TPR is better (closer to 1) and represents how well the model identifies actual positives.</p><h4>When to Use the ROC-AUC Curve</h4><p>The ROC-AUC curve is useful when:</p><ul><li>You want to measure <strong>how well your model ranks predictions</strong> (higher scores for true positives than false positives).</li><li>You have an <strong>imbalanced dataset</strong>, where accuracy might be misleading.</li><li>Both False Positives and False Negatives are important, and you want to evaluate the model’s performance across <strong>all thresholds</strong> instead of a single threshold.</li></ul><p>This blog is created to demystify the <strong>Confusion Matrix</strong>, which serves as the cornerstone for evaluating classification models. If you’ve ever found yourself puzzled by relating to r=examples while explaining terms like Accuracy, Precision, Recall, or F1-Score, fear not, simply refer back to this blog for clarity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5155b86aa9fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Using Git for Project Management in College]]></title>
            <link>https://medium.com/@dijdomv01/a-beginners-guide-to-using-git-for-project-management-in-college-6d05961b95a8?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d05961b95a8</guid>
            <category><![CDATA[version-control-with-git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 05:15:58 GMT</pubDate>
            <atom:updated>2024-10-09T05:15:58.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLNWbmAix7IWZ_zsXWaLiQ.jpeg" /><figcaption>Picture obtained from Unsplash</figcaption></figure><p>In today’s fast-paced academic environment, managing projects effectively can make all the difference. Git, a popular version control system, allows you to track changes, collaborate with peers, and ensure that your work is organized. This guide will introduce you to Git and how it can make your college project management smoother and more efficient.</p><p>Quick Note: This blog is designed to be a quick reference guide for you when working on your projects. If you’re already familiar with the basics of Git and just need a refresher on specific commands or steps, this guide will help you streamline your workflow. However, if you’re still getting comfortable with Git or want a deeper dive into the concepts, I’ve got you covered! For a more detailed, step-by-step explanation of Git concepts and commands, I highly recommend checking out this fantastic playlist that helped me master Git:</p><p><a href="https://www.youtube.com/playlist?list=PL4cUxeGkcC9goXbgTDQ0n_4TBzOO0ocPR"><strong>Git and GitHub for Beginners — YouTube Playlist</strong></a></p><p>Feel free to use this blog as your <strong>go-to guide</strong> for quick syntax and project-related Git operations. Let’s get started..</p><h4>What is Git?</h4><p>Simply put, <strong>Git</strong> is a tool that helps you keep track of the changes you make in a project over time. Think of it like a time machine for your project: you can go back to any previous version, see what changes were made, who made them, and even work on the project alongside your team members without messing up each other’s work.</p><p>With Git, you don’t have to worry about accidentally overwriting a file or losing previous versions of your project. This is especially useful when you’re working with a group because everyone can work on the same project at the same time, and Git will handle merging everyone’s changes together.</p><h4>What is GitHub?</h4><p><strong>GitHub</strong> is an online platform that works with Git. It allows you to store your project in the cloud, so you and your teammates can access it from anywhere. It also makes collaboration easier by providing tools for reviewing and merging changes.</p><h4>Key Concepts of Git (in Simple Terms):</h4><ol><li><strong>Repository</strong>: A repository (or “repo” for short) is the project folder where Git tracks all the changes. Think of it as a container for your project.</li><li><strong>Commit</strong>: A commit is like taking a snapshot of your project at a particular moment. It captures all the changes you’ve made and allows you to go back to this version whenever you need.</li><li><strong>Log</strong>: The log command shows a history of all the commits made to the repository. It&#39;s like flipping through the pages of your project&#39;s history, helping you see who made what changes and when.</li><li><strong>Staging Area</strong>: Before you commit changes, you need to put your files in the staging<strong> </strong>area. This is where you prepare the changes you want to save in the next snapshot.</li><li><strong>Branch</strong>: A branch is a separate line of development. You can create a branch to work on new features or fixes without affecting the main project. When your work is done, you can merge it back into the main project.</li><li><strong>Checkout</strong>: This command allows you to switch between branches or revert your working directory to a specific commit. Think of it as a way to navigate through different versions or parts of your project.</li><li><strong>Merge</strong>: Once you’ve finished working on a feature or fix in a separate branch, you can merge it back into the main branch. This incorporates the changes from your feature branch into the main project.</li><li><strong>Clone</strong>: Cloning is when you download a copy of a GitHub repository to your local machine so you can work on it.</li><li><strong>Push</strong>: Once you’ve made changes to your project, you use <strong>push</strong> to send your updates to GitHub so everyone can see them.</li><li><strong>Pull</strong>: If someone else has made changes to the project, you can use <strong>pull</strong> to download the latest updates from GitHub to your local machine.</li><li><strong>Origin</strong>: This is the default name Git gives to the remote repository on GitHub that you’re connected to. When you push or pull changes, you&#39;re often interacting with &quot;origin.&quot;</li></ol><h4>Why Should You Use Git for College Projects?</h4><ul><li><strong>Version Control</strong>: Git keeps track of every change, so you don’t have to worry about losing your work or breaking your project.</li><li><strong>Collaboration</strong>: Multiple people can work on the project at the same time without stepping on each other’s toes.</li><li><strong>Backup</strong>: By hosting your project on GitHub, you have a cloud backup in case something happens to your computer.</li><li><strong>Professional Skill</strong>: Knowing how to use Git and GitHub is a valuable skill in the tech industry, and it can also be used in non-coding projects like writing papers or designing presentations.</li></ul><p>In this guide, we’ll take you through a simple, step-by-step process on how to use Git and GitHub to manage your college projects efficiently. Whether you’re working solo or with a team, by the end of this guide, you’ll have a GitHub repository where you can track changes, collaborate, and keep your project organized. Let’s get started!</p><p>Git might seem overwhelming at first, but once you understand the basics, it becomes a powerful tool for keeping your project organized and on track. Let’s dive in and learn how to use Git and GitHub to manage your projects like a pro!</p><h3>Setting Up Git</h3><p>Before diving into project management, you need to set up Git on your local machine and create a GitHub account.</p><ol><li><strong>Install Git</strong>: Download and install Git from <a href="https://git-scm.com/downloads">git-scm.com</a>. Choose the appropriate version for your operating system and follow the installation prompts.</li><li><strong>Create a GitHub Account</strong>: Head over to <a href="https://github.com/">github.com</a> and sign up for an account. This is where your project’s remote repository will be stored.</li><li><strong>Configure Git</strong>: Once Git is installed, you need to set up your username and email. These will be associated with your commits.</li></ol><p>I’m setting this up using the IDE Visual Studio code. Run the following commands in the VS code terminal.</p><pre>git config --global user.name &quot;Your Name&quot;<br>git config --global user.email &quot;your.email@example.com&quot;</pre><p>To check if you’ve already configured your Git username and email, you can run the following commands in the terminal:</p><pre>git config - global user.name<br>git config - global user.email</pre><p>If you’ve already set them up, the commands will return the username and email that are currently configured. If nothing is returned, it means they are not configured yet. Once the configuration is done, let’s implement GIT operations.</p><p>If you are finding the below steps hard to grasp, you can check out a playlist which I have provided in the end of the blog. This blog is aimed to refresh your memory and provide quick syntax while building a project.</p><h3>Approach 1: For an Existing Project</h3><h4>Initialize Git in Your Project Folder</h4><ol><li><strong>Open your project folder in VS Code:</strong></li><li>Open <strong>VS Code</strong> and click on <strong>File &gt; Open Folder</strong>. Select the folder where your existing project is located.</li><li><strong>Open the terminal in VS Code: </strong>In VS Code, open the integrated terminal by pressing <strong>Ctrl + ` (backtick)</strong> or by going to <strong>Terminal &gt; New Terminal</strong> from the top menu.</li><li><strong>Navigate to your project directory</strong> (if not already in the right folder): If the terminal doesn’t open directly in your project folder, you can use the command:</li></ol><pre>cd path/to/your/project</pre><h3>Implementing Git Commands</h3><h4>Step 1: Initialize Git in Your Project</h4><p>In the terminal, initialize Git in your folder:</p><pre>git init</pre><h4>Step 2: Add and Commit Your Project Files</h4><ol><li><strong>Add all files in the directory to the staging area:</strong></li></ol><pre>git add .</pre><ul><li>Instead of . you can also add specific files by name, like:</li></ul><pre>git add filename</pre><p><strong>2. Commit the staged files:</strong></p><pre>git commit -m &quot;Initial commit for my project&quot;</pre><h4>Step 3: Create a Remote Repository on GitHub</h4><ol><li>Go to <a href="https://github.com/">GitHub</a>.</li><li>Click the <strong>“+”</strong> in the top-right and select <strong>“New repository”</strong>.</li><li>Name your repository (e.g., ProjectName), set it to <strong>public</strong> or <strong>private</strong>, and click <strong>&quot;Create repository&quot;</strong>.</li></ol><ul><li><strong>Don’t initialize with README</strong>, as you’ll push your existing project.</li></ul><h4>Step 4: Link Local Repo to GitHub</h4><p>In your terminal, link the local repository to GitHub:</p><pre>git remote add origin https://github.com/your-username/your-repo-name.git<br></pre><h4>Step 5: Push Your Project to GitHub</h4><p>Push your local repository to GitHub using the command:</p><pre>git push -u origin master</pre><h3>Approach 2: Starting a New Project from Scratch</h3><p>If you’re starting a new project, follow these steps:</p><h4>Step 1: Create a New GitHub Repository</h4><ol><li>Go to <a href="https://github.com/">GitHub</a>.</li><li>Click the <strong>“+”</strong> in the top-right and select <strong>“New repository”</strong>.</li><li>Name your repository (e.g., ProjectFolderName) and click <strong>&quot;Create repository&quot;</strong>. Add a README file, which will be part of the project from the start(Optional).</li></ol><h4>Step 2: Clone the Repository to Your Local Machine</h4><p>In your terminal, run:</p><pre>git clone https://github.com/your-username/your-repo-name.git</pre><p>This downloads the repository to your local machine. Upon successful cloning you can see the repository name folder appeared in the project directory.</p><h4>Step 3: Add Your Project Files</h4><ol><li>Add your project files to the folder you just cloned.</li><li>In the terminal, navigate to the folder:</li></ol><pre>cd project-folder-name</pre><h4>Step 4: Stage and Commit Your Changes</h4><ol><li>Stage all files:</li></ol><pre>git add .</pre><ol><li>Commit the files</li></ol><pre>git commit -m &quot;Initial project setup&quot;</pre><h4>Step 5: Push Changes to GitHub</h4><p>Push the files to the remote repository:</p><pre>git push origin master</pre><h3>Basic Git Commands for Project Management</h3><ol><li><strong>Check the status of your repository</strong>:</li></ol><pre>git status</pre><ol><li><strong>See the commit history</strong>:</li></ol><pre>git log</pre><ol><li><strong>Create a new branch</strong> (for team collaboration):</li></ol><pre>git checkout -b branch-name</pre><ol><li><strong>Merge a branch</strong>: After reviewing changes, merge a branch into the master branch:</li></ol><pre>git checkout master git merge branch-name</pre><ol><li><strong>Pull the latest changes from the remote repository</strong>:</li></ol><pre>git pull origin master</pre><h3>Using Git for Collaboration</h3><p>For project collaboration, team members can work on different branches and create <strong>Pull Requests (PRs)</strong> to merge changes into the main branch.</p><ol><li><strong>Create a branch</strong>:</li></ol><pre>git checkout -b feature-branch</pre><ol><li><strong>Push the branch to GitHub</strong>:</li></ol><pre>git push origin feature-branch</pre><ol><li><strong>Submit a Pull Request (PR)</strong>:</li></ol><ul><li>Go to the repository on GitHub.</li><li>Open a new Pull Request to merge the feature-branch into master.</li></ul><p><strong>Review the Pull Request </strong>and <strong>merge</strong> it after approval.</p><p>Happy coding, and may your projects be ever in version control!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d05961b95a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to understand the Color Models RGB and HSV.]]></title>
            <link>https://medium.com/@dijdomv01/a-beginners-guide-to-understand-the-color-models-rgb-and-hsv-244226e4b3e3?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/244226e4b3e3</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[rgb-color-model]]></category>
            <category><![CDATA[color-model]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 08:44:50 GMT</pubDate>
            <atom:updated>2024-10-06T08:47:55.392Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Beginner’s Guide to understand the HSV Color Model.</h3><h3>Introduction</h3><p>When discussing image processing, the first concept that typically comes to mind is a color image. Upon further consideration, this color image can be broken down into three channels: Red, Green, and Blue. This structure refers to the RGB color model, where every pixel in the image is represented as a combination of these three primary colors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*9Nju4esKhlF1lUSKyKQu3A.png" /><figcaption>Picture obtained from Wikipedia</figcaption></figure><p>In the image above (sourced from Wikipedia), the RGB color model is visualized as a cube. The x-axis represents increasing red values, the y-axis corresponds to increasing blue, and the z-axis represents increasing green. The origin (black) is the hidden vertex, while the white color forms when the intensities of red, green, and blue are at their maximum.</p><p>Just as the RGB model is useful for representing color, the HSV color model provides an alternative way of describing colors that is often more intuitive for humans.</p><h3><strong>HSV Model</strong></h3><p>The HSV (Hue, Saturation, Value) color model represents colors in a way that aligns closely with human perception. Unlike RGB, which focuses on mixing primary colors, HSV separates color into three intuitive components.</p><p>The three components are as follows</p><ol><li><strong>Hue</strong>: Represent the type of the color(base color).</li><li><strong>Saturation</strong>: Represent the intensity of the color.</li><li><strong>Value: Represent the brightness of the color.</strong></li></ol><p>Let’s understand the same using the below image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*XL-dmUoE-G3MBEVIG1d1sQ.png" /></figure><p>From the above image, The cone illustrates how the HSV model maps color. The vertical axis represents <strong>Value (V)</strong>, which measures brightness, ranging from black (at the bottom) to full brightness (at the top). The circular base of the cone corresponds to different <strong>Hue (H)</strong> values, where each color is positioned around the circle based on its angle, ranging from 0° to 360°. Moving outward from the center represents increasing <strong>Saturation (S)</strong>, which measures the intensity of the color, from gray in the middle (low saturation) to full color on the outer edge (high saturation).</p><p><strong>Hue</strong>: As shown in the conical diagram, hue represents the color type determined by a position on the color wheel (right). It ranges from 0° to 360°, with red at 0°, green at 120°, and blue at 240°. By rotating around the circle, different base colors are selected.</p><p><strong>Saturation</strong>: Represented by the horizontal axis in the cone, saturation measures the intensity or purity of a color. At 0% saturation, colors appear as shades of gray (in the center of the cone). As saturation increases (moving outward from the center), the colors become more vivid and vibrant.</p><p><strong>Value</strong>: This is represented by the vertical axis in the cone. Value measures the brightness of the color, from 0% (black) at the bottom to 100% (full brightness) at the top. At full brightness, the color is fully visible, while lower values make the color appear darker.</p><h3><strong>Comparing HSV with RGB</strong></h3><p>Are you wondering how the HSV is represented, let’s see how that’s done. Let’s consider the an image of color yellow.</p><p><strong>RGB Representation</strong>:</p><ul><li>For yellow, the RGB values are (255, 255, 0). This means the red and green channels are at their maximum intensity, while blue is absent.</li></ul><p><strong>HSV Representation</strong>:</p><ul><li>For yellow, the HSV values are (60°, 100%, 100%).</li><li><strong>Hue</strong> (60°) represents yellow on the color wheel.</li><li><strong>Saturation</strong> (100%) means it’s a fully saturated, pure color.</li><li><strong>Value</strong> (100%) means it’s at full brightness.</li></ul><p>A sample code snippet is as follows:</p><pre>import matplotlib.pyplot as plt<br>import numpy as np<br>import colorsys<br><br># Define yellow color in HSV<br>hue = 60 / 360  # Hue is in the range [0, 1] for colorsys<br>saturation = 1.0  # Saturation is in the range [0, 1]<br>value = 1.0  # Value is in the range [0, 1]<br><br># Convert HSV to RGB using colorsys<br>rgb_yellow = colorsys.hsv_to_rgb(hue, saturation, value)  # Output will be in [0, 1]<br># Scale RGB to [0, 255]<br>rgb_yellow_scaled = tuple(int(c * 255) for c in rgb_yellow)<br><br># Create a 1x1 image for RGB<br>rgb_color_image = np.zeros((1, 1, 3), dtype=np.uint8)<br>rgb_color_image[0, 0] = rgb_yellow_scaled  # Use RGB values directly<br><br># Set up the subplots<br>fig, axes = plt.subplots(1, 2, figsize=(8, 4))<br><br># Plot the HSV color (as RGB for accurate representation)<br>hsv_color_image = np.zeros((1, 1, 3), dtype=np.uint8)<br>hsv_color_image[0, 0] = rgb_yellow_scaled  # Display converted color as RGB<br>axes[0].imshow(hsv_color_image)<br>axes[0].set_title(f&#39;HSV Representation (H={hue * 360}°, S={saturation * 255}, V={value * 255})&#39;)<br>axes[0].axis(&#39;off&#39;)  # Hide the axis for a cleaner look<br><br># Plot the RGB color<br>axes[1].imshow(rgb_color_image)<br>axes[1].set_title(f&#39;RGB Representation (R={rgb_yellow_scaled[0]}, G={rgb_yellow_scaled[1]}, B={rgb_yellow_scaled[2]})&#39;)<br>axes[1].axis(&#39;off&#39;)  # Hide the axis for a cleaner look<br><br># Display the plot<br>plt.tight_layout(pad=3.0)<br>plt.show()<br></pre><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*HLTmdVYRkW3wDPC2GSDnGQ.png" /><figcaption>Output of the python program</figcaption></figure><p>This code demonstrates how to visualize the color yellow in both HSV and RGB representations. The `colorsys` module is utilized to convert the yellow color from the HSV color model to RGB, which is essential for accurate color display on screens. By displaying the converted RGB values alongside the original HSV values, the code illustrates the necessity of conversion for proper color representation in digital images.</p><h3><strong>Practical Applications of the HSV Model</strong></h3><ol><li><strong>Detecting Warm and Cool Images using Hue</strong></li></ol><p><strong>Warm Colors</strong>: Warm colors include reds, oranges, and yellows. In the HSV model, these colors typically have a hue between 0° to 60° (for red and yellow hues). To detect warm images, one can set a threshold on the hue component, identifying pixels that fall within this range.</p><p><strong>Cool Colors</strong>: Cool colors consist of greens, blues, and purples, with hues generally ranging from 180° to 240°. Similarly, pixels can be analyzed for their hue value to determine if an image is predominantly cool.</p><p><strong>2. Detecting Dull and Bright Images using Saturation and Value</strong></p><p><strong>Dull Colors</strong>: Dull colors have low saturation values and can appear less vibrant. In the HSV model, saturation values closer to 0 indicate dullness. A threshold can be set to identify pixels with low saturation.</p><p><strong>Bright Colors</strong>: Bright images have high value (brightness) levels. Pixels with value levels closer to 255 in the HSV space indicate brightness. A threshold can be set to classify pixels as bright.</p><h3>Conclusion</h3><p>While RGB remains the go-to color model for most digital applications due to its simplicity and direct compatibility with devices, the HSV model plays a vital role in areas requiring intuitive color manipulation and analysis. Understanding both models provides a comprehensive toolkit for tackling various tasks in image processing, computer vision, and graphic design. The choice between RGB and HSV ultimately depends on the specific needs of the task at hand, highlighting the importance of each model in the field of color science and technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244226e4b3e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Detection: The Eye of Modern Computer Vision, using YOLO.]]></title>
            <link>https://medium.com/@dijdomv01/object-detection-the-eye-of-modern-computer-vision-1fe3f73c5848?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fe3f73c5848</guid>
            <category><![CDATA[yolov8]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[object-detection]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Thu, 03 Oct 2024 05:11:57 GMT</pubDate>
            <atom:updated>2024-10-03T13:48:56.508Z</atom:updated>
            <content:encoded><![CDATA[<p>When discussing Computer Vision, the first thing that comes to mind is different color boxes with labels around an object. Well, this is the first step in the Computer Vision task. Detecting objects in Images and Videos is the primary focus to move to the later stages like object tracking, object counting, object segmenting, etc…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*5nVgdCpCDdeQs_Iaq9v42Q.jpeg" /><figcaption>Image courtesy of KeyMedia</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*VNY4pLllw3TVlqNW2YpzXg.png" /><figcaption>Object Detection done using Yolov8 model.</figcaption></figure><p>In the above image, objects like People, Laptop, Chair, Dining Table, TV, Potted plant are detected using a pretrained model called YOLO(You look only once). YOLO is built upon <strong>Convolutional Neural Networks (CNNs)</strong>, which are powerful models for image processing tasks. This pretrained model is trained on the <strong>COCO (Common Objects in Context)</strong> dataset. It contains over <strong>330,000 images</strong>, with annotations for <strong>80 object categories</strong> (e.g., people, animals, vehicles, etc.).</p><p>Below is an example code snippet for Object Detection using Yolov8 model.</p><pre># Import the necessary libraries<br>from ultralytics import YOLO<br>import cv2<br>import matplotlib.pyplot as plt<br><br># Load a YOLOv8 pre-trained model<br>model = YOLO(&#39;yolov8l.pt&#39;)<br><br># Load an image where you want to detect objects<br>image_path = &#39;img.jpg&#39;<br>image = cv2.imread(image_path)<br><br># Run the model on the image for object detection<br>results = model(image)<br><br># Print detected objects and their confidence scores<br>for result in results:<br>    print(f&quot;Detected objects: {result.names}&quot;)<br>    print(f&quot;Confidence scores: {result.boxes.conf}&quot;)<br><br># Render the image with detected objects<br>annotated_image = results[0].plot()  # This method returns an image with annotated detections<br><br># Convert BGR to RGB for displaying using matplotlib (OpenCV loads images as BGR)<br>annotated_image = cv2.cvtColor(annotated_image, cv2.COLOR_BGR2RGB)<br><br># Display the image<br>plt.imshow(annotated_image)<br>plt.axis(&#39;off&#39;)<br>plt.show()<br><br></pre><p>When an image is input into YOLO, it is resized to a fixed size and then passed through a series of convolutional layers that extract hierarchical features. The model divides the image into a grid (e.g., 13x13), where each grid cell is responsible for predicting bounding boxes and associated confidence scores for the objects whose centers fall within that cell. Each predicted bounding box consists of four coordinates (x, y, width, height), a confidence score that indicates the likelihood of an object being present, and class probabilities for the various object categories (like “person,” “car,” etc.). Finally, Non-Maximum Suppression (NMS) filters out duplicate or low-confidence boxes, resulting in the final bounding boxes and labels for detected objects, such as “person,” based on the highest class probability.</p><p>To Explore more on YOLO check the documentation, <a href="https://docs.ultralytics.com/"><em>https://docs.ultralytics.com/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fe3f73c5848" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Computer Vision is important to learn as a Data Science student?]]></title>
            <link>https://medium.com/@dijdomv01/why-computer-vision-is-important-to-learn-as-a-data-science-student-d419b8ad0445?source=rss-a46eeb0ef3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d419b8ad0445</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Dijin Dominic]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 17:05:58 GMT</pubDate>
            <atom:updated>2024-10-02T17:05:58.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fbr0lqyTeiiIiRjr" /><figcaption>Photo by <a href="https://unsplash.com/@andrewtneel?utm_source=medium&amp;utm_medium=referral">Andrew Neel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine doctors diagnosing diseases like cancer with greater accuracy using machines that analyze medical images, this is the power of Computer Vision (CV). In healthcare, CV helps detect patterns in MRIs, CT scans, and X-rays, aiding faster and more accurate diagnoses.</p><p>For Data Science students, learning CV is crucial as visual data is becoming a key element in fields like healthcare, retail, and autonomous vehicles. Mastering this skill opens doors to innovative solutions across industries.</p><p>Below are some of the applications of Computer Vision</p><p><strong>Healthcare</strong>: CV helps in analyzing medical images like MRIs and CT scans to detect diseases early and assist in diagnosis.</p><p><strong>Retail and E-commerce</strong>: CV powers visual search for products, helps manage inventory, and enhances personalized shopping experiences.</p><p><strong>Autonomous Vehicles</strong>: CV enables self-driving cars to detect objects and understand the environment for safe navigation.</p><p><strong>Security</strong>: CV is used in facial recognition and surveillance systems to enhance security and monitoring.</p><p><strong>Entertainment and Social Media</strong>: CV drives fun features like facial filters, augmented reality, and automatic image tagging on social media platforms.</p><p>In this field, we’re working with images that contain a vast amount of valuable information waiting to be uncovered. Through Computer Vision, we as aspiring data scientists have the power to extract that information and make a meaningful impact on our communities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d419b8ad0445" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>