<?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 Jesse Gray on Medium]]></title>
        <description><![CDATA[Stories by Jesse Gray on Medium]]></description>
        <link>https://medium.com/@JesseGray?source=rss-e7c16e2e4839------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8T3uhdsH-8ME0hXNm7KnAg@2x.jpeg</url>
            <title>Stories by Jesse Gray on Medium</title>
            <link>https://medium.com/@JesseGray?source=rss-e7c16e2e4839------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:57:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JesseGray/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[How to Break Things on Purpose:]]></title>
            <link>https://medium.com/@JesseGray/how-to-break-things-on-purpose-9a8f2beb5f29?source=rss-e7c16e2e4839------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a8f2beb5f29</guid>
            <dc:creator><![CDATA[Jesse Gray]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 22:58:39 GMT</pubDate>
            <atom:updated>2025-06-12T17:57:37.761Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Break Things on Purpose: Computer Vision Applied to Strategic Competition and Dynamic Graphs.</h3><p>In an industry that relies on exacting logic, the term ‘disruptor’ has a singular seductive quality. Like many technological tools, computer vision, or CV, has the capacity for disruption on a massive scale. Widely used for medical imaging and autonomous vehicles, we still haven’t reached the limits of its versatility. One recent proposal in Australia even uses computer vision to protect beach-goers from riptides and sharks and can recognize and alert safety personnel to unattended children and struggling swimmers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*bFM2WAO4Z9Zt9v6rvRZdHg.png" /><figcaption>Bruce the Shark from ‘Jaws’ (Photo : Academy of Motion Picture Arts and Sciences)</figcaption></figure><p>In our case, CV is being used for a somewhat less altruistic cause. The original intent was to develop a better understanding of the benefits and limitations of different CV architectures while also gaining insight into highly dynamic models that can be difficult to interpolate. Game theory and adversarial constructs have proved to be useful in solving challenges related to NLP-based LLMs, and these principles could translate to CV as well.</p><p>The impetus for this research wasn’t completely random. Late one evening while moonlighting at a local bar, watching the sharks circle the pool table, it occurred to me that a pool game, specifically the cue sport “eight-ball”, could be an interesting way to document patterns of entropy devolving from organized systems, as well as chart probabilities of success for a given approach. Tracking each ball’s progression and feeding those vectors into a predictive model could help narrow down the most reliable outcome for each setup. As a bonus, segmentation could also shed light on trends and inferences that might not be obvious without modeling and/or reinforce learned and intuited relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*Y6EN0crx4a3AFIP6-Qk0IA.jpeg" /><figcaption>✨Magic 8 Ball ✨</figcaption></figure><p>Not entirely sure that the concept had legs, I decided that training the CV on the initial contact or ‘break’, would give the most immediate payback in terms of raw data. It also represented the most interactive moment in play, since all objects except for the cue ball begin isolated within an organized boundary. For the preliminary modeling, I established a sample of ten breaks as a baseline and used OpenCV in a Google Colab notebook to process them into individual frames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Qs09F7J1LZqjIuGHuSPiKA.png" /><figcaption>Code cell randomly shuffles frames, saves them to a ‘content’ file, and destroys all windows</figcaption></figure><p>One plus about using pool balls’ unique properties to illustrate vectors is the ease by which they can be identified: by color and number and as solid or stripe. The polarity of the cue ball and eight ball also creates an inherent tension and bias that activates and informs the shape of the results, however, the speed and velocity unleashed by kinetic force create sudden unpredictable movements that can be difficult to track. This downside is one area where models like this could have a positive impact on the bigger picture of CV performance. Improving models’ reaction time and ability to decipher small movements could have beneficial implications upstream in product development, potentially in VR and augmented reality applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*hfVRgKlOPsd1pucvYUQf5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*y_WJnLxy7M0VAE4FTTtI2Q.png" /><figcaption>Bounding boxes drawn using LabelImg, an open-source data annotation tool.</figcaption></figure><p>After annotating the first batch of 300 frames with bounding boxes in LabelImg they were ready to be loaded into a YOLO model. LabelImg defaults to saving the image information in a Pascal/VOC format so at least one set of frames had to be converted from an XML to a TXT file for use in the object detection model. After some trial and error, I was able to streamline the process and accrue enough frames to train and validate the model.</p><p>A common phrase offered by experienced pool enthusiasts when giving advice is “Pool is just math”. There are parallels you can draw between pool and computational thinking and while not perfect, there are similarities. One of the most obvious is the mandate to break down a bigger problem into smaller ones. Maybe you can’t sink all the balls at once, but it is possible to manipulate them sequentially to that effect. Likewise, vectors, differentials, and tangential geometry are useful in successfully mapping out placements in a 3-dimensional field, even though most of the interactions can be envisioned as taking place on a 2D plane with x and y axes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dtr7Sot3tWysURIBup7npw.jpeg" /><figcaption>Dr. Martin Luther King Jr. shooting pool in 1966. Courtesy Bettman/Getty Images</figcaption></figure><p>A less obvious way in which the dynamics of pool relate to math, specifically computer math, is that they are physical implementations of graph diagrams at work. Even though a ball may appear to collide with multiple others simultaneously, there is an order not immediately discernible to the naked eye. Each instance of contact acts as a logic gate, defining the scope of the next iteration. Following the precise progression by which energy is absorbed and distributed is only possible with the aid of enhanced instruments. The arrow of time follows the same rule as directed graphs in computer science- the direction from one node to the next cannot be reversed. It’s not unrealistic to think that by being able to model complex relationships between pool balls, we can also gain insight into dynamic graphing systems. What if we could reverse engineer the node code from the ball break?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cO7srS5xVIGOqr6ZbMgI-g.png" /><figcaption>Diagram of a directed graph</figcaption></figure><p>The starting point for the break is also arrow-shaped, a triangular matrix called a pyramid that follows a few loose rules but otherwise leaves many outcomes up to chance. In keeping with the random sorting of the variables, the make-up of the pyramid for each break followed only four rules: the eight ball is in the center, the 1 ball leads and alternating stripes and solids around the perimeter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*D9oU4llp8-B6A0pnpANbFw.png" /><figcaption>Appleton’s Spiderweb by u/CreeDorofl via Reddit</figcaption></figure><p>There’s also the idea of inverse physics. It’s worth drawing the parallel that computer functions, like the laws of physics, work the same way backward and forwards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*u6t83nCGaR0TD8Gi.gif" /><figcaption>Neural Network — Backpropogation Diagram by machinelearningknowledge.ai</figcaption></figure><p>Like many games, cue-sports can be considered a placeholder for interpersonal and tribal conflict, and a way to maintain the skills humans acquired for hunting, attacking, and invariably, for defense as well. The ability to strike accurately far outweighs physical strength, and in some ways, there is a leveling of the playing field when it comes to the mechanics of winning a game of pool. Pool-playing robots may make every shot, but you would be hard-pressed to call the pace a hustle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*ZzJUjFj-rLzM6Vfc6T25cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*-106wTsKF0RIiJXhun_VKg.gif" /><figcaption>placeholder for pyramid chart</figcaption></figure><p>By training the model on the sequence of shots we started to get a prediction that could then be analyzed on 2 fronts: a data visualization that could be illustrated as an animated scatterplot, as well as a directed graph plot. Like any good question, this answer only sparks more questions. How could this dynamic be used to anticipate real-world competitive outcomes, and how can these characteristics be applied to directed graphs in the context of vector database architecture and grounding searches?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ypxut67DpoHUV4LSpVKOWg.jpeg" /><figcaption><strong>‘The Night Cafe’ by Vincent Van Gogh</strong></figcaption></figure><p>At a certain point I was able to automate some of the object detection and data annotation tasks, but at the end of the day, a lot more data is needed to make any definitive claims about how the break affects the game. I am curious about the arc of the story, however, and it’s a good excuse to get better at my break.</p><p>Even though my earliest memories of the game are at the VFW and country store, there is an undeniable elegance and beauty to pool. The act of sending a smooth ball rolling across the felt, scattering the pyramid with that un-mistakeable sound, potentially deciding the fate of stripes or solids-not unlike 1 &amp; 0’s-in that first strike. If we can crack that code we might stand a chance against the robots. The pool-playing ones at least.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gzTmJSDEsFPSH-iW.jpg" /></figure><p>part 1 of 2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a8f2beb5f29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aesthetic Dysphoria: Asking For Directions in the Uncanny Valley]]></title>
            <link>https://medium.com/@JesseGray/aesthetic-dysphoria-asking-for-directions-in-the-uncanny-valley-c323e3b79776?source=rss-e7c16e2e4839------2</link>
            <guid isPermaLink="false">https://medium.com/p/c323e3b79776</guid>
            <category><![CDATA[uncanny-valley]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Jesse Gray]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 17:26:15 GMT</pubDate>
            <atom:updated>2025-08-27T16:26:35.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*b7pcop1EUhYqYGAYKdS00w.png" /></figure><p>In the rush to be the brand name of artificial intelligence, risks underlie current models’ abilities to become ubiquitous in our society. One of the pervasive qualities of AI-generated images and film is the so-called ‘uncanny valley’ effect, loosely translated from the original Japanese <em>bukimi no tani. </em>This phrase originated with roboticist Masahiro Mori in 1970 to describe the sense of repulsion or aversion to objects and machines that are engineered to resemble or perform in a human-like fashion. While it is most often associated with visual media, it’s been well-documented in other fields as well, including humanoid robotics, and may may even explain the emotional volatility directed toward self-driving cars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*mYuZKomKmLFZ0vFhDYHG0w.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/User:Smurrayinchester">Smurrayinchester</a> — self-made, based on image by Masahiro Mori and Karl MacDorman</figcaption></figure><p>One potential cause of this effect is a mismatch between stimuli and response that occurs in the parietal regions of the brain, the location of the mirror neurons, leading to a physical reaction within the sympathetic nervous system. This in turn raises cortisol and adrenaline levels in a fight, flight, freeze response. This explanation suggests that there may be parallels with other involuntary responses to external physical stimuli like cognitive dissonance, and misophonia, where repetitive sounds or movement can trigger spontaneous anger and rage. Other threads connect it to conditions like anaphylaxis and Irukandji syndrome, where an acute allergic reaction or poisoning can cause feelings of impending doom before any physical effects present themselves. Strobe-induced epileptic seizures and arc flash, where welders experience a microsecond of high-intensity light before their visor darkens, leading to episodes of intense negative emotions are other examples that encompass similar processes. Like a black box, the output is not easily determined from input, but has an immediate effect in the real world.</p><p>A not insignificant amount of research and development has been invested into studying the effects of the uncanny valley in film and animation-3d modeling in particular, but there has been less focus on how these reactions relate to other forms of media using algorithms to approximate interpersonal observation and interaction. With AI image generators becoming integrated into social media, art, and design, there is reason to be concerned about the potential of stress-inducing qualities inherent in LLM-driven writing, speech, music, and chat models- possibly even with automated vehicles..</p><p>Which leads to the question: does regularly interacting with a generative pre-trained model instill a measurable sense of disquietude?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*sTZBxKZrsRAiynMBq7aF4w.png" /><figcaption>The Thatcher Effect</figcaption></figure><p>It might not be the most dramatic or dangerous example of generalized artificial intelligence backfiring, but the off-putting quality of the uncanny valley could be a substantial obstacle. If not analyzed and effectively countered, even the most advanced generative pre-trained models could soon go the way of Zoltar.</p><p>This project explores some of these questions by examining several datasets associated with the ChillsDB database (available <a href="https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/ADLSZE">here</a>) a collection of self-reported responses to chills-inducing stimuli in media, including YouTube videos and Reddit threads. It is a fascinating collection recording the phenomena of chills induced by various media sources, with intensity, frequency, and other metrics documented rigorously across a sample size of over 600 participants. An in-depth discussion of the rigorous process used to determine the nature and differentiate between ‘goosebumps’ and ‘psychogenic shivers’ is available <a href="https://www.nature.com/articles/s41597-023-02064-8">here</a>.</p><p>In the initial phase of this project, I chose to focus on film, music, and speech to comb through each CSV to see if there were commonalities between different mediums, any ‘syn-aesthesia’, at work, such as the feeling of ‘frisson’ in music correlating to being moved by an inspiring speech, or a thread that resonated across age, gender, or social strata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*ykjQ7qbeKFK6X_Pir4m0fA.png" /><figcaption>Sample of combined dataset</figcaption></figure><p>Upon digging deeper into the initial exploratory analysis, I found that patterns within each of the datasets were more compelling than the comparisons between them. I had not anticipated the measurable differences associated with pleasure difference and the positive versus negative effect of the chills-inducing stimuli. The concept of polarity played a crucial role in the story of how and why we subliminally respond in both sublime and spine-tingling ways to certain elements that register beyond merely observing the actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*w3-9hjHy5mMNJ317kpNrnw.png" /><figcaption>Scatter plot graph showing emotion drift, calm difference, and pleasure difference in combined dataset.</figcaption></figure><p>By performing some routine sentiment analysis, I validated this assumption to establish a working baseline between “good” chills and “bad” chills, it dawned on me that these preliminary functions could be relevant to current questions surrounding general artificial intelligence. Once developed further, they could conceivably be applied to studying how AI-augmented products like Stable Diffusion or Gemini affect their users. Determining the aesthetic impact of interacting with emerging technologies could assist in their adoption by society at large.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*r03_Fgy572b3wm3MSjt0tg.png" /><figcaption>Scatter plot showing Pleasure Difference variable in all three datasets.</figcaption></figure><p>While the source material is readily available at chills DB.com, the pure expression of the responses allows for extrapolation and engineering of features that perform better than any individual feature run against predictive models. In the final combined dataset, a battery of predictive models for each of the sentiment features, along with quick visualizations reinforce this abstracted approach while illustrating an unexpected issue. Because the responses vary so widely (as in most human sample groups), the outliers make predictions more difficult, but including them gives a more accurate picture. Allowing for more data results in a more tuneable model, which leads to deeper, more fine-grained analysis. This analysis, in turn, serves to identify less apparent trends and temper confirmation bias. Keeping these variables gives a bigger picture that might have been lost if the data was pared down to only the information most readily identifiable as relevant.</p><p>Although this research might not be thrilling enough to cause many chills in and of itself, it does offer a peek through the keyhole at what constitutes an expanding universe of opportunities to examine the interface between human and machine minds. By extracting the ‘Chill Rating’ and other reproducible predictive modeling features, a decent standard can be compiled to compare against media augmented or created by AI. With enough testing, these models will produce outcomes that more closely resemble the actual data, allowing the effects of the uncanny valley, in theory, to be minimized or neutralized, and giving products that access these transformative technologies a chance to be more accessible and widely adopted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*3OMFihxg5n2BF2uV84HdsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*naeWn151Qdc7NLCyykUT3A.png" /></figure><p>Assuming there is a workaround, the next step is to examine other technologies that might fall under the same umbrella. If correlations exist between AI applications, they can be used to inform best practices as well as support ethical considerations. Some of the areas where AI can be readily applied happen to overlap with acquired skills and knowledge highly prized by humans, creating tension between developers of disruptive technologies and areas of enterprise and development that could be supplanted or supported.</p><p>Many engineers and programmers might say that AI is great for art and writing, but will never be a substitute for business acumen or where human safety is at risk. A sculptor or writer might take issue with machine learning tools&#39; ability to create meaningful works of art but have no problem with self-driving transportation, and automated stock trading. There may be inherent differences in the way different brains are wired to experience adverse effects, or it could be attributed to a saturation of AI tools within the programming and developer community that lessens the response in general. Being able to map out the topography of our emotional responses to machines could help us have more empathy for the tools we use, and maybe even help develop future AI models’ emotional intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*1fv71RCv3-HXW071slSRnQ.png" /><figcaption>No machine-readable author provided. <a href="https://commons.wikimedia.org/wiki/User:Gengiskanhg">Gengiskanhg</a> assumed (based on copyright claims).</figcaption></figure><p>Every technology faces the challenge of being relevant, and of being replaced by something more relevant. A fundamental issue that could undermine the ability of our current models to be incorporated as functional tools is the barrier of overcoming aversion induced by the uncanny valley effect. This research presents the idea that by being able to determine the physical effects of the media we consume, we can engineer models that are more compatible with human psychology and proprioception by being more palatable to measurable metrics of aesthetics. Even if the best predictive models can’t foresee the future, hopefully, they can point us in the right direction.</p><p>Repository for notebooks including datasets can be found at:</p><p><a href="https://github.com/JessemanGray/Syn-Aesthetics/tree/main">GitHub - JessemanGray/Syn-Aesthetics: Analysis and predictive modeling of chill inducing stimuli in film, speech, and music.</a></p><p>ChillsDB url:</p><p><a href="https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/ADLSZE">https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/ADLSZE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c323e3b79776" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>