<?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 Özge Çinko on Medium]]></title>
        <description><![CDATA[Stories by Özge Çinko on Medium]]></description>
        <link>https://medium.com/@ozgecinko?source=rss-2f33cfb5bafd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RgLMTfJJ5UgX-rhiSBdp0g.jpeg</url>
            <title>Stories by Özge Çinko on Medium</title>
            <link>https://medium.com/@ozgecinko?source=rss-2f33cfb5bafd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:23:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ozgecinko/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[Neuroplasticity in the Age of AI]]></title>
            <link>https://ozgecinko.medium.com/neuroplasticity-in-the-age-of-ai-01a964e3b5bc?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/01a964e3b5bc</guid>
            <category><![CDATA[cognitive-neuroscience]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neuroplasticity]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 17:13:00 GMT</pubDate>
            <atom:updated>2026-10-28T17:13:00.255Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YxgRY4sbN2-xEBQ4cqTXg.png" /><figcaption>Byte En Vogue by Özge Çinko.</figcaption></figure><p>While October’s technology headlines focused on security vulnerabilities, including flaws discovered with the help of AI, I found myself thinking about a different kind of security: <strong>the security of my own mind.</strong></p><p>As an AI engineer, I use AI tools frequently; even to edit my articles and work on my designs. I’m enthusiastic about these tools. They make it easier to turn my ideas into reality but, that convenience has also made me pause.</p><p>Am I staying actively involved in developing my ideas? Am I learning from the process? Am I beginning to skip the parts that would help me grow? <br>I wanted to explore how I could keep my mind engaged in the age of AI.</p><p>One night, while I was scrolling, I came across an interview with Olympic champion Eileen Gu. You can watch it in <a href="https://youtube.com/shorts/-tbAaPXNeSg?si=Q4z54KE1BV7SHBth">here</a>.</p><p>The interviewer asked how she managed to answer questions so quickly and comprehensively, then invited her to explain how her mind worked. Gu answered by describing how she examines her own thought processes. One sentence of her made me wonder:</p><blockquote>With neuroplasticity on my side, I can literally become exactly who I want to be.</blockquote><h4>What exactly is neuroplasticity?</h4><p>I began reading about it. In simple terms, neuroplasticity is the brain’s ability to change its structure and function in response to experience and learning. Connections between neurons can become stronger or weaker, and their structure can change. This capacity continues into adulthood; it does not belong only to children. What interested me most was the possibility of continuing to develop.</p><p>Gu’s words encouraged me to look more closely at the experiences and habits I was giving my mind.</p><p>Learning a language, playing chess, practising a skill and working through an unfamiliar problem all involve participating in a process. I started thinking less about boosting my brain and more about making room for learning in my everyday life. That brought me back to AI.</p><p>When AI completes a task for me, what am I actually learning? I can see the result, but can I explain how it works? Could I do something similar on my own next time? I want to make sure I’m giving myself room to learn, even when the answer is only a prompt away.</p><p>For humans, learning takes time. An article might take me half an hour to draft, while an AI tool can generate one in seconds. We are working on very different timescales. As these tools become faster, I sometimes encounter the idea that producing something is enough; that understanding how it works is optional. <strong>I find that difficult to accept</strong>, especially when learning is part of the reason I started. If I don’t understand what I’m building, how can I evaluate it?</p><blockquote>If I hand over every difficult step, where do I leave room to develop my own judgment?</blockquote><p>I love AI, and I want to keep using it. I also want to be intentional about the role it plays in my work. Sometimes that might mean writing my own first draft before asking for feedback. Sometimes it might mean trying to solve a problem before requesting a solution, or asking an AI tool to question my reasoning instead of completing the task.</p><p>Editing this article is one example. I wrote it myself first, then worked with AI to edit it. By reviewing its corrections, I’m learning from my mistakes and discovering different ways to express myself.</p><p>As AI plays a larger role in my life, I want to stay actively involved: to ask questions when I don’t understand, to make room for practice and to recognize my own contribution to the ideas that emerge.</p><p>Learning about neuroplasticity this October reminded me that my limits are not necessarily fixed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01a964e3b5bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why My Words Still Matter in the Age of AI?]]></title>
            <link>https://ozgecinko.medium.com/why-my-words-still-matter-in-the-age-of-ai-addd64a63488?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/addd64a63488</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[cognitive-science]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 19:05:15 GMT</pubDate>
            <atom:updated>2026-10-15T19:05:15.773Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*o1DGqDio-Cofgbpk.gif" /></figure><p>Ever since large language models like ChatGPT entered our lives, my sense of aesthetics has started to change because of the enormous amount of AI-written text piling up on the internet. I used to find neatly written texts appealing, but now they have all started to feel like copies of the same voice. I have realized that I miss hearing a different voice, even one with mistakes or problems in its writing. This longing first led me to a question I was afraid to answer.</p><blockquote><em>AI can write everything now, so what difference would it make if I wrote? Does it still mean anything?</em></blockquote><p>I love certain coincidences. You ask a question, and then you come across an answer that connects directly to it. I had one of those moments last night. While scrolling through TikTok before going to sleep, I came across a video explaining how cognitive overload can negatively affect us. The video described how exhausting cognitive overload can be: a state of mental fatigue that occurs when the brain encounters more information than its working memory can handle. Watching it, I realized that writing had become more mentally tiring for me than it used to be. In the past, words came easily when I picked up a pen or sat down at a keyboard. Now, I was asking a large language model to approve even the simplest sentence. If I was in a real hurry, I would even have it write the whole thing for me. When I noticed this that night, the question I had asked myself in the morning came back to bother me. <em>But does my writing still mean anything?</em></p><p>Please do not get me wrong: I am not against the development or use of AI. I work in this field myself, and I am enthusiastic about it. It was just that, last night, alongside that enthusiasm, I felt troubled by the fact that I could no longer enjoy something I used to love doing. I have always loved writing. Back when I wrote entirely on my own, I even thought of it as exercise for my mind, because I rarely forgot things and could easily remember what I had written. I felt that I was leaving a trace through writing. This enthusiasm had been part of my life since childhood, leading me to keep diaries and write blogs. Now, a weary question had formed behind it, and I wanted to explore it. I brainstormed and then did some research.</p><p>I came across the 2025 paper <a href="https://arxiv.org/abs/2506.08872">“Your Brain on ChatGPT”</a> by MIT researcher Nataliya Kosmyna and her colleagues. The researchers designed an experiment around the question: <strong>“How does your brain work, and how much do you remember, when you have AI write an essay compared with writing it yourself?”</strong> They divided 54 participants, aged 18–39 and recruited from universities around Boston, into three groups and asked them to write:</p><ul><li>A group that wrote using<strong> only ChatGPT.</strong></li><li>A group that wrote using <strong>only search engines</strong>, such as Google.</li><li>A group that wrote <strong>without any assistance</strong>, relying entirely on their own knowledge.</li></ul><p>Initially, the groups took part in three sessions, writing essays on different topics in each one. During all three sessions, the researchers recorded the participants’ brain activity using electrodes placed on their heads. They also examined the texts and interviewed the participants afterwards, asking how much they remembered.</p><p><strong>When they examined the brain signals recorded across the three sessions, they found that different regions of the brain worked together in a more coordinated way in participants who wrote without assistance</strong>. This coordination was at a moderate level in those who used search engines and at a low level in those who used AI.</p><p>After the three sessions, they held a fourth session with 18 participants who returned. This time, the experiment involved two groups:</p><ul><li>Nine participants who had previously used ChatGPT now wrote without assistance.</li><li>Nine participants who had previously written without assistance now used ChatGPT.</li></ul><p>During the fourth session, the participants were asked to write again about a topic they had written about before.</p><p>When the researchers examined the brain signals recorded during the fourth session, <strong>they found that the electrical activity across brain regions was more coordinated in participants who had first written without assistance and then used ChatGPT</strong>, compared with the other group.</p><p>After the sessions, the researchers assessed their findings and suggested that regularly turning to AI reduces mental effort and may limit the practice needed for learning. In short, they described the possibility that the effort we avoid by using AI today may leave us at a disadvantage when we need to do the same task without AI tomorrow as <strong>cognitive debt.</strong></p><p>My personal takeaway from this paper is this: if I do not brainstorm at the beginning of the writing process and do not develop a clear understanding of my own text, that lack of understanding may cause me to build up cognitive debt in the future. <strong>Cognitive debt, in turn, may lead to harmful outcomes such as weaker judgement and a dependence on approval.</strong> In fact, whether AI could create a dependence on approval was already one of the questions on my mind. When I researched this as well, I came across a case report by researcher Sarah Armstrong, published on September 16, 2026, titled <a href="https://formative.jmir.org/2026/1/e98297">“Problematic Reliance on Generative AI in an Anxious Young Adult”</a>.</p><p>The report described the experience of a young woman who had initially started using AI to make her work emails sound more professional. Over time, she began asking it to adjust the tone of her messages and to reassess them after every revision. She even noticed that although AI gave her a temporary sense of confidence, she had started to doubt her own ability when writing on her own. In short, she gradually began to see AI less as a source of help and more as an authority whose judgement she needed to consult. The young woman had also previously been diagnosed with anxiety and major depression, so the researcher interpreted this process as a cycle of reassurance-seeking.</p><p>I know it does not make much sense to draw a general conclusion from a report about just one person. Still, <strong>the idea of people with anxiety using AI to meet their need for approval felt dangerous </strong>to me.</p><p>That said, I do not think cognitive debt and dependence on approval are the only risks of AI. I mentioned earlier that, based on my own observations, I had become more forgetful when preparing texts with AI. I researched this too and came across Andre Barcaui’s 2025 paper, <a href="https://www.sciencedirect.com/science/article/pii/S2590291125010186">“ChatGPT as a Cognitive Crutch”</a>. In an experiment involving 120 university students, participants were randomly divided into two groups: one studied with AI assistance, while the other studied without it. After 45 days, the participants were given an unexpected test to assess how much of the information they remembered. The group that used AI answered 57.5% of the questions correctly, while the group that did not use AI answered 68.5% correctly. Of course, we can not conclude from this study that AI increases forgetfulness by 100%, but I can also see that my own idea is not entirely without basis.</p><p>At the end of the day, I am not labelling AI as entirely dangerous. Although research points to some possible problems associated with AI use, such as <em>cognitive debt, forgetfulness, and dependence on approval</em>, it is also clear that these problems do not occur with every way of using it. My takeaway from these studies was the importance of how we use AI. They made me think about how important it still is to avoid handing everything over to AI, to preserve our own thinking process, and to <strong>let our own voice be heard</strong>. I also came to think that failing to protect this process could have harmful consequences.</p><p>For me, <strong>writing</strong> is one way of preserving my thinking process and letting my own voice be heard. In short:</p><blockquote>Yes, my writing still matters, even when AI can write everything.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*IgPrC3zFs8MA12m-" /></figure><p><strong>References:</strong></p><ul><li>Kosmyna, N., Hauptmann, E., Yuan, Y. T., Situ, J., Liao, X.-H., Beresnitzky, A. V., Braunstein, I., &amp; Maes, P. (2025). <em>Your brain on ChatGPT: Accumulation of cognitive debt when using an AI assistant for essay writing task.</em> <a href="https://doi.org/10.48550/arXiv.2506.08872">https://doi.org/10.48550/arXiv.2506.08872</a></li><li>Barcaui, A. (2025). <em>ChatGPT as a cognitive crutch: Evidence from a randomized controlled trial on knowledge retention.</em> <em>Social Sciences &amp; Humanities Open.</em> <a href="https://doi.org/10.1016/j.ssaho.2025.102287">https://doi.org/10.1016/j.ssaho.2025.102287</a></li><li>Armstrong, S. (2026). <em>Problematic reliance on generative AI in an anxious young adult: Case report.</em> <a href="https://doi.org/10.2196/98297">https://doi.org/10.2196/98297</a></li><li>The opening GIF is from the music video for Gunna’s Hot.</li><li>The closing GIF is from the film The Great Gatsby.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=addd64a63488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yapay Zeka Her Şeyi Yazabiliyorken Benim Yazmamın Bir Anlamı Var Mı?]]></title>
            <link>https://ozgecinko.medium.com/yapay-zeka-her-%C5%9Feyi-yazabiliyorken-benim-yazmam%C4%B1n-bir-anlam%C4%B1-var-m%C4%B1-21c0548d83ce?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/21c0548d83ce</guid>
            <category><![CDATA[nörobilim]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <category><![CDATA[yazmak]]></category>
            <category><![CDATA[yazarlık]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 18:31:26 GMT</pubDate>
            <atom:updated>2026-10-15T18:31:26.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*h1ePliX3iCgufviE.gif" /></figure><p>LLM’ler yani ChatGPT gibi büyük dil modelleri hayatımıza girdiğinden beri internette devasa bir yığına dönüşmekte olan yapay zeka ile yazılmış metinler yüzünden estetik algım değişmeye başladı. Eskiden düzenli yazılmış yazılar çekici gelirdi ama artık hepsi aynı sesin kopyası gibi gelmeye başladı ve hatalı da olsa yazım problemi de olsa ortak bir ses harici başka bir sesi duymaya hasret kaldığımı fark ettim. Bu hasret beni cevaplamaktan korktuğum bir soruya itti önce.</p><blockquote>Yapay zeka artık her şeyi yazabiliyor, ben yazsam ne olacak? Bir anlamı kaldı mı?</blockquote><p>Bazı denk gelişleri çok seviyorum. Bir soru sorarsın ve karşına tam olarak bu soruyla bağlantı kurabileceğin bir cevap çıkar. Ben de böyle bir an yaşadım dün gece. Uyumadan evvel TikTok’ta gezinirken bilişsel yükün aşırılaşmasının insana özgü olmadığını anlatan bir videoya denk geldim. Videoda <strong>cognitive overload</strong> olarak adlandırılan bu durumun yani beynin çalışma belleğinin kapasitesini aşan seviyede bilgiyle karşılaşması sonucunda oluşan bu zihinsel yorgunluk durumunun insanı ne kadar tükettiğini anlatıyordu. İzleyince yazma konusunda eskiye nazaran zihinsel yorgunluk yaşadığımı fark ettim. Eskiden kalemi elime aldığımda ve klavye başına geçtiğimde cümlelerimi kolayca sarf ederken şimdi en ufak bir cümleyi dahi büyük dil modelinin onayından geçirdiğimi hatta ve hatta çok acelem varsa direkt büyük dil modeline yazdırdığımı fark ettim. Gece bunu fark edince sabah sorduğum soru yine kafamı kurcaladı. <em>İyi de, yazmamın bir anlamı kaldı mı ki?</em></p><p>Yanlış anlaşılmasın; yapay zeka geliştirmelerine veya yapay zeka kullanmaya karşı değilim. Ben zaten bu alanda çalışan biriyim hatta bu alanda hevesle çalışan biriyim. Sadece dün gece bu hevesin yanı sıra geçmişte keyifle yaptığım bir eylemi bugün artık keyifle yapamamam beni dertlendirdi. Ben yazmayı her zaman sevmişimdir, hatta sadece kendi başıma yazdığım dönemlerde zihnimin pratik yaptığını düşünürdüm çünkü unutkanlığım olmazdı ve yazdığım şeyi çok kolay hatırlardım. Yazarak bir iz bıraktığımı düşünürdüm. Bu heves benim çocukluğumdan beri hayatımda olan, günlükler ve bloglar tutmama sebep olan bir hevesti. Bu hevesin arkasındaki yorgun bir soru oluşmuştu ve üstüne gitmek istedim. Bir beyin fırtınası ve akabinde araştırmalar yaptım.</p><p>2025 yılında MIT araştırmacısı Nataliya Kosmyna ve arkadaşlarının <a href="https://arxiv.org/abs/2506.08872">“Your Brain on ChatGPT”</a> makalesine denk geldim. Araştırmacılar “B<strong>ir kompozisyonu kendin yazdığına kıyasla yapay zekaya yazdırdığında beyin nasıl çalışır ve ne kadarını hatırlarsın?”</strong> sorusundan yola çıkarak bir deney yapmışlar. Deneyde Boston çevresindeki üniversitelerden 18–39 yaş aralığındaki 54 kişiyi üçerli gruplar halinde yazmalarını isteyerek sınamışlar:</p><ul><li><strong>Sadece ChatGPT</strong> kullanarak yazan grup.</li><li><strong>Sadece</strong> Google gibi <strong>arama motor</strong>larından yararlanarak yazan grup.</li><li><strong>Hiçbir yardım almadan</strong> tek başına kendi bilgi birikimiyle yazan grup.</li></ul><p>İlk başta bu gruplara üç oturum yapılmış ve her bir oturumda katılımcılar farklı alanlarda kompozisyonlar yazmış. Araştırmacılar üç oturumda da gruplardaki katılımcıların yazma sırasındaki beyin etkinliğini başlarına takılan elektrotlarla kaydetmişler, metinleri incelemişler, sonrasında da katılımcılarla görüşerek onlara ne kadarını hatırladıklarını sormuşlar.</p><p>Üç oturum sonunda kaydedilen beyin sinyalleri incelenince <strong>yardım almadan yazan kişilerde beynin farklı bölgelerinin birbiriyle daha koordineli çalıştığını görmüşler</strong> ve bu koordinasyon arama motoruyla yazan kişilerde orta, yapay zekayla yazan kişilerde ise düşük düzeyde görülmüş.</p><p>Üç oturum sonrası geri dönen 18 kişiyle dördüncü bir oturum daha yapmışlar, bu kez deney iki gruba ayrılarak yapılmış:</p><ul><li>Önceden GhatGPT kullanan 9 kişi bu defa yardım almayarak yazmış.</li><li>Önceden yardım almadan yazan 9 kişi bu defa ChatGPT kullanarak yazmış.</li></ul><p>Dördüncü oturumdaki deneyi yaparken katılımcılardan geçmişte yazdıkları bir konuda tekrardan yazmalarını istemişler.</p><p>Dördüncü oturumun sonunda kaydedilen beyin sinyalleri incelenince de <strong>önce yardım almayıp sonrasında ChatGPT kullanarak yazan kişilerin diğer gruba kıyasla beyin bölgelerindeki elektriksel etkinliğinin daha koordineli</strong> olduğu görülmüş.</p><p>Oturumlar sonunda araştırmacılar elde edilen bulguları değerlendirmişler ve <strong>yapay zekaya düzenli olarak başvurmanın zihinsel çabayı azalttığını</strong>, öğrenme için gereken pratiği sınırlayabildiğini öne sürmüşler. Kısacası araştırmacılar deney sonucunda; bugün bir işi yapay zeka kullanarak yaparken harcanmayan eforun, yarın aynı işi yapay zeka kullanmadan yapmak gerektiğinde bir eksiklik olarak ortaya çıkacağını <strong>cognitive debt</strong> yani bilişsel borç olarak açıklamışlar.</p><p>Benim bu makaleden kendime çıkardığım sonuç şu; bir metni ortaya koyarken başlangıçta beyin fırtınası yapmazsam ve o metne hakim olmazsam, bu hakimiyetsizlik gelecekte bilişsel borçlanmama sebep olabilir. Bilişsel borçlanmak da gelecekte muhakeme zayıflaması, onay bağımlılığı gibi tehlikeli sonuçlara sebep olabilir. Zaten yapay zekanın onay bağımlılığına sebep olması mevzusu da kafamda yer eden sorulardan biriydi, bu konuyu da araştırınca araştırmacı Sarah Amstrong tarafından 16 Eylül 2026&#39;da yayınlanan “<a href="https://formative.jmir.org/2026/1/e98297">Problematic Reliance on Generative AI in an Anxious Young Adult</a>” başlıklı vaka raporuna denk geldim.</p><p>Bu raporda başlangıçta iş maillerini daha profesyonel yazmak amacıyla yapay zeka kullanmaya başlayan bir genç kadının deneyiminden bahsedilmiş. Genç kadın yapay zeka kullandıkça zamanla mesajların tonunu düzelttirmeye başlamış, her düzenlemeden sonra yeniden değerlendirmesini istemiş hatta yapay zekaya kısa süreli güven duyduğunu ama kendi başına yazarken yeterliliğinden şüphe etmeye başladığını fark etmiş. Kısacası genç kadın zamanla yapay zekayı bir yardımdan çok kararına başvurulması gereken bir otorite gibi görmeye başlamış. Genç kadının önceden anksiyete ve majör depresyon tanısı da varmış o yüzden araştırmacı, genç kadının bu sürecini raporda bir güvence arama döngüsü olarak değerlendirmiş.</p><p>Bu rapor tek kişi üzerine değindiği için genel bir çıkarım yapmak çok mantıklı değil biliyorum ama yine de <strong>anksiyeteye sahip bireylerin onaylanma ihtiyacını yapay zeka ile gidermesi fikri</strong> bana tehlikeli geldi.</p><p>Gerçi, yapay zekanın tek tehlikesinin bilişsel borç veya onay bağımlılığı olduğunu da düşünmüyorum. Kendi gözlemlerime göre yapay zekayla bir metin hazırladığım süreçte unutkanlığımın arttığına değinmiştim. Bununla alakalı da bir araştırma yaptım ve 2025 yılında Andre Barcaui tarafından yayınlanan “<a href="https://www.sciencedirect.com/science/article/pii/S2590291125010186">ChatGPT as a cognitive crutch</a>” makalesine rastladım. 120 üniversite öğrencisi üzerinde rastgele iki gruba ayrılarak bir deney yapılmış: Bir grup yapay zeka yardımıyla diğer grup yardım almadan çalışmış. 45 gün sonra katılımcılara aniden bir test yapılmış ve çalışılan bilgilerin ne kadar hatırlandığı değerlendirilmiş. Yapay zeka kullanan grubun doğru cevap oranı %57.5 gelirken kullanmayan grubun doğru cevap oranı %68.5 gelmiş. Bu araştırma sonucunda yapay zeka unutkanlığı %100 artırıyor diyemeyiz elbette ama benim savımın tamamen geçersiz olmadığını da görüyorum.</p><p>Günün sonunda yapay zekayı tamamen tehlikeli olarak etiketlemiyorum. Araştırmalar yapay zeka kullanımının sebep olabileceği bazı problemleri <em>(bilişsel borç, unutkanlık, onay bağımlılığı gibi)</em> belirtse de her kullanım biçiminde bu problemlere rastlanılmadığı da ortada. Benim bu araştırmalardan çıkarımım <strong>yapay zekayı kullanma biçimimizin önemi</strong> üzerine oldu. Yapay zekayı kullanırken her şeyi ona devretmemenin, kendi düşünme sürecini koruyabilmenin, <strong>kendi sesini konuşturabilmenin</strong> hala çok önemli olduğunu; bu sürecin korunamadığı takdirde tehlikeli sonuçlar doğurabildiğini düşündüm.</p><p>Benim düşünme sürecimi koruyabilmemin, kendi sesimi konuşturabilmemin parçalarından birisi <strong>yazmak</strong>. Kısacası:</p><blockquote><em>Evet, yapay zeka her şeyi yazabiliyorken benim yazmamın bir anlamı var.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*uX8R69vfb2LU6-uW" /></figure><p><strong>Kaynaklar:</strong></p><ul><li>Kosmyna, N., Hauptmann, E., Yuan, Y. T., Situ, J., Liao, X.-H., Beresnitzky, A. V., Braunstein, I., &amp; Maes, P. (2025). <em>Your brain on ChatGPT: Accumulation of cognitive debt when using an AI assistant for essay writing task: </em><a href="https://doi.org/10.48550/arXiv.2506.08872">https://doi.org/10.48550/arXiv.2506.08872</a></li><li>Barcaui, A. (2025). <em>ChatGPT as a cognitive crutch: Evidence from a randomized controlled trial on knowledge retention</em>. <em>Social Sciences &amp; Humanities Open: </em><a href="https://doi.org/10.1016/j.ssaho.2025.102287">https://doi.org/10.1016/j.ssaho.2025.102287</a></li><li>Armstrong, S. (2026). <em>Problematic reliance on generative AI in an anxious young adult: Case report:</em> <a href="https://doi.org/10.2196/98297">https://doi.org/10.2196/98297</a></li><li>En baştaki gif Gunna Hot klibinden.</li><li>En sondaki gif The Great Gatsby filminden.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21c0548d83ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM-Based Recommendation Systems]]></title>
            <link>https://ozgecinko.medium.com/llm-based-recommendation-systems-35b5f33332f1?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/35b5f33332f1</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llm-recommendation]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 11:30:19 GMT</pubDate>
            <atom:updated>2026-06-07T11:30:19.224Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A practitioner’s field guide to LLM-based recommendation systems in 2026: where embeddings help, where generative models are beginning to ship, what real personalization actually requires, and where the boring old model still wins.</em></p><h3>The machine you never see</h3><p>Open almost any app and a decision has already been made for you. The next song, the video that autoplays before you finish the last one, the products that follow you around the web, the Netflix row at the top of the screen; none of it is random. <strong>Each one comes from a recommendation system.</strong> The system collects millions of candidates, filters them, ranks them, and chooses the few it thinks you want, in milliseconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AIeRrdHvL-aeYuvFThiLbw.png" /></figure><p>For many products this is not a small feature, it’s a central part of the business. You may have heard that Amazon’s recommender drives <em>about a third of purchases</em> and that Netflix recommendations account for roughly <em>three-quarters</em> of what people watch. These numbers are useful to know, but they should be treated carefully. They come from a widely cited McKinsey article from 2013, so they are better seen as industry folklore than as current product data.</p><p>A more reliable point is this: <strong>good personalization can make a meaningful business difference</strong>. McKinsey’s more recent work says that <strong>personalization can increase revenue by around 5-15%</strong>, depending on the sector and how well it is done. Market analysts may disagree on exact numbers, but they agree on the direction: recommendation and personalization infrastructure has become an important software category, not just a side feature.</p><p>So when a new technology changes how these systems can be built, the impact can be large. That technology is the <strong>large language model</strong>, or <strong>LLM</strong>.</p><p>A few years ago, people were still asking whether LLMs would have a “ChatGPT moment” in recommendation systems. By mid-2026, the answer is no longer only theoretical; Meta, Netflix, Spotify, and Kuaishou have all published serious work showing where LLM-inspired and generative recommendation systems are starting to matter.</p><p>But this is not a story about replacing every recommender with a chatbot. That idea sounds exciting, but it is usually the wrong starting point. The more useful question is: <strong>where, exactly, should the language model go inside the system and where should it not?</strong></p><h3>How recommendation used to work (and mostly still does)</h3><p>To understand what changed, we need to remember what came before. Much of it is still running in production today.</p><p>The oldest useful idea is <strong>collaborative filtering</strong>. The basic idea is simple: <em>people who behaved similarly in the past may behave similarly again.</em></p><p>Modern versions of collaborative filtering learn from an <strong>interaction matrix</strong>: clicks, watches, purchases, likes, skips, saves, and other user actions. These models are very good at learning co-occurrence: <em>People who bought this also bought that.</em></p><p>But a purely collaborative model is very <strong>literal</strong>. To the model, a movie is just an ID. A product is just an ID. A podcast is just an ID. It has no idea that a documentary about deep-sea vents and a documentary about coral reefs are related. It can only learn that connection if enough people consume both.</p><p>The workhorse that scaled this idea is the <strong>two-tower network: </strong>one tower encodes the user, another encodes the item, and during training, the model learns to put matching users and items close together in the same vector space.</p><p>At serving time, the system embeds the user and searches a precomputed index of item vectors to find nearest neighbors. If your team already uses “embeddings plus a vector database”, then you have been using a version of this idea since before LLMs became popular.</p><p>After retrieval comes the <strong>ranking layer</strong>. This layer may include tree models, deep learning recommendation models, wide-and-deep architectures, sequence models, business rules, and calibration. Its job is to estimate what the user is most likely to do next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5_3_QemEa04hhHDCP1h1Q.png" /></figure><p>These systems work well. But they also have three common <strong>problems</strong>.</p><p>First, they struggle with <strong>cold start</strong>. A new item has no interactions. A new or anonymous user has little history. A system based mainly on past behavior has very little information to use.</p><p>Second, they often have weak <strong>semantic understanding</strong>. They learn what appears together, but not always what something means. If your catalog has rich text, images, audio, reviews, recipes, symptoms, scenes, or instructions, a purely ID-based model may ignore a lot of useful information.</p><p>Third, they <strong>stop scaling</strong>; at very large industrial scales, teams have found that classical recommendation stacks do not always improve smoothly when you add more parameters and compute. This does not mean classical recommenders are dead. It means the field has been looking for architectures that scale more predictably, similar to what happened in language and vision models.</p><h3>What LLMs change?</h3><p>A language model brings two things to the table.</p><p>First, <strong>broad semantic knowledge</strong>: it already “knows” that a synth-heavy track from 1984 and a modern synthwave song belong near each other, before any user connects them through behaviour.</p><p>Second, <strong>a natural interface for intent</strong>: it can read a synopsis, summarize reviews, classify a recipe by dietary need, infer the mood of a playlist, and turn a messy sentence into structured retrieval signals.</p><p>Map those onto the three weaknesses and the picture is honest, not magical:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHfqS4KxTGhVSdgCiCa6ig.png" /></figure><blockquote>LLMs give us new tools, not free wins.</blockquote><p>They also bring real costs — latency, serving cost, grounding, evaluation, monitoring — and the inconvenient fact that an older algorithm is sometimes still the best answer.</p><p>The key question is not only: <strong>can an LLM help?<br></strong>The better question is: <strong>where should the LLM enter the pipeline?</strong></p><h3>Where does the LLM actually go?</h3><p>There are two main design families.</p><p>You can use an LLM <strong>as the recommender</strong>, where it directly generates suggestions.</p><p>Or you can use an LLM <strong>to improve a recommender</strong>, where it creates features, embeddings, attributes, explanations, or intent signals for a system that is still mostly classical at serving time.</p><p>For most teams in 2026, the second path is the safer and more useful starting point. The reason is simple: <strong>latency</strong>.</p><p>It helps to name the integration points explicitly. Broadly, LLMs enter a recommender in two modes:</p><ul><li><strong>Non-generative (enhancement).</strong> The LLM never writes free text to the user. It generates <strong>embeddings</strong>, <strong>enriches features</strong> from unstructured content, or <strong>reranks/scores</strong> candidates; slotting in as a layer inside a multi-stage pipeline.</li><li><strong>Generative.</strong> The LLM produces items (or item IDs plus rationales) directly, via <strong>prompting / in-context learning</strong>, <strong>fine-tuning / LoRA</strong>, or <strong>generative retrieval</strong> over a controlled item vocabulary.</li></ul><p>The same idea can be read as a ladder from safest to most ambitious and latency, system complexity, and operational risk all climb as you go up:</p><ol><li><strong>Offline enrichment</strong> — run the LLM in a batch job; zero online latency.</li><li><strong>Semantic embeddings</strong> — meaning becomes part of the vector.</li><li><strong>User-state modeling</strong> — compress messy signals into a compact, debuggable state.</li><li><strong>Hybrid retrieval + ranking</strong> — blend behaviour and meaning.</li><li><strong>Semantic IDs / generative retrieval</strong> — teach a model to “speak the catalog.”</li><li><strong>Conversational recommender</strong> — let people talk to it.</li></ol><p>Most teams should start low on this ladder and climb only when the product genuinely needs it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZIe2I3P4Tm8hmYsHw5BxQ.png" /></figure><h4>Start offline, where nothing can wake you up at 2 a.m.</h4><p>The safest rung is the first. Running the LLM offline: summarizing reviews, extracting attributes, normalizing messy descriptions, tagging mood; turns its output into extra features for the model you already trust, and adds <strong>zero</strong> online serving latency. The trade-off doesn’t vanish; it moves to batch cost, freshness, and drift. And the LLM here can be surprisingly small: you often don’t need the strongest general-purpose chat model to extract product attributes or summarize a review. A cheaper specialist model, a distilled model, or even a rule-based approach combined with embeddings may be enough. For teams new to LLM-based recommenders, this is usually the best place to start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQyoy1QlPG8cjRCHyI9IIA.png" /></figure><h3>How to build a modern system?</h3><p>Real personalization is not find items similar to the last item. It’s a model of the <strong>person</strong>, the <strong>moment</strong>, and the <strong>constraints</strong>: <strong>durable taste</strong> (slow crime dramas, vegetarian groceries, economics podcasts), <strong>short-term session</strong> intent (something light, urgent, for a kid), <strong>explicit limits</strong> (available now, under budget, within the delivery area), and <strong>negative feedback</strong> (skips, hides, abandoned carts).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aUdQECUmKTLulfB9iV6fog.png" /></figure><p>An LLM can help compress those messy signals into a compact user state but that state should not collapse into one mysterious vector no one can debug. Durable taste, session intent, hard constraints, and safety rules have different lifetimes and different levels of trust; keep them legible.</p><p>In practice, semantic models don’t replace behavioral ones, they <strong>complete</strong> them. A strong system retrieves candidates from several sources (collaborative filtering, semantic vector search, trending, editorial, business rules, personalized search). Then a ranker scores those candidates using behavioral features, content features, context, freshness, availability, price, creator quality, diversity constraints, and other product-specific signals.</p><p>The mental model:</p><ul><li><strong>Semantic models</strong> answer: <em>what is this item, and what intent does it satisfy?</em></li><li><strong>Behavioural models</strong> answer: <em>what actually works for users like this, in contexts like this?</em></li><li><strong>Ranking &amp; policy</strong> answer: <em>what should we show right now, under our constraints?</em></li></ul><p>This hybrid pattern is the one most teams should expect to run for a long time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWD1M7aSJGignEmSrrGLSA.png" /></figure><h3>Does the LLM actually help?</h3><p>Most LLM-recommender talks show one shiny trick and stop. So here’s the part that’s easy to skip and the only part that settles arguments: a head-to-head on a public dataset, the same metric for every method. <em>(Full runnable notebook below; it’s CPU-friendly except the LLM arm, which needs your own API key and a few cents.)</em></p><p><strong>Setup.</strong> MovieLens ml-latest-small <em>(~100k ratings, ~9.7k movies)</em>. For each user we hold out their most recent highly-rated movie and ask each method to rank it into the top-10. We rebuild the collaborative model on the training split only (no leakage) and score five arms with Recall@10 and NDCG@10:</p><ul><li><strong>Popularity, </strong>recommend what’s popular;</li><li><strong>CF, </strong>item-item collaborative filtering via truncated SVD;</li><li><strong>Content, </strong>a sentence-transformers embedding profile (an encoder, <em>not</em> a generative LLM; we’re honest about that);</li><li><strong>Hybrid, </strong>content + collaborative blended with one alpha;</li><li><strong>LLM, </strong>a real generative model (OpenAI / Anthropic / Gemini, your choice) used as a <strong>reranker</strong> over the CF candidate set.</li></ul><p>The LLM arm is deliberately placed where an LLM is cheapest and safest: a fast classical retriever produces the top-N candidates, and the LLM only <strong>reorders</strong> them given the user’s recent taste in plain language. It can’t invent movies; we hand it numbered candidates, parse indices back, and back-fill anything it drops with the CF order. That’s grounding, made concrete.</p><p><strong>The result that matters isn’t the global average; it’s the split.</strong> We divide users into <strong>cold</strong> (sparse history) and <strong>warm</strong> (dense history) and score each arm separately. Here is one run on this dataset (Recall@10, ~120 users, leave-one-out):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXtymLl4cHyMRbatQzrVoQ.png" /></figure><p>Three things jump out:</p><ul><li><strong>On cold / sparse users, the LLM reranker is the strongest arm: clearly ahead of CF (0.083) and popularity (0.067).</strong> Reordering a small candidate set with a bit of world knowledge pays off most exactly where behavioural data is thin. This is the result the whole talk is built around.</li><li><strong>Content alone is the weakest arm</strong> (0.017 cold, 0.000 warm). A mean-of-embeddings user profile is a blunt instrument; a humbling, useful finding for a talk with “LLM” in the title.</li><li><strong>On warm users the picture flips: plain popularity leads, and every model-based arm collapses to roughly the same low value.</strong> Predicting a heavy user’s single most-recent pick with leave-one-out is a hard, noisy target, and here the LLM buys you nothing over popularity. So don’t pay for it on warm users; spend it on cold start.</li></ul><p>A caveat worth saying out loud on stage: this is a small sample with single-digit hit counts, so the exact numbers are noisy; the <em>shape</em> is the signal, not the third decimal. And no offline table proves business value; only an online A/B test does. But that shape <em>is</em> the thesis: <strong>the LLM isn’t better everywhere: it’s better somewhere specific, and you can point to where.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ov5itUlnCV0cHUQr6TmyA.png" /></figure><p>One more LLM-specific trap the experiment makes easy to catch: <strong>position bias.</strong> Ask the model to rank a candidate list, then reverse the input order, you often get a different answer. It reacts to <em>where</em> an item sits as much as to <em>what</em> it is. “Ignore the order” barely helps; you defend against it by scoring candidates independently or reranking one at a time. You only catch it if you test for it, so the notebook tests for it.</p><h3>The frontier: turning items into a vocabulary</h3><p>The reranker above is the pragmatic, enhancement-side use of an LLM. The more radical, generative-side idea is worth knowing even if most teams won’t ship it soon. <em>(It’s a frontier pattern, so it isn’t part of the companion notebook; the references at the end are the place to go deeper.)</em></p><p>In 2023, TIGER introduced a different approach to generative retrieval. Instead of representing each item as one dense vector and searching an ANN index, it assigns each item a <strong>Semantic ID; </strong>a short tuple of discrete codes created by quantizing the item’s content embedding. The recommender then becomes a sequence model that generates the Semantic ID of the next item, token by token, like a language model generating a sentence.</p><p>The idea is attractive for two reasons. First, similar items can share code prefixes, which helps the model generalize from popular items to cold-start and long-tail ones. Second, retrieval becomes generation over a controlled item vocabulary; you’re no longer only searching a vector space, you’re teaching a model to speak the catalog.</p><p>But the details matter. The ANN index may leave the core retrieval step, yet the system still needs catalog-token mappings, filters, grounding, availability checks, and serving infrastructure. The discretization is sensitive too: if Semantic IDs don’t preserve the right kind of similarity, the model can become unstable. This is no longer only research — Spotify has described Semantic-ID-based generative retrieval for large-scale podcast discovery under real production constraints. The lesson isn’t “copy Spotify.” It’s that Semantic IDs are becoming a serious design pattern for teams whose catalog size and discovery problems justify the complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FY2UDb9meifiY3NkyoZZ7w.png" /></figure><h3>And finally, let people talk to it</h3><p>The pattern many people imagine when they hear “LLM in recommendation” is conversational recommendation: <em>I want something funny but not dumb, like </em>Parks and Rec<em> but darker.</em></p><p>This is where <strong>retrieval-augmented generation (RAG)</strong> matters. The model should not invent items; it should be grounded in the real catalog, respect availability, explain why it recommended something, and adapt as the user adds detail.</p><p>Natural-language interaction is especially useful when intent is hard to express with clicks alone: mood, occasion, constraints, taste boundaries, trade-offs. This layer can be powerful but it’s also the layer most exposed to latency, cost, hallucination, privacy, and evaluation problems. For most products, conversational recommendation should be an interaction layer on top of a grounded retrieval-and-ranking system, not a general-purpose chatbot making unsupported guesses.</p><h3>The year scaling laws arrived and started to ship</h3><p>One of the most important changes is still under-appreciated outside the field: <strong>scaling laws have started to appear in recommendation.</strong> Meta opened this in 2024 with <em>Actions Speak Louder than Words</em>, reframing recommendation as sequence modeling over a user’s stream of actions. Its HSTU architecture was built for recommendation data; high-cardinality, always-changing; not a language model copied over. The reported numbers were hard to ignore: models up to 1.5T parameters, a 12.4% lift in online A/B tests, up to 65.8% NDCG improvement on public benchmarks, and 5–15× faster serving than a FlashAttention-2 transformer on long sequences. The deeper point wasn’t any single metric; it was that quality scaled <em>predictably</em> with compute; <strong>recommendation’s own “ChatGPT moment.”</strong></p><p>Since then the signal has broadened. Meta pushed the idea into ads with <strong>GEM</strong>. <strong>Netflix</strong> published a foundation model for personalized recommendation and folded it into the homepage and search. <strong>Spotify</strong> described Semantic-ID generative retrieval for podcast discovery. <strong>Kuaishou’s OneRec</strong> collapsed much of the retrieve-then-rank funnel into one generative model, reporting roughly a tenth of the operating cost of its previous multi-stage system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUpqXvyptPRKWKpOSYIPQw.png" /></figure><p>Read these as <strong>company-published evidence at extraordinary scale, not universal laws.</strong> For most teams the lesson isn’t “train a trillion-parameter recommender.” It’s that the frontier is sliding from many hand-stitched models toward shared, foundation-style systems that learn behaviour, item meaning, and context in one place. The practical question is whether your product is anywhere near that frontier. Most aren’t and that’s fine.</p><h3>Where LLMs quietly lose</h3><p>A talk or blog post that only talks about wins is marketing. Here is the honest engineering picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZYo_lEfbF08buxJyiEK4w.png" /></figure><p><strong>Latency is the tax that controls everything.</strong> A two-tower retriever with a fast ranker answers in milliseconds; a large model generating from scratch on every request can be far slower and more expensive. That’s why most practical value still comes from offline enrichment, semantic retrieval, and hybrid ranking; and why calling a general-purpose chat model in the hot path for every homepage, feed, search page, or ad auction is usually the wrong default. (It’s exactly why, in the experiment, the LLM sits at the rerank step over a tiny candidate set, never in the retrieval loop over 9.7k items.</p><p><strong>Cost grows where you forget to look.</strong> Embedding a hundred-million-item catalog is expensive; re-embedding when descriptions change is another bill; storing vectors, refreshing indexes, checking drift, and serving nearest-neighbour queries all add up. Generative serving makes it bigger still. Every architecture decision is a decision about <strong>cost per useful recommendation; </strong>strong teams know that number early.</p><p><strong>Grounding is not optional.</strong> A recommender can’t suggest an unavailable film, an out-of-stock product, a restaurant outside the delivery area, or an episode the platform doesn’t carry and LLMs make unsupported answers sound confident. Grounded recommendation means constraining the model to the real catalog, checking availability and policy, separating explanation from decision-making, and logging enough to debug <em>why</em> something appeared.</p><p><strong>Evaluation is hard.</strong> Offline metrics like <strong>Recall@K</strong> and <strong>NDCG@K</strong> are necessary but weak proxies for value: a model can win the benchmark and lose in production. The final word comes from online A/B tests on engagement, retention, conversion, satisfaction, or revenue; plus guardrail metrics that catch harm. LLM-based recommenders add new failure modes: hallucinated items, explanations that sound right but aren’t, over-personalization that kills diversity, short-term clicks bought at the cost of long-term satisfaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUdv5Bu7NMkbYgR6MM-cvA.png" /></figure><p><strong>Monitoring is part of the model.</strong> You need the usual recommender monitoring (feature drift, item distribution drift, retrieval recall, ranking score distribution, feedback loops) <em>plus</em> LLM-specific checks (prompt changes, embedding-model changes, hallucinated IDs, explanation quality, unsafe outputs, grounding failures). If you can’t observe it, you can’t operate it; if you can’t roll back an embedding model or a prompt, you have a demo, not a production system.</p><p><strong>And sometimes the boring model is simply correct.</strong> For a small catalog with dense interaction data and no real cold-start problem, a well-tuned matrix factorization, two-tower, or gradient-boosted ranker may match a fancy LLM approach at a fraction of the cost and latency. Language models earn their place when the problem has rich content, messy language, severe cold start, multimodal items, sparse interactions, flexible intent, or a natural-language interface, not as a tax you pay everywhere.</p><h3>One diagram to keep</h3><p>If you remember one mental model, use this stack; read it from the bottom up. The toy LLM recommender starts with a prompt. The production system starts with signals, constraints, retrieval, ranking, evaluation, and serving budgets <em>then</em> asks where the language model actually improves things. The industry’s centre of gravity is sliding down this stack, from “an LLM bolted onto a classical pipeline” toward foundation-style systems that absorb more representation, retrieval, and ranking into one trainable model. OneRec shows the direction can work in production; it isn’t proof everyone should move there tomorrow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjZkfyIfKqXN9kmdSNRUsA.png" /></figure><h3>A playbook for Monday morning</h3><ol><li><strong>Keep a strong classical baseline.</strong> You need it for comparison, fallback, and humility.</li><li><strong>Add offline LLM enrichment.</strong> Extract better item and user features without touching the hot path.</li><li><strong>Introduce semantic embeddings where cold start hurts.</strong> Use them for candidate generation, not as a religion.</li><li><strong>Go hybrid.</strong> Blend collaborative, semantic, contextual, and business signals.</li><li><strong>Evaluate honestly.</strong> Offline metrics choose candidates for experiments; online behavior tells you what worked.</li><li><strong>Add conversational interaction only when the product needs it.</strong> Ground it in the catalog and log everything.</li><li><strong>Consider Semantic IDs or generative retrieval only when scale and catalog complexity justify the operational cost.</strong></li></ol><p>This is less exciting than “replace your recommender with an LLM.” It is also much more likely to survive production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLBuIm4vIv8AAXNJogvrrw.png" /></figure><h3>Try it yourself, on a laptop</h3><p>The companion notebook builds every arm above on a small public dataset (MovieLens) and runs the exact experiment from the “does it help” section: a classical baseline (popularity + item-item CF via truncated SVD) → semantic embeddings with a CPU-friendly sentence-transformers model → a FAISS index plus a one-sentence cold-start demo → <strong>a real LLM reranker</strong> (swap in your own OpenAI / Anthropic / Gemini key) → a hybrid alpha blend → an honest, cold-vs-warm evaluation on Recall@K / NDCG@K → a position-bias test. Everything except the LLM arm runs on CPU.</p><p>When you’re ready to scale beyond the toy, the ecosystem is rich: RecBole, NVIDIA Merlin / Transformers4Rec, Meta&#39;s open-source generative-recommenders, and recent open work on Semantic IDs and generative recommendation. The important thing isn&#39;t the dataset; it&#39;s the habit: <strong>always compare the LLM idea to a boring baseline, and always ask what it improved: representation, retrieval, ranking, interaction, or explanation.</strong></p><h3>Where this is heading</h3><p>Four trajectories are visible now.</p><p>The first is <strong>consolidation</strong>. At the top end, the era of hundreds of separate models is moving toward foundation-style models that can power many personalization surfaces. This does not remove specialization, but it changes where specialization happens.</p><p>The second is the <strong>convergence of search and recommendation</strong>. To a model that represents meaning and intent, <em>find me X</em> and <em>suggest me X</em> are closer than they used to be. The same retrieval and ranking machinery increasingly serves both.</p><p>The third is <strong>reasoning and interaction</strong>. Recommenders are moving from silent rankers toward systems that can ask clarifying questions, explain trade-offs, and adapt to natural-language constraints. This only helps if the system stays grounded in the catalog and measurable in production.</p><p>The fourth is <strong>trustworthy personalization</strong>. The next generation of recommenders will not be judged only by click-through rate. They will also be judged by whether users can control them, whether teams can debug them, whether they respect privacy, whether they avoid harmful feedback loops, and whether they improve long-term satisfaction instead of only short-term clicks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CwOGjlYzpgBkPx8ijw2NA.png" /></figure><h3>The one mental model to leave with</h3><p>The main idea is simple.</p><p>For two decades, recommendation systems mainly memorized behavior. The LLM era is giving them better tools to represent content, context, and intent. At the frontier, it may also give them architectures that scale more like language models than classical ranking stacks.</p><p>The teams that win will not be the ones that attach a chatbot to a product and call it personalization. <strong>They will be the teams that know exactly which part of the system needs the LLM, what it costs to serve, how to ground it in the real catalog, and how to prove — in an A/B test with real users — that it made the recommendation better.</strong></p><h3>References</h3><ul><li>McKinsey, <a href="https://www.mckinsey.com/industries/retail/our-insights/how-retailers-can-keep-up-with-consumers">How retailers can keep up with consumers</a>, 2013.</li><li>McKinsey, <a href="https://www.mckinsey.com/capabilities/growth-marketing-and-sales/our-insights/the-value-of-getting-personalization-right-or-wrong-is-multiplying">The value of getting personalization right — or wrong — is multiplying</a>, 2021.</li><li>Mordor Intelligence, <a href="https://www.mordorintelligence.com/industry-reports/recommendation-engine-market">Recommendation Engine Market Size &amp; Share Analysis</a>, accessed 2026.</li><li>Zhai et al., <a href="https://arxiv.org/abs/2402.17152">Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations</a>, ICML 2024.</li><li>Meta Engineering, <a href="https://engineering.fb.com/2025/11/10/ml-applications/metas-generative-ads-model-gem-the-central-brain-accelerating-ads-recommendation-ai-innovation/">GEM: the central brain accelerating ads recommendation AI innovation</a>, 2025.</li><li>Netflix Technology Blog, <a href="https://netflixtechblog.com/foundation-model-for-personalized-recommendation-1a0bd8e02d39">Foundation Model for Personalized Recommendation</a>, 2025.</li><li>Netflix Research, <a href="https://research.netflix.com/publication/integrating-netflixs-foundation-model-into-personalization-applications">Integrating Netflix’s Foundation Model into Personalization Applications</a>, 2026.</li><li>Rajput et al., <a href="https://arxiv.org/abs/2305.05065">Recommender Systems with Generative Retrieval / TIGER</a>, NeurIPS 2023.</li><li>Spotify Research, <a href="https://research.atspotify.com/2025/9/semantic-ids-for-generative-search-and-recommendation">Semantic IDs for Generative Search and Recommendation</a>, 2025.</li><li>D’Amico et al., <a href="https://arxiv.org/abs/2603.17540">Deploying Semantic ID-based Generative Retrieval for Large-Scale Podcast Discovery at Spotify</a>, 2026.</li><li>Kuaishou, <a href="https://arxiv.org/abs/2502.18965">OneRec: Unifying Retrieve and Rank with Generative Recommender</a>, 2025.</li><li>Kuaishou, <a href="https://arxiv.org/abs/2506.13695">OneRec Technical Report, </a>2025.</li><li>Meta, <a href="https://github.com/meta-recsys/generative-recommenders">generative-recommenders</a>, open-source implementation.</li><li>Eugene Yan, <a href="https://eugeneyan.com/writing/recsys-llm/">Recommendations and Search in the Age of LLMs</a>. <em>(An amazing article.)</em></li><li>GroupLens, <a href="https://grouplens.org/datasets/movielens/">MovieLens datasets</a>.</li><li>I illustrated pictures using ChatGPT.</li><li>I edited my blog post using Claude and DeepSeek.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35b5f33332f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Shazam Identifies Songs in 5 Seconds]]></title>
            <link>https://ozgecinko.medium.com/how-shazam-identifies-songs-in-5-seconds-32607d45303b?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/32607d45303b</guid>
            <category><![CDATA[shazam]]></category>
            <category><![CDATA[audio-fingerprinting]]></category>
            <category><![CDATA[pycon]]></category>
            <category><![CDATA[fingerprinting]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Sat, 30 May 2026 00:16:12 GMT</pubDate>
            <atom:updated>2026-05-30T00:16:12.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87QlQ0ViaVox8uEviWoNag.png" /><figcaption>I made this illustration using GPT.</figcaption></figure><p><em>Turning a few noisy seconds of sound into a constellation of stars a machine can recognize.</em></p><p>You hold up your phone in a crowded cafe, a song you half-recognize playing somewhere over the chatter. A few seconds later, the title appears. It feels like <strong>magic</strong>, but it isn’t. It’s robust engineering working against terrible odds, and the whole pipeline fits comfortably into a Python script.</p><p>Shazam started in <strong>2002</strong> as a phone-call service: you dialed a number, held your phone to the music, and got a text back. By <strong>2008</strong> it became one of the early App Store stars, expanded <strong>beyond music</strong> recognition around 2012, and today it lives inside the Apple family. Across every era the core idea has stayed the same and that core is what this article rebuilds from scratch.</p><p>The pipeline in one breath:</p><ol><li>Capture and simplify the sound.</li><li>Build a spectrogram and find its peaks.</li><li>Turn peaks into searchable fingerprints.</li><li>Run a lightning-fast lookup against a database.</li></ol><p>That’s the whole trick.</p><h3>From Sound Waves to Spectrograms</h3><p>Sound is just pressure changing over time. When we record it, we store thousands of discrete digital samples per second. Plotted, those samples are a wavy line: the <strong>x-axis is time</strong> (when the sound happens) and the <strong>y-axis is amplitude</strong> (how loud it is at that instant).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OzEvjZxpvHIcCrh8j-0OA.jpeg" /><figcaption><em>The first 1,000 samples of a recorded “Hello World”, raw amplitude over time.</em></figcaption></figure><p>To capture a sound wave we set three parameters:</p><ul><li><strong>Sampling rate (44.1 kHz)</strong>— how often we measure the wave.</li><li><strong>Bit depth (16-bit)</strong> — how detailed each measurement is.</li><li><strong>Channel (mono)</strong> — how many audio tracks we record.</li></ul><p>In Python, the <em>sounddevice</em> library handles recording in just a few lines:</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>import sounddevice as sd<br>fs = 44100 # sampling rate (44.1 kHz)<br>duration = 3 # record for 3 seconds<br>bit_depth = 16 # 16-bit quantization<br>audio = sd.rec(int(duration * fs), samplerate=fs, channels=1, dtype=&#39;int16&#39;)<br>sd.wait()<br>samples = audio[:1000].flatten()<br>time = np.arange(len(samples)) / fs<br>plt.plot(time, samples) # first 1000 samples</pre><h4>Why a spectrogram?</h4><p>A raw waveform mixes <em>everything</em> together; vocals, drums, guitars, into a single squiggle. It’s far too messy to identify a song from. What we really need is to see the <strong>frequencies</strong> hiding inside the sound. That’s a spectrogram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9b_8-U21bVq9fIYZoNF8Q.jpeg" /><figcaption><em>A 10-second recording captured while Tarkan — Şımarık was playing.</em></figcaption></figure><p>Reading a spectrogram is straightforward once you know the axes:</p><ul><li><strong>Time</strong> runs along the x-axis.</li><li><strong>Frequency (Hz)</strong> runs up the y-axis.</li><li><strong>Color is power in dB, </strong>brighter means louder.</li><li>Each vertical slice shows which frequencies are present at that moment.</li></ul><p>We build it with the <strong>Short-Time Fourier Transform (STFT)</strong>: slice the signal into small overlapping windows, apply a Fourier Transform to each one, and you get a map of how frequencies change over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*Yw8cmmF2IG_CwpQ_KfMXmQ.jpeg" /><figcaption><em>STFT slices the signal into overlapping windows before transforming each one.</em></figcaption></figure><p>The <em>librosa</em> library makes this a one-liner:</p><pre>import sounddevice as sd<br>import librosa, librosa.display<br>fs = 44100<br>duration = 10<br>audio = sd.rec(int(duration * fs), samplerate=fs, channels=1, dtype=&#39;int16&#39;)<br>sd.wait()<br>y = audio.flatten()<br># Compute STFT and convert to dB<br>S = np.abs(librosa.stft(y, n_fft=2048, hop_length=512))<br>S_dB = librosa.amplitude_to_db(S, ref=np.max)<br># Plot spectrogram<br>librosa.display.specshow(S_dB, sr=fs, x_axis=&#39;time&#39;, y_axis=&#39;log&#39;, cmap=&#39;magma&#39;)</pre><h3>What Makes a Song Unique</h3><p>The full spectrogram is rich, but we don’t need every single point. Instead we hunt for the <strong>most prominent peaks,</strong> the spots where the sound is strongest. Each peak is a local maximum in both frequency and time, like a <em>star in the night sky</em>. Together they form a <strong>constellation map</strong>: the unique acoustic signature of the song.</p><p>To find these stars, we look for <strong>local maxima</strong> — points louder than all their neighbors:</p><ol><li>Scan the spectrogram with a sliding window.</li><li>Keep points stronger than their entire 20×20 frequency–time neighborhood.</li><li>Keep only the top 10% strongest of those.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYVShDVQMyglT8oZ9xkYnA.jpeg" /><figcaption><em>Every song has its own constellation; here, the detected peaks of Şımarık.</em></figcaption></figure><pre>from scipy.ndimage import maximum_filter<br>neighborhood_size = (20, 20) # (frequency x time)<br>local_max = maximum_filter(S, size=neighborhood_size) == S<br>amp_threshold = np.percentile(S, 90)<br>peaks = local_max &amp; (S &gt; amp_threshold)<br>plt.scatter(np.where(peaks)[1], np.where(peaks)[0],<br>s=8, c=&#39;red&#39;, marker=&#39;.&#39;, label=&#39;Peaks&#39;)</pre><h3>Building Audio Fingerprints</h3><p>Isolated stars aren’t searchable on their own. We need to turn them into recognizable <em>constellations</em> and the way to do that is to encode <strong>relationships between peaks</strong>, not the peaks themselves.</p><p>Each peak is a strong frequency at a specific time. We connect each peak to a few nearby peaks ahead of it in time, forming pairs. Every pair is defined by:</p><ul><li>Two frequencies: (f₁, f₂)</li><li>A time difference: Δt = t₂ − t₁</li></ul><p>That triplet captures a tiny piece of the song’s structure. We squeeze each (f₁, f₂, Δt) into a compact hash — and that hash <em>is </em>the audio fingerprint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*1gSG6WZbSXXAZFqGGyrfNA.png" /><figcaption>Example fingerprint.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dywBiAK12Zlm2nMKUBUstA.jpeg" /><figcaption><em>Peaks linked to nearby peaks — each blue line becomes one hashable fingerprint.</em></figcaption></figure><pre>import hashlib<br># Connect spectral peaks to form fingerprint pairs<br>freqs, times = np.where(peaks)<br>fingerprints = []<br>fan_value = 5 # connect each peak to 5 nearby peaks<br>for i in range(len(times)):<br>for j in range(1, fan_value):<br>if i + j &lt; len(times):<br>f1, f2 = freqs[i], freqs[i + j]<br>t1, t2 = times[i], times[i + j]<br>delta_t = t2 - t1<br>if 0 &lt; delta_t &lt;= 200:<br>fingerprints.append((f1, f2, delta_t))<br># Convert each pair into a compact hash<br>def hash_fingerprint(f1, f2, dt):<br>return hashlib.sha1(f&quot;{f1}|{f2}|{dt}&quot;.encode()).hexdigest()[:20]<br>hashes = [hash_fingerprint(f1, f2, dt) for (f1, f2, dt) in fingerprints]</pre><h3>Matching Songs in the Database</h3><p>We store each song once in a <strong>songs</strong> table with its title and artist, and all of its fingerprints in a <strong>fingerprints</strong> table. Every fingerprint row holds the hash (the audio signature), the song ID it belongs to, and its time offset in the track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DT4OsPyh8wYmvtA7WayglQ.png" /><figcaption><em>Two tables linked by song ID — the heart of the lookup.</em></figcaption></figure><pre>- Store song fingerprints in a database<br>CREATE TABLE songs(id INTEGER PRIMARY KEY, title TEXT, artist TEXT)<br>CREATE TABLE fingerprints(hash TEXT, song_id INTEGER, offset INTEGER)<br> - Example insertion<br>INSERT INTO fingerprints(hash, song_id, offset) VALUES (h, song_id, offset)</pre><p><strong>Why SQLite?</strong> It’s lightweight with no server to run, perfect for local demos and prototypes, fast for the read-heavy lookups fingerprinting needs, and it keeps everything in a single portable file.</p><h3>How The Match Actually Happens</h3><p>The clever part isn’t finding matching hashes, it’s confirming they line up <em>in time</em>. A noisy clip will accidentally match a few random hashes in many songs. The right answer reveals itself through time alignment:</p><ol><li><strong>Query &amp; search</strong> — take the clip’s fingerprints and look up matching hashes in the database.</li><li><strong>Compute the offset difference</strong> — for each match, calculate Δt = song_offset − query_offset.</li><li><strong>Vote clustering</strong> — each match casts a vote for a specific (song_id, Δt) pair.</li><li><strong>Find the consensus</strong> — the correct song is the one with the largest cluster of votes at the same Δt.</li></ol><p>If the clip truly comes from a song, <em>all</em> of its real matches share the same offset difference so the votes pile up on a single Δt. Random matches scatter harmlessly across different values.</p><pre># Align matches based on time offset<br>votes = {} # (song_id, delta) -&gt; count<br>for (f1, f2, dt, q_offset) in query_fps:<br>h = hash_fingerprint(f1, f2, dt)<br>cursor.execute(&quot;SELECT song_id, offset FROM fingerprints WHERE hash = ?&quot;, (h,))<br>for song_id, s_offset in cursor.fetchall():<br>delta = int(s_offset) - int(q_offset)<br>key = (song_id, delta)<br>votes[key] = votes.get(key, 0) + 1<br># Find the song with the highest number of aligned matches<br>best_match = max(votes.items(), key=lambda x: x[1])<br>(song_id, delta), score = best_match<br>print(f&quot;Identified Song ID: {song_id}, Score: {score}, Δt: {delta}&quot;)</pre><p>The highest score means the strongest time alignment and that’s your answer.</p><h3>A Mini Shazam in Python</h3><p>Put every piece together and you get a working app: it records a short sample, extracts its fingerprints, compares them against the database, and identifies the track with the largest time-aligned vote cluster. A small <em>streamlit</em> front-end turns it into a tap-to-listen demo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPiX5j-roYFxdhRudGgwcw.png" /><figcaption>Mini Shazam in Python.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IkYgPWrgQhb_diGM9D8Jw.jpeg" /><figcaption><em>Mini Shazam in action — “Fusion” by Ludwig Göransson, score 6, delta 42.</em></figcaption></figure><p>You can also check repository in GitHub: <a href="https://github.com/ozgecinko/mini-shazam">click here</a>.</p><h3>The World Doesn’t Sound Like the Lab</h3><p>A clean recording is easy. The street, the bar, those are the real test. Three problems dominate:</p><ul><li><strong>Noise &amp; distortion — </strong>crowds, traffic and bad speakers bury the signal you need.</li><li><strong>Time offsets</strong> — you never start listening at the beginning of the song.</li><li><strong>Database scale</strong> — millions of tracks mean billions of fingerprints to search.</li></ul><p>The peak-and-pair design is what makes the system survive all three: peaks are the loudest, most noise-resistant parts of the audio; the Δt voting scheme makes the starting point irrelevant; and hashing turns the search into fast, indexed lookups instead of brute-force comparison.</p><h3>Beyond Music: Fingerprinting Everywhere</h3><p>The same idea; reduce a messy signal to robust, searchable landmarks; reaches far past music: <strong>speech &amp; speaker identification, environmental sound detection, TV &amp; ad tracking, medical applications.</strong></p><p>Once you can fingerprint sound, you can teach a machine to recognize almost anything that makes a noise, which is why a trick built for catching pop songs in a cafe turns out to be one of the most reusable ideas in audio engineering.</p><h3>Has Shazam Changed in 2026?</h3><p>A fair question: is any of this still accurate, or has Shazam moved on?</p><p>The honest answer is that the pipeline you just built is, <strong>in its essentials, still how Shazam recognizes music</strong>. The peak-pairing fingerprints and time-aligned voting from <strong>Avery Wang’s 2003 paper</strong> remain the backbone of the system. The state of the art in audio identification has advanced, and Apple has very likely refined the algorithm since acquiring Shazam in 2018, but the core principles haven’t fundamentally changed. The model in this article isn’t obsolete; it’s the foundation everything else is built on.</p><p>What <em>has</em> evolved is mostly <strong>where and how that engine runs</strong>:</p><ul><li><strong>It’s no longer just an app.</strong> Since iOS 14.2 in 2020, music recognition has been built directly into Apple’s operating systems as the “Music Recognition” control, available on iPhone, iPad, Mac, Apple Watch and Vision Pro. Apple has said Control Center recognitions passed a billion cumulative identifications by 2021.</li><li><strong>Everything syncs.</strong> Songs you identify through Control Center, Siri or Shortcuts now flow into your Shazam library and a “My Shazam Tracks” playlist via iCloud, kept in step across all your devices.</li><li><strong>It works offline now.</strong> With iOS 26.4 in early 2026, Control Center can recognize a song with no internet connection, matching locally and delivering the result once you’re back online. That’s a meaningful shift toward doing the fingerprint lookup <em>on the device</em> instead of a round-trip to a server.</li><li><strong>New front doors.</strong> A 2026 ChatGPT integration lets you identify a song by simply asking inside ChatGPT, and Shazam has leaned into data products, spotting rising artists from recognition trends, surfacing the most-Shazamed moments of a track, and tying into live-concert listings.</li></ul><p>So the takeaway isn’t that the method changed, it’s that it got faster, more invisible, and nearly everywhere. <strong>The clever 2003 idea didn’t get replaced; it got embedded into the fabric of the devices we already carry.</strong></p><p><em>This article is based on my PyCon Netherlands 2025 and PyCon Italia 2026 talks, “How Shazam Identifies Songs in 5 Seconds: Audio Fingerprinting with Python”.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32607d45303b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing Memory for AI Applications]]></title>
            <link>https://ozgecinko.medium.com/designing-memory-for-ai-applications-d0bc5f8bdadd?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0bc5f8bdadd</guid>
            <category><![CDATA[llm-memory]]></category>
            <category><![CDATA[ai-memory]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Fri, 29 May 2026 10:37:51 GMT</pubDate>
            <atom:updated>2026-05-29T10:37:51.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8elLVCBcQh3R9_iBQ-EryQ.png" /><figcaption>I made this illustration using GPT.</figcaption></figure><h4><strong>Why your AI keeps forgetting and how to fix it properly?</strong></h4><p>It’s day one. Your user tells the AI something important.</p><p><strong><em>User:</em></strong><em> I’m vegan, by the way. <br></em><strong><em>AI:</em></strong><em> Got it!</em></p><p>A week later, the same user comes back.</p><p><strong><em>User:</em></strong><em> Recommend a restaurant for tonight? <br></em><strong><em>AI:</em></strong><em> How about Tony’s Steakhouse? Great reviews!</em></p><p>Familiar?</p><p>This isn’t a rare bug. This is <em>the</em> bug. It’s the default behavior of every AI application that hasn’t taken memory seriously and here’s the surprising part: the model isn’t broken. The model is fine. Nobody told it the user said anything on day one because nobody stored it, or stored it but never retrieved it, or stored it in the wrong place.</p><p><strong>This is a memory architecture problem.</strong></p><p>In this post, we’re going to fix it properly, in Python.</p><h3>LLMs are stateless</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*MVEGjxpMnnP-Gf09ZWDYXQ.png" /><figcaption>I made this chart using GPT.</figcaption></figure><p>Let’s start by clearing up a wrong assumption.</p><p>Large Language Models are <strong>stateless</strong> functions. When you call an LLM, the model sees exactly one thing: the input you gave it on that call. The system prompt, the messages, any retrieved documents. That’s it. There is no hidden context, no “the model remembers me.” Every call is a clean slate.</p><p>So when we say “memory” in an AI application, we are not talking about a model feature. We are talking about an <strong>illusion</strong>, one that your application layer builds, carefully or carelessly.</p><p>The good news is that this makes memory <em>your</em> job. Which means you can actually fix it.</p><p>Here’s the most basic version of that illusion:</p><pre>messages = [<br>    {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a helpful assistant.&quot;},<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;I&#39;m vegan.&quot;},<br>    {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Got it!&quot;},<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Recommend a restaurant.&quot;},<br>]<br>response = client.chat.completions.create(<br>    model=&quot;gpt-4&quot;,<br>    messages=messages,  # we re-feed everything every turn<br>)</pre><p>The model “remembers” the user is vegan because we put it in the prompt. Every turn. That’s memory in its simplest form, and we call it conversation <strong>buffer memory.</strong></p><p>For a weekend project, this is fine. For a real product, it’s a time bomb. Three things go wrong at once: cost grows with every turn, latency grows with every turn, and eventually you hit the context window limit and when you have to throw old messages away, you throw the wrong things away.</p><p>So before we fix it, let’s define what memory actually is.</p><h3>What is memory, really?</h3><p>Memory is the system that decides what to store, what to retrieve, what to update, what to forget and when to apply each.</p><p>Notice the fourth verb: <strong>forget</strong>. In a real memory system, forgetting isn’t a bug that happens when you run out of space. It’s one of the four core operations, equally important as the rest. We’ll keep coming back to it.</p><p>To design memory well, we need to know what kinds of memory exist. Because they aren’t all the same.</p><h3>The three types of memory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-F0PulO--zPCZw83XxsVbg.png" /></figure><p>Memory in AI applications splits into three types, living in three completely different places.</p><p><strong>Parametric memory</strong> is the knowledge baked into the model’s weights during training. “Python uses indentation for blocks.” “Water boils at 100°C.” You didn’t put it there, training did.</p><p><strong>Short-term memory</strong> lives entirely inside the context window during a single session. “Make <em>that</em> async”, where “that” only makes sense because the model can still see the previous turn.</p><p><strong>Long-term memory</strong> is external storage. Outside the model, outside the session. It persists across days, weeks, months. “User works with Python.” “User prefers Python examples.”</p><p>Most teams build only the second one. They keep conversation buffers, summarize old turns, and call that “memory.” But it’s not memory, it’s a notepad that gets wiped at the end of each session.</p><p>Let’s design all three.</p><h3>Parametric memory: the one you don’t design</h3><p>Let’s get this one out of the way, because we don’t actually build it.</p><p>Parametric memory is everything the model learned during pre-training and fine-tuning: language, syntax, world facts, programming patterns. It’s why you can ask a model about FastAPI and it knows what FastAPI is, without you ever putting that in the prompt.</p><p>Three things to know. It’s static, frozen at training time. It’s not updatable in real time without expensive fine-tuning. And this is the design insight, we don’t build parametric memory, we <em>choose</em> it. When you pick a model, you’re choosing its parametric memory. That’s a model selection decision, not a memory architecture decision.</p><p>So let’s spend our energy on the two types we can actually design.</p><h3>Short-term memory: the active window</h3><p>Short-term memory is everything currently inside the model’s context window: the recent conversation, the system prompt, any retrieved documents, the user’s current question. If the model can see it on this call, it’s short-term memory.</p><pre>User: Give me a FastAPI example for handling JSON.<br>AI:   Here you go: [code example]<br>User: Now make it async.<br>            ↑<br>       &quot;it&quot; lives here — in short-term memory</pre><p>Without short-term memory, “make it async” is meaningless. “It” only resolves because the previous turn is still in context.</p><p>Here’s the trap people fall into: short-term memory is not long-term memory. If a user says, in passing, “I’m a bit grumpy today,” that’s short-term context, it matters for two minutes, not forever. Don’t promote passing chat into permanent facts. Plenty of systems do exactly that, and six months later they’re still apologizing for something the user said once.</p><h4>Two patterns for short-term memory</h4><p>The first is the <strong>sliding window</strong>: keep the last N messages, drop anything older.</p><pre>def get_context(messages, n=10):<br>    return messages[-n:]</pre><p>Fast, simple, cheap. The downside is that when you drop an old message, you drop it completely — including that allergy the user mentioned twenty turns ago.</p><p>The second is <strong>summarization</strong>: compress old messages instead of dropping them.</p><pre>def get_context(messages, n=10):<br>    recent = messages[-n:]<br>    older = messages[:-n]<br>    summary = summarize(older)<br>    return [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: f&quot;Earlier: {summary}&quot;}, *recent]</pre><p>This preserves the shape of a long conversation without keeping every word. It costs an extra LLM call to summarize, so it’s slower and pricier, but for long conversations it’s worth it. Most production systems use a hybrid: sliding window for recent turns, summary for everything older.</p><p>But even with great short-term memory, your agent forgets between sessions. Tomorrow morning, it’s all gone. That’s where long-term memory comes in.</p><h3>Long-term memory: three sub-types</h3><p>Long-term memory is not one thing. It’s three, and they come from cognitive science <em>(Endel Tulving defined episodic and semantic memory back in 1972; the CoALA framework translated these ideas into AI agent architecture in 2023)</em>. You’ll see this vocabulary in LangMem, Mem0, and most memory frameworks.</p><p><strong>Semantic memory</strong> holds facts. “User works with Python.” “User’s timezone is Europe/Istanbul.” Not events, just truths about the world, static until they change.</p><p><strong>Episodic memory</strong> holds events. “On 2026–05–14, deployed payment-service v2.3.” Time-stamped, chronological, where order matters.</p><p><strong>Procedural memory</strong> holds rules and skills. “When the user mentions allergies, never suggest food.” “Always confirm before destructive actions.” Not facts or events, behaviors.</p><p>These three need different storage, different retrieval, and they fail in different ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnlAb82o-Gjxtaa4qih8sg.png" /></figure><p>Let’s design each in Python.</p><h4>Semantic memory in Python</h4><pre>from dataclasses import dataclass<br>from datetime import datetime<br>@dataclass(frozen=True)<br>class SemanticFact:<br>    user_id: str<br>    key: str                    # &quot;company&quot;<br>    value: str                  # &quot;ING&quot;<br>    observed_at: datetime       # when we learned it<br>    valid_from: datetime        # when it became true<br>    valid_until: datetime | None = None  # None = still true<br>    source: str = &quot;user_stated&quot;<br>    confidence: float = 1.0</pre><p>The interesting part is the three time fields, and they’re genuinely different moments.</p><p>observed_at is when <em>we</em> learned the fact. <br>valid_from is when it <em>became true</em> in the world. <br>valid_until is when it <em>stopped</em> being true.</p><p>Why three? Because a user might tell you today, “I moved to New York two months ago.” observed_at is today; valid_from is two months ago. Or: “I worked at Acme from January 2023 to September 2024”: two dates, valid_from and valid_until.</p><p>Separating when we learned something from when it was true is called bitemporal modeling. It’s been in databases for thirty years. We’re translating it to AI memory.</p><p>The last field, confidence, captures how sure we are. Did the user state it directly? That’s 1.0. Did we infer it from context? Maybe 0.6. We’ll use this for ranking later.</p><h4>Episodic memory in Python</h4><pre>@dataclass(frozen=True)<br>class Episode:<br>    user_id: str<br>    timestamp: datetime         # when it happened<br>    event_type: str             # &quot;user_query&quot;, &quot;agent_action&quot;<br>    summary: str                # short description<br>    context: dict               # structured details<br>   importance: float = 0.5     # 0.0 to 1.0</pre><p>Think of episodic memory as a journal. Each entry is time-stamped, and the order matters.</p><pre>2026-05-12  10:43   User asked about webhooks<br>2026-05-14  09:18   Deployed payment-service v2.3<br>2026-05-20  16:55   User got 500 on /checkout<br>                    └─ root cause: stale cache<br>2026-05-26  11:02   User: &quot;let&#39;s revisit the webhook conversation&quot;</pre><p>When the user says “let’s revisit the webhook conversation,” you can’t just search by similarity. You rank by three things together: <strong>recency</strong> (how recently did it happen?), <strong>relevance</strong> (does it match the query?), and <strong>importance</strong> (was the episode itself significant?). This is where naive vector stores fall down, they give equal weight to a casual mention from six months ago and a critical incident from yesterday.</p><h4>Procedural memory in Python</h4><pre>@dataclass(frozen=True)<br>class Policy:<br>    name: str<br>    when: str                   # condition / trigger<br>    then: str                   # action / behavior<br>    priority: int = 0           # higher = applied first<br>    confidence: float = 1.0</pre><p>Procedural memory is the “how to” layer: rules, policies, behaviors. It’s also the one most teams accidentally scatter across system prompts, tool definitions, and fine-tuned weights, almost never in a structured store, even though it should be.</p><p>Why store policies as structured records instead of stuffing them into the system prompt? Two reasons: auditability (you can trace which policy fired) and updateability (you can edit a policy without retraining or rewriting prompts). It’s the most underdeveloped layer in production AI today, and that makes it an opportunity.</p><h4>The cross-cutting discipline: time</h4><p>Here’s something most memory discussions miss: time is not a fourth type of memory. It’s a discipline that runs through all three.</p><p>Every semantic fact has a window where it was true. <br>Every episode has a timestamp. <br>Even procedures have a time when they became active.</p><p>There are two key questions any time-aware memory must answer: <br><em>when was this true?</em> (answered by valid_from / valid_until) and <br><em>when did we learn it?</em> (answered by observed_at).</p><p>Most systems collapse these into a single created_at timestamp, then wonder why they give wrong answers to time-sensitive questions.</p><h3>A Python detour: when is “tomorrow”?</h3><p>If you work with time-aware memory, Python has a trap waiting for you.</p><pre># User says: &quot;remind me tomorrow&quot;<br># Server timezone: UTC. User timezone: Europe/Istanbul.<br>reminder_at = datetime.now() + timedelta(days=1)<br># naive - uses the server&#39;s &quot;now&quot;, not the user&#39;s</pre><p>datetime.now() returns a <em>naive</em> datetime with no timezone attached, and it uses the server&#39;s clock, not the user&#39;s. In tests, this works. In production, daylight saving kicks in, users travel, servers move between regions, and your reminders fire at the wrong time.</p><p>The fix has been in the standard library since Python 3.9:</p><pre>from datetime import datetime, timezone<br>from zoneinfo import ZoneInfo<br># Server side: always UTC, always aware<br>now_utc = datetime.now(timezone.utc)<br># User-facing: convert to the user&#39;s timezone<br>user_tz = ZoneInfo(&quot;Europe/Istanbul&quot;)<br>now_local = now_utc.astimezone(user_tz)</pre><p>The rule: <strong>store UTC, render local.</strong> Every timestamp in your database is UTC; you only convert when you show a time to the user.</p><h3>The discipline of forgetting</h3><p>Forgetting is not deleting. It’s marking what no longer applies.</p><p>When the user says “I’m not vegan anymore,” your system does two things, not one. It writes the new preference, and it deactivates the old one.</p><pre>def replace_fact(store, *, user_id, key, new_value):<br>    now = datetime.now(timezone.utc)<br>    # Find the currently-active fact<br>    old = store.recall(user_id=user_id, key=key, at=now)<br>    # Mark it as no longer valid<br>    if old:<br>        old.valid_until = now<br>    # Add the new fact, linked to the one it replaces<br>    new = SemanticFact(<br>        user_id=user_id, key=key, value=new_value,<br>        observed_at=now, valid_from=now,<br>    )<br>    store.add(new, supersedes=old.id if old else None)</pre><p>You don’t delete the old record. You close its validity window. The fact stays in the database; it just doesn’t show up in queries about “now” anymore.</p><p>The supersedes link buys you two things.</p><p><strong>Debugging</strong>: when the agent does something strange, you can walk back the chain, where did this come from, what did it replace, and so on, without losing data.</p><p><strong>Audit</strong>: in regulated industries like banking, you may legally need to answer &quot;what did the system know at the moment it made this decision?&quot; If you delete old records, you can&#39;t. If you supersede them, you can.</p><h3>Memory is evidence, not instruction</h3><p>If you take one idea from this entire post, take this one.</p><p>Most apps make the same mistake: they dump memory records into the system prompt as if they were rules. “The user prefers Python. Always answer in Python.” That’s not memory, that’s an instruction, and a bad one.</p><p>The right framing is: <em>here are observations from past conversations. They are evidence, not commands. If the current message contradicts them, prefer the current message.</em></p><p>Why does this matter? Because if the user asks for a TypeScript example today, you don’t want the agent insisting “but you usually prefer Python.” That’s not personalization, that’s sticky memory, and users hate it.</p><p>Memory is evidence. Instructions are rules. The current message is the strongest signal. Weigh them; don’t equate them.</p><h3>When memory breaks: failure modes</h3><p>Now that we’ve designed memory, let’s look at the four most common ways it breaks in production.</p><h4>Cross-contamination</h4><p>One user’s data leaks into another’s session. And it doesn’t always come from sloppy code, sometimes it comes from an optimization that <em>looks</em> smart.</p><pre>from functools import lru_cache<br># Bad: cache key ignores the user<br>@lru_cache(maxsize=10_000)<br>def answer(prompt: str) -&gt; str:<br>    context = retrieve_memory(query=prompt)<br>    return call_llm(prompt, context)</pre><p>User A asks “summarize my last meeting.” We fetch her context, call the LLM, cache the result keyed by the prompt string. User B types the same question, cache hit, and gets User A’s summary. This passes code review. It passes tests, because tests use different prompts and never collide. It only breaks in production, when real users type similar things.</p><pre># Good: user identity is part of the access path<br>@lru_cache(maxsize=10_000)<br>def answer(user_id: str, prompt: str, memory_version: int) -&gt; str:<br>    context = retrieve_memory(user_id=user_id, query=prompt)<br>    return call_llm(prompt, context)</pre><p>The deeper fix: design every memory-touching function so user identity is <em>structurally</em> part of the access path, not something you have to remember to add.</p><h4>Staleness</h4><p>A fact was true; time passed; now it isn’t. The user was vegan three years ago, said so, and the system still recommends vegan restaurants today.</p><pre># Good: ask what is true at this moment<br>def active_fact(store, *, user_id: str, key: str, at: datetime):<br>    return store.find_one(<br>        user_id=user_id,<br>        key=key,<br>        valid_from__lte=at,<br>        valid_until__gt_or_null=at,<br>        order_by=[&quot;-confidence&quot;, &quot;-observed_at&quot;],<br>    )</pre><p>Every query for active memory filters by validity <em>at query time</em>. The old record isn’t deleted; it just isn’t active. This is exactly why we did all that time-awareness work earlier. Staleness is the single biggest source of “my AI says weird things” bugs in production.</p><h4>Context pollution</h4><p>Retrieve too much, and the model’s attention blurs. Imagine fifty past conversations, three of which mention someone named Sarah:</p><p><strong><em>I have a meeting with Sarah on Friday.<br>I’m going to the beach with Sarah.<br>Sarah is my project manager.<br>[+ 47 other Sarah references]</em></strong></p><p>All of it lands in the prompt, attention blends them, and the model confidently produces: <strong>“Your beach meeting with Sarah is on Friday.”</strong></p><p>And no, bigger context windows don’t save you. Even with a million-token window, there’s a well-documented “lost in the middle” effect, a 10–25% accuracy drop for facts placed in the middle of a long context. A bigger window just gives you more middle to lose things in.</p><pre># Good: retrieve with constraints<br>context = retrieve(<br>    user_id=user_id,<br>    top_k=5,                       # max items<br>    min_relevance=0.7,             # quality floor<br>    max_age=timedelta(days=30),    # recency cutoff<br>    label_with_metadata=True,      # so the model knows what&#39;s what<br>)</pre><p>The fix isn’t “retrieve more.” It’s retrieve less, filter early, and label everything with its source and timestamp so the model knows what it’s reading.</p><h4>Memory poisoning</h4><p>This is the newest failure mode, and it’s an attack, not an accident.</p><p>An attacker plants a malicious instruction in content your agent will read — a web page, a shared document, a support ticket. Your agent reads it, extracts “facts,” stores them in long-term memory. Weeks later, an unrelated query retrieves the poisoned memory and acts on it. The injection and the damage are separated in time; the attacker is long gone.</p><p>OWASP added “Memory and Context Poisoning” to its <strong>Top 10 for Agentic Applications in December 2025 (ASI06)</strong>. Research published this year shows attack success rates above 95% against production agents.</p><pre># Good: provenance, trust level, and instruction filtering<br>def write_memory(candidate, *, source):<br>    if looks_like_instruction(candidate.text):<br>        return Reject(&quot;memory cannot contain commands&quot;)<br>    trust = &quot;trusted&quot; if source.kind == &quot;user_stated&quot; else &quot;untrusted&quot;<br>    store.add(<br>        candidate,<br>        provenance=source.id,<br>        trust_level=trust,<br>        usable_as_instruction=False,<br>        requires_review=(trust == &quot;untrusted&quot;),<br>    )</pre><p>The defenses live in the same family: label every memory with its source, track provenance, and sanitize on write, not just on read. Treat content from untrusted sources as suspicious by default. This is a whole topic on its own, but the minimum bar is: never store a memory without knowing where it came from.</p><h3>How do you know it’s working? Measure it.</h3><p>Most teams ship memory without instrumentation and only notice problems when users complain. Put these five numbers on your dashboard instead:</p><ul><li><strong>Recall hit rate — </strong>of the memories you retrieved, how many were actually useful?</li><li><strong>Stale fact rate — </strong>how often do you return expired facts? Should approach zero.</li><li><strong>Retrieval latency</strong> — p50, p95, p99. Memory queries should be fast.</li><li><strong>Cross-user leak rate</strong> — audit your logs. In a correct system, this is exactly zero.</li><li><strong>Token efficiency</strong> — of the tokens you injected, how many influenced the output?</li></ul><p>These five turn memory from “vibes” into engineering. You can’t improve what you don’t measure.</p><h3>Don’t build it alone</h3><p>You don’t have to build all of this from scratch. Three frameworks worth knowing:</p><ul><li><strong>LangMem</strong> — LangChain’s memory layer. If you’re already on LangChain or LangGraph, it’s the natural extension, with semantic/episodic/procedural support built in.</li><li><strong>Mem0</strong> — drop-in managed memory for personalization. The easiest path to “I just want memory in my chatbot.”</li><li><strong>Zep</strong> — temporal knowledge graphs with time-aware retrieval. It implements the same time-aware pattern we built here, at scale, and scores highest on temporal benchmarks.</li></ul><p>(There are more…)</p><h3>Build vs. buy</h3><p>Build your own when you’re in a regulated industry with audit and retention requirements, when your data model is genuinely unique, or when you have a small user base where operational simplicity wins.</p><p>Buy a framework when you’re shipping a standard chatbot, scaling past a hundred thousand users where you don’t want to operate the infrastructure yourself, or when your team is small.</p><p>The honest answer for most teams is hybrid: build the semantic layer (your domain is unique), buy the episodic and retrieval layers (vector search is commodity), and build procedural (your business logic is yours).</p><h3>The art of forgetting</h3><p>A system that remembers everything isn’t remembering, it’s just whispering random fragments from the past. Human memory is useful precisely because it forgets, prioritizes, and reconstructs. That’s not a weakness; that’s the feature.</p><p>So when you design the next memory feature for your AI product, don’t start by asking “how can we remember more?” Start by asking “what can we safely forget and when?”</p><p>The reliability of your application depends on that answer.</p><p>Next time you’re about to write messages.append(...), picture your user six months from now, asking for a restaurant. Then go write a forget() function.</p><p><em>I gave this talk at PyCon Italia 2026. <br>The slides and full code are on </em><a href="http://github.com/ozgecinko/designing-memory-talk"><em>GitHub.</em></a><em> <br>I’d love to hear what stuck.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0bc5f8bdadd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sewol Faciasında Verilerin Anlattıkları]]></title>
            <link>https://medium.com/yaz%C4%B1/sewol-facias%C4%B1nda-verilerin-anlatt%C4%B1klar%C4%B1-bba48ba4e965?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bba48ba4e965</guid>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[sewol]]></category>
            <category><![CDATA[verianalizi]]></category>
            <category><![CDATA[keşifsel-veri-analizi]]></category>
            <category><![CDATA[veri-görselleştirme]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Wed, 10 May 2023 12:01:59 GMT</pubDate>
            <atom:updated>2023-05-10T12:01:59.497Z</atom:updated>
            <content:encoded><![CDATA[<h4>Keşifsel Veri Analiziyle Sewol Faciasının İçyüzüne Yolculuk...</h4><p><strong>15 Nisan 1912</strong>’desiniz. Tarih sayfalarının Atlas Okyanusu’nda batan ünlü Titanik gemisiyle kaplandığı o güne geldiniz. Karmaşık duygular yaşıyorsunuz çünkü o gemiye binmekten şans eseri vazgeçmiştiniz. Kilometrelerce ötedesiniz ve okyanusun dibindeki gemide kimin sağ kaldığına dair haberiniz yok. Zihniniz dolu, vazgeçmeseydiniz ne olurdu? Tahminde bulunabilir miydiniz? <em>Bulunamazdınız</em>, elinizde hiçbir bilgi yoktu.</p><p>Bir süre geçtikten sonra gemideki yolcular hakkında detaylı bilgilere sahip olan ve yolcuların hayatta kalma durumunu gösteren bir tablo elinize ulaştı. Şimdi tahminde bulunabilir miydiniz?<em> Evet, bulunabilirdiniz.</em> Kimse size bir şey anlatmasa dahi o tablodan olayın hikayesiyle ilgili çıkarımlar yapabilirdiniz.</p><p>Bir faciadan çıkarımlar yapmak kolay değil biliyorum, veri bilimi yolculuğumda Titanik veri setine yolum düşünce keşifsel veri analizi gerçekleştirirken çok etkilenmiştim. Keşifsel veri analizi (exploratory data analysis), veri setindeki değişkenler arasındaki ilişkileri, veri dağılımlarını ve önemli özellikleri keşfetmek için kullanılan bir veri analizi yöntemidir.</p><p>Son günlerde Kaggle’da keşifsel veri analizi yapabileceğim bir veri seti bulmak için gezinirken <a href="https://www.kaggle.com/datasets/ljaem10/the-sinking-of-mv-sewol-south-korea">Sewol veri seti</a>yle karşılaştım ve Sewol veri setini görmek beni geçmişe götürdü.</p><p><strong>16 Nisan 2014.</strong> Takip ettiğim Güney Koreli ünlüler sarı bir kurdele paylaşımı yapmıştı ve internette Güney Kore en çok konuşulan kelimelerden biri olmuştu. Haberlere bakınca bir geminin battığını ve yolcuların çoğunun bu faciada hayatını kaybettiğini görmüştüm. Haberimin olduğu ancak araştırmadığım bir olaydı. Kaggle’da Sewol veri setiyle karşılaşınca konu üzerinde araştırma yapma isteğim doğdu ancak araştırmadan önce keşifsel veri analizi gerçekleştirmeye karar verdim.</p><p>Yazının başlangıcında Titanik örneğinde özetle <em>kimse size olayın hikayesini anlatmasa bile elinize bir tablo gelse çıkarımlarda bulunabilirdiniz</em> demiştim. Şimdi, olayın hikayesini araştırmadan önce, Sewol veri setinin hikayesini keşifsel veri analiziyle gerçekleştirerek çıkarımlarda bulunalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/0*23KHkMP1JT2SxxXC.png" /></figure><p>Sewol veri setini incelerken trajedinin büyüklüğünden ve hayatını kaybedenler ile ailelerinin uğradığı büyük kayıptan derinden etkilendim, bu ciddi vesileyle bu yıkıcı olaydan etkilenen herkese en derin başsağlığı dileklerimi ileterek başlamak istiyorum.</p><h3>Keşifsel Veri Analizi</h3><p>Veriyi keşfederken çeşitli işlemler gerçekleştirdim ancak burada işlemlerin kodlarını açıklamak yerine verinin hikayesini anlatmaya karar verdim.</p><p>Çalışmaya ait yazdığım bütün kodlara ve açıklamalara <a href="https://www.kaggle.com/code/ozgecinko/diving-deep-into-the-sewol-dataset-eda"><strong>Kaggle adresim</strong></a> üzerinden ulaşabilirsiniz.</p><h4>Veri Setinin Hikayesi</h4><p>Sewol veri seti, Sewol feribotundaki yolcularla ilgili yolcunun cinsiyeti, yaşı, statüsü, yolculuk hedefi, feribotta bulunduğu bölüm ve yaşama durumu gibi bilgileri içerir. Veride eksik bilgiler ve açıklamalar bulunmaktadır, bu bilgiler verinin hikayesini etkileyebilir.</p><p>Veri setine ilk bakışta yolcular arasında toplamda 286 erkek ve 190 kadın bulunduğunu gördüm. Veri setini biraz daha inceleyerek “Category-1”, “Category-2” ve “Category-3” ifadelerinin birtakım kategorileri belirttiğini, “Floor” ve “Location” ifadelerinin feribottaki katları ya da bölümleri belirttiğini düşündüm. Verideki eksik bilgiler genel olarak bu ifadelerle ilgiliydi o yüzden bu ifadeleri yorumlamaya çalıştım.</p><p><em>Category-1</em> değişkenini incelediğimde yolcuları eğitim, mesleki ve seyahat olmak üzere yolculuk amacına göre göre sınıflandırdığını gözlemledim.<br><em>Category-2 </em>değişkenini incelediğimde yolcuları öğrenci, öğretmen, gezgin ve mürettebat üyesi olmak üzere yolcu statüsüne göre sınıflandırdığını gözlemledim. <em>Category-3 </em>değişkeni ise tamamen muammaydı; ilk incelediğimde değişkenin kaptan, ikinci kaptan, mutfak görevlisi gibi terimlere sahip olduğunu gördüm ardından <em>rice-water</em>,<em> 2–1 half </em>gibi anlamlandıramadığım terimlere sahip olduğunu gördüm bu yüzden bu değişkeni ele almaktan vazgeçtim.</p><p><em>Floor</em> değişkenindeki terimleri araştırdığımda feribotun katlarını ya da güvertelerini ifade ettiğini fark ettim. <em>Location</em> değişkenindeki terimleri araştırdığımda feribotun bölümlerini ifade ettiğini fark ettim.</p><p>Veri setindeki değişkenleri daha anlaşılır olacak şekilde düzenleyerek işlemler gerçekleştirdim.</p><p>Gelin, elde ettiğim çıktılarla verinin hikayesini çizelim.</p><h4>Verinin Hikayesi</h4><p>Elimizdeki verinin genel resmini incelediğimizde yolcular hakkında birtakım bilgilere kolayca erişiriz ancak bu verileri yorumlamak bizim elimizdedir.</p><p>Öncelikle genel resme bakalım.</p><ul><li>Cinsiyet oranına bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gK02-yNGzFYBFZMYUW5Asw.png" /></figure><p>Yolcular arasında toplamda 286 erkek, 190 kadın bulunur. Feribotta çoğunlukla erkek yolcu bulunmaktadır.</p><ul><li>Yolculuk hedefine bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZrLK_-9hhYWhN2Pjf7Vwg.png" /></figure><p>Yolcular arasında 339 kişi eğitim, 104 kişi seyahat, 33 kişi mesleki amaçlı yolculuk yapmaktadır.</p><ul><li>Yolcuların statülerine bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBWi3i-zFWT5z97a3FWxXQ.png" /></figure><p>Yolcular arasında toplamda 325 öğrenci, 14 öğretmen, 104 gezgin, 33 mürettebat üyesi bulunmaktadır.</p><ul><li>Yolcuların feribotta bulunduğu bölümlere bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UuGoCPOh7t7VB_8hKnVaCw.png" /></figure><p>Feribotun Front kısmında 230 kişi, Back kısmında 176 kişi, In kısmında 45 kişi ve Middle kısmında ise 25 kişi bulunmaktadır.</p><ul><li>Yolcuların feribotta bulunduğu katlara bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1DdoQxCF2G-k55g10sI2g.png" /></figure><p>Feribotun Lowest Level katında 2 kişi, Bottom Level katında 118 kişi, Mid Level katında 334 kişi ve Top Level katında 22 kişi bulunmaktadır.</p><ul><li>Yolcuların yaşama oranına bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N4Yga8LIyAvMaW2FjVYVAA.png" /></figure><p>Yolculardan 304 kişi hayatını kaybetmiştir, 172 kişi sağ kurtulmuştur.</p><ul><li>Yolcuların yaş dağılımına bakalım.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcjdfMvsQjqI7-OkUxTMJQ.png" /></figure><p>Yolcuların büyük bir çoğunluğu 15–20 yaş aralığındadır.</p><p>Genel resmi gözden geçirdiğimde feribotta çok fazla öğrencinin bulunduğunu, yolculuk hedefinin büyük bir çoğunluğunun eğitim amaçlı olduğunu gördüm. Kısacası bu durum bana <strong>feribotun yolculuk tarihinin öğrencilerin eğitim amaçlı yolculuk yaptığı bir zamana ya da olaya </strong>denk geldiğini gösterdi. Detaylı bir şekilde düşündüğümde ise 15–20 yaş bandında olan bir öğrencinin lise hatta lise sona gitme ihtimalinin daha yüksek olduğunu fark ettim.</p><p>Şimdi daha da derine inelim.</p><p>Çok fazla öğrencinin bulunduğu feribotta yaşama oranı düşük olduğu için hayatını kaybedenlerin çoğunun öğrenci olacağını düşündüm ancak daha detaylı ve doğru bilgiler edinmek için yaş dağılımında hayatta kalma oranına bakmaya karar verdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRtpe6EQ1oaq93974-mVCw.png" /></figure><p>Hayatını kaybedenlerin büyük bir çoğunluğu 15–20 yaş aralığındadır, hayatta kalanların büyük bir çoğunluğu ise 45–50 yaş aralığındadır.</p><p>Bu durumda <strong>feribotta bulunan genç bir yolcunun, orta yaşlı bir yolcuya oranla yaşama oranının daha düşük </strong>olduğunu fark ettim.</p><p>Grafiği incelediğimde mantığıma uymayan birkaç durum oldu. Genç bir yolcunun daha kolay hareket ederek kaçabileceğini düşünmüştüm ancak tablo çok farklı bir sonuç göstermişti.</p><p>Biraz daha detay katmak için yolcuların değişkenlerine göre hayatta kalma durumlarına bakmaya karar verdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBCjotMf0N8qqp6uSZydLg.png" /><figcaption>Hayatta kalma durumu grafikleri: 1. Cinsiyet, 2. Yolculuk Amacı, 3. Yolcu Statüsü.</figcaption></figure><p>Yukarıdaki grafikleri soldan sağa baz alarak incelediğimde erkeklerin hayatta kalma oranının kadınlara göre daha yüksek olduğunu, eğitim amaçlı yolculuk yapanların veya öğrenci statüsündekilerin hayatta kalma oranının daha düşük olduğunu, yolculuğa bireysel gezi amaçlı katılanların veya gezgin statüsündekilerin hayatta kalma oranının daha yüksek olduğunu gördüm.</p><p>Az önce mantığıma uymayan durumun yanında bu kez de tuhaf bulduğum bir durum oldu. İkinci grafikte mesleki amaçlı yolculuk yapanların ve son grafikte mürettebat üyesi olanların hayatta kalma oranının daha yüksek olduğunu görmek kafamda feribotun mürettebatına dair birkaç soru işareti oluşturdu ancak diğer değişkenlere de bakmak istedim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXlU2GWWdOLkOCGZ1GwuFw.png" /><figcaption>Hayatta kalma durumu grafikleri: 1. Feribotun Katları, 2. Feribotun Bölümleri.</figcaption></figure><p>Yukarıdaki grafikleri soldan sağa baz alarak incelediğimde feribotun “Bottom Level” katında bulunan bir yolcunun veya feribotun “In” kısmında bulunan bir yolcunun hayatta kalma oranının diğerlerine göre daha yüksek olduğunu gördüm.</p><p>Feribotun “In” kısmında ya da “Bottom Level” katında hangi statüdeki yolcular çoğunluktaydı da hayatta kalma oranı diğerlerine kıyasla bu kadar yüksek çıktı, siz de benim gibi merak ettiniz mi?</p><p>Muhtemelen mürettebat üyeleri ya da gezgin statüsündeki kişiler feribotta hayatta kalma oranının yüksek olduğu bölümde bulunuyordu ancak veriyi kullanarak bu tahminimi doğrulamak istedim.</p><p>Derine derine, daha da derine inelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcdePXuP2DzsrGjz6oVKaw.png" /></figure><p>Yukarıdaki grafikte gezgin statüsündeki kişilerin “In” bölümünde ve “Bottom Level” katında bulunma oranı daha fazla olduğunu doğruladım. Bu durumda, feribota bireysel gezi amaçlı katılan bir gezginseniz ve feribotun “In” bölümünde “Bottom Level” katında yer alıyorsanız hayatta kalma oranınız diğer durumlara göre daha yüksek olacaktır.</p><p>Verinin hikayesi tahminlerimde tuhaf bulduğum kısımları doğurmaya devam ediyordu ben de bu defa hayatta kalma oranının düşük olduğu bir durumu incelemek istedim.</p><p>Öğrencilerin hayatta kalma oranının düşük olduğunu görmüştüm ancak öğrenciler arasında hayatta kalma oranının hangi durumda daha yüksek olacağını merak ettim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMD173vU7ksW9C-pEVzM0g.png" /></figure><p>Yukarıdaki grafikte “Back” kısmında “Mid Level” katında bulunan veya “Front” kısmında “Mid Level” katında bulunan öğrencilerin hayatta kalma oranının daha yüksek olduğunu fark ettim.</p><p>Biraz daha detay katıp kız öğrenciler ve erkek öğrenciler feribotta hangi bölümde ve katta daha yüksek hayatta kalma oranına sahipti diye bakmaya karar verdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dck7--1hnAxHs5cM0e9cHg.png" /></figure><p>Kız öğrencilerin “Back” kısmında “Mid Level” katında ve erkek öğrencilerin “Front” kısmında “Mid Level” katında hayatta kalma oranının daha yüksek olduğunu gördüm.</p><p>Kısacası, feribota eğitim amaçlı katılan, feribotun “Back” kısmında “Mid Level” katında olan bir kız öğrencinin veya feribotun “Front” kısmında “Mid Level” katında olan bir erkek öğrencinin yaşama ihtimalinin diğer öğrencilere oranla daha yüksek olduğunu fark ettim.</p><p>Feribotun farklı bölümlerinde ve katlarında farklı değişkenlerde hayatta kalma oranı daha yüksek çıkınca feribottaki her bölümde ve katta her statüden kişinin bulunmayacağını düşündüm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKMRo6O-HajKnKFXsLUHhQ.png" /></figure><p>Feribotun “In” kısmında ve “Bottom Level” katında yalnızca gezgin statüsündeki kişilerin bulunduğunu gördüm. Öğrenci statüsündeki kişilerin ise yalnızca “Front” ve “Back” kısımlarında, “Mid Level” katında bulunduğunu gördüm.</p><p>Feribotun bölümlerini ve katlarını ele alarak hayatta kalanların oranına bakınca birçok durumu daha net görebileceğimi düşündüm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTga7VeLflE9wTp09Oa1Ew.png" /><figcaption>Feribotun bölümlerindeki yolcu statülerine göre hayatta kalma oranı grafikleri.</figcaption></figure><p>Feribottaki bölümlere ve yolcu statülerine göre hayatta kalma oranını incelediğimde “Front” ve “Back” bölümlerindeki mürettebat üyelerinin çok yüksek bir kurtulma oranına sahip olduğunu fark ettim. Öğrenciler de yalnızca “Front” ve “Back” bölümlerinde bulunuyordu ancak hayatta kalma oranları oldukça düşüktü, bu durumu oldukça tuhaf buldum.</p><p>Mürettebat üyeleri öğrencileri kurtarmak için gerekli önlemleri almamış mıydı?</p><blockquote>Tüm çıkarımları göz önüne aldığımda ortaya çıkan hikaye elbette ki sayılardan fazlası oldu.</blockquote><p>Feribottaki yolcuların büyük çoğunluğunun öğrencilerden hatta liseye giden öğrencilerden oluştuğunu, facianın eğitim amaçlı gezinin düzenlendiği bir tarihte yaşandığını fark ettim. Feribotta bulunan bir öğrencinin ya da öğretmenin hayatta kalma ihtimalinin oldukça düşük olduğunu fark ettim.</p><p>Farkına vardığım durumlar cevaplayamadığım sorulara da neden oldu. Feribottaki öğrenciler göz ardı mı edilmişti, mürettebat üyeleri gerekli önlemleri almadı mı diye sormadan edemedim.</p><p>Olayın gerçek hikayesini araştırdım.</p><h3>Olayın Hikayesi</h3><p>16 Nisan 2014&#39;te Güney Kore’nin güneybatısındaki Jindo Adası’ndan başlayan bir yolculukta Sewol adlı bir feribot battı. Feribotta toplamda 476 yolcu vardı ve 304 kişi hayatını kaybetti.</p><p>Sewol isimli feribot Incheon’dan Jeju Adası’na giden uzun bir yolculuktaydı ve feribotun aşırı yüklenmesi nedeniyle yolcuların çoğu güvertede seyahat etmek zorunda kaldı. Feribot daha öncesinde düşük hızlı bir tekneyle çarpıştığı için hasar almıştı ve tamir edilmesi gerekmesine rağmen tamir işlemleri yeterince yapılmamıştı ve bu durum feribotun dengesinin bozulmasına neden oldu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj390-auBBpkcczGF1Ox8A.png" /></figure><p>Sewol, Jindo Adası’na yaklaştığında feribotun kaptanı Lee Joon-seok, güvertede seyahat eden yolculara can yelekleri takmalarını söylemedi ve feribotu kontrol etmek için yeterli tecrübeye sahip olmadığı için yanlış hareketler yaptı. Feribot, bir tarafı suya daldıktan sonra yaklaşık iki buçuk saat içinde battı.</p><p>Kazanın ardından birçok soruşturma başlatıldı ve kaptan Lee Joon-seok ve diğer mürettebat üyeleri dahil olmak üzere birçok kişi hapse atıldı. Kazanın nedenleri arasında aşırı yüklenme, yetersiz eğitim ve feribotun bakımı yer aldı.</p><p>Sewol kazası, Güney Kore’nin modern tarihindeki en büyük felaketlerden biri oldu ve ülkede bir dizi reform hareketini tetikledi. Yaşanan facia, mahkumiyetlere ve ülke başbakanının istifasına sebep oldu. Ayrıca, feribotun sahibi olan dini lider Yoo Byung-eun’un ölümüyle sonuçlanan tartışmalı bir olayı da beraberinde getirdi.</p><h4>Olayın Zaman Çizelgesi</h4><h4><strong>15 Nisan 2014</strong></h4><blockquote><strong><em>21:00<br></em></strong>6.825 tonluk arabalı bir feribot olan Sewol, çoğunluğu Danwon lisesinden olmak üzere 325 lise öğrencisiyle beraber toplamda 476 kişiyle Güney Kore’nin kuzeybatı kıyısındaki Incheon’dan kalktı.</blockquote><h4>16 Nisan 2014</h4><blockquote><strong><em>08:55<br></em></strong>Yetkililer, feribot sürüklenmeye ve yana yatmaya başladıktan sonra ilk imdat çağrısını yaptı.</blockquote><blockquote><strong><em>09:18<br></em></strong>Yetkililer, Sewol feribotunun 50 dereceden fazla bir açıyla kaydığını bildirdi.</blockquote><blockquote><strong><em>09:23<br></em></strong>Yetkililer ikinci bir imdat çağrısı olan “Batmak üzereyiz.” mesajını gönderdi, gemi yana yatmaya devam etti ve suyla doldu.</blockquote><blockquote><strong><em>09:35<br></em></strong>Sahil Güvenlik botları, yolcuları ve mürettebatı kurtarmak için geldi. Batan gemiden ilk ayrılanlar arasında feribotun kaptanı vardı.</blockquote><blockquote><strong><em>09:38<br></em></strong>Feribotun acil durum sevk ekipleriyle yaptığı son iletişimde yetkililer, geminin 60 derecede yattığını bildirdi.</blockquote><blockquote><strong><em>11:18<br></em></strong>Feribotun alabora olması ve sular altında kalması yaklaşık iki buçuk saat sürdü.</blockquote><h4>18 Nisan 2014</h4><blockquote>Kaptan ve mürettebat tutuklandı. Kaptan Lee Jun-seok, kriz anında tekneyi ve yolcularını terk etmekle suçlandı.</blockquote><h4>20 Nisan 2014</h4><blockquote>Güçlü akıntılar ve zayıf görüş nedeniyle günlerce süren kurtarma çabalarının ardından dalgıçlar batık feribota girip cesetleri çıkarmaya başladı. Ölen veya kaybolan 302 kişiden 250&#39;si lise öğrencisiydi.</blockquote><h4>28 Nisan 2014</h4><blockquote>Güney Kore başkanı Park Geun-hye, feribot faciasını önleyemediği için özür diledi. Güney Kore hükümetinin 2 numaralı yetkilisi olan başbakan Chung Hong-won istifa etti.</blockquote><h4>30 Nisan 2014</h4><blockquote>Sewol feribotundaki yolculardan biri olan Park Su-hyeon’un feribot alabora olmadan önce çektiği cep telefonu videosu yayınlandı. Kurtarılan videoda feribotun interkomundan öğrencilere ve öğretmenlere oldukları yerde kalmalarını ve bulundukları yerde daha güvende olduklarını söyleyen bir ses vardı.</blockquote><h4>15 Mayıs 2014</h4><blockquote>Savcılar, feribotun kaptanı Lee Jun-seok ve diğer üç mürettebat üyesi hakkında cinayet suçlamasında bulundu. Savcılar, feribot operatörünün sahibi olan ailenin başı Yoo Byung-eun’u ve ailesini sorgulamaya çalıştı ancak Yoo Byung-eun bulunamadı.</blockquote><h4>21 Temmuz 2014</h4><blockquote>Savcılar, Sewol’un batmasıyla ilgili olarak Yoo Byung-eun’u tutuklamak istedi ancak Güney Kore polisi yaptığı açıklamada 12 Haziran’da bulunan bir cesedin, Yoo Byung-eun’a ait olduğunu söyledi.</blockquote><h4>5 Kasım 2014</h4><blockquote>Yoo Byung-eun’un oğlu Yoo Dae-kyoon, Sewol feribotunu işleten Chonghaejin Marine Company de dahil olmak üzere ailesi tarafından kontrol edilen yedi şirket 2002&#39;den bu yana yaklaşık 6,8 milyon dolar almaktan suçlu bulundu.</blockquote><h4>28 Nisan 2015</h4><blockquote>Gwangju’daki yüksek mahkeme, savcıların feribotun kaptanı Lee Jun-seok’un kendisi ve mürettebatı gemiyi terk ederken “kasıtlı ihmal yoluyla cinayet” işlediği yönündeki iddialarını kabul etti. Mahkeme, Bay Lee’yi ömür boyu hapis cezasına çarptırdı.</blockquote><blockquote>Her can kaybı, insanlık için bir kayıptır.</blockquote><p>Olayın hikayesini haber kaynakları haricinde araştırdığımda halkın üzüntüsünü daha derinden hissettim. Feribottaki öğrencilere ve öğretmenlere bulundukları yerde kalmaları ve beklemeleri gerektiği gibi yanlış direktiflerin verilmesi, üstelik mürettebat üyelerinin kurtarma çalışmaları için yetersiz kalması insanlarda oluşan öfkeyi derinden anlamama sebep oldu.</p><p>Böylesine acı dolu bir olayı incelemek zordu, tüm kayıpları ve yakınlarını saygıyla anıyorum.</p><h3>Kaynaklar</h3><ul><li><a href="https://www.nytimes.com/interactive/2015/04/12/world/asia/12ferry-timeline.html#/#time367_10823">https://www.nytimes.com/interactive/2015/04/12/world/asia/12ferry-timeline.html#/#time367_10823</a></li><li><a href="https://time.com/3016796/sewol-ferry-south-korea-yoo-byung-eun-body/">https://time.com/3016796/sewol-ferry-south-korea-yoo-byung-eun-body/</a></li><li><a href="https://thediplomat.com/2021/04/7-years-after-sewol-ferry-disaster-bereaved-families-still-urge-government-to-reveal-the-truth/">https://thediplomat.com/2021/04/7-years-after-sewol-ferry-disaster-bereaved-families-still-urge-government-to-reveal-the-truth/</a></li><li><a href="https://www.nytimes.com/2019/06/10/world/asia/sewol-ferry-accident.html">https://www.nytimes.com/2019/06/10/world/asia/sewol-ferry-accident.html</a></li></ul><p>Editör: <a href="https://medium.com/u/b67c1b1432d7">Berfin Yeşilyurt</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bba48ba4e965" width="1" height="1" alt=""><hr><p><a href="https://medium.com/yaz%C4%B1/sewol-facias%C4%B1nda-verilerin-anlatt%C4%B1klar%C4%B1-bba48ba4e965">Sewol Faciasında Verilerin Anlattıkları</a> was originally published in <a href="https://medium.com/yaz%C4%B1">Yazı Rehberi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[İz Peşinde: Meta Veriler ile Coğrafi Konum Analizi]]></title>
            <link>https://medium.com/yaz%C4%B1/i%CC%87z-pe%C5%9Finde-meta-veriler-ile-co%C4%9Frafi-konum-analizi-8c80b7f6e54e?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c80b7f6e54e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coğrafi-konum]]></category>
            <category><![CDATA[geolocation]]></category>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[meta-veri]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 13:02:13 GMT</pubDate>
            <atom:updated>2023-04-29T13:02:13.227Z</atom:updated>
            <content:encoded><![CDATA[<p>Son zamanlarda internetteki fotoğraflardan konum bulma yarışına giren videolara takmıştım. Bu tarz videolarda bir fotoğrafı ele alıp gündüz mü çekilmiş, güneşin açısı neredeymiş gibi sorularla coğrafi analiz yaparak konumu bulmaya çalışıyorlardı ve tıpkı coğrafi dedektiflik gibi olması çok hoşuma gitmişti.</p><p>Videoları izlerken kafamı kurcalayan bir soru oldu:</p><blockquote>Günümüzde akıllı telefonlarda çektiğimiz fotoğraflar meta verilere sahipken coğrafi konum analizi yapmaya gerek var mıydı?</blockquote><p>Kafamdaki soruyu biraz açıklayayım, günümüzde akıllı telefonlardan çektiğimiz fotoğraflar meta veriler barındırır.</p><p><strong>Meta veri</strong>, fotoğraf veya belge gibi bir dijital dosyanın yanında depolanan herhangi bir bilgiyi ifade eden genel bir terimdir. Dosya formatı, dosyanın yaratıcısı, dosyanın oluşturulduğu veya değiştirildiği tarih ve dosyayla ilgili tüm anahtar kelimeler veya etiketler hakkında bilgiler içerebilir.</p><p>Dijital fotoğraflarda bulunan meta veri türüne <strong>EXIF meta verileri </strong>denir. EXIF meta verileri fotoğrafı çekmek için kullanılan diyafram açıklığı, deklanşör hızı, ISO hızı, fotoğrafın çekildiği tarih, saat ve <strong>konum (GPS)</strong> gibi fotoğrafla ilgili bilgileri içerir.</p><p>Fotoğraflardan coğrafi konum analizi gerçekleştirmek <strong>OSINT</strong>’in alt alanlarından olan <strong>Geolocation</strong> kapsamındadır.</p><p><strong>OSINT</strong>, açık kaynak istihbaratının (Open Source Intelligence) kısaltmasıdır. OSINT, kamuya açık kaynaklardan elde edilen bilgileri kullanarak istihbarat toplama ve analiz etme sürecini ifade eder.</p><p><strong>Geolocation</strong> bir resmin, videonun veya cihazın içerisindeki farklı veri türleri veya analizi ile konumunun tespit edilmesidir.</p><p>Elimde sadece akıllı telefonlardan çekilen ve meta verilere sahip olan binlerce fotoğrafın olduğunu varsaydığımdan coğrafi konum analizine ihtiyaç duyulmayabilir diye düşündüm.</p><p>Bir fotoğraftan yola çıkarak aklımdaki soruyu araştırmaya başladım. Öncelikle kendi telefonumdan çektiğim bir görüntüyü ele alıp incelemeye karar verdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*HN-Tc9YFca2lvprzmHtvaA.png" /><figcaption>Kendi çektiğim fotoğraf.</figcaption></figure><p>Coğrafi konum analizi ile de bulunabilecek bu fotoğrafın EXIF meta verilerini Python ile inceledim. <em>Tabii siz benim gibi şov yaparak kod yazmak yerine hazır EXIF meta verisi inceleyen ExifTool gibi programları kullanabilirsiniz, ben direkt giriştiğim için bunu fark etmemiştim.</em></p><p>Yazdığım kodların tamamına <a href="https://github.com/ozgecinko/image-metadata-extractor"><strong>GitHub adresimden</strong></a> erişebilirsiniz.</p><h3>Python ile EXIF Meta Verilerinden Konum Tespiti</h3><p>EXIF meta verilerini Python ile incelemek için <strong><em>Pillow</em></strong> kütüphanesinden yararlandım. Pillow kütüphanesindeki <em>get_exif()</em> metodu fotoğrafın meta verilerini getirir.</p><p>Öncelikle meta verileri getirecek olan fonksiyonu yazdım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwMoMD2fLgupW64yWR81cQ.png" /><figcaption>EXIF meta verilerini getiren fonksiyon.</figcaption></figure><p>Fotoğrafın bazı EXIF meta verilerini sizlere de göstermek istedim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQDX0b3qKEYFFedh6eibyg.png" /><figcaption>EXIF meta verilerinin içeriğini yazdıran fonksiyon.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BeM3fM9OCFFpqSVY21pCdw.png" /><figcaption>Fotoğrafın EXIF meta verilerinin çıktısı.</figcaption></figure><p>Yukarıdaki çıktıda telefon modelinden GPS enlem ve boylam bilgisine kadar onlarca net bilgi yer aldığını görüyoruz. <em>Kodları kendiniz denerseniz pozlama süresi, beyaz dengesi gibi pek çok detaylı bilgiye de ulaşabilirsiniz, ben yalnızca işimize yarayacakları göstermek istedim.</em></p><p>Şimdi sıra, GPS bilgilerinden konum çıkarmakta…</p><p>GPS bilgilerinden konumu çıkarmak için <strong>coğrafi kodlama</strong> yapmak gerekir. Coğrafi kodlama, GPS koordinatlarını bir haritadaki bir konuma dönüştürme işlemidir.</p><p>Konumu elde etmek için Python ile <strong><em>GeoPy</em></strong> kütüphanesinin <strong>Nominatim</strong> isimli coğrafi kodlayıcısını kullandım. GPS koordinatları derece, dakika ve saniye biçiminde geldiği için önce <em>dms_to_decimal()</em> fonksiyonunu yazarak koordinatları decimal derecelere dönüştürdüm, ardından <em>get_location_address()</em> fonksiyonunu yazarak konumu buldum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f8ZhAj8lQ6ETbd3RPjpdVw.png" /><figcaption>Fotoğrafın meta verilerinden konum bulmasını sağlayan script.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MNs8g3Deu5l61SGTMmZJIw.png" /><figcaption>Konum bilgisinin çıktısı.</figcaption></figure><h3>Meta Veriler Coğrafi Konum Analizini Bitirebilir Mi?</h3><p>Bir EXIF meta verisini inceledik ve sonuca ulaştık diye koskoca coğrafi konum analizini bitirdik diyemeyiz, başka verileri de incelememiz gerekir.</p><p>Başka keşifler yapmak için WhatsApp, Discord ve Telegram aracılığıyla arkadaşlarımdan fotoğraflar istedim. Fotoğrafların hiçbirinde bir sonuca ulaşamadım çünkü yukarıdaki kodları denediğimde <strong>boş değer</strong> döndü.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8H2niIuErvlB4DJl" /></figure><p>Pek çok ihtimalden şüphelendiğim için kesin bir yolu deneyerek ihtimalleri değerlendirmek istedim. Bana gönderilen fotoğrafları değil de daha önce kendi denediğim ve sonuç aldığım fotoğrafı bu platformlardan birilerine göndererek tekrardan indirdim. Daha öncesinde kendi denediğim fotoğrafı bir platforma gönderip indirdikten sonra yeniden denediğimde boş değer döndüğünü fark ettim.</p><blockquote><em>Bir dakika, verilerimle mi oynamışlar?!</em></blockquote><p>Araştırma yapınca WhatsApp, Discord ve Telegram gibi mecraların EXIF verilerini çeşitli yöntemlerle fotoğraflardan sildiğini öğrendim.</p><p><strong><em>Fotoğraf gönderilmeden önce WhatsApp, Discord ve Telegram gibi uygulamalar tüm EXIF meta verilerini çıkarır.</em></strong></p><p>Genelde EXIF meta verilerini bir uygulamadan kaldırdıktan sonra geri getirmek mümkün değildir. EXIF meta verileri bir görüntü dosyasından silindiğinde çoğunlukla üzerine yazılır veya yeni verilerle değiştirilir, bu da orijinal bilgilerin kurtarılmasını çok zor hatta imkansız hale getirir.</p><p>EXIF meta verileri silinmese bile birçok durumun verilerin doğruluğunu etkileyeceğini de unutmamak gerekir. Örneğin fotoğrafın çekildiği yerin GPS sinyalinin zayıf olması, doğru bir konum belirleme imkanını azaltır.</p><p>Elimde sadece akıllı telefonlardan çekilen ve meta verilere sahip olan binlerce fotoğrafın olduğunu varsayarak sorduğum soru, bu bilgileri öğrendikten sonra oldukça anlamsız geldi çünkü doğrudan erişimim olmayan fotoğrafların meta verilerinin değiştirilebilme ya da silinebilme ihtimali yüksekti. Üstelik meta verilerin her zaman saklanacağına ya da doğru olacağına dair de bir kesinlik yoktu.</p><p>Tüm bu durumları göz önüne alırsak bir fotoğraftan konum bulmak istiyorsak hala daha coğrafi konum analizinin gerçekleştirilmesi gerekir.</p><p>Kısacası<strong>, EXIF meta verileri tek başına kesin sonuçlar sağlayamayacağı için coğrafi konum analizini tam olarak bitiremez</strong> ancak analizin bir parçası olarak değerlendirilebilir. Meta veriler, coğrafi konum analizinde bir adım olarak kullanılabilir ancak coğrafi konum analizi yalnızca meta verilere dayanmaz.</p><h3>Fotoğraflardan Coğrafi Konum Analizi Nasıl Yapılır?</h3><p>Fotoğraflar üzerinden coğrafi konum analizi yapılırken birçok adımın izlenmesi gerekir. Ben kısaca dikkatimi çeken adımları listeledim.</p><h4>EXIF Meta Verilerini İnceleme</h4><p>Fotoğrafların içinde saklanan EXIF meta verileri fotoğrafın çekildiği tarih, saat, konum gibi bilgileri içerir ve bu verileri fotoğrafın coğrafi konumunu belirlemek için kullanabilirsiniz.</p><p>EXIF meta verisi barındırmayan fotoğraflar üzerinden analiz yapmak daha zorlu bir süreç olacaktır çünkü fotoğraftaki coğrafi konumu doğrudan belirlemek yerine dolaylı ipuçlarını kullanmak gerekir.</p><h4>Fotoğraf İçerisindeki Referans Noktalarını Kullanma</h4><p>Fotoğrafta görünen yerleri, yapıları, nesneleri veya detayları kullanarak coğrafi konum hakkında tahminde bulunabilirsiniz. Örneğin tanıdık bir yapı, yerel bir simge veya benzersiz bir nesne fotoğrafta görünüyorsa bu bilgilerden yararlanarak fotoğrafın çekildiği yer hakkında bir fikir yürütebilirsiniz.</p><h4>Coğrafi Özellikleri Karşılaştırma</h4><p>Fotoğrafta görünen coğrafi özellikleri, haritalarla veya çevrimiçi coğrafi veri tabanlarıyla karşılaştırarak coğrafi konumu tahmin edebilirsiniz. Örneğin fotoğrafta görünen dağ, nehir, göl veya kumsal gibi coğrafi özellikleri haritalarla veya coğrafi veri tabanlarındaki benzer özelliklerle karşılaştırarak yaklaşık konum belirleyebilirsiniz.</p><h4>Hava Durumu ve Işık Koşullarını Değerlendirme</h4><p>Fotoğraftaki hava durumu ve ışık koşulları ile coğrafi konum hakkında ipuçları edinebilirsiniz. Örneğin fotoğraftaki güneşin konumu, gölgenin yönü, bulutların durumu gibi faktörler fotoğrafın çekildiği konum hakkında tahminlerde bulunmanıza yardımcı olabilir.</p><h4>Sosyal Medya ve İnternet Araştırması</h4><p>Fotoğrafta görünen nesneler, tabelalar, işaretler veya diğer belirteçler aracılığıyla sosyal medya ve internet üzerinde araştırma yapabilirsiniz. Özellikle fotoğrafta görünen yerle ilgili etiketler veya konum belirleyiciler içeren sosyal medya paylaşımlarını arayarak konum hakkında ipuçları bulabilirsiniz.</p><h4>Uzman Yardımı</h4><p>Fotoğraftan coğrafi konum tahmin etmek zorlu bir süreç olabilir bu yüzden bir uzman yardımı alabilirsiniz. Coğrafi bilgi sistemleri (GIS) uzmanları ya da harita uzmanları size fotoğrafınızın coğrafi konumu hakkında daha fazla bilgi sağlayabilir.</p><h4>Araştırma ve Verileri Doğrulama</h4><p>Toplanan verileri doğrulamak için daha fazla araştırma yapmanız gerekebilir. Başka kaynaklardan veya ilgililerden ek bilgiler toplayarak verileri doğrulamanız gerekebilir.</p><p>Unutulmaması gereken bir detay da coğrafi konum analizinin dikkatli bir analiz, veri doğrulama ve mantıklı sonuçlara ulaşma sürecini gerektirmesidir.</p><p>Fotoğraflar üzerinden coğrafi konum analizi yaparken objektif ve güvenilir verilere dayanarak sonuçlara ulaşmaya özen gösterilmelidir. Ayrıca, herhangi bir yasal veya etik kısıtlamayı dikkate almalı ve gizlilik haklarına saygı gösterilmelidir.</p><p>Bu konularla ilgiliyseniz internetten <em>OSINT</em> ya da <em>geolocation</em> kelimelerini aratarak coğrafi konum analizi yapılan videoları izlemenizi tavsiye ederim, ben <a href="https://youtu.be/RoqWbpZUOSo">bu videoyu</a> ve <a href="https://youtu.be/k-5J0kL7aRs">bu videoyu</a> izlerken çok etkilenmiştim!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BJLt9ERAI1VfdXkvm33hBg.png" /></figure><h3>Referanslar</h3><ul><li><a href="https://www.techtarget.com/whatis/definition/image-metadata">https://www.techtarget.com/whatis/definition/image-metadata</a></li><li><a href="https://gelecegiyazanlar.turkcell.com.tr/blog/osint-ile-cografi-konum-belirleme-teknikleri-geolocation-2">https://gelecegiyazanlar.turkcell.com.tr/blog/osint-ile-cografi-konum-belirleme-teknikleri-geolocation-2</a></li><li><a href="https://petapixel.com/what-is-exif-data/">https://petapixel.com/what-is-exif-data/</a></li><li><a href="https://towardsdatascience.com/extracting-gps-data-from-photos-using-python-e8be352acf15?gi=dbddd9466056">https://towardsdatascience.com/extracting-gps-data-from-photos-using-python-e8be352acf15?gi=dbddd9466056</a></li><li><a href="https://whizcase.com/does-discord-remove-exif-data/">https://whizcase.com/does-discord-remove-exif-data/</a></li><li><a href="https://holwech.github.io/blog/Fixing-WhatsApp-Backup/">https://holwech.github.io/blog/Fixing-WhatsApp-Backup/</a></li><li><a href="https://levelup.gitconnected.com/simple-geocoding-in-python-fb28ee5272e0">https://levelup.gitconnected.com/simple-geocoding-in-python-fb28ee5272e0</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c80b7f6e54e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/yaz%C4%B1/i%CC%87z-pe%C5%9Finde-meta-veriler-ile-co%C4%9Frafi-konum-analizi-8c80b7f6e54e">İz Peşinde: Meta Veriler ile Coğrafi Konum Analizi</a> was originally published in <a href="https://medium.com/yaz%C4%B1">Yazı Rehberi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hepsine Hükmedecek Tek Güç: Veri]]></title>
            <link>https://medium.com/yaz%C4%B1/hepsine-h%C3%BCkmedecek-tek-g%C3%BC%C3%A7-veri-e0b41cf0ec72?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b41cf0ec72</guid>
            <category><![CDATA[büyük-veri]]></category>
            <category><![CDATA[veri]]></category>
            <category><![CDATA[veri-bilimi]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 14:02:41 GMT</pubDate>
            <atom:updated>2023-02-23T14:02:41.226Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba!</p><p>Veri kavramının J.R.R. Tolkien’in Yüzüklerin Efendisi eserindeki meşhur <strong>“hepsine hükmedecek tek yüzük”</strong> ifadesi kadar değerli olduğunu hiç düşünmüş müydünüz? Ben veri biliminden bir arkadaşıma bahsederken bu ifadeyle benzetme yapmıştım, sizlerle de paylaşmaya karar verdim.</p><figure><img alt="https://cdn-images-1.medium.com/max/1600/0*NJGlpcrN9S-3h39L.gif" src="https://cdn-images-1.medium.com/proxy/0*NJGlpcrN9S-3h39L.gif" /></figure><p>Yüzüklerin Efendisi’nde “<strong>hepsine hükmedecek tek yüzük</strong>”, karanlık Lord Sauron tarafından Orta Dünya’nın çeşitli ırkları arasında dağıtılan diğer güç yüzüklerini kontrol etmek ve köleleştirmek için yaratılan güçlü bir eserdir.</p><p>Yüzüklerin Efendisi’ndeki “<strong>hepsine hükmedecek tek yüzük</strong>” ifadesi, <strong>“hepsine hükmedecek tek güç: veri</strong>” ifadesine benzetilebilir. Her iki ifadede de birden çok varlığı kontrol etme veya etkileme yeteneğine sahip güçlü bir varlık fikri söz konusudur.</p><p>Şimdi yüzük ve verilerin ortak noktalarına beraber bakalım.</p><h3>Güç</h3><p>Yüzük, diğer yüzükleri ve takanları kontrol etme gücüne sahiptir, veriler süreçleri ve sistemleri bilgilendirme ve yönlendirme yeteneğine sahiptir.</p><h3>Merkezilik</h3><p>Yüzük, karanlık Lord Sauron’un gücünün kilidini açmanın anahtarı ve kahraman Frodo Baggins’in arayışının ana odak noktası olduğu için hikayenin merkezi bir yönüdür. Benzer şekilde kararları, süreçleri ve sistemleri bilgilendirmek ve yönlendirmek için kullanılan veriler, modern yaşamın ve iş dünyasının birçok yönü için giderek daha merkezi hale gelmektedir.</p><h3>Gizlilik</h3><p>Yüzük gizlidir ve gerçek doğası, onunla temasa geçenler tarafından hemen anlaşılmaz. Benzer şekilde, uygun analiz ve yorumlama olmadan veriler de hemen anlaşılmaz.</p><h3>İyilik ve Kötülük Potansiyeli</h3><p>Yüzük kimin kullandığına bağlı olarak iyi ya da kötü için kullanılma potansiyeline sahiptir, veriler de kimin kullandığına bağlı olarak sonuçları iyileştirmek veya sonuçları manipüle etmek gibi iyi ya da kötü kullanılma potansiyeline sahiptir.</p><p>Yukarıdaki ortak noktaların yanı sıra, veriler günümüzün dijital çağında işletmeler için de değerli bir varlıktır.</p><p>2006’da İngiliz matematikçi Clive Humby’nin verilerle alakalı şu ifadesi ünlenmiştir.</p><blockquote>Veri yeni petroldür.</blockquote><p>Tıpkı petrol gibi, veriler de kullanılabilir olması için uygun şekilde toplanması ve analiz edilmesi gereken değerli bir kaynaktır.</p><p>Veri önemlidir çünkü karar verme açısından gerçek bir temel sağlar. Veriler, işletmelerin daha nesnel ve güvenilir kararlar almasına yardımcı olurlar. Veriler işletmelerin ilerlemeyi izlemelerine ve kararlarının etkisini ölçmelerine olanak tanıyarak sürekli iyileştirme sağlarlar.</p><figure><a href="https://linktr.ee/yazirehberi"><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BJLt9ERAI1VfdXkvm33hBg.png" /></a></figure><p>Sonuç olarak veriler bizim dünyamızda, yüzük ise Yüzüklerin Efendisi dünyasında rol oynayan değerli kaynaklardır. Her ikisi de kendi dünyalarını şekillendirme potansiyeline sahip güçlü varlıklardır ve bunları toplumun yararına kullanmak önemlidir.</p><h3>Referanslar</h3><ul><li><a href="https://comsocsrcc.com/data-is-the-new-oil/">https://comsocsrcc.com/data-is-the-new-oil/</a></li><li><a href="https://www.datacamp.com/blog/importance-of-data-5-top-reasons">https://www.datacamp.com/blog/importance-of-data-5-top-reasons</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b41cf0ec72" width="1" height="1" alt=""><hr><p><a href="https://medium.com/yaz%C4%B1/hepsine-h%C3%BCkmedecek-tek-g%C3%BC%C3%A7-veri-e0b41cf0ec72">Hepsine Hükmedecek Tek Güç: Veri</a> was originally published in <a href="https://medium.com/yaz%C4%B1">Yazı Rehberi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spotify Kodlarını İnceleyelim]]></title>
            <link>https://ozgecinko.medium.com/spotify-kodlar%C4%B1n%C4%B1-i%CC%87nceleyelim-af4a96d7f434?source=rss-2f33cfb5bafd------2</link>
            <guid isPermaLink="false">https://medium.com/p/af4a96d7f434</guid>
            <category><![CDATA[spotify-codes]]></category>
            <dc:creator><![CDATA[Özge Çinko]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 13:13:11 GMT</pubDate>
            <atom:updated>2021-09-03T10:48:40.436Z</atom:updated>
            <content:encoded><![CDATA[<p>TikTok’ta gezerken insanların defterlerine rastgele Spotify kodu çizdikleri ve çalıştırdıkları akımı gördüm, bu akım ilgimi çekti. Rastgele Spotify kodlarından oluşan bir çalma listesi yapmak istedim ama kodları tek tek deftere çizmek istemedim, programını yapmayı düşündüm.</p><p>Videolarda kodu çizen kişilerin ilk olarak Spotify logosunu, ardından 23 tane çubuğu çizdiklerini gördüm. İlk denememde çubukların boylarını rastgele çizdim ve bir işe yaramadığını fark ettim. Ardından internetteki kodları inceleyip çubukların boylarına dikkat ettim, gözümle 6 farklı boyda çubuk olduğunu saydım ve 6 farklı boydaki çubuklardan 23 tane çizerek bir kod oluşturmayı denedim. Oluşturduğum rastgele kod yine çalışmayınca internette bulunan birçok Spotify kodunu incelemeye karar verdim ve incelemelerime göre kodların ilk ve son çubukları hep en küçük boydaydı. Bununla bir alakası olabilir mi diye düşünürken Spotify kodlarını benim gibi merak edip araştırmış yazılara denk geldim ve öğrendiklerimi sizlerle paylaşmaya karar verdim.</p><h3><strong>Bir Spotify Kodu Nasıl Çalışır?</strong></h3><p>Örnek olarak The Weeknd, Call Out My Name şarkısının Spotify kodunu ele alalım ve inceleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Gu5QH9KnepueuZrZ5yYauw.jpeg" /></figure><p>Bir Spotify kodu 23 adet çubuk içerir ve her kod Spotify logosuyla başlar. <em>Spotify Codes websitesine göre, tarayıcının okuyabilmesi için ön tarafta Spotify logosunun olması gerekir.</em></p><p>Kodu incelersek çubukların yüksekliklerinin farklı olduğunu görürüz.</p><p><strong>Peki çubukların yüksekliklerini nasıl ölçeriz?</strong></p><p>Spotify yükseklikleri ölçmek için Gray kodunu kullanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*n9eGga0EJEc8zlXPWsFAwQ.png" /><figcaption>Gray kod tablosu.</figcaption></figure><p>Gray kodu, ikili bir sayıyı temsil etmenin alternatif bir yoludur. Yukarıdaki tabloya yakından bakarsanız, Gray kodunun bir seferde yalnızca bir bit değiştirerek çalıştığını görürsünüz.</p><p><strong>Spotify neden Gray kodunu kullanır?</strong></p><p>Gray kodda 3 ile 4 arasındaki fark sadece 1 bittir (010 -&gt; 110). Normal ikili gösterimde bu fark 3 bittir (100 -&gt; 011). Analogdan (belirli bir çubuğun yüksekliği) ikili gösterime geçerken Gray kodlarını kullanmak, yanlış yüksekliği hesaplarsak “yanlış” olan bit sayısını azaltır. Bir çubuğun yüksekliğinin 3 olması gerekir, ancak bunun 3.51 olduğunu hesaplarsak ve 4&#39;e yuvarlarsak, Gray kodundaki bu sayının <em>ikili (binary)</em> gösteriminde yalnızca bir bit farkı olacaktır. Bu, ileride hata düzeltme işlemini daha kolay hale getirir.</p><p>Gelin The Weeknd, Call Out My Name şarkısının spotify kodunu daha iyi inceleyelim ve çubukların yüksekliklerini <strong>Skimage</strong> yardımıyla ölçelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Gu5QH9KnepueuZrZ5yYauw.jpeg" /></figure><p>Görüntümüzün kötü olma ihtimaline karşı iyileştirmemiz gerekir. Görüntüyü yüklemek, gri tonlama yapmak ve ardından ikili kodlamaya dönüştürmek için <strong><em>Skimage</em></strong> kullanırız.</p><p>Ardından, görüntüdeki çubukları algılamamız gerekir. İlk önce görüntüyü etiketleriz ve ardından etiketli görüntü bölgelerinin özelliklerini ölçeriz.</p><p>Tüm çubukların yüksekliklerini hesaplamak için maksimum yüksekliğe ihtiyaç duyarız, bu nedenle çubukların yüksekliklerini ölçüp sıralarız.</p><p>Çubuğun yükseklikleri 0 ile 7 arasında değişebilir; bu nedenle, <strong>sekiz (octal) </strong>olası değer olabileceğini görmüş oluruz.</p><p>Dilerseniz kodu ve yorum satırlarını inceleyebilirsiniz.</p><pre><strong>import matplotlib.pyplot as plt<br>import matplotlib.patches as mpatches</strong></pre><pre><strong>from skimage import io<br>from skimage.filters import threshold_otsu<br>from skimage.measure import label, regionprops<br>from skimage.color import rgb2gray, label2rgb</strong></pre><pre># Spotify kodunu okuruz.<br><strong>image = io.imread(&#39;code.jpg&#39;)</strong><br># Görüntü renkliyse diye gri tonlama yaparız.<br><strong>im = rgb2gray(image) </strong><br># Gri tonlamalı bir görüntüden ikili bir görüntü oluşturmak için kullanılır.<br><strong>thresh = im &gt; threshold_otsu(im)</strong><br># Görüntüdeki çubukları algılamak için etiketleriz.<br><strong>label_image = label(thresh) <br>image_label_overlay = label2rgb(label_image, image=image, bg_label=0)</strong></pre><pre><strong>fig, ax = plt.subplots(figsize=(10, 6))<br>ax.imshow(image_label_overlay)</strong></pre><pre># Görüntüdeki bölgelerin özelliklerini ölçeriz.<br><strong>dimensions = []<br>heights = []<br>for region in regionprops(label_image):<br>    dimensions.append(region.bbox)</strong></pre><pre>#Tüm çubukların boyutunu hesaplamak için maksimum yüksekliği buluruz.<br><strong>max_height = dimensions[0][2] - dimensions[0][0]<br>dimensions.sort(key=lambda x: x[1], reverse=False)<br>for region in regionprops(label_image):</strong><br>	# Çubukların yüksekliklerini görselleştirerek sunarız.<br>    <strong>minr, minc, maxr, maxc = region.bbox<br>    rect = mpatches.Rectangle((minc, minr), maxc - minc, maxr - minr, fill=False, edgecolor=&#39;blue&#39;, linewidth=3)<br>    label = int(((maxr - minr) / max_height) * 8) - 1<br>    plt.text(minc, minr, label, color=&#39;white&#39;)<br>    ax.add_patch(rect)<br>    dimensions.append(region.bbox)<br>ax.set_axis_off()<br>plt.tight_layout()<br>plt.show()</strong></pre><pre># Referans: <a href="https://iiaishwarya.medium.com/">https://iiaishwarya.medium.com/</a></pre><p>Kodu çalıştıralım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fGtjBPwHs2S4NB8Nl1nyg.png" /><figcaption><strong>Çubukların yükseklikleri: [0, 4, 2, 5, 2, 5, 7, 3, 1, 3, 6, 7, 0, 4, 2, 2, 2, 3, 1, 3, 2, 4, 0]</strong></figcaption></figure><p>Sonucu inceleyince, maksimum çubuk yüksekliğinin 7 olduğunu görürüz. Ayrıca Spotify logosunun çapının yüksekliği de 7&#39;dir ve bu durum, bütün çubukların yükseklik oranlarını oluşturmayı kolaylaştırmaktadır. Baştaki ve sondaki çubukların yükseklikleri 0&#39;dır ve ortadaki çubuğun yüksekliği 7&#39;dir.</p><p><strong>Kısacası bir Spotify kodu 23 çubuktan oluşur. İlk ve son çubuğun yüksekliği her zaman 0&#39;dır ve 11. indexteki, yani ortadaki, çubuğun yüksekliği her zaman 7&#39;dir. </strong>Buna göre çubukların sadece 20 tanesi gerçekten bilgi içerir, bu da kodlanabilecek <strong>8²⁰</strong> bilgi parçası olduğu anlamına gelir.</p><h3><strong>Spotify Kodu Oluşturan Program Nasıl Yapılır?</strong></h3><p>The Weekend, Call Out My Name şarkısındaki çubukların yüksekliklerini öğrenmiştik.</p><p>Çubukların yükseklikleri 0&#39;dan 7&#39;ye kadar değiştiğinden görselleştirebilmek için 7&#39;sine de ihtiyaç duyarız. Logonun çapı da 7 olmalı, yani en yüksek çubuğun yüksekliğiyle aynı olmalı, bu nedenle logonun çapını baz alarak 7 farklı yüksekliği buldum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*Fpigav1PXepDO98BN2BTSA.png" /></figure><p>Ardından çubukların yüksekliklerinin olduğu listeyi yani kodu görselleştirebilmek için yukarıda kırptığım resimleri kullanmaya karar verdim.</p><p>Kodu görselleştirmek için Python’ın <strong>OpenCV </strong>kütüphanesini kullandım. <em>Görselleştirmek için Numpy, Pandas, Matplotlib de kullanılabilir.</em></p><pre># OpenCV kütüphanesini yükleriz.<br><strong>import cv2<br>import random</strong></pre><pre><strong>class SpotifyCode:</strong><br>    # Çubukların resimlerini okuruz. Yüksekliklerine göre adlandırdım.<br><strong>    zero = cv2.imread(&#39;images/0.jpeg&#39;)<br>    one = cv2.imread(&#39;images/1.jpeg&#39;)<br>    two = cv2.imread(&#39;images/2.jpeg&#39;)<br>    three = cv2.imread(&#39;images/3.jpeg&#39;)<br>    four = cv2.imread(&#39;images/4.jpeg&#39;)<br>    five = cv2.imread(&#39;images/5.jpeg&#39;)<br>    six = cv2.imread(&#39;images/6.jpeg&#39;)<br>    seven = cv2.imread(&#39;images/7.jpeg&#39;)<br>    logo = cv2.imread(&#39;images/logo.jpeg&#39;)</strong></pre><pre><strong>    img_list = [logo]<br>    random_lst = list()</strong></pre><pre><strong>    def __init__(self, song_name):<br>        self.song_name = song_name</strong></pre><pre># Listeyi görselleştirmek için gereken metot.<br><strong>    def visualize_list(self, code_list):</strong><br># Kod listesini resimlere göre görselleştirmeye yarayan döngü.<br><strong>        for item in code_list:<br>            num = int(item)<br>            if num == 0:<br>                self.img_list.append(self.zero)<br>            elif num == 1:<br>                self.img_list.append(self.one)<br>            elif num == 2:<br>                self.img_list.append(self.two)<br>            elif num == 3:<br>                self.img_list.append(self.three)<br>            elif num == 4:<br>                self.img_list.append(self.four)<br>            elif num == 5:<br>                self.img_list.append(self.five)<br>            elif num == 6:<br>                self.img_list.append(self.six)<br>            elif num == 7:<br>                self.img_list.append(self.seven)</strong><br>        # Resimleri yatay olarak birleştirmek için hconcat&#39;ı kullandım. <br><strong>        code = cv2.hconcat(self.img_list)<br>        cv2.imshow(&#39;SpotifyCode.jpg&#39;, code)<br>        cv2.waitKey(0)</strong></pre><pre><strong>song = SpotifyCode(&quot;Call Out My Name&quot;)<br></strong># Call Out My Name şarkısının kodlarını girdim.<strong><br>song.visualize_list([0, 4, 2, 5, 2, 5, 7, 3, 1, 3, 6, 7, 0, 4, 2, 2, 2, 3, 1, 3, 2, 4, 0])</strong></pre><p>Kodu çalıştırdığımızda telefondan okutabilirsiniz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*0dK2z9QbJxHagAm_3_4kBQ.png" /></figure><h3><strong>Rastgele Spotify Kodu Oluşturabilir Miyiz?</strong></h3><p>Aslında bu konuyu araştırma sebebim bu soruydu. TikTok’ta gördüğüm akımda insanların defterlerine rastgele kod çizdiklerini düşünmüştüm ancak bu konuyu araştırırken böyle olmadığını öğrendim.</p><p>Rastgele bir kod dizisi oluşturmak için SpotifyCode sınıfına şu metotu yazdım:</p><pre><strong>def create_random_code(self):</strong><br>        # 0-7 aralığında 20 random sayı oluştururuz ve oluşturduklarımızı random_lst isimli bir listeye ekleriz.<br>        <strong>self.random_lst = [random.randint(0, 7) for x in range(20)]</strong><br>        # Listenin ilk ve son çubuklarının yükseklikleri 0 olmalıdır.<br><strong>        self.random_lst.insert(0, 0)<br>        self.random_lst.append(0)</strong><br>        # Listenin 11. indexi 7 olmalıdır.<br><strong>        self.random_lst.insert(11, 7)<br>        return self.random_lst</strong></pre><p>Ardından sınıf dışında bu metotu çalıştırdım.</p><pre><strong>song = SpotifyCode(&quot;Random Spotify Song&quot;)<br>random_code = song.create_random_code()<br>song.visualize_list(random_code)</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*aEe8CQueGyjxIXIpybZl0A.png" /></figure><p>Kurala uygun kod oluşturmama rağmen oluşturduğum kod herhangi bir şarkıyı ya da bir albümü açmadı. Bunu yaptıktan sonra rastgele bir kod yapmak için gereken tek şeyin bir sayı dizisi olmadığını, başka bilgilere de ihtiyaç olduğunu fark ettim. <em>Kısacası çizerek rastgele bir kod oluşturmanın kolayca mümkün olmadığını gördüm.</em></p><p>Daha detaya girelim.</p><p>Spotify’da bir şarkıyı veya bir albümü URI’si ile taratabilirsiniz. Aynı zamanda bir şarkının veya bir albümün linkini tarattığınızda da bir URI’si olduğunu görürsünüz.</p><p>Örneğin Call Out My Name şarkısının URI’si şudur:</p><blockquote><strong><em>spotify:track:2pWvO4JL7WODQHLKV0WD3M</em></strong></blockquote><p>Ayrıca Call Out My Name şarkısının bulunduğu albümün de bir URI’si vardır.</p><p>Spotify URI’leri şu şekildedir:</p><blockquote><strong><em>spotify:&lt;medya türü&gt;:&lt;22 karakter&gt;.</em></strong></blockquote><p>22 karakter, 0–9 sayıları, a-z ve A-Z karakterleridir. Bu, her karakter için 10 + 26 + 26 = 62 olasılık olduğu anlamına gelir. Bu nedenle, Spotify URI’lerinin potansiyel sayısı <strong>62²²</strong>’dir.</p><p>Yukarıda Spotify şarkılarının kodları hakkında konuşurken kodlanabilecek <strong>8²⁰</strong> bilgi parçası olduğundan bahsetmiştik. <strong>Peki 63²² bit URI’yi 8²⁰ bit barkoda nasıl dönüştürürsünüz?</strong></p><p>URI’de barkodda olduğundan katbekat daha fazla bilgi vardır.</p><p>Bir Spotify URI’si girdiğinizde, Spotify tarafından bir “<strong>medya referansı</strong>” oluşturulur. Bu <strong>medya referansı</strong> 37 bit uzunluğundadır ve bir barkodu belirli bir URI’ye bağlayan anahtardır. Bir barkoddan bir medya referansını çıkardıktan sonra hangi URI’ye karşılık geldiğini belirlemek için Spotify’ın veritabanına bakılır.</p><p>Araştırmalarımdan sonra medya referansının nasıl oluşturulduğunu anlayamadım ama bunun veritabanında kullanılan bir yöntem olduğunu fark ettim.</p><p>Kendi Spotify kodumu oluşturmayı umuyordum, ancak tam olarak yapamadım. Rastgele de olsa bir kod oluşturmak için bir gruba karşılık gelen <strong>URI, medya referansı</strong> ve <strong>Spotify kodu</strong> üçlüsünü oluşturmak gerekiyor ancak ihtimallerin fazlalığını düşünürsek kolay bir iş değil.</p><p>Basit bir akımdan yola çıkarak çok fazla şey öğrendiğim için rastgele kod oluşturmayı araştırmaya devam edeceğim.</p><p><strong>Kaynaklar:</strong></p><p><a href="https://boonepeter.github.io/posts/2020-11-10-spotify-codes/">https://boonepeter.github.io/posts/2020-11-10-spotify-codes/</a></p><p><a href="https://levelup.gitconnected.com/spotify-codes-and-how-they-work-664f4e4b8489">https://levelup.gitconnected.com/spotify-codes-and-how-they-work-664f4e4b8489</a></p><p><a href="https://stackoverflow.com/questions/62121301/encoding-spotify-uri-to-spotify-codes/63479041#63479041">https://stackoverflow.com/questions/62121301/encoding-spotify-uri-to-spotify-codes/63479041#63479041</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af4a96d7f434" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>