Marketing13 min read25 May 2026

The Algorithm That Built Itself

The most powerful algorithm on earth isn't running on a server. It's running inside your head.

The most powerful algorithm on earth isn’t running on a server. It’s running inside your head.


There is an algorithm that has been running for approximately two hundred thousand years. It wasn’t written in Python. It doesn’t live on a server in Virginia. It doesn’t need a GPU cluster or a training dataset scraped from the internet. It is the most sophisticated recommendation engine ever built, and it has been optimising itself since the first human looked at another human and decided whether to trust them or eat them.

We call it human psychology. And we’ve only just figured out how to read the source code.

The Algorithm Before the Algorithm

Before Google, before Facebook, before TikTok’s For You page decided what you should care about this afternoon, there was already an algorithm deciding what you cared about. It was deciding which people you gravitated toward, which messages made you stop scrolling through life and which ones you skipped, which brands felt like home and which felt like noise.

This algorithm had a name nobody used, because nobody knew it was there. It was the invisible architecture of motivation, cognition, and emotion that determined how every human on earth processed information, made decisions, and chose who to trust. It ran on autopilot, in the background, like the operating system on your phone. You never saw it. You never thought about it. But every single choice you made, from which cereal you bought to which career you pursued to which partner you swiped right on, was filtered through it.

The algorithm had four engines.

The first engine ran on connection. It asked: Does this bring me closer to people? It powered the humans who could walk into a room and read the emotional temperature in three seconds, who instinctively knew when someone was about to quit, who could turn a group of strangers into a team through sheer force of belonging.

The second engine ran on logic. It asked: Does this make sense? It powered the humans who wouldn’t sign a contract until they’d read every clause, who built systems that actually worked, who could look at a spreadsheet and see the lie hiding in row fourteen.

The third engine ran on freedom. It asked: Does this open doors? It powered the humans who broke the rules because the rules were boring, who launched products nobody asked for and somehow everybody needed, who treated every “no” as a suggestion rather than a verdict.

The fourth engine ran on security. It asked: Does this hold up? It powered the humans who built the infrastructure everyone else took for granted, who noticed the risk nobody else saw, who kept the lights on while the visionaries were out chasing the horizon.

These four engines have been running since the species began. Every human who has ever lived has operated on one or more of them. Every war, every empire, every market, every movement, every viral moment has been powered by the interaction between them. The algorithm was always there. We just didn’t have the manual.

Reverse-Engineering the Invisible

For most of human history, we’ve tried to understand ourselves through simplified models. Personality tests. Typologies. Colour codes. “You’re a red.” “You’re an INFP.” “You’re a high D, low C.” These tools gave people a language for talking about difference, which was useful, but they missed something fundamental. They described the surface behaviour without explaining the engine underneath.

It’s like describing a car by its colour. “It’s a blue car.” True, but not helpful when you need to understand why it accelerates fast, corners badly, and keeps stalling in the cold.

The framework that cracked this open was built on seven psychological theories that have been tested, validated, and replicated across decades of research. Not one theory. Not a simplified model. Seven, woven together into a single architecture that maps not just what people do, but why they do it, how they process it, and what happens when it goes wrong.

Self-Determination Theory tells us that every human is driven by three fundamental needs: autonomy, competence, and relatedness. The four engines I described earlier are variations on these three needs, with a fourth, security, added because the real world includes threats that pure SDT doesn’t fully account for.

The Big Five personality model, known as OCEAN, gives us the chassis. Not the engine, but the body the engine sits in. High extraversion with high agreeableness produces a different operating style than high openness with low conscientiousness, even when the underlying motivation is the same.

Dual Process Theory, Kahneman’s System 1 and System 2, explains the processor layer. Some humans default to fast, intuitive, emotionally fluent processing. Others default to slow, deliberate, evidence-based processing. This isn’t about intelligence. It’s about cognitive style. The person who “just knows” the answer and the person who needs to prove it are both running valid processes. They’re just running different ones.

Regulatory Focus Theory explains direction. Some people are promotion-focused, oriented toward gains, possibilities, and rewards. Others are prevention-focused, oriented toward avoiding losses, maintaining standards, and managing risk. This isn’t optimism versus pessimism. It’s a fundamental difference in how the brain frames every decision.

Social Identity Theory explains the relational filter. How we see ourselves is inseparable from the groups we belong to. The same message lands completely differently depending on whether the recipient sees themselves as part of the group sending it.

Cognitive Bias Theory explains the distortion logic. Every mindset has its own characteristic blind spots, the systematic errors it makes when processing information. Not random errors. Predictable, patterned errors that follow directly from how that mindset is wired.

