Select AI tests for the harms that could occur

A camera-based cargo screening system reports impressive accuracy, but an inspector finds a damaged battery warning label that the model missed. The airport now has to determine whether a favorable score is relevant to the shipments, conditions, and safety decisions that matter.…

The cargo supervisor at a regional airport has an awkward problem. A new camera-based AI system has been trained to flag packages that might contain improperly prepared lithium batteries. The system is intended to help inspectors choose which shipments need closer examination before loading. During a demonstration, its vendor reports excellent accuracy. On a rainy evening, however, a package with a damaged warning label passes through the camera without an alert. An experienced inspector notices the damage and stops the shipment. The vendor's demonstration did not include packages with wet, partly torn labels, even though those packages sometimes arrive at the airport.

This illustrative incident does not establish that the system is unsafe in every setting. It does show that the vendor's broad performance claim and the airport's actual safety requirement are not the same question. The airport is using the model to support inspection choices, not to grade photographs for a competition. Missing a dangerous shipment may carry a very different consequence from flagging an ordinary package for extra review. The auditor needs testing that exposes those differences and tests the conditions under which the organization intends to rely on the result.

Begin by understanding the decision path. A camera captures a package, a model evaluates what it sees, and an inspection process decides whether a human should examine the item. The system may have no authority to approve a dangerous shipment by itself, but it can still influence what inspectors overlook. If the airport uses its low-risk scores to reduce manual checking, a false negative may remove the opportunity to discover a hazard. If inspectors continue sampling packages independently, that risk may be contained. Testing must therefore cover both the model's classifications and the way its scores change human behavior. Otherwise a good test of one component may be mistaken for evidence of safe operation.

Bare Metal Cyber's AAIA flashcards can be used after the lesson to strengthen recall of terms such as false negative, robustness, bias, and acceptance criterion. The useful exercise is to connect each term to a specific consequence in the airport case. A false negative is not an abstract entry on a scorecard; it may mean a package that needed closer inspection was allowed to proceed. The cards are an independent study aid, not official ISACA questions, and the explanation should come before the memorization.

The vendor says the model is accurate on ninety-eight out of every hundred examples. That statement needs context. What was counted as a correct answer? How many examples were genuinely hazardous? Were the photographs independent of the model's training material? Did the test include packages from the suppliers and routes the airport handles? A system may be very good at recognizing the overwhelmingly common ordinary package while missing an unacceptably large share of the rare cases the inspection program was designed to detect. An auditor would request the underlying breakdown, including hazardous items missed and ordinary items wrongly flagged, rather than accepting the overall percentage.

A false alarm has a cost too. If the system sends too many safe shipments to manual inspection, queues can grow and staff may begin to ignore its warnings. Inspectors may rush through cases or pull staff away from other safety checks. Good testing evaluates the tradeoff between catching more questionable packages and generating a workload the airport cannot manage. The approved threshold should reflect the consequence of a missed hazard, the number of shipments being screened, and available human capacity. Selecting the most impressive-looking percentage after testing is finished invites a decision driven by a favorable statistic instead of a defined safety requirement.

The reference used to score the model must also be dependable. Suppose some training examples were labeled hazardous merely because an inspector had selected them for additional examination. Selection for review does not prove a package contained a prohibited or improperly prepared item. If the test treats that selection as ground truth, the model may appear successful when it is simply repeating older inspection choices. An appropriate evaluation needs a defensible reference, perhaps based on verified documentation and qualified independent inspection. Where experts disagree, the airport should record how the case was resolved. Pretending that every label is unquestionably correct will make the final performance number more precise than the evidence supports.

Now test robustness, which concerns behavior under realistic variation. The airport handles packages of different sizes, colors, and materials. Lighting changes between receiving areas. Labels may be creased, partly covered, or photographed at an angle. Cameras collect blurry images when a conveyor vibrates. Some of these situations are unusual, but they belong to normal operations. The question is whether performance remains acceptable or whether the system recognizes that it cannot provide a reliable assessment. A useful test does not demand perfect recognition under every conceivable condition. It identifies the conditions in which the system should defer, request a new image, or send the package to human inspection.

Robustness testing should include failures in surrounding systems. What happens when the camera loses focus, a supplier changes its label format, the image stream is delayed, or a required field is missing from the shipment record? Does the inspection process continue with a safe fallback, or does it silently treat an unreadable item as low risk? An auditor can follow a deliberately degraded example through the whole process and see whether it triggers the approved response. A model that reports uncertainty correctly is of limited value if the receiving application discards that uncertainty before presenting a decision to the inspector.

Bias in this case is not limited to the protected characteristics of individual people. The camera may produce systematically different errors for certain package types, routes, suppliers, or receiving locations. If it was trained mostly on clean, well-lit packaging from the largest customers, it might miss more defects on irregular packages from smaller operators. That is a performance disparity relevant to the safety purpose. It would be misleading to label every such difference illegal discrimination, but it would be equally misleading to ignore a concentrated error pattern because the overall score remains strong. The airport should investigate the causes and consequences of differences in meaningful operational segments.

The segments themselves need careful design. A supplier with only a handful of test packages may appear to have perfect or terrible results by chance. A route with more experienced inspectors may report different findings because the humans apply checks differently. A change in the camera or the physical loading area may explain a shift attributed to the model. Auditors should look for enough evidence to interpret each comparison, documented uncertainty, and a plan to gather more cases where the results are unstable. The decision may be to restrict the tool in an under-tested setting until stronger evidence is available, rather than declare that a small sample establishes reliable performance.

