The Philosophical and Mathematical Roots of Artificial Intelligence
Part 1: From Biological Neurons to the Perceptron Revolution and Its Theoretical Limits

In the first part of this in-depth series, we start from the biological inspiration behind artificial intelligence and follow it to the first artificial neural network models, the co-evolution of hardware and software, and the mathematical turning points that changed the fate of the field.
1 Introduction: From Nature’s Engineering to the Silicon Universe
The history of science is full of attempts to imitate nature. The aviation pioneers who challenged the sky by watching flapping birds discovered that aircraft do not need to flap their wings, and in that moment the real power of engineering appeared: take the principle from nature, not the form. In the same way, although artificial neural networks (ANNs) draw inspiration from the remarkably complex architecture of the human brain, they have created their own mathematical and computational rules in silicon-based environments.
In an era of deep learning models and large language models, it is vital to grasp how far back the roots of these algorithms reach. Artificial intelligence, which at first glance looks like just another trend of today, is in fact the product of roughly eighty years of theoretical struggles, mathematical assumptions and disappointments. The basic operation spinning inside models with billions of parameters — multiplying inputs by weights, summing them and passing the result through a function — derives directly from a single equation written in 1943.
We will follow a chronological path: first we draw the historical context, then move from the biological neuron to the mathematical neuron. Next we watch, step by step, how the Perceptron learns, and finally we discuss why this idea hit a wall and how solid that wall really was.
2 Historical Background: The Dream of a Thinking Machine
The story of neural networks cannot be separated from the intellectual atmosphere of the 1940s. During and right after the Second World War, logic, neurophysiology, communication theory and the first electronic computers moved closer together. The field that Norbert Wiener named Cybernetics in 1948 studied control and communication in animals and machines within a single framework [1]. In 1949 Donald Hebb published a learning theory proposing that connections between neurons can strengthen with use [2]. In 1950 Alan Turing turned the question “Can machines think?” from a matter of philosophy into a matter of experiment [3]. And in the summer of 1956 a small group of researchers gathered at Dartmouth used the term “artificial intelligence” for the first time as the name of a formal research programme [4].

As Figure 2 shows, only twelve years separate the birth of the Perceptron (1957–58) from the comprehensive critique directed at it (1969). Excitement rising to a peak and then fading sharply within such a short time reveals, for the first time, a recurring pattern in AI history: waves of expectation. We return to its details in Section 9.
3 The Biological Neuron and the First Computational Model (1943)
The intellectual foundation of artificial neural networks was laid in 1943 by the neurophysiologist Warren McCulloch and the young logician-mathematician Walter Pitts [5]. The pair managed to place the working principle of the neuron — the most basic building block of the complex organ that is the human brain — into a logical framework. The human brain is estimated to contain about 86 billion neurons [6], each connected to thousands of others. The first step in understanding such a system is understanding a single unit.
Biologically, neurons consist of dendrites that receive signals, a cell body (soma) where information is integrated, and an axon that conducts the electrical potential to other cells. At its far end the axon connects to the next neuron through junctions called synapses. The critical observation is this: a neuron either fires or does not. The action potential obeys the “all-or-none” law; a weak stimulus does not produce a half-firing. McCulloch and Pitts reduced this complex biological cycle to build the first abstract mathematical model.

In this model the output of a neuron rests on comparing the weighted sum of its inputs with a threshold value:
Here are the binary (0 or 1) inputs, the connection weights and the firing threshold.
Table 1: Correspondence between the biological neuron and the mathematical neuron.
| Biological structure | Mathematical counterpart | Symbol |
|---|---|---|
| Signals arriving at dendrites | Input vector | |
| Synaptic strength (excitatory/inhibitory) | Connection weight | |
| Integration in the soma | Weighted sum | |
| Firing threshold | Threshold (or bias) | () |
| All-or-none response | Step function | |
| Conduction along the axon | Output |
Historical note: Is the original model the same as the one taught today?
Not exactly. In the original 1943 paper the connections were not weighted in today’s sense: excitatory inputs were counted, while an inhibitory input silenced the neuron outright (“absolute inhibition”). The weighted form in Equation (1) became standard through later generalisation. In other words, the “McCulloch–Pitts neuron” of textbooks is a simplified and generalised version of the original idea. More importantly, the weights in this model are fixed: the model learns nothing.
4 Logical Operations and an MCP Simulation in Pure Python
The McCulloch–Pitts (MCP) model proved that logic circuits (AND, OR, NOT) can be simulated when suitable combinations of weights and thresholds are chosen. The computation is very simple: sum the inputs with their weights, compare the result with the threshold, and “fire” if the threshold is reached.

