<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/feed.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Logbook · Chukwudi Eke</title>
    <link>https://chukwudi-eke.pages.dev/blog</link>
    <atom:link href="https://chukwudi-eke.pages.dev/feed.xml" rel="self" type="application/rss+xml" />
    <description>Results as they fall, pre-registered where it matters, including the ones that failed.</description>
    <language>en</language>
    <lastBuildDate>Fri, 20 Nov 2026 09:00:00 GMT</lastBuildDate>
    <item>
      <title>I turned lung tumours into sounds. At the same size, cancer still sounds different.</title>
      <link>https://chukwudi-eke.pages.dev/blog/hearing-the-shape-of-a-tumour</link>
      <guid isPermaLink="true">https://chukwudi-eke.pages.dev/blog/hearing-the-shape-of-a-tumour</guid>
      <pubDate>Fri, 20 Nov 2026 09:00:00 GMT</pubDate>
      <description>Every shape has its own set of notes, like a drum. I played 879 lung nodules as sounds. Mostly you hear their size. But take size away, check against real biopsies, and the notes still know which ones are cancer.</description>
      <content:encoded><![CDATA[<h2>The short version</h2>
<ul>
<li>In 1966 a mathematician asked a famous question: <strong>can you hear the shape of a drum?</strong> Every shape vibrates at its own set of notes.</li>
<li>I took 879 lung nodules from real CT scans, worked out each one&#39;s notes, and asked: <strong>do cancers sound different?</strong></li>
<li><strong>First answer: mostly you hear size.</strong> Big nodules sound low, small ones sound high, and big nodules are more often cancer. That is a bit of a letdown.</li>
<li><strong>Then I took size away.</strong> I compared cancer and harmless nodules of <em>the same size</em>. The notes still picked the cancer <strong>7 times out of 10</strong>.</li>
<li><strong>Then I checked against real biopsies,</strong> not just what radiologists suspected. The notes did <strong>as well as the radiologists&#39; own ratings</strong>, and better than size.</li>
<li>I also tried kidney tumours. A lung-trained ear did a little better than a coin flip, but no better than size. So no &quot;universal sound of cancer&quot;. Not yet.</li>
<li>Every test was written down before I ran it. You can listen to the nodules, and try to hear cancer yourself.</li>
</ul>
<h2>Every shape has a sound</h2>
<p>Hit a drum and it rings with a few notes at once. A big drum rings low. A small one rings high. But it is not just size. A square drum and a round drum of the same size sound different. The <em>pattern</em> of notes depends on the shape.</p>
<p>That is why you can tell a guitar from a piano playing the same note. Same pitch, different shape, different sound.</p>
<p>A lung nodule is a little 3D blob. I treated its surface like the skin of a drum and worked out its first 50 notes. That gives every nodule a fingerprint of 50 numbers.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/hearing-the-shape-of-a-tumour">▶ Interactive demo: open the post to try it.</a></p>
<h2>Surprise 1 (the letdown): it mostly hears size</h2>
<p>I gave the notes to a simple model and asked it to spot the nodules radiologists thought were cancer.</p>
<p>It did well. But a ruler did almost as well. Size alone gets 0.93 on a score where 0.5 is a coin flip and 1.0 is perfect. The notes plus size get 0.94.</p>
<p>So the first honest answer is: <strong>the drum mostly hears how big the nodule is.</strong> Big lumps are more often cancer, and big lumps sound low.</p>
<p>I had written down beforehand that the notes should beat size alone. They didn&#39;t, by a hair. That part failed.</p>
<h2>Surprise 2: at the same size, cancer still sounds different</h2>
<p>Here is the catch. In this data, size and shape are tangled together. Cancers tend to be bigger <em>and</em> lumpier. So I asked a sharper question.</p>
<p>I paired each cancer with a harmless nodule of the same size, and threw away size completely. Every nodule starts on the same note. Only the pattern of overtones is left. Like hearing a guitar and a piano play the same note.</p>
<p>In 116 such pairs, the notes picked the cancer <strong>70% of the time</strong> (between 61% and 78%, allowing for chance). The odd part: in most of these pairs the cancer was actually the <em>smaller</em> one. Size pointed the wrong way, and the notes still got it right.</p>
<p>Try it. Both nodules in each pair are the same size.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/hearing-the-shape-of-a-tumour">▶ Interactive demo: open the post to try it.</a></p>
<h2>Surprise 3: it agrees with biopsies, not just with suspicion</h2>
<p>There is a big caveat in the first result. The &quot;answers&quot; were what radiologists <em>suspected</em>, not what turned out to be true.</p>
<p>For 89 patients, the data also says what the nodule really was: confirmed by a biopsy, surgery, or two years of scans showing it never grew. That is the real answer key.</p>
<p>Against that answer key:</p>
<ul>
<li>size alone scored 0.71;</li>
<li>the radiologists&#39; own ratings scored 0.74;</li>
<li>the notes, with size removed, scored <strong>0.76</strong>.</li>
</ul>
<p>That&#39;s the head-turner: a sound with no size in it did at least as well as the experts&#39; own judgement. But with only 89 patients, I can&#39;t say it is <em>better</em>. The gaps are too small for that.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/hearing-the-shape-of-a-tumour">▶ Interactive demo: open the post to try it.</a></p>
<h2>What didn&#39;t work</h2>
<ul>
<li><strong>The kidney test.</strong> I trained the ear on lungs and played it kidney tumours, without retraining. It scored 0.62, a bit better than a coin flip. But size alone scored 0.64 on kidneys. So there&#39;s no universal &quot;sound of cancer&quot; here. Most kidney tumours in this set were cancer, and only 43 weren&#39;t, which makes this test weak either way.</li>
<li><strong>The notes are fussy.</strong> When four radiologists each outlined the same nodule, the notes changed more between their outlines than standard shape measures did. The highest notes hear the fine wiggles of the edge, and that is exactly where people disagree when they draw it.</li>
<li><strong>Beating size outright.</strong> As I said above, the notes did not beat size by enough on the radiologists&#39; labels.</li>
</ul>
<h2>Why this matters, simply</h2>
<p>Most AI for scans is a black box with millions of numbers inside. This is 50 numbers you can <em>listen to</em>. It will not replace anyone. But it says something real: the shape of a lump carries a signal about cancer that is not just its size, and that signal lines up with biopsies.</p>
<p>Next, I want more confirmed cases and a second hospital&#39;s data. That would settle whether the notes really beat the experts, or just match them.</p>
<p><em>Data: LIDC-IDRI (lung nodules, CT), with TCIA&#39;s patient diagnoses; KiTS23 (kidney tumours). All tests were written down before running them, including the ones that failed.</em></p>
]]></content:encoded>
      <category>imaging</category>
      <category>cancer</category>
      <category>sound</category>
      <category>pre-registered</category>
      <category>headturner</category>
    </item>
    <item>
      <title>I built a town that remembers. The best memory was not the biggest one.</title>
      <link>https://chukwudi-eke.pages.dev/blog/themyscira-a-town-that-remembers</link>
      <guid isPermaLink="true">https://chukwudi-eke.pages.dev/blog/themyscira-a-town-that-remembers</guid>
      <pubDate>Thu, 19 Nov 2026 09:00:00 GMT</pubDate>
      <description>A research town of twenty villagers, one small notebook each. Forgetting helped them shop, but only when they chose freely. Remembering helped them spot thieves. Judging by one strike framed the innocent. The playable version has grown into three towns.</description>
      <content:encoded><![CDATA[<h2>The short version</h2>
<ul>
<li>I built a tiny research town called Themyscira. Twenty villagers live there. Each one keeps their own notebook of what they saw and what they were told.</li>
<li>The notebooks are small. Villagers have to forget things. I tested which kind of forgetting works best.</li>
<li><strong>Surprise 1:</strong> the villager who scores best on a memory quiz can make the <em>worst</em> real-life decisions. This held when villagers chose for themselves where to go. In a town where their day was scripted, it did not hold up on fresh towns.</li>
<li><strong>Surprise 2:</strong> forgetting is great for facts about places, and bad for facts about people. Towns that forget let thieves get away with it.</li>
<li><strong>Surprise 3:</strong> when villagers see through a real camera model, which sometimes mixes people up, judging by &quot;one strike and you&#39;re out&quot; blames innocent look-alikes. Weighing good deeds against bad ones protects them.</li>
<li><strong>The big idea, typed memory (forget places fast, remember people long), came out best on both report cards, but not by enough to count yet.</strong></li>
<li><strong>Since then:</strong> villagers who <em>ask around</em> beat villagers who only remember, for both places and people. More on that below.</li>
<li>Every test was written down before I ran it. Some failed. They are in here too.</li>
<li>You can <a href="https://chukwudi-eke.pages.dev/play/themyscira">walk into the town and play</a>. The game has grown since: three towns, roads, and families. The experiments below ran in the smaller research town.</li>
</ul>
<h2>Why build this at all</h2>
<p>Most game characters are like goldfish with a script. Save their village or burn it down, and they say the same line.</p>
<p>The ones that &quot;remember&quot; usually share one big notebook. The whole world knows everything at once. Real towns don&#39;t work like that. Think of a school corridor. One person sees something. They tell two friends. By Friday the story is everywhere, a bit wrong, and some people never heard it.</p>
<p>So each of my villagers gets their own notebook, with a page limit. Here is the important rule: <strong>a villager only knows what they saw, or what someone told them.</strong> If they act on something they couldn&#39;t have known, the town flags it as a bug. In thousands of runs, that never happened. That is what makes the rest of the results trustworthy.</p>
<h2>Surprise 1: the quiz champion can make the worst choices</h2>
<p>The usual way to grade memory is a quiz. &quot;Where is the copper lantern?&quot; &quot;Who started the fight?&quot; Right or wrong.</p>
<p>I added a second grade: <strong>what does a wrong memory cost you?</strong> Villagers get hungry and thirsty. They decide where to buy food using their notebook. If the notebook says the market is open and it&#39;s closed, they waste a trip. If it says closed and it&#39;s open, they go hungry for nothing.</p>
<p>Then I graded four kinds of memory both ways. Flip between the two report cards. (This chart is from the first test, in a town where each villager&#39;s day followed a fixed timetable.)</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/themyscira-a-town-that-remembers">▶ Interactive demo: open the post to try it.</a></p>
<p>In that first test, the rankings are exact mirror images. The villager who remembers everything aces the quiz and makes the costliest mistakes.</p>
<p>Why? Think of Leonard in <em>Memento</em>. He trusts old notes and photos, even when the world has moved on. A villager who remembers everything still has a note from two days ago saying &quot;the market is closed.&quot; So they never go back, even after it reopens. The forgetter lost that note. To them, the market is &quot;don&#39;t know&quot;, so they go and check. Often it&#39;s open.</p>
<p>Sherlock Holmes said it in <em>A Study in Scarlet</em>: he deliberately forgets things that are no use to him, because the brain&#39;s attic is small. For facts about places that keep changing, Sherlock is right.</p>
<p><strong>How sure am I? Less sure than I was, and more precise.</strong> I re-ran the test on ten fresh random towns, in two kinds of town:</p>
<ul>
<li><strong>Villagers choose freely where to go:</strong> the reversal held. Forgetting gave fewer bad trips than remembering everything, by a clear margin.</li>
<li><strong>Villagers follow a fixed timetable:</strong> it did <em>not</em> hold. The difference went slightly the other way and was too small to mean anything.</li>
</ul>
<p>So the honest version is: <strong>a memory quiz can rank memories backwards, when villagers decide for themselves.</strong> It is not a law of every town. That&#39;s more useful than a universal rule, because it tells you where to look. One clue: in the timetable town, the forgetters still went hungry far less often. Counting single bad trips may be missing what checking again teaches you.</p>
<h2>Surprise 2: forgetting lets thieves off</h2>
<p>Then I made villagers judge <em>each other</em>. A quarter of them are rogues. They never help anyone, and they steal when they think nobody is looking. Everyone else helps their friends, and sometimes gives them a coin.</p>
<p>Here is the rule they use. <strong>Help people with a good record. Refuse people with a bad one.</strong> It is how Uber ratings work: drivers you&#39;ve never met get trusted, or not, because of what other riders saw.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/themyscira-a-town-that-remembers">▶ Interactive demo: open the post to try it.</a></p>
<p>Towns with good memory, and a bit of gossip, freeze the rogues out. Each rogue gets helped about 6 times, against 11 for an honest villager. In the forgetful town, the rogues get as much help as anyone. Nobody remembers what they did.</p>
<p>So forgetting has a price. It helps with <em>places</em>, and it hurts with <em>people</em>.</p>
<h2>Surprise 3: one strike frames the innocent</h2>
<p>So far the villagers had perfect eyes. Real eyes are not perfect. So I gave them a real computer-vision model as eyes. I made 20 villagers with an image generator (no real people). Four pairs look almost the same, like the twins in <em>The Parent Trap</em>: same hair, same clothes, a different scarf.</p>
<p>When someone steals, each witness runs the camera model to work out who it was. It gets about 3 in 10 sightings wrong, mostly by mixing up look-alikes.</p>
<p>Then I compared two ways of judging:</p>
<ul>
<li><strong>One strike.</strong> If you remember someone doing something bad, they&#39;re bad. Like Arya Stark&#39;s list.</li>
<li><strong>Weigh good against bad.</strong> Keep a running count of good deeds and bad deeds, both slowly fading. You&#39;re bad only if the bad outweighs the good.</li>
</ul>

<p><a href="https://chukwudi-eke.pages.dev/blog/themyscira-a-town-that-remembers">▶ Interactive demo: open the post to try it.</a></p>
<p>With perfect eyes, both rules only blame the real thief. With real camera eyes, &quot;one strike&quot; blames the innocent twin almost as often as the thief. It even blames ordinary honest villagers. &quot;Weigh good against bad&quot; keeps the innocent twin safe, because her many good deeds outweigh one wrong sighting.</p>
<p>It is not free. The weighing rule also lets the real thief slip through more often. I had written down a test saying it should catch thieves nearly as well as one strike. It failed that part. It protects the innocent. It is gentler on the guilty too.</p>
<h2>What actually failed</h2>
<p>Plenty of things did not work. Here are some:</p>
<ul>
<li><strong>A fancy memory scheme from psychology</strong> (keep what you used most often) did worse than simply keeping the newest things. New memories never got a chance to stay.</li>
<li><strong>A long-term archive</strong> for old events. Three different designs, all failed. Nothing older than about three days survives in a small notebook.</li>
<li><strong>A gossip dial for an AI villager.</strong> When I let a language model make up rumours, turning the dial up did make it invent more. But random made-up rumours spread a little dislike evenly. Nobody fell out. Drama needs <em>targeted</em> rumours, not more of them.</li>
<li><strong>Being too trusting of mixed characters.</strong> Weighing good against bad works for reformed thieves. It is too soft on people who keep doing both. Three fixes improved it. None fully closed the gap.</li>
<li><strong>Four times, a small first check pointed the wrong way.</strong> Tests with 6 or even 10 random towns said one thing, and the bigger test said another. I now decide nothing on fewer than 20 fresh random towns.</li>
<li><strong>The timetable town didn&#39;t repeat Surprise 1.</strong> On fresh towns, the quiz reversal held only where villagers chose freely (see above).</li>
</ul>
<h2>The idea all of this points to</h2>
<p>Every memory I tested used one rule for everything. But facts age at different speeds.</p>
<p>Your weather app refreshes every hour. Your friends&#39; reputations last for years. Nobody keeps one rule for both.</p>
<p>So I tested <strong>typed memory</strong>. Facts about places fade fast. Facts about people last long, in the good-versus-bad notebook. If I was right, one design would win both report cards at once.</p>
<p><strong>What happened: promising, not proven.</strong></p>
<ul>
<li>The version that simply forgets place facts after a few hours, and keeps the people notebook, did the best overall. Its wasted trips were close to the forgetters&#39;. Its thief-spotting was the best of any memory I tested, apart from the cheat code that knows the truth.</li>
<li>But my written-down test needed it to beat the forgetful town on thief-spotting by a clear margin. The gap was there, but too wobbly to count. So by my own rules, it failed that part.</li>
<li>My main bet, a smarter version where old place facts slowly lose confidence instead of being thrown away, did not help at all in this town.</li>
<li>One more lesson: these towns are noisy. Even a check with 10 random towns pointed the wrong way. Since then, every decision uses at least 20.</li>
</ul>
<p>So the idea survives, but it has not earned a victory lap yet.</p>
<h2>Asking beats remembering</h2>
<p>After all this, I tried one more thing. Before deciding, a villager asks whoever is nearby what they know.</p>
<ul>
<li><strong>Asking about places</strong> (is the market open?) cut bad trips clearly, on fresh towns.</li>
<li><strong>Asking about people</strong> (is this person honest?) made the town better at helping the honest and freezing out thieves. It cost nothing on the shopping side.</li>
</ul>
<p>Think of checking Google Maps before you drive, instead of trusting what you remember from last month. A small notebook that asks around beats a big notebook that doesn&#39;t.</p>
<h2>What I&#39;m sure of, what I&#39;m not</h2>
<p><strong>Sure (held on fresh towns, written down before I looked):</strong></p>
<ul>
<li>Forgetting helps with places that change, and hurts with people. Towns that forget let thieves off.</li>
<li>Weighing good against bad protects innocent look-alikes. One strike frames them.</li>
<li>Asking around helps, for places and for people.</li>
<li>The quiz can rank memories backwards, <em>when villagers choose freely</em>.</li>
</ul>
<p><strong>Promising, not proven:</strong></p>
<ul>
<li>Typed memory (forget places fast, remember people long). Best overall, but its edge on spotting thieves is too wobbly to count.</li>
</ul>
<p><strong>Failed or didn&#39;t repeat:</strong></p>
<ul>
<li>The quiz reversal in the timetable town.</li>
<li>The psychology-style memory, the long-term archive, the random gossip dial, the fixes for mixed characters (all above).</li>
</ul>
<h2>Play it</h2>
<p>The game is in your browser, and it has grown: three pixel towns joined by roads, merchants who carry news between them, and families who pass stories down to their children. Walk around, help people, steal, make promises, ask villagers what they think of you. Turn the dials to change how the town remembers.</p>
<p>One honest note: the game is for exploring, not for proving things. The results in this post come from the smaller research town, where every run can be repeated exactly. The game adds things on purpose that the experiments don&#39;t control.</p>
<p><a href="https://chukwudi-eke.pages.dev/play/themyscira">Walk into Themyscira</a></p>
]]></content:encoded>
      <category>themyscira</category>
      <category>games</category>
      <category>memory</category>
      <category>pre-registered</category>
    </item>
    <item>
      <title>Elite athletes' hearts look sick to AI</title>
      <link>https://chukwudi-eke.pages.dev/blog/athlete-hearts-look-sick-to-ai</link>
      <guid isPermaLink="true">https://chukwudi-eke.pages.dev/blog/athlete-hearts-look-sick-to-ai</guid>
      <pubDate>Fri, 13 Nov 2026 09:00:00 GMT</pubDate>
      <description>A big heart-reading AI called up to half of healthy professional footballers abnormal. The two quick fixes made it worse. Here's why, with demos.</description>
      <content:encoded><![CDATA[<h2>The short version</h2>
<ul>
<li>An <strong>ECG</strong> is a recording of the heart&#39;s electrical signal. Clubs use it to screen players before they play.</li>
<li>Athletes&#39; hearts change with training. Doctors have <strong>official rules</strong> that say which of these changes are normal for athletes.</li>
<li>I tested a big, public heart-reading AI (it learned from about <strong>10 million ECGs</strong>) on healthy athletes.</li>
<li>It called <strong>35% of healthy elite endurance athletes</strong> and <strong>47% of healthy professional footballers</strong> abnormal. For ordinary healthy people, its alarm rate was set to 10%.</li>
<li>I tried two quick fixes. <strong>Neither worked.</strong> One made things worse.</li>
</ul>
<h2>An F1 engine, judged by family-car rules</h2>
<p>A footballer&#39;s heart is like a Formula 1 engine. It is bigger, it idles slower, and it sounds different from a family car. None of that means it is broken.</p>
<p>Imagine a mechanic who has only ever seen family cars. They hear an F1 engine idling at a low, heavy rumble and say: &quot;That&#39;s not right. Book it in.&quot;</p>
<p>That is what happens when a heart AI trained on ordinary hospital patients reads an athlete&#39;s ECG.</p>
<p>Sports cardiologists solved this problem years ago. They wrote the <strong>International Recommendations for ECG interpretation in athletes</strong>. These sort findings into &quot;normal for athletes, no action needed&quot; and &quot;needs checking&quot;. Before these rules existed, too many healthy athletes were sent for extra tests, and some were kept off the pitch for nothing.</p>
<p>Slide the dial below from couch to elite and watch the heart change.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/athlete-hearts-look-sick-to-ai">▶ Interactive demo: open the post to try it.</a></p>
<p>Every badge on the right comes from the study. The rules call each of these changes normal for an athlete. The AI often treats them as a warning sign.</p>
<h2>What I tested</h2>
<p>I wrote the plan down <strong>before</strong> running anything, including what would count as a pass or a fail.</p>
<ul>
<li><strong>The AI:</strong> ECGFounder, a public model trained on about 10 million ECGs. I used its own &quot;abnormal ECG&quot; score.</li>
<li><strong>The alarm setting:</strong> I set the alarm so it rings for <strong>1 in 10</strong> ordinary healthy people. That is a fair setting; at the default setting it flagged about half of all normal ECGs.</li>
<li><strong>The athletes:</strong><ul>
<li>26 elite Norwegian endurance athletes whose ECGs a cardiologist had read as normal;</li>
<li>52 professional footballers from the Spanish first division whose ECGs showed only &quot;normal for athletes&quot; findings.</li>
</ul>
</li>
<li><strong>The question:</strong> does the AI flag at least 1 in 5 of these healthy athletes?</li>
</ul>
<h2>What happened</h2>
<p>It did, and then some.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/athlete-hearts-look-sick-to-ai">▶ Interactive demo: open the post to try it.</a></p>
<ul>
<li><strong>Endurance athletes:</strong> 35% flagged, about 3.5 times the normal rate.</li>
<li><strong>Footballers:</strong> 47% flagged, almost 5 times the normal rate.</li>
<li><strong>It called some healthy players&#39; hearts damaged.</strong> Among the labels it gave these normal athletes were &quot;anterior infarct&quot; and, on 11 footballer recordings, &quot;lateral infarct&quot;. An infarct is a heart attack.</li>
<li><strong>It isn&#39;t the only one.</strong> The ECG machine&#39;s own built-in software flagged half the healthy endurance athletes too. The AI learned the same habits as the old software.</li>
</ul>
<p>Switch to &quot;By finding&quot; above. It shows the cause clearly. Even in non-athletes, a slow heart rate alone was enough for the AI to raise the alarm <strong>72% of the time</strong>. For an endurance athlete, a slow heart rate is a sign of fitness, not illness.</p>
<p>This is the story of <em>The Boy Who Cried Wolf</em>. Each false alarm means extra scans, worry, and maybe missed games. Too many of them, and people stop trusting the alarm when it matters.</p>
<h2>The two quick fixes</h2>
<p>Retraining a model this size is expensive. So I tried the two cheapest fixes first. Both were planned in advance.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/athlete-hearts-look-sick-to-ai">▶ Interactive demo: open the post to try it.</a></p>
<ul>
<li><strong>Fix 1, retrain only the last step:</strong> it cut false alarms on athlete-type ECGs, but doubled them on plain normal ECGs. Like whack-a-mole: hit one mole, another pops up.</li>
<li><strong>Fix 2, apply the athlete rules on top:</strong> the AI lists what it sees (slow rate, tall spikes, and so on) and the official rules decide. It made false alarms <strong>worse on every measure</strong>.</li>
</ul>
<p>Why did Fix 2 fail? The rules are fine. The problem is the AI&#39;s list. It often &quot;sees&quot; damage that isn&#39;t there. Feed wrong observations into the right rules, and you still get the wrong answer. It is like giving a perfect recipe to a cook who can&#39;t tell salt from sugar.</p>
<h2>What it doesn&#39;t show</h2>
<ul>
<li><strong>Small groups.</strong> 26 endurance athletes is a small group, so the true rate could be anywhere from about 19% to 54%. The footballer group is bigger and clearer.</li>
<li><strong>One AI.</strong> I tested one public model. Others might do better or worse.</li>
<li><strong>Ethnicity.</strong> The footballer numbers hint at differences between groups, but there are far too few players to say anything. I report them and draw no conclusion.</li>
<li><strong>No new fix yet.</strong> My results say the fix needs athlete data built into the model, not rules bolted on top. I haven&#39;t built that yet.</li>
</ul>
<h2>Why I care</h2>
<p>I&#39;m a doctor who works on sports medicine and AI. Pre-participation screening exists to find the rare athlete with a dangerous heart condition. If the screening tool can&#39;t tell a fit heart from a sick one, it fails both groups: healthy players get sent for tests, and real warnings get lost in the noise.</p>
<p>Heart AI for sport needs to learn from athletes&#39; hearts. Until then, <strong>an AI&#39;s &quot;abnormal&quot; on an athlete&#39;s ECG should be read by a sports cardiologist, not acted on.</strong></p>
]]></content:encoded>
      <category>sports medicine</category>
      <category>cardiology</category>
      <category>pre-registered</category>
    </item>
    <item>
      <title>I borrowed a speed trick from k-means. It made EM faster too, with nothing to tune.</title>
      <link>https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em</link>
      <guid isPermaLink="true">https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em</guid>
      <pubDate>Thu, 12 Nov 2026 09:00:00 GMT</pubDate>
      <description>Meta found a way to make a classic sorting algorithm about 10× faster. I tried the same trick on its cousin, EM. It worked on all 15 tests. Then I tried to break it.</description>
      <content:encoded><![CDATA[<h2>The short version</h2>
<ul>
<li>Computers often need to sort things into groups. One classic way is called <strong>k-means</strong>.</li>
<li>Last week, Meta&#39;s research lab made k-means about <strong>10× faster</strong> (<a href="https://arxiv.org/abs/2611.09501">the paper</a>). They call the new version <strong>e-means</strong>.</li>
<li>k-means has a cousin called <strong>EM</strong>. It does the same job, but it is more careful about points that sit between groups.</li>
<li>I copied Meta&#39;s trick into EM. I changed nothing in their settings.</li>
<li>It worked on <strong>all 15 tests</strong>. On big datasets it was <strong>3 to 15 times faster</strong>. On small ones, it was not faster.</li>
</ul>
<h2>First: what are we even doing?</h2>
<p>Imagine the Sorting Hat from Harry Potter. A new student sits down. The hat looks at them and picks a house.</p>
<p><strong>k-means</strong> is a strict Sorting Hat. Every student goes into exactly one house. No maybes. Even a student who is half brave and half clever gets one answer.</p>
<p><strong>EM</strong> is a more honest Sorting Hat. It says things like: &quot;62% Ravenclaw, 35% Gryffindor, 3% Hufflepuff.&quot; That is more useful when a student sits on the border between two houses.</p>
<p>Try it. Move your cursor over the picture below. The white ring is a new student.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em">▶ Interactive demo: open the post to try it.</a></p>
<p>In real work, the &quot;students&quot; are data points. They might be football players&#39; movement patterns, cells under a microscope, or sounds in a recording. The &quot;houses&quot; are groups the computer finds by itself.</p>
<h2>The slow part</h2>
<p>Both methods learn the houses by repeating two steps:</p>
<ol>
<li>Sort every student, using the current guess of what each house looks like.</li>
<li>Update each house&#39;s description, based on who got sorted into it.</li>
</ol>
<p>The old way does step 1 for <strong>every single student</strong> before it is allowed to do step 2. With a million students, that is a million checks before one tiny improvement.</p>
<p>Think of an election. The old way is like holding a full national vote every time you want to know how people feel. It is accurate. It is also very slow.</p>
<h2>Meta&#39;s trick: the exit poll</h2>
<p>TV news does not wait for every vote to be counted. It runs an <strong>exit poll</strong>: ask a small group, update the forecast, ask another small group, update again.</p>
<p>e-means does this in three moves:</p>
<ol>
<li><strong>Small batches.</strong> Look at a few thousand points, update, move on.</li>
<li><strong>Fading memory.</strong> New batches count more than old ones. It is like your Spotify &quot;On Repeat&quot; playlist: recent listens push old favourites down.</li>
<li><strong>A recipe instead of guesswork.</strong> Exit polls have settings: how big each batch is, and how much to trust it. Normally people fiddle with these until things look right, like adjusting an old TV antenna. Meta measured the best settings once, at many sizes, and wrote them down as a formula. You type in the size of your problem, and the formula tells you the settings. It is like a cake recipe that tells you the oven time for any size of cake.</li>
</ol>
<p>There is one more detail. Sometimes a group ends up with nobody in it. I call these <strong>ghosts</strong>. e-means fixes them with an &quot;Endgame&quot; move: like the end of <em>Avengers: Endgame</em>, the vanished come back. It takes the most crowded group and splits it in two, so the ghost gets a fresh start.</p>
<h2>My question</h2>
<p>Does the same recipe work for EM? Nobody had checked.</p>
<p>Here is the race. Both sides see the same data and start from the same guess. Both get the same amount of work per tick. The left side waits to ask everyone before each update. The right side uses the exit poll. Press play.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em">▶ Interactive demo: open the post to try it.</a></p>
<p>Watch three things:</p>
<ul>
<li>The <strong>exit poll&#39;s fit score climbs first.</strong> It makes many small updates while the other side is still counting.</li>
<li>The <strong>ghosts.</strong> Turn &quot;Endgame revival&quot; off, press &quot;New data&quot; a few times, and you will see groups die and stay dead.</li>
<li>The <strong>settings at the bottom.</strong> Nobody chose them. The recipe did.</li>
</ul>
<h2>How I tested it</h2>
<p>I wrote down the rules <strong>before</strong> running anything. If the results came out badly, I could not quietly change the test afterwards. Scientists call this pre-registering.</p>
<ul>
<li><strong>What I compared:</strong> normal EM against EM with Meta&#39;s trick, which I call <strong>e-EM</strong>.</li>
<li><strong>The settings:</strong> Meta&#39;s recipe, copied exactly. If I had needed to tweak it, the test would count as a fail.</li>
<li><strong>The data:</strong> five public datasets, from 63,000 to about 1 million points, each split into 64, 256 and 1,024 groups. That makes 15 tests.</li>
<li><strong>To pass, e-EM had to:</strong><ul>
<li>catch up with normal EM within 5 passes over the data;</li>
<li>end up at least as good;</li>
<li>leave fewer ghosts.</li>
</ul>
</li>
</ul>
<h2>What happened</h2>
<p>All three rules passed, on <strong>15 out of 15 tests</strong>.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em">▶ Interactive demo: open the post to try it.</a></p>
<p>In plain words:</p>
<ul>
<li><strong>It caught up fast.</strong> Normal EM got 25 passes over the data. e-EM matched that score in 1 to 4 passes.</li>
<li><strong>It ended slightly better,</strong> not just equal: about half a percent better on the typical test, even when normal EM got a smart head start.</li>
<li><strong>It left almost no ghosts.</strong> In the biggest tests, normal EM left up to 53 empty groups. e-EM usually left zero.</li>
<li><strong>It was 3 to 15 times faster on big data,</strong> between 500,000 and 1 million points.</li>
</ul>
<p>The part I find most interesting: <strong>Meta made their recipe for k-means. It worked for EM without changing a single number.</strong> That suggests the recipe captures something general about learning from small batches, not something special about k-means.</p>
<h2>Then I tried to break it</h2>
<p>A result you only got once is a rumour. So I wrote down three more tests, again <strong>before</strong> running them, and ran them.</p>

<p><a href="https://chukwudi-eke.pages.dev/blog/e-em-tuning-free-em">▶ Interactive demo: open the post to try it.</a></p>
<p><strong>1. Same test, three runs.</strong> Think of <em>Groundhog Day</em>: Phil lives the same day again and again, but small things change each time. I reran all 15 tests twice more, each time from a different random start.</p>
<ul>
<li>It held. On every run, e-EM caught up within 5 passes on at least 14 of 15 tests, and ended at least as good on at least 13.</li>
<li>Every miss was on the same dataset, Covertype, with the biggest group counts. The misses were tiny: less than half a percent.</li>
</ul>
<p><strong>2. The time-based version.</strong> Normal EM treats every data point as separate. But a lot of real data comes in order: a heartbeat, a run, a football match. Think of Netflix. What you watch next depends on what you just watched. The time-aware cousin of EM is called a <strong>hidden Markov model</strong>. It learns the groups <em>and</em> the order they tend to come in: walking, then stairs, then sitting.</p>
<ul>
<li>I tested it on two public datasets from phone and body sensors. One has everyday moves like walking and climbing stairs. The other has sports like rowing, cycling and basketball.</li>
<li>It worked, again with Meta&#39;s numbers unchanged. It reached the old method&#39;s score <strong>4 to 7 times faster</strong> (about 3 seconds instead of about 18), and usually ended higher.</li>
<li>2 of its 18 runs never quite caught up. That&#39;s on the chart too.</li>
</ul>
<p><strong>3. The fuller version.</strong> The first test used groups shaped like ellipses that line up with the axes. The fuller version lets each group tilt and stretch any way it likes.</p>
<ul>
<li>On smooth, rounded data, like image features, word meanings and handwritten digits, it worked.</li>
<li>It <strong>broke</strong> in two places:<ul>
<li><strong>Covertype.</strong> Many of its columns are just yes or no, so some groups end up squashed flat, like a sheet of paper. Measuring how a flat sheet tilts is like measuring a sheet of paper&#39;s thickness with a ruler made for books. The fading memory gets the shape wrong.</li>
<li><strong>Clothes photos with 64 groups.</strong> It ended clearly worse, on all three runs.</li>
</ul>
</li>
</ul>
<p>So now I know where the line is. <strong>The recipe travels well, to new runs and even to data that moves through time. It does not survive groups that are squashed flat.</strong> That&#39;s the next thing to fix.</p>
<h2>What it doesn&#39;t show</h2>
<ul>
<li><strong>No speed-up on small data.</strong> At 63,000 points it was about as fast as normal EM. The recipe already uses big batches there, so there is little to gain.</li>
<li><strong>The fuller version has a real weak spot,</strong> described above. I am not claiming it works there.</li>
<li><strong>The speed numbers are from one graphics card</strong> at a time. They leave out the time spent loading data.</li>
</ul>
<h2>Why I care</h2>
<p>A lot of real analysis in medicine and sports still runs on these old, reliable methods. The slow part is often not the maths. It is a person fiddling with settings until the numbers stop jumping around. Tools that come with their settings already worked out, and that say clearly where they stop working, let people spend their time on patients and players instead.</p>
<p><strong>Next:</strong> a fix for the squashed-flat groups, and using the time-based version on things I care about: heartbeats from athletes, and players moving on a pitch.</p>
]]></content:encoded>
      <category>machine learning</category>
      <category>clustering</category>
      <category>pre-registered</category>
    </item>
  </channel>
</rss>
