You already know this stuff -- you just don't know the ML words for it
You have built REDCap databases. You have created Table 1. You have selected predictor variables for a logistic regression. You have been doing this all along -- ML just uses different words for the same concepts.
This lesson is a translation exercise. By the end, you will be able to read an ML methods section and know exactly what they did to your data before feeding it to the algorithm.
Your data science collaborator says:
"We extracted 35 features from the registry, imputed missing values using multiple imputation, one-hot encoded the categorical variables, scaled the continuous features, and split the data into training, validation, and test sets at 60/20/20."
If that sounds like a foreign language, it is not -- it is just clinical research with different vocabulary. Let's translate it.
If you can build a REDCap database, you understand 80% of what "data pipeline" means. This lesson covers the other 20%.
Every ML term maps to something you already understand. Tap each card for details.
| ML Term | Clinical Research Term |
|---|---|
| Feature | Predictor variable / covariate |
| Label | Outcome / endpoint |
| Feature engineering | Deriving new variables (BMI, composite scores) |
| Imputation | Handling missing data |
| Encoding | Converting categories to numbers |
| Scaling | Standardizing variable ranges |
| Training set | Derivation cohort |
| Test set | Validation cohort |
Your collaborator does not just dump raw data into an algorithm. Here is what actually happens -- walked through with a vascular surgery dataset.
Imagine 2,500 patients who underwent open AAA repair, pulled from a multi-center registry. You want to predict prolonged ICU stay (>3 days). Your Table 1 has 20 columns.
In traditional statistics, you often have a derivation cohort and a validation cohort (two splits). ML adds a third -- the validation set -- because ML models have many tunable settings ("hyperparameters"). If you tune those settings using your test set, you are inadvertently optimizing for that specific data. The validation set lets you tune without contaminating the final evaluation. Think of it as: training = studying, validation = practice exam, test = board exam.
Data leakage occurs when information from outside the training set sneaks into the model during training. The most common form: using the entire dataset to impute missing values or scale features before splitting. This means the training set has "seen" patterns from the test set. Your collaborator should preprocess each split independently. If a paper reports preprocessing on the full dataset before splitting, that is a red flag.
The data pipeline is not glamorous, but it is where most ML projects succeed or fail. A good pipeline with a simple model usually beats a bad pipeline with a fancy algorithm.
Read the scenario. Identify the correct ML concept.
Module 1 - Lesson 4 complete
You can now decode ML methods sections. Features, labels, preprocessing, data splits -- these are not new concepts. They are your old concepts with new names. One lesson left: knowing when to use ML at all.