<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ardhansu Das</title>
    <description>The latest articles on DEV Community by Ardhansu Das (@ardhansu).</description>
    <link>https://dev.to/ardhansu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3130520%2F5488d0df-e8e1-4088-8b3b-8cba998a66ec.jpg</url>
      <title>DEV Community: Ardhansu Das</title>
      <link>https://dev.to/ardhansu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ardhansu"/>
    <language>en</language>
    <item>
      <title>🧠 Deep Learning: Or How I Learned to Stop Worrying and Love the Matrix Multiplication</title>
      <dc:creator>Ardhansu Das</dc:creator>
      <pubDate>Mon, 12 May 2025 06:52:08 +0000</pubDate>
      <link>https://dev.to/ardhansu/deep-learning-or-how-i-learned-to-stop-worrying-and-love-the-matrix-multiplication-h1i</link>
      <guid>https://dev.to/ardhansu/deep-learning-or-how-i-learned-to-stop-worrying-and-love-the-matrix-multiplication-h1i</guid>
      <description>&lt;p&gt;Welcome to the magical, GPU-heated world of Deep Learning — where we teach machines to think, sort of, by throwing math, data, and a terrifying number of layers at them until they give us something cool like a cat detector or ChatGPT.&lt;/p&gt;

&lt;p&gt;Let’s be honest: deep learning sounds like something you'd do during therapy. But no — it’s just machine learning’s more expensive, more dramatic sibling who needs a Tesla V100 GPU to feel alive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🤖 What Is Deep Learning?&lt;/strong&gt;&lt;br&gt;
Deep Learning is like that student who didn’t pay attention all semester but still aces the final because they “intuitively figured it out.” Instead of writing rules, we throw data at neural networks and let them figure things out on their own. And somehow, they do. Sort of.&lt;/p&gt;

&lt;p&gt;At the heart of it are neural networks, which are vaguely inspired by the human brain — if your brain only did matrix multiplication and silently judged your batch size choices.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;🧱 The Building Blocks of a Modern Deep Learning Breakdown:&lt;br&gt;
*&lt;/em&gt;🔹 1. Neurons and Layers&lt;br&gt;
A neuron in deep learning is a function that says: “Give me a number, and I’ll pass it through this mystical activation function until it looks fancy.”&lt;/p&gt;

&lt;p&gt;Stack these neurons into layers. Stack those layers into models. Stack those models into an identity crisis when the loss doesn't converge.&lt;/p&gt;

&lt;p&gt;🔹 2. Activation Functions&lt;br&gt;
You’ve probably heard of ReLU — the one that just zeroes out negative numbers like a savage. There’s also sigmoid and tanh, which are great if you're nostalgic for the 90s and vanishing gradients.&lt;/p&gt;

&lt;p&gt;🔹 3. Loss Function&lt;br&gt;
This is literally the model’s “How wrong am I?” function. The goal is to minimize loss, but most of the time it just minimizes your will to debug.&lt;/p&gt;

&lt;p&gt;🔹 4. Backpropagation&lt;br&gt;
Imagine teaching a dog to sit by yelling “no” every time it gets it wrong, but instead of a dog it’s math, and instead of “no” it’s derivatives.&lt;/p&gt;

&lt;p&gt;**🧪 So, What Have I Done With Deep Learning?&lt;br&gt;
**Oh, you know — just the usual:&lt;/p&gt;

&lt;p&gt;Built a face mask detection system using ResNet50, because if you’re not using a heavyweight model to check for tiny strips of fabric on faces, are you even doing deep learning?&lt;/p&gt;

&lt;p&gt;Fiddled with OpenCV until my webcam gave me PTSD.&lt;/p&gt;

&lt;p&gt;Watched training loss go down like my hopes and dreams… only to watch validation accuracy crash like my laptop running 50 epochs.&lt;/p&gt;

&lt;p&gt;**🧩 Why Is Deep Learning So Hard Yet Addictive?&lt;br&gt;
**Because there's always that 1% chance that after 7 hours of training and 8 Red Bulls, your model might actually work. And when it does? You feel like an AI god. Until it classifies a banana as a gun. Again.&lt;/p&gt;

&lt;p&gt;**📈 Final Thoughts (Because This Blog Needs a Conclusion)&lt;br&gt;
**Deep learning is a lot like dating: it requires patience, constant tweaking, and sometimes ends in heartbreak because “the weights didn’t align.” But if you keep at it, feed it enough data, and don’t mind being ghosted by your GPU, it can actually do some amazing things.&lt;/p&gt;

&lt;p&gt;So, here’s to the next model. The next dataset. The next long night spent tuning hyperparameters only to realize… you forgot to normalize your inputs. Again.&lt;/p&gt;

&lt;p&gt;Stay caffeinated, stay curious, and may your gradients never vanish.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>AI Meets Safety: Real-Time Face Mask Detection with Python</title>
      <dc:creator>Ardhansu Das</dc:creator>
      <pubDate>Tue, 06 May 2025 17:44:24 +0000</pubDate>
      <link>https://dev.to/ardhansu/ai-meets-safety-real-time-face-mask-detection-with-python-3ol7</link>
      <guid>https://dev.to/ardhansu/ai-meets-safety-real-time-face-mask-detection-with-python-3ol7</guid>
      <description>&lt;p&gt;In the post-pandemic world, face masks have become essential. As a Full-Stack Developer exploring AI and Computer Vision, I decided to build a real-time face mask detection system using Python, OpenCV, and Deep Learning.&lt;/p&gt;

&lt;p&gt;Here’s a breakdown of how I built it and what I learned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🚀 Project Overview&lt;/strong&gt;&lt;br&gt;
The project captures live video from your webcam and uses a trained deep learning model (MobileNetV2) to determine if a person is wearing a mask or not. The model then overlays a label on the video feed in real-time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧠 Tools &amp;amp; Technologies Used&lt;br&gt;
Python&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OpenCV – for video capture and image processing&lt;/p&gt;

&lt;p&gt;TensorFlow/Keras – for training the model&lt;/p&gt;

&lt;p&gt;MobileNetV2 – a lightweight CNN model for fast inference&lt;/p&gt;

&lt;p&gt;Matplotlib &amp;amp; NumPy – for data analysis and preprocessing&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🛠️ How It Works&lt;/strong&gt;&lt;br&gt;
Data Collection&lt;br&gt;
I used a dataset with two categories: with mask and without mask. You can find such datasets on Kaggle or build your own.&lt;/p&gt;

&lt;p&gt;Model Training&lt;br&gt;
I used MobileNetV2 as the base model and fine-tuned it with our dataset. After several epochs, the model reached over 95% accuracy.&lt;/p&gt;

&lt;p&gt;Face Detection&lt;br&gt;
Using OpenCV’s built-in face detector (cv2.CascadeClassifier), we detect faces in each video frame.&lt;/p&gt;

&lt;p&gt;Prediction &amp;amp; Display&lt;br&gt;
Each detected face is passed to the model. Based on the output, a green label (“Mask”) or red label (“No Mask”) is drawn on the frame.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📦 Key Learnings&lt;/strong&gt;&lt;br&gt;
Real-time applications require optimization — MobileNetV2 helped due to its lightweight architecture.&lt;/p&gt;

&lt;p&gt;OpenCV is powerful for computer vision tasks, and integrating it with deep learning opens up many possibilities.&lt;/p&gt;

&lt;p&gt;Proper dataset preparation (balanced, augmented, preprocessed) significantly boosts model performance.&lt;/p&gt;

&lt;p&gt;📁 GitHub Repository&lt;br&gt;
You can find the full code and instructions &lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ardhansu" rel="noopener noreferrer"&gt;
        ardhansu
      &lt;/a&gt; / &lt;a href="https://github.com/ardhansu/Face-Mask-Detection" rel="noopener noreferrer"&gt;
        Face-Mask-Detection
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;📌 Final Thoughts&lt;br&gt;
This was my first step into combining computer vision and deep learning for something impactful. It’s exciting to see how AI can be used in practical, real-time applications like this.&lt;/p&gt;

&lt;p&gt;I’d love to hear your feedback! Let me know if you build on this or have suggestions for improvements. 👇&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
