Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Neural Networks and Deep Learning

Module 1 · Wrap-up

Discussion prompt, recap and references

Reflect on one question, review the module and find the named sources.

  • 25 minutes
  • Recap
  • References

Real-world case: Reading millions of bank cheques: LeNet-5 at NCR, 1990s

1998 · AT&T Bell Laboratories and NCR Corporation, banks in the United States

In the 1990s a research group at AT&T Bell Laboratories, led by Yann LeCun, built neural networks that read handwriting. Their 1998 paper in the Proceedings of the IEEE describes a complete system for reading handwritten and machine-printed bank cheques. At its core is a network called LeNet-5. The authors report that the system was in commercial use in the NCR Corporation’s line of cheque-recognition systems for the banking industry, reading millions of cheques in several banks across the United States.

The idea is the one taught in this module. Each cheque is scanned and a character is cut out as a small grey-scale image of 32 × 32 pixels. Each pixel is a number, so the network’s inputs are 1,024 numbers. They pass through layers of neurons; each neuron forms a weighted sum of its inputs, adds a bias and applies an activation (LeNet-5 uses a tanh activation, a smooth cousin of the sigmoid). The output layer has ten neurons, one for each digit, and the strongest output names the digit.

Nobody wrote rules for what a “7” looks like. The network has about 60,000 trainable parameters, and they were set by showing it a large set of labelled handwritten digits. The MNIST benchmark built for these experiments has 60,000 training images and 10,000 test images, and LeNet-5 reached a test error of under 1 per cent on it. Reading one digit is one forward pass: numbers in, layer after layer of weighted sums and activations, a result out.

How the case shows what you learned in this module

Module ideaIn the case
Inputs, output and parameters (Lesson 1)Pixel values were the inputs, the ten digit scores the outputs, and about 60,000 weights and biases the parameters set from labelled examples.
The weighted sum and bias (Lesson 2)Every neuron in the network performs the calculation z = w1x1 + w2x2 + … + b, exactly as in the courier example.
Activation functions (Lesson 3)A smooth non-linear activation between layers let the network recognise shapes that a single weighted sum could not.
Layers and the forward pass (Lesson 4)Each cheque digit was read by passing numbers through the layers in order; the same arithmetic is repeated millions of times.

Workplace takeaway. When a firm proposes a model for scanned forms, invoices or cheques, ask the questions this case answers: what are the inputs, what examples set the parameters, and how well does it do on cases it has not seen?

Sources: LeCun, Y., Bottou, L., Bengio, Y. and Haffner, P. (1998), “Gradient-based learning applied to document recognition”, Proceedings of the IEEE, 86(11), 2278–2324. Parameter and image-size figures follow standard descriptions of LeNet-5.

Discussion prompt

20 minutes. Describe one estimate or classification at your work that a network could learn. In 150 to 200 words, name the inputs, the output and the examples you would need, and one case the examples might miss.

Private: nothing you type here is sent or stored.

This course has no discussion board yet, so the prompt is a private reflection.

Recap

  • A network is a chain of weighted sums and activations.
  • Weights and biases are the parameters that learning adjusts.
  • ReLU, step and sigmoid shape each neuron total.
  • Layers pass results forward; count every weight and bias.

Flashcards: 14 workplace review cards

Tap a card to reveal the answer. Read the question, answer it aloud or in writing first, then check yourself against the explanation.

Card 1 of 14 · A manager asks what a neural network actually does with the data. How do you explain it without jargon?
Inputscase dataWeightshow much each countsLayerscombine patternsOutputthe estimate
Inputs become an output by weighted arithmetic.

Say that it is a long chain of small calculations. Each neuron multiplies every input by a number called a weight, adds the results and a starting value called a bias, then passes the total through a simple rule. Layers repeat this, so early layers find simple patterns and later layers combine them. The weights are not typed in by hand; they are adjusted until the outputs match known past cases.

At work: when you present a model to a sceptical committee, describe it as weighted arithmetic fitted to your own records, then show one worked case.

Card 2 of 14 · What are the inputs and the output of a model that predicts how long a support ticket will stay open?

The inputs are numbers describing the ticket at the moment of prediction, for example the category code, the number of messages so far and the customer priority level. The output is a predicted number of hours. Be careful to include only facts known at the time of prediction; a field filled in after the ticket closes would leak the answer.

At work: before building anything, write the list of inputs and ask of each one: will this be known when I need the prediction?

Card 3 of 14 · A colleague says the model has “learned the rules”. What exactly has it learned?

It has learned parameters, meaning numerical weights and biases, that fit the examples it was shown. It has not been given rules in words, and it cannot give reasons unless the design allows it. Its behaviour is therefore only as reliable as the examples were varied and correct.

At work: ask which period, region and customer types the training records covered, because the model is silent about everything outside them.

Card 4 of 14 · How do you compute the total for a neuron with inputs 2 and 3, weights 0.5 and 0.4 and bias 1?
Multiplyeach pairAddthe productsAddthe bias
The weighted-sum total, step by step.

Multiply each input by its weight: 2 × 0.5 = 1.0 and 3 × 0.4 = 1.2. Add the products: 2.2. Add the bias: 2.2 + 1 = 3.2. Write each product on its own line to avoid sign slips.

At work: an analyst who can reproduce one prediction by hand can also check a spreadsheet or software result when a figure looks wrong.

Card 5 of 14 · What does a large negative weight on an input tell you?