Bare Metal Cyber's Cyber Wiki article on Model Validation and Testing makes a useful second study stop. It connects independent evaluation data, reproducible testing, segmented results, stress conditions, and approval evidence to a defined operating purpose. In the airport example, that means asking whether a score survives changes in lighting, packaging, and inspection conditions, and whether the airport knows exactly which conditions have actually been tested. A generic result becomes much more useful when its limits can be stated plainly.

Safety testing asks a harder question than whether the system makes a typical prediction correctly. What failure could expose people or aircraft to unacceptable harm, and what should prevent that failure? The airport might test an unreadable hazardous-material label, a mismatch between shipping paperwork and a visible warning, simultaneous camera and record failures, or a rushed shift with unusually high traffic. It should include realistic combinations, because major consequences can emerge when two tolerable weaknesses occur together. A valid test must exercise the mechanism that would contain the hazard, such as independent inspection, a hold on an uncertain package, or stopping reliance on an unavailable sensor.

The difference between testing a model and testing a safety control becomes evident in a deliberately difficult case. The model fails to identify a damaged package, but an independent inspection sample catches it before loading. The model test records a failure; the end-to-end safety test records a successful containment. Both findings belong in the assurance record. A management summary that reports only the safe final outcome would conceal a weakness in the model. A summary that treats the model error as proof that the entire system is uncontrolled would miss the functioning human barrier. Auditors should describe what each part of the evidence actually proves.

Security testing becomes relevant when an attacker could alter what the camera sees or what the system is allowed to decide. A malicious shipper might obscure a warning, manipulate a label, or submit inaccurate digital details. The receiving system might also be vulnerable if an unauthorized party can replace a model or change an inspection threshold. The goal of a test is to find whether realistic hostile actions could bypass controls, not to assume that every unusual package is malicious. A security review needs to identify the attack surface, preserve evidence of the attempted bypass, and verify that detected weaknesses lead to restricted permissions or other workable defenses.

A testing program can look comprehensive while repeatedly measuring the same easy cases. Imagine thousands of high-resolution photographs of standard packages from daytime shifts, with very few wet labels, odd angles, damaged containers, or high-consequence combinations. The large test count gives confidence in ordinary recognition, not in the failure situations that concern the airport. An auditor would look for deliberate coverage of hazard scenarios and operating conditions. The test evidence should make clear which cases were evaluated, which were absent, and whether missing coverage affects the approval decision.

The airport should protect its independent test set from repeated development use. If every model change is tuned against the same supposedly final evaluation examples, performance may improve on that familiar material without becoming more dependable for new shipments. Training, tuning, and independent acceptance testing have different purposes. The audit should examine how data was separated, whether versions were preserved, and whether test examples represent future operations. New incidents and near misses should help create regression tests, but adding them to training and claiming the same cases as independent proof would blur the distinction between learning and verification.

Testing must also observe the human side of the workflow. If an alert arrives without enough evidence, inspectors may ignore it. If alerts arrive in batches too large to handle, the promised review may happen after the shipment has moved on. The airport can simulate a busy shift and observe whether staff receive the right information, know when to stop a package, and can actually exercise that authority. The model might remain technically unchanged while the overall control becomes ineffective because of workload or a changed inspection schedule. The auditor needs to understand who is testing the people-and-system process, not merely whether software tests are automated.

No test can guarantee the absence of all harmful outcomes. Rare failures may not appear in even a carefully built sample. New suppliers, devices, and tactics will arrive after approval. The appropriate conclusion identifies where results are strong, where uncertainty remains, and what conditions must accompany deployment. The airport might approve the tool as an aid to human inspectors while prohibiting its use as the sole clearance mechanism. It might require extra checking under poor image conditions or restrict operation on package types not represented in the evidence. That is a bounded assurance decision, not a declaration of perfection.

Evidence conflicts need a decision owner. Suppose a new model catches more hazardous packages but doubles the number of false alarms during overnight shifts. The safety lead wants the higher detection rate, while operations warns that the inspection queue will become unmanageable. The team should test whether additional staffing, revised thresholds, targeted manual checks, or delayed deployment can resolve the conflict. The auditor can examine whether the tradeoff was assessed before approval, whether the people accepting the remaining risk had proper authority, and whether any restrictions were actually implemented.

There is another distinction between a test failure and a remediation claim. If the vendor updates the image model to handle torn labels, the airport needs evidence that the particular missed case is now handled better and that the change did not degrade performance elsewhere. It should retain the difficult example for future testing, review the update's effect on other package types, and confirm which model version entered the live system. A slide saying the problem was fixed does not reconstruct the change. A repeatable set of results tied to a known version provides a much stronger basis for trusting the correction.

An audit conclusion should therefore be specific. The airport may have credible evidence of ordinary recognition accuracy, but inadequate testing under low light and damaged-label conditions. It may have robust model performance yet weak evidence that inspection staff can act on warnings during peak volume. It may show uneven detection across suppliers that warrants further review without supporting a premature accusation about motive. Each finding identifies a material risk, a limitation of the current evidence, and an action that could reduce uncertainty or harm.

Return to the rainy package that the model missed. The vendor's impressive score does not disappear, but it acquires boundaries. The model is useful for conditions represented by a valid test. Robustness testing challenges those boundaries, segmented testing searches for concentrated weaknesses, and safety testing follows a missed warning into the loading process. The right assurance judgment depends on all of them together, including what qualified inspectors can still prevent when the model is wrong.

Select AI tests for the harms that could occur
Broadcast by