↓ Skip to main content

AI in Medicine Part II: Things to consider before you implement ML

·723 words·4 mins
AI in Medicine - This article is part of a series.
Part 2: This Article

Before you begin, you must visualize the end: What exactly do you want your output to be? Is it a graph, a specific number, a trend line, bounding boxes on an image, or a specific frame in a video?

This is the most important question you can ask. Having a clear picture of the final result will guide your entire development process and save you a massive amount of hassle later on.

The second vital question is: What level of privacy is required? In medical ML, how you handle data, and who has access to it, changes everything from your hardware choice to your legal compliance.

The third vital component is BUDGET. You must distinguish between your fixed costs (initial setup) and your variable costs (day-to-day operations). A crucial rule of thumb in ML development is to prepare for these costs to potentially triple.

Unforeseen issues often arise: hardware prices can fluctuate, cloud consumption often exceeds initial estimates, and electricity bills can spike significantly during heavy model training. Establishing this budget early is critical because it dictates your entire strategy, deciding whether you should use a “ready-made” ML service or build your own infrastructure from scratch.

The fourth point, Data Interpretation and Security Infrastructure.

It is vital to remember that whether you use a standard ML model or a Large Language Model (LLM), the raw output is almost always a set of numbers or probabilities. You must design a way to interpret these numbers into the format you visualized in Step 1. Without a “translation” layer, the data won’t be useful to a medical professional.

Furthermore, Security and Anonymization must be part of your initial blueprint. Whether you choose a cloud-based or local setup, you need to decide on your security architecture during the planning phase:

  • Access Control: Will you use ready-made security suites, or build your own?
  • Authentication: Will you implement Two-Factor Authentication (2FA) or token-based systems?

All of these choices; security protocols, encryption, and identity management, carry their own costs. They aren’t just technical decisions; they are budget decisions that will significantly add to your total expenditure.

In conclusion;

  • The Output (The “What”): Start with the end goal so you don’t build the wrong tool.
  • The Budget (The “How much”): Determine if you have the funds for fixed (CapEx) and variable (OpEx) costs.
  • The Infrastructure (The “How”): Address the translation of data and the non-negotiable security requirements.

Other concerned;

While defining your output, securing your data, and balancing your budget are the technical pillars of a Machine Learning project, the ultimate success of a medical AI depends on its integration into the human world. To conclude your planning phase, you must consider the “clinical reality” = the factors that exist beyond the code.

The Quality and Ethics of Data

First, it is vital to acknowledge that a model is only as good as the data it consumes. In medicine, data is notoriously noisy and fragmented. You must plan for a significant Data Cleaning phase, which often requires clinical expertise to ensure that missing values or inconsistencies don’t lead to dangerous inaccuracies. Furthermore, we must remain vigilant regarding algorithmic bias. If the data used to train your model does not represent a diverse patient population, the resulting AI may provide unequal care. Ethical ML requires us to build systems that are fair and inclusive from day one.

Regulatory and Legal Hurdles

Unlike general-purpose AI, medical ML operates under strict government oversight. Depending on your jurisdiction, your system may be classified as Software as a Medical Device (SaMD). This brings a layer of regulatory requirements, such as FDA or CE Mark certification, which can be time-consuming and expensive. You must also consider Explainability. In a clinical setting, a black box that provides a number without a reason is rarely trusted. Doctors need to understand the why behind a trend or a prediction to make informed, life-saving decisions.

The Human Element and Integration

Finally, the most sophisticated ML model will fail if it disrupts the workflow of the healthcare providers it is meant to help. Successful implementation requires a focus on User Experience (UX). How will the doctor see the “circles on the picture” or the “trend lines” you planned? If the output is not seamlessly integrated into the hospital’s existing Electronic Health Record (EHR) system, it becomes a hurdle rather than a tool.

AI in Medicine - This article is part of a series.
Part 2: This Article