It means that when that input rises, the neuron total falls sharply. For a delivery-time model, a negative weight on “courier experience in years” would say that more experience lowers the predicted time. It is a sign of the direction learned from the data, not proof of cause: experienced couriers may simply be given easier routes.

At work: read weights as clues to investigate, and check them against what colleagues know of the process.

Card 6 of 14 · Why does a neuron need a bias as well as weights?

Without a bias the total would be exactly zero whenever every input is zero, so the neuron could not express a baseline. The bias lets the total start above or below zero. In the delivery example, a bias of 10 says that even a zero-distance, zero-parcel job takes ten minutes for loading and paperwork.

At work: the bias often matches a fixed overhead, such as set-up time or a minimum fee.

Card 7 of 14 · What does ReLU do, and why is it used in hidden layers?
z below 0output 0z above 0output z
Negative totals are blocked; positive totals pass.

ReLU returns max(0, z): positive totals pass unchanged and negative totals become zero. It is cheap to compute and, unlike a plain weighted sum, it is non-linear, which lets stacked layers build patterns a single sum cannot. For z = −4 the result is 0; for z = 7.5 it is 7.5.

At work: when a model output must not be negative, such as a time, a count or a price, an output ReLU is a simple safeguard.

Card 8 of 14 · Why can a deep network not simply be a long series of weighted sums?

Because a weighted sum of weighted sums is still one weighted sum. Ten linear layers can be rewritten as a single layer, so depth would add nothing. A non-linear activation between layers breaks this and allows the network to represent curved and interacting effects.

At work: if a vendor says a simple linear model and a deep model perform the same, ask whether the deep model has activations and whether it was tested on unseen data.

Card 9 of 14 · What is a sigmoid output, and how should you read it?

A sigmoid squeezes any total into a value between 0 and 1, with sigmoid(0) = 0.5. It is often read as a probability-like score, for example 0.8 for “likely to renew”. A score is not a decision: you need a threshold, such as flagging accounts above 0.7, and that threshold should reflect the cost of each kind of mistake.

At work: agree the threshold with the business owner before launch, and review it when costs change.

Card 10 of 14 · How do you count the parameters of a network with 3 inputs, 4 hidden neurons and 1 output?
Hidden3×4 + 4 = 16Output4×1 + 1 = 5Total21
Parameters = inputs × neurons + neurons, per layer.

Count weights and biases layer by layer. Hidden layer: 3 × 4 = 12 weights plus 4 biases = 16. Output layer: 4 × 1 = 4 weights plus 1 bias = 5. Total: 21. Parameter counts show how much data a model may need and how large it will be to store and run.

At work: ask a vendor for the parameter count and the number of training examples; very many parameters with few examples is a warning sign.

Card 11 of 14 · What happens during a forward pass, and when is it used?
InputlayerHiddenlayerOutputlayer
Numbers flow forward layer by layer.

The input numbers enter the first layer; each neuron forms its weighted sum and activation; the results become the inputs to the next layer, until the output layer gives the answer. In the worked case the hidden outputs 3 and 1 gave a final output of 2.5. A forward pass is used both when making a prediction and as the first step of each training round.

At work: every score a deployed model shows a user is one forward pass on that user’s data.

Card 12 of 14 · A model was built on last year’s orders. Why might it fail on this year’s?

The weights fit the patterns present in the training records. If customers, prices or processes have changed, those patterns no longer hold and the predictions drift. Neural networks give no warning by themselves; they simply compute the same weighted sums.

At work: compare predictions with actual results every month and set a clear trigger for retraining.

Card 13 of 14 · What is the first check when a model’s output looks impossible, such as a negative delivery time?

Reproduce one case by hand. Check the inputs for entry errors, check units such as minutes against hours, recompute the weighted sum, and see whether an output activation should have blocked the value. Most surprising outputs come from bad inputs, not from the arithmetic.

At work: keep a small set of hand-checked cases and run them whenever the model or its data feed changes.

Card 14 of 14 · How would you decide whether a network is worth building for a task at work?

Ask four questions. Is there a clear output that can be measured? Are there many past examples with known answers? Would a simple rule or spreadsheet already do the job? What does a wrong prediction cost? A network earns its place when patterns are complex, examples are plentiful and errors are tolerable or can be reviewed by a person.

At work: start with a simple baseline and build a network only if it beats the baseline on unseen cases by a margin that matters.

Module notes

Key terms. Neural network: a function built from layers of neurons. Input: a number describing a case. Parameter: a weight or a bias. Weight: how strongly an input counts. Bias: a shift added to the total. Activation: the rule that shapes the total. ReLU: max(0, z). Hidden layer: a layer between input and output. Forward pass: computing the output for one case.

Rules and formulas. z = w1x1 + w2x2 + … + b. ReLU(z) = max(0, z). Parameters in a layer = inputs × neurons + neurons.

Limits of this module. Cases are invented and figures are chosen to show the arithmetic. Real networks are far larger and are trained and tested with software.

Next

Modules 2 to 8 are in preparation. Return to the course overview or the University Track.

References and further reading

  • Goodfellow, I., Bengio, Y. and Courville, A. (2016). Deep Learning. MIT Press.
  • Nielsen, M. A. (2015). Neural Networks and Deep Learning. Determination Press (online book).
  • LeCun, Y., Bengio, Y. and Hinton, G. (2015). Deep learning. Nature, 521, 436–444.
  • Specialty Digest encyclopedia: Neural Network, Machine Learning Explained, Overfitting and Training Data.