
Artificial Neuron Architecture
The unified computational pipeline combining input features, influence weights, baseline bias offsets, and non-linear activation functions.
Over the last two lessons, we engineered the two foundational stages of an artificial neuron:
- The Linear Step (Lesson 1): We computed the dot product of features and weights (), then added a baseline offset bias () to produce a raw linear score: .
- The Activation Function (Lesson 2): We passed that raw linear score through the Sigmoid function () to transform it into an interpretable probability between and .
When you connect these two stages back-to-back, you get the complete mathematical anatomy of an Artificial Neuron.
The Unified Computational Pipeline
Every artificial neuron—from a single standalone classifier to the billions of units inside modern large language models—processes information through the exact same computational pipeline:
Let's trace what happens at each stage of this journey:
- Input Feature Vector (): The input to the neuron, containing the ordered feature values representing what we want to evaluate (e.g., our movie script specs ).
- Weight Vector (): The numerical measures of influence assigned to each feature.
- Dot Product (): Multiplies each feature value by its corresponding weight and adds them together into a single raw score.
- Baseline Bias (): An independent baseline offset. It shifts the score up or down regardless of the input features.
- Linear Score (): The combined score after adding the baseline bias to the dot product.
- Activation Function (): A mathematical transformation applied to the linear score. In our classifier, we use the Sigmoid function to compress the unbounded score into a probability between and , while deeper networks use other activation functions (like ReLU) in this same slot.
- Neuron Output (): The final scalar activation produced by the neuron after both steps.
(In our movie classifier, this continuous activation is compared against a threshold of to classify Hit vs Flop).
Tracing the End-to-End Computational Pipeline
To see how all these mathematical primitives connect into a single unified pipeline, trace how our two film scripts flow through feature weighting, dot product accumulation, baseline bias adjustment, Sigmoid compression, and threshold decision:
🎬 'Die Hard in Space': Complete Pipeline Trace
| Feature | Feature Value (x) | Weight (w) | Product (wi · xi) | Dot Product (w · x) | Industry Bias (b) | Linear Score (z) | Sigmoid (σ(z)) | Classification |
|---|---|---|---|---|---|---|---|---|
| Action | 1.0 | +5.0 | +5.0 | +9.5 | −2.0 | +7.5 | 0.999 (99.9%) | 🟢 Hit (High Potential) |
| Romance | 0.0 | −2.0 | 0.0 | |||||
| Comedy | 0.5 | +1.0 | +0.5 | |||||
| Sci-Fi | 1.0 | +4.0 | +4.0 |
🎬 'The Notebook 2': Complete Pipeline Trace
| Feature | Feature Value (x) | Weight (w) | Product (wi · xi) | Dot Product (w · x) | Industry Bias (b) | Linear Score (z) | Sigmoid (σ(z)) | Classification |
|---|---|---|---|---|---|---|---|---|
| Action | 0.0 | +5.0 | 0.0 | −1.5 | −2.0 | −3.5 | 0.029 (2.9%) | 🔴 Flop (Low Potential) |
| Romance | 1.0 | −2.0 | −2.0 | |||||
| Comedy | 0.5 | +1.0 | +0.5 | |||||
| Sci-Fi | 0.0 | +4.0 | 0.0 |
Notice the clean division of labor across every column:
- The Weights () determine which features matter.
- The Bias () determines how hard it is to activate.
- The Activation () determines the scale and range of the output.
NOTE: A Single Neuron Is Already a Complete AI Model
It takes an input vector, evaluates features, offsets a baseline, and classifies a prediction.
But a single neuron is not enough for complex real-world decisions. In Topics 3 and 4, we scale this building block by stacking multiple neurons together into layers and deep networks.