Neural networks for testers: layers, weights and coverage
See a neural network as layers of weighted sums, do one neuron by hand, and learn why counting fired neurons is only a hint.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a mixing desk. A mixing desk has a row of knobs. Each knob sets how loud one microphone is. The desk adds the sounds together. A gate then decides whether the total is loud enough to pass on. Nobody writes a rule for the music. A person turns the knobs until it sounds right.
Daily List is a to-do list app. Leo's urgent helper turns a task into a few numbers, such as 1 if the task is due today and 0 if it is not. Each number goes through a knob, called a weight. The desk adds the results, and a gate says urgent or not urgent. The simplest desk is a single perceptron, one small calculation with weights and a gate.
A joins such small calculations in layers; it can be tiny or very large, like a chain of desks. The knob settings are found by training and not by hand.
Individual weights in a large model usually do not form readable business rules. Code coverage can still help test preparation and serving code, but it does not show how thoroughly the learned behavior was exercised. For a simple dense network, many inputs may follow the same code path while producing different activations. Researchers therefore also count how many of the network's small units their tests switched on. That count is .
The picture has limits. A real desk has a person listening, and a network is tuned by a program that measures an error. A desk has a few knobs, and a network has far more. Labels are one way to judge a network; agreed properties, expert review and metamorphic checks can also help when exact labels are unavailable.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 3 in this section
- readable
- able to be read and understood, by people or software
- therefore
- for that reason; as a result
- metamorphic
- changing form; here, a rule about how results change
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Seeing a as weighted sums passed through gates in layers, so a tester knows why rules cannot be read and coverage is weak.
- Multiply by weights
- Add the bias
- Apply the gate
- Pass to next layer
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A knob that sets one microphone | A weight on one input |
| The gate that passes the total on | The activation function |
| A chain of desks | The layers of a network |
| A person turning knobs until it sounds right | Training that nudges the weights |
WHERE THIS PICTURE STOPS
- A desk has a person listening. A network is tuned by a program that measures an error.
- A desk has a few knobs. A network has far more.
- Music is judged by ear. A network is right or wrong only against labelled data.
HOOK
Knobs, gate, layers.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Say it in order: multiply by the weights, add the bias, then apply the gate. Each layer passes its outputs on.
| In the trick | What it stands for |
|---|---|
| Weights | a number that says how much that input matters |
| Bias | shifts the total up or down |
| Gate | a rule that turns the total into the neuron's output |
TELL A FRIEND
A neuron multiplies inputs by weights, adds a bias and applies a gate, and layers of them make a network. Counting fired neurons is a hint, not proof that answers are right.
OFTEN MIXED UP WITH Testing AI and machine-learning features. That lesson mentions in one paragraph. This one explains the network and the measures behind it.
PRACTISE AND KEEP
Sources for this topic — 8 sources
- Market practice
ISTQB Certified Tester AI Testing (CT-AI) Syllabus v2.0 (copy hosted by ATSQA) ↗ — ISTQB, copy hosted by ATSQA · Mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter, read in full text: section 3.4 has AI-3.4.1 (K2) explain the structure and working of a deep neural network, HO-3.4.2 (H1) experience the implementation of a perceptron, and AI-3.4.3 (K2) describe the coverage measures for neural networks. Section 3.4.3 lists neuron coverage, k-multisection neuron coverage (kMNC) and neuron boundary coverage (NBC)
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
- Market practice
ISTQB Glossary help PDF (CT-AI keywords) ↗ — ISTQB · The glossary marks neuron coverage (coverage of activated neurons for a set of tests), sign change coverage and pseudo-oracle as CT-AI keywords (search excerpt, page not opened). Sign change coverage is a version 1.0 keyword. Version 2.0 section 3.4.3 lists neuron coverage, k-multisection neuron coverage and neuron boundary coverage (mirror copy of the publisher PDF, read in full text).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
DeepXplore: Automated Whitebox Testing of Deep Learning Systems ↗ — Pei et al. (arXiv 1705.06640) · Introduces neuron coverage and differential testing of several models; later work questions whether neuron coverage predicts test quality (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
An Overview of Structural Coverage Metrics for Testing Neural Networks (arXiv 2208.03407) ↗ — arXiv preprint · A neuron is covered when its activation is above a threshold, often zero, for at least one test input; sign change and value change compare two inputs (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Neural network models, supervised (scikit-learn user guide) ↗ — scikit-learn developers · A multi-layer perceptron has an input layer, hidden layers and an output layer; each neuron takes a weighted sum of its inputs and applies an activation function (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Multilayer Perceptrons (Dive into Deep Learning) ↗ — Dive into Deep Learning authors · Hidden layers sit between input and output; without a non-linear activation the stack collapses into one linear model (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, its numbers and the people are invented. The networks are tiny so that every sum can be done by hand. Names of coverage measures differ between sources and between syllabus versions.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Revisiting Deep Neural Network Test Coverage from the Test Effectiveness Perspective (arXiv 2010.04946) ↗ — arXiv preprint · Seen as a title and listing only: a paper that asks whether coverage criteria for neural networks measure test effectiveness; findings not read (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.