And the Appraisal Theory of Emotion explains the emotional filter. The same event, a budget cut, a promotion, a partner’s silence, is appraised completely differently depending on the psychological architecture of the person experiencing it. The emotion isn’t the event. The emotion is the appraisal of the event.

When you weave these seven theories together, something remarkable happens. You don’t get a personality test. You get an operating system. A complete architecture for understanding how any human processes any situation, makes any decision, and responds to any message.

The algorithm was always there. This is the manual.

The Feedback Loop

Now here’s where it gets interesting. And slightly terrifying.

The algorithm that was running inside your head before you were born? It’s now being read by an algorithm that was built six months ago. And that algorithm is using what it learns to rewrite the one inside your head.

This is the feedback loop, and it is the single most important dynamic in modern marketing, politics, and human behaviour.

Here’s how it works.

You scroll. As you scroll, you make micro-decisions. Stop or skip. Like or ignore. Click or don’t. Each of these micro-decisions is filtered through your psychological architecture. If you’re a connection-driven human, you stop on the post that shows a group of friends laughing. If you’re a logic-driven human, you stop on the infographic with the data. If you’re a freedom-driven human, you stop on the thing that looks different from everything else. If you’re a security-driven human, you stop on the thing that promises a proven result.

You don’t decide to do this. Your System 1 does it for you. It’s fast, automatic, and largely unconscious. You’re not making a choice. You’re running an algorithm.

The platform’s algorithm reads these micro-decisions. It doesn’t know why you stopped. It doesn’t know that you stopped because your regulatory focus is prevention-oriented and the headline promised to help you avoid a costly mistake. It just knows that you stopped. And it learns.

It learns which psychological architecture you’re running. Not consciously. Not in language you’d recognise. But in the mathematical representation of your behaviour patterns, it builds a model of your algorithm. And then it optimises for it.

It shows you more of what your algorithm responds to. You engage more. It refines its model. You engage even more. The loop tightens. Over time, something subtle and profound happens. It doesn’t just predict your behaviour. It shapes it.

The connection-driven human sees an ever-narrowing feed of social content, reinforcing the belief that connection is the primary lens through which to view the world. The logic-driven human sees an ever-narrowing feed of data and analysis, reinforcing the belief that evidence is the only valid basis for decision. The freedom-driven human sees an ever-narrowing feed of disruption and novelty, reinforcing the belief that the system is always the enemy. The security-driven human sees an ever-narrowing feed of warnings and proven solutions, reinforcing the belief that the world is a dangerous place that requires constant vigilance.

The algorithm doesn’t just read your operating system. It amplifies it. It takes your natural psychological architecture and turns up the gain until the secondary functions, the ones that provide balance, context, and self-correction, are drowned out.

This is what the behavioural scientists call a feedback loop. But that term is too clinical for what’s actually happening. What’s actually happening is that the most sophisticated psychological algorithm ever built, the one inside your head, is being tuned by a machine learning model that doesn’t understand psychology, doesn’t care about your wellbeing, and is optimising for a metric, engagement, that is not the same as the metric you would choose for yourself.

The Distortion Amplifier

Here’s the part that keeps me up at night.

Every psychological mindset has characteristic blind spots. These aren’t flaws. They’re features. They’re the inevitable consequence of a brain that has evolved to process information through a particular lens. The connection-driven human overweights social evidence. The logic-driven human overweights data that confirms existing frameworks. The freedom-driven human overweights novelty. The security-driven human overweights risk.

These biases exist to make decision-making faster. And in a natural environment, they mostly work. The connection-driven human’s tendency to trust the group is a survival advantage when the group is trustworthy. The logic-driven human’s tendency to demand evidence is a survival advantage when the evidence is available.

But the algorithmic feed is not a natural environment. It’s a curated environment. And the curation is optimised for engagement, not accuracy. Which means the algorithm doesn’t just passively reflect your biases back to you. It actively selects for the stimuli that trigger your specific distortion logic, because those stimuli are the ones you engage with most.

The connection-driven human gets an increasingly distorted view of social consensus. The logic-driven human gets an increasingly curated dataset that confirms what they already believe. The freedom-driven human gets an increasingly radicalised feed of anti-establishment content. The security-driven human gets an increasingly anxious feed of threats and warnings.

The algorithm is building a personalised distortion field. And because the distortion is personalised, it doesn’t feel like distortion. It feels like clarity. It feels like the world is finally showing you what you always knew to be true.

This is the algorithmic version of what psychologists call confirmation bias, but it’s confirmation bias on industrial scale. It’s not you seeking out information that confirms your beliefs. It’s an information system doing it for you, at a speed and scale that your brain was never designed to handle.

