{"id":1245,"date":"2021-04-14T13:21:23","date_gmt":"2021-04-14T13:21:23","guid":{"rendered":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/?p=1245"},"modified":"2021-05-14T15:28:15","modified_gmt":"2021-05-14T15:28:15","slug":"artificial-neural-networks","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/2021\/04\/14\/artificial-neural-networks\/","title":{"rendered":"Artificial Neural Networks"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1245\" class=\"elementor elementor-1245\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-690017b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"690017b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-07b0b5b\" data-id=\"07b0b5b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2b78f68 elementor-widget elementor-widget-text-editor\" data-id=\"2b78f68\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The brain is arguably the most amazing thing on this planet. With our brains, humans have come up with some incredible inventions and created some amazing things. Even in the last century, the world has changed so much in such little time due to the development in computers and technology. But is it possible for computers to act like the human brain? To learn from it&#8217;s mistakes and from past experiences in order to continuously learn and improve? In short, yes! In this blog post, we will learn about what an\u00a0<span style=\"font-weight: bold\">artificial\u00a0<\/span><b>neural network<\/b> is and it&#8217;s uses in machine learning, how it&#8217;s modelled after the human brain.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b95aa95 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b95aa95\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e154a3\" data-id=\"5e154a3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-3bc897b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3bc897b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-b01e87a\" data-id=\"b01e87a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7a3e585 elementor-widget elementor-widget-image\" data-id=\"7a3e585\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"267\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/3-300x267.png\" class=\"attachment-medium size-medium wp-image-1248\" alt=\"\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/3-300x267.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/3.png 519w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-7ccc5fe\" data-id=\"7ccc5fe\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c58918c elementor-widget elementor-widget-text-editor\" data-id=\"c58918c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Let&#8217;s first dial it right back to basics. The image on the left shows three (not perfectly) handwritten images of the number 3. Somehow our brains are able to look at each of the images, process this information, and classify each of the images as the number 3. This is incredible. So we don&#8217;t actually have to be an artist and draw the number 3 perfectly each time to be able to recognise what each of the drawings represent.<\/p><p>When it comes to computers, we have to be very specific in what we tell them what to do, otherwise it just outputs absolute nonsense or just gives many many errors (as anyone who has done some programming understands).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f52bf03 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f52bf03\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8618d36\" data-id=\"8618d36\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-707cb00 elementor-widget elementor-widget-text-editor\" data-id=\"707cb00\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Don&#8217;t see why this is important or of any relevance to your life? This concept of taking something that&#8217;s &#8220;kind of like&#8221; something else and being able to get a computer to understand and recognise what it is has lots of applications in many areas. Take Google translate for example.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-78e1e9d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"78e1e9d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-0420893\" data-id=\"0420893\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9766a1a elementor-widget elementor-widget-text-editor\" data-id=\"9766a1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The image on the right shows three handwritten versions of my surname, Li, written in traditional Chinese. As you can see, they are badly written and yet Google translate is able to interpret this and recognise what it is I am trying to write. This makes going to another country (pre and post-Covid) a lot more accessible for people that don&#8217;t know how to speak the language, allowing people to break down these language barriers and to connect. And this is just one application.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6cdef87\" data-id=\"6cdef87\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3a264d8 elementor-widget elementor-widget-image\" data-id=\"3a264d8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"251\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/Picture2-300x251.png\" class=\"attachment-medium size-medium wp-image-1249\" alt=\"\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/Picture2-300x251.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/Picture2-1024x857.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/Picture2-768x643.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/Picture2.png 1027w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-42f52f0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"42f52f0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e793ca6\" data-id=\"e793ca6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-41e223c elementor-widget elementor-widget-text-editor\" data-id=\"41e223c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>So how do computers do this? Well, it&#8217;s all to do with neural networks. In our brains, neurons are specialised cells that act as information messengers, using electrical impulses and chemical signals to send information between different areas of the brain. A basic image of a neuron is shown below. The main body of the neuron is where the information travels across. At the head and tail, we can the neuron branching off. These branches (or synapses) are where the neuron is receiving\/sending information to\/from other neurons. As we can see, there are multiple synapses, so the information is being sent and collected from many areas of the brain and this concept is applied to computers.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4f6e4d2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4f6e4d2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c26a771\" data-id=\"c26a771\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b861c86 elementor-widget elementor-widget-image\" data-id=\"b861c86\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"150\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neuron-300x150.png\" class=\"attachment-medium size-medium wp-image-1250\" alt=\"\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neuron-300x150.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neuron-768x384.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neuron.png 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ca675c5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ca675c5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ad8c888\" data-id=\"ad8c888\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-207c768 elementor-widget elementor-widget-heading\" data-id=\"207c768\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-large\">How does an artificial neural network work?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ae16548 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ae16548\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-444a309\" data-id=\"444a309\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-06b09e8 elementor-widget elementor-widget-image\" data-id=\"06b09e8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"286\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neurons-pixels-300x286.png\" class=\"attachment-medium size-medium wp-image-1251\" alt=\"\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neurons-pixels-300x286.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neurons-pixels-1024x977.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neurons-pixels-768x733.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/neurons-pixels.png 1077w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-8c0835e\" data-id=\"8c0835e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-76bd8e7 elementor-widget elementor-widget-text-editor\" data-id=\"76bd8e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Let&#8217;s go through a simplified example of what an artificial neural network does. Let&#8217;s say the screen where we (badly) write our number on is actually a 28&#215;28 square, where each point is a circle. This circle is called a neuron, and so there are 28&#215;28=784 neurons. The image to the left shows this. Each neuron is able to hold a number between 0 and 1 and this is called it&#8217;s <b>activation value<\/b>. We can think of this as how much we have highlighted a specific neuron and holds our initial information.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7f74563 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7f74563\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f0bc1bf\" data-id=\"f0bc1bf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3a57e4e elementor-widget elementor-widget-text-editor\" data-id=\"3a57e4e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>We take all these 784 neurons and call this the <b>input layer<\/b>. Then, depending on which neurons are activated and have which activation value, we send this information across some synapses to activate neurons in the next layer, which then sends some information to neurons in another layer, and another layer, and so on. Then finally, we eventually get to the <b>output layer<\/b>, which just consists of just 10 numbers, each representing the numbers 0 to 9. The activation value for these neurons in the output layer represents the probability of that number being the number we initially wrote. So, the higher the activation number, the more likely the network believes that a particular number was our input number. The structure of this is shown in the picture below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-eb82fe5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"eb82fe5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a80f234\" data-id=\"a80f234\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-975b97a elementor-widget elementor-widget-image\" data-id=\"975b97a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"513\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/ann.png\" class=\"attachment-large size-large wp-image-1258\" alt=\"\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/ann.png 690w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-content\/uploads\/sites\/21\/2021\/04\/ann-300x223.png 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-79cd864 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"79cd864\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9c8e7f1\" data-id=\"9c8e7f1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-22e4918 elementor-widget elementor-widget-text-editor\" data-id=\"22e4918\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>So we start off at the input layer, then we send some information to some intermediary layers\u00a0<span>(where the information sent changes depending on which neurons are activated)<\/span>, and then we finally get to the output layer where the program gives us a number it thinks we wrote. The intermediary layers are called <b>hidden layers <\/b>and we can think of this as all the fancy maths and calculations that go on in the background. In the image above, there are two hidden layers.\u00a0<\/p><p>So imagine using Google translate. You write our name in chinese characters (the input layer), then google translate does some fancy stuff in the background (the hidden layers), and finally the app outputs what you think you wrote (the output layer).<\/p><p>The efficiency and accuracy in the network comes from how the information is sent from one layer to the next. As stated previously, the way a network sends information from one layer to the next depends on which neurons were activated beforehand and by how much, but is also determined by pre-specifying some numbers (which we call <b>weights<\/b>) along the edges. These weights tell us how strongly linked one neuron is in one layer to another neuron in the next. For example, if we draw a straight vertical line, we think the number is more likely to be a 1 rather than an 8 so we put more weight on the edge linking to the neuron representing the number 1.<\/p><p>But how do we determine the weights? This is where the &#8220;learning&#8221; part comes in. Once we have set up this network, we then trial it out by feeding it (lots of) handwritten numbers. Of course, we know what these numbers are and so we know what the output should be. So the network does all it&#8217;s calculations and give us the output of what it &#8220;thinks&#8221; the handwritten number is. If it&#8217;s wrong, then we can change the value of the weights so that next time, the network will perform better and will be less likely to make a mistake. This process is called <b>training<\/b>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-83ebedc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"83ebedc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8c8b36c\" data-id=\"8c8b36c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1615de3 elementor-widget elementor-widget-heading\" data-id=\"1615de3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-large\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-45daaeb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"45daaeb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18d7789\" data-id=\"18d7789\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6995006 elementor-widget elementor-widget-text-editor\" data-id=\"6995006\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In conclusion, an artificial neural network acts like the neural network in our brains, taking in information and spots and classifies any patterns within the data. If the network makes a mistake, then it is able to &#8220;learn&#8221; from this mistake so that it can improve and do better next time. These artificial neural networks can be very large and complicated as we are looking to do more than just identify what number is written. However, this blog post explains the basic concept of an artificial neural network so you, the reader, are able to understand the basics of what they do and what it means for machines to &#8220;learn&#8221;. Thank you for taking the time to read. If you want to go into more detail, there is an excellent YouTube video\u00a0<a href=\"https:\/\/www.youtube.com\/watch?v=aircAruvnKk&amp;t=23s\" target=\"_blank\" rel=\"noopener\">here<\/a>\u00a0that explains this really well (and where I learnt all this from).\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The brain is arguably the most amazing thing on this planet. With our brains, humans have come up with some incredible inventions and created some amazing things. Even in the last century, the world has changed so much in such little time due to the development in computers and technology. But is it possible for [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":1247,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/posts\/1245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/comments?post=1245"}],"version-history":[{"count":13,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/posts\/1245\/revisions"}],"predecessor-version":[{"id":1264,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/posts\/1245\/revisions\/1264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/media\/1247"}],"wp:attachment":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/media?parent=1245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/categories?post=1245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/owen-li\/wp-json\/wp\/v2\/tags?post=1245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}