To fit the three basic gates into a single neuron we can choose the weights and thresholds as follows (Figure 5): for AND, , (the sum reaches 2 only if both inputs are 1); for OR, , (at least one input suffices); for NOT, , (a negative weight “inhibits” the input). The NAND gate is obtained with , .

Table 2: Truth table. The XOR column cannot be produced by any single MCP neuron (Section 8).
| AND | OR | NAND | XOR | ||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 |
Without any external library dependency, using purely object-oriented Python, we can code an MCP neuron and these gates as follows:
class MCPNeuron:
def __init__(self, weights, threshold):
self.weights = weights
self.threshold = threshold
def forward(self, inputs):
# Dot product of inputs and weights, then the sum
net_activation = sum(w * x for w, x in zip(self.weights, inputs))
# Threshold check (firing condition)
if net_activation >= self.threshold:
return 1
return 0
gates = {"AND": MCPNeuron([1, 1], 2),
"OR": MCPNeuron([1, 1], 1),
"NAND": MCPNeuron([-1, -1], -1)}
not_gate = MCPNeuron([-1], 0)
inputs = [(0, 0), (0, 1), (1, 0), (1, 1)]
for name, gate in gates.items():
print(name, [gate.forward(p) for p in inputs])
print("NOT", [not_gate.forward([x]) for x in (0, 1)])
Listing 1: A basic MCP neuron model and logic gates in pure Python
AND [0, 0, 0, 1]
OR [0, 1, 1, 1]
NAND [1, 1, 1, 0]
NOT [1, 0]
Listing 2: Output of Listing 1 (input order: 00, 01, 10, 11)
The power and the shortcoming of MCP networks
The AND, OR and NOT gates together are functionally complete: every Boolean function can be written as a combination of them. Hence an MCP network that wires enough neurons together correctly can compute any logic circuit. McCulloch and Pitts went further and argued that networks with feedback are related, in computational power, to theoretical computers; the equivalence of such networks with finite automata was later shown formally by Kleene [7].
But this elegant picture has a serious gap: we choose the weights and thresholds by hand. The network does not learn a task from examples; we build the correct answer into it. Yet the brain’s truly remarkable ability is precisely learning. The attempt to fill this gap leads us to Rosenblatt.
5 Frank Rosenblatt and the Perceptron Revolution (1957–1958)
Although the McCulloch–Pitts model was groundbreaking, its fixed weights and lack of any ability to learn were a major limitation. In 1957 the psychologist Frank Rosenblatt, working at the Cornell Aeronautical Laboratory, took this structure a step further and developed the Perceptron architecture, publishing the theoretical framework in Psychological Review in 1958 [8]. Instead of a fixed-threshold logic, the Perceptron had weights that could learn from data.
5.1 Hardware: The Mark I Perceptron
The Perceptron was not only an idea but also a machine. Built with the support of the Office of Naval Research (ONR), the Mark I Perceptron had a “retina” of 400 photocells arranged in a 20×20 grid. The weights were held physically as potentiometers adjusted by electric motors; learning, quite literally, happened as things turned. Presented to the public in 1958, the machine drew wide press coverage and quickly raised expectations.
5.2 Architecture: The S–A–R structure
Textbooks often describe the Perceptron as a single “Linear Threshold Unit” (LTU). Rosenblatt’s original design was somewhat more detailed (Figure 6): the S units of the sensory layer were connected to A (association) units through random, fixed connections; the only thing learned was the weights from the A units to the R (response) unit. What today’s accounts call the “single-layer Perceptron” is exactly this learned part.

5.3 Mathematical formulation
The net input and the prediction function are formulated as:
Here is the bias term. There are two differences from the McCulloch–Pitts model: inputs no longer have to be only 0/1 but can be real numbers; and, most importantly, and are learnable parameters.
5.4 Geometric interpretation: A hyperplane
The geometric meaning of Equation (2) explains a great deal. The equation defines a line in two dimensions, a plane in three, and a hyperplane in higher dimensions. The weight vector is perpendicular to this plane and shows which side is class “1”; determines how far the plane lies from the origin (distance ). All the Perceptron does is split space in two with a plane (Figure 7).

The step function (Figure 8) is both the strength and the weakness of this design: it is ideal for making decisions, but its derivative is zero (except at the discontinuity), so it is unsuitable for the gradient-based methods used today to train neural networks. The move to smooth functions such as sigmoid and ReLU is the subject of later parts.