The Invisible First Click

In my work in student accommodation, we’ve been tracking something called the Invisible First Click. The concept is simple: by the time a prospective student visits your website, the algorithm has already done the work. It has already formed their consideration set. It has already decided which brands are credible and which are noise. It has already pre-selected a shortlist.

The student didn’t choose to visit your website because they did independent research and concluded you were the best option. They visited because the algorithm told them, through the accumulated weight of every micro-decision they’ve made over the past six months, that your brand belongs in their consideration set.

The first click wasn’t on your website. The first click was on a TikTok seven months ago that trained the algorithm to show them your Instagram ad, which trained the algorithm to show them your Google result, which trained the algorithm to include you in the AI-generated answer when they asked ChatGPT “best student accommodation in Leeds.”

The algorithm built the funnel before you knew the student existed. And if you’re not feeding the algorithm the right psychological signals, for the right mindsets, at the right stage of their decision journey, you’re not in the consideration set. You’re not losing traffic. You’re invisible.

This is why the old model of marketing, the one that assumed people made rational decisions based on available information, is dead. People don’t make rational decisions. They make psychological decisions filtered through algorithms that have spent months learning which psychological buttons to push.

What the Algorithm Can’t Do

Here’s the twist. And this is the part that matters.

The algorithm can amplify your psychological architecture. It can turn up the gain on your primary engine. It can feed you an increasingly concentrated version of your own worldview. But it cannot replicate the one thing that makes human psychology genuinely powerful.

Tension.

The most effective human beings, the ones who build things that last, who navigate complexity without being consumed by it, who perform at levels that don’t make statistical sense, are not the ones who have the strongest single engine. They’re the ones who can hold two engines in productive conflict at the same time.

The logic-driven human who can also feel the social cost of their decision. The connection-driven human who can also apply forensic analysis to the group consensus. The freedom-driven human who can also build the infrastructure that makes their vision sustainable. The security-driven human who can also recognise when the risk they’re managing is actually the risk of missing an opportunity.

This is the Tension Engine. The most powerful psychological state isn’t the absence of internal conflict. It’s the presence of it, managed correctly. The human who can hold the argument between “move fast” and “check the data” without letting either side win is the human who makes decisions that are both bold and sound.

The algorithm can’t do this. It doesn’t know how to hold tension. It optimises for a single metric. It doesn’t argue with itself. It doesn’t have a secondary engine that stress-tests its primary output. It doesn’t experience the productive discomfort of holding two contradictory ideas at the same time and refusing to let either one go.

This is the human advantage. Not speed. Not memory. Not processing power. The algorithm beats us on all of those. The advantage is the capacity for productive internal conflict. The ability to see the world through two lenses at once and refuse to simplify what should not be simplified.

The Choice

The algorithm that built itself is not going away. It is getting faster, smarter, and more personalised every day. It will continue to read your psychological architecture. It will continue to amplify it. It will continue to build a version of reality that feels like truth but is actually a mirror reflecting your own biases back at you at increasing intensity.

The question is not whether you can opt out. You can’t. The question is whether you understand your own algorithm well enough to recognise when an external one is running it.

If you know that your primary engine is connection, you can notice when your feed is feeding you social consensus instead of social reality. If you know that your primary engine is logic, you can notice when your feed is feeding you curated evidence instead of complete evidence. If you know that your primary engine is freedom, you can notice when your feed is feeding you rebellion as a lifestyle brand instead of genuine autonomy. If you know that your primary engine is security, you can notice when your feed is feeding you anxiety disguised as prudence.

The algorithm that built itself is the most powerful force in modern human behaviour. But the human who understands their own operating system, who has read their own source code, who can hold the tension between their primary drive and their secondary check, is not a passenger in that algorithm.

They’re the one who decides which direction it runs.


David Chadderton spent his twenties and thirties teaching people how to make life-or-death decisions at forty thousand feet. He now applies the same principles to consumer psychology, which, depending on the brief, can feel equally high-stakes. He’s the creator of the STAR Framework and the author of The STAR Framework: Rewriting the Rules of Consumer Engagement (NYC Big Book Award 2025), The STAR Operating System: Decode Mindset, Understand Motivation, Transform Human Behaviour, and Dear Algorithm, It’s Not Me, It’s You. By day, a Chief Marketing Officer. By night, a behavioural science obsessive who writes The Unoptimised Human because he can’t stop thinking about why people do what they do.

The STAR Framework

If you enjoyed this essay, you'll find the full argument — and the framework behind it — in the book.