Novomorphic

Article

Safe adaptive intelligence

The layer suggests. The controller decides.

9 min read

The supplementary-layer pattern: why an adaptive system that only suggests is the only version a safety-conscious integrator can adopt.

Article by Novomorphic engineeringReviewed by Technical review, Novomorphic

VERIFICATIONWeight by levelFewer tests higher up, each one carrying more weight.One test, sized by weightWEIGHT PER TESTLEVELTESTSWHERE IT RUNSFieldPartner site, real conditionsON SITESystemHardware in the loopON THE RIGSubsystemFPGA bench, instrumentedON THE BENCHBlockSimulation and formal checksIN SIMULATIONMany small checks at the base, few heavy tests at the top
Fig. 1: Verification pyramid

Summary

The adaptive layer suggests. The primary controller decides. The boundary is the design

Integrators of industrial machinery are being offered adaptive and learned functions that promise better efficiency, earlier fault detection and less commissioning. The functional safety standards they work to were not written with those functions in mind, and the regulations now arriving treat software that changes its own behaviour with explicit suspicion.

There is a pattern that resolves this, and it is not new. Put the adaptive function in a supplementary layer that observes the machine and proposes changes. Keep the existing, certified controller in authority, and have it accept only proposals that fall within rules fixed at design time. The adaptive layer can then be as clever as it likes, because nothing it does can take the machine outside the envelope the safety argument already covers. This article explains the pattern, where it comes from, what the standards say, and what has to be tested.

The standards position

Functional safety standards assume the controller is deterministic and fully specified

IEC 61508 is the base standard for the functional safety of electrical, electronic and programmable electronic systems. ISO 13849-1 and IEC 62061 apply it to machinery. All three rest on an argument that the safety function behaves as specified under every input, and that the specification is complete enough to test against. A function whose behaviour depends on what it has learned since deployment breaks that argument at the root: there is no fixed specification to verify.

The standards community has begun to say so in writing. ISO/IEC TR 5469, published in January 2024, surveys the use of AI inside safety-related functions and sets out the properties a safety argument would need, including the use of non-AI safety mechanisms to bound an AI-controlled system. It is a technical report, not a normative standard, and its most practical conclusion is architectural: where the AI cannot itself be assured, assure the boundary around it.

Regulation is moving the same way. The EU Machinery Regulation 2023/1230, which applies from January 2027, adds safety components with fully or partially self-evolving behaviour to the high-risk list in Annex I, Part A, requiring third-party conformity assessment. The EU AI Act, Regulation 2024/1689, classifies an AI system as high-risk under Article 6(1) when it is a safety component of a product covered by harmonisation legislation that requires third-party assessment, and machinery is on that list. An integrator who puts a learned function in the safety path is signing up for both.

The pattern

Simplex, run-time assurance and the supplementary layer are one idea

Lui Sha published the Simplex architecture in 2001 under the title "Using Simplicity to Control Complexity". The idea is to pair a complex, high-performance controller with a simple, verified one and a decision module that hands control to the simple controller whenever the complex one is about to leave a safe region. The complex controller can be untrusted, because the safety argument is carried entirely by the simple controller and the switch.

Aviation adopted the same idea as run-time assurance. ASTM F3269, first published in 2017 and revised in 2021, is a standard practice for bounding the behaviour of aircraft systems that contain complex functions, including machine learning, by wrapping them in a monitor and a recovery function that are themselves assured.

The supplementary layer we use in industrial control is the same pattern with the roles made explicit for an integrator. The existing primary controller is the simple, assured component. The adaptive layer is the complex one. The difference from Simplex is that the adaptive layer never holds authority to begin with: it proposes, and the primary controller applies only what falls inside limits fixed at design time. There is no switch to get wrong.

CHAIN OF TRUSTEach step proves the nextNothing unsigned executes. Trust starts in hardware and climbs.IN SILICONADDRESSMEMORY MAPSIGNATUREREFUSEDHighLowApplicationRuns in its own compartmentSigned, checkedFirmwareVerifies the applicationSigned, checkedBootloaderVerifies the firmwareSigned, checkedBoot ROMVerifies the loaderImmutable, in siliconRoot of trustFused key, on the dieUnsignedNo signatureREJECTEDMemory regionSignature checkedFused keyVerificationRejected
Fig. 2: Secure boot chain. Trust runs one way. The adaptive layer reads the sensors and writes suggestions. The primary controller reads suggestions and decides. Nothing crosses the boundary in the other direction.

