Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Layers in artificial neural networks

A short article giving a reminder of how layers in artificial neural networks are structured
A reminder on artificial neural networks.

Before we go any further, its worth reminding ourselves about how ‘regular’ artificial neural networks work. You will have encountered these already if you have completed the preceding course in this series Machine Learning for Image Data.

Layers in artificial neural networks

In brief, artificial neural networks consist of a series of sequentially arranged layers, each consisting of a fixed set of nodes or neurons, each of which is connected to every neuron in the directly preceding and following layers.

The numerical data signal is only passed in one direction, from the input layer to the output layer, and the amount of signal passed through each connection between neurons is determined by the weight (a number) attached to each individual connection in the network.

By adjusting these weights the network can be trained to give a particular desired output (or answer) to a given piece of input data.

A diagram of an artificial neural network. Four input nodes labelled X1 to X4 are each connected to six nodes in the following hidden layer, which in turn are each connected to six nodes in another hidden layer, and finally connected to two nodes in an output layer labelled "Yes" and "No"

A layer in a conventional artificial neural network is the set of neurons positioned at the same distance through the network, plus also all the weights connecting it to the next layer in the network.

So, if for example there are 64 neurons in one layer, and 32 neurons in the following layer, there will be 64 x 32 = 2048 weights associated with that layer. Seems a lot, but wait until we see some convolutional layers!

This kind of layer is still found within convolutional neural networks and is known as a fully connected layer.

In the next article we will see how convolutional layers differ from these fully connected layers.

Image (c) The University of Nottingham

This article is from the free online

Deep Learning for Bioscientists

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now