Neural Networks vs Brain Neurons
Biological Neurons: Sophisticated Computational Machines
The year 2022 marked a significant milestone in the development of artificial neural networks, producing language models, AI art generators, and image-to-anime platforms. These advances rely on artificial neural networks—computing systems modeled as networks of interconnected nodes that learn to recognize patterns in data. A common claim is that these artificial neurons work “pretty much like your brain.” This statement, while appealing, is misleading because biological neurons are far more powerful than previously thought. Individual neurons in the brain function essentially as full-blown neural networks themselves, equipped with remarkable information-processing capabilities.
The Perceptron Model
The birth of machine learning as known today traces back to 1943, when Walter Pitts and Warren McCulloch introduced the perceptron. A perceptron functions as a simple summator and comparator:
It receives a set of input numbers, multiplies each by a corresponding weight (coefficient), and sums the weighted inputs.
It compares the sum to a threshold. If the sum exceeds the threshold, the perceptron outputs a 1; otherwise it outputs a 0.
Interconnecting many perceptrons—where the output of one serves as input to downstream ones—creates a neural network.
Training a network means adjusting the weights so that inputs map to correct outputs. Over time, the fields of machine learning and neurobiology diverged. Machine learning invented activation functions, network architectures, and efficient weight-update algorithms. Yet because the nodes in artificial networks are still called “neurons,” many assume biological neurons work exactly like perceptrons. The reality is far more complex.
Biological Neuron Structure
A typical neuron consists of dendrites, a soma (cell body), and an axon. Neurons are electrically excitable cells capable of generating brief electrical pulses (action potentials) that propagate to other neurons, forming the basis of communication.
Electric charge is carried by ions such as sodium (Na⁺), potassium (K⁺), chloride (Cl⁻), and calcium (Ca²⁺), which exist in different concentrations inside and outside the cell.
The lipid membrane separates the cell from the outside and is normally impermeable to ions. Ion channels—specialized proteins—allow specific ions to cross the membrane and can open/close via various mechanisms.
By regulating ion flow through channels, a cell controls its membrane voltage. When positive ions flow in, the membrane depolarizes (voltage increases, becomes more positive); negative ions have the opposite effect.
Action Potential Generation
Voltage-gated ion channels open or close in response to changes in membrane potential. The classic example is the action potential:
At the axon initial segment, numerous voltage-gated sodium channels open when membrane voltage exceeds a threshold.
Sodium rushes into the cell, further depolarizing the membrane, recruiting more sodium channels to open (positive feedback). This wave of opening propagates along the axon.
Sodium channels eventually inactivate, and voltage-gated potassium channels open, allowing potassium to leave, repolarizing the membrane back to its resting level.
The action potential is an all-or-none event and serves as the unit of communication, transmitted to other neurons via synaptic transmission.
This thresholding mechanism mirrors the perceptron’s output stage, which is why the initial description seemed plausible. The main shortcoming of the perceptron model lies not in the output but in the input processing—specifically, in the role of dendrites.
Dendrites: From Passive Cables to Active Processors
Traditional Passive View
The signal travels from the axon of one neuron (presynaptic) to the dendrite of another (postsynaptic) via a synapse. Upon an action potential in the presynaptic neuron, neurotransmitter molecules open neurotransmitter-gated ion channels on the postsynaptic dendrite, allowing ion flow that depolarizes the postsynaptic membrane. This depolarization propagates along the dendritic tree toward the soma.
In the traditional cable theory view, dendrites are treated as passive, leaky cables that merely conduct electrical signals. A segment of dendrite is described as a patch of membrane with capacitive and resistive (leak) properties. As depolarization travels, it attenuates over distance. Thus, the function of dendrites was considered purely summative: the weight of a synaptic input is determined by the number of receptors and the distance from the synapse to the soma. Together with the threshold at the soma, this provided a biological basis for the perceptron model.
Active Dendritic Properties
However, further research revealed that dendrites are anything but passive. Dendrites are covered with a multitude of voltage-gated ion channels, equipping them with powerful information-processing capabilities—sometimes even more powerful than the soma itself.
Backpropagation: Dendrites contain voltage-gated sodium channels similar to those on the axon. Action potentials can travel in reverse (from soma to dendrites), influencing postsynaptic sites and playing a role in synaptic plasticity (adjusting input weights).
Local sodium spikes: Fast sodium channels allow dendrites to generate their own small action-potential-like depolarizations, which can transiently amplify synaptic inputs.
NMDA receptors: The NMDA receptor requires both sufficient membrane depolarization and the presence of neurotransmitter to open. It acts as a coincidence detector. It is non-selective to cations (allows Ca²⁺ and Na⁺ to enter), with important implications for synaptic plasticity. The resulting depolarization is called an NMDA spike, characterized by a much longer time scale (hundreds of milliseconds) compared to sodium spikes.
Non-linear integration: NMDA channels allow dendrites to perform non-linear integration of incoming information, enabling complex computations. For example, dendrites can discriminate the order and velocity of incoming action potentials. Sequential activation of a group of synapses in one direction produces a fundamentally different electrical and chemical response than activation in reverse order. This allows single neurons to process temporal patterns and generate sequence-selective output.
Behavioral relevance: NMDA spikes have been shown to enhance stimulus selectivity in the visual cortex of awake animals, contributing to behaviorally relevant computations.
Human Cortical Neurons and Dendritic Calcium Spikes
In 2020, researchers from Matthew Larkum’s laboratory published a paper titled “Dendritic action potentials and computation in human layer 2/3 cortical neurons” that demonstrated a unique property of human pyramidal neurons not observed in other mammals.
They performed simultaneous recordings of electrical activity at the cell body and a dendrite.
They identified a new type of electrical response initiated at dendrites by sufficiently strong excitatory input: a dendritic calcium action potential (calcium spike).
These calcium spikes are caused by influx of Ca²⁺ but have a shorter time scale than NMDA spikes.
Critical property: These calcium spikes are highly selective to a particular input strength. Too weak a stimulation fails to reach the threshold for calcium channel opening. Too strong a stimulation also fails to produce spikes—only a “just right” stimulation triggers them.
This phenomenon has profound implications for neural computation, particularly for implementing logical operations like XOR.
Logical Operations and Linear Separability
Computers store information in binary bits (0 and 1) and perform computations using logic gates. Two fundamental gates are:
AND gate: Outputs 1 if and only if both inputs are 1.
OR gate (inclusive): Outputs 1 if at least one input is 1 (both 1 also yields 1).
XOR gate (exclusive OR): Outputs 1 when exactly one input is 1, but not both.
Linear Separability and the Perceptron
A single perceptron (with two inputs x and y, weights a and b, and threshold θ) computes the inequality:
Geometrically, this inequality defines a line in the xy-plane that separates the space into two halves. A perceptron can act as a classifier only when the two output classes are linearly separable—i.e., they lie on opposite sides of a line (or hyperplane in higher dimensions).
AND and OR are linearly separable. A perceptron can implement AND by choosing appropriate weights and threshold; lowering the threshold converts it to OR.
XOR is linearly non-separable. There is no single line that can separate the four input-output pairs (0,0→0; 0,1→1; 1,0→1; 1,1→0). Therefore, a multi-layered network is required to compute XOR.
Biological neurons were long assumed incapable of computing XOR as individual cells, because the traditional perceptron model was thought to apply.
Dendritic XOR Computation in Human Neurons
The selectivity of calcium spikes to a precise input strength allows human dendrites to perform the XOR operation. Consider a neuron with two sets of synapses, A and B:
Activating either A or B alone provides excitation that is just right to trigger a dendritic calcium spike, which propagates to the soma and triggers an action potential (output = 1).
Activating both A and B simultaneously provides too much excitation, exceeding the optimal strength, so no dendritic spike occurs. The neuron does not fire (output = 0).
Activating neither gives no output (0).
This input-output pattern—output 1 when exactly one input set is active, 0 when both or none are active—is exactly the XOR operation performed by a single dendrite.
Biophysical mechanism: The sensitivity likely arises from a combination of voltage-gated calcium channels and special potassium channels that are sensitive to both voltage and calcium concentration. Computer simulations support this explanation, though the exact details remain under investigation.
Modeling Single Neurons as Deep Neural Networks
A pivotal 2020 study titled “Single cortical neurons as deep artificial neural networks” asked whether a deep neural network could accurately capture the information processing of a single biological neuron.
Researchers created a detailed, biophysically realistic model of a single cortical neuron, including reconstructed morphology, differential equations for membrane voltage, ion channel dynamics, and ion fluxes.
They bombarded this spatial model with many input patterns and recorded the voltage trace at the soma as output.
They then trained a deep convolutional neural network with varying numbers of layers to predict the output from the same synaptic inputs.
Key findings:
It required between 5 and 8 hidden layers to accurately predict both spike output and voltage values of the detailed biophysical model.
Removing NMDA channels from the model drastically reduced the required network depth to just a single hidden layer, highlighting the importance of dendritic non-linearities (especially NMDA channels) for computational complexity.
The trained deep network generalized well to spatially clustered and synchronously activated synapses that it had never seen, suggesting it had learned the underlying biophysics implicitly.
The deep network ran approximately 2000 times faster than solving the full set of partial differential equations, offering a practical advantage for modeling individual neurons.
Implications
This body of work fundamentally changes the understanding of biological neurons:
Single neurons are not simple linear summators; they are sophisticated computational units with processing power comparable to a multi-layered convolutional network.
The presence of voltage-gated ion channels, NMDA receptors, and calcium channels on dendrites enables non-linear integration, temporal pattern discrimination, and even XOR operations.
Human cortical neurons exhibit unique dendritic calcium spikes that allow them to perform computations previously thought to require multiple layers of artificial neurons.
The synthesis of ideas from deep learning and neuroscience is promising. Deep neural networks can serve as efficient and accurate models of single biological neurons, accelerating research while preserving computational realism.
Whenever claims that biological neurons function like linear summators are encountered, these findings show that such simplifications are far from the truth.
Recap
The perceptron model (summation + threshold) was inspired by early descriptions of neurons.
Biological neurons have dendrites, soma, and axon; they generate action potentials via voltage-gated ion channels.
Dendrites were once thought to be passive cables, but they contain voltage-gated ions channels that enable active computation: backpropagation, local spikes, NMDA spikes, and non-linear integration.
NMDA receptors act as coincidence detectors and produce long-lasting depolarizations, allowing temporal pattern discrimination.
Human cortical neurons show calcium spikes that are selective to a narrow input strength range, enabling them to perform XOR operations—a linearly non-separable function that requires multi-layer networks in artificial systems.
Detailed biophysical models of single neurons require a deep neural network with 5–8 layers to accurately reproduce their input-output behavior, with NMDA channels being crucial for this complexity.
These findings demonstrate that individual biological neurons are far more powerful computational devices than the perceptron model suggests, and that modern deep learning can help capture and harness this complexity.

Ask anything
We've read this whole study set, so questions about it get the best answers.