<?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 Shreyansh Shailaan on Medium]]></title>
        <description><![CDATA[Stories by Shreyansh Shailaan on Medium]]></description>
        <link>https://medium.com/@sshailaan?source=rss-c44614d13be3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ceyLPCOgs1zvXynH</url>
            <title>Stories by Shreyansh Shailaan on Medium</title>
            <link>https://medium.com/@sshailaan?source=rss-c44614d13be3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:19:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sshailaan/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[What a Leading Neuroscientist Taught Me About How Life Solves Problems]]></title>
            <link>https://medium.com/@sshailaan/what-a-leading-neuroscientist-taught-me-about-how-life-solves-problems-2f694b9914cf?source=rss-c44614d13be3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f694b9914cf</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[medicine]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[biology]]></category>
            <dc:creator><![CDATA[Shreyansh Shailaan]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 13:45:36 GMT</pubDate>
            <atom:updated>2026-10-24T13:45:36.163Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was learning about the human body as a 1st year medical student — I thought it was rigid, akin to a machine, where in all the responses were hard coded in the system which would be the DNA. A script of sorts, running in the background churning out responses to problems which it had learned to solve over 4 billion years of evolution. Of course, human DNA — like any other organism is made up of the same principle components. It made sense, life must have a framework — determining its structural hierarchy and functional output. The brain simply receives input from the sensory appendages i.e the skin, nose, ears, and the eyes. It then comprehends the all these inputs simultaneously to process the information to create a local experience which we often describe as sentience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lt6bUWtwgIfBFknHwKcysA.jpeg" /><figcaption>Before DNA was proved as the hereditary material of life by Avery and MacLeod many scientists thought of protein being the hereditary molecule</figcaption></figure><p>In my years of learning medicine I encountered fundamental problems with this “rigid” view of the brain (or really the nervous system) and intelligence. How does the brain — which is enclosed and suspended inside the cranium forever, decipher the world outside with such high level of certainty. How can a rigid machine ever know how to tackle novel problems — which are infinite in number and discrete in nature. Surely there must be some emergent problem solving capacity arising from this hard code in us.</p><p>Luckily back in 2024 I had the pleasure of talking with Dr. Karl J. Friston. A theoretical neuroscientist, and the pioneer of the groundbreaking theory of “Free energy principle”. Which explains how living systems maintain themselves, infer the causes of their sensations, and act within an environment they can never access directly.</p><p>Before trying to understand how the brain can tackle so many problems — I want you to imagine a simple scenario. A single celled bacteria living in a swamp. How must this bacteria know how to acquire nutrients from its environment to sustain itself? How does it know who’s likely a predator? What chemicals must it avoid in its environment? Think of it, a single cell is composed of inanimate particles with no sense, perception, yet somehow someway these molecules have.</p><p>To combat these problems, we must first define an organism. Not biologically, but more in a physical sense. There are some requisites that an organism must fulfil in order to qualify as living.</p><p>It must be separate from its environment, i.e the internal system of the organism must be physically separated from it’s environment. If it weren’t the organism will just be a part of the environment.</p><p>It must also be connected to the environment, otherwise it can’t derive nutrients for itself, it can’t know the current state of its environment if it was separated completely from it.</p><p>And using the combination of the above two, it should be able to regulate itself in a manner that is characteristic of life and known as Markov blanket which is a more mathematical approximation of living states.</p><p>You can see life as a self sustaining chemical reactions of enormous proportions and preposterous complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6jTlZMTaFvrjdnma_Dv_Og.png" /><figcaption>Markov blanket explaining the separation between internal and external states and sensory states which tries to connect the internal state with the external state.</figcaption></figure><p>Once we establish these basic principles, it becomes evident that any and all interactions the organism has with the environment must be indirect. And as we move from simple single celled organisms towards complex multicellular life the interactions become more and more indirect. A single cell is separated from the environment by a simple cell membrane composed of phospholipids, proteins and various channels for exchange of ions but we have a rather intricate system of cells epithelium, endothelium, connective tissue, and so forth. So in a physical sense life is the maintenance of this exact internal state. <em>The Selfish Gene </em>by Richard Dawkins, explains this increasingly indirect interaction with the environment from an evolutionary standpoint. Where in the gene, the principle component of evolution, built these complex machinery of survival through trial and selection.</p><p>To maintain this internal state the organism can not work as a purely reactive machine. If a single cell is low on energy — it must acquire more energy from the environment before the system starves and shuts down. So it must first assess its internal state to ascertain its low on ATP — and act promptly before it enters starvation. This is where the free energy principle comes in.</p><p>A bacterium, a fish or a human can only ever exist in a narrow set of states: the right temperature, the right chemistry, the right pH. Any state is <em>surprising</em> if it is highly improbable for a creature of that kind. A fish on a riverbank is in a very surprising state, and it won’t stay a fish for long. So an organism that persists must, on average, keep its states unsurprising. In order to determine surprise it must have access to the hidden state of the world. The term hidden state is used to denote the probable cause of its current sensation. In this context, surprise is a mathematical quantity. It describes how improbable a particular sensory observation is under a model of the world.</p><p>We have already established that any and all interactions an organism has with its environment must be indirect. So to know a true value of surprise, the organism would need to know every possible cause of its current sensations and how likely each one is. A cell, or a brain sealed in bone, has no access to that. This is the problem with surprise, it can’t be computed directly. Each hidden state produces a observable consequence- which can be picked up as sensory input — fish is asphyxiated, completely dry and probably blinded by the sun. It can only compute its surprise by going backwards by interpreting the sensory inputs to determine the hidden state — this is called <em>inverse problem</em>.</p><p>To calculate the exact surprise of its current sensory state, the system would need to account for all the possible hidden causes that could have produced it, weighted by how probable each cause is under its model. This becomes a difficult problem as the number of possible causes and their interactions grows. The organism has access to the consequences of the world, but not to the complete set of possibilities that generated them.</p><p>This is where <em>variational free energy</em> comes in.</p><p>Instead of attempting to calculate surprise directly, we can construct a quantity that is both mathematically tractable and closely related to it. This quantity is calculated using two things: a model of how possible states of the world produce sensory observations, and an estimate of which hidden states are most likely given the information currently available. Variational free energy provides an upper bound on surprise. By minimising this bound, the system can improve its estimate of the causes of its sensory observations.</p><p>It is a balance between two demands. The first is accuracy: how well does a proposed explanation account for the sensory information available? The second is complexity: how far must the system move away from its prior expectations to accommodate that explanation? A good explanation accounts for the observations without requiring an unnecessarily large departure from what the system previously expected.</p><p>In a living organism, these prior expectations need not be conscious beliefs. In a bacterium, they may be reflected in the structure of its receptors, its biochemical networks and the regulatory mechanisms shaped by evolution. In a human brain, the mechanisms are considerably more elaborate, involving perception, learning and the interpretation of sensory information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dn2o2sqU5Y_oMNgrSjB8YA.png" /></figure><p>The important point is that the organism does not need direct access to the hidden state of the world. It needs a way to infer that state from the consequences it can observe.</p><p>And inference is only part of the story. An organism can also change how it interacts with its environment. A bacterium can move towards a favourable chemical gradient; an animal can seek food; a human can look more closely at something they do not understand. Through changes in its internal estimates, learning and action, an organism can regulate its relationship with the world rather than merely wait for its internal state to deteriorate.</p><p>When I first learned this framework I was perplexed by its simplicity- it made sense. Living systems can be interpreted as predictive machines — with increasing levels of complexity. And the power of prediction can save the organism from an untimely demise and keep it thriving. The framework shifted my view of life from a stiff rulebook to an ever evolving dynamic system full of surprise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f694b9914cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>