Categories
Computer Science

Biological Neuron vs Artificial Neuron

BNN vs ANN

We are getting into AI buzz, so why not understand where it all started?

In olden days, intelligence was a trait only humans and certain living beings carried. As humans progressed deep into computer science and electronics, they invented an artificial system that could actually “Think”. At the core of intelligence lies a fundamental building block called a “Neuron“. These now come in two forms: one is a biological neuron, which lies in the brain of humans and living beings, and the other is an artificial neuron, which is inside the electrical brain of a machine.

biological neuron and an artificial neuron share conceptual similarities but differ greatly in structure, function, and adaptability.

BNNANN
Biological Neural Network (BNN)Artificial Neural Network (ANN)
Biological Neuron (BNN): A biological neuron is a living cell made of dendrites, a cell body (soma), and an axon.Artificial Neuron (ANN): An artificial neuron is a mathematical model inspired by the biological neuron.
Dendrites receive electrochemical signals from other neurons.It receives numerical inputs, each multiplied by a weight.
The soma integrates these inputs and determines whether to fire a signal.The weighted sum is passed through an activation function to produce an output.
The axon transmits the signal to other neurons through synapses.These neurons are arranged in layers: input, hidden, and output.
BNNs excel at parallel processing, handling ambiguous and noisy inputs, and adapting in real-time based on experience and environmental changes. They are highly fault-tolerant but operate more slowly due to electrochemical transmission.ANNs are optimized for speed, precision, and the ability to learn complex patterns from structured data. However, they require significant computational resources and lack interpretability due to their black-box nature.
PropertyBNNANN
StructureBNNs use dendrites, soma, and axon.ANNs use weighted inputs, summation, and activation functions.
LearningBNNs adapt continuously.ANNs adjust weights during training but remain static during inference.
ProcessingBNNs are distributed and self-learning.ANNs are centralized and program-driven.
PathwaysBNNs have dynamic, adaptable connections.ANNs have fixed architecture.

Basic Code for an Artificial Neural Network:

ann.py
Python
import numpy as np
def artificial_neuron(inputs, weights, bias):
total = np.dot(inputs, weights) + bias
output = 1 / (1 + np.exp(-total)) # Sigmoid activation
return output
# Example usage
inputs = np.array([0.5, 0.8, 0.2])
weights = np.array([0.4, 0.7, 0.3])
bias = 0.1
print(artificial_neuron(inputs, weights, bias))

A conclusion can be drawn from this: BNNs are adaptive, fault-tolerant, and biologically complex, while ANNs are simplified, task-specific, and computationally efficient.

Note: The blogs are open to input and improvements. Please drop a comment if you have any suggestions.

Thank you for reading!

Priyanka B.'s avatar

By Priyanka B.

Hello and welcome to my little corner of internet!! I am a techie. I am very interested to discover and innovate new advances in science and technology. Blogging is one of my hobbies which I think is very useful for broadening my knowledge horizons and help me grow my skills. Apart from blogging I have also little taste in artistic skills and literature, which can keep my writing and posts tangy.

Whether you stumbled in by chance or came here on purpose, I hope you find something that sparks your curiosity or makes you think a little deeper. Thanks for stopping by!!

Leave a Reply

Discover more from StellarRimz

Subscribe now to keep reading and get access to the full archive.

Continue reading