5.5 The learning rule
How does the Perceptron learn? The idea is surprisingly intuitive: when it makes a mistake, nudge the weights slightly in the direction that reduces the error. With learning rate , for each training example :
If the prediction is correct, and nothing changes. If it is wrong, is either or : if the example should have been 1 but was predicted 0, the weight vector is pulled toward the example; if it should have been 0 but was predicted 1, it is pushed away from it.
Relation to Hebb
Rosenblatt’s work is often said to be influenced by Hebb’s ideas on neural plasticity. The two should not be equated, however: Hebb’s principle is of the type “connections that are active together strengthen” and requires no error signal. Equation (4), on the other hand, is an error-driven correction rule; weights change only when a wrong prediction is made. It is more accurate to read the Perceptron as inspired by Hebb’s idea but built on a different learning mechanism.
A numerical example. Let , and . Consider the example whose true class is . The net input is , so ; the prediction is wrong and . The update:
For the same example the new net input is ; the example is now classified correctly (Figure 9).

5.6 Watching training unfold
One pass over the whole data set is called an epoch. Figure 10 shows how the Perceptron learns on an artificial, linearly separable data set of 40 points (starting from , ). Seven mistakes are made in the first epoch; the boundary shifts and is corrected, and in the seventh epoch no mistakes remain and learning stops. Note that the number of mistakes does not decrease monotonically (it rises in epoch 5): the Perceptron’s error curve is not smooth, yet it still reaches zero in the end.

