KatInterview

Diagnosing and Fixing a Degraded Forecasting System

Machine LearningModel answer
MediumModel answerMachine Learningml-systemstime-seriesdebugging

Last updated

Debug a time-series forecasting system experiencing accuracy decline by isolating failures, measuring impact, and implementing fixes.

You maintain a forecasting system that predicts future values from historical time-series data. Recently, the system's predictions have become less reliable and error rates have increased.

Your task is to:

  1. Diagnose the problem systematically across the entire pipeline—from where data enters the system, through feature computation, to where predictions are generated and served.

  2. Measure the degradation rigorously by designing an evaluation approach that accounts for time-series characteristics, provides fair comparisons, and quantifies how much worse performance has become.

  3. Propose remediation that addresses both the immediate issue and establishes safeguards to catch similar problems earlier in the future.

Discuss your debugging strategy, the metrics and validation techniques you would employ, and the technical and process improvements you would recommend.

Hints

Hint 1

Start by narrowing down when the degradation began and what changed around that time—new deployments, data source updates, or external events.

Hint 2

Time-series data has special constraints: random data splits leak future information, and features must reflect what was truly available at prediction time.

Hint 3

Aggregate error metrics can mask problems in specific subgroups or forecast horizons; break down performance by segment and time range.