TOPIC 24/5120 MINNOT STARTED

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.

  1. Multiply by weights
  2. Add the bias
  3. Apply the gate
  4. Pass to next layer
Weights, bias, gate

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A knob that sets one microphoneA weight on one input
The gate that passes the total onThe activation function
A chain of desksThe layers of a network
A person turning knobs until it sounds rightTraining 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.

What each part of the trick stands for
In the trickWhat it stands for
Weightsa number that says how much that input matters
Biasshifts the total up or down
Gatea 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
  1. 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)

    Version 2.0 syllabus (93 pages), read in full text. Used for the chapter and objective ids (AI-1.1.1 to AI-7.1.2), the seven AI-specific quality characteristics in section 2.1.1, the safety challenges in 2.1.2 and the neural network coverage measures in 3.4.3. Paraphrased, not quoted. · Checked 2026-10-25

    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.

  2. 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).

    Per the excerpt the glossary marks neuron coverage (coverage of activated neurons for a set of tests), sign change coverage and pseudo-oracle (an independently derived variant of the test item used for comparison) as CT-AI keywords. · Checked 2026-10-19

    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.

  3. 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)

    Introduces neuron coverage and differential testing of several models. Describes adversarial examples as inputs with minimal changes that fool a model. Later work questions whether neuron coverage predicts test quality. · Checked 2026-10-19

    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.

  4. 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)

    Neuron coverage counts a neuron as 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 only. · Checked 2026-10-25

    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.

  5. 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)

    A multi-layer perceptron has an input layer, one or more hidden layers and an output layer; each neuron takes a weighted sum of its inputs and applies an activation function. Search excerpt only. · Checked 2026-10-25

    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.

  6. 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)

    Hidden layers sit between input and output; without a non-linear activation a stack of layers collapses to a single linear model. Search excerpt only. · Checked 2026-10-25

    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.

  7. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    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.

  8. 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)

    Seen as a title and listing only: a paper that asks whether coverage criteria for neural networks measure how good a test set is. Its findings were not read. · Checked 2026-10-25

    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.