AI Foundations and the Limits of Its Role · Lesson 4

From Framing the Problem to Monitoring Performance

7 min read

Lesson objectives

  • Trace a workflow failure to a lifecycle stage and distinguish routing mistakes from inference errors.
Reading tools

What each stage helps you find

When a rule displays a known date, you can usually see what to test. With a model in the workflow, checking that the software runs is one part of a longer job. You need to identify a problem worth addressing, test the output before people rely on it, and watch what happens after they start using it. The system lifecycle covers that work from the first statement of need to a decision to change or retire the system.

Start by defining the scope. The service owner describes the outcome they want, who needs the service, and what conditions it operates under. A library could aim to get booking questions to the right desk before closing, with ambiguous messages staying with reception for review. The team can measure waiting and count requests that had to be redirected. Closing time matters: a correctly routed message can still wait until the next day if it arrives after staff have gone home.

Document which branches, times and wording your examples cover. Hundreds of summer-event questions may still leave neighborhood branches underrepresented. Narrow the scope or collect missing cases before claiming results for the whole service.

Training, inference, and evaluation

Training changes a model using data or experience. Inference uses a prepared version to suggest a category for one request. Logging the suggestion preserves evidence. Training another version requires a separate procedure and checked examples.

Keep a sample outside training. During evaluation, the team compares model outputs with reference judgments and measures the effect of errors. You can also evaluate the entire workflow. A correct category might appear in one second while the message still takes a day to reach the right desk. The delay could come from the routing table or from the staff procedure. State what each measure covers. A model specialist might calculate how many suggestions were right while the branch supervisor measures the time until a transfer actually finishes.

Deployment puts an identifiable version into use. Record who can see suggestions and what actions they can trigger. Automatic routing carries greater consequences than staff review. Before expanding, establish readiness, version, scope and who can stop it.

Following an indicator back to its cause

Monitoring means looking for changes in the service after deployment. Choose indicators that point to consequences for people. A rise in the number of messages that staff redirect in one branch could signal a problem. Look at actual examples. The way readers ask questions may have changed, a desk may have moved, or a routing record may be wrong. Confirm where the error occurs before replacing a model for every branch.

Fixes can include changing a workflow, clarifying a responsibility, or repairing a data source. If the Loans service moves to a new team, the person responsible for routing can update the destination. If the address is right and the model starts missing new names that readers use for services, adding representative messages to the evaluation becomes important. New training data may be appropriate after that review. The service owner can keep routing manual until the revised system shows that it can make useful suggestions within the new scope.

You can follow the lifecycle aloud. Define the service goal and the people affected. Choose examples and train a model. Test on independent cases before running a bounded trial. When indicators suggest harm, investigate which part of the workflow produced it. If the problem has changed, return to the statement of scope before collecting data for the next attempt.

System lifecycle
  1. Define the scope
  2. select data and train
  3. evaluate independently
  4. deploy within limits
  5. monitor
  6. diagnose the cause

At each handoff, record the evidence that lets you move forward. After a test, you might record the number of trial messages classified correctly and name a request type you postponed because its consequences were still uncertain. The operations lead needs that information before expanding the service. A successful test in one branch tells you something about service at that branch. It gives you little information about a site with different readers unless you include them in the design. Describe the result and the conditions under which you obtained it.

Worked example

Guided practice

Independent practice

Summary

Check your understanding

Lesson summary

The system lifecycle starts by defining a problem and the people affected by it. The team selects suitable examples, adapts a model in training, and evaluates it on independent cases. Using a prepared version to generate an output for a new case is inference. Deployment gives a specific version a defined role in the service. Monitoring looks for a change that affects how the service works. To investigate a failure, compare what the model suggested, where the request landed, and what policy or routing record applied at the time. Find the owner of the faulty step before choosing a fix, and use manual handling if the effect of the fault warrants it. A routing address can be wrong even when the model is right. The next module shows how useful examples, features, and labels make training and testing possible.