Home › Micro Degree Best Practices › AI Solution Development
Best Practice ManualAI Solution Development
This manual explains how practitioners scope, build, test, deploy and monitor AI solutions that address a real business need in production use.
01Purpose and scope
- This manual supports the course AI Solution Development. It is written as a working reference for people who build, integrate or own AI-enabled systems, including data scientists, machine learning engineers, software developers, product owners and technical leads.
- The scope covers the path from an identified business problem to a running solution that is measured after release. It includes problem framing, data preparation, model selection, evaluation, integration with existing software, deployment, monitoring and retirement. It does not cover deep research into new model architectures, and it does not replace the specialized review your organization requires for medical, legal, financial or safety-critical decisions.
- Practice changes a lot by context. A small internal tool that ranks support tickets has different stakes than a system that recommends credit limits or flags clinical images. Where rules depend on jurisdiction, such as privacy or automated decision making, check the current authoritative source for your location and involve the people who are accountable for compliance.
02Core principles
- Start with the decision or task the solution will change. A model is only useful if someone acts differently because of its output. Write down who uses the output, what they do with it, and what happens when the output is wrong.
- Treat data as the main design constraint. Most delays in AI solution work come from data access, labeling quality, definitions that differ between systems, and gaps in historical records. Confirm early that the data you need exists, can be used for this purpose, and will still be available after launch.
- Prefer the simplest approach that meets the agreed performance target. A rules engine, a logistic regression or a gradient boosted tree may be easier to explain, test and maintain than a large neural network. Complexity should be justified by measured gains and by the operational cost it adds.
- Design for failure. Assume the model will be wrong in some cases, that inputs will drift, and that upstream systems will change without notice. Plan fallback behavior, human review paths and clear ownership before the first release.
03Planning and preparation
- Define the problem in one page. Include the business objective, the user group, the decision point, the current process and its cost or error rate, and the success condition. Ask the sponsor to name the owner who will accept the solution and fund its operation after launch.
- Inventory data sources. For each source, record the owner, refresh frequency, access method, known quality issues, personal or sensitive data content, and retention rules. Request access in writing and confirm that the intended use is permitted by the data owner and by privacy or security policy.
- Set baseline and target metrics before modeling. Measure the current process on a held out period so that any claimed improvement has a comparison point. Agree on the primary metric, guardrail metrics such as false positive rate for specific groups, and the minimum acceptable performance for launch.
- Choose the delivery environment and tools. Decide where training will run, how code and data versions will be tracked, how models will be packaged, and what the serving infrastructure will look like. Confirm that the team has the skills to operate what it builds. A solution that only one person can maintain is a risk to the business.
- Plan the staffing and review cadence. Name the product owner, data lead, engineering lead, domain expert and risk reviewer. Schedule decision points at problem sign off, data readiness, offline evaluation, pilot readiness and production approval.
04Recommended workflow
-
1
: Frame the problem. Write the problem statement, the decision being supported, the users, the success metrics and the constraints. Get written agreement from the sponsor and the domain expert. If the problem cannot be stated in terms of a measurable outcome, pause and clarify before moving on.
-
2
: Assess data readiness. Profile the candidate datasets for completeness, label reliability, bias across relevant groups, and timing. Check that the features you plan to use will be available at prediction time. Leakage from future information is one of the most common causes of inflated results.
-
3
: Build a baseline. Create a simple model or a rules based benchmark. This baseline tells you whether machine learning adds value and gives the team a reference for every later experiment. Record the code, data snapshot and parameters used.
-
4
: Develop and tune candidate models. Split data into training, validation and test sets using a method that matches the real world, such as a time based split for forecasting or a grouped split when records from the same customer must not appear in both sets. Log every experiment and keep the test set untouched until the final comparison.
-
5
: Evaluate against business and risk criteria. Review performance overall and for key subgroups, calibration, error cases, latency and resource cost. Ask the domain expert to review a sample of errors. Decide whether the model meets the launch threshold or whether the problem needs more data or a different approach.
-
6
: Integrate and pilot. Package the model behind an API or batch job with input validation, versioning and logging. Run a shadow deployment or limited pilot where outputs are compared with the current process without driving decisions. Measure operational behavior such as timeouts, missing features and volume spikes.
-
7
: Deploy, monitor and hand over. Release to production with a rollback plan, a named on call owner and dashboards for input drift, output distribution, business metrics and error reports. Hand over documentation, runbooks and retraining procedures to the team that will operate the system.
05Quality checks, risk controls and compliance
- Quality checks should run at each stage, not only before release. Data checks cover schema, ranges, duplicates and label agreement. Model checks cover reproducibility, leakage tests, sensitivity to small input changes and performance on held out slices. Software checks cover unit tests for preprocessing, integration tests for the serving path and load tests for expected peak volume.
- Risk controls depend on the impact of the decision. For low stakes tasks such as sorting internal documents, a sampling review and a feedback button may be enough. For decisions that affect eligibility, employment, health or safety, add formal approval gates, documented justification for model choices, human override, appeal paths for affected people and periodic independent review.
- Privacy and security controls include minimizing personal data, restricting access by role, encrypting data at rest and in transit, and reviewing third party model or API terms before sending data outside the organization. Some jurisdictions and sectors impose requirements on automated decisions, explanations or data protection impact assessments. Confirm the current requirements with legal, compliance and your privacy office rather than relying on this manual.
- Guidance from established frameworks can help structure controls. The NIST AI Risk Management Framework is a widely used reference for identifying and managing AI risks, and organizations often map their practices to it. Use such frameworks as structure, then adapt them to your own policies and regulatory obligations.
- This manual does not replace qualified professional judgment, approved internal procedures or required authorization. In regulated or high risk fields, the solution owner must obtain the sign off that governance bodies require before deployment.
06Collaboration and documentation
- Keep a single source of truth for the project. A short model card or solution record should state the intended use, excluded uses, training data sources and dates covered by a relative description rather than a calendar entry, evaluation results, known limitations, owners, approvals and monitoring thresholds. Update it whenever the model or its inputs change.
- Hold a regular review with the domain expert. Engineers often find that a feature they consider noise is a strong signal to the people who understand the process, and domain experts often reveal labeling rules that were never written down. Record each agreed definition in a shared glossary.
- Coordinate with the teams that own upstream data and downstream systems. Change requests to source tables, field meanings or user interfaces can silently break a model. Establish a notification path and an owner for each dependency.
- Document decisions as they are made. A short decision log with the date of the decision removed, the options considered, the reason for the choice and the person who approved it is far more useful later than a reconstructed history. Store code, configuration and data references in version control or a registry so that any released version can be reproduced.
07Measures and continuous improvement
- Track three groups of measures. Model measures include accuracy, precision, recall, calibration and performance across groups. Operational measures include latency, availability, error rate and cost per prediction. Business measures include the outcome the solution was meant to change, such as handling time, approval accuracy or detected defects. Report all three together so that a model that scores well but fails to change the outcome is visible.
- Set drift and quality alerts with thresholds agreed in advance. Input drift can be detected by comparing feature distributions with the training period. Performance decay usually requires delayed ground truth, so plan for how labels will be collected and how long they will take to arrive.
- Define a retraining policy. Some solutions retrain on a fixed schedule, others only when monitoring shows a breach. Each retraining should pass the same evaluation gates as the original release and should be compared with the current production model before replacement.
- Review the solution on a fixed cadence. At each review, examine the metric trends, incident log, user feedback and open risks. Decide whether to continue, improve, narrow the scope or retire the solution. Retirement needs its own plan for data retention, user communication and dependent system changes.
08Common mistakes and how to prevent them
- Starting with a model instead of a decision. Teams sometimes build an accurate predictor that no one is positioned to act on. Prevent this by requiring a named decision owner and a written description of the action that follows each prediction.
- Evaluating on data that is too easy. Random splits on time series or on records from the same customer inflate results. Prevent this with splits that mirror the production setting, and check that the test set was never used for tuning.
- Leakage through features. A field populated after the event being predicted can make a model look excellent in testing and useless in production. Prevent this by listing the timestamp of every feature and confirming it is available at prediction time.
- Skipping the baseline. Without a simple comparison, teams cannot tell whether complexity is justified. Prevent this by building and recording a baseline before any advanced modeling.
- Launching without monitoring or an owner. Models degrade quietly. Prevent this by making monitoring, alert routing and retraining responsibilities part of the release criteria rather than follow up work.
- Ignoring the users of the output. A model that produces scores without explanation, context or a clear next step may be ignored or misused. Prevent this by testing the interface and the decision workflow with real users during the pilot.
09Practical checklist
- Write the problem statement with the decision, the user, the success metric and the named owner.
- Confirm that data sources are accessible, permitted for this use, and documented with owners and refresh schedules.
- Verify that every feature will be available at prediction time and that no future information is included.
- Record a baseline and agree on launch thresholds for primary, guardrail and operational measures.
- Split data in a way that matches production, and keep the final test set untouched until comparison.
- Log experiments, code versions, data snapshots and parameters so that results can be reproduced.
- Review errors with the domain expert and check performance for relevant subgroups.
- Obtain privacy, security, legal and risk sign off where the impact of the decision requires it.
- Run a shadow or pilot deployment and measure latency, failure modes and user response before full release.
- Confirm monitoring dashboards, alert thresholds, a rollback plan and a retraining procedure before go live.
- Update the solution record after every model, data or workflow change and schedule the next review.
★Learning sources
- Micro Degree: AI Solution Development
- Micro Degree: Data Analytics Applications
- Micro Degree: Azure Cloud Fundamentals
- Micro Degree: Google Cloud Platform Basics
?Frequently asked questions
How do I choose between a simple model and a more complex one?
Start with a baseline and compare each candidate against it on the same held out data and the same business metric. Choose the simpler model unless the complex one delivers a gain that matters to the decision and that the team can monitor and maintain. Record the reasoning so that later reviewers understand the trade-off.
What should a small team do if it lacks a formal risk review process?
Create a lightweight review with the product owner, a domain expert and someone responsible for privacy or security, and make it a gate before launch. Document what data was used, what the solution may and may not be used for, and who can stop it. Involve your organization's compliance or legal contacts for anything that affects individuals.
How often should a deployed model be retrained?
There is no universal schedule, so base the decision on monitoring evidence, the rate of change in the underlying process, and the time it takes to collect ground truth labels. Many teams review performance on a fixed cadence and retrain only when a threshold is breached or the business process changes. Any retrained model should pass the same evaluation gates as the original.
This manual explains practice in general terms. It does not replace qualified professional judgment, approved procedures or required authorization.
Technical Best Practices
China, India, United States, Indonesia, Pakistan, Nigeria, Brazil, Bangladesh, Russia, Japan, Mexico, Philippines, Vietnam, Egypt, Turkey, Germany, United Kingdom, France, Italy, Canada, South Korea, Australia, Spain