01

Reading an analogue clock

An analogue clock shows time with hands moving around a dial. On a standard 12-hour clock, the long minute hand completes a circle every hour, while the short hour hand completes a circle every 12 hours. Reading the time means combining the positions of both hands.

02

A continuous hour hand

The hour hand does not jump from one numeral to the next. It moves steadily, about half a degree every minute. At 4:00, it points exactly at the four. At 4:30, it is halfway between four and five. At 4:55, it is very close to the five, but has not reached it.

03

The rounding mistake

A model that finds the numeral closest to the hour hand would read 4:55 as 5:55, because the hand is nearest the five. The minute reading would be correct, but the hour would be wrong by one. Errors like this are common for people learning to tell the time, as well as for software.

04

Using the minute hand

The minute hand tells the model how far the hour hand should have moved. If the minute hand shows 55 minutes, the hour hand should be almost at the next numeral. So the hour is the numeral the hand has most recently passed, not the one it is nearest. Interpreting the hands together removes the ambiguity.

05

A single answer

Rather than predicting the hour and minute as separate, independent values, a better model predicts a single time, or checks that its hour and minute predictions are consistent with each other. A reading of 5:55 with the hour hand just before five is inconsistent and should be rejected.

06

Testing near the hour

A fair test includes many times just before the hour, such as 4:55, 7:58 and 11:59, where rounding errors are most likely. If the model reads these correctly, it has learned to interpret the hands together. Random times alone may contain too few of these difficult cases.

07

Twenty-four-hour clocks

Some clocks, like the one pictured, have 24-hour faces, where the hour hand goes round once a day instead of twice. Each hour mark is 15 degrees apart instead of 30. A model trained only on 12-hour clocks would misread them badly. Tests should include the types of clock the model will meet.

08

Other variations

Clock faces vary widely: Roman numerals, no numerals at all, decorative hands, second hands and reflections from glass. Hands may also overlap, for example at around 12:00 or 3:16. Each variation is a potential source of error and should appear in testing.

09

Known times

To create reliable labels, clocks can be photographed at known times, for example by setting them precisely or recording the time from a reference clock. This removes any doubt about the correct answer.

10

Responsible testing

The NIST AI Risk Management Framework encourages developers to test AI systems on difficult cases where errors are likely. Times near the hour are exactly such cases for a clock reader.

11

Mirrored and rotated photos

A photograph may be taken at an angle, rotating the dial in the image, or flipped by some software, reversing the direction of the hands. A model must locate the twelve o'clock position before interpreting angles. Tests should include tilted and rotated photographs to check that the model finds the dial's orientation correctly.

12

Digital comparison

Digital clocks avoid this problem entirely.

13

Try the arithmetic

The hour hand moves 30 degrees per hour on a 12-hour clock, or 0.5 degrees per minute. At 4:55, it is 4 × 30 + 55 × 0.5 = 147.5 degrees from twelve, just short of the five, which is at 150 degrees.

14

The idea to take away

At 4:55, the hour hand lies close to five. A model that rounds it could report 5:55. The minute hand constrains how the hour hand should be read, so the two hands must be interpreted together, and tests should include times near the hour.

FOLLOW THE EVIDENCE

Sources & further reading

Figures in the example are illustrative. Photograph: Rew17h09 1977.jpg by Roly Williams, CC BY-SA 4.0, via Wikimedia Commons; cropped and resized. Reference organisations do not endorse this website.