<?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 David Andai on Medium]]></title>
        <description><![CDATA[Stories by David Andai on Medium]]></description>
        <link>https://medium.com/@andaidavid?source=rss-7fe4cba522d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ONUh7HaZZ-asTKNnhPnJrQ.png</url>
            <title>Stories by David Andai on Medium</title>
            <link>https://medium.com/@andaidavid?source=rss-7fe4cba522d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:47:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andaidavid/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[Time is Brain, and so is Compute]]></title>
            <link>https://andaidavid.medium.com/time-is-brain-and-so-is-compute-824bf65408ce?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/824bf65408ce</guid>
            <category><![CDATA[neuroimaging]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain-health]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 14:10:21 GMT</pubDate>
            <atom:updated>2026-06-12T14:13:04.828Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Compute as a Frontier in Brain Health</strong></p><p>As a medical professional transitioning into the neuroscience data space, I have noticed a recurring challenge: while our field excels at data collection, we sometimes overlook the driving force that converts data into usable insights: <strong>compute</strong>.</p><p>In many regions, particularly in Low- and Middle-Income Countries (LMICs), progress in brain health research is hindered by two key bottlenecks: <strong>data availability </strong>and <strong>computational capacity.</strong></p><p>While significant strides have been made in establishing data governance and infrastructure for the former, “compute” remains a topic of limited discussion. It is often treated as an afterthought, something that “just works” until it fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yxg7WHS5A_drXUCeEN-mlw.png" /><figcaption>Visual generated by AI</figcaption></figure><p><strong>Compute in Neuroscience</strong></p><p>But what is <a href="https://www.lenovo.com/gb/en/glossary/compute/?srsltid=AfmBOoopMvx0tY6gkmNcO9xBqg3ixsj3BOYFN6fPJ6kSnsYvVXypjv5G"><strong><em>compute</em></strong></a>, and why should neuroscientists care about it?</p><p><strong><em>In simple terms, compute is the infrastructure behind modern brain health research. It includes hardware, memory, storage, software environments, cloud systems, and reproducible workflows.</em></strong></p><p><strong><em>(Neuroimaging as an example) </em></strong>Neuroimaging data, including MRI, fMRI, and DTI scans, require computational resources to process. Every step, from handling large matrices and spatial transformations to training machine learning models and tuning hyperparameters, demands computational power. Without compute, brain health data remains underused. With it, we can turn complex scans into insights, predictions and ultimately better decisions.</p><p>To make computing effective, we need more than raw power; we need optimised “recipes”: <em>efficient memory management</em>, <em>scalable storage</em> and <em>accessible software pipelines</em>.</p><p><strong>The Hardware Landscape: CPUs vs. GPUs</strong></p><p><strong>Central Processing Units (CPUs)</strong> remain the foundation of most general computing tasks. Many standard neuroimaging workflows still rely heavily on CPUs, particularly for preprocessing, file handling and conventional statistical analysis.</p><p><strong>Graphics Processing Units (GPUs)</strong>, however, have changed what is possible in neuroscience. Because many modern workflows rely on parallel processing, matrix operations, deep learning and high-dimensional optimisation, GPUs can make some analyses faster and more scalable.</p><p>This does not mean GPUs will replace CPUs. Rather, brain health computing can use CPUs for general workflows, GPUs for accelerated modeling and deep learning, and increasingly specialised hardware for specific tasks.</p><p>The rise of AI has also lowered barriers to cloud computing. Researchers no longer need to own all the hardware locally to run demanding analyses. Cloud platforms, open-source tools, and containerised workflows can help teams access scalable computing environments.</p><p>But cloud access alone does not solve compute inequity. Local and edge processing are also increasingly important. Apple Silicon, for example, shows that AI models can run directly on-device. Lightweight models such as <a href="https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemma-4-12b/"><strong>Gemma 4 12B</strong></a> point to an important direction, where on-device GPUs can be leveraged.</p><p><strong>The Opportunity for Brain Health Teams</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-RZAy4YkEL7Ap-l-j2fHw.png" /><figcaption>Visual generated by AI</figcaption></figure><p>Why does this matter for brain health teams?</p><p>As compute decisions become research decisions, the question shifts to whether they have the infrastructure to process, analyse and translate that data into useful brain health insights.</p><p>This creates space for a more practical conversation about local versus cloud neuroimaging pipelines. Some local workflows may be better suited when <em>privacy</em>, <em>cost</em> and <em>continuity</em> are priorities. Others may require cloud systems when the task needs <em>scale</em>, <em>speed</em> or <em>specialised</em> hardware. Instead of treating local infrastructure constraints as a dead end, research teams can start asking which approach works best where.</p><p>This blog is necessarily simplified and does not account for all the engineering work required to improve existing workflows. Still, teams can start with practical questions: <em>what should run locally</em>, <em>what should move to the cloud</em>, and <em>what operating procedures are needed to make each option reliable</em>?</p><p><strong>References</strong></p><p><a href="https://github.com/neurolabusc/CPUsForNeuroimaging">https://github.com/neurolabusc/CPUsForNeuroimaging</a></p><p><a href="https://github.com/neurolabusc/AppleSiliconForNeuroimaging">GitHub - neurolabusc/AppleSiliconForNeuroimaging: Review the challenges and potential of ARM-based Apple Silicon macOS for brain imaging research</a></p><p><a href="https://www.lenovo.com/gb/en/glossary/compute/?orgRef=https%253A%252F%252Fwww.google.com%252F&amp;srsltid=AfmBOoopMvx0tY6gkmNcO9xBqg3ixsj3BOYFN6fPJ6kSnsYvVXypjv5G">https://www.lenovo.com/gb/en/glossary/compute/?orgRef=https%253A%252F%252Fwww.google.com%252F&amp;srsltid=AfmBOoopMvx0tY6gkmNcO9xBqg3ixsj3BOYFN6fPJ6kSnsYvVXypjv5G</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=824bf65408ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Children’s Growth Charts Taught Me About Brain Health]]></title>
            <link>https://andaidavid.medium.com/what-childrens-growth-charts-taught-me-about-brain-health-1aa685b4bbb2?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aa685b4bbb2</guid>
            <category><![CDATA[brain-health]]></category>
            <category><![CDATA[public-health]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Mon, 11 May 2026 07:12:29 GMT</pubDate>
            <atom:updated>2026-05-11T07:12:29.715Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>I read something interesting: the same types of graphs used to monitor a <strong>child’s growth</strong> can also help us think about deviations in <strong>brain health.</strong></p><p>As babies grow, we carefully track their development. During the first six months, they rely entirely on their mother’s milk. After six months, they are introduced to complementary foods and continue to be monitored as they grow.</p><p>Two of the most important measurements we use are <strong>height</strong> and <strong>weight</strong>.</p><h3>Children&#39;s growth measurements</h3><p>These measurements are taken during post-natal clinic visits and plotted on growth charts. A healthy child generally remains within the <em>green</em> region, reflecting expected growth for their age and sex. When a child deviates too far from this range, especially into the <em>red</em> regions, it may indicate malnutrition, illness, or other developmental concerns.</p><p>But have you ever stopped to ask how these charts were created in the first place?</p><p>The answer is surprisingly simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TpZ1CJCppzp3e4B6i9rkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZpEUfNXAxxy-g2LS_PPHQ.png" /><figcaption>Child growth chart monitoring: Mother &amp; Child Health Handbook</figcaption></figure><p>When sufficient measurements are collected from large populations of children, patterns begin to emerge. Most children fall within the <em>normal</em> curve and follow similar growth trajectories. Using statistical methods, we can estimate what constitutes <em>normal</em> growth and identify how far an individual child deviates from that expected pattern.</p><p>In other words, we took something incredibly complex, human growth during the first five years of life, and distilled it into measurable, trackable parameters. That’s cool, if you ask me!</p><p>That same principle is widely applied across <a href="https://en.wikipedia.org/wiki/Population_health">population health</a> sciences.</p><p>What if we applied the same idea to <strong>brain health</strong>?</p><p>Tracking brain health is more complicated than monitoring a baby from birth. We usually do not have lifelong measurements beginning in childhood. However, decades of neuroscience research have shown that certain stages of life, especially later adulthood, are associated with important changes in brain structure and function.</p><p>Just as height and weight are used as markers of child development, we would need reliable measurements that reflect brain health.</p><p>So, what are these brain-related measurements?</p><h3><strong>Brain Health Measurements</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BfYYdV2GZEi8g_QYwnZtoQ.png" /><figcaption>Lee A 2024 et al.,Brain health measurement: a scoping review</figcaption></figure><p>Rather than a single number, brain health is reflected in patterns across brain regions and connections. For example, <strong>subcortical structures</strong> (deep brain regions involved in memory, emotion, and motivation) can show volume changes over time. Similarly, <strong>white matter pathways</strong>, which form the brain’s communication network, can show signs of reduced integrity or “wear and tear.”</p><p>When these systems change in meaningful ways, they can be associated with symptoms such as <strong><em>memory decline, language changes, slowed thinking, or even shifts in personality.</em></strong> Someone may begin to forget the names of loved ones, struggle to organise familiar tasks, or have difficulty navigating places they have known for years.</p><p>To study these changes properly, we need tools capable of consistently capturing them over time.</p><p>This is where neuroimaging techniques such as <strong>MRI</strong> become important. MRI allows researchers to visualise brain structures non-invasively and measure subtle changes that may not yet be visible clinically.</p><p>If enough brain measurements are collected across large populations, patterns also begin to emerge. Researchers can estimate what “healthy” brain aging typically looks like and identify when an individual begins to meaningfully deviate from those expected trajectories.</p><p>In simple terms, it becomes possible to build something similar to a “growth chart” for the brain.</p><p>We refer to this approach as <a href="https://www.nature.com/articles/s41596-022-00696-5"><strong>normative modeling</strong></a>.</p><h3>Normative Modeling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-6FEsvYGcicgv5yQdb-ekQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYTT74M7po2bpAQ6RPYj5w.png" /><figcaption>Normative modeling</figcaption></figure><p>Normative modeling establishes healthy reference patterns for brain measurements across populations. Once these reference ranges are established, researchers can compare an individual’s brain measurements to the expected baseline and quantify the extent of any deviation.</p><p>This can be particularly useful in clinical populations, where individuals may present with symptoms associated with conditions such as <strong><em>dementia, stroke, traumatic brain injury, or vascular disease.</em></strong> The goal is not simply to label people as healthy or unhealthy but to better understand how brain aging and disease progression vary across individuals.</p><h3><strong>Conclusion</strong></h3><p>In the future, regular brain health monitoring may become more common. Just as people undergo yearly blood pressure or diabetes checkups, it may become possible to track brain health trajectories over several years using neuroimaging and other biomarkers.</p><ul><li>Of course, there are still <strong>limitations</strong>.</li></ul><p>MRI scans that adequately show these brain-related changes remain expensive and inaccessible to many populations, especially in low-resource settings. Many countries still lack adequate brain imaging infrastructure, representative datasets, and specialized personnel to interpret the scans. Brain health awareness itself is often limited until the disease has already progressed significantly.</p><ul><li>But there is also an <strong>opportunity</strong>.</li></ul><p>Advances in <strong>machine learning, AI, medical imaging, and computational neuroscience</strong> are enabling new ways to study brain health at scale. Researchers are developing improved statistical models that capture individual variation rather than relying solely on broad population averages. Most importantly, there is growing recognition that brain health deserves the same long-term monitoring and preventive care we already apply to other areas of medicine.</p><p>Perhaps one day, brain health trajectories will be as familiar to us as childhood growth charts. That shift could help us detect decline earlier, intervene sooner, and better understand what healthy brain aging looks like across populations.</p><h3>References</h3><ul><li>Alyas, N., Horsley, J., Little, B., Taylor, P. N., Wang, Y., &amp; Leiberg, K. (2025). <em>Normative Modelling in Neuroimaging: A Practical Guide for Researchers</em> (Version 2). arXiv. <a href="https://doi.org/10.48550/ARXIV.2509.07237">https://doi.org/10.48550/ARXIV.2509.07237</a></li><li>Lee A, Shah S, Atha K, et al. Brain health measurement: a scoping review. BMJ Open 2024;14:e080334. doi:10.1136/ bmjopen-2023–080334</li><li><a href="https://media.path.org/documents/Mother_Child_Health_Handbook_MOH.pdf">https://media.path.org/documents/Mother_Child_Health_Handbook_MOH.pdf</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aa685b4bbb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Translating AI Research in Molecular Biology to Brain Health]]></title>
            <link>https://andaidavid.medium.com/translating-ai-research-in-molecular-biology-to-brain-health-73fcb17fafa3?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/73fcb17fafa3</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[brain-health]]></category>
            <category><![CDATA[public-health]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 10:47:37 GMT</pubDate>
            <atom:updated>2026-03-01T10:47:37.972Z</atom:updated>
            <content:encoded><![CDATA[<p>In many research settings across Africa and other low-resource areas, biological samples for genetic analysis are collected locally but analysed internationally. The reason is simple: limited capacity for high-throughput genetic and proteomic analysis. When participants consent to donate samples, for example, to study a protein involved in Alzheimer’s disease, they are often informed that a specific molecular component will be examined. That consent is meaningful. But it also raises important questions:</p><ul><li>Who owns the data once it is sequenced?</li><li>Is the analysis limited to the agreed protein?</li><li>Does shipping samples abroad reinforce long-term dependency?</li><li>Are we building local interpretative capacity or outsourcing the future?</li></ul><p>What would it take to perform this analysis in-house, and does AI provide the answer? This is where AI becomes part of the conversation.</p><p><strong>AI-Biology Timeline</strong></p><p>To better understand this, here’s a timeline of how far we’ve come in protein folding research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*sfl3dysrJUmr2Wwi2GGsxA.png" /><figcaption>Navigating the landscape of protein folding and proteostasis: from Kuzu et al.</figcaption></figure><p>While techniques for producing and isolating protein samples have advanced, allowing scientists to gather vast amounts of raw data, the ability to interpret this data lagged significantly behind. This bottleneck arose because determining a protein’s precise three-dimensional structure traditionally required expensive, time-consuming and labor-intensive methods such as X-ray crystallography and cryo-electron microscopy. Although the genetic code for a protein could be easily read, accurately predicting its 3D shape directly from its amino acid sequence remained one of biology’s greatest challenges.</p><p>The field was revolutionized by the arrival of AlphaFold. Developed by Google DeepMind, AlphaFold first made a major impact at the CASP13 competition (2018) by showcasing the power of deep learning for this task. However, the true breakthrough occurred at CASP14 (2020) with the release of AlphaFold2, which achieved an accuracy level similar to experimental methods for the first time. Through ongoing improvements, AlphaFold and similar tools can now predict protein structures with impressive precision directly from amino acid sequences, effectively solving a 50-year-old major challenge in biology.</p><p>AlphaFold showed that biology itself could be modeled as one, but there is a critical limitation.</p><p><strong>Brain Health Burden Landscape</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XkSL_ljSJtPINCMc2xBZwg.png" /><figcaption>Estimated global burden of brain health conditions</figcaption></figure><p>AlphaFold solves the structure prediction problem. Neurological disorders are more than a predictive structural problem. Conditions such as Alzheimer’s disease and Parkinson’s disease are fundamentally problems of misfolding, aggregation and time. You may carry a genetic variant linked to amyloid or tau pathology from birth. Yet amyloid plaques do not accumulate in infancy. They emerge decades later. This is shown here with a high number of neurodegenerative disease burdens manifesting later in adult life.</p><p>Why? Because neurological disorders are dynamic. They depend on:</p><ul><li>Protein stability and cellular clearance mechanisms</li><li>Inflammation and oxidative stress</li><li>Environmental exposure across the lifespan: the exposome</li></ul><p>AI can tell us what a protein should look like in ideal conditions. Brain health research must ask what it becomes under decades of environmental pressure.</p><p><strong>AI — Biology — Brain Health</strong></p><p>The next frontier in brain health involves modeling protein behavior over time, in different environments and across aging populations. It is also essential to make this process accessible locally to reduce dependence on our global partners. The ideal prediction of brain health progression relies on integrating: <em>structural prediction, molecular dynamics simulation, longitudinal clinical data, environmental exposure modeling,</em> and <em>population-specific genomics</em>. Especially in African populations, where genetic backgrounds and environmental stressors differ significantly from the datasets used to train most AI systems, this integration is not optional; it is vital.</p><p><strong>References</strong></p><ul><li><em>Investing in brain capital: Five levers for change | McKinsey</em>. (n.d.). Retrieved March 1, 2026, from <a href="https://www.mckinsey.com/mhi/our-insights/the-human-advantage-stronger-brains-in-the-age-of-ai#/">https://www.mckinsey.com/mhi/our-insights/the-human-advantage-stronger-brains-in-the-age-of-ai#/</a></li><li><em>Navigating the landscape of protein folding and proteostasis: From molecular chaperones to therapeutic innovations | Signal Transduction and Targeted Therapy</em>. (n.d.). Retrieved March 1, 2026, from <a href="https://www.nature.com/articles/s41392-025-02439-w">https://www.nature.com/articles/s41392-025-02439-w</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73fcb17fafa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software is changing, so will the Brain?]]></title>
            <link>https://andaidavid.medium.com/software-is-changing-so-will-the-brain-617c04a68761?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/617c04a68761</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 14:38:59 GMT</pubDate>
            <atom:updated>2026-02-25T14:38:59.587Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>On June 17, 2025, at AI Startup School in San Francisco, Andrej Karpathy gave an exciting talk on how software is changing <a href="https://www.youtube.com/watch?v=LCEmiRjPEtQ&amp;ab_channel=YCombinator">Y CombinatorAndrej Karpathy: Software Is Changing (Again)</a>. In the video, he explains how large language models (LLMs) are changing the coding landscape and how software 3.0 will be heavily driven by English-language prompts.</p><ul><li>Software 3.0: prompts — (programs) → LLM</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/karpathy/status/1617979122625712128%3Fref_src%3Dtwsrc%255Etfw%257Ctwcamp%255Etweetembed%257Ctwterm%255E1617979122625712128%257Ctwgr%255Ed95f1155767be03f0ce0af688c5564b2a3f5432e%257Ctwcon%255Es1_%26ref_url%3Dhttps%253A%252F%252Fwww.notion.so%252F1c7589533ca480ce999ff8ea5668d9ec%253Fv%253D1c7589533ca480979d72000c3bae8053p%253D21b589533ca4804bbf0afb377cc30527pm%253Dc&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/bcd700fe4bd2c5c0ce605f5d0ac2bef1/href">https://medium.com/media/bcd700fe4bd2c5c0ce605f5d0ac2bef1/href</a></iframe><p>These sentiments paved the way for a new coding paradigm, “vibe coding”.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/karpathy/status/1886192184808149383%3Fref_src%3Dtwsrc%255Etfw%257Ctwcamp%255Etweetembed%257Ctwterm%255E1886192184808149383%257Ctwgr%255Ed95f1155767be03f0ce0af688c5564b2a3f5432e%257Ctwcon%255Es1_%26ref_url%3Dhttps%253A%252F%252Fwww.notion.so%252F1c7589533ca480ce999ff8ea5668d9ec%253Fv%253D1c7589533ca480979d72000c3bae8053p%253D21b589533ca4804bbf0afb377cc30527pm%253Dc&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6bfa729c8bf74d340e2418f79e2ee14/href">https://medium.com/media/f6bfa729c8bf74d340e2418f79e2ee14/href</a></iframe><p>This approach has been widely adopted by the developer community, with many individuals going from zero to hero in setting up programming projects. However, not everyone shares this enthusiasm. Critics highlight the risks of “vibe coding,” especially when developers dive in without first understanding core programming principles. Coding requires learning a programming language and developing problem-solving skills essential for debugging.</p><p>But what happens when English becomes the new programming language and LLMs can debug code? What does this shift mean for the <strong>programmer’s</strong> <strong>brain</strong>?</p><h3>How does the brain comprehend code?</h3><p>Computer programming is a relatively recent cultural invention, one that the human brain did not evolve to support. To understand code, you have to learn programming languages (<strong><em>Python, Java, C++, GO,</em></strong><em> etc</em>*). Recent studies suggest that code comprehension, formal logic and math depend on a shared <strong><em>fronto-parietal network</em></strong>. Language comprehension, on the other hand, primarily occurs in the <strong><em>perisylvian fronto-temporal language network</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*SjwNHFe9sdbr1xkejUlL2g.png" /></figure><p>A fascinating study, which will be the focus of this blog, provided an interesting overview of the overlap of code, logic and language.</p><p>The study revealed an extensive overlap between code and logic, followed by math and multi-source inference tasks. This study further demonstrated that the <strong><em>perisylvian fronto-temporal network</em></strong>, which is selectively responsive to language, had low variable overlap with the neural network involved in code comprehension.</p><p>The reason for the low overlap between the <strong><em>perisylvian fronto-temporal language network</em></strong> and code is that the language system is evolutionarily predisposed to support natural language processing in particular, and is therefore not generalisable even to similar domains such as computer code and formal logic.</p><p>A key finding from the paper was that the <strong><em>fronto-parietal network</em></strong> is consistently engaged in expert programmers during code comprehension. From here, we can start asking ourselves essential questions: What happens in the brain during code generation? Given that English is increasingly being adopted in “vibe-coding”, are we likely to see more overlap and involvement of the perisylvian fronto-temporal language network in code generation and comprehension?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*gZTwalOR-ReT8gZ1sbKuwg.png" /><figcaption>Figure 1. Whole-brain contrasts. Areas shown are p&lt;0.05 cluster-corrected p-values, with intensity (both warm and cold colors) representing uncorrected vertex-wise probability. In the maps for each localizer contrast, both warm and cold colors indicate activated vertices in the contrast, with the cold color labelling the overlap with the code contrast.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgOFW_xO-5NlKX_SYGjfTA.png" /><figcaption>Figure 3. Overlap between the brain map revealed by the code contrast and each of the brain maps revealed by the localizer contrasts.</figcaption></figure><h3>Where to next?</h3><p>As “vibe coding” continues, this trend will lower the barrier to entry, making it easier than ever for newcomers to start learning how to code. More people will adopt coding practices, and the global population of coders will steadily increase.</p><p>On the neural front, we may begin to observe increased overlap in activation across the left temporal regions and the frontal cortex. From a cognitive computational neuroscience perspective, more frequent interactions and correlated activity in these brain regions could enhance both code comprehension and generation. Much of the software we’ll see out there will be generated from code created through natural language prompts.</p><p>This raises an intriguing question: Are we likely to observe more ontogenetically developed firing patterns and neural pathways that are code-relevant, emerging from the <strong><em>perisylvian fronto-temporal</em></strong> region and strengthening over time as coding becomes dominated by English?</p><h3>Reference</h3><p><a href="https://elifesciences.org/articles/59340#s2">https://elifesciences.org/articles/59340#s2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=617c04a68761" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Complex Systems Learn: Part 3b]]></title>
            <link>https://andaidavid.medium.com/how-complex-systems-learn-part-3b-ffedaf098572?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffedaf098572</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 05:17:48 GMT</pubDate>
            <atom:updated>2026-01-05T05:17:48.030Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Part A outlined the first three steps in Hebbian learning.</p><ol><li>Connections between two neurons.</li><li>Connections in multiple neurons.</li><li>Connections through time.</li></ol><p>Part B will outline a more mathematical and systemic approach involved in Hebbian learning.</p><h3>Chunk 4: Matrix form</h3><p>In this section, we transform the Hebbian plasticity equation from a scalar form to a matrix form.</p><p>The importance of setting it up in matrix form enables us to:</p><ul><li>Use <strong>eigenvalue analysis</strong> to predict long-term behaviour.</li><li>Recognise the system as a type of <strong>dynamical system</strong>.</li><li>See the emergence of <strong>principal components.</strong></li></ul><p><strong><em>Hebbian Plasticity</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*fnr1q1KFf-CQnPN6ydUMjQ.png" /><figcaption>in scalar form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/108/1*ppdTXWodICGyHPcRgAdX5A.png" /><figcaption>in matrix form</figcaption></figure><p>This form shows that the weight updates are influenced by the entire input pattern, not just a single neuron.</p><ul><li>x is the <strong>input vector</strong>: all the xi’s.</li><li>w is the <strong>weight vector</strong>: all the wi’s.</li><li>𝑥 𝑥ᵀ is an <strong>outer product</strong>, which gives an N×N matrix.</li></ul><p><strong>Key takeaway</strong>: When training or learning occurs over time, whether in discrete batches or continuous streams, it suffices to focus on the <strong><em>average effect</em></strong> of the input rather than on individual inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*gc1LZ4Sxiop6GgIemDzlTg.png" /><figcaption>average effect to a correlation matrix</figcaption></figure><p>This <strong><em>average effect</em></strong> is represented as ⟨ 𝑥 𝑥ᵀ ⟩, which is the input data’s empirical or time-averaged correlation matrix. This transformation facilitates analysis of how the weights evolve given the statistical structure of the entire dataset.</p><p>The <strong><em>correlation matrix</em></strong> displays the correlation coefficients between multiple variables. It represents a <strong><em>linear differential equation</em></strong> in which the weight vectors evolve under the influence of the input correlation structure. Weight change is determined by how input signals are correlated with each other across time.</p><p><em>For chunks 5 and 6, a breakdown of eigenvalues, eigenvectors, and principal component analysis will be provided. This will be covered in detail in a later blog post.</em></p><h3>Chunk 5: Solving the differential equation</h3><p>The solution to the Hebbian learning equation involves a sum of exponentially growing components, each aligned with an <strong><em>eigenvector</em></strong> of the input correlation matrix. Over time, the term associated with the largest <strong><em>eigenvalue</em></strong> dominates, causing the weight vector <em>w(t)</em> to align with the corresponding eigenvector <strong><em>c</em>∗</strong>.</p><h3>Chunk 6: Principal component analysis</h3><p>Despite its instability, Hebbian learning effectively extracts the first <strong><em>principal</em></strong> <strong><em>component</em></strong> of the input data by aligning the neuron’s weights with the direction of greatest variance.</p><p>This idea can be extended to perform <strong><em>Principal Component Analysis (PCA)</em></strong> by incorporating additional output neurons, each constrained (e.g., through <strong><em>lateral inhibition</em></strong>) to learn distinct components.</p><p>Thus, a network of Hebbian-learning neurons can collectively capture multiple principal components, allowing it to distil and represent the key statistical structure of the input, which constitutes a fundamental form of unsupervised learning.</p><h3>References</h3><p><a href="https://www.sciencedirect.com/topics/psychology/hebbian-learning#:~:text=In%20subject%20area%3A%20Psychology,and%20output%20are%20simultaneously%20active">https://www.sciencedirect.com/topics/psychology/hebbian-learning#:~:text=In subject area%3A Psychology,and output are simultaneously active</a></p><p><a href="https://en.wikipedia.org/wiki/Hebbian_theory">https://en.wikipedia.org/wiki/Hebbian_theory</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffedaf098572" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Complex Systems Learn: Part 3a]]></title>
            <link>https://andaidavid.medium.com/how-complex-systems-learn-part-3a-867dc719da77?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/867dc719da77</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Sat, 03 Jan 2026 11:57:54 GMT</pubDate>
            <atom:updated>2026-01-03T11:57:54.932Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In Part 1, we introduced the three areas of learning we’ll be focusing on:</p><ul><li><em>Backpropagation</em></li><li><em>Hebbian learning</em></li></ul><p>Hebbian learning is a form of unsupervised learning meant to model how biological neural networks learn. Unlike backpropagation, biological neural networks do not have access to error rates from other neurons; they have access to some local error sufficient to enable learning. The local learning rule is implemented by an algorithm that operates on the current state of a neuron’s immediate stimuli, adjusting the weights accordingly.</p><p>In Hebbian learning, links between nodes are roughly analogous to the synapses between neurons. Changes in synaptic strength reinforce the connection. Learning at this synaptic level is governed by pre- and post-synaptic spikes.</p><p>In this section, we’ll break down Hebbian learning into three chunks and cover the other three chunks in Part 3 b.</p><h3>Chunk 1: Neurons that fire together wire together</h3><p>Our focus will be on two neurons (x and y) communicating. The two neurons will have a synaptic connection (weight, w). The more the neurons fire, the stronger the synaptic connection. This captures the structural properties of the input in a manner that can be categorised as supervised learning.</p><p>We will <strong>mathematically</strong> represent this concept in the following way,</p><p>wij = xi * yj</p><pre>import numpy as np<br><br># define two neurons, input = x and output = y<br><br>x = np.array([1,0,1)]<br>y = np.array([1,1)]<br><br># create a class &#39;Hebb rule&#39;, that executes the math<br>class hebb:<br> def __init__(self, x, y):<br>   self.x = x<br>   self.y = y<br>   self.weights = None<br>   <br> def learn(self)<br>   self.weights = np.outer(self.x, self.y)<br><br>hebb_model = hebb(x, y)<br>hebb_model.learn()<br><br>print(hebb_model.weights)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*jCTJyh9Ay-UktbqVt-VSOw.png" /><figcaption>Single-layer unsupervised feedforward neural network with the Hebbian learning</figcaption></figure><p>Here, we say that neuron y(t) ‘s response is described as a linear combination of its inputs, the sum of w(i) x(i), followed by a response function.</p><ul><li>The response function here could probably be a non-linear function like sigmoid or tanh, but we could use a linear function for simplicity; f (a) = a</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N29itKtLDolbp8PRk6GTgA.png" /></figure><h3>Chunk 3: Hebbian plasticity</h3><p>Hebbian plasticity describes the evolution of synaptic weights over time. The change in weight w(i) depends on:</p><ul><li>Its input x(i) and</li><li>The whole input vector x times the weight</li></ul><p>Putting the two concepts we’ve described above together;</p><ul><li>wij = xi * yj</li><li>y(t) as a sum of the weights (w) by inputs (x) passed through a linear response function.</li></ul><p><em>We now introduce a learning rate n, a small constant that represents how fast learning happens.</em></p><p>The change of weights over time will now be defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnNIrHxILcc4z7j-Mr7Txg.png" /></figure><h3>Summary</h3><p>Here’s a breakdown of what we’ve covered.</p><ul><li>First, we define Hebb’s rule.</li><li>Second, we show a neuron model of the rule in action.</li><li>Third, we describe its evolution through time.</li></ul><h3>References</h3><ul><li><a href="https://www.reddit.com/r/MachineLearning/comments/a9wnv0/d_state_of_hebbian_learning_research/">https://www.reddit.com/r/MachineLearning/comments/a9wnv0/d_state_of_hebbian_learning_research/</a></li><li><a href="https://www.cs.cmu.edu/afs/cs/academic/class/15782-f06/slides/hebbpca.pdf">https://www.cs.cmu.edu/afs/cs/academic/class/15782-f06/slides/hebbpca.pdf</a></li><li><a href="https://neuronaldynamics.epfl.ch/online/Ch19.S2.html">https://neuronaldynamics.epfl.ch/online/Ch19.S2.html</a></li></ul><p><strong><em>Appendix</em></strong></p><p>Additional content for showing Hebb’s rule in action in a biological neuron.</p><p><a href="https://www.jneurosci.org/content/33/45/17641/tab-figures-data">https://www.jneurosci.org/content/33/45/17641/tab-figures-data</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=867dc719da77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Complex Systems Learn: Part 2]]></title>
            <link>https://andaidavid.medium.com/how-complex-systems-learn-part-2-d5bfbb4dffb3?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5bfbb4dffb3</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 06:35:12 GMT</pubDate>
            <atom:updated>2026-01-02T06:35:12.735Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Part of learning involves updating prior beliefs in the face of new evidence. In neural networks, learning consists of updating the weights of the neurons to move closer to the target value. We’ll start this section by defining a vital term: <strong>loss function.</strong> A loss function (also called a <strong>cost function</strong> or <strong>objective function</strong>) is a mathematical function that measures the difference between the predicted output of the neural network and the actual target value. The goal of training a neural network is to <strong>minimize the loss function</strong> by updating the weights through <strong>backpropagation</strong> and an <strong>optimizer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*k50s0wA29_x__Ntbd8wqoA.png" /><figcaption>the mathematical flow of learning in a neuron</figcaption></figure><h3>Backpropagation Through Layers</h3><p>To better capture how neural networks train, we must understand how backpropagation moves through different neural network layers. This works through the backward pass, which captures two essential steps.</p><ol><li>Calculating the derivative of each operation and evaluating it at its input</li><li>Multiplying the results together</li></ol><p>In essence, partial gradients from one layer are reused to compute the gradient for the previous layer.</p><h3>The math</h3><p>As stated earlier, this begins from the loss function[cost function (<em>getting the error from predicted vs actual target</em>). The error function in classic backpropagation is derived from the <strong>mean squared error</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*dfp-LOLyX2BySFfMc70AyA.png" /><figcaption>mean squared error</figcaption></figure><p>Backpropagation attempts to minimize the following error function with respect to the neural network’s weights. The derivation of the backpropagation algorithm begins by applying the chain rule to the partial derivative of the error function. In practice, it’s also vital to consider the activation function’s derivative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/1*jxKHD2Zva7NcEwp6RIGLpg.png" /><figcaption>the chain rule on the partial derivative of the error function</figcaption></figure><ul><li><em>akj</em> is the activation (product-sum plus bias) of node j in layer k before passing it to the nonlinear activation function.</li></ul><p>The intuition reads: “<em>If I tweak this weight a bit, how does that tweak affect the neuron’s internal state and how does that impact the total loss?</em>”</p><p>This equation tells us how a weight affects the error function: we examine how that weight changes the neuron’s pre-activation output, and how that pre-activation output, in turn, affects the final error.</p><p><strong><em>What about backpropagation through the hidden layers?</em></strong></p><p>In the hidden layers, we don’t directly know how the loss function changes with this hidden layer’s weights. Here, we use the <strong>chain rule</strong> to “pass back” the gradient from later layers.</p><p>The steps involved include</p><ul><li>Each layer receives an “error signal” from the next.</li><li>Multiply that by the derivative of its activation.</li><li>Then compute weight gradients.</li></ul><p>(More here: <a href="https://brilliant.org/wiki/backpropagation/">https://brilliant.org/wiki/backpropagation/</a>)</p><p><strong>The Code</strong></p><pre># The function is a method of the object, Operator.<br># The Operator class will represent one of the constituent functions in <br># the neural network<br><br># the backward function <br>def backward(self, output_grad: ndarray) -&gt; ndarray:<br> &#39;&#39;&#39;<br> Calls the self._input_grad() function.<br> Checks that the appropriate shapes match.<br> &#39;&#39;&#39;<br> assert_same_shape(self.output, output_grad)<br> self.input_grad = self._input_grad(output_grad)<br> assert_same_shape(self.input_, self.input_grad)<br> return self.input_grad</pre><h3>Additional topics under backpropagation</h3><ul><li>Vanishing gradients in sigmoid and Tanh</li><li>Backpropagation in RNNs</li></ul><h3>References</h3><ul><li><a href="https://brilliant.org/wiki/backpropagation/">https://brilliant.org/wiki/backpropagation/</a></li><li><a href="https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b">https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b</a></li><li><a href="https://www.youtube.com/watch?v=i94OvYb6noo&amp;t=2639s&amp;ab_channel=AndrejKarpathy">https://www.youtube.com/watch?v=i94OvYb6noo&amp;t=2639s&amp;ab_channel=AndrejKarpathy</a></li><li>Deep Learning from Scratch. Building with Python from First Principles. Seth Weidman.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5bfbb4dffb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Complex Systems Learn: Part 1]]></title>
            <link>https://andaidavid.medium.com/how-complex-systems-learn-part-1-20bd76d75172?source=rss-7fe4cba522d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/20bd76d75172</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[David Andai]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 21:58:45 GMT</pubDate>
            <atom:updated>2026-01-01T21:58:45.979Z</atom:updated>
            <content:encoded><![CDATA[<p>This series will cover the basic intuition underlying complex data-processing systems, such as biological neurons and computational systems modeled as neural networks.</p><h3>Neural-Nets, Supervised Learning, Backpropagation</h3><p>At its core, a neural network maps inputs to outputs. These mappings use weights that are fine-tuned to recognize specific patterns. The weights are adjusted by comparing the network’s output to the desired output. This adjustment process works backward through the network to identify which connections strongly influenced the output.</p><p>Backpropagation performs this adjustment using the chain rule (calculus). It computes gradients layer by layer, multiplying local gradients by gradients from subsequent layers to determine how each weight contributes to the final error. This creates a recursive-like process through the network. More precisely, it involves recursively applying the chain rule across the computational graph to quantify how changes in intermediate values affect the final loss function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*BFimBlhR2pIPYBlKcJKWUA.png" /><figcaption><em>neural network, backpropagation</em></figcaption></figure><h3>Biological Neurons, Unsupervised learning, Hebb’s learning</h3><p>“Cells that fire together, wire together.”</p><p>This idea, introduced by <strong>Donald Hebb</strong> in 1949, posits that the connection (synapse) between two neurons strengthens when they are activated simultaneously. The idea is that synaptic weights between two neurons increase when the presynaptic neuron contributes to the postsynaptic neuron&#39;s firing.</p><p>Hebbian learning is the basis of learning in simple neural networks without explicit labels or instructions (unsupervised learning). Hebbian learning relies on the principle of <em>co-occurrence</em>, meaning it learns patterns by observing what tends to occur together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*aUpIAuCmvgMkTKbQUgVv4w.png" /><figcaption><em>network with weights</em></figcaption></figure><h3>Agent systems, Reinforcement Learning</h3><p>Human learning operates across multiple spaces and objectives through the brain’s adaptable neural networks. Specific neural circuits can undergo targeted adaptation at finer scales, enabling specialized skill development and knowledge acquisition.</p><p>Reinforcement learning is the process of learning what to do, given a state and a set of possible actions, to maximize a reward. The learner, whom we will call an agent, is not told what to do; he must discover this by himself through interacting with the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*JQiS7NRG6MMAAWzPYNn_Kw.png" /><figcaption>action-reward feedback loop</figcaption></figure><h3>References</h3><ul><li><a href="https://neuronaldynamics.epfl.ch/online/Ch19.S2.html">https://neuronaldynamics.epfl.ch/online/Ch19.S2.html</a></li><li><a href="https://arxiv.org/pdf/2504.01990">https://arxiv.org/pdf/2504.01990</a></li><li><a href="https://medium.com/@amit25173/unsupervised-hebbian-learning-neurocomputing-55d32aad06df#:~:text=Hebbian">https://medium.com/@amit25173/unsupervised-hebbian-learning-neurocomputing-55d32aad06df#:~:text=Hebbian</a> Learning Rule&amp;text=In plain terms%2C it says,active the output neuron is.</li><li><a href="https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b">https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20bd76d75172" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>