5.7 The convergence theorem
There is a theorem guaranteeing that this process always terminates, proved by Novikoff in 1962 [9].
Perceptron convergence theorem (Novikoff, 1962)
If the training set is linearly separable — that is, there is a unit weight vector that classifies every example correctly and keeps every example at least away (margin) — and for all examples, then the Perceptron learning rule reaches a solution classifying all examples correctly after making at most mistakes.
This result has two sides. The good news: on a separable problem the Perceptron’s success is guaranteed, and the bound comes not from the number of data points but from the geometry of the data (the ratio ). The bad news: the theorem holds only if linear separability holds. If the data do not satisfy this condition, the algorithm never stops; the weights cycle forever. We will meet exactly this situation in Section 8.
5.8 Perceptron from scratch: With NumPy
Let us write the learning rule without a library, using NumPy only. The class below implements Equation (4) exactly and records the number of mistakes in each epoch:
import numpy as np
class Perceptron:
def __init__(self, eta=1.0, epochs=20):
self.eta, self.epochs = eta, epochs
def predict(self, x):
return int(np.dot(self.w, x) + self.b >= 0)
def fit(self, X, y):
self.w, self.b, self.errors = np.zeros(X.shape[1]), 0.0, []
for _ in range(self.epochs):
e = 0
for xi, yi in zip(X, y):
update = self.eta * (yi - self.predict(xi))
self.w += update * xi # w <- w + eta*(y - yhat)*x
self.b += update # b <- b + eta*(y - yhat)
e += int(update != 0)
self.errors.append(e)
if e == 0: # an error-free epoch: converged
break
return self
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
for name, y in [("AND", [0, 0, 0, 1]), ("XOR", [0, 1, 1, 0])]:
p = Perceptron(epochs=20).fit(X, np.array(y))
print(name, "w =", p.w, "b =", p.b, "errors =", p.errors)
Listing 3: Implementing the learning rule with NumPy. It learns the AND gate but fails on XOR.
AND w = [2. 1.] b = -3.0 errors = [2, 3, 3, 2, 1, 0]
XOR w = [-1. 0.] b = 0.0 errors = [3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
Listing 4: Output of Listing 3
The AND gate is learned in six epochs: holds only for . For XOR, the number of mistakes never drops to zero over 20 epochs. This is the experimental evidence for a fact we will explain theoretically in the next sections.
6 A Practical Application with Scikit-Learn
Although Rosenblatt’s algorithm was inspired by Hebb’s principles of neural plasticity (see the note above), building it with modern data-science tools is quite practical. On the classic Iris data set [10], let us try to separate the species Iris setosa from the others using only petal length and width:
from sklearn.datasets import load_iris
from sklearn.linear_model import Perceptron
import numpy as np
# Preparing the data set
iris = load_iris()
X_data = iris.data[:, (2, 3)] # Only petal length and width
y_target = (iris.target == 0).astype(int) # 1: setosa, 0: other species
# Defining and training the Perceptron model
perceptron_clf = Perceptron(max_iter=500, tol=1e-3, random_state=42)
perceptron_clf.fit(X_data, y_target)
print("Learned weight coefficients:", perceptron_clf.coef_)
print("Model intercept (bias):", perceptron_clf.intercept_)
print("Training accuracy:", perceptron_clf.score(X_data, y_target))
Listing 5: A Perceptron classifier with the Scikit-Learn library
Learned weight coefficients: [[-1.4 -2.2]]
Model intercept (bias): [4.]
Training accuracy: 1.0
Listing 6: Output of Listing 5 (scikit-learn 1.9.1)
The model has learned the decision function (: petal length, : petal width; in centimetres). Negative weights are natural: setosa flowers have markedly smaller petals than the other species; as petals grow, decreases and the decision shifts toward “not setosa”. For example, gives (setosa) and gives (other). Because the data are linearly separable, training accuracy is 100% and the algorithm stopped after 7 epochs (Figure 11).

A practical warning
In real problems, scaling the inputs (e.g. with
StandardScaler) often speeds up convergence. Also, on data that are not linearly separable, scikit-learn’sPerceptronclass runs up to themax_iterlimit and raises aConvergenceWarning; this is the limit of the convergence theorem above.
7 Comparison: MCP, Perceptron and ADALINE
Right after the Perceptron, Bernard Widrow and Marcian Hoff introduced the ADALINE model and the Least Mean Squares (LMS) rule in 1960 [11]. The difference looks small but is conceptually important: ADALINE measures the error on the continuous output before the step function and tries to minimise the squared error. This is the direct precursor of gradient descent, the idea used today to train every deep learning model.
Table 3: Comparison of three early artificial neuron models.
| McCulloch–Pitts (1943) | Perceptron (1957–58) | ADALINE (1960) | |
|---|---|---|---|
| Input | Binary (0/1) | Real number | Real number |
| Weights | Hand-chosen, fixed | Learned from data | Learned from data |
| Learning signal | None | Classification error | Continuous error |
| Goal | Logical computation | Correct classification | Minimise squared error |
| Output | Step | Step | Linear in training, step at prediction |
| Main limitation | No learning | Only linearly separable problems | Only linearly separable problems |
8 Theoretical Limits: The XOR Problem and Linear Separability
Although the first Perceptron experiments created a wave of optimism, in 1969 Marvin Minsky and Seymour Papert, in their book Perceptrons, laid out the mathematical weaknesses of single-layer networks, especially the XOR (exclusive OR) problem [12].

When the outputs of the XOR logic gate are plotted on a two-dimensional Cartesian plane, it is mathematically impossible to separate these points into two groups with a single straight line. There is a purely algebraic proof of this. Suppose a Perceptron solves XOR; then the values must satisfy these four inequalities:
Adding (6) and (7) gives , i.e. . By (5), , so , which contradicts (8). The contradiction shows that such a triple does not exist at all. This non-linearly separable structure is not specific to XOR: Minsky and Papert showed that other predicates such as parity and connectedness also cannot be computed by a single-layer Perceptron.
We already saw the computational counterpart of this contradiction in Listing 3: on XOR the error count never dropped to zero in any epoch.
9 Myth and Reality: The “1st AI Winter”
The popular version of the story goes like this: Minsky and Papert demonstrated XOR, neural networks died, funding was cut, and the 1st AI Winter began. This account is appealing but incomplete. The disappointment of the period’s academic authorities was real; but the winter was not caused by a single book (Figure 13).

First, there were inflated expectations: the Perceptron’s unveiling had led the press to expect that machines would soon see and speak like humans. Second, there were disappointments in other areas of AI: in the United States the 1966 ALPAC report questioned the resources devoted to machine translation; in the United Kingdom the Lighthill report of 1973 argued that the field had failed to meet its grand objectives [13]. Third, computers were slow and data were scarce. Fourth — and most important for our story — an efficient learning algorithm for multilayer networks was not yet widely known.
There is also a technical detail: Minsky and Papert did not prove that multilayer networks lack computational power. What they proved were the limits of the single-layer Perceptron; their doubts about how hard multilayer networks would be to train were expressed as opinion, not as a theoretical result. The sociologist Mikel Olazaran has studied in detail how the “official history” of this episode is a later simplified narrative [14]. In short, the XOR wall was a real wall; but it was one of many winds, not a single “blow” that destroyed neural-network research.
10 First Light: The Hidden Layer and the Solution of XOR
The interesting thing is that the solution to XOR had been on the table since 1943. Recall the MCP model: we could build AND and OR with a single neuron. XOR is a combination of them: “OR is true but AND is false”. We can build it with two layers:
The neurons and in the first layer move the points to a new coordinate system (Figure 14). In this new space the inputs and fall on the same point, ; the input goes to . The three points can now be separated by the line . In other words, the hidden layer has performed a feature transformation that turns a non-linear problem into a linear one.

We can build this network exactly with the MCPNeuron class from Listing 1:
h1, h2, out = MCPNeuron([1, 1], 1), MCPNeuron([1, 1], 2), MCPNeuron([1, -1], 1)
def xor(a, b):
return out.forward([h1.forward([a, b]), h2.forward([a, b])])
print("XOR", [xor(*p) for p in [(0, 0), (0, 1), (1, 0), (1, 1)]])
# Output: XOR [0, 1, 1, 0]
Listing 7: XOR with a two-layer MCP network
So what was the problem? The problem lay not in the existence of the network but in learning it. We chose the weights above by hand. The Perceptron rule (Equation 4) knows “whom to blame for the error” only for weights connected directly to the output; there was no method to compute how much a weight in a hidden layer contributed to the error. Fixing this gap would be possible only with the backpropagation algorithm, which came to the fore with Werbos’s thesis in the mid-1970s [15] and the 1986 paper by Rumelhart, Hinton and Williams [16]. In later years it was also shown that a sufficiently wide network with a single hidden layer can approximate a very broad class of functions (universal approximation) [17]. The computational power was there; what was missing was the method of teaching.
11 Conclusion
In this part we traced the first ideas at the foundation of artificial intelligence. McCulloch and Pitts, by formulating the neuron as a logic unit, showed that the brain can be studied like a computable system; but their model did not learn. Rosenblatt filled this gap by developing the Perceptron, whose weights are learned from data, and the convergence theorem gave it a mathematical footing. Yet the single-layer structure had a limit of linear separability, and XOR became the symbol of that limit.
| Term | Meaning |
|---|---|
| Weight () | Coefficient that sets the influence of an input on the result; the counterpart of biological synaptic strength. |
| Threshold / Bias (, ) | The level that must be exceeded for the neuron to fire; . |
| Activation function | The function that turns the weighted sum into an output (step, sigmoid, ReLU …). |
| Decision boundary | The line/plane separating the classes; in the Perceptron, . |
| Linear separability | The classes can be separated by a single line/plane. |
| Epoch | One full pass over the training set. |
| Learning rate () | A small positive number that scales the size of each update. |
| Hidden layer | A layer of neurons between input and output that performs a feature transformation. |
References
- Wiener, N. (1948). Cybernetics: Or Control and Communication in the Animal and the Machine. MIT Press.
- Hebb, D. O. (1949). The Organization of Behavior. John Wiley & Sons.
- Turing, A. M. (1950). Computing Machinery and Intelligence. Mind, 59(236), 433–460.
- McCarthy, J., Minsky, M. L., Rochester, N., & Shannon, C. E. (1955). A Proposal for the Dartmouth Summer Research Project on Artificial Intelligence.
- McCulloch, W. S., & Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity. Bulletin of Mathematical Biophysics, 5(4), 115–133.
- Azevedo, F. A., et al. (2009). Equal numbers of neuronal and nonneuronal cells make the human brain an isocortical-prime exception. Journal of Comparative Neurology, 513(5), 532–541.
- Kleene, S. C. (1956). Representation of events in nerve nets and finite automata. Automata Studies, 34, 3–41.
- Rosenblatt, F. (1958). The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review, 65(6), 386–408.
- Novikoff, A. B. (1962). On convergence proofs on perceptrons. Symposium on the Mathematical Theory of Automata, 12, 615–622.
- Fisher, R. A. (1936). The use of multiple measurements in taxonomic problems. Annals of Eugenics, 7(2), 179–188.
- Widrow, B., & Hoff, M. E. (1960). Adaptive switching circuits. IRE WESCON Convention Record, 4, 96–104.
- Minsky, M., & Papert, S. (1969). Perceptrons: An Introduction to Computational Geometry. MIT Press.
- Lighthill, J. (1973). Artificial intelligence: A paper symposium. Science Research Council. Nature, 323(6088), 533–536.
- Olazaran, M. (1996). A sociological study of the official history of the perceptron controversy. Social Studies of Science, 26(3), 611–659.
- Werbos, P. J. (1974). Beyond Regression: New Tools for Prediction and Analysis in the Behavioral Sciences. Ph.D. thesis, Harvard University.
- Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning representations by back-propagating errors. Nature, 323(6088), 533–536.
- Cybenko, G. (1989). Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems, 2(4), 303–314.
How this critical mathematical wall was brought down with the help of hidden layers and the Multi-Layer Perceptron (MLP) architecture will be examined in detail in Part 2 of the series: we will cover how networks with hidden layers are trained and the role of the backpropagation algorithm. Wishing you all the best!
