<?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 Jazila Begum on Medium]]></title>
        <description><![CDATA[Stories by Jazila Begum on Medium]]></description>
        <link>https://medium.com/@jazilabegum271?source=rss-d97b04be8a06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dWh-hFdrN_XCRX8wPRgyYQ.jpeg</url>
            <title>Stories by Jazila Begum on Medium</title>
            <link>https://medium.com/@jazilabegum271?source=rss-d97b04be8a06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:07:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jazilabegum271/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[Data Augmentation in Computer Vision — Making More Out of Less]]></title>
            <link>https://medium.com/@jazilabegum271/data-augmentation-in-computer-vision-making-more-out-of-less-faa31dd52480?source=rss-d97b04be8a06------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa31dd52480</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Jazila Begum]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 12:53:39 GMT</pubDate>
            <atom:updated>2025-08-13T12:53:39.354Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Data Augmentation in Computer Vision — Making More Out of Less</em></strong></p><p>We all know the golden rule in machine learning: more data usually means better model performance. But here’s the twist, you don’t actually have to go out and collect more data. Why? Because collecting more data can be expensive, time-consuming, and, let’s be real, it hogs up storage space.</p><p>That is where data augmentation comes in. Instead of finding new images, we generate new, variations of the images we already have. This expands our dataset and makes our models more adaptable. It helps prevent overfitting (everyone’s worst nightmare) where a model performs perfectly on training data but struggles to recognize new, unseen data. Additionally, it also helps to compensate small limited datasets and even handle dataset imbalance.</p><p>If you are training a model to recognize cats, you do not want it to only work on perfectly lit, front-facing cat photos which is the type of data most training datasets will contain. In real world implementation you want your model to also recognize a cat hiding under a chair, walking at an angle, or caught in motion. Augmentation makes that possible.</p><p><em>Note:</em> Data augmentation should mimic real-world variations — unrealistic transformations can hurt performance.</p><p><strong><em>Common Data Augmentation Techniques:</em></strong></p><ol><li><strong><em>Geometric Transformations</em></strong><br> Alters the image orientation.</li></ol><ul><li><strong><em>Rotation:</em></strong> Tilts the image to a random angle.</li><li><strong><em>Flip:</em></strong> Mirrors the image horizontally or vertically.</li><li><strong><em>Translation</em></strong>: Shifting an image along the x-axis, y-axis or both</li><li><strong><em>Crop:</em></strong> Focuses on different parts of the image.</li><li><strong><em>Scale:</em></strong> Zooms in or out, effectively resizing the image and potentially changing the resolution.</li></ul><p>This method is recommended for general object recognition where orientation is not fixed. However, it should be avoided when training data that contains digits or characters where flipping changes meaning. For e.g., when flipped, 6 may appear as 9 which will affect the model behaviour.</p><p><strong><em>2. Colour &amp; Lighting Adjustments</em></strong><br> Adjusts the colour and lighting to simulate variations in real-world scenarios.</p><ul><li><strong><em>Brightness adjustments:</em></strong> Simulates different lighting conditions.</li><li><strong><em>Contrast adjustment:</em></strong> Makes edges sharper or softer.</li><li><strong><em>Saturation &amp; Hue:</em></strong> Changes colour richness and tone.</li><li><strong><em>Colour jitter:</em></strong> Randomly changes brightness, contrast, saturation, and hue within a set range for more variety.</li></ul><p>This method can be used on outdoor or product images with lighting variability such that the product will be recognized equally well in a dimly lit room as it does on a sunny day, but should be avoided for Grayscale datasets (like X-rays) where colour does not matter and will have zero to minimal impact on the result.</p><p><strong><em>3. Noise &amp; Blur</em></strong><br> Adds variance in training data in terms of image quality.</p><ul><li><strong><em>Gaussian noise:</em></strong><em> </em>Adds random pixel variations.</li><li><strong><em>Gaussian blur:</em></strong><em> </em>Slightly smooths the image.</li><li><strong><em>Motion blur:</em></strong><em> </em>Simulates camera movement.</li></ul><p>This method of augmentation is best to handle low-light, surveillance, or real-world camera images but should be avoided for tasks that require fine detail (e.g., defect detection). It teaches our model to predict accurately even when the quality of the image is not the best, but too much blur or noise can harm performance if overused.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Dj89EqfVij1AJvLd" /></figure><p><strong><em>4. Advanced Data Augmentation Methods:</em></strong></p><ul><li><strong><em>Cutout / Random Erasing:</em></strong> Randomly removes parts of the image so the model learns to focus on other features. For example, hiding the car wheels so the model learns to recognize cars by their body shape. This is best for object detection, occlusion handling but should be avoided for small objects as you might end up erasing the entire target.</li><li><strong><em>MixUp:</em></strong> Combines two images by averaging their pixel values and mixing their labels proportionally which reduces overconfidence and smooths decision boundaries. Recommended for Classification tasks where label mixing makes sense and should not be used in Segmentation or object detection without proper label adjustments.</li><li><strong><em>CutMix:</em></strong><em> </em>As the name suggests, it cuts a section from one image and pastes it into another, updating the labels accordingly. It maintains spatial realism better than MixUp. It is best for Classification with spatial details. Should be avoided for Segmentation tasks unless the masks are also adjusted.</li><li><strong><em>Generative Augmentation:</em></strong><em> </em>Uses AI models like GANs or Diffusion Models to create entirely new, realistic images. This is particularly useful for rare or expensive datasets — for example, rare diseases in medical imaging or unique satellite captures where getting more physical data may prove to be a hassle. However, we must always check for realism as poorly generated images will no doubt affect model performance.</li></ul><p><strong><em>Tools &amp; Libraries for Data Augmentation</em></strong></p><ul><li><strong><em>TensorFlow / Keras</em></strong><em> </em>→ Comes with built-in tools like ImageDataGenerator (great for real-time augmentation during training) and the tf.image module for custom image manipulations. Newer Keras layers like RandomFlip, RandomRotation, and RandomZoom make augmentation easier to integrate directly into the model pipeline.</li><li><strong><em>PyTorch</em></strong> → Uses the torchvision.transforms module, which includes ready-to-use functions like RandomRotation, ColorJitter (for brightness/contrast changes), and RandomResizedCrop. These can be chained together into a simple, flexible augmentation pipeline.</li><li><strong><em>Albumentations</em></strong> → A high-performance, Python-first library designed for more complex and production-grade augmentation. It’s super fast (uses optimized OpenCV operations) and supports advanced techniques. It also works well with TensorFlow, PyTorch, and even OpenCV workflows.</li></ul><p><strong><em>Key Takeaway</em></strong><br>Data augmentation is a strategic way to prepare your model for the messy, unpredictable world outside the training lab. By choosing the right augmentation techniques for your dataset, you can make your models more robust, accurate, and ready for real-world deployment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faa31dd52480" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>