Design rules

Six rules that keep the safety argument intact

  • The primary controller owns every actuatorThe adaptive layer has no path to a gate driver, a contactor or a valve. Its only output is a message to the primary controller.

  • Every suggestion is bounded at design timeRate limits, range limits and plausibility checks on each suggested parameter are fixed in the primary controller and documented in the safety case. A suggestion outside them is discarded and logged.

  • Silence is safeIf the adaptive layer stops, stalls, or produces nothing credible, the primary controller continues with its last accepted parameters or its commissioning defaults. The machine never depends on the layer being present.

  • The boundary is enforced in hardware where it can beOn an FPGA platform the two functions sit in separate regions with a defined interface; on a processor they sit in separate compartments. Memory-safe partitioning, of the kind CHERI provides, makes the separation a property of the hardware rather than of the code review.

  • The adaptive layer is updatable, the boundary is notModels and estimators will be improved over the life of the machine. The rules that bound their effect are part of the certified configuration and change only through the same process as any safety-related change.

  • Everything the layer does is recordedSuggestions made, accepted and rejected, with timestamps and the state that prompted them. That log is how the layer is validated in the field and how an incident is investigated.

Security is part of the same argument

A suggestion interface is an attack surface, so treat it as one

An adaptive layer is usually the most connected part of the controller. It takes in sensor data, it may take in context from elsewhere, and it is the part most likely to be updated. That makes its interface to the primary controller a security boundary as well as a safety one.

IEC 62443 gives the vocabulary: zones, conduits and security levels. The primary controller is a zone with the highest requirement; the adaptive layer is a zone with a lower one; the suggestion interface is the conduit between them, and it carries only what the conduit specification allows. The same range and rate limits that protect the safety argument against a faulty model protect it against a compromised one. Done properly, the two arguments are one piece of work.

What has to be tested

Test the boundary harder than the model

  1. Boundary enforcement

    Inject out-of-range, out-of-rate and malformed suggestions and confirm every one is rejected, logged, and has no effect on the actuators. This is the core of the safety evidence and it is cheap to make exhaustive.

  2. Absence and failure

    Stop the adaptive layer mid-operation, corrupt its outputs, starve it of sensor data. The primary controller must behave exactly as it did before the layer existed.

  3. Timing

    Measure the worst case, not the average: the time from sensor sample to accepted suggestion, under full load and under fault. A suggestion that arrives late is a suggestion about a machine that no longer exists.

  4. Noisy and incomplete data

    Drop, saturate and drift the inputs. The layer should degrade to silence, never to confident nonsense.

  5. Hardware in the loop

    Run the real controller and real adaptive layer against a real-time model of the machine before the machine. Then the dynamometer or the plant, with the test conditions recorded alongside the results.

What this does not give you

A bounded layer cannot do everything an unbounded one could

The price of the pattern is capability. An adaptive layer that may only move parameters within pre-agreed limits cannot discover a radically better control law, and cannot respond to a condition the designers did not anticipate well enough to bound. That is the point, and it is also a limitation worth stating plainly.

The pattern also does not remove the need to assure the adaptive layer at all. It lowers the bar from "prove this learned function is safe" to "prove this learned function is useful", which is a much easier question, but still a real one that needs its own evidence.

Novomorphic applies this architecture in its power conversion and motor control work, and designs the boundary and its tests before the adaptive layer itself.

Next step

Adding intelligence to a certified controller?

Talk to an engineer

Start a conversation

Bring the control architecture and the safety case. We will tell you where the boundary should sit and what evidence it will need.

The capability

Security, safety and lifecycle assurance

Architectures that separate critical behaviour from less-trusted functions.

Sources (9)Every external fact above is cited here so it can be checked rather than believed.

Keep reading

More on Regulated deployment

All insights

Talk to the engineer, not the account manager

Tell us what you are building. We will put you in front of whoever actually knows the answer.

What happens next

1

An engineer reads it

Not a form-handler. Whoever owns the relevant discipline.

2

We come back with a technical view

Including if we think you do not need us.

3

If it looks like a fit, a short technical call

Then, if it is useful, a scoped workshop, feasibility study or evaluation.