The Harding test is an automated analysis of moving images that detects flashing sequences, saturated red flashes and regular spatial patterns capable of provoking seizures in people with photosensitive epilepsy. In video accessibility, it serves as the standard pre-broadcast check that a program, advertisement or online video stays within internationally agreed flash limits, and it is also called a photosensitive epilepsy test.
The name comes from Professor Graham Harding, the neurophysiologist whose clinical research defined the thresholds, and from the Harding Flash and Pattern Analyser (FPA), the commercial tool that first implemented them. Broadcasters in the United Kingdom and many other markets require a pass certificate before transmission, and streaming platforms increasingly apply the same limits to delivered files.
How the Harding test analyzes video frames
The Harding test works by measuring luminance changes between consecutive frames and comparing them with clinical risk thresholds. The analyzer converts each frame into an estimate of screen luminance in candelas per square meter (cd/m²), assuming a standard display, and then tracks how bright and dark regions alternate over time.
A flash is defined as a pair of opposing luminance changes, a rise followed by a fall or the reverse, where the difference reaches about 20 cd/m² or more and the darker state is below roughly 160 cd/m². The test also considers the area involved: a flash is only counted as hazardous when it covers more than about 25 percent of the screen, because small flickering regions stimulate too little of the visual cortex to carry the same risk.
Separate detectors handle saturated red transitions, which are dangerous even at modest luminance change, and regular patterns such as stripes, checkerboards and concentric rings. The software reports results frame by frame, flags the exact timecodes that fail, and produces an overall pass, caution or fail verdict.
The table below lists the main parameters the analysis evaluates and why each one matters clinically.
| Parameter | Typical limit | Why it matters |
|---|---|---|
| Flash frequency | No more than 3 flashes per second | Seizure risk rises sharply above 3 Hz |
| Luminance difference | 20 cd/m² or more counts as a flash | Small changes do not provoke a response |
| Screen area | Over 25 percent of the display | Large areas stimulate more of the cortex |
| Red flash | Any saturated red transition above 3 per second | Deep red is especially provocative |
| Spatial pattern | Regular stripes with more than about 5 light-dark pairs | High-contrast patterns can trigger seizures without flashing |
Standards and guidelines behind the thresholds
The Harding test applies limits that come from broadcast regulation and accessibility standards, not from the software vendor alone. The most influential source is the Ofcom guidance on photosensitive epilepsy, which supports a rule in the UK broadcasting code requiring licensees to minimize the risk to viewers. The international recommendation ITU-R BT.1702 sets comparable limits for television worldwide.
Web content follows WCAG success criterion 2.3.1, Three Flashes or Below Threshold, which adopts the same general and red flash thresholds. Japan introduced its own broadcaster guidelines after a widely reported 1997 incident in which an animated program caused hundreds of children to seek medical attention, an event that accelerated formal flash limits across the industry.
The following table compares the main frameworks that rely on Harding-style analysis.
| Framework | Scope | Practical effect |
|---|---|---|
| Ofcom guidance | UK television and on-demand services | Pass certificate usually required before airing |
| ITU-R BT.1702 | Television broadcasting internationally | Reference limits for national regulators |
| WCAG 2.3.1 | Web pages and online media | Accessibility conformance at level A |
| Japanese broadcaster guidelines | Japanese television | Strict limits on flashing and red content |
Harding test results and what they mean
A Harding report gives a verdict for the whole file and a timeline of risk, so editors can locate and correct the exact problem. A pass means no segment exceeded the limits, while a fail lists every timecode where flashes, red transitions or patterns crossed a threshold.
Many analyzers also return a caution or warning state for sequences that approach the limits without breaching them. These sequences may be broadcast, but cumulative exposure to many near-threshold passages can still be uncomfortable for sensitive viewers, so careful editors treat warnings as a prompt for review.
| Result | Meaning | Usual action |
|---|---|---|
| Pass | All sequences within limits | Deliver with the certificate attached |
| Caution | Close to limits for part of the duration | Review creatively and consider softening |
| Fail | At least one segment exceeds a threshold | Edit, regrade and analyze again |
Fixing content that fails the analysis
Failed sequences are fixed by reducing contrast, frequency or area of the offending change rather than by removing whole scenes. Typical sources of failure include camera flashes at press events, strobe lighting in music videos, gunfire muzzle flashes, lightning, fast cuts between black and white frames and graphic animations with rapid inversions.
Editors and colorists usually combine several techniques, chosen according to the cause listed in the report. The table summarizes common remedies.
| Cause | Remedy | Trade-off |
|---|---|---|
| Rapid photographer flashes | Reduce brightness peaks with a local grade | Scene feels less energetic |
| Strobe lighting | Frame blending or lower strobe rate | Motion looks smoother than shot |
| Fast black and white cuts | Insert mid-gray frames or lengthen shots | Changes editing rhythm |
| Saturated red flashes | Desaturate or darken the red channel | Color intent may shift |
| Fine striped patterns | Blur, reduce contrast or reframe | Loss of detail in the pattern |
After any correction, the whole program must be analyzed again, because a regrade or a new edit can create fresh violations elsewhere. Adding an on-screen warning before the program helps some viewers but does not replace compliance under broadcast rules.
Limitations of the Harding test
The Harding test estimates risk on a reference display under assumed viewing conditions, so it cannot guarantee safety for every viewer. Real exposure depends on screen size, viewing distance, brightness settings and ambient light, and modern HDR displays can reach far higher luminance peaks than the conditions the original research assumed.
- Passing does not mean zero risk: a small proportion of photosensitive viewers react below the standard thresholds.
- Interactive media such as games can produce flashes that depend on player input, so a fixed recording only samples possible output.
- Frame-rate conversion and re-encoding can alter flash timing, which means delivered files should be tested in their final form.
- Virtual reality headsets fill most of the visual field, so the 25 percent area rule may underestimate exposure.
Within video accessibility, the Harding test protects a group that captions, audio description and sign language interpretation do not address. It is best understood as a safety gate that complements other accessible video practices rather than a measure of overall accessibility.
The short version
Some people have a form of epilepsy in which fast flashing lights or busy striped patterns can trigger a seizure. The Harding test is a computer check that watches a video frame by frame and looks for exactly those dangerous moments.
It counts how often the picture flashes, how bright the changes are and how much of the screen they cover. If a scene flashes more than three times a second across a large part of the screen, the test flags it so the editor can soften it. The key point is simple: the test catches risky flashing before viewers ever see it.
Where it makes a difference
A post-production team is finishing a 30-second television advertisement for a music festival. The edit includes stage strobes and quick cuts between a dark crowd and bright white lighting rigs, timed to a track at 128 beats per minute.
Before delivery, the editor runs the file through a Harding analyzer. The report shows a fail between 00:00:12 and 00:00:16, where the strobes produce about six large-area flashes per second. The colorist lowers the peak brightness of the strobe frames, and the editor adds short blended transitions so the light changes are less abrupt.
The second analysis returns a pass with a brief caution near the end, which the team accepts after review. The broadcaster receives the file together with the pass certificate, and the advertisement airs on schedule without excluding photosensitive viewers.