<?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 Adolfo Ramirez-Aristizabal on Medium]]></title>
        <description><![CDATA[Stories by Adolfo Ramirez-Aristizabal on Medium]]></description>
        <link>https://medium.com/@adolfo.ramirezz?source=rss-66166a2d9d21------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pnWMrDFfdYhGrv8o-0zkNw.jpeg</url>
            <title>Stories by Adolfo Ramirez-Aristizabal on Medium</title>
            <link>https://medium.com/@adolfo.ramirezz?source=rss-66166a2d9d21------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:41:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adolfo.ramirezz/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[The Director’s New Lens: Empathic AI for Filmmaking]]></title>
            <link>https://medium.com/labs-notebook/the-directors-new-lens-empathic-ai-for-filmmaking-7b69f782dc3b?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b69f782dc3b</guid>
            <category><![CDATA[biosensing]]></category>
            <category><![CDATA[wearables]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ng-ui-ux]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 16:07:48 GMT</pubDate>
            <atom:updated>2025-10-27T20:57:56.026Z</atom:updated>
            <content:encoded><![CDATA[<p>Co-Authors: <a href="https://medium.com/u/a6106bb6cb61">Manaswi Saha</a>, <a href="https://medium.com/u/2b1c4484034d">Mirjana Spasojevic</a>, <a href="https://medium.com/u/907b1b983c45">Asher Naghi</a>, <a href="https://medium.com/u/58781459ee6e">KellyGlass</a></p><p>Note: This post continues the discussion on bio-sensing for audience insights begun [<a href="https://medium.com/labs-notebook/what-we-say-think-and-feel-ai-biosensings-transformative-capabilities-for-creators-b02fbbc7df96">here</a>]. We’ll illustrate how it currently works through a recent study that we conducted.</p><p><em>Imagine you invited a test audience to an exclusive early preview of a new film. As they enter the theater, they aren’t just handed a ticket, but also a biosensing headset. “These aren’t for audio”, you explain. “They’re new tech, designed to help us understand how the story truly connects with you, moment-by-moment.” The lights dim and the movie begins — a visual feast, a rollercoaster of emotions — you hope. Some of the film works great, but as usual, not all of it will land exactly as intended. You’re keen to understand their reaction deeply, and when the audience’s viewing ends, that’s when your viewing — of the Neurocinematics readout begins!</em></p><p>Instead of just a clipboard with survey responses, you’re also shown maps of the audience members’ cognitive/emotional journey. You see the data from the headset, visualized as a timeline: a clear peak of excitement during the frantic chase scene, a dip in engagement during a slow dialogue moment, and a sharp spike of amusement at an unexpected punchline. In that moment, you realize you haven’t just watched a movie; you’ve been part of shaping its future. Your genuine, unspoken reactions are now a key part of the creative design process. This is the promise of Neurocinematics, a new lens by which creatives can incorporate the test audience experience into their editing process.</p><p>In this article, we dive deeper into Neurocinematics, including what we’ve learned from a study exploring the potential of next-generation biosensing to understand human experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9IaMnZbGH_D9CVaG6Wauw.jpeg" /><figcaption><strong>Figure 1:</strong><br> Novel AI and sensing technology enabling new insights into the audience viewing experience.</figcaption></figure><h3><strong>Modern take on AI-driven Neurocinematics and Biosensing</strong></h3><p>Until recently, <a href="https://www.berghahnjournals.com/view/journals/projections/2/1/proj020102.xml">Neurocinematics</a>, the study of objectively measured brain responses to films, has required bulky equipment in clinical laboratory settings, not well suited to providing insights in the engagement, attention, and emotional responses one might expect in more natural movie-watching context. Now, as less obtrusive, consumer and <em>prosumer</em> grade biosensing devices have emerged we can explore Neurocinematics in settings that much-more closely resemble viewers’ natural environments. This new generation of sensing devices of neurotech, ubiquitous wearable and location-based sensors, like smartwatches and in-device cameras, giver rise to a rich, multimodal data stream that can be collected without over-intrusive disruption of the viewer’s viewing experience:</p><ul><li><strong>Facial Expression Analysis:</strong> Computer vision (like <a href="https://www.hume.ai/">Hume.AI</a>) detects and classifies emotional expressions, offering a direct window into affective states.</li><li><strong>Electrophysiological Signals:</strong> <a href="https://www.garmin.com/en-US/blog/health/garmin-health-research-glimpse-supporting-citizen-science/#:~:text=Smartwatch%20data%20aggregation%20and%20transfer,between%20health%2C%20happiness%20and%20wellbeing.">Ubiquitous biosensing</a> now captures electrical measurements (e.g., skin conductance for emotional arousal, brain activity for physiological arousal, stress, and cognitive states).</li><li><strong>Heart Rate &amp; HRV:</strong> <a href="https://info.angelfishfieldwork.com/market-research-fieldwork-blog/wearables-qualitative-market-research">Indicators of physiological arousal</a>, stress, and cognitive load.</li><li><strong>Eye-Tracking:</strong> Precisely <a href="https://www.tobii.com/lp/consumer-research">tracks where attention</a> is focused on screen, moment-by-moment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLZEovjA1dWj6BMWbqi4QQ.jpeg" /><figcaption><strong>Figure 2:</strong><br> Left: Traditional methods with bulky equipment that are primarily situated in experimental/medical scenarios. Right: New consumer grade sensing technologies enable the study of viewing experience in more ecologically valid environments.</figcaption></figure><p>However, the ability to collect all this sensor data doesn’t directly translate into the ability to make sense of all that data for the filmmaker who is looking for insights into audience’s cognitive/emotional engagement with the film. This is where the transformative power of modern AI comes to the forefront. AI can serve as the crucial interpreter for complex, often noisy data from these diverse biosensors. Intelligent analysis systems are especially important for <em>multimodal fusion</em>: AI algorithms can seamlessly combine data across channels — from brain signals to facial expressions and heart rate — to construct a granular map of the audience’s internal state. As AI and Machine Learning tools and algorithms continue to grow, the technology supports an increasingly sophisticated multimodal fusion, which minimizes reliance on any single, noisy signal, yielding a more confident and accurate picture of human reactions with remarkable temporal precision far beyond traditional scene-level self-reports.</p><p>For example, such technology would leverage a higher-level AI reasoning model that analyzes both content context (e.g., script humor, visual complexity analyzed by generative AI) and biosensing-derived audience response. This model can “reason” about their relationship, for instance: “the script’s intended humor reflected in audience showing a distinct spike in joy and engagement” — confirming the joke’s success. The output can shift away from just raw data to interpretable insights, empowering creators to more easily grasp and optimize content reception through data-informed creative decisions.</p><h3><strong>Study: Technical feasibility of assessing comedic impact using biosensing</strong></h3><p>While we find this vision is compelling, the real value can only be assessed when theory is put into practice. We conducted a proof-of-concept study to explore a tangible use case: The question is, can modern biosensing tools identify and measure an audience’s moment-by-moment reaction to specific film moments like successful jokes? How would this new approach compare to post-screening self-reports?</p><p>We invited 12 participants to watch two short films with contrasting tones: a lighthearted animated film “The Bad Guys: A Very Bad Holiday” and a more serious, heart-felt live-action piece “Closing Dynasty”. As they watched, we captured two data streams:</p><ul><li><strong>Facial Expressions:</strong> Using <a href="https://www.hume.ai/"><strong>Hume.AI</strong></a> to infer emotional states in real-time.</li><li><strong>Brain Activity (EEG):</strong> Using an <a href="https://www.emotiv.com/products/epoc-x"><strong>Emotiv Pro</strong> headset</a> to track cognitive engagement.</li></ul><p>After the movie, we collected feedback through self-report questionnaires and interviews, asking for overall ratings and scene-by-scene recollections. The goal was to directly compare what people said about the experience with what their biosignals revealed during it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzlTZJ0J4ZnRkOfAgz2jdw.jpeg" /><figcaption><strong>Figure 3:</strong><br> Study Setup: Participant wearing a headset seated in front of a TV and a camera, with their facial expression and brain signals tracked.</figcaption></figure><h4><em>Validating the Approach</em></h4><p>Before seeking nuanced insights, we first conducted a high-level reality check, ensuring that participants’ self-reports about the films generally aligned with their recorded biosignals: Subjects gave higher ratings for the live-action film (matching its public IMDb score) and expected tonal labels — “positive” for the animation, “somber” for the live-action film. We observed that this was mirrored in our sensor data: higher average positive facial expressions for the animated film and greater overall EEG engagement for the highly rated live-action film. This alignment confirmed that our methodology credibly captured the audience’s reported experience.</p><h4><em>Beyond ‘What’ to ‘When’: Pinpointing the Punchline</em></h4><p>Here is where the “new lens” becomes powerful. A viewer might generally call a scene “engaging,” but cannot pinpoint <em>when</em> their engagement peaked. Instead of a single opinion covering an entire scene, biosensing can get high-resolution, second-by-second data.</p><p>This granularity is a key differentiator. For example, participants reported high engagement for one animated film scene. Our EEG data [See Figure 4] showed a distinct engagement spike precisely at the end, aligning with a key punchline delivery. This connected a general opinion (“<em>that scene was good</em>”) to a specific, successful creative choice (“<em>the dialogues were entertaining</em>”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmDHCsc4ztUEq2l_dZ-36w.png" /><figcaption><strong>Figure 4:<br> </strong>Self-report demonstrates a peak in Scene 4 of “Bad Guys: A Very Bad Holiday” animated short and biosensing allows us to zoom in and pinpoint that it was time aligned with a delivery of a joke.</figcaption></figure><h4><em>Identifying Fleeting Emotional Moments</em></h4><p>This precision also helps detect emotional nuance. The mostly somber live-action film contained only a few jokes. Could our system identify these brief, contrasting moments of humor?</p><p>Our facial expression data provided a clear answer. Tracking “Joy” expressions revealed sharp spikes significantly above the emotional baseline exactly when these jokes were delivered [See Figure 5]. This demonstrates the ability to identify impactful micro-moments likely lost in a broad, post-viewing film summary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ch-mdFC_X56yLlcjluMK-w.png" /><figcaption><strong>Figure 5:<br> </strong>Tracking “Joy” activation from facial expressions show alignment to key jokes in “Closing Dynasty” live-action short film.</figcaption></figure><h4><em>The Real Power: Fusing Multiple Sensor Data for Confident Insights</em></h4><p>Perhaps the study’s most exciting finding was the advantage of combining data streams. An insight from a single sensor can be misleading — a smile can signal nervousness, not just joy; high brain engagement can stem from confusion, not just immersion.</p><p>By fusing our multiple data streams, we built a far more robust picture. For example, a peak in EEG engagement indicated the audience was paying close attention. Layering facial expression data revealed this attention peak coincided with a peak in detected “Joy.” Cross-referencing this with the film’s content [See Figure 6], the entire event perfectly aligned with a specific punchline. This synthesis provides the context needed for a confident inference, allowing us to assess not just that a joke was told, but that it successfully landed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*624wPocQWu0ro6FbjitcFg.png" /><figcaption><strong>Figure 6:<br> </strong>Combining sensing from facial expressions and brain signals give confidence towards avoiding false positives.</figcaption></figure><h3><strong>Path forward: What does it mean for the future?</strong></h3><p>Our study confirms that the “director’s new lens” provided by biosensors isn’t science fiction; it’s an emerging reality. While this proof-of-concept is a promising first step, it points toward a much larger opportunity. The future of creative analytics lies in a powerful synthesis combining Generative AI’s ability to understand <em>content</em> with biosensing’s ability to let us observe the <em>human experience</em>. Together they can support a level of automated experience analysis that would transform the way insights about audience reaction can be produced.</p><h4><em>The Vision: A Synthesis of Content and Experience</em></h4><p>Imagine two powerful data streams feeding into a single, intelligent system.</p><ol><li><strong>Gen AI for Content Understanding:</strong> On one side, AI models analyze the content itself. Large Language Models deconstruct scripts for narrative structure and dialogue sentiment. Computer vision analyzes shot composition, color palettes, and on-screen action. Audio models assess the impact of a score or the tone of an actor’s voice. The result is a rich, structured map of the <em>creative intent</em>.</li><li><strong>Biosensing for Audience Understanding:</strong> On the other side is the moment-by-moment map of the audience’s internal state that integrates their opinions — with their engagement, emotional valence, and cognitive load. This is the map of the <em>human response</em>.</li></ol><p>The true breakthrough comes from a higher-level <strong>AI Reasoning Model</strong> that fuses these two maps. This model doesn’t just present data; it delivers interpretable insights by understanding the relationship between intent and impact. For example, it could conclude: “The script intended humor in this scene (<strong>Gen AI insight</strong>), and the audience showed a simultaneous spike in ‘Joy’ and EEG engagement (<strong>Biosensing insight</strong>), confirming the joke was successful.” Or, it might flag an issue: “This scene has high visual complexity (<strong>Gen AI insight</strong>), which correlated with a spike in cognitive load but no corresponding positive emotional response (<strong>Biosensing insight</strong>), suggesting potential audience confusion.”</p><h4><em>From Insight to Impact: Tools for the Modern Creator</em></h4><p>This vision translates directly into a new generation of tools that can be integrated across the filmmaking pipeline.</p><p><strong>Pre-Production:</strong> Before shooting, creators could test storyboards or animatics with small audiences to gauge core emotional arcs and pacing. AI could even analyze a script, predicting confusing or disengaging scenes for cost-effective rewrites.</p><p><strong>Post-Production:</strong> This is where the technology offers immediate impact. Imagine editing software plugins overlaying an “engagement heatmap” onto the timeline, showing precisely where audiences lean in or tune out. Editors could objectively A/B test different scene cuts or identify the most emotionally resonant clips for a trailer, all backed by objective data.</p><p>This application in filmmaking is a powerful example of a much broader shift. By moving beyond <em>what people say</em> to <em>what they think and feel</em>, we are unlocking a deeper, more empathetic way to design experiences. From optimizing advertisements and educational content to building more intuitive products, the fusion of AI and human-centered sensing represents the future of data-driven design.</p><h4>Affiliations</h4><p>The authors are part of <strong>Accenture Labs</strong> and broadly,<strong> Accenture’s Innovation R&amp;D</strong> organization. We help deliver on Accenture’s commitment to understanding and utilizing the technologies that will define the future by collaborating with universities, innovation partners, and clients around the world to incubate and prove out the application of emerging technologies. A key focus is on <strong>Human-Centered Computing</strong>, which aims to transform how people interact with smart tools, products, services, and one another. Key areas of applied research include Human-AI interaction and Cognitive &amp; Neurosciences, particularly where AI and Neurotech intersect, which is central to this project.</p><h4>Disclaimer</h4><p>The views expressed in this post are those of the authors, and do not necessarily reflect those of any employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b69f782dc3b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/the-directors-new-lens-empathic-ai-for-filmmaking-7b69f782dc3b">The Director’s New Lens: Empathic AI for Filmmaking</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What We Say, Think, and Feel: AI & Biosensing’s Transformative Capabilities for Creators]]></title>
            <link>https://medium.com/labs-notebook/what-we-say-think-and-feel-ai-biosensings-transformative-capabilities-for-creators-b02fbbc7df96?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/b02fbbc7df96</guid>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[biosensing]]></category>
            <category><![CDATA[ng-ui-ux]]></category>
            <category><![CDATA[wearables]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 17:34:18 GMT</pubDate>
            <atom:updated>2025-10-27T20:56:56.355Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>A New Window Into What We Think and Feel: Developing Transformative Capabilities for Creators with AI and Biosensing</strong></h3><p>Co-Authors: <a href="https://medium.com/u/a6106bb6cb61">Manaswi Saha</a>, <a href="https://medium.com/u/2b1c4484034d">Mirjana Spasojevic</a>, <a href="https://medium.com/u/907b1b983c45">Asher Naghi</a>, <a href="https://medium.com/u/58781459ee6e">KellyGlass</a></p><p><strong>Preamble: </strong><br>This is the first in a two-part blog series exploring exciting new ways that technology can help creators and innovators understand how individuals engage with a product, service, or experience. By combining the latest biosensing technologies with the latest machine learning and AI, product designers, filmmakers, marketing professionals, and others will be provided with richer, more continuous, and more objective information about how their audiences and customers are engaging with an experience.</p><p>Here is a roadmap of what we’ll cover:</p><p><strong>Part 1:</strong> This article overviews the new opportunities we see emerging, and the technological landscape that is making those opportunities possible: how AI is extracting insight from wearable and peripheral sensing, the application across industries, and the value in quantifying impact for creators.</p><p><strong>Part 2:</strong> Describes our initial experience putting the theory into practice in the realm of filmmaking, exploring neurocinematics with biosensing. We describe our recent study on identifying comedic impact using multimodal inputs namely, facial expressions and brain signals. Building on our findings, we present the next steps we recommend for such data-driven creative tools.</p><p><strong><em>Picture This:</em></strong></p><p><em>You are a filmmaker working on your next big project. You’re testing an early cut of a key scene — a moment of comedic relief in an otherwise intense sequence. The initial survey feedback is mixed. Some viewers say the jokes didn’t land; others don’t mention it at all. You’re left wondering — was that scene effective? If not, where did you lose the audience?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DO84cgsPJ4XUZFZaRaALTg.jpeg" /><figcaption><strong>Figure 1:</strong><br> Ubiquitous Biosensing &amp; AI tech will situate testing in more natural environments, providing novel, precision data for designing more personalized user experiences and services.</figcaption></figure><p>While traditional survey methods that help filmmakers evaluate their content can be valuable, they rely on conscious recall and self-articulation, which can sometimes miss the subtle, moment-by-moment reactions that occur during the experience itself. This leaves a big gap in our ability to assess the audience experience.</p><p><strong><em>What if </em></strong><em>you could capture viewers’ moment-by-moment reactions</em> as they watch the movie, providing you with more granular insight, and doing so <strong><em>without </em></strong>interrupting their immersion?</p><p>That’s where an AI-powered biosensing setup comes into play: this technology, a powerful convergence of AI and unobtrusive wearables, captures indicators of emotional and cognitive states on a moment-by-moment basis without requiring any explicit input from the person being studied. This can provide fine-grained reactions during content delivery — for instance, from a joke’s setup to its aftermath. These enhanced insights empower highly informed creative decisions:</p><ul><li><strong>Refine pacing &amp; timing</strong> with precision, objective data</li><li><strong>Identify specific moments</strong> requiring reshoots or edits</li><li><strong>Rework script elements</strong> based on granular reactions</li></ul><p>This is the potential of AI + Biosensing, which can include the recognition of facial expressions, physiological signals, and so on. It can provide a richer, more nuanced understanding of human interaction with experiences such as watching films and interactions with products and services.</p><h3><strong>The Technology Unpacked: AI Meets Wearable and Peripheral Sensing</strong></h3><p>These new capabilities are being unlocked by a powerful combination: <em>novel AI techniques and increasingly comfortable wearable form factors</em>. It’s this convergence of advanced AI and sophisticated, yet discreet, devices that is paving the way for unprecedented precision human insights. In 2023 alone, over <strong>200 million smartwatches</strong> and over <strong>5 million smart rings</strong> were sold globally, highlighting their widespread emerging presence. This is despite initial sentiment towards biosensing wearables being thought of as niche and intrusive.</p><p>Looking ahead, product companies are actively pushing the boundaries of these common wearable devices. Evidence from patents filed by major tech players indicates a clear focus on integrating more advanced biosensing capabilities into devices already worn frequently.</p><ul><li><a href="https://www.flound.io/en/magazin/robotik/apple-s-revolutionaeres-patent-airpods-zum-auslesen-von-gehirnwellen"><strong>Apple </strong>has patented Airpods with EEG electrodes</a> to monitor brain activity</li><li><a href="https://pulsenexa.com/blogs/news/what-wearable-ecg-devices-are-fda-approved"><strong>Google</strong> is exploring rings and bracelets</a> that capture EKG signals to track cardiovascular health</li><li><a href="https://www.patentlyapple.com/2024/09/meta-continues-to-work-on-a-future-smartwatch-that-includes-1-or-2-cameras-for-capturing-3d-photos-a.html"><strong>Meta </strong>is investigating in-ear and ring devices</a> that pick up electrophysiological signals for extended reality (XR) interactions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2urad6u_0sPQjZ-5MfN6g.png" /><figcaption><strong>Figure 2:</strong><br> Non-exhaustive example of c<a href="https://wearablesensing.com/dsi-7/">urrent</a> <a href="https://www.emotiv.com/products/epoc-x?srsltid=AfmBOoogwIGcR_joXVHhZOy9QsQ9yImbkYKq7fLcWQfp25u1U-aMj_gE">sensing </a><a href="https://choosemuse.com/products/muse-2?srsltid=AfmBOoqVx7tU5mI2_9uUWTeMAeL4RrCapJVQJBAhqsuDH8LPjF4aYmK2">technologies</a> <a href="https://www.neurable.com/products">that</a> follow an array of more consumer-grade ready form factors to more powerful scientific-grade devices.</figcaption></figure><p>These developments signal a future where granular physiological data can be captured seamlessly via devices people already wear.</p><p>Such wearables generate data that can be hard to interpret directly. AI plays a transformative role here by cleaning and extracting meaningful patterns, correlating signals with stimuli to infer cognitive states with increasing accuracy. The future promises even more advanced AI for precision analysis, predictive modeling (e.g., sensing user frustration), and personalized experiences based on individual physiological baselines. This powerful <em>AI-wearable</em> combination translates biosignals into actionable insights about an individual’s experience, creating a new frontier for understanding human behavior in real-world contexts. Where today it starts with test audiences giving insights that can be invaluable across a range of business applications.</p><h3><strong>How Biosensing Can Drive Business Value</strong></h3><p>Insights from AI+Biosensing can have impact across a number of business scenarios, including the following:</p><ul><li>In <strong>Product and Content Design</strong>, biosensing allows us to understand moment-by-moment test user reactions from digital interfaces and advertisements to entertainment and physical products. Companies such as <a href="https://imotions.com/customer-stories/%22%20/t%20%22_blank">Adidas, Mazda, and Duracell</a> are already leveraging <a href="https://imotions.com/blog/learning/best-practice/product-development/%22%20/t%20%22_blank">biosensors in UX research </a>to gain objective data on the <a href="https://www.emotiv.com/blogs/news/neuromarketing-loreal-fragrance?srsltid=AfmBOoqDhrQrTRMoVcGeBxdkQBeZBlzpze9YgPAFqAo7NQD84y6KIg_t%22%20\t%20%22_blank">user experience</a>, directly informing design iterations and ensuring that content resonates as intended.</li><li>Potential benefits will be seen in <strong>Optimized Training &amp; Simulation</strong>, enabling the creation of more effective and engaging programs by monitoring trainee cognitive load, stress, and engagement levels in real-time. In VR/AR training environments, biosensing can provide feedback, <a href="https://www.autoevolution.com/news/changing-shades-of-a-car-in-the-blink-of-a-thought-bmw-ix-flow-meets-neurotechnology-189288.html%22%20/l%20%22:~:text=rad%C2%B0hub%20participants%20were,Face%20Now%20Seems%20Too%20Bland%22%20/t%20%22_blank">allowing for dynamic adjustments to content</a> to maximize learning outcomes.</li><li>For <a href="https://about.starbucks.com/press/2024/can-a-starbucks-frappuccino-drink-beat-a-hug-starbucks-puts-comfort-to-the-test/"><strong>Marketing &amp; Advertising</strong></a>, biosensing can capture subconscious reactions as a measure of campaign impact, enhancing traditional metrics from test audiences for more effective expenditure in marketing budgets. Furthermore, while respecting privacy, it can inform <a href="https://store.google.com/magazine/personal_health_coach?hl=en-US"><strong>Well-being</strong></a><strong> and </strong><a href="https://www.toyotaofoxnard.com/blog/2025/april/2/inside-toyotas-advanced-driver-monitoring-technology.htm"><strong>Performance</strong></a> initiatives by understanding factors influencing employee stress, focus, and productivity.</li></ul><p>These precision engagement, emotion, and attention measurements, enable optimization in areas such as media, retail, automotive safety, education, and technology. By providing objective data from test audiences and early users, intelligent biosensing applications will empower companies to create more effective products, experiences, and interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08kd-9Nepnoihh9jMu9rGg.png" /><figcaption><strong>Figure 3:</strong><br> Conceptual example of a film editing tool powered by Biosensing and AI that analyzes content features and audience experience to synthesize novel insights.</figcaption></figure><h3><strong>Bridging the Gap: Quantifying Creative Impact</strong></h3><p>So how does this technology directly <strong>bridge the feedback gap</strong> for the filmmaker from our opening story? Biosensing offers granular insights into the consumer experience of content, like films, raising a significant opportunity about its utility for our <strong>Communications, Media &amp; Technology</strong> clients.</p><p><em>How does precision physiological data inform the creative process, revealing what traditional methods may miss?</em></p><p><em>How do moment-by-moment test audience reactions correlate with storytelling elements’ impact?</em></p><p>Capturing precision emotional and cognitive data during a test movie screening can provide unprecedented insight. Instead of relying solely on subjective post-hoc reports, creators can now ask precise, data-backed questions about their work’s reception, directly informing design choices. By analyzing physiological data synchronized with the content, we can probe everything from overall engagement to specific creative choices, like comedic timing, optimizing the film:</p><ul><li>Where in the sequence did physiological indicators suggest <strong>audience disengagement or cognitive overload</strong>, pinpointing areas for potential editing or restructuring?</li><li>How effectively did <strong>specific emotional beats</strong>, including comedic moments, <strong>land with the audience</strong> as measured by their emotional states, guiding refinement or alternative approaches?</li><li>How do different edits, pacing variations, or alternative creative choices compare in their<strong> moment-by-moment impact on audience states</strong>, informing final selections?</li></ul><p>These critical, use-case oriented questions guided our recent proof-of-concept study: applying neurocinematics principles to objectively measure test audience responses, specifically the impact of comedic moments within a narrative using biosensing. We’ll discuss that further in part 2 of this series.</p><h4>What Are Your Thoughts?</h4><p>We know this is just the start of the conversation, and we’d love to hear your perspective as creators and innovators in this space. For instance, we’d love to hear feedback about these questions:</p><ul><li>Within the media production space, including filmmaking, marketing and beyond, what stages of the process could benefit from more objective, fine-grained insight about the audience reaction to the material?</li><li>Beyond filmmaking, what are some critical questions about the user/audience experience that biosensing might help within an industry you’re familiar with?</li></ul><p>Share your ideas with us!</p><h4>Affiliations</h4><p>The authors are part of <strong>Accenture Labs</strong> and broadly,<strong> Accenture’s Innovation R&amp;D</strong> organization. We help deliver on Accenture’s commitment to understanding and utilizing the technologies that will define the future by collaborating with universities, innovation partners, and clients around the world to incubate and prove out the application of emerging technologies. A key focus is on <strong>Human-Centered Computing</strong>, which aims to transform how people interact with smart tools, products, services, and one another. Key areas of applied research include Human-AI interaction and Cognitive &amp; Neurosciences, particularly where AI and Neurotech intersect, which is central to this project.</p><h4>Disclaimer</h4><p>The views expressed in this post are those of the authors, and do not necessarily reflect those of any employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b02fbbc7df96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/what-we-say-think-and-feel-ai-biosensings-transformative-capabilities-for-creators-b02fbbc7df96">What We Say, Think, and Feel: AI &amp; Biosensing’s Transformative Capabilities for Creators</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brain 2 Image: Reverse Engineering Visual Perception from Brain Signals]]></title>
            <link>https://medium.com/labs-notebook/brain-2-image-reverse-engineering-visual-perception-from-brain-signals-5dddf8fdbb4b?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dddf8fdbb4b</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <category><![CDATA[biotechnology]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 17:02:08 GMT</pubDate>
            <atom:updated>2024-01-09T15:19:28.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*pTtSIA7Gh79yAd8XGi6tUQ.png" /><figcaption>1 second of <a href="https://mindbigdata.com/opendb/imagenet.html">brain signal</a> from Emotiv EEG headset while participant looked at a Goldfish</figcaption></figure><p><em>Advances in Generative AI algorithms and Augmented Reality hardware have sparked interest in the technological possibilities of precision Bio-Sensing. If you are a user of a smart watch, then you have already started to experience how current versions of this technology can shape your everyday life. These products collect bio-signals from users, which helps customize the services and applications you interact with. As the sensing capabilities of these technologies advance, the view into understanding users will become clearer and more complete.</em></p><p><em>Recent medical research studies have challenged the art-of-the-possible and shown that we can reverse engineer what people see by processing their brain signals. Such results provide confidence in a future where technology will be able to even leverage our neural signals to predict our intentions and interpret how we perceive the world. Furthermore, medical researchers posit that this would be of benefit to patients with limited motor capabilities. So far, such results have been limited to medical and experimental lab scenarios, leaving it an open question about the feasibility with consumer grade neurotech.</em></p><p><em>Here we present exploratory results conducted in Accenture Labs, showing evidence of how consumer grade neurotech can be leveraged alongside a simple GenAI pipeline.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0L02qvA_Iv01Sa-WsiWEdQ.jpeg" /><figcaption>Supervised learning method for building custom neural decoding model. First 2 seconds of person watching an image is used to train a custom CNN model, and the last second is used to validate model predictions. The R&amp;D results by Accenture Labs</figcaption></figure><p>R&amp;D efforts at Accenture Labs work towards bringing the latest in technological research to applied use cases for client solutions, bringing forth foresights on technological development 5–10 years ahead of current market relevance. Some of the related use cases involve improving the training &amp; upskilling of workers who perform physical tasks, augmenting the product design process, and innovation of assistive systems. <br>Check out the previous communications around <a href="https://medium.com/labs-notebook/audio-ar-an-introduction-698661405ff4">Audio AR</a> and <a href="https://medium.com/labs-notebook/neuroscience-as-a-service-naas-basics-part-1-7eac4d67fc10">Neuroscience-as-a-Service</a>.</p><h4>Brain to Images</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-1d37CUj3KgIznsF0c-aQ.jpeg" /></figure><p>Exciting <a href="https://time.com/6210261/meta-ai-brains-speech/">news headlines</a> have been highlighting the neural decoding work done by medical researchers, provoking our imagination of a future where precision bio-sensing tech can read our minds and translate our thoughts. Much of this new excitement comes from these studies showing that you can use GenAI to decode our brain signals, in which the novelty of the continuous growth of GenAI capabilities guides the spotlight to differentiating domains such as Neuroscience. <br>But this work is not completely new, and the first instance of using generative models to reconstruct images from brain signals can be traced back to 2017. Researchers from the University of Catania and the University of Central Florida <a href="https://www.crcv.ucf.edu/papers/camera_ready_acmmm_BNI08.pdf">demonstrated</a> that it was possible to develop AI that can process brain signals and predict what images someone was looking at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qgsm0hDXjCJDRiph.png" /><figcaption>Kavasidis et al., (2017), the first paper using generative deep learning models to decode visual perception</figcaption></figure><p>This became a central proof-of-concept for how AI could begin to decode our visual perception from our neural signals. Specifically, it showed how generative models could learn to map our brain signals into image categories. Meaning that given a brain signal as input, it could generate a noisy image reflecting the category of the image that person saw. For example, if you looked at a specific panda during data collection, then the models would predict that you saw a panda and generate a panda image resembling variations of all possible pandas it was trained on plus some noise from the neural input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*j-14OKb_lkyXcNz5wg8g4g.jpeg" /><figcaption>Takagi &amp; Nishimoto (2023), results of using Stable Diffusion to decode visual perception.</figcaption></figure><p>Fast forward to 2022–2023 during an AI boom caused by novel GenAI models, and researchers raise the bar on the state-of-the-art of neural decoding. An <a href="https://arxiv.org/pdf/2306.11536.pdf">exemplary study </a>by researchers from Osaka University showed how they could process fMRI signals and use the generative power of Stable Diffusion to produce images that were semantically related to the original image that participants were exposed to. <br>Their method mapped the features of brain signals to both the encoding of the original image and of the image captions via linear models. These models outputted abstract latent features that were injected into the middle layers of the Stable Diffusion autoencoder as input, which resulted in a generated image as the final result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZfqVmzZURUJo6IqD_8gHA.jpeg" /><figcaption>Benchetrit, Banville, &amp; King (2023), results from models in a novel generative pipeline.</figcaption></figure><p>Several other studies have followed since then including one by researchers from Paris Science et Lettres University and Meta’s Fundamental AI Research (FAIR) group, showing a <a href="https://ai.meta.com/static-resource/image-decoding">novel GenAI pipeline</a> decoding MEG brain signals. They frame this as an image retrieval process, where novel GenAI models hold a deep memory of images from the internet. Then, brain signals act as input to index a specific space of that rich latent space to retrieve an image as similar to the original image that a person saw. Lastly, they frame their results as bringing insights to what factors would need to be considered for a real-time implementation of this technology, making the future directions of their work relevant to industries investing in bringing the tech to life.</p><h4>Limitations</h4><p><em>Towards Real-Time</em><br>It is important to note that the research in decoding people’s visual perception currently serves as proof-of-concepts for the art-of-the-possible. So far, there hasn’t been implementations showing that real-time brain signals can be actively decoded to reconstruct our visual perception. Rather, these studies focus on collecting a dataset of brain signals, and then use that data to train and develop AI that can show impressive results from those specific datasets. The above-mentioned research by Meta stands out by thinking about what factors would be needed to bring decoding to occur in real-time. Outlining the importance of neural signals with higher temporal resolution and methods of optimizing inference for better outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*ssSBetGdTHBPJqSNy85sgQ.jpeg" /><figcaption><a href="https://en.wikipedia.org/wiki/Magnetoencephalography#/media/File:NIMH_MEG.jpg">Example</a> of Magneto Encephalogram data collection.</figcaption></figure><p><em>What happens in the lab stays in the lab? </em><br>All the studies that reached high-profile media coverage depended on medical and research grade laboratory conditions. Focusing the use cases for these implementations to specialized medical contexts, where the collection of MEG &amp; fMRI would necessitate the use of expensive, furniture-sized magnets. Furthermore, data collection conditions are not very naturalistic and often require carefully instructing patients to have their bodies be very still while the magnets scan them.</p><p>Like with any Machine Learning application, brain sensing faces issues with data scarcity, that often slows the scaling up to real-time and new populations. Such limitations can be alleviated through implementation of synthetic data, which Accenture has worked in various domains to help clients solve such data issues.</p><h4>Results</h4><p><em>Towards Consumer Products</em><br>Hardware leveraging the measuring of electrical activity with EEG headsets and blood-flow through IR sensors such as fNIRS have made big strides towards capabilities for in-the-wild user data collection. Which, Accenture Labs has partnered with exemplary vendors such as <a href="https://www.mendi.io/?camp_id=17488725523&amp;grp_id=135723674050&amp;adid=618507154784&amp;kw=&amp;mt=&amp;source=g&amp;tgt=dsa-1728797188976&amp;phys=9061255&amp;device=c&amp;gad_source=1&amp;gclid=Cj0KCQiAr8eqBhD3ARIsAIe-buNugjW3iPiAbKu1Zcu_UZuEQ5DSPnER1pzfcIb9AXou6ka_pQ4dXeAaAnreEALw_wcB">Mendi</a> and <a href="https://wearablesensing.com/">Wearable Sensing</a>. Where the neurotech from Wearable Sensing has focused on providing research grade precision while still being robust to natural user movement. On the other hand, Mendi has focused on starting to build a platform that end users can easily wear and engage with through a gamified phone application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*tjH_t74AmWJN_UZIMzQsBA.jpeg" /><figcaption>Publicly available dataset provided by <a href="https://mindbigdata.com/opendb/imagenet.html">David Vivancos</a>.</figcaption></figure><p><em>Data </em><br>For our analysis here, we leverage a publicly available dataset <a href="https://mindbigdata.com/opendb/imagenet.html">MindBigData — “IMAGENET” of the Brain</a> where the data collection uses a commercial grade EEG headset <a href="https://www.emotiv.com/product/emotiv-insight-5-channel-mobile-brainwear/">Emotiv</a>, which has a more approachable price point (~$500) compared to research grade neurotech. The data set consists of 3 second brain signals while viewing an image, for a total of 14,012 images. <br>For our purposes, we use a subset and focus on brain signals corresponding to 4 image classes, with 2 images per image class [Rooster, Ostrich, Goldfish, Stingray].</p><p><em>Methods</em><br>Our goal here is to lean into simplicity, so we stick to a supervised learning method for training a small Convolutional Neural Net (CNN) for processing the brain signals. Then the outputs of the CNNs will be used as prompts to a GenAI architecture like a Stable Diffusion model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PX9WlfmmaPHhJPodshktbQ.jpeg" /><figcaption>Proposed pipeline, where neural decoding model processes brain signal to generate image or text as prompts to GenAI model.</figcaption></figure><p>Previous implementations have worked towards sophisticated and complicated signal processing steps, which also work by opening up or fine-tuning GenAI models. Here we avoid doing this to preserve the rich memory of the LLM, not complicate the processing steps, and to reduce the overhead of LLM fine-tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GjlIs6FnVe-j5HVntUpCgw.jpeg" /><figcaption>Image category classification results of CNN decoder.</figcaption></figure><p><em>CNN Results</em><br>We performed two analyses; the first trained a CNN decoder as predicting the image class from a brain signal as input and the second analysis trained a CNN to reconstruct the specific image someone saw. For all training we did a 66% Training — 33% Test split across time, where the first 2 seconds was used for training the last second of unseen brain recording was used for evaluation. <br>Our CNN classifier showed 75% accuracy with up to 87.50% precision, with a baseline of having a 25% chance of randomly being correct. The CNN model was computationally efficient as it was only 15K parameters big.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCPklrxZMrWp2KeP-rhjnQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3A6DRrZgENhQ6hhEixso8Q.jpeg" /><figcaption>Reconstructions from trained CNN model. Results show that model learned to discriminate patterns of brain activity to possible pixel combinations of all seen examples.</figcaption></figure><p>Our CNN image reconstruction results are presented above and were evaluated on a 3 (Good, Ok, Bad) subjective measure scale. With the strongest examples coming from both roosters, one stingray, and one ostrich image. Simply put, the amount of reconstruction quality roughly follows our classification accuracy, with some reconstructions showing confusion as it overlays other images. Such a concept is not too dissimilar to what happens when LLMs hallucinate. The CNN model was only 18 million parameters big.</p><p><em>Output Labels as Prompts</em><br>Part of our exploratory pipeline is to use CNN outputs as prompts, which has been done in other studies including a brain to music <a href="https://arxiv.org/abs/2307.11078">paper</a>, where their neural decoder output becomes the input to an Image-to-Music model like Riffusion. Here we use our predicted labels from our classifier to perform Text-to-Image with Stable Diffusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxP7a8UTuw0_4GWS60LZYA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzzXbuAFsHCvMxE6vGo86g.jpeg" /><figcaption>CNN predicted labels as prompts for text-to-image with Stable Diffusion</figcaption></figure><p><em>Output Images as Prompts</em><br>Using the CNN image reconstructor, we took the validation outputs and passed them to Stable Diffusion for an Image-to-Image process. Models like Stable Diffusion allow for customizing generation with hyperparameters and specific pipelines. People use this for the purposes of making specific edits or having specific constraints to what it can output. Here we decided to simplify this hyperparameter optimization process and stick to an Image-to-Image (Variation) pipeline. This takes images as inputs and generates variations of those images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MF4J_ptKoxTwlcOQ1rr2ww.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OTLvpuZgji3jhwsfFXrXsA.jpeg" /><figcaption>CNN reconstruction outputs as prompts for Image-to-Image (Variation) with Stable Diffusion</figcaption></figure><h4>What We Learned</h4><p>We showed that we can do brain to image neural decoding using data from commercially accessible hardware.</p><p>We showed that we don’t always need LLMs. Our custom models gave good classification and some impressive reconstructions. In reconstructions that were harder to interpret, the Stable Diffusion outputs helped with interpretability, by blending the models confusion into one image.</p><p>We know that LLMs come with a big overhead, and investments for building GenAI solutions try to mitigate development cost trade-offs. Therefore, our proposed pipeline tries to simplify the use of LLMs with a small, custom CNN focusing on the specificity of brain signals and GenAI focusing on it’s strength of generalization.</p><p>Looking forward, the promise of this research is in line with medical use cases for helping interpret the intentions and communications of patients with limited motor capabilities.</p><p>Outside of specific lab settings, such capabilities can be built onto smart wearables, opening up more precision in the consumer health &amp; wellness market. <br>Industry leaders such as Apple have shown a focus with their “Health data shouldn’t be public” marketing. In the near future, foundation models for bio-sensing will also help scale up to more users and to everyday scenarios. <br>We can imagine a future where our smart watches and smart ear phones can sense not just our outside world, or just the users, but also how users perceive the outside world. <br>Therefore, precision bio-sensing will be instrumental in grounding the power of GenAI solutions to personalize user interactions with technology and services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dddf8fdbb4b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/brain-2-image-reverse-engineering-visual-perception-from-brain-signals-5dddf8fdbb4b">Brain 2 Image: Reverse Engineering Visual Perception from Brain Signals</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computer Vision EEG Pipeline Tutorial: Part 1]]></title>
            <link>https://medium.com/labs-notebook/computer-vision-eeg-pipeline-tutorial-part-1-f18e389f0e44?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/f18e389f0e44</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[signal-processing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Thu, 11 May 2023 16:15:02 GMT</pubDate>
            <atom:updated>2023-05-16T14:18:26.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TqiO31INg88gf3A1OWhI_w.jpeg" /><figcaption>1 second of brain data decomposed into Mel-Frequency Cepstrum Coefficients as power in decibels</figcaption></figure><p><em>Processing brain signals has traditionally involved researchers with carefully cleaning data and extracting features, but recent techniques have demonstrated the capability to develop AI models that take on that responsibility in their neural architecture. In this tutorial series I demonstrate the efficacy and how-to of implementing Computer Vision techniques for the purposes of retrieving information from brain signals. In the previous tutorial, I demonstrated how to retrieve, unpack, and visualize an EEG dataset. Here we begin with learning the steps to simple feature extraction and 1-Dimensional modeling for the purposes of understanding the contrast to Computer Vision.</em></p><ul><li>Dependencies: Access to Google Drive + Google Colab</li><li>Colab Notebook: <a href="https://colab.research.google.com/drive/15szTMk8Dohv9WtBdv3CP9YkEG1KkVxDq?usp=sharing">https://colab.research.google.com/drive/15szTMk8Dohv9WtBdv3CP9YkEG1KkVxDq?usp=sharing</a></li></ul><p><strong>The Big Picture</strong></p><p>The research and development of brain sensing is moving past proof-of-concepts and closer to consumer grade implementations. Researchers from Accenture Labs have begun to bring competitive innovation in the space. Such industry perspectives outline <a href="https://medium.com/labs-notebook/neuroscience-as-a-service-naas-basics-part-1-7eac4d67fc10">Neuroscience-as-a-service</a> which references developments in Digital and Precision Health services. Accenture’s partners such as <a href="https://www.accenture.com/us-en/case-studies/future-workforce/case-study-immersion-learning">Immersion Neuroscience</a> and <a href="https://newsroom.accenture.com/news/accenture-invests-in-behavr-to-help-expand-access-to-mental-and-behavioral-healthcare-using-virtual-reality.htm">BehaVR</a> invest in a future of mental health and personalized training services powered by non-invasive, precision bio-sensing. On the ground, novel technical methodology for training AI systems have focused on balancing naturalistic data collection with the efficiency of <a href="https://medium.com/labs-notebook/retrieving-audio-information-from-brain-responses-with-computer-vision-f45cd5a84078">end-to-end processing</a>. Computer vision techniques can improve the performance and efficiency. We will explore how in this tutorial series.</p><p><strong>Downloading the Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wBCK-Lecyu_YmRYatKSKw.jpeg" /></figure><p>To get us started, go ahead and access the notebook link above and follow the code along with this blog. Set your Google Colab session to run with a GPU for ease of use. Every free account should come with a limited GPU access.</p><p>The first step will be to run the first three sections which will install dependencies, download, and load the EEG dataset into memory. In the previous tutorial we saw how we could gather the dataset, unpack it and organize it ourselves, but here we start with direct access to it.</p><p>This dataset is a portion from the Naturalistic Music Electroencephalogram Dataset — Tempo (NMED-T) published by Losorelli et al., (2017). The data is of people’s brain signals while they listen to music.</p><p><strong>Visually Inspect</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcUTSn-7LTsXM9_-RDbmQg.jpeg" /></figure><p>Next lets run the code cell that helps us visually inspect our dataset. With every dataset, you will want to do this to not only check that you have downloaded the right dataset, but to also have a visual understanding of what that looks like. Here we see 1 second of brain data while the participant is listening to ‘First Fires — Bonobo’. In the code cell you can manually explore this by changing the index number from ‘10’ to inspect other samples. This is recommended to understand what the variety of brain signals looks like.</p><p><strong>Generate Target Labels</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_KrJOpG8i8IPA-H3SZsQxQ.jpeg" /></figure><p>In this next section, the code cells are used to generate target labels for ‘Songs’ and ‘Participant’ classes. These labels are what we use to map our training data during supervised learning. With this we can train our models to classify the data based on the song that they were listening to or a specific participant’s brain. Here I show what code is used to generate the labels, but in the next tutorial this will be accessible to us through a simple download.</p><p><strong>Feature Extraction</strong></p><p>Now we are ready to explore some feature extraction. This is both a process of transforming and understanding the data by looking at how the information is represented through abstraction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Sz5sZ8QmvxL2nKf83GiPSw.jpeg" /><figcaption>1 second of EEG at recording channel 5 while participant listens to music</figcaption></figure><p>Let’s start by taking the Hilbert envelope of our selected recording channel. This is a common signal processing step when dealing with time-series such as from seismic quakes, music, and brain data. Simply put, the Hilbert envelope gives us an average of the signal’s amplitude over time. This is often used to make the signal easier to process in machine learning and for simple denoising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*ErY2LNMvP7OgvXc430LUsg.jpeg" /><figcaption>Hilbert envelope 1 second of EEG at recording channel 5 while participant listens to music</figcaption></figure><p>Here you can see that the signal looks very similar. The main changes is that the new signal is now centered and that amplitude values are only on the positive axis. The code cells following this visualization in the notebook will then transform all your EEG data into a copy of Hilbert envelope transforms. This will be used to test machine learning models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*tMAs2tNs-xBFbxD8z8SBAA.jpeg" /></figure><p>Simpler machine learning models cannot handle complex data and need for a signal to be reduced to a single but informative number. In the next code cell we get a single informative number by taking the Root Mean Square (RMS) of a recording channel. This metric is the approximated power dissipation of a time varying function. In other words, it is an average power metric for the electrical current of interest e.g., brain signals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*Wunk1yJz0xcgdKGupB0jKA.jpeg" /><figcaption>Distribution of RMS values across all recording channels for 1 second examples</figcaption></figure><p>Next we plot the distribution of RMS values from a 1 second time slice to see how power dissipation varies across recording channels. There are a total of 125 recording channels on a participant’s scalp and here we see that their RMS values are normally distributed with a strong skew to the left with some channels providing high values. If the distribution was more rigidly uniform then it could be indicative that the dimension of channels is not very informative and that it might be easier to average out the data into a single channel. Because we see some interesting variability in RMS frequency across channels, we will use the code cells in the notebook to then create an RMS version of our data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*c6XK8EZ60p7ynrCycR9bOQ.jpeg" /><figcaption>1 second EEG example transformed into cepstrum coefficients at a mel-frequency scale.</figcaption></figure><p>Lastly, lets explore feature extraction that is commonly related to complex auditory signals such as music. Here we have a way of getting the Mel-Frequency Cepstrum Coefficients (MFCC), which outputs a 1-dimensional array. This is a function that approximates the short-term power spectrum of a sound to a mel scale. You can think of this as a second order frequency measure like going from a first order speed to a second order velocity measurement. Mel scale refers to transforming the signal to how sound is perceived by humans where certain frequencies have stronger representation than others, referring to what we think is an audible and perceptible signal.</p><p>The MFCC function that we get looks to have enough complexity for it to serve as a feature of the training data. This type of feature extraction faces one main limitation. It is dependent on the sampling rate of the signal which is the recording resolution available. Here the sampling rate is 125 Hz, which is on the lower end, so we must note that a lack of recording resolution may limit the efficacy of the features that can be extracted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btymFT4aBXus93yI78IVKw.jpeg" /></figure><p>These coefficients can be visualized as a type of bar code when looking at the power in decibels. This is ultimately a good analogy for what happens with machine learning and feature extraction. We take something that is of higher dimensionality and reduce it to simpler but informative representations that specific algorithms can then interpret.</p><p><strong>Load MFCC Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pusdf5Yi0NVuLkb-gZkSPg.jpeg" /></figure><p>The code in this next section lets you download the brain data transformed into MFFCs. There is also optional code if you want to process the data yourself, but this can be computationally intensive and take anywhere from 10–20 minutes.</p><p><strong>1-Dimensional Machine Learning</strong></p><p>First, lets try some simple machine learning modeling. The goal is to get an initial idea of what simpler and traditional methods can do for us. Traditional machine learning usually depends on researchers performing feature extraction before hand. This makes it easier for models to compute as we shrink the dimensionality of the data and identify salient features that we care about. We already explored several analyses that do this by denoising the signal, reducing dimensionality, and measuring frequency components.</p><p>First lets start by exploring univariate model training. For this we will use Root Mean Square values as our predictor to the song name target classes with a simple Logistic Regression model for classification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0_Ym4u3xM5BrSF7YRK_mg.jpeg" /></figure><p>Running the univariate predictor using an RMS score per recording channel to predict what song someone is listening to via a Logistic Regression model gives us poor performance. Random chance for classification is 20% and the model validation shows 21.34%, which is at least better than random chance but not a desirable result.</p><p>Next let’s try doing the same training procedure but instead of trying to predict the song names lets try to predict which person’s brain the data comes from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0_Ym4u3xM5BrSF7YRK_mg.jpeg" /></figure><p>Again we see poor performance, where random chance is 5% but our model validation performance is 6.4%. The good news is that the model is at least trying to learn but it simply can’t do it well. This could be for several reasons, but the most obvious hypothesis is that boiling down a complex signal like brain data to 1 number erases too much information.</p><p>Next lets try classifying our data using vector arrays. Here we will use the Mel-Frequency Cepstral Coefficients as predictors and the same Logistic Regression models. Let’s see if having more than 1 number, but still not modeling it as a 2 dimensional representation, can give better results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqJdOs5aP90JPKB5j2FOVw.jpeg" /></figure><p>It looks like even our MFCC arrays are not giving better results. Validation performance is still around random chance.</p><p><strong>1-Dimensional Deep Learning</strong></p><p>We saw that it was difficult to train simple/standard machine learning models with features from brain data. Next, lets try leveraging the power of simple deep learning. The strength of deep learning is that it allows the model to learn more on its own. This means that it usually requires less feature extraction. Therefore, lets test a simple deep learning approach using the Hilbert envelope from the brain data, as it still holds more of the original signal’s dimensionality.</p><p>The first two code cells in this section set our previous dataset copies as empty lists to free up space. Then it turns our targets into categorical representations for our neural network’s multi-class classification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaUWL3CPOfZ1ZrNAqW63mQ.jpeg" /></figure><p>Next, we use Tensorflow with Keras api to define our neural network. The architecture provided here is a simple 1-Dimensional Convolutional Neural Network (CNN). This model has 3 CNN layers which do the job of feature extraction and is followed by a Global Average Pooling (GAP) layer used to condense the dimensionality of the data. Lastly, this is then mapped onto the output layer which is simply the size of however many classes we want to classify. In our case, we have a total of 5 songs that a brain signal corresponds to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yC3bfeeg8VE7DWaMxgawCA.jpeg" /></figure><p>In the next code cell the training parameters are set and running the code will start the process of deep learning. Make sure to have set your colab session to a GPU, otherwise this process can take much longer.</p><p>The graph below shows the accuracy increase across epochs of model training. We only trained it for 25 epochs as a demonstration. Typical deep learning requires training for hundreds to thousands of epochs. But even with 25 epochs we see that the training is starting to plateau. This means that we can expect performance to increase after hundreds of epochs but that the increase will not be much higher. In our case, the deep learning model did better than the Logistic Regressions but not significantly so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__GSjnEew1g1pUBjgB50bQ.jpeg" /></figure><p>The graph also demonstrates a classic training-validation divergence. This is to be expected as models will always try to find the easiest solution to the training data, which it usually involves trying to memorize the patterns in the data. So when you test it on unseen data, the performance will be lower. Optimization of deep learning is another topic outside of the scope of this tutorial but here a simple version of trying to regularize the prediction of the model was done by adding a dropout layer. This randomly turns-off network connections to a set percentage, which helps in trying to learn patterns in the data with different neurons learning at different epochs to have a diverse perspective in its memory.</p><p><strong>Conclusion</strong></p><p>In this tutorial we learned how to explore feature extraction and compared simple machine learning with simple deep learning. Representing our data in a single dimension, either as a univariate metric or vector array, has not yielded strong performance. Our efforts so far have been for instructive purposes of Data Science skills and exploration of the topic. In the next tutorial we will finally get to more advanced deep learning methods and see how representing a time-series like brain signals as an image can improve accuracy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f18e389f0e44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/computer-vision-eeg-pipeline-tutorial-part-1-f18e389f0e44">Computer Vision EEG Pipeline Tutorial: Part 1</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computer Vision EEG Pipeline Tutorial: Part 0]]></title>
            <link>https://medium.com/labs-notebook/computer-vision-eeg-pipeline-part-0-b4a5ee3ed04d?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4a5ee3ed04d</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 00:18:42 GMT</pubDate>
            <atom:updated>2023-02-10T13:53:23.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lUU5-V4ODX52xglSagv8g.jpeg" /></figure><p><em>Extracting information from brain data may sound hard, but here in this tutorial series I will demonstrate that it doesn’t have to be. The code will be implemented using Google Colab with data storage using Google Drive so that anyone can easily access it, and the data modeling will be done through Tensorflow-Keras. In this first tutorial we will go through the how-to on unpacking EEG data into easy-to-use Numpy arrays. The end goal will be to have the data into Train-Validation-Test sets that are ready to put into a deep learning model.</em></p><ul><li><em>Dependencies: Access to Google Drive + Google Colab</em></li><li>Colab Notebook: <a href="https://colab.research.google.com/drive/1jfAtkz90mja3ck7db3mug1WFoUcOda34?usp=sharing">https://colab.research.google.com/drive/1jfAtkz90mja3ck7db3mug1WFoUcOda34?usp=sharing</a></li></ul><p><strong>Data Procurement</strong></p><p>In this tutorial we will use the Naturalistic Music Electroencephalogram Dataset — Tempo (NMED-T) published by Losorelli et al., (2017). We will go through the common hassle of procuring the data, for tutorial purposes we will only use part of the data. This will be done once as an exercise. For the following tutorials I will provide an easy to use link of the data we unpack in this tutorial.</p><p>First, proceed to their website: <a href="https://exhibits.stanford.edu/data/catalog/jn859kj8079">https://exhibits.stanford.edu/data/catalog/jn859kj8079</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3Vo2AnlYkmYfUa1xRFhPQ.jpeg" /></figure><p>Then click to download each of the first 5 files from “song21_Imputed.mat” to “song25_Imputed.mat”. They provide a total of 10 files but because this is an exercise, we will simply use half the data. These are the cleaned and ready to go brain recordings. The files on their site are separated by songs participants listened to, so each file has data for all 20 participants at the full song’s length of EEG recording.</p><p><strong>Data Storage</strong></p><p>You can use these files locally on your own computer, but here the focus will be using Google Colab, which best pairs with Google Drive for data storage and management. Upload your downloaded data into a folder on your Drive. Next, change the files names for interpretability. For example, turn “song21_Imputed.mat” into “1.mat” and so on until you have “1.mat…5.mat”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y78Kk3ReHK4HFIymnXAZww.jpeg" /></figure><p><strong>Loading Data</strong></p><p>Now we can start using the Colab notebook that is provided in the link at the beginning of the article. Open the Colab notebook and run the first two cells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRla-uGUVJRkmoKSAhgK5w.jpeg" /></figure><p>The first cell imports the necessary libraries. The second cell will mount your personal Google Drive onto the notebook. Files on your Drive will now be able to be directly indexed and pulled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgNXkz46nsr786jVoZWxQA.jpeg" /></figure><p>Then run the next cell as shown above. You will need to define the directory path of your files in the ‘path’ variable. The code will then pull file names from that folder into a list called ‘files’. Then using loadmat() those file names will be used to open and store the brain data in the list ‘eeg’. We use loadmat() because most researchers collect and store their data using Matlab, which produces .mat files. Our cell output prints out the names of the files we pulled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3mwpJ74DkcGpb_uwbJtbYg.jpeg" /></figure><p>The last two cells in this section then simply separate the actual numerical data and only consider the first four minutes. All brain recordings vary in length depending on what song someone was listening to. Therefore, we will only use the first four minutes to have equal array lengths.</p><p><strong>Organize Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSW17u7_U7shUrToUFTjvw.jpeg" /></figure><p>Now that we have the data in easy to use numpy arrays, the next thing to do is to organize it into Train, Validation, and Test sets. The first cell in this section first extracts the data into 15 second chunks. This is important because we can then use those chunks to manually shuffle the data across the recording time domain. In some deep learning training procedures researchers prefer to have a training set from the first half and test on the second half of recordings. In other training procedures, like we will perform here, it is important to balance the distribution of the data across time. The second cell does this by allocating chunks from the start, middle, and end of the recording across the Training, Validation, and Test sets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BwpXCGZWz8Fxc38sIzl8xQ.jpeg" /></figure><p>The last cell in this section then finally splits the data into 1 second examples. You can see in the cell output above that this gives us 24K training examples of brain data and 12K for validation as well as test.</p><p><strong>Plot Data</strong></p><p>If you have been able to follow along with the Colab notebook so far, then you now successfully have Train, Validation, and Test sets. In the previous cell output we saw the dimensionality of these arrays using ‘print(X_train.shape)’, but to really see the fruits of our labor we should plot the brain data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-_KaS6tYTxX3s4k6ZwA8A.jpeg" /></figure><p>The first two cells refer back to array X_4min and plots a single EEG channel of a 4 minute recording.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQDIQe_pEkvOXVHf392SEA.jpeg" /></figure><p>The following plot indexes the ‘X_train’ array and plots a 1 second example accross all 125 channels. We also import ‘vapeplot’ to select an aesthetic color palette.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1p883qWLG02LnQVNlEpGcg.jpeg" /></figure><p>Finally, the last plot demonstrates 1 second from 125 channels as an image instead of a time-series like in the previous plot. This will be how the data will be processed in the deep learning training that is to come in the following tutorials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4a5ee3ed04d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/computer-vision-eeg-pipeline-part-0-b4a5ee3ed04d">Computer Vision EEG Pipeline Tutorial: Part 0</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrieving Audio Information from Brain Responses with Computer Vision]]></title>
            <link>https://medium.com/labs-notebook/retrieving-audio-information-from-brain-responses-with-computer-vision-f45cd5a84078?source=rss-66166a2d9d21------2</link>
            <guid isPermaLink="false">https://medium.com/p/f45cd5a84078</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[metaverse]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Adolfo Ramirez-Aristizabal]]></dc:creator>
            <pubDate>Thu, 15 Sep 2022 18:06:33 GMT</pubDate>
            <atom:updated>2022-09-22T04:34:50.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gu8fC3NHELoU37AhZUaJA.png" /><figcaption>125 channels of brain data for 1 second of listening to ‘Bonobo — First Fires’</figcaption></figure><p><em>The near future of wearable technologies consists of sensors that interpret information from your brain, much like a smartwatch interprets someone’s health and emotional states. Such technologies are developing with the promise to seamlessly integrate users into the metaverse, as well as facilitating the inclusion of users with limited motor capabilities. Given the historically extensive investment in Computer Vision (CV) research, a handful of recent studies have leveraged this to provide a proof-of-scalability. This approach increases the efficiency of modeling Electroencephalogram (EEG) data i.e., voltage potentials of brains recorded on the scalp. This is done by shifting from what was traditionally thought of as the processing of time-series data to formatting EEG data into images as inputs to state-of-the-art CV models. Here the EEG data of focus will be that which corresponds to acoustic stimuli such as music listening. Such a shift in data processing newly affords an immediately practical way to scale up applications in Brain Computer Interface (BCI) technologies.</em></p><p><strong>Acoustic Information Retrieval</strong></p><p>When processing EEG data, the first step is to clean the signal of artifacts and environmental noise. Cleaning methods include typical time-series processing for the purposes of isolating the signal of interest, which in this case is brain activity. After cleaning, the next question at hand asks whether that information can be used to predict what people are thinking or how their brain signals are correlated to some stimulus e.g., music or speech.</p><p>EEG data collection varies in how many experimental parameters are imposed for a desired response. This spans anywhere from highly parameterized experiments where participants are shown a ~1 second vocalization 100 times at specific presentation intervals and tasking the participant to track visual stimuli. To then simply instructing a participant to stare at a blank screen while they listen to a song.</p><p>Whether your data collection paradigm includes a handful or many experimental controls, the act of then processing those brain signals to gather insights falls under the umbrella of Information Retrieval, and specifically Acoustic Information Retrieval for brain responses corresponding to acoustic stimuli.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IG0-DJl_P1bogjT-CqLwBA.png" /><figcaption>Visualization of 1 minute length single channel EEG data being processed by Deep Neural Networks.</figcaption></figure><p><strong>Feature Extraction for EEG in ML/DL</strong></p><p>Given that EEG data is a collection of voltage potentials over time across recording channels located on the scalp, the instinct of researchers has been to process that data as a time-series. Feature extraction is often needed to facilitate Machine Learning (ML)/Deep Learning (DL) modeling. For example, you can simply pass EEG channel data one by one to models. Lets say that you have a system with 64 electrode channels, this would mean that you would now have 64 time-series per participant and per stimulus condition as input to the model.</p><p>If having this many repeated measures is too much, then you can also create a grand average across all recording channels. Perhaps it is also useful to consider that certain channels are more relevant than others as they may be located in relevant brain regions. Clustering methods such as k-means can then take all your EEG channels and help you organize them into clusters based on their scalp topography. With this you can now simply pass to the model the EEG channels that are in specific clusters, such as in the frontal cortex or occipital.</p><p>Using data of specific channels based on their scalp locations can be arbitrary, therefore clustering methods can consider the amplitude of the signal or energy at specific frequencies. You can also get rid of channel data and decompose it into a matrix of independent components. Or if you prefer a reduction in data dimensionality, a researcher can select components that explain the most variance. The above-mentioned techniques can also be used as the signal is processed in the frequency domain where the signal is now frequency over time.</p><p>For ML models the feature extraction process can be exhaustive, as for every one feature that is extracted it can follow a combination of the processing steps previously outlined. It is also up to the researchers to validate how many and what features are necessary. On the other hand, DL approaches offload the extraction of features to the neural network layers that encode the input into a condensed representation. But even with a DL approach, many researchers still find it necessary to transform it into a more accessible representation. DL architectures used to process EEG inputs formatted as activity over time include subclasses of Recurrent Neural Networks (RNNs), which explicitly learn temporal dependencies of their inputs. Other classes of architectures such as Multilayer Perceptrons (MLPs), Convolutional Neural Networks (CNNs), Transformers and so on, only care that the input is formatted as a 1 or 2-dimensional input vector. Unlike with RNNs, these other architectures learn spatial invariant relationships of their inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8CWr3bIywF81xzdnd69uFA.png" /><figcaption>Music classification from brain responses using CNNs.</figcaption></figure><p><strong>EEG Studies</strong></p><p>Despite the dependence on feature extraction, previous approaches have come a long way in retrieving information from brain responses. For example, researchers have found ways to optimize deep brain stimulation systems used on patients with Parkinson’s disease to lessen the side effects and improve the battery life of their brain interfaces. They collected electrical signals with invasive implants directly on the brain. That data was then processed as single channel inputs to 1-dimensional CNN layers. This let the model learn to feature extract the signal itself and then use it as input to an RNN model. Performance was at 88% accuracy as the model recognized when a patient was pressing a button, reaching for a target, or speaking. Furthermore, a study by Lawhern et al., (2018) developed EEGNet, a model that uses 2-dimensional CNNs to process EEG data better than out of the box state-of-the-art algorithms. Such a method takes advantage of EEG channel topography as it formats the data to be processed as a channel by time matrix and shows that it can generalize to various data collection procedures.</p><p>In the category of acoustic stimuli, Stober et al., (2014) presented participants to 24 different 100 ms long sinusoid rhythms originating from tribal cadences. Without depending on feature extraction of the brain signals, their model demonstrated it could recognize which specific tribal cadence participants were listening to at 24.4% performance. When classifying speech stimuli, a study by Moinnereau et al., (2018) showed 83.2% classification. While depending on feature extraction, their RNN architecture was tasked to recognize from brain signals when someone is listening to the English vowels (~0.5 sec) ‘a’, ‘i’, and ‘u’. Yu et al., (2018) took this further by classifying 8 different types of (~10 sec) vocalizations at ~81%. Interestingly, their analysis showed that without relying on feature extraction the performance was ~61% but performance jumped ~20% when depending on extracted features from the stimulus. These studies have since become precursors for the explicit Computer Vision approaches used by newer studies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-UJulrbivExCi-c7kh6XQ.png" /><figcaption>Examples of EEG as images used explicitly in Computer Vision. Left is an EEG image (125 x 125) of its voltage without feature extraction. Right is an EEG image (63 x 125) of its spectral information per channel extracted and formatted into a rectangular image input.</figcaption></figure><p><strong>EEG as Images</strong></p><p><em>Classification</em></p><p>The previous examples of processing EEG data with DL approaches showed a step towards a fully end-to-end procedure. In some cases, researchers understood that the strength and practicality of 2-dimensional CNNs would be of use to fit their data but were not able to develop end-to-end approaches. But why is it important for these models to be end-to-end?</p><p>Prior studies have been able to develop strong proof-of-concepts while not needing for their modeling to be end-to-end. But for the purposes of scaling these insights into usable applications, many of these studies fall short in replicability, efficiency, and naturalistic use context. The more parameterization and validation steps in either the data collection, feature extraction, or data modeling makes studies harder to reproduce outside the ‘chef’s kitchen’. This puts into question whether such findings may be scaled into consumer use cases. Therefore, if a study depends more on careful feature extraction, use cases narrow. We can also see how this may affect efficiency of applications if the data, much like the food at pop-up Michelin star restaurants, can only be handled at such a highly specialized scale. Lastly, a core concern is whether any methodology can allow for the data to be more naturalistic and better match scenarios of everyday experiences.</p><p>Sonawane et al., (2021) addresses many of the previously mentioned concerns by comparing performance of modeling procedures that treat their EEG data in the time-domain vs into a type of spectral image. They collect data from participants passively listening to 12 familiar songs for ~ 2 mins per song. Given ~1 second of their EEG data, their strongest model could recognize what song participants were listening to at 84.96%. Performance dropped off drastically to ~9% when the EEG data was not presented with its extracted frequency information.</p><p>This was taken a step further in another study where the researchers developed end-to-end models for music recognition, much like a Shazam app but for your brain (Ramirez-Aristizabal et al., 2022). The researchers explicitly studied CV modeling procedures, as the architecture for their main model (~88.69%) followed that of AlexNet, a historically state-of-the-art image processing model. They also demonstrated the capability for transfer learning (~93.05%) with an ImageNet pretrained ResNet-50, which is commonly used in industry applications for image classification. The strongest result showed that the data did not need feature extraction steps and high performance was achieved simply by being formatted as a [Channel x Samples] matrix, which the models would interpret as a grayscale image. Furthermore, the dataset used in this study came from brain responses to 10 unfamiliar songs of 4 min length. Making the data used a tougher test case along those dimensions, which bodes well as a naturalistic scenario of music listening.</p><p><em>Reconstruction</em></p><p>Moving beyond classification, other studies have sought to recreate the audio signal participants listened to using their EEG as input to a model. This has required the mapping of some input to an image target. The target image for these types of procedures is typically the time-aligned Mel-Spectrogram image of the audio. Ofner &amp; Stober (2018), developed a model to reconstruct the music spectra from participants’ brain responses. Such a method was successful in establishing a proof-of-concept that music information beyond the simpler classification case could be retrieved from brain responses, but it was dependent on feature extraction inputs from the stimuli along with more complex training procedures.</p><p>Another study building from this developed deep 2D CNN regressor models in an image-to-image translation task (Ramirez-Aristizabal et al., 2022). Such a method explicitly borrows CV methodology used to denoise images, with the underlying modeling assumption that the EEG ‘images’ are a noisy version of the music spectra. Despite such an assumption not having much neuroscientific basis, the predictive power of the models successfully reconstructed the Mel-Spectrograms of the songs. Furthermore, those reconstructed spectra were then turned into listenable waveforms and presented to new participants to discriminate in a two-alternative match-to-sample task at ~85% classification performance. What this means is that the quality of the spectra reconstructions was strong enough to allow for others to listen to music from someone else’s brain and discriminate it.</p><p><strong>Computer Vision for Efficient and Naturalistic Applications</strong></p><p>Earlier approaches towards acoustic information retrieval have shown us what is possible to extract from someone’s brain signal. Consequent studies that have taken a CV approach have since then demonstrated a proof-of-scalability. In terms of efficiency, it was shown that end-to-end classification is possible without many trainable parameters. The Sonewane et al., (2021) study’s best model required 1 feature extraction step while their model having 1,678,156 trainable parameters. On the other hand, the Ramirez-Aristizabal et al., (2022) classification study demonstrated end-to-end with a model of 179,132 trainable parameters. This bodes well for deployment purposes where such an application needs less processing and can be contained with less memory storage needed. More importantly, using different datasets, both studies open a window into how a Shazam app for your brain could work efficiently using CV.</p><p>Naturalistic music listening scenarios require the stimuli to be complex which entail them to contain vocals, overlapping genres, digital/acoustic textures, and be of a song’s full length. This contrasts from other studies not using CV methods that depend on short, repeated, and simple acoustic stimuli. What allows for this methodology to handle brain responses to long audio recordings, is that unlike RNNs which explicitly learn the temporal dependencies between time points, CV architectures learn spatial invariant features. This makes it possible to learn things ‘frame by frame’. For example, second 10 of brain response to song #1 would be the input aligned to the target Mel-spectrogram of the original song #1 at the 10th second. Thus, putting the focus of resolution to a ‘frame by frame’ level facilitating models to map brain data to acoustic stimuli and outputs to be an interpretable example, like a song someone can recognize.</p><p><em>Figures of EEG data were generated using the publicly available NMED-T dataset (Losorelli et al., 2017) from the Stanford Research Data collection. </em><br>https://exhibits.stanford.edu/data/catalog/jn859kj8079<br><em>Latest research demonstrating reconstruction of music from brain responses. <br></em>https://arxiv.org/pdf/2207.13845.pdf</p><p><em>Following this article will be a series of Python notebook tutorials guiding you step by step on using Computer Vision for brain responses to acoustic stimuli.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f45cd5a84078" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/retrieving-audio-information-from-brain-responses-with-computer-vision-f45cd5a84078">Retrieving Audio Information from Brain Responses with Computer Vision</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>