<?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 Charles Whetstone on Medium]]></title>
        <description><![CDATA[Stories by Charles Whetstone on Medium]]></description>
        <link>https://medium.com/@groundcontrolcharles?source=rss-5ece04b33c80------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G8AMtK0Ru-VuBuZh1Uc49A.jpeg</url>
            <title>Stories by Charles Whetstone on Medium</title>
            <link>https://medium.com/@groundcontrolcharles?source=rss-5ece04b33c80------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:25:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@groundcontrolcharles/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[Electric Crust Dev Log #1: I Made a Space Pizza Game]]></title>
            <link>https://groundcontrolcharles.medium.com/electric-crust-dev-log-1-i-made-a-space-pizza-game-9ba4544c2bfb?source=rss-5ece04b33c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ba4544c2bfb</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity-game-development]]></category>
            <category><![CDATA[mobile-game-development]]></category>
            <category><![CDATA[indie-game-development]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Charles Whetstone]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 20:36:43 GMT</pubDate>
            <atom:updated>2026-11-30T20:36:43.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*sSmwEXkkfJSe9XgdSyGBHg@2x.jpeg" /></figure><p>Here’s a fun nugget. For most of its life, Electric Crust had never run on a phone, initially built as a mobile game. This game has been in active development for over 14 months.</p><p>It lived in the Unity editor on my MacBook Pro. It had stages. It had bosses. It had cinematics and a list of pizza-themed weapons I’m way too proud of. What it didn’t have was a single minute on the kind of device it was being built for. Once that clicked and I stopped being lazy, my whole to-do list got rearranged. None of the polish mattered until I knew the thing actually ran in someone’s hand.</p><p>It does now. It runs on Android, iOS, Windows and in a web browser. There’s a free demo on Steam. And it launches on iOS and Android on January 26, 2027. So this seemed like a good time to start writing stuff down.</p><h3><strong>What this series is going to be:</strong></h3><p>One post every two weeks (or so), taking turns:</p><ul><li><strong>Technical posts</strong>: the actual problems, down to the code. Frame pacing on phones, a pause button that didn’t pause, build pipelines, and the tools that keep a one-person project from falling apart.</li><li><strong>Story posts:</strong> the decisions and the mistakes. Why the game is one price with no ads, what it’s like running a tiny studio around a day job, and what launch looks like from the inside.</li></ul><p>If you make games, maybe the technical ones save you a weekend. If you just like games, the story ones are for you. Either way there will be pizza jokes and action movie references. I’m not sorry.</p><h3><strong>The game:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*gGy1wAVqTlIQnB72m_7-EA@2x.jpeg" /></figure><ul><li><strong>Electric Crust: Galactic Pizza Delivery</strong> is a side-scrolling arcade shooter. You’re Ace, a delivery pilot hauling pizza across the galaxy for Chef Rex. Ace would like to get paid and never be called a hero. Then the outposts go dark, the Federation starts handing her ranks she didn’t ask for, and the delivery route gets a lot less friendly.</li><li>Ace says it better than I can in one of the cinematic scenes: “The federation’s best hope is a delivery pilot with a grudge and a cargo hold full of pizza. Their luck is worse than mine.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*2Ft1JYpmt61da48JLjX0dw@2x.jpeg" /></figure><p><strong>What’s in the game:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Vo1Pa1AVUPKMQKUJvs_bcw@2x.jpeg" /></figure><ul><li>Fifteen stages and three tiers of bosses, in 16-bit pixel art with CRT scanlines in cinematics and plenty of neon.</li><li>A garage where you spend the tips you earn by delivering pizza fast. 21 ships and 9 weapons, including four topping weapons and a full pepperoni pie that zaps things with lightning from the crust.</li><li>The Pie Meter. Collect pizza, fill all eight slices, and for eight seconds every shot is a pizza slice.</li><li>One price, and that’s it. No ads, no in-app purchases, no account, no data collection. Every tip is earned by playing. Don’t you miss only one price for a whole game?</li></ul><h3><strong>Where things stand</strong></h3><ul><li><strong>Steam:</strong> the store page and trailer are up, and the free demo has been live since the end of October. Full Steam release is planned for April 7, 2027.</li><li><strong>Android</strong>: on Google Play’s internal testing track since October. It installs from the store and plays on a real tablet, which still feels a little like magic.</li><li><strong>iOS</strong>: the iOS build passed Apple’s beta review and is out to external testers on TestFlight.</li><li><strong>Polish</strong>: last week alone was over a hundred changes. Three things have to land before launch: a Reduce Flashing option for anyone sensitive to flashing effects, a three-second warning before every boss, and better haptics on iPhone and iPad. A batch of fixes is built and waiting on me to try them on actual devices.</li></ul><h3><strong>What the physical device taught me</strong></h3><p>Getting off the editor and onto real hardware was a humbling, yet refreshing experience. In a good way, mostly. A few highlights, and each one gets its own post later:</p><ul><li>The game ran on way fewer Android phones than it should have. Lowering the minimum Android version opened it up to a much bigger chunk of devices.</li><li>Two systems were quietly arguing over who controlled frame timing. Settling that fight is also what got the game running at 90 frames a second on screens that support it.</li><li>Pausing didn’t pause everything. Anything running on real-world time just kept going, including one boss death sequence that froze the whole game instead of finishing. Fun times.</li><li>Enemy spawns stuttered on lower-end hardware until I sized the object pools to match what a stage actually uses.</li></ul><p>None of that shows up in the Unity editor. All of it shows up in a player’s hand.</p><h3><strong>How it gets built</strong></h3><p>By day I’m a software engineer, so Electric Crust happens in the evenings and on weekends under my personal studio, Swamp City LLC. I lean on AI coding tools to assist with development and testing. One agent writes the code, a second one reviews it, and nothing gets committed until I’ve reviewed it and said yes. Every morning at six I have an automated short report that lands in my inbox with a project overview of what changed, what broke and what needs me. I’ll write up the whole setup later, including the parts where it falls over.</p><h3><strong>What’s next</strong></h3><ul><li>January 26, 2027: launch on iOS and Android.</li><li>February 22 to March 1, 2027: Steam Next Fest, with the demo.</li><li>April 7, 2027: full release on Steam.</li><li>Next up is the first technical post: how I got a Unity game running smooth at 90 frames a second on a phone, and the timing bug that was hiding in plain sight the whole time.</li></ul><h3><strong>Come along for the ride</strong></h3><p>The most helpful thing you can do right now is wishlist it on <a href="https://store.steampowered.com/app/5163610/Electric_Crust_Galactic_Pizza_Delivery/">Steam</a>. If you’ve shipped a game yourself, I’d love to hear what you wish you’d known two months out. Drop it in the comments.</p><p>Thanks for reading.</p><p>Charles</p><p><a href="https://electriccrustgame.com/"><em>Rest in pizza.</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*WqCwLqqeLD2xDp7nvwZJyQ@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ba4544c2bfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Weekly Email Calmed Our Family Calendar Chaos]]></title>
            <link>https://groundcontrolcharles.medium.com/how-a-weekly-email-calmed-our-family-calendar-chaos-cbb47f3d800d?source=rss-5ece04b33c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbb47f3d800d</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[parenting]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[family]]></category>
            <dc:creator><![CDATA[Charles Whetstone]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 14:47:24 GMT</pubDate>
            <atom:updated>2026-11-01T15:35:49.625Z</atom:updated>
            <content:encoded><![CDATA[<p>A weekly rundown every Sunday and a quick reminder every weekday morning replaced our scattered calendars, school emails and sticky notes. Here is how it works, and how to build your own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vIomRsGs5mAWAEQYZv3Jg.png" /><figcaption>The Sunday report and the weekday look-ahead. Sample data, not our real week.</figcaption></figure><p>If you have ever stood in a school pickup line wondering what is life, or whether today was early release, this post is for you.</p><p>We are a big family. Between two working parents, four kids, two schools, a co-parenting schedule across three households, practices, appointments and the occasional birthday party we forgot to buy a gift for, our week used to live in about seven different places. Calendars on two different platforms. School emails. Newsletters with PDF attachments. Text threads. Sticky notes. Memory.</p><p>So I built something simple: a weekly family digest. One email, every Sunday evening, that pulls everything together into a single, readable page, plus a short look-ahead email on weekday mornings to keep it current. It has quietly become one of the most useful things in our house.</p><h3>The problem: our schedule lived everywhere</h3><p>The hard part of a busy family is not any single event. It is that the information is scattered, and nobody has the full picture at once.</p><p>Here is what that looked like for us:</p><ul><li><strong>Calendars on different platforms.</strong> My partner and I share an Apple iCloud calendar. The kids’ other households share their calendars with me through Google Calendar. None of them show the others unless you work at it.</li><li><strong>School emails that pile up.</strong> Teacher messages, district notices and weekly newsletters arrive constantly. The one line that matters (picture day, no school Friday, bring a costume) is usually buried in paragraph four or inside an attachment.</li><li><strong>One person holding it all.</strong> In most families, one parent ends up as the human calendar. That is exhausting, and things still slip.</li><li><strong>Weekends without a plan.</strong> When we did get a free weekend, we spent half of it deciding what to do.</li></ul><p>We did not need another app to check. We needed the information to come to us, already sorted, at the moment we plan our week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xC5NfE2b8KymwKspKv00MA.png" /><figcaption>Seven places to check became two emails that come to us.</figcaption></figure><h3>What lands in our inbox every Sunday</h3><p>At 6 PM every Sunday, my partner and I each get the same email. It is rebuilt from live data every week, so it is never stale. It is designed to be read in about five minutes on a phone, with a warm, earthy color scheme instead of a wall of text.</p><p>Each issue covers:</p><ul><li><strong>The week at a glance.</strong> Every event from every household’s calendar, merged into one day-by-day view.</li><li><strong>School notes.</strong> School messages and newsletters from the past week, summarized into a few lines each, with the important dates pulled out.</li><li><strong>Birthdays coming up,</strong> with a gift idea or a reminder to grab something before the party.</li><li><strong>Weather for the week,</strong> so we know which days need jackets or rain plans.</li><li><strong>Local events</strong> happening around our area that week.</li><li><strong>Ideas for our free weekends.</strong> On weekends without the kids, it suggests outings that match our interests: odd little museums, bookstore events, spooky and sci-fi happenings, and road-trip-worthy spots a couple of hours away. On kid weekends, it leans toward family-friendly events.</li></ul><p>The last section was a bonus I did not expect to love as much as I do. It turned “what should we do this weekend?” from a debate into a menu.</p><h3>The weekday look-ahead: Sunday’s plan, kept fresh</h3><p>A weekly plan is great on Sunday night. By Wednesday, things have moved. So on weekdays we also get a short daily look-ahead email.</p><p>Where the Sunday digest is the big picture, the weekday email is the quick check before the day starts:</p><ul><li><strong>Today and tomorrow,</strong> pulled from the same calendars, so anything added or changed since Sunday shows up.</li><li><strong>Heads-up items first.</strong> Deadlines, two events at the same time that each need an adult, tight turnarounds between places, and no-school or early-release days.</li><li><strong>Fresh school notes,</strong> if a new message arrived since the last email.</li><li><strong>The weather,</strong> so the jacket decision happens before the door, not at it.</li></ul><p>It is deliberately short. If the Sunday email is the map, the weekday email is the turn signal.</p><h3>Small touches that make people actually read it</h3><p>An automated email only helps if people open it. A few design choices made ours something we look forward to instead of something we archive:</p><ul><li><strong>A theme instead of a template.</strong> Ours uses a warm, earth-tone palette (deep greens, clay, sand and soft browns) instead of the bright blue of a typical notification. It feels like a family newsletter, not a system alert.</li><li><strong>A color for each kid.</strong> Every child has their own color, so you can scan the week and instantly see whose day is packed.</li><li><strong>A busy grid.</strong> A small grid shows how many events each child has per day. Overloaded days jump out before you read a single line.</li><li><strong>Light and dark mode.</strong> The email adjusts to however your phone is set, so it is easy to read at night.</li><li><strong>At most four heads-up items.</strong> The most important things go at the top, and the list is capped so it never turns into noise.</li><li><strong>A “weird corner.”</strong> Each week ends with a rotating odd fact, a joke and a quote, each with its source. It is the part the kids ask about.</li><li><strong>A seasonal touch.</strong> In the fall, ours adds a spooky list for both kids and adults.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYvnWJvh9pax31FiU42IMg.png" /><figcaption>The busy grid makes the overloaded day obvious before you read anything else.</figcaption></figure><p>More theme ideas if you build your own:</p><ul><li><strong>Seasonal palettes</strong> that shift automatically: cool blues in winter, fresh greens in spring, warm oranges in fall.</li><li><strong>Holiday editions</strong> with a matching accent color and a short themed section, such as a costume checklist in October or a gift tracker in December.</li><li><strong>A school-year countdown</strong> to the next break or the last day of school.</li><li><strong>A rotating family spotlight,</strong> where one person picks the weekend outing or the weird-corner fact each week.</li><li><strong>A “wins of the week” line</strong> where anyone in the family can submit something to celebrate.</li><li><strong>Plain words over icons.</strong> Short, clear sentences read better than a screen full of symbols, especially on a small phone.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAV3fp3L3I4uES8hJdSRYA.png" /><figcaption>Same layout, different season. A new palette makes the email feel fresh without rebuilding it.</figcaption></figure><h3>What changed for us</h3><p>The biggest change is not technical. It is that my partner and I now start every week looking at the same page.</p><ul><li><strong>No more “did you know about this?”</strong> We both see the same events at the same time, from every household.</li><li><strong>Sunday evening became our planning moment.</strong> The email arrives, we read it, we sort out who is driving where. Ten minutes instead of a week of surprises.</li><li><strong>The mental load is shared.</strong> Nobody has to be the family’s human calendar anymore. The digest is.</li><li><strong>School emails stopped being a chore.</strong> I still get them, but I no longer have to read every one the moment it lands. The important dates show up on Sunday.</li><li><strong>We actually use our free time.</strong> Having a short list of interesting things nearby means our free weekends feel planned instead of wasted.</li></ul><p>Before, I would get a phone reminder that it was time to leave for one of my kiddos’ doctor appointments at the exact moment it was time to leave. Now we see it coming days ahead. The digest has taken us from living life on the extreme edge to actually being able to prepare. It has been a lifesaver for balancing these events with work.</p><h3>How it works, in plain language</h3><p>Under the hood, the digest is a small program that runs on a schedule and does four things in order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dv17u6d_7QlPsJproty4Wg.png" /><figcaption>Four sources, one small program, two emails.</figcaption></figure><ol><li><strong>Gather.</strong> It reads the shared calendars from every household, the past week of school emails, the weather forecast and a list of local events.</li><li><strong>Summarize.</strong> An artificial intelligence model reads the school newsletters and boils each one down to a few lines and a list of dates.</li><li><strong>Build.</strong> It lays everything out in a clean, phone-friendly email page.</li><li><strong>Send.</strong> It emails the finished page to both parents on Sunday at 6 PM, and the shorter look-ahead on weekday mornings.</li></ol><p>The program lives on a computer at home that stays on. For me, that is a Mac mini that runs our custom home automations.</p><p>I did not write most of the code by hand. I described what I wanted to AI coding assistants, reviewed what they produced, and approved every change myself. This human-in-the-loop, keep-iterating process is fun. In a sense, it turns everyone into a project-managing puppet master. Go with the flow, you know?</p><h3>Build your own: the tools you need</h3><p>You do not need to be a professional developer to build something like this, especially with AI coding assistants doing much of the typing. You need about eight pieces, and most of them are free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W7BvgD5bvNk9H9io19CBJA.png" /><figcaption>The eight pieces, what we use, and an easier option for each.</figcaption></figure><ul><li><strong>A computer that stays on</strong> runs the job on schedule. I use a Mac mini. Any home computer, a Raspberry Pi or a cloud automation service works too.</li><li><strong>Your calendars</strong> are the heart of the digest. We use Apple iCloud calendars plus Google Calendars shared from the other households. Outlook or a shared calendar subscription link works just as well.</li><li><strong>School messages</strong> bring in the dates and notices. Ours reads school notification emails from Gmail with read-only access. Any school email or parent app that sends email copies will do.</li><li><strong>An AI model</strong> turns long newsletters into a few lines and dates. I use Claude (any Sonnet model or above, in my case). Any major AI model that offers an interface for programs can do this.</li><li><strong>Weather</strong> comes from Open-Meteo, which is free and needs no account. Any weather service with a free tier is fine.</li><li><strong>Local events</strong> come from my own local events website. Library, city or parks calendars, or a local events site, are good sources.</li><li><strong>An email sender</strong> delivers the finished page. I use my iCloud email account with an app-specific password. Gmail with an app password, or an email service like Resend, also works.</li><li><strong>A scheduler</strong> runs it at the right times. Mine is the Mac’s built-in scheduler. Any scheduler, or a no-code automation tool like Make or Zapier, can do the job.</li></ul><p><strong>The one tool that made it possible:</strong> an AI coding assistant. I used two, Claude Code and Codex, and described what I wanted in plain English. I reviewed and approved every change before it was saved.</p><h3>A simple order to build it in</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBcOyQY-VSbauJp7rOiHQA.png" /><figcaption>Step one alone is already useful.</figcaption></figure><ol><li><strong>Start with one calendar and one email.</strong> Get a plain list of next week’s events landing in your own inbox on a schedule. That alone is useful.</li><li><strong>Add the other calendars.</strong> Merge them into one day-by-day view.</li><li><strong>Make it look good.</strong> Pick a color scheme, add a color per person, and test it on your phone in light and dark mode.</li><li><strong>Add weather and local events.</strong> These are easy wins with free sources.</li><li><strong>Add school email summaries.</strong> This is the most complex piece, so save it for when the rest is stable.</li><li><strong>Add the second recipient.</strong> Send a test to yourself first, then turn on your partner’s copy.</li><li><strong>Add the weekday look-ahead.</strong> Reuse the same pieces with a shorter window and a smaller layout.</li></ol><h3>Tips from building ours</h3><ul><li><strong>Make every source optional.</strong> If the weather service is down, the email should still send and simply note what was missing.</li><li><strong>Keep a test mode.</strong> Send to yourself only until you trust it.</li><li><strong>Guard against double sends.</strong> Make sure a family member can never get the same weekly email twice.</li><li><strong>Treat email text as information, not instructions.</strong> When an AI model reads school emails, tell it clearly that the email content is data to summarize, nothing more.</li><li><strong>Skip sensitive messages.</strong> Ours never summarizes anything about logins, codes or passwords.</li></ul><h3>Keep your family’s details private</h3><p>A family digest touches the most personal data you have: your kids’ names, their schools, where everyone will be and when. I treated privacy as a feature from day one.</p><ul><li><strong>Keep personal details in separate settings files.</strong> Names, schools, calendar links and addresses live in a few private files that are never shared or uploaded with the code.</li><li><strong>Keep passwords in a secure vault.</strong> Ours live in the Mac’s built-in Keychain, never in a file and never pasted into a chat.</li><li><strong>Use read-only access.</strong> The digest can read school emails but can never send, delete or change anything in the inbox.</li><li><strong>Check before you save.</strong> A small automatic check blocks any change that would accidentally include personal details.</li><li><strong>Respect the other households.</strong> Information shared with you from another household’s calendar shows only what you need, without extra details like handoff times or dollar amounts.</li></ul><h3>The real payoff</h3><p>The technology here is not the point. The point is that every Sunday evening, my partner and I sit down with the same page, and the week ahead feels manageable before it starts.</p><p>If your family runs on scattered calendars and buried school emails, you do not need a perfect system. Start with one calendar and one email to yourself. Let it run for a few weeks. Then add the next piece.</p><p>If you build one, I would love to hear what you put in yours. Tell me in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbb47f3d800d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data & Decibels: Unraveling My Spotify Data]]></title>
            <link>https://groundcontrolcharles.medium.com/spotify-odyssey-69362a837ed4?source=rss-5ece04b33c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/69362a837ed4</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[spotify]]></category>
            <dc:creator><![CDATA[Charles Whetstone]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 02:36:19 GMT</pubDate>
            <atom:updated>2026-11-01T15:10:07.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ten years of listening history, a Tableau story, and a model that tried to guess my genres</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WvaLAGinEN4HN4Et.png" /></figure><p>My Spotify history reads like a fever dream. <a href="https://open.spotify.com/playlist/37i9dQZF1DX6ujZpAN0v9r?si=70e448ea34174687">Shoegaze</a> and <a href="https://open.spotify.com/playlist/37i9dQZF1EIfTeOi9n8yLn?si=1f3b631e92a84c4d">indie surf</a> sit right next to stuff I can’t even explain. I set out to build a simple dashboard with a few key numbers. Then I got curious about whether I could predict genres the way Spotify’s recommendations seem to, and the project got a lot bigger.</p><p>I found patterns I didn’t expect. Some of them line up with what was going on in my life at the time, and a few say a lot about how much I hate silence. Here’s what I found.</p><p><em>A quick note: the underlined words and phrases throughout are links. Most go to Spotify playlists or my Tableau charts, and the rest point to documentation if you want more detail.</em></p><p>Below you’ll find highlights from my Tableau Public visualizations, what I learned building the genre model, and some thoughts on the music and the problems I ran into along the way.</p><p>If you want to build something like this yourself, there’s a technical guide after my final thoughts that walks through it step by step. I updated it on November 1, 2026 to match Spotify’s current API. And if you want something to listen to while you read, here’s Spotify’s playlist of my top songs from 2024.</p><p><a href="https://open.spotify.com/playlist/37i9dQZF1FoG7V97DYnblH">My top songs from 2024 (Spotify playlist embed)</a></p><h3>Data Visualization with Tableau</h3><p>I’ll start with the <a href="https://public.tableau.com/app/profile/charles.whetstone/viz/SpotifyListeningHistoryv1InitialDashboard/Spotify">Tableau Story</a>. This is the part of the project where I learned the most about Tableau, and it’s interactive, so the charts change as you click around.</p><p>My favorite part is the embedded player. Click the green rows next to a track name and you can hear a preview of the song right there. It’s a small thing, but I love it.</p><p>Link: <a href="https://public.tableau.com/app/profile/charles.whetstone/viz/SpotifyListeningHistoryv1InitialDashboard/Spotify">Full Tableau Story</a> (works best on a laptop or desktop)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*04ve8COjCF926Hm-.png" /></figure><h3>Overall Statistics: A Decade of Music</h3><p>The first page of the story gives the big picture:</p><ul><li>7,816 artists, 1,957 unique genres, and 24,346 unique songs.</li><li>35,182 hours of music played, or about 2.1 million minutes. I still can’t quite wrap my head around that one.</li><li>Genres run from indie rock to neo-psychedelic, and that’s before you get into the weird ones.</li><li><a href="https://open.spotify.com/track/37pKTyMwalomKCZjxTc2QZ?si=V0MCBltQQ-mb1E3tq04MAw">“Cherry-coloured Funk</a>” by Cocteau Twins and “<a href="https://open.spotify.com/track/03OEgOe59LE43VPCJ3ZB3p?si=apZCf6nMRdm-1NT15j7mUw">The Axis</a>” by Thee Oh Sees/Osees are near the top of my most played.</li><li><a href="https://open.spotify.com/playlist/37i9dQZF1EQqkOPvHGajmW?si=bs6CGR0rRAaQLHm4b8BzCw&amp;pi=u-ZFLjHi7mQ0S9">Indie Rock</a> and <a href="https://open.spotify.com/playlist/37i9dQZF1EIfidwAjFvKwc?si=LVVenzlOQRSwQlKKEWvN4g&amp;pi=u-76XcD1DISLOS">Shoegaze</a> lead my top genres. <a href="https://open.spotify.com/playlist/37i9dQZF1EIdnQSaqyLxUn?si=QJ70VyVRRqGUqfo8A1rQ2Q&amp;pi=u-yR81s83qQDW0">Bubblegrunge</a>, <a href="https://open.spotify.com/playlist/37i9dQZF1EIcZvIxN5tRy3?si=LeCiZo5aTne16YmTDOwsXg&amp;pi=u-Jp1pMYX9QXqh">Lo-Fi</a>, and <a href="https://open.spotify.com/playlist/37i9dQZF1EIeVwufsZykE5?si=gVxl6LmTRv6cjAbTENv3BA&amp;pi=u-urRhqn0lSRWN">Crank Wave</a>show up too, and there’s plenty more buried in there.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SoUk9hBwT-ZOtIGH.png" /></figure><p>Time of day tells its own story. Mornings lean toward upbeat <a href="https://open.spotify.com/playlist/37i9dQZF1EQqkOPvHGajmW?si=uQcntURMRzq2X7xVMCxDfg&amp;pi=u-ECYinKa_Rd22">indie</a>, afternoons get <a href="https://open.spotify.com/playlist/37i9dQZF1DXcNf6sH1qnKU?si=pUWP1sKxRAGyuYpPoU38gA&amp;pi=u-vzuc8sf0SiCn">dreamier</a>, and evenings are when the <a href="https://open.spotify.com/playlist/37i9dQZF1EIhfLKMAPxq4i?si=UodxHEc9R5CMuxqmshJoHg&amp;pi=u-zORmfv94QmaQ">heavier</a> and more <a href="https://open.spotify.com/playlist/37i9dQZF1EIdcKjz0pIYET?si=tE10zayiR6Gg9gwpdBsxjA&amp;pi=u-SJHPxzxIQ1m8">experimental</a> stuff comes out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7OsNOe0rXM4VMe52.png" /></figure><p>There are big spikes in December and February. Some of that is winter break and year-end playlists. Mostly it’s me using music to get through <a href="https://open.spotify.com/artist/7EFB09NxZrMi9pGlOnuBpd">the horrors</a> of winter.</p><p>My listening grew every year from a modest start in 2014. Some days I’d leave music on for my dog, <a href="https://flic.kr/p/2qHXHG5">Alf</a>, while I was out, though that was usually Apple Music.</p><p>2019 and 2020 stand out. Those are the years I went looking for new music the most.</p><h3>Genre Prediction Model</h3><p>I tried a few machine learning approaches and settled on XGBoost. It’s fast and handles big, messy datasets well. I paired it with RandomizedSearchCV to tune the hyperparameters, which got me good accuracy without waiting forever on training runs.</p><p>Link: <a href="https://www.kaggle.com/code/charlesbwhetstone/spotify-odyssey-sample-notebook">Sample Kaggle Notebook for Genre Prediction</a></p><p>This slide from the Tableau Story shows two things. The top chart compares accuracy, precision, recall, and F1-score by year. The bottom chart shows accuracy holding steady over time, even as my listening habits changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eh3vzJ2VTMakVYw_.png" /></figure><p><em>Top: performance metrics by year. Bottom: accuracy over time.</em></p><p>Average accuracy came out around 95%. What interested me more than the number was what the model picked up on: the genres that kept showing up in my playlists year after year.</p><p><strong>Key Results:</strong></p><ul><li>Accuracy averaged about 95%, ranging from 91% to 100% depending on the year.</li><li>Macro average precision hit 1.0 in the early years and dropped to 92% by 2024.</li><li>Macro average recall went from 96% in 2017 to 90% in 2024, which held up well given how lopsided the genre counts are.</li><li>Weighted average F1-score was 1.0 in 2014 and stayed above 91% after that.</li></ul><p>The best settings from tuning with RandomizedSearchCV:</p><ul><li>n_estimators: 3000 to 3500</li><li>learning_rate: 0.1</li><li>max_depth: 5</li><li>subsample and colsample_bytree: 0.8</li></ul><p>Precision and recall stayed balanced from year to year, which is what I wanted from a model juggling this many genres. Performance slipped a little in recent years. My guess is that my listening got more varied, so there were more genres to tell apart. Adding features or accounting for how my habits shift over time could help, and that’s on my list for the next round.</p><h3>Reflection</h3><p><a href="https://open.spotify.com/track/5NabM6VYeGHGZxzf2u5bV1?si=1134d376373b421e">“The future is not set; it is what we make it.</a>” I started this project to look at my listening habits, and I ended up thinking a lot about prediction and control, and about what shapes our experiences from the inside and the outside.</p><p>I tend to wander into the ethics of machine learning and AI, so I’ll keep this part short. When people talk about prediction, they’re usually talking about control: guessing what happens next and steering it. Working on this made it clear to me that a prediction is never final. People’s tastes change and algorithms get updated, so the predictions have to keep up.</p><p>Spotify is a good example. Its algorithms tend to loop the same small set of tracks into generated playlists. They’re accurate about what I liked before, and that’s exactly the problem. They leave very little room for anything new.</p><p>So I started doing it by hand. Every month I build a playlist that mixes new finds with old favorites, and I go looking for genres and artists I haven’t heard yet. You can see the effect in the data. The algorithm and my own digging work better together than either one does alone.</p><p>This project had its share of head scratchers. I got frustrated more than once and had to get creative to fill the gaps in what I knew. Sticking with it and staying curious is what got me through, and I learned a ton because of it.</p><p>Prediction is useful for guessing what comes next, and it also has to leave room for change. My taste in music keeps shifting, and the tools we build should be able to shift with it. The best predictions I can imagine weigh what we already know against what we haven’t found yet.</p><h3>Technical Guide</h3><blockquote><strong><em>Update, November 1, 2026:</em></strong><em> Spotify changed its Web API after I first wrote this. In February 2026 it removed the batch endpoints this guide originally used (Get Several Artists and Get Several Tracks). The single track and artist endpoints still work, so Step 4 now requests one at a time, and the token bucket in Step 3 keeps that under the rate limit. Some developers have also reported the genres field coming back empty or incomplete for some artists, so test a few calls before you build on it. I also added a missing column rename to Step 1 of the model workflow. See Spotify’s </em><a href="https://developer.spotify.com/documentation/web-api/references/changes/february-2026"><em>February 2026 Web API changelog</em></a><em> for the full list.</em></blockquote><p>This guide walks through how I built a genre and artist prediction model with XGBoost and visualized it in Tableau Public. It covers API calls, data prep, feature engineering, training, evaluation, and building the dashboard.</p><blockquote><em>I wrote it using a small sample of my listening history so it stays simple, easy to follow, and free. My full dataset was big enough that I needed </em><a href="https://console.cloud.google.com/"><em>Google Cloud Platform</em></a><em> for hosting, virtual machines, and Python notebooks. If you’d like that version, let me know and I’ll write up the full walkthrough.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6pB5oONQU9GXTqwD.png" /></figure><h3>Request Your Data from Spotify</h3><p>Everything starts with your own data. Spotify lets you request a full archive of your listening history through its GDPR data request tool.</p><p>How to request it:</p><ol><li>Log in to Spotify and go to Privacy Settings in your account settings.</li><li>Submit a data request. Spotify will email you a download link within 30 days.</li><li>The archive has JSON files with your listening history, tracks, artists, and more. Take a close look at how they’re structured. You’ll need fields like spotify_track_uriand master_metadata_album_artist_name for the genre work.</li></ol><h3>Fetching and Processing Spotify Genre Data</h3><p>To train the model, you need genre data, which you pull from the <a href="https://developer.spotify.com/documentation/web-api">Spotify Web API</a> for each track and artist. Plan for authentication, error handling, and rate limits from the start. My <a href="https://www.kaggle.com/code/charlesbwhetstone/spotify-odyssey-sample-notebook">Kaggle Sample Notebook</a> has working examples if you want to follow along.</p><p><strong>Step 1: Create a Spotify App</strong></p><p>First, set up an app to get API access.</p><ul><li>Go to the <a href="https://developer.spotify.com/dashboard/">Spotify Developer Dashboard</a>.</li><li>Create a new app and save the client_id and client_secret. You&#39;ll need both to authenticate.</li></ul><p><strong>Step 2: Authenticate with the </strong><a href="https://developer.spotify.com/documentation/web-api/tutorials/getting-started"><strong>Spotify API</strong></a></p><p>I used the Spotipy library, which handles most of the OAuth flow for you. In cloud environments like <a href="https://www.pythonanywhere.com/">PythonAnywhere</a> or <a href="https://www.kaggle.com/">Kaggle</a>, caching the access token saves you from logging in again on every request.</p><p>Here’s how I handled credentials in Kaggle using Kaggle Secrets:</p><pre>from kaggle_secrets import UserSecretsClient</pre><pre>class SpotifyAPIClient:<br>    def __init__(self, rate_limit_per_minute=120, max_burst_size=10):<br>        user_secrets = UserSecretsClient()<br>        self.client_id = user_secrets.get_secret(&quot;SPOTIPY_CLIENT_ID&quot;)<br>        self.client_secret = user_secrets.get_secret(&quot;SPOTIPY_CLIENT_SECRET&quot;)</pre><pre>        if not self.client_id or not self.client_secret:<br>            raise Exception(&quot;Spotify client ID and secret must be set in Kaggle Secrets.&quot;)<br>        self.access_token, self.expires_in = self.get_access_token()<br>        self.token_acquired_time = time.time()<br>        self.headers = {&quot;Authorization&quot;: f&quot;Bearer {self.access_token}&quot;}</pre><p><strong>Step 3: Rate Limiting and API Requests</strong></p><p>To stay under Spotify’s rate limits, I used a token bucket so requests went out at an even pace.</p><pre>class TokenBucket:<br>    def __init__(self, capacity, refill_rate, max_burst_size):<br>        self.capacity = capacity<br>        self.refill_rate = refill_rate<br>        self.max_burst_size = max_burst_size<br>        self.tokens = capacity<br>        self.last_refill_time = time.monotonic()</pre><pre>    def allow_request(self, tokens_needed=1):<br>        current_time = time.monotonic()<br>        elapsed_time = current_time - self.last_refill_time<br>        self.tokens = min(self.capacity, self.tokens + elapsed_time * self.refill_rate)<br>        self.last_refill_time = current_time<br>        if tokens_needed &gt; self.max_burst_size or self.tokens &lt; tokens_needed:<br>            return False<br>        self.tokens -= tokens_needed<br>        return True</pre><p><strong>Step 4: Fetching Genre Data</strong></p><p>Spotify no longer offers batch lookups, so the client asks for one track at a time to find its artist, then one artist at a time to get the genres. It caches every artist so it never asks for the same one twice, which matters a lot when the same bands show up across thousands of plays.</p><pre>def fetch_track(self, track_id):<br>    url = f&quot;https://api.spotify.com/v1/tracks/{track_id}&quot;<br>    return self.make_api_request(url) or {}</pre><pre>def fetch_artist_genres(self, artist_id):<br>    if artist_id in self.artist_genre_cache:<br>        return self.artist_genre_cache[artist_id]<br>    url = f&quot;https://api.spotify.com/v1/artists/{artist_id}&quot;<br>    response = self.make_api_request(url) or {}<br>    genres = response.get(&quot;genres&quot;, [])<br>    self.artist_genre_cache[artist_id] = genres<br>    return genres</pre><pre>def process_track(self, track_id):<br>    track_data = self.fetch_track(track_id)<br>    artists = track_data.get(&quot;artists&quot;, [])<br>    a_id = artists[0][&quot;id&quot;] if artists else None<br>    self.dict_genre[track_id] = {<br>        &quot;artist_uri&quot;: a_id,<br>        &quot;genres&quot;: self.fetch_artist_genres(a_id) if a_id else []<br>    }</pre><p><strong>Step 5: Data Cleaning and Transformation</strong></p><p>The genre data needed reshaping before I could do anything with it. I “exploded” it so each genre gets its own row, then loaded it into a Pandas DataFrame for analysis and visualization.</p><p>I also stripped out personally identifiable information (PII). This sample doesn’t have any PII fields, but it’s a good habit with real exports.</p><pre># Load and clean genre data<br>df_genre = pd.DataFrame.from_dict(dict_genre, orient=&#39;index&#39;)<br>df_genre.reset_index(inplace=True)<br>df_genre.rename(columns={&#39;index&#39;: &#39;track_uri&#39;}, inplace=True)</pre><pre># Explode genres into rows<br>df_genre[&#39;genres&#39;] = df_genre[&#39;genres&#39;].apply(lambda x: x if isinstance(x, list) else [])<br>df_genre_exploded = df_genre.explode(&#39;genres&#39;)</pre><pre># Save results<br>df_genre.to_csv(&#39;/kaggle/working/My_Genre_Data.csv&#39;, index=False)<br>df_genre_exploded.to_csv(&#39;/kaggle/working/My_Genre_Expanded.csv&#39;, index=False)</pre><p><strong>Step 6: Creating a Master Dataset</strong></p><p>Next I merged the cleaned genre data with the JSON listening history and gave each row a unique ID so it’s easy to trace back.</p><pre>master_df = pd.merge(df_genre, df_json, on=&#39;track_uri&#39;, how=&#39;left&#39;)<br>master_df = master_df[master_df[&#39;genres&#39;].notna()]<br>master_df[&#39;UniqueID&#39;] = &#39;Control_&#39; + (master_df.index + 1).astype(str).zfill(8)</pre><pre>master_df.to_csv(&#39;/kaggle/working/master_genre_audio_with_unique_id.csv&#39;, index=False)</pre><p><strong>Export Data:</strong> Save the cleaned data as CSV files for the next steps.</p><p><strong>Challenges and Solutions</strong></p><ul><li>Rate limits: I used <a href="https://pypi.org/project/backoff/">exponential backoff</a> whenever the API pushed back.</li><li>Missing data: Tracks with no genre data got logged and left out of the predictions.</li><li>Cloud authentication: Caching the token made repeat logins in Kaggle painless.</li></ul><p><strong>Helpful Resources:</strong></p><ul><li>Spotify Web API Documentation: <a href="https://developer.spotify.com/documentation/web-api/">API Docs</a></li><li>Spotipy Library: <a href="https://spotipy.readthedocs.io/en/2.19.0/">Spotipy GitHub</a></li></ul><p><strong>Useful Libraries:</strong></p><ul><li>Pandas: <a href="https://pandas.pydata.org/">Pandas Documentation</a></li><li>JSON Handling in Python: <a href="https://docs.python.org/3/library/json.html">JSON Module</a></li></ul><h3>Prediction Model Workflow</h3><p>This script builds the genre prediction model with Python and <a href="https://www.nvidia.com/en-us/glossary/xgboost/">XGBoost</a>. Here’s what each step does, along with the resources and metrics I used to evaluate it.</p><p><strong>Step 1: Load and Aggregate the Data</strong></p><p>Load the data, group it by track, and calculate total and average listening time. Pandas handles the aggregation and feature engineering.</p><p>Feature engineering:</p><ul><li>Playtime totals and averages (total_ms_played, avg_ms_played).</li><li>Two new features: session_length_hours (listening time in hours) and is_long_session (a flag for sessions over 2 hours).</li><li>Feature scaling: StandardScaler puts numerical features like total_ms_played on the same scale so no single feature dominates training.</li></ul><pre># Load data from a local CSV<br>data = pd.read_csv(&#39;master_genre_audio_with_unique_id.csv&#39;)<br>logger.info(f&quot;Data loaded with shape: {data.shape}&quot;)</pre><pre># Group and aggregate data<br>aggregated = data.groupby(&#39;track_name&#39;).agg({<br>    &#39;artist_name&#39;: &#39;first&#39;,<br>    &#39;ms_played&#39;: [&#39;sum&#39;, &#39;mean&#39;],<br>    **{col: &#39;max&#39; for col in data.columns if col.startswith(&#39;genres_&#39;)}<br>}).reset_index()<br># Rename columns and scale numerical features<br>aggregated.columns = [&#39;track_name&#39;, &#39;artist_name&#39;, &#39;total_ms_played&#39;, &#39;avg_ms_played&#39;] + [c[0] for c in aggregated.columns[4:]]<br>aggregated[&#39;session_length_hours&#39;] = aggregated[&#39;total_ms_played&#39;] / (1000 * 60 * 60)<br>scaler = StandardScaler()<br>aggregated[[&#39;total_ms_played&#39;, &#39;avg_ms_played&#39;, &#39;session_length_hours&#39;]] = scaler.fit_transform(<br>    aggregated[[&#39;total_ms_played&#39;, &#39;avg_ms_played&#39;, &#39;session_length_hours&#39;]]<br>)</pre><p><strong>Step 2: Train-Test Split</strong></p><p>Drop genres with too few samples, then split the data with train_test_split. <a href="https://dept.stat.lsa.umich.edu/~kshedden/introds/topics/stratification/">Stratifying</a> keeps the genre mix the same in the training and test sets.</p><pre>y_counts = y.value_counts()<br>y_filtered = y[y.isin(y_counts[y_counts &gt;= 5].index)]  # Filter classes with ≥5 samples<br>X_filtered = X.loc[y_filtered.index]<br>X_train, X_test, y_train, y_test = train_test_split(<br>    X_filtered, y_filtered, test_size=0.2, stratify=y_filtered, random_state=42<br>)</pre><p><strong>Step 3: Label Encoding</strong></p><p>XGBoost needs numbers, so convert the genre labels to numeric values.</p><pre>label_encoder = LabelEncoder()<br>y_train_encoded = label_encoder.fit_transform(y_train)<br>y_test_encoded = label_encoder.transform(y_test)</pre><p><strong>Step 4: Balance the Classes with </strong><a href="https://imbalanced-learn.org/stable/references/generated/imblearn.combine.SMOTETomek.html"><strong>SMOTE-Tomek</strong></a></p><p>Some genres show up far more often than others. SMOTE-Tomek evens things out so the model doesn’t just learn the popular ones.</p><pre>smote = SMOTE(random_state=42, k_neighbors=min(5, y_train.value_counts().min() - 1))<br>smote_tomek = SMOTETomek(random_state=42, smote=smote)<br>X_train_resampled, y_train_resampled = smote_tomek.fit_resample(X_train, y_train_encoded)</pre><p><strong>Step 5: Train the </strong><a href="https://www.educative.io/answers/classification-using-xgboost-in-python"><strong>XGBoost Classifier</strong></a></p><p>Start with basic parameters. You can tune them later with RandomizedSearchCV in Step 8.</p><pre>basic_xgb = XGBClassifier(objective=&#39;multi:softmax&#39;, num_class=len(np.unique(y_train_resampled)), random_state=42)<br>basic_xgb.fit(X_train_resampled, y_train_resampled)</pre><p><strong>Step 6: </strong><a href="https://machinelearningmastery.com/evaluate-gradient-boosting-models-xgboost-python/"><strong>Evaluate the Model</strong></a></p><p>Now see how the model does on data it hasn’t seen yet. Check the accuracy, read through the classification report, and look for genres it keeps mixing up.</p><pre>y_pred = basic_xgb.predict(X_test)<br>classification_report_str = classification_report(y_test_encoded, y_pred, zero_division=1)<br>accuracy = accuracy_score(y_test_encoded, y_pred)</pre><pre>print(&quot;Classification Report:\n&quot;, classification_report_str)<br>print(f&quot;Accuracy: {accuracy:.2f}&quot;)</pre><p><strong>Step 7: Save Checkpoints</strong></p><p>Save the model and label encoder so you can make predictions or keep training later without starting over.</p><pre>joblib.dump(basic_xgb, &#39;best_xgb_model_checkpoint.pkl&#39;)<br>joblib.dump(label_encoder, &#39;label_encoder_checkpoint.pkl&#39;)</pre><p><strong>Step 8: </strong><a href="https://en.wikipedia.org/wiki/Hyperparameter_optimization"><strong>Hyperparameter Optimization</strong></a></p><p>RandomizedSearchCV tries random combinations of hyperparameters and keeps the ones that score best.</p><pre>search = RandomizedSearchCV(<br>    estimator=XGBClassifier(random_state=42),<br>    param_distributions=xgb_param_distributions,<br>    cv=StratifiedKFold(n_splits=5),<br>    scoring=make_scorer(f1_score, average=&#39;macro&#39;),<br>    n_iter=10,<br>    verbose=2<br>)<br>search.fit(X_train_resampled, y_train_resampled)</pre><p><strong>Step 9: Display Results</strong></p><p>Print the top parameter sets and the final scores.</p><pre>top_results = pd.DataFrame(search.cv_results_).sort_values(&#39;mean_test_score&#39;, ascending=False).head(5)<br>print(&quot;Top Parameter Sets:\n&quot;, top_results[[&#39;mean_test_score&#39;, &#39;params&#39;]])</pre><p><strong>Challenges and Solutions</strong></p><ul><li>Imbalanced data: SMOTE-Tomek kept the model from favoring the most common genres.</li><li>Overfitting: Regularization (reg_alpha, reg_lambda) and early stopping kept the model from getting too complicated.</li><li>Long training times: GPU acceleration and a lower max depth sped things up a lot.</li><li>Hyperparameter tuning: RandomizedSearchCV found good settings without testing every possible combination.</li><li>Generalization: Time-based validation gave me a more honest read on how the model would do with new listening data.</li></ul><p><strong>Helpful Resources</strong></p><ul><li>XGBoost Documentation: <a href="https://xgboost.readthedocs.io/en/latest/">XGBoost Docs</a></li><li>SMOTE and Data Balancing: <a href="https://imbalanced-learn.org/stable/references/generated/imblearn.over_sampling.SMOTE.html">Imbalanced-Learn Docs</a></li><li>Hyperparameter Optimization: <a href="https://optuna.readthedocs.io/en/stable/tutorial/xgboost.html">Optuna for XGBoost</a></li></ul><p><strong>Useful Libraries</strong></p><ul><li>Pandas: Data manipulation (<a href="https://pandas.pydata.org/docs/">Pandas Documentation</a>)</li><li>Scikit-Learn: ML utilities (<a href="https://scikit-learn.org/stable/">Scikit-Learn Docs</a>)</li><li>XGBoost: Gradient boosting (<a href="https://xgboost.readthedocs.io/en/latest/">XGBoost Docs</a>)</li><li>Imbalanced Learn: Handling imbalanced data (<a href="https://imbalanced-learn.org/stable/">Imbalanced-Learn Docs</a>)</li></ul><h3>Data Visualization with Tableau</h3><p>With the data cleaned up, I built an interactive dashboard in <a href="https://public.tableau.com/app/discover">Tableau</a> to explore my listening habits.</p><p><strong>Step 1: Import Your Data</strong></p><ul><li>Export your cleaned data as a CSV (for example, My_Genre_Data.csv).</li><li>Open Tableau Public and connect to the file.</li><li>Make sure track names, artists, genres, and Spotify URIs are in there.</li></ul><p><strong>Step 2: Build the Dashboard</strong></p><p>Lay out your main charts first.</p><ul><li>Top genres: a bar chart of your most played genres.</li><li>Favorite artists: a bar chart or treemap ranked by listening time or play count.</li><li>Yearly trends: a line chart showing how your genres shift over time.</li></ul><p>How to do it: Drag fields into Rows and Columns, use SUM or COUNT for things like play counts and listening time, and add filters for year, genre, or artist so people can dig in on their own.</p><p><strong>Step 3: Add Interactive Features</strong></p><p>Filters make the dashboard a lot more fun to poke around in.</p><ul><li>Drag Year, Genre, or Artist onto the Filters shelf.</li><li>Right-click the filter and choose Show Filter to put it on the dashboard.</li><li>Pick the filter style that fits, like a dropdown, slider, or multi-select.</li></ul><p><strong>Step 4: Highlight Trends</strong></p><p>Put Date on the X-axis and Play Count or Listening Time on the Y-axis to chart your habits over time. Color-coded thresholds or trend lines make it easy to spot shifts, like a sudden spike in one genre.</p><p><strong>Step 5: Add Spotify’s Embedded Player</strong></p><p>This is the feature that makes the dashboard feel alive. Create a calculated field that builds an embed URL from each track’s Spotify URI. Then add a <a href="https://help.tableau.com/current/pro/desktop/en-us/actions_dashboards.htm">Web Object</a> to the dashboard from the toolbar and point its URL at that field. Now people can play tracks right from the dashboard.</p><pre>&quot;https://open.spotify.com/embed/track/&quot; + [track_uri]</pre><p><strong>Step 6: Create a Tableau Story</strong></p><p>A story walks people through your dashboards in a set order.</p><ul><li>Click Story in the toolbar to start a new one.</li><li>Drag your dashboards or worksheets into the story pane as slides.</li></ul><p><strong>Step 7: Finish the Dashboard</strong></p><p>A few final touches go a long way.</p><ul><li>Pick one color scheme and stick with it, whether that’s Spotify green or a color per genre.</li><li>Use fonts that are easy to read, and don’t cram too much onto one screen.</li><li>Put the key numbers up top and the detailed charts below them.</li></ul><p><strong>Challenges and Solutions</strong></p><ul><li>Data prep: I made sure the data was clean, with consistent field names, before uploading it to Tableau Public.</li><li>Slow loading: Simplifying calculated fields and filters made the dashboard load faster.</li><li>Limited customization: Parameter controls and dashboard actions filled in where the built-in options fell short.</li><li>Size limits: Aggregating the data and using extracts instead of live connections kept me within Tableau Public’s limits.</li><li>Embedding and sharing: Tableau Public’s embed options made it easy to put the dashboards on a website.</li></ul><p><strong>Helpful Resources</strong></p><ul><li>Tableau Public Beginner’s Guide: <a href="https://www.tableau.com/blog/beginners-guide-tableau-public">Beginner’s Guide</a></li><li>Getting Started with Tableau Public: <a href="https://www.tableau.com/community/public/get-started">Tableau Public Get Started</a></li><li>Dashboard Actions &amp; Interactivity: <a href="https://help.tableau.com/current/pro/desktop/en-us/actions_dashboards.htm">Tableau Dashboard Actions</a></li></ul><p><strong>Useful Features &amp; Tools</strong></p><ul><li>Data Blending: Combine multiple data sources in one view.</li><li>Calculated Fields: Build your own metrics right in Tableau.</li><li>Filters &amp; Parameters: Let viewers control what they see.</li><li>Dashboard Actions: Add tooltips, links, and filter actions.</li><li>Tableau Public Gallery: Browse community dashboards for ideas.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69362a837ed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mitigating Artificial Intelligence Bias in eDiscovery]]></title>
            <link>https://groundcontrolcharles.medium.com/mitigating-artificial-intelligence-bias-in-ediscovery-4038ddd2b313?source=rss-5ece04b33c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/4038ddd2b313</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[ai-in-ediscovery]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ediscovery]]></category>
            <dc:creator><![CDATA[Charles Whetstone]]></dc:creator>
            <pubDate>Thu, 25 Jan 2024 23:29:22 GMT</pubDate>
            <atom:updated>2026-11-01T15:16:00.551Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YumlJXCuflzp5_yW.jpeg" /></figure><p><em>Photo by Bernd 📷 Dittrich on Unsplash</em></p><blockquote><strong><em>Update, November 1, 2026:</em></strong><em> When I first wrote this, LLM-assisted review was still mostly on the horizon. It’s in production now, and courts have started weighing in. On July 1, 2026, in </em>Schulte v. LinkedIn Corp.<em>, a federal court in the Northern District of California accepted generative AI review for final responsiveness decisions and judged it the same way as traditional TAR, under the usual reasonableness and proportionality standards (DLA Piper, 2026). That makes the bias questions below matter even more. I’ve also updated the wording throughout so it reflects where things stand today.</em></blockquote><p>eDiscovery has leaned on artificial intelligence for a long time, mostly to get through huge piles of documents faster and more accurately than people can on their own. Large language models (LLMs) have now made their way into document review, and they’re changing how teams handle big data sets. Technology Assisted Review (TAR) keeps getting more capable.</p><p>In this post I’ll walk through how AI got into eDiscovery and where it’s going. Then I’ll get to the part I care about most, which is keeping bias out of AI-driven review on both the people side and the technology side.</p><h3>A Brief History in Time: AI in eDiscovery</h3><p>The big shift came in 2012. In <em>Da Silva Moore v. Publicis Groupe et al.</em>, the court approved Technology Assisted Review for large-scale document discovery (Austin, 2022). That opinion (#101473) gave TAR legal legitimacy, and adoption took off from there. Review teams started saving real time and money by handing parts of the review to analytics and machine learning.</p><p>Unstructured analytics in eDiscovery mostly falls into a few buckets:</p><ul><li><strong>Conceptual:</strong> Latent Semantic Indexing (LSI) lets you search by concept, so you can find documents about the same thing even when they use different words. It’s how you catch the relevant documents a keyword search would miss.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*CijWfrLhN-QLx17m.png" /></figure><ul><li><strong>Classification:</strong> This is supervised learning. Reviewers code example documents, and an active learning model uses them to push the most likely important documents to the front of the queue. A lot of tools use a Support Vector Machine (SVM) for this. The SVM finds a hyperplane, basically a dividing line, that separates relevant documents from non-relevant ones based on what’s already been coded. SVMs are also handy for spotting anomalies.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-1UpsnwcQQdtxc4o.png" /></figure><ul><li><strong>Sentiment analysis:</strong> A newer option that scores documents for emotions like anger, negativity, or desire. In eDiscovery it usually runs on traditional machine learning such as Naïve Bayes or SVMs, trained to connect patterns in the text with sentiment scores.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*naP7p5iTeMuNIClR.png" /></figure><h3>Where It’s Headed</h3><p>In the years since <em>Da Silva Moore</em>, TAR has proven itself. Natural Language Processing (NLP) built on that success, and LLMs are now pushing eDiscovery even further.</p><p>Here’s roughly what it looks like to ask an LLM to find relevant documents in an eDiscovery workspace:</p><ol><li><strong>Prompt the LLM.</strong> You describe what you’re looking for. For example: “Identify documents that primarily focus on Spider-Man’s heroic acts, positive character traits, and the positive impact he has on others. Prioritize documents that express strong, genuine admiration for Spider-Man and his contributions to society.”</li><li><strong>The LLM analyzes the data.</strong> It works through the data set looking at word choice, sentence structure, entities, and how they relate to each other. (I’ll do a deeper dive on how this works in a future post.)</li><li><strong>You get results with explanations.</strong> The LLM returns a list of documents, each with a relevance score showing how well it matches your prompt, plus snippets with the key words and phrases highlighted. It can also add a short summary of each document and how it ties back to Spider-Man’s positive portrayal.</li></ol><h3>AI Bias Considerations Within eDiscovery</h3><p>With great power comes great responsibility. (Have I convinced you I’m Spider-Man yet?) How well an LLM does in document review depends on what it was trained on and what it can actually do. Bias is something you have to watch for and deal with, and in eDiscovery the stakes are high. People still need to check what the LLM finds before anyone relies on it.</p><h3>The Human Element</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wx8IEdPejYdao-H6" /></figure><p><em>Photo by Jr Korpa on Unsplash</em></p><p>Fighting bias starts with knowing where it comes from. Lawyers and technologists working with these systems should understand the main sources:</p><ul><li><strong>Training data:</strong> A model learns from its training data, so biased data leads to biased results, and that can change the outcome of a matter. Look hard at what’s in the training set, whether it’s defensible, and whether it actually represents the documents you’re reviewing.</li><li><strong>Algorithm design:</strong> Some algorithms are more prone to bias than others. Know how the ones you’re using work and where they tend to go wrong.</li><li><strong>Human decisions:</strong> Even an unbiased algorithm can’t protect you from people. Bias can slip in when someone picks the data, writes the query, or reviews the results. Regular training helps people catch their own blind spots.</li></ul><p>Knowing about bias only gets you started. Someone has to keep watching for it. In practice that means:</p><ul><li>Keep testing new ways to detect and reduce bias in LLMs, including better fairness metrics.</li><li>Use LLMs themselves to look for statistically significant patterns of bias in how documents are worded and which topics get represented.</li><li>Monitor and audit your AI tools regularly to see whether their outputs are drifting.</li><li>Keep a human in the loop. A person reviews and signs off on AI suggestions before anyone acts on them. The machine handles the repetitive work, and the reviewer brings context and a second set of eyes.</li><li>Build a framework for spotting and tracking bias in LLM output, with audits that hold the technology accountable.</li><li>Bring different perspectives onto your review team so people can challenge each other’s assumptions and keep outcomes fair.</li></ul><h3>The Technical Element</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UtjP3_DXZZRBZuDw" /></figure><p><em>Photo by Museums Victoria on Unsplash</em></p><p>People can only catch so much, so the technology has to help too. Different techniques go after different sources of bias:</p><ul><li><strong>Data debiasing:</strong> Balancing the data, oversampling, and undersampling can fix lopsided training data that would otherwise skew the results.</li><li><strong>Fairness-aware methods:</strong> Some approaches are built specifically to resist bias, such as counterfactual fairness and causal inference.</li><li><strong>Explainable AI (XAI):</strong> If you can see how a model reached its conclusion, you can find the bias behind it. It also gives reviewers a reason to trust the results, because they can follow the reasoning.</li></ul><p>Here are a few specific techniques for reducing bias in eDiscovery:</p><ul><li><strong>Calibrated fair ranking:</strong> This adjusts how documents are ranked using fairness metrics, so relevant documents don’t get pushed down because of attributes that have nothing to do with relevance. For example, it could adjust an LLM’s scores so relevant emails rank the same no matter who sent them. It can also surface patterns and connections a human reviewer might miss, which can make relevance calls more accurate. And because it shows how each adjustment was made, the review is easier to trust. The catch is that LLMs can inherit and amplify bias from their training data, and it can be hard to see how the model is making its decisions (Raj, 2022).</li><li><strong>Counterfactual fairness:</strong> This checks whether changing one attribute of a document, like gender, would change how the AI ranks it. If it does, you’ve found bias. Reviewers can use these altered versions to point to the bias directly, which keeps fairness in mind right next to relevance. The tradeoffs are interpretability and accuracy (Molnar, 2023).</li><li><strong>Embedding bias testing (WEAT):</strong> This measures bias in the language a model has learned. The Word Embedding Association Test (WEAT) checks whether a model ties words for protected groups, like gender or race, more closely to some concepts than to others (Caliskan et al., 2017). It’s well established in research, though it rarely shows up in eDiscovery workflows yet. Running it against a review model gives you a concrete, explainable measure of bias, and the results can guide how the model gets fine-tuned to reduce it. Like the other methods, it has limits. A clean score doesn’t prove the model is fair on your specific documents.</li></ul><h3>Final Thoughts</h3><p>I think the best approach mixes all of the above. Be open about what you’re doing and willing to fail along the way. Every data set is different, as different as the universe is big. Better techniques only get you part of the way there. What makes this work in the real world is careful rollout and testing that never really stops. With AI and LLMs this powerful, keeping bias in check means starting with diverse data and fairness-aware algorithms, then keeping people in the loop who can see what the model is doing.</p><h3>References:</h3><p>Austin, D. (2022, February 23). The Da Silva Moore Case Ten Years Later: eDiscovery Case Law. eDiscovery Today by Doug Austin. <a href="https://ediscoverytoday.com/2022/02/23/the-da-silva-moore-case-ten-years-later-ediscovery-case-law/amp/">https://ediscoverytoday.com/2022/02/23/the-da-silva-moore-case-ten-years-later-ediscovery-case-law/amp/</a></p><p>Caliskan, A., Bryson, J. J., &amp; Narayanan, A. (2017). Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334), 183–186. <a href="https://doi.org/10.1126/science.aal4230">https://doi.org/10.1126/science.aal4230</a></p><p>DLA Piper. (2026, July). Court greenlights generative AI for document review. <a href="https://www.dlapiper.com/en/insights/publications/2026/07/court-greenlights-generative-ai-for-document-review">https://www.dlapiper.com/en/insights/publications/2026/07/court-greenlights-generative-ai-for-document-review</a></p><p>Gupta, S. (2018, June 17). Sentiment Analysis: concept, analysis and applications. Medium. <a href="https://towardsdatascience.com/sentiment-analysis-concept-analysis-and-applications-6c94d6f58c17">https://towardsdatascience.com/sentiment-analysis-concept-analysis-and-applications-6c94d6f58c17</a></p><p>Ioana. (2021, December 14). Latent Semantic Analysis: intuition, math, implementation. Medium. <a href="https://towardsdatascience.com/latent-semantic-analysis-intuition-math-implementation-a194aff870f8">https://towardsdatascience.com/latent-semantic-analysis-intuition-math-implementation-a194aff870f8</a></p><p>Molnar, C. (2023, August 21). 9.3 Counterfactual explanations | Interpretable Machine learning. <a href="https://christophm.github.io/interpretable-ml-book/counterfactual.html">https://christophm.github.io/interpretable-ml-book/counterfactual.html</a></p><p>Noble, W. S. (2006). What is a support vector machine? Nature Biotechnology, 24(12), 1565–1567. <a href="https://doi.org/10.1038/nbt1206-1565">https://doi.org/10.1038/nbt1206-1565</a></p><p>Raj, A. (2022). Measuring Fairness in Ranked Results. <a href="https://par.nsf.gov/servlets/purl/10329880">https://par.nsf.gov/servlets/purl/10329880</a></p><p>What is a Large Language Model? | A Comprehensive LLMs Guide. (n.d.). Elastic. <a href="https://www.elastic.co/what-is/large-language-models">https://www.elastic.co/what-is/large-language-models</a></p><p><em>Disclaimer: These are my personal insights and musings, independent of my employer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4038ddd2b313" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>