§ Lessons

Lessons.

Fourteen working rules follow from the chapters, for anyone who builds, buys, installs, regulates or writes about software and AI in medical devices. Each names the chapters that explain why it holds.

  1. Write the intended use before anything else. The claim made for the software decides whether it is a device, sets its class in each market and fixes what the evidence must show. A new claim or a new user can change all three without a line of code changing (Chapters 1 and 26).
  2. Look for the fault and the input that reaches it, not a wear-out rate. Software does not age. Every fault was either built in on the day the software shipped or arrived with an update, and a fault causes a failure only when some input reaches it (Chapter 2).
  3. Build confidence from the process, because testing alone cannot supply it. A program has more paths than any test campaign can exercise, and very low failure rates cannot be demonstrated by running the software. The evidence is therefore requirements derived from risk and traced to tests, an architecture that keeps the dangerous part small, and rigor scaled to harm (Chapters 3 to 5 and 7).
  4. Account for every component someone else wrote. Record each one's exact version, published anomalies, support status and replacement plan, generate the SBOM from the build, and treat pretrained models and public datasets as components too (Chapter 6).
  5. Let every sprint and every pipeline run leave its records. IEC 62304 prescribes activities and records, not phases, so agile increments and automated builds can produce its evidence, provided the team's definition of done includes verification and a person still decides each release (Chapters 8 and 9).
  6. Keep the data that judges a model away from the people and data that built it. Separate test sets by patient and, where possible, by site, sequester them from developers, and watch for the leaks through which a model learns cues of the hospital instead of signs of the disease (Chapters 10 and 11).
  7. Ask who decided the right answer and where a positive result begins. The reference standard limits what measured accuracy can mean. The operating point and the endpoints must be fixed before the test and the results reported with their intervals; a claim must also state how it counted declined cases and give the results under the other ways of counting them (Chapters 12, 13 and 17).
  8. Test where the device will be used, and report by subgroup. Accuracy is a measurement on particular patients, equipment and settings. It changes when any of them changes, and an average can hide a group the model fails (Chapters 14 and 15).
  9. Measure the reader and the model together when a clinician uses the output. An assistant that is usually right can still make a reader worse. The evidence for an assistive device is therefore the performance of the reader and the model together, measured with attention to automation bias (Chapter 16).
  10. Treat installation as part of the evidence. Test every interface with local data, confirm that local inputs fall inside the specification, run the device silently on local patients before anyone relies on it, and write down who notifies whom of changes on either side (Chapters 18 and 19).
  11. Watch inputs and output rates from the first day, and check accuracy on a schedule. A shift in what the device receives and returns can show within days. A change in accuracy is confirmed only by reference readings of sampled negatives and by matched outcomes, and named people must act on agreed limits (Chapter 20).
  12. Agree in advance what a model may change, and fix the tests each version must pass. A change control plan agreed in advance is the main way to make retraining routine. The FDA authorizes such plans, India offers an optional algorithm change protocol, and from August 2028 the EU's AI Act excludes predetermined changes from substantial modification. Outside such a plan, every regulator treats retraining as a design change, not as maintenance (Chapters 21 and 28).
  13. Design the device on the assumption that it will be attacked and will need patches. Authenticate every interface, sign the code and keep a fallback image, build the threat model from the architecture, search the SBOM whenever a vulnerability is published, and publish a way to report vulnerabilities (Chapters 22 to 24).
  14. Read the record, and date every status. Makers' counts and claims to be first remain claims until a regulator's database supports them. Every rule, guidance and standard in this field should be quoted with the date of its status, because the clauses change faster than the mechanism beneath them (Chapters 25 to 29).
Created with Claude (Anthropic).
Educational reference material, not engineering, regulatory or clinical advice. Product and company names referenced are the property of their respective owners.