<?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: Anupam Gupta Roy </title>
    <description>The latest articles on DEV Community by Anupam Gupta Roy  (@anupamgroy17).</description>
    <link>https://dev.to/anupamgroy17</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1443349%2F56149cec-9121-4d80-9c52-6fb68f665c5e.jpg</url>
      <title>DEV Community: Anupam Gupta Roy </title>
      <link>https://dev.to/anupamgroy17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anupamgroy17"/>
    <language>en</language>
    <item>
      <title>VisionQC Update: Moved from Autoencoders to PatchCore, and the Results Are Looking Good!</title>
      <dc:creator>Anupam Gupta Roy </dc:creator>
      <pubDate>Wed, 11 Nov 2026 15:24:15 +0000</pubDate>
      <link>https://dev.to/anupamgroy17/visionqc-update-moved-from-autoencoders-to-patchcore-and-the-results-are-looking-good-22pf</link>
      <guid>https://dev.to/anupamgroy17/visionqc-update-moved-from-autoencoders-to-patchcore-and-the-results-are-looking-good-22pf</guid>
      <description>&lt;p&gt;Hey everyone!&lt;/p&gt;

&lt;p&gt;A little update on VisionQC!&lt;/p&gt;

&lt;p&gt;If you've come across my previous post, you'll know that I started this project with a simple idea: build an AI-based system that can detect defective bottles using computer vision.&lt;/p&gt;

&lt;p&gt;At the time, I was experimenting with convolutional autoencoders, training them on normal bottle images and using reconstruction errors to identify defects.&lt;/p&gt;

&lt;p&gt;Well, things have moved forward a bit since then!&lt;/p&gt;

&lt;p&gt;So, what changed?&lt;/p&gt;

&lt;p&gt;After spending more time researching anomaly detection approaches and experimenting with the initial model, I decided to give PatchCore a shot.&lt;/p&gt;

&lt;p&gt;I'm using the MVTec AD Bottle dataset, and PatchCore seemed like a promising approach for this particular problem.&lt;/p&gt;

&lt;p&gt;Without getting too deep into the technical details, PatchCore works by extracting features from image patches and building a memory bank of normal patterns. During inference, it compares the features of a new image against those stored patterns to identify anything unusual.&lt;/p&gt;

&lt;p&gt;Getting it implemented and running took some experimenting, but I finally got it working!&lt;/p&gt;

&lt;p&gt;And how are the results looking?&lt;/p&gt;

&lt;p&gt;Honestly, much better than I initially expected.&lt;/p&gt;

&lt;p&gt;I evaluated the model on 83 test images:&lt;/p&gt;

&lt;p&gt;20 normal bottle images&lt;/p&gt;

&lt;p&gt;63 defective bottle images across different defect categories&lt;/p&gt;

&lt;p&gt;Here are the image-level evaluation results:&lt;/p&gt;

&lt;p&gt;Metric         Result&lt;br&gt;
Accuracy    100%&lt;br&gt;
Precision   100%&lt;br&gt;
Recall          100%&lt;br&gt;
F1-score    100%&lt;br&gt;
ROC-AUC         1.00&lt;/p&gt;

&lt;p&gt;All 83 test images were classified correctly, with no false positives or false negatives.&lt;/p&gt;

&lt;p&gt;I've attached a few screenshots showing the predictions, anomaly maps and evaluation results.&lt;/p&gt;

&lt;p&gt;But there's still work to do.&lt;/p&gt;

&lt;p&gt;While the image-level classification results are looking really promising, I'm still working on improving defect localisation.&lt;/p&gt;

&lt;p&gt;Identifying whether a bottle is defective is one thing. Getting the model to accurately highlight exactly where the defect is, especially around the edges and rim of the bottle, is another challenge.&lt;/p&gt;

&lt;p&gt;That's something I want to spend more time on before moving forward.&lt;/p&gt;

&lt;p&gt;I'm also aware that getting 100% on this particular test set doesn't mean the system is ready for real-world industrial use. There's still a lot to explore in terms of generalisation, different defect types and testing under more realistic conditions.&lt;/p&gt;

&lt;p&gt;What's next?&lt;/p&gt;

&lt;p&gt;I want to spend more time on pixel-level localisation, experiment with feature extraction and see how much further I can push the results.&lt;/p&gt;

&lt;p&gt;I'm also keen to explore what it would take to make this a more practical quality inspection system rather than just a model that performs well on a dataset.&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts!&lt;/p&gt;

&lt;p&gt;For those who've worked with PatchCore or industrial anomaly detection:&lt;/p&gt;

&lt;p&gt;What would you suggest trying to improve localisation around edges?&lt;/p&gt;

&lt;p&gt;Would experimenting with higher-resolution feature layers or overlapping crops be a good next step?&lt;/p&gt;

&lt;p&gt;What else would you focus on before considering something like this for an actual production environment?&lt;/p&gt;

&lt;p&gt;I'm still learning a lot through this project, so any suggestions, criticism or ideas are more than welcome.&lt;/p&gt;

&lt;p&gt;GitHub repository: &lt;a href="https://github.com/anupam-17/VisionQC" rel="noopener noreferrer"&gt;https://github.com/anupam-17/VisionQC&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojum4aue8p44e96mreyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojum4aue8p44e96mreyp.png" alt=" " width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>computervision</category>
      <category>python</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Building VisionQC: An AI System to Detect Defective Bottles (Please Roast the Idea , Need Honest Feedbacks )</title>
      <dc:creator>Anupam Gupta Roy </dc:creator>
      <pubDate>Fri, 30 Oct 2026 04:09:27 +0000</pubDate>
      <link>https://dev.to/anupamgroy17/building-visionqc-an-ai-system-to-detect-defective-bottles-please-roast-the-idea-need-honest-190o</link>
      <guid>https://dev.to/anupamgroy17/building-visionqc-an-ai-system-to-detect-defective-bottles-please-roast-the-idea-need-honest-190o</guid>
      <description>&lt;p&gt;Hey everyone!&lt;/p&gt;

&lt;p&gt;I'm currently working on a project called VisionQC, an AI-based system to detect defects in industrial products, starting with bottles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The project is still a work in progress&lt;/strong&gt;. I'm not here to showcase a finished product or claim that I've built something revolutionary. I actually want to get feedback from people who've worked in computer vision, machine learning, or industrial quality inspection before I take the project any further.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A little about me&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I have 3+ years of experience in software development, primarily in full-stack development, along with some experience integrating AI into applications.&lt;/p&gt;

&lt;p&gt;I've also worked on big data projects, which gave me experience with Python and technologies like Kafka, Elasticsearch, Kibana, and other tools in that ecosystem.&lt;/p&gt;

&lt;p&gt;I'm now pursuing my MSc in Artificial Intelligence and trying to get beyond simply integrating AI APIs into applications by understanding how ML models actually work, training them, evaluating them, and building projects from scratch.&lt;/p&gt;

&lt;p&gt;I'm still a newbie when it comes to the deeper ML and computer vision side of things, so I'm learning as I go.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is VisionQC?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The basic idea is to explore how computer vision can help identify defective products during industrial quality inspection.&lt;/p&gt;

&lt;p&gt;I'm using the bottle category from the MVTec Anomaly Detection dataset and experimenting with a convolutional autoencoder using PyTorch.&lt;/p&gt;

&lt;p&gt;The current approach is to train the model on normal bottle images, let it reconstruct those images, and use reconstruction errors to identify potential defects.&lt;/p&gt;

&lt;p&gt;I'm also exploring how well the model can identify the actual locations of defects, rather than just classifying an entire bottle as defective or normal.&lt;/p&gt;

&lt;p&gt;The project isn't complete yet, and I'm still figuring out what works, what doesn't, and what could be improved.&lt;/p&gt;

&lt;p&gt;Here's where I'd love your honest feedback&lt;/p&gt;

&lt;p&gt;I'd genuinely appreciate it if you could roast the idea or point out things I'm overlooking.&lt;/p&gt;

&lt;p&gt;Does using an autoencoder make sense for this problem, or would you approach it differently?&lt;/p&gt;

&lt;p&gt;Are there better approaches I should explore for anomaly detection and defect localisation?&lt;/p&gt;

&lt;p&gt;What would you focus on to make this more than just a basic academic project?&lt;/p&gt;

&lt;p&gt;If you were building this from scratch, what would you do differently?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm especially interested in hearing from people who've worked with computer vision, anomaly detection, or real-world ML systems.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm sharing this before the project is finished because I'd rather get constructive criticism now than realise later that I could have approached the problem much better.&lt;/p&gt;

&lt;p&gt;Here's the GitHub repository: &lt;a href="https://github.com/anupam-17/VisionQC" rel="noopener noreferrer"&gt;https://github.com/anupam-17/VisionQC&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks! All honest feedback is welcome.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>computervision</category>
      <category>showdev</category>
      <category>python</category>
    </item>
  </channel>
</rss>
