<?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 Tekin Evrim Ozmermer on Medium]]></title>
        <description><![CDATA[Stories by Tekin Evrim Ozmermer on Medium]]></description>
        <link>https://medium.com/@tekinevrim?source=rss-eb684b71256e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*08fhM_hL6WNXZEr1nw7_-Q.jpeg</url>
            <title>Stories by Tekin Evrim Ozmermer on Medium</title>
            <link>https://medium.com/@tekinevrim?source=rss-eb684b71256e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:00:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tekinevrim/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[Information Theory v2: Spectral Entropy]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/discourse/information-theory-v2-spectral-entropy-a0f8d026a787?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/1024/1*gQtYLeBuiFzSz1kdl2Azvg.png" width="1024"></a></p><p class="medium-feed-snippet">How much information is there in a coin toss? What about a signal sent through the air, or a decision made by an AI?</p><p class="medium-feed-link"><a href="https://medium.com/discourse/information-theory-v2-spectral-entropy-a0f8d026a787?source=rss-eb684b71256e------2">Continue reading on Dialogue &amp; Discourse »</a></p></div>]]></description>
            <link>https://medium.com/discourse/information-theory-v2-spectral-entropy-a0f8d026a787?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f8d026a787</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[information]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Sun, 11 May 2025 20:49:20 GMT</pubDate>
            <atom:updated>2025-05-13T19:53:47.416Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Game of Life for Average Jane and Joe]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/discourse/the-game-of-life-for-average-jane-and-joe-5a5df0bcb1dd?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/1024/1*DIYFV5ZiV6TpRe2CsE_nDw.png" width="1024"></a></p><p class="medium-feed-snippet">A Realistic Method that I developed in my 20s to stop screwing up my life</p><p class="medium-feed-link"><a href="https://medium.com/discourse/the-game-of-life-for-average-jane-and-joe-5a5df0bcb1dd?source=rss-eb684b71256e------2">Continue reading on Dialogue &amp; Discourse »</a></p></div>]]></description>
            <link>https://medium.com/discourse/the-game-of-life-for-average-jane-and-joe-5a5df0bcb1dd?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a5df0bcb1dd</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[happiness-in-life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Thu, 08 May 2025 12:24:03 GMT</pubDate>
            <atom:updated>2025-05-09T22:36:47.574Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Can Entropy Increase Socially?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/information-creation-and-consciousness/can-entropy-increase-socially-3c276616cba8?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*hDXdDiumR7FTjYna" width="3979"></a></p><p class="medium-feed-snippet">I will try to show you a different view of the world</p><p class="medium-feed-link"><a href="https://medium.com/information-creation-and-consciousness/can-entropy-increase-socially-3c276616cba8?source=rss-eb684b71256e------2">Continue reading on Information, Creation and Consciousness »</a></p></div>]]></description>
            <link>https://medium.com/information-creation-and-consciousness/can-entropy-increase-socially-3c276616cba8?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c276616cba8</guid>
            <category><![CDATA[world]]></category>
            <category><![CDATA[disorders]]></category>
            <category><![CDATA[entropy]]></category>
            <category><![CDATA[information]]></category>
            <category><![CDATA[orders]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 20:57:07 GMT</pubDate>
            <atom:updated>2025-03-02T20:57:07.531Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Predicting Next Segment Using Frequency-based Representations]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/information-creation-and-consciousness/predicting-next-segment-using-frequency-based-representations-e6109dac1d7a?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*RJBlkzLEml6we3v3" width="5184"></a></p><p class="medium-feed-snippet">An idea to enable autoregressive LLMs to predict the next segment (set of words)</p><p class="medium-feed-link"><a href="https://medium.com/information-creation-and-consciousness/predicting-next-segment-using-frequency-based-representations-e6109dac1d7a?source=rss-eb684b71256e------2">Continue reading on Information, Creation and Consciousness »</a></p></div>]]></description>
            <link>https://medium.com/information-creation-and-consciousness/predicting-next-segment-using-frequency-based-representations-e6109dac1d7a?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6109dac1d7a</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[next-word-prediction]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 20:32:04 GMT</pubDate>
            <atom:updated>2025-02-19T20:35:22.512Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[When you are at your lowest point, you are ready for the greatest change.]]></title>
            <link>https://tekinevrim.medium.com/when-you-are-at-your-lowest-point-you-are-ready-for-the-greatest-change-66a6c513806d?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/66a6c513806d</guid>
            <category><![CDATA[birthday]]></category>
            <category><![CDATA[growing-up]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 06:36:18 GMT</pubDate>
            <atom:updated>2026-05-12T17:02:31.672Z</atom:updated>
            <content:encoded><![CDATA[<h3>When we are at our lowest point, we are ready for the greatest change…</h3><p>A subjective observation from the age of 26 to 30</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aZO4-sLrysw7UaE3" /><figcaption>Photo by <a href="https://unsplash.com/@robertbye?utm_source=medium&amp;utm_medium=referral">Robert Bye</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>[Introduction]</strong> When I last wrote about my life and the mental journey I had, I was 26 years old. The birthdays mean a lot to me subconsciously. The way I approach birthday”, the way I live it, the people that I live it with, the things I think and figure out for the future impact me a lot. It is similar to the new year’s Eve as well, but more impactful. This is why, I feel extra inspired to write, produce, tell, and communicate during this day.</p><p><strong>[Past]</strong> Since my 26, many things happened. My LDR ended, and I had a busy period of work and socialization as well as isolation. I lived and felt the absolute loneliness, being only to himself, while having people around. This transformed my world into a binary system, my existence or not. It turned my mental state to a form where I finally started prioritizing myself. My friendships, short-term relationship trials, and my work were impacted.</p><p>Once someone prioritizes himself or herself, everything that happens in life starts getting distilled. You prefer to keep your circle stable or shrink it. You quit your friendships silently because these people do not bring any value to you and you also have nothing to give back to them. You quit having short-term relationship trials and start looking for a meaningful conversation for the starters. And you don’t let yourself get used by so-called managers, or at least be aware of the fact that you are being used so that you can take action to get out of that situation.</p><p>After this realization, I changed my approach to finding someone that I could connect with and landed with a very beautiful and intelligent woman who could dance with me in ideas, thoughts, and arguments. This was a life-changing moment for me. Right after I met her, she moved in with me, we adopted a puppy, a min-pin. Then the next phase of my life started “Adaptation”.</p><p>Adaptation was required for both living with a partner and a dog. As a person who hates to see hair anywhere and made a problem out of it so many times even from a single hair strand with my previous flatmate, I had to adapt to seeing a bunch of hair buckled up in some corner. I also had to adapt to seeing my partner’s hair in every single place including in the poop of our dog. Of course, hair was not the only thing I had to adapt to, but it symbolizes this process nicely. During this period both my partner and I had to learn how to live with each other, how to trust each other how to lift each other when we were down, and how to avoid reflecting our job and daily stresses on each other. It took some time and effort from both sides, but it worked out well.</p><p>Last summer, we got married. But until our marriage and the time after it was and still is a roller-coaster ride for us. There is a lot to tell, let’s begin somewhere.</p><p>The marriage decision was both a love decision and a logical decision. We assessed our situation, and the things that we wanted to do and decided that marriage was step 0 of any plan that we had. So, we decided that this was a good option. This meant that I got my signal and started looking for rings. Finally found out that my uncle’s friend is in this business in Grand Bazaar in Istanbul, so he helped us find a good quality ring for a nice price. The entire ring-type selection process in Grand Bazaar was a real rush. Uncle’s friend was pulling us from store to store to his neighbor&#39;s, looking for the best candidate to make the rings. My wife chose a ring type and then found her finger size. Every single moment was like a scene from a sitcom.</p><p>After the chaotic nature of Grand Bazaar and a nice vacation with family, we turned back to Riga. We ordered the ring, but somebody had to bring it from Istanbul before 2023 ended. My parent hadn’t met their parents in person as well, so we decided that they would visit us in Riga, where the families meet and get to know each other, and my parents bring the ring. My parents arrived, had ga reat time in Riga, and met my wife’s family. Even though there are differences, there are similarities in these two cultures more than you anticipate.</p><p>After I got the ring, I wrote a song, recorded it, wrote a drum for the background, whistle for the color, and voila, it was ready. I proposed to her after a beautiful dinner out, near her favorite tree on Gertrudes iela.</p><p>The preparations began slowly, but they began. We started saving as much as possible. When I thought that I would have a chill time in my job so that I could motivate myself and go to the gym, lose some weight, and put a structure to my life, I got an opportunity in a job where I could build a demo in GenAI center of my company in Munich. That work required me to go to Munich 3 or 4 times and work until 12–1 so that it could finally be presented to the final boss, our global CTO. It was a system where voice-controlled robots inspected the assembly of a car door. I remember the moment that it worked end-to-end, it was a pleasure. But there is one moment that I will never forget. Even though me and my team built 95% of the system, I didn’t have the chance to be in the demo room when the big boss was here, due to the room being full of MDs who did not do anything regarding this system and had no business in that room. Luckily we had no system failure during the demo because there would be absolutely nobody that could make a fast fix at that moment. After the demo, I could finally focus on our wedding.</p><p>The preparations, arrangements, this and that. That was a tiring process, especially for my wife, and it became tiring for me when we got close to the day.</p><p>Some friends helped, some watched, some promised to help and gave up, and some appeared out of nowhere and helped. Big days (good or bad) are the days people show their real character and the value they give you.</p><p>My wife was stunning that day. She was confident and she knew that day was for her. Nothing made me more happy than this.</p><p>After two marriages in a week in August, one in Latvia and one in Turkiye, we had a vacation where we simply tried to get rid of the exhaustion and enjoy married life (where practically nothing has changed :D).</p><p>But there was another moment waiting for us, moving to the Netherlands. I made a country transfer request and got all the approvals. On the 12th of October in 2024, it was the departure for Amsterdam.</p><p>The first 3 days were just having fun, traveling around, and exploring the city. Then I stayed on my friend’s couch, in the hotel, and my friend’s couch again. During this period, I got assigned to a project where I was told it was going to be an easy ride. That’s exactly what I needed considering that I will be putting the flooring of our new home at the end of January, along with all the furniture.</p><p><strong>[Present]</strong> That supposed-to-be-easy-going project turned out to be a close-to-disaster nuclear bomb. The scope that was sold was only 30% of the scope the client wanted. After many discussions, I understood that I would be the one carrying this on my shoulder, right when I needed it the least. I needed to help the friend who was responsible for this project but didn’t know much to do about it. Helping is fine, but timing is not. And this situation gave me a pretty good lesson.</p><p>This rollercoaster ride for 3–4 months finally ended, and it is my birthday again. But I took some notes to myself during this period. Once I had a realization, I wrote them down:</p><ul><li>Once you have a big change in your life, you struggle, just accept it.</li><li>You need all the help you can get, mental and physical. Don’t turn back the offered help.</li><li>If you are struggling, do not try to help anybody including friends. Help only the person who is living the same struggle with you.</li><li>You tend to overthink, and while it may be helpful to prepare you for any kind of situation, you should avoid the stress and anxiety that it brings. Figure out ways to do it.</li><li>Don’t close up once you are stressed or struggling. Keep the connection with the ones who care for you, call you, and are worried about you.</li><li>You will not feel so inspired due to the stress that you have from the big change. It is okay, there will come days when you feel inspired.</li><li>You always hurry up. This is not good. Don’t hurry up, be patient, and everything will fall into its place</li><li>Valerija is much more infused in you than you think, she is important, for the way you will live your life</li></ul><p>Now, I am 30. Much better than my 26. On my 26th birthday, I wrote “Now I breathe, it is scary, blurry, and kind of dark. But I breathe”.</p><p>Now, I don’t even need to breathe. It was scary and blurry, it could be the darkest place on the planet, but I wouldn’t mind. I would just spit on it and crash whatever is in front of me, protect my wife and family no matter what. My power does not rely on what people have given me, it relies on me and only me. I changed, deformed, and formed, and I evolved. I got used, was humiliated, ignored, devalued, and have seen unfair treatment. But things have changed in me. I passed a super rough road where I stood up every time I fell on my knees. But now it is my turn. I don’t feel like “Oh I am 30, I don’t have this, I don’t have that, I haven’t achieved this, look what people are doing”. I couldn’t give a single f.ck about what people are doing. I am 30, and even though I get tired, I feel strong. And I embrace my 30 like it is an old friend that was missing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xIF06tEX9yADtzTJ" /><figcaption>Photo by <a href="https://unsplash.com/@johanneswre?utm_source=medium&amp;utm_medium=referral">Johannes W</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As my name, I evolve. But one sentence that I heard in a cartoon when I was young and did not make much meaning of it started coming to my kind again and again for years “When you are at your lowest point, you are ready for the greatest change”. If you don’t break that comfort zone, seriously nothing changes. River continues flowing, and you will always be carried along with it, unless you become a rock and fall to the bottom of the river, and find your way to go.</p><p>So, happy birthday to me. I am happy I am alive. I am happy I have this life 🥳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66a6c513806d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming Shapes with Polynomial Projection: A New Take on Non-Linear Mapping, Powered by…]]></title>
            <link>https://tekinevrim.medium.com/transforming-shapes-with-polynomial-projection-a-new-take-on-non-linear-mapping-powered-by-9c76affc33f1?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c76affc33f1</guid>
            <category><![CDATA[polynomial]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 21:20:53 GMT</pubDate>
            <atom:updated>2024-11-12T21:20:53.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transforming Shapes with Polynomial Projection: A New Take on Non-Linear Mapping, Powered by PyTorch</h3><p>In the vast landscape of computer vision and geometric transformations, finding an efficient way to map shapes non-linearly — without the typical grind of iterative calculations or complex neural networks — feels like discovering a shortcut that works. Imagine if you could morph a circle into a rectangle, align distorted medical images, or create data-augmented versions of objects, all with one simple method. Polynomial projection is a robust, one-step transformation method that’s as versatile as elegant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zH1zAhHLX1YB-snJ" /></figure><h4>What Makes Polynomial Projection Unique?</h4><p>Let’s break down what makes this method special. At its core, polynomial projection takes the coordinates of a shape, expands them with polynomial terms (like x², y³), and matches them to target points. The beauty of this approach lies in its training. We simply don’t need to train the model that transforms the points. We do the training by solving x to y mapping with <strong>exact solution</strong>, meaning you get immediate results with precision.</p><p>Built with <strong>PyTorch</strong>, this method not only makes it simple to implement but also <strong>runs efficiently on GPUs</strong>, handling large datasets and complex shapes in real-time. Instead of training a neural network or setting up radial basis functions, polynomial projection does it all in one go. You provide the initial points (say, a circle), and the target points (perhaps a rectangle), and let the projection transform the shape. It’s a convenient method for anyone working with shape transformations, especially when efficiency matters.</p><h4>Real-World Applications</h4><p>The power of this transformation method stretches across several domains:</p><ol><li><strong>Shape Morphing for Animation</strong>: Morphing a circle into a star or a square in smooth steps? Easy. This method generates each frame with fluid transitions, perfect for animations that need non-linear, natural transformations.</li><li><strong>Distortion Correction in Imaging</strong>: In fields like photography and satellite imaging, lens distortion often warps an image. Polynomial projection lets you reverse these effects quickly by mapping distorted points back to an undistorted grid, saving time and preserving detail.</li><li><strong>Medical Image Alignment</strong>: Aligning complex structures like organs in medical images often calls for non-linear mapping. Polynomial projection aligns points between different scans without requiring iterative adjustments, simplifying workflows in diagnostics and treatment planning.</li><li><strong>Data Augmentation in AI</strong>: Imagine training an AI model to recognize objects from varied perspectives. With polynomial projection, you can easily create non-linear deformations, generating augmented data that enhances model robustness, whether it’s for autonomous driving, augmented reality, or facial recognition.</li></ol><h4>Why Polynomial Projection with PyTorch?</h4><p>This method is precise, fast, and GPU-ready. Whether you’re aligning point clouds, correcting image distortions, or transforming shapes for animation, PyTorch’s polynomial projection offers a shortcut to efficiency with exact results. It’s perfect for anyone looking to implement shape transformations in practical applications — without spending hours on computation.</p><p>Ready to dive in? here is the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/271d4644a225321e10755e12f0b9a6fa/href">https://medium.com/media/271d4644a225321e10755e12f0b9a6fa/href</a></iframe><p>Future Use Cases:</p><p>This method could be useful in cryptography. If we want to send a message, we can just convert it to x, and y coordinates, calculate the transformation model with the proposed method, and save the transformation model as a key.</p><p>We could use it for fitting noisy data to a requested shape by calculating the transformation of the noisy data to the shape of interest.</p><p>I believe that there are more applications of this. Let me know if there is anything that comes to your mind in the comments.</p><p>Cheers,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c76affc33f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explainable AI for Deep Metric Learning: An Occlusion-Based Approach]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/information-creation-and-consciousness/explainable-ai-for-deep-metric-learning-an-occlusion-based-approach-495c5ebd4084?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/1024/0*EA_Hr9Qbp9filmow" width="1024"></a></p><p class="medium-feed-snippet">Unlocking the Black Box of Metric Learning with Explainable AI</p><p class="medium-feed-link"><a href="https://medium.com/information-creation-and-consciousness/explainable-ai-for-deep-metric-learning-an-occlusion-based-approach-495c5ebd4084?source=rss-eb684b71256e------2">Continue reading on Information, Creation and Consciousness »</a></p></div>]]></description>
            <link>https://medium.com/information-creation-and-consciousness/explainable-ai-for-deep-metric-learning-an-occlusion-based-approach-495c5ebd4084?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/495c5ebd4084</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-metric-learning]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Wed, 30 Oct 2024 20:34:09 GMT</pubDate>
            <atom:updated>2024-10-31T17:06:25.789Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Few-shot Segmentation in Computer Vision]]></title>
            <link>https://tekinevrim.medium.com/few-shot-segmentation-in-computer-vision-5e922f96f7fd?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e922f96f7fd</guid>
            <category><![CDATA[few-shot-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[semantic-segmentation]]></category>
            <category><![CDATA[automotive]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Tue, 21 May 2024 20:56:51 GMT</pubDate>
            <atom:updated>2025-07-08T08:03:56.580Z</atom:updated>
            <content:encoded><![CDATA[<p>Few-shot segmentation is a subfield of Deep Learning where machine learning models learn to locate and identify objects from a couple of annotated samples.</p><h3>Introduction — Computer Vision in Manufacturing, Retail and Automotive Sectors</h3><p>I have been developing Computer Vision solutions for manufacturing, retail, and primarily the automotive sector since 2019. In these industries, most computer vision systems rely on static cameras positioned at specific angles to monitor regions of interest on the shop floor. These solutions demand exceptionally high precision to be valuable.</p><p>In the automotive sector, for a model to be deemed “valuable” or “production-ready,” it must achieve 100% precision and a recall rate exceeding 98%, depending on the use case. With static camera placement and a defined field of view, it is possible to attain these results given a sufficient number of images. However, collecting “not okay” (negative) samples is often either very difficult or prohibitively expensive. Consequently, creating more than 50 negative samples (images) is almost impossible.</p><h4>The Era of Stacked Models</h4><p>We addressed this challenge by dividing the localization and identification tasks into separate models. Most of the use cases we developed consist of multiple models, such as detection combined with classification or segmentation combined with classification. Detection or segmentation models identify the region where the inspection will occur, and the classification model then categorizes this region as “okay” or “not okay.” This approach helped us nearly achieve our ambitious target of 100% precision with a recall rate exceeding 98%.</p><p>However, as we approached these targets, new challenges emerged. Clients began requesting use cases with fewer positive and negative samples but demanding higher recall rates while maintaining 100% precision. To meet these new requirements, we innovated further by focusing on Deep Metric Learning, Few-shot Learning, and Fine-grained Visual Categorization. While I won’t go into detail about these techniques, <a href="https://www.borealisai.com/research-blogs/tutorial-2-few-shot-learning-and-meta-learning-i/"><strong>this blog post</strong></a> provides an excellent explanation.</p><h4>The Era of Deep Metric Learning</h4><p>We started experimenting with Proxy-Anchor Loss and Multi-Similarity Loss. The multi-similarity loss was great when we wanted to teach the model fine-grained features of the given input examples, and proxy anchor loss was excellent as “<a href="https://arxiv.org/abs/2003.13911">it had lower training complexity and could converge very fast</a>”. However, we saw room for improvement in proxy anchor loss. We changed the loss formula for negative samples.</p><p>From</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmath.embed.fun%2Fembed%2Fm8wYZd3yuCKLigk1Rjdo7N&amp;display_name=Embed+Fun&amp;url=https%3A%2F%2Fmath.embed.fun%2Fembed%2Fm8wYZd3yuCKLigk1Rjdo7N&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=embed" width="200" height="96" frameborder="0" scrolling="no"><a href="https://medium.com/media/295e7221e096f1a510d584af8289392c/href">https://medium.com/media/295e7221e096f1a510d584af8289392c/href</a></iframe><p>To</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmath.embed.fun%2Fembed%2FtP3GzRqqvXg8wJReghF9Ct&amp;display_name=Embed+Fun&amp;url=https%3A%2F%2Fmath.embed.fun%2FtP3GzRqqvXg8wJReghF9Ct&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=embed" width="200" height="96" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0b4ea10994e143279331fa3173f2a33/href">https://medium.com/media/d0b4ea10994e143279331fa3173f2a33/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*TgvQ2vsHcUbqW75mgNilfQ.png" /><figcaption>Green: Negative part of the Proxy Anchor Loss, Red: Modified negative part of the Proxy Anchor Loss, Blue: Positive part of the Proxy Anchor Loss</figcaption></figure><p>This change allowed us to achieve near-zero losses, which was not possible with the original Proxy Anchor Loss (PAL). The logic behind this improvement can be explained as follows:</p><p>The original PAL assigns a very high loss value for negative pairs with near-zero cosine similarity. However, when the cosine similarity between negative pairs is near zero, it indicates that these vectors have no mathematical relationship. Therefore, the loss calculated in this situation should be zero. As illustrated in the graph above, the modified formula calculates the loss as near zero for negative pairs with near-zero cosine similarity.</p><p>We have also introduced a proxy optimization method that helps us generate proxies that are as close as possible to a pre-trained model’s initial state, where the proxies of the classes are as far as possible from each other. This optimization helped our models converge faster to a lower minimum than with random initial proxies. More info can be found in <a href="https://arxiv.org/abs/2104.11231">VeriMedi: Pill Identification using Proxy-based Deep Metric Learning and Exact Solution</a></p><h3>The next revolution is coming…</h3><p>Both the stacked models and the Deep Metric Learning assets we created have been incredibly valuable. So far, my team and I have developed and deployed over 500 unique use cases for an automotive client, each meeting the criteria of 100% precision and over 99% recall. However, we have more than 1,000 additional use cases planned for development and deployment. When you consider the combined costs of computing, data labeling, man-hours, and generating “not okay” cases in an operational factory, the scope of the problem is much larger than initially anticipated. So, we need something new.</p><p>We have identified that the primary costs of computing and labeling stem from the detection and segmentation models. These models also require the most extensive data generation. If we could develop a solution capable of learning the region of interest or any specific object from just 5 “okay” and 5 “not okay” samples, it would revolutionize our entire development process. This breakthrough would significantly reduce expenses on computing, data storage, and labeling, and shorten development times. We might even empower workers to create their models within 15 minutes for any repetitive visual inspection work.</p><h4>The Era of Few-shot Segmentation Begins…</h4><p>I saw this opportunity nearly 1.5 years ago and started studying the field of few-shot segmentation. I applied so many methods out there to the production-level data, just to see them all fail.</p><p>So, I simply took the outcomes of the studies I had on deep metric learning and adjusted them for few-shot segmentation. And here is the result of my work.</p><p>For sample images, I have chosen BMW images as it is my favorite car manufacturer.</p><h4>Experiments</h4><p>Support Image &amp; Mask:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*003wTGANEE0PxTWDfoZFUQ.png" /><figcaption>Support Image &amp; Mask of BMW Emblem</figcaption></figure><p>Query Images and Mask Predictions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcsjGaV13bo7omcjFA6wCQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f38Y3woihYAcWhvxXCoudQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t90zgxpVaqF51BqLywS8aA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpgt4MJdmBKOHBIoO-n4aw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNl8iPCCJNJTTpqgfcEnKA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*tY4RPGwA-J7z9AHiKRnrWQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yrmf5WC7T7tH8fu6kpy6NA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*kyBI70_RCRmBLlmdO3OnbQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*x1W-Q_VyAV2mwFsfMceugg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TJ0VoO7sf7lAs83npoEcg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZvvb1m2ncc2CivolglqKA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ulGgQNBQ9vtUfGmhWRlYQg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jjV1vYewNnxtAqRfzQEVCw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*oz2wr0OUVBvM-aHe5QzZ_w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*z2ShtJ_aO0CyJNqj8dNV7w.jpeg" /></figure><p>The results are pretty good as seen from the visualizations above. Also, after you post-process the masks, it is possible to get the positive points from the masks and use <a href="https://github.com/facebookresearch/segment-anything">Segment Anything</a> to find an even better mask for the entire object. If you use Segment Anything V.2, you can track any object in a video as well.</p><p>I will make another post explaining how everything works along with the usage of the repository, but until then, you can reach the code repository from the link below:</p><h4><a href="https://github.com/rootvisionai/dml_segmentation">LINK TO THE CODE REPOSITORY</a></h4><p><em>Note: All research studies which are mentioned in this post were done with personal resources and time. I am the sole owner of the repository and share my rights with Nikita Karpuks as thanks for his well-appreciated contribution to this research and code repository.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Eas-B9poqtqDQ0ryOL0oHQ.jpeg" /><figcaption>Tekin Evrim Ozmermer</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e922f96f7fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulation in Python: How does the help of each individual in a community contribute to the total…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/information-creation-and-consciousness/how-does-the-help-of-each-individual-in-a-community-contribute-to-the-total-value-created-in-the-2bf3d1b802ae?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*VBIWkqHVbs6MqWX9" width="7111"></a></p><p class="medium-feed-snippet">A simulation (written in Python and PyTorch) examining the effect of the amount of help given to the community and the time spent on&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/information-creation-and-consciousness/how-does-the-help-of-each-individual-in-a-community-contribute-to-the-total-value-created-in-the-2bf3d1b802ae?source=rss-eb684b71256e------2">Continue reading on Information, Creation and Consciousness »</a></p></div>]]></description>
            <link>https://medium.com/information-creation-and-consciousness/how-does-the-help-of-each-individual-in-a-community-contribute-to-the-total-value-created-in-the-2bf3d1b802ae?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bf3d1b802ae</guid>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 14:49:50 GMT</pubDate>
            <atom:updated>2022-10-22T14:59:15.747Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Convolutions to Transformers for Deep Metric Learning]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://tekinevrim.medium.com/convolutions-to-transformers-for-deep-metric-learning-d170eaa1f17?source=rss-eb684b71256e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*59v9xaR-tywfj35l" width="6000"></a></p><p class="medium-feed-snippet">Can Visual Transformers replace Convolutional Neural Networks in Deep Metric Learning?</p><p class="medium-feed-link"><a href="https://tekinevrim.medium.com/convolutions-to-transformers-for-deep-metric-learning-d170eaa1f17?source=rss-eb684b71256e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://tekinevrim.medium.com/convolutions-to-transformers-for-deep-metric-learning-d170eaa1f17?source=rss-eb684b71256e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d170eaa1f17</guid>
            <category><![CDATA[convolution-neural-net]]></category>
            <category><![CDATA[resnet]]></category>
            <category><![CDATA[deep-metric-learning]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[visual-transformer]]></category>
            <dc:creator><![CDATA[Tekin Evrim Ozmermer]]></dc:creator>
            <pubDate>Thu, 26 May 2022 11:09:43 GMT</pubDate>
            <atom:updated>2022-05-28T07:00:19.559Z</atom:updated>
        </item>
    </channel>
</rss>