{"id":34653,"date":"2025-11-26T13:39:28","date_gmt":"2025-11-26T12:39:28","guid":{"rendered":"https:\/\/www.codemotion.com\/magazine\/?p=34653"},"modified":"2025-12-01T12:22:55","modified_gmt":"2025-12-01T11:22:55","slug":"artificial-neural-networks-biological-inspiration-behind-deep-learning","status":"publish","type":"post","link":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/","title":{"rendered":"Artificial Neural Networks: Biological Inspiration Behind Deep Learning"},"content":{"rendered":"\n<p>Artificial Neural Networks (ANNs) are the foundation of modern Artificial Intelligence.<br>In this guide, you\u2019ll learn <strong>what neural networks are, how they work, and why they power today\u2019s most advanced AI systems<\/strong>\u2014from image recognition to large language models like Transformers.<\/p>\n\n\n\n<p>Whether you&#8217;re a student, developer, or simply curious about AI, this article will give you a clear and practical understanding of how neural networks learn patterns from data.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-an-artificial-neural-network-ann\"><strong>What Is an Artificial Neural Network (ANN)?<\/strong><\/h2>\n\n\n\n<p>An <strong>Artificial Neural Network<\/strong> is a computational system inspired by the structure of the human brain.<br>While it doesn\u2019t think like a biological brain, it <em>learns<\/em> to perform complex tasks by analyzing large datasets and identifying patterns automatically.<\/p>\n\n\n\n<p>Neural networks are widely used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Computer vision<\/strong><\/li>\n\n\n\n<li><strong>Natural language processing<\/strong><\/li>\n\n\n\n<li><strong>Speech recognition<\/strong><\/li>\n\n\n\n<li><strong>Autonomous systems<\/strong><\/li>\n\n\n\n<li><strong>Fraud detection<\/strong><\/li>\n<\/ul>\n\n\n\n<p>At a high level, an ANN is a mathematical function composed of interconnected layers of artificial neurons.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-a-neural-network-works-simple-breakdown\"><strong>How a Neural Network Works (Simple Breakdown)<\/strong><\/h2>\n\n\n\n<p>Each artificial neuron performs four basic steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Receives inputs<\/strong><\/li>\n\n\n\n<li><strong>Multiplies them by weights<\/strong><\/li>\n\n\n\n<li><strong>Adds a bias<\/strong><\/li>\n\n\n\n<li><strong>Passes the result through an activation function<\/strong><\/li>\n<\/ol>\n\n\n\n<p>This allows a neural network to approximate extremely complex relationships between inputs and outputs.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-core-components-of-a-neural-network\"><strong>Core Components of a Neural Network<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-neurons-nodes\"><strong>1. Neurons (Nodes)<\/strong><\/h3>\n\n\n\n<p>The fundamental processing units. Each neuron takes inputs, performs a calculation, and produces an output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-weights-and-biases\"><strong>2. Weights and Biases<\/strong><\/h3>\n\n\n\n<p>Weights determine the importance of each input.<br>Biases shift the activation threshold.<\/p>\n\n\n\n<p>Together, they are the model\u2019s <em>learnable parameters<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-activation-functions\"><strong>3. Activation Functions<\/strong><\/h3>\n\n\n\n<p>These functions allow the network to learn nonlinear patterns, essential for tasks like image classification, language modeling, or sound recognition.<\/p>\n\n\n\n<p>Popular activation functions include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ReLU<\/li>\n\n\n\n<li>Sigmoid<\/li>\n\n\n\n<li>Tanh<\/li>\n\n\n\n<li>Softmax<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-neural-network-architecture-input-hidden-output-layers\"><strong>Neural Network Architecture: Input, Hidden, Output Layers<\/strong><\/h2>\n\n\n\n<p>A standard ANN consists of:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-input-layer\"><strong>Input Layer<\/strong><\/h3>\n\n\n\n<p>Where raw data enters the model\u2014for example, pixels from an image or features from a dataset.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-hidden-layers\"><strong>Hidden Layers<\/strong><\/h3>\n\n\n\n<p>These layers extract patterns, features, and internal representations from the data.<\/p>\n\n\n\n<p>When a model has <strong>two or more hidden layers<\/strong>, it becomes a <strong>Deep Neural Network<\/strong>, forming the basis of <strong>Deep Learning<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-layer\"><strong>Output Layer<\/strong><\/h3>\n\n\n\n<p>Produces the final prediction\u2014for example, class labels like \u201ccat\u201d or \u201cdog.\u201d<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-neural-networks-learn-forward-propagation-backpropagation\"><strong>How Neural Networks Learn: Forward Propagation + Backpropagation<\/strong><\/h2>\n\n\n\n<p>The learning process involves two key phases:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-forward-propagation\"><strong>1. Forward Propagation<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Data flows from input \u2192 hidden layers \u2192 output<\/li>\n\n\n\n<li>The network produces a prediction<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-backpropagation\"><strong>2. Backpropagation<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A loss function measures how wrong the prediction is<\/li>\n\n\n\n<li>The error flows backward through the network<\/li>\n\n\n\n<li>Gradient Descent updates weights and biases to reduce error<\/li>\n<\/ul>\n\n\n\n<p>This cycle repeats for thousands or millions of iterations until accuracy is optimized.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"h-practical-example-building-a-neural-network-from-scratch-python-numpy\"><strong>Practical Example: Building a Neural Network From Scratch (Python + NumPy)<\/strong><\/h1>\n\n\n\n<p>This simple example solves the classic <strong>XOR<\/strong> problem, demonstrating how a neural network learns when linear models fail.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">import numpy <span class=\"hljs-keyword\">as<\/span> np\n\n<span class=\"hljs-comment\"># XOR dataset<\/span>\nX = np.<span class=\"hljs-keyword\">array<\/span>(&#91;&#91;<span class=\"hljs-number\">0<\/span>,<span class=\"hljs-number\">0<\/span>],&#91;<span class=\"hljs-number\">0<\/span>,<span class=\"hljs-number\">1<\/span>],&#91;<span class=\"hljs-number\">1<\/span>,<span class=\"hljs-number\">0<\/span>],&#91;<span class=\"hljs-number\">1<\/span>,<span class=\"hljs-number\">1<\/span>]])\ny = np.<span class=\"hljs-keyword\">array<\/span>(&#91;&#91;<span class=\"hljs-number\">0<\/span>],&#91;<span class=\"hljs-number\">1<\/span>],&#91;<span class=\"hljs-number\">1<\/span>],&#91;<span class=\"hljs-number\">0<\/span>]])\n\n<span class=\"hljs-comment\"># Weight initialization<\/span>\nnp.random.seed(<span class=\"hljs-number\">42<\/span>)\nW1 = np.random.randn(<span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">2<\/span>)\nb1 = np.zeros((<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">2<\/span>))\nW2 = np.random.randn(<span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">1<\/span>)\nb2 = np.zeros((<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">1<\/span>))\n\ndef sigmoid(z):\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">1<\/span> \/ (<span class=\"hljs-number\">1<\/span> + np.exp(-z))\n\nlr = <span class=\"hljs-number\">0.1<\/span>\n<span class=\"hljs-keyword\">for<\/span> epoch in range(<span class=\"hljs-number\">10000<\/span>):\n    <span class=\"hljs-comment\"># Forward pass<\/span>\n    z1 = X.dot(W1) + b1\n    a1 = sigmoid(z1)\n    z2 = a1.dot(W2) + b2\n    a2 = sigmoid(z2)\n\n    <span class=\"hljs-comment\"># Backpropagation<\/span>\n    error = y - a2\n    d2 = error * a2 * (<span class=\"hljs-number\">1<\/span> - a2)\n    d1 = d2.dot(W2.T) * a1 * (<span class=\"hljs-number\">1<\/span> - a1)\n\n    <span class=\"hljs-comment\"># Parameter updates<\/span>\n    W2 += a1.T.dot(d2) * lr\n    b2 += np.sum(d2, axis=<span class=\"hljs-number\">0<\/span>, keepdims=<span class=\"hljs-keyword\">True<\/span>) * lr\n    W1 += X.T.dot(d1) * lr\n    b1 += np.sum(d1, axis=<span class=\"hljs-number\">0<\/span>, keepdims=<span class=\"hljs-keyword\">True<\/span>) * lr\n\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">\"Final predictions:\"<\/span>)\n<span class=\"hljs-keyword\">print<\/span>(a2.round())\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This demonstrates the core mechanics behind neural networks: <strong>forward passes, backpropagation, and gradient-based learning.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"h-modern-example-neural-network-in-pytorch\"><strong>Modern Example: Neural Network in PyTorch<\/strong><\/h1>\n\n\n\n<p>A more practical and scalable implementation using PyTorch:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">import torch\nimport torch.nn as nn\nimport torch.optim as optim\n\n# XOR data\nX = torch.tensor(&#91;&#91;0,0],&#91;0,1],&#91;1,0],&#91;1,1]], dtype=torch.float32)\ny = torch.tensor(&#91;&#91;0],&#91;1],&#91;1],&#91;0]], dtype=torch.float32)\n\nclass XORNet(nn.Module):\n    def __init__(self):\n        super(XORNet, self).__init__()\n        self.hidden = nn.Linear(2, 2)\n        self.output = nn.Linear(2, 1)\n        self.sigmoid = nn.Sigmoid()\n    \n    def forward(self, x):\n        x = self.sigmoid(self.hidden(x))\n        x = self.sigmoid(self.output(x))\n        return x\n\nmodel = XORNet()\ncriterion = nn.MSELoss()\noptimizer = optim.SGD(model.parameters(), lr=0.1)\n\nfor epoch in range(10000):\n    optimizer.zero_grad()\n    outputs = model(X)\n    loss = criterion(outputs, y)\n    loss.backward()\n    optimizer.step()\n\nprint(\"Final predictions:\")\nprint(model(X).round().detach())\n<\/code><\/span><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"h-real-world-applications-of-neural-networks\"><strong>Real-World Applications of Neural Networks<\/strong><\/h1>\n\n\n\n<p>Neural networks drive innovation across major industries:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-healthcare\"><strong>Healthcare<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Medical imaging diagnostics<\/li>\n\n\n\n<li>Early detection of tumors, diabetic retinopathy, and rare diseases<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-finance\"><strong>Finance<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Real-time fraud detection<\/li>\n\n\n\n<li>Predictive risk modeling<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-technology-amp-consumer-apps\"><strong>Technology &amp; Consumer Apps<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Recommendation systems (Netflix, Amazon)<\/li>\n\n\n\n<li>Virtual assistants (Siri, Alexa)<\/li>\n\n\n\n<li>Automatic translation (Google Translate)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-robotics-amp-autonomous-systems\"><strong>Robotics &amp; Autonomous Systems<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Industrial robot control<\/li>\n\n\n\n<li>Decision-making in self-driving vehicles<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"h-neural-networks-are-not-magic-they-re-mathematics\"><strong>Neural Networks Are Not Magic\u2014They\u2019re Mathematics<\/strong><\/h1>\n\n\n\n<p>Neural networks allow machines to learn from data with unprecedented depth, forming the foundation of modern AI.<br>Understanding how they work means understanding <strong>the core engine behind today\u2019s intelligent technologies.<\/strong><\/p>\n\n\n\n<p><strong>The future of AI is here\u2014fully connected, data-driven, and powered by neural networks.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Artificial Neural Networks (ANNs) are the foundation of modern Artificial Intelligence.In this guide, you\u2019ll learn what neural networks are, how they work, and why they power today\u2019s most advanced AI systems\u2014from image recognition to large language models like Transformers. Whether you&#8217;re a student, developer, or simply curious about AI, this article will give you a&#8230; <a class=\"more-link\" href=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\">Read more<\/a><\/p>\n","protected":false},"author":313,"featured_media":34429,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[47],"tags":[10003],"collections":[12717],"class_list":{"0":"post-34653","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-deep-learning","8":"tag-ai","9":"collections-ai","10":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Artificial Neural Networks: When Biology Inspires Deep Learning<\/title>\n<meta name=\"description\" content=\"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Artificial Neural Networks: Biological Inspiration Behind Deep Learning\" \/>\n<meta property=\"og:description\" content=\"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"Codemotion Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Codemotion.Italy\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-26T12:39:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-01T11:22:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Orli Dun\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:site\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Orli Dun\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\"},\"author\":{\"name\":\"Orli Dun\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/37ca255c359cc54110ac89eb4fa7db42\"},\"headline\":\"Artificial Neural Networks: Biological Inspiration Behind Deep Learning\",\"datePublished\":\"2025-11-26T12:39:28+00:00\",\"dateModified\":\"2025-12-01T11:22:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\"},\"wordCount\":593,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png\",\"keywords\":[\"AI\"],\"articleSection\":[\"Deep Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\",\"name\":\"Artificial Neural Networks: When Biology Inspires Deep Learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png\",\"datePublished\":\"2025-11-26T12:39:28+00:00\",\"dateModified\":\"2025-12-01T11:22:55+00:00\",\"description\":\"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png\",\"width\":800,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\/ML\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Deep Learning\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Artificial Neural Networks: Biological Inspiration Behind Deep Learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"name\":\"Codemotion Magazine\",\"description\":\"We code the future. Together\",\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\",\"name\":\"Codemotion\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"width\":225,\"height\":225,\"caption\":\"Codemotion\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Codemotion.Italy\/\",\"https:\/\/x.com\/CodemotionIT\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/37ca255c359cc54110ac89eb4fa7db42\",\"name\":\"Orli Dun\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2026\/04\/alura-profile-100x100.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2026\/04\/alura-profile-100x100.png\",\"caption\":\"Orli Dun\"},\"description\":\"From finance to the digital revolution! Systems Engineer | Cloud &amp; AI | Tech Creator | Community Manager at Alura Latam #foramillionfriends\",\"sameAs\":[\"https:\/\/orlidun.vercel.app\/\",\"https:\/\/www.linkedin.com\/in\/orlibetdungonzalez\"],\"url\":\"https:\/\/www.codemotion.com\/magazine\/author\/orli-dun\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Artificial Neural Networks: When Biology Inspires Deep Learning","description":"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/","og_locale":"en_US","og_type":"article","og_title":"Artificial Neural Networks: Biological Inspiration Behind Deep Learning","og_description":"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.","og_url":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/","og_site_name":"Codemotion Magazine","article_publisher":"https:\/\/www.facebook.com\/Codemotion.Italy\/","article_published_time":"2025-11-26T12:39:28+00:00","article_modified_time":"2025-12-01T11:22:55+00:00","og_image":[{"width":800,"height":800,"url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png","type":"image\/png"}],"author":"Orli Dun","twitter_card":"summary_large_image","twitter_creator":"@CodemotionIT","twitter_site":"@CodemotionIT","twitter_misc":{"Written by":"Orli Dun","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#article","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/"},"author":{"name":"Orli Dun","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/37ca255c359cc54110ac89eb4fa7db42"},"headline":"Artificial Neural Networks: Biological Inspiration Behind Deep Learning","datePublished":"2025-11-26T12:39:28+00:00","dateModified":"2025-12-01T11:22:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/"},"wordCount":593,"commentCount":0,"publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png","keywords":["AI"],"articleSection":["Deep Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/","url":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/","name":"Artificial Neural Networks: When Biology Inspires Deep Learning","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png","datePublished":"2025-11-26T12:39:28+00:00","dateModified":"2025-12-01T11:22:55+00:00","description":"Discover how an artificial neural network works from scratch, with code examples and real-world applications in modern AI.","breadcrumb":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#primaryimage","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png","width":800,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/artificial-neural-networks-biological-inspiration-behind-deep-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codemotion.com\/magazine\/"},{"@type":"ListItem","position":2,"name":"AI\/ML","item":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/"},{"@type":"ListItem","position":3,"name":"Deep Learning","item":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/deep-learning\/"},{"@type":"ListItem","position":4,"name":"Artificial Neural Networks: Biological Inspiration Behind Deep Learning"}]},{"@type":"WebSite","@id":"https:\/\/www.codemotion.com\/magazine\/#website","url":"https:\/\/www.codemotion.com\/magazine\/","name":"Codemotion Magazine","description":"We code the future. Together","publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codemotion.com\/magazine\/#organization","name":"Codemotion","url":"https:\/\/www.codemotion.com\/magazine\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","width":225,"height":225,"caption":"Codemotion"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Codemotion.Italy\/","https:\/\/x.com\/CodemotionIT"]},{"@type":"Person","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/37ca255c359cc54110ac89eb4fa7db42","name":"Orli Dun","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2026\/04\/alura-profile-100x100.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2026\/04\/alura-profile-100x100.png","caption":"Orli Dun"},"description":"From finance to the digital revolution! Systems Engineer | Cloud &amp; AI | Tech Creator | Community Manager at Alura Latam #foramillionfriends","sameAs":["https:\/\/orlidun.vercel.app\/","https:\/\/www.linkedin.com\/in\/orlibetdungonzalez"],"url":"https:\/\/www.codemotion.com\/magazine\/author\/orli-dun\/"}]}},"featured_image_src":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-600x400.png","featured_image_src_square":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-600x600.png","author_info":{"display_name":"Orli Dun","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/orli-dun\/"},"uagb_featured_image_src":{"full":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png",800,800,false],"thumbnail":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-150x150.png",150,150,true],"medium":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-300x300.png",300,300,true],"medium_large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-768x768.png",768,768,true],"large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png",800,800,false],"1536x1536":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png",800,800,false],"2048x2048":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw.png",800,800,false],"small-home-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-100x100.png",100,100,true],"sidebar-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-180x128.png",180,128,true],"genesis-singular-images":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-800x504.png",800,504,true],"archive-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-400x225.png",400,225,true],"gb-block-post-grid-landscape":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-600x400.png",600,400,true],"gb-block-post-grid-square":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2025\/11\/1CjrjrAcJUT8Ux31Fd4qvcw-600x600.png",600,600,true]},"uagb_author_info":{"display_name":"Orli Dun","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/orli-dun\/"},"uagb_comment_info":0,"uagb_excerpt":"Artificial Neural Networks (ANNs) are the foundation of modern Artificial Intelligence.In this guide, you\u2019ll learn what neural networks are, how they work, and why they power today\u2019s most advanced AI systems\u2014from image recognition to large language models like Transformers. Whether you&#8217;re a student, developer, or simply curious about AI, this article will give you a&#8230;&hellip;","lang":"en","_links":{"self":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/34653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/users\/313"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/comments?post=34653"}],"version-history":[{"count":1,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/34653\/revisions"}],"predecessor-version":[{"id":34654,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/34653\/revisions\/34654"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media\/34429"}],"wp:attachment":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media?parent=34653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/categories?post=34653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/tags?post=34653"},{"taxonomy":"collections","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/collections?post=34653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}