7 min read · AI for business · AI technology and models

A factory built an image inspection system for its parts and it worked well. Several months later the raw material supplier changed, the lighting on the line changed, and the results started to drift. But nobody knew which model version was running, which dataset it was trained on, or how to roll back to an older version. This is the problem that appears after the first model works, and it is what MLOps is designed to handle.
What is MLOps
MLOps (the practice of running machine learning systems so they can be repeated, audited and updated, building on DevOps) tries to bring model building and system operations together. Google Cloud describes it this way, and stresses automation and monitoring across the whole model lifecycle.
It differs from ordinary software in that a model's behavior does not come from code alone. It is also learned from data. Microsoft notes that changed data, degraded data quality or changed user behavior can make a model go stale.
Step 1: Version everything involved
To roll back, you first have to know what the old version was. So record all four of the following.
- Data: the set of images or tables used for training, the set held out for testing, and the date the data was cut off
- Code: the training script and the data preparation steps used at that time
- Model: each model file, and the starting settings used for training
- Environment: library versions and the machine it ran on
Tools such as MLflow have a model registry that numbers each version when you save a model under the same name, and links each version back to the training run that produced it. Google Cloud also states that each retraining produces a new version, and that a pointer to the previous version is kept for rollback or comparison.
Step 2: Record experiment results and approval criteria
Before changing versions, agree on what results count as approval. Do not look at the results first and then find reasons.
- The test set must be the same for every version, and must not mix with the training data
- The numbers that must pass, for example catching at least a set share of defects and raising no more than a set share of false alarms
- The approver: who signs off that it passed, and where that is recorded
- The reason this version was chosen, if the new version is better in one respect but worse in another
Step 3: Monitor after going live
Monitoring should start the moment the model goes live. Microsoft recommends this, and recommends using several signals together, because each one sees a different angle.
- Input data change (data drift): the distribution of incoming data no longer matches the data used for training, for example images get darker after a lamp is replaced
- Change in the model's answers (prediction drift): the share of each result the model returns shifts noticeably from before
- Data quality: empty values, wrong data types, or values outside the range seen before
- Results against real answers: possible once a person has checked and given the correct answer
Amazon SageMaker Model Monitor groups things in a similar way: data quality, model quality and bias. One point from Microsoft's documentation is that alert thresholds must be set well. If alerts fire too often, people stop looking. Have someone who understands the model help set them.
Besides the quality of the answers, also watch response time (latency), request volume and system errors.
Step 4: Retrain, test the new version and prepare to roll back
Google Cloud gives several examples of reasons to retrain: on a schedule, when new data arrives, when results drop clearly, or when the data changes a lot. If the structure of the incoming data is wrong, for example a field is missing, it recommends stopping to check first and not retraining right away.
- Train the new version, then measure it on the same test set and against the same criteria
- If possible, run the new version in parallel without affecting real output, and compare it with the version in use
- Release it to a small share of real traffic first
- Keep the previous version ready to use, so you can switch back if the results fail
A model registry that uses an alias to mark which version is the “production version” makes switching back easier. But always check that the systems calling the model really work with the version you roll back to.
A hypothetical example: an image inspection system has a test set of 200 images, split into 40 defect images and 160 normal images. Version v3 catches 30 of 40 defects (75%) and raises a false alarm on 4 of 160 normal images (2.5%). Version v4 catches 34 of 40 (85%) but raises a false alarm on 12 of 160 (7.5%). If the agreed criterion is no more than 5% false alarms, v4 fails even though it catches more defects. So the registry records that v3 stays in use, with the reason and the approver. All the numbers are hypothetical so that you can check the arithmetic.
Checklist before you start
- Do you know which model version is in use now and which dataset it was trained on?
- Do you have a test set that is separate from the training data and kept to compare every version?
- Did you set the approval criteria as numbers before testing started?
- Does someone review the metrics regularly after going live, and know what to do when an alert fires?
- Have you kept the previous version and tried switching back?
- Who owns the model, who approves a version change, and who takes the call when results look wrong?
Who it suits, and its limits
The advantage is that work can be handed over. If the person looking after the model changes, the new person still knows where the model came from and can repeat the work. The limit is that MLOps tools do not make a model better on their own. If the data is poor or has no owner, the problem remains even after you install every tool.
A small project with one model that rarely changes does not need a heavy system. A table that records versions, test results and the name of the person responsible is enough to start. A project with several models or several production lines gets more value from tooling.
Talk to BT San about looking after a model after launch
If you have a model or are about to have one, prepare a list of the versions in use, sample data that has been anonymized, the test results you have, and the name of the person responsible. Then talk to the BT San team about setting up a version registry and a monitoring plan that fit your project.
References
- Google Cloud: MLOps, continuous delivery and automation pipelines in machine learning (accessed 2026-11-20)
- Microsoft Learn: Model monitoring in production (Azure Machine Learning) (accessed 2026-11-20)
- AWS: Data and model quality monitoring with Amazon SageMaker Model Monitor (accessed 2026-11-20)
- MLflow: Model Registry (accessed 2026-11-20)




