Skip to content
Harson
Engineering

The week summer time fooled our anomaly model

After the March 2025 clock change, 34% of the week’s anomaly flags came from the change itself. We replayed four earlier clock changes before releasing the fix.

3 minData team

On Sunday 30 March 2025, the clocks went forward in Poland. We were testing Merivo Energia’s anomaly model in shadow mode. At the first weekly review, on 7 April, it had flagged 31,800 anomalies over the previous week. We traced 34% of them to the clock change. At Fabryka Tech Talks #31 on 3 September 2026, we showed how the hour that disappeared had left two different signatures in the meter data.

Merivo receives a reading every fifteen minutes from each of about two million meters. In the ordinary daily profile there are 96 quarter-hour slots. The model looks for deviations from each meter’s seasonal profile. A meter can still send readings that look strange to a model if the software puts them into the wrong part of the day.

One clock change, two shapes in the data

Meters from one manufacturer stored local time without a UTC offset. They reported 30 March as a day of 92 intervals. The hour skipped on the wall clock had removed four quarter-hour slots from their day. To the model, the abrupt gap looked like an unexplained break in the series.

Meters from another manufacturer moved their clocks on their own. Some did it up to 40 minutes late. In that group the shift in the daily load profile became the evidence the model responded to. Both groups produced alerts, even though the clock change accounted for their appearance. Simply excluding all readings from the date would also have left the team without a way to judge genuine anomalies on that day.

Put readings on one time axis at ingestion

We started converting timestamps to UTC at ingestion. Each manufacturer and firmware version has its own clock profile, so the conversion recognises the behaviour of the meter that sent the record. Giving both groups the same local-time assumption would have preserved one of the mistakes. Normalising time before the model sees the records also makes the difference between a missing interval and a time conversion visible sooner.

We added the clock-change dates as a model feature. The calendar event then enters the model as context for what it sees in a profile. The input records still go through the normal data quality checks. The analysts remain responsible for deciding whether a flagged meter has a problem.

Test the March and October changes together

The Kafka archive lets us replay historical meter readings through a changed rule or model. We took the spring and autumn clock changes from 2023 and 2024 and ran all four through the revised setup. Running both directions matters. In spring a local hour disappears, while in autumn the clock displays an hour twice. A change that tidies up the spring profile can still assign autumn readings to the wrong intervals.

The fix took three weeks. The analysts’ panel went live on 5 May instead of 14 April, and the SLA team checked the next live clock change on 26 October. The switch back passed without a false spike. Keeping those four historical changes as regression tests means the next timestamp or model update can be checked against the same inputs.

The Merivo Energia case study explains how the team uses the resulting meter flags before bills go out.

Share this article