Evaluate AI design choices before development accelerates
A county health department wants to inspect more restaurants without hiring a second inspection team. A vendor demonstrates a model that predicts which establishments are most likely to receive a serious violation. Its results look promising, so management proposes using the ranking to choose the next day's visits. The lead inspector asks an awkward question: how does the system know which restaurants are unsafe if some neighborhoods receive fewer inspections in the first place? The vendor has a performance chart. The inspector is asking whether the model was designed to solve the right problem.
Imagine the county is fictional, but the design decision is realistic. Officials want to reduce preventable illness while using limited staff effectively. Predicting the outcome of a past inspection is only one possible way to support that objective. A restaurant that has never been inspected recently may have no confirmed violations because nobody looked. A restaurant that receives frequent scrutiny may accumulate more records even when its underlying risk is similar to another establishment. Designing an AI system begins with separating what the organization hopes to improve from what the available data happens to measure.
The county could start by identifying the actual decision. Inspectors are already required to conduct certain visits, respond to complaints, and follow up on serious findings. The new tool might recommend how to allocate the remaining discretionary inspections. It should not secretly cancel legally required visits or turn a prediction into a finding against a business. That boundary changes the design completely. It tells the developer whose actions the tool supports, how much authority it has, and what evidence an inspector needs before accepting or rejecting a recommendation.
Bare Metal Cyber's flashcard companion for this certification can be helpful for revisiting distinctions after the lesson, especially the difference between a business objective, a measurable target, and an acceptance criterion. Flashcards should reinforce the reasoning rather than replace it. In the county example, remembering the terms is less valuable than being able to explain why accurately predicting past citations might be a poor substitute for identifying unsafe conditions that were never observed.
One possible design would rank restaurants using complaint history, previous inspections, business type, and time since the last visit. A simpler alternative might combine established risk categories with rotation rules, ensuring that every eligible establishment receives some coverage. The county should compare those options before treating machine learning as the inevitable answer. A complex system can be justified if it improves a meaningful outcome under acceptable constraints. But complexity also introduces data dependencies, review obligations, and failure modes. An auditor can ask what baseline was examined and why the chosen design was expected to improve on it.
Now consider the target used for training. The team labels a restaurant as high risk when a past inspector recorded a serious violation. That is a legitimate historical record, but it is not a complete description of underlying safety. Different inspectors may interpret borderline conditions differently. Some restaurants were inspected following specific complaints while others were selected routinely. The model may learn which establishments attract complaints or inspections instead of which conditions create actual hazards. This is a problem of measurement and selection, not necessarily a defect in the learning algorithm.
A stronger design discussion would involve inspectors, data stewards, public-health experts, business representatives where appropriate, and the people who manage appeals and enforcement. They may identify cases the historical dataset misses: seasonal operations, kitchens that change owners, new businesses without a long record, and areas where residents have difficulty filing complaints. They might also identify information that must not be used. A convenient feature can reveal or closely approximate a sensitive characteristic even when the application never receives that characteristic explicitly. The design needs to establish relevance, permissible use, and potential harm before such features reach the model.
The county should also distinguish different errors. Sending an inspector to a relatively safe restaurant consumes scarce capacity. Failing to visit a genuinely unsafe establishment may leave a dangerous condition in place. The consequences are unequal, but more aggressive targeting can bring its own costs: a cluster of frequent inspections may burden a community, undermine confidence, or draw resources away from required coverage elsewhere. No single accuracy score settles those competing effects. Decision makers need to describe which errors are most costly, for whom, and under which conditions a different operating rule would be justified.
The ranking cannot be allowed to determine all inspections. One design option reserves capacity for required inspections, some for complaints, some for random or rotating coverage, and some for risk-based recommendations. That arrangement supports public-health work while helping the county learn about places the prediction system otherwise ignores. The exact allocation is a local policy decision based on law, capacity, and risk. An auditor should not invent a universal percentage. Instead, the review asks whether the design preserves necessary coverage and produces evidence that its chosen balance serves the stated objective.
This is also where a data scientist's definition of success needs to meet an inspector's definition. Suppose the model correctly identifies many past serious citations. That result may be encouraging during development. But the operational benefit depends on whether inspecting those restaurants changes hazardous conditions, whether missed restaurants remain reachable, and whether the system supports timely correction rather than simply generating more penalties. A design that maximizes citations can create incentives different from a program designed to prevent illness. The organization should notice that conflict before asking developers to optimize it.
The user experience is part of the design. Inspectors might receive a recommended visit order with the relevant basis for the ranking, a warning about missing data, and a way to record why they chose another location. If the application displays only a number, users may treat it as a judgment without understanding its limitations. If it shows too much personal information from complaint records, the system may expose details unnecessary for scheduling. The interface must support a defensible professional decision while restricting information to what the authorized user needs.
Bare Metal Cyber's Cyber Wiki article on AI problem framing is a useful companion at this point. It connects the desired outcome to the actual decision, the population affected, the measure of success, and the non-AI alternatives. You can use that structure later to challenge the design of another system before code or training begins. In the county's situation, the crucial question is whether the chosen target, coverage rules, and human decision fit the public-health objective together.
There is a further design choice about what happens when the model is uncertain. A restaurant may be new, have no recent inspection, or fall outside the kinds of businesses represented in training. The model could still produce a precise-looking risk score. The safer design may flag that uncertainty and route the case through established inspection rules rather than treating the score as equally reliable. Abstaining from a prediction or requiring additional human review can be the intended behavior of a well-designed system. It should not be mistaken automatically for a technical failure.
Consider the information available at the moment a schedule is created. If a model was trained using a violation discovered during a future inspection, it may appear unusually good at forecasting that same inspection. The organization must test whether every input would actually have been available before the visit was selected. A seemingly minor timing error can invalidate an entire performance claim. The design should identify the decision point and require data preparation and evaluation to respect it. That requirement belongs in the design, before someone discovers the leakage in production.
The county also needs explicit boundaries on what the recommendation may trigger. Choosing a visit is different from issuing a citation, suspending a license, or publishing an allegation. Those later actions require their own evidence and authority. If a product team proposes adding automatic enforcement because the model seems confident, that is a change in purpose and consequence. It should trigger a fresh review, not merely a software enhancement request. Designing the decision boundary protects people and businesses from the quiet expansion of a limited advisory tool into something with much greater power.
Acceptance criteria should be agreed before the team knows whether its preferred model passes. The county might require meaningful performance against a non-AI baseline, acceptable coverage across restaurant types and neighborhoods, documented handling of missing records, and no reduction in legally required visits. The test plan should examine situations that are likely to be rare yet consequential. Those criteria are not a promise that every unsafe establishment will be found. They are the conditions under which management can reasonably judge whether the proposed tool improves the program without introducing unacceptable new harms.
Designers should think about how their own measurements may change when the tool starts operating. If recommended restaurants are inspected more often, the county will learn more about them and less about places the system rarely selects. Retraining on that feedback without correction could amplify the original selection pattern. The system may then cite its own accumulated evidence as proof that the same restaurants deserve yet more attention. This is a feedback loop created by the deployment process. Maintaining some independent inspection coverage can provide information needed to detect that kind of self-reinforcement.
Environmental assumptions need scrutiny too. The county may have enough inspectors to respond to the model's urgent recommendations on weekdays but not during holiday periods. A restaurant may change ownership or operating style without updating its registration promptly. Some complaint channels may be inaccessible to people who do not use online forms. Design documents should identify which assumptions could cause harm when they stop holding. The project can then define monitoring or escalation conditions instead of discovering those dependencies only after an inspection is missed.
Vendor involvement does not eliminate design accountability. A supplier may provide a model trained on records from several jurisdictions, each with different enforcement standards, inspection practices, and data rights. The county should establish what it can validate locally, which information the vendor will disclose, whether there are restrictions on use, and what happens when the provider updates the service. A buyer cannot reasonably assert that a model is appropriate for its jurisdiction merely because a vendor describes it as accurate elsewhere. The local decision process remains the customer's responsibility.
Now imagine a design meeting where the team proposes improving the model by adding detailed customer complaints, including the names and phone numbers of people who reported a problem. Those identifiers might make some records easier to match, but they are not necessarily needed for deciding which restaurant to visit. The design review should challenge necessity, access, retention, and exposure before the information enters the application. Privacy controls added after unrestricted data has been copied into training or logs may not undo the original disclosure. Purpose limitation is easier to enforce when it shapes data selection from the start.
A well-run design review preserves decisions and rejected options. It might record that the county chose a limited ranking assistant rather than automatic enforcement; rejected a feature with questionable relevance; retained a rotating inspection component; and required inspectors to see uncertainty and override recommendations. The reasons should be concrete enough that a future developer or auditor can understand them. If conditions change, the team can see which assumption or acceptance criterion needs reconsideration. Without that record, later changes may accidentally remove safeguards that nobody remembers were deliberate.
Auditors can test a design without pretending to be the people who wrote the model. Select the program objective and follow it to the proposed decision, the training target, the available inputs, the operating rules, and the acceptance tests. Ask what the current process achieves and what new failures the design could introduce. Interview people who actually use the system and those who receive its consequences. A diagram or presentation may help an engineering team, but the audit conclusion should rest on whether the decisions and constraints are supported by evidence.
At the county health department, the important outcome is a better inspection program, not a more impressive prediction service. The revised design may end up using machine learning, a simpler prioritization method, or a combination of both. What justifies the choice is a clear link between public-health goals, defensible data, bounded authority, reliable testing, and practical action when the model is uncertain or wrong. That link must be established before momentum turns a questionable objective into a system everyone assumes was inevitable.