Latest / Medicine Made Simple / Artificial Intelligence and Deep Learning in Pathology
Transcript
- 0:00Speaker 1: Welcome back to the deep dive, where we take a
- 0:02Speaker 1: stack of sources and distill the fundamental knowledge you need fast.
- 0:07Speaker 1: Today we are focusing on a well a seismic shift
- 0:11Speaker 1: happening in modern medicine.
- 0:12Speaker 2: We really are. It's the revolution of massive data, specifically
- 0:16Speaker 2: in diagnostic pathology.
- 0:18Speaker 1: Right, a field that for what a century has been
- 0:21Speaker 1: defined by the human eye on a glass.
- 0:24Speaker 2: Slide, and now it's rapidly moving to a digital environment
- 0:27Speaker 2: things like whole slide imaging, and this provides the perfect
- 0:30Speaker 2: computational canvas to start applying AI and deep learning directly
- 0:34Speaker 2: to diagnosis and patient care.
- 0:37Speaker 1: And our main source for this deep dive is this
- 0:39Speaker 1: really key academic monograph called Artificial Intelligence and Deep Learning
- 0:44Speaker 1: and Pathology.
- 0:45Speaker 2: And what's great about it is that it was written
- 0:47Speaker 2: specifically to be a bridge. It gives physicians and medical
- 0:50Speaker 2: learners the essential knowledge they need about.
- 0:52Speaker 1: These technologies, and crucially with zero required background in advanced
- 0:57Speaker 1: math or programming.
- 0:58Speaker 2: Exactly. So our mission here is to give you that roadmap.
- 1:00Speaker 2: We're going to unpack the core concepts AI, machine learning,
- 1:04Speaker 2: deep learning and define those often confusing overlapping.
- 1:07Speaker 1: Terms and then show some concrete, real world clinical tools
- 1:12Speaker 1: that are actually moving from the lab bench to the
- 1:14Speaker 1: patient's bedside. Let's do it, okay, So let's start with
- 1:17Speaker 1: those foundational definitions, because AI, mL, and DL get tossed
- 1:22Speaker 1: around interchangeably and it makes it hard to know what
- 1:25Speaker 1: we're actually talking about.
- 1:26Speaker 2: Right, So, artificial intelligence or AI, that's the biggest umbrella.
- 1:30Speaker 2: It's the broad scientific effort to I guess, enable machines
- 1:35Speaker 2: to mimic human intelligence and performing tasks. So the whole concept,
- 1:39Speaker 2: the whole concept. Now, Machine learning or mL is a
- 1:41Speaker 2: specific subset of AI. It focuses on algorithms that learn
- 1:45Speaker 2: patterns and make predictions from data, and.
- 1:47Speaker 1: They do that without needing explicit, handwritten instructions for every
- 1:51Speaker 1: single task precisely.
- 1:52Speaker 2: So, if AI is the concept, mL is the method
- 1:55Speaker 2: of getting there by feeding it data.
- 1:57Speaker 1: So then what makes deep learning so special?
- 1:59Speaker 2: Deep learning is a specific type of mL, a really
- 2:02Speaker 2: powerful one. It uses what are called neural.
- 2:04Speaker 1: Networks simulated layers of connected neurons.
- 2:07Speaker 2: Exactly, and the key is that the input and output
- 2:09Speaker 2: are separated by multiple hidden layers. The term deep just
- 2:14Speaker 2: refers to that multi layered architecture. It's what allows it
- 2:17Speaker 2: to handle really complex data like a high resolution image.
- 2:22Speaker 1: You know. To really get the power of these learning models,
- 2:24Speaker 1: we have to look at how a computer normally works.
- 2:27Speaker 1: The sources spend a bit of time on the computer's
- 2:29Speaker 1: basic vocabulary.
- 2:30Speaker 2: Yeah, things like assignment. In programming, the instruction X equals
- 2:35Speaker 2: five isn't a statement of mathematical equality. It's an order
- 2:39Speaker 2: assign the value five to the variable x.
- 2:42Speaker 1: Which is why something like x equals x plus two
- 2:45Speaker 1: makes perfect sense to a computer.
- 2:46Speaker 2: It takes the current value of x adds two and
- 2:49Speaker 2: then assigns that new value right back to x.
- 2:52Speaker 1: And the other core piece is conditionals simple if then logic.
- 2:56Speaker 2: Which leads us right to the crucial difference rules based
- 3:00Speaker 2: programming versus machine learning.
- 3:02Speaker 1: Okay, so give us an examples.
- 3:03Speaker 2: Think about calculating pi. A classic rules based approach uses
- 3:06Speaker 2: an infinite series, or maybe that Monte Carlo simulation.
- 3:09Speaker 1: Where you're sort of throwing random darts at a target.
- 3:12Speaker 2: Right. In both cases, the formula the rule is predefined,
- 3:16Speaker 2: it's baked right into the code. The computer is just
- 3:19Speaker 2: following instructions.
- 3:20Speaker 1: With machine learning, the rules aren't predefined exactly.
- 3:24Speaker 2: Instead of following a rigid formula, the system takes in
- 3:27Speaker 2: huge amounts of data, let's say images of cancerous and
- 3:31Speaker 2: healthy tissue, and it automatically makes inferences. It discovers the
- 3:36Speaker 2: patterns that differentiate.
- 3:37Speaker 1: The two, it derives the rules from the data itself
- 3:40Speaker 1: does well. That immediately raises a question for me. If
- 3:43Speaker 1: the computer is making its own inferences, how do we
- 3:46Speaker 1: evaluate if those are reliable for a patient?
- 3:49Speaker 2: I mean that is the million dollar question, and it's
- 3:51Speaker 2: where we run into the massive problem of using simple
- 3:54Speaker 2: overall accuracy, because it.
- 3:56Speaker 1: Can be completely misleading, especially in medicine.
- 3:59Speaker 2: It can You want to walk through the classic example.
- 4:01Speaker 1: Yeah, so take a rare disease, maybe an aggressive tumor
- 4:04Speaker 1: that only occurs in say one percent of the population.
- 4:07Speaker 2: A very common scenario.
- 4:08Speaker 1: Right, So a totally useless algorithm can get ninety nine
- 4:11Speaker 1: percent accuracy just by classifying every single patient as healthy.
- 4:15Speaker 2: The accuracy scores amazing, but the tool is worthless. It
- 4:19Speaker 2: missed every single.
- 4:20Speaker 1: Real case, a critical point, especially since so many diseases
- 4:24Speaker 1: we're trying to find are rare. So if accuracy is out,
- 4:28Speaker 1: what do we look at?
- 4:29Speaker 2: We have to rely on metrics that come from something
- 4:31Speaker 2: called the confusion matrix. It breaks down all the decisions.
- 4:35Speaker 1: True positives, false positives, all that.
- 4:37Speaker 2: All that, and the two most critical metrics that come
- 4:40Speaker 2: out of it are precision and recall.
- 4:42Speaker 1: Okay, so let's define them. What is precision?
- 4:44Speaker 2: Precision? You'll also hear it called positive predictive value or PPV.
- 4:49Speaker 2: It measures exactness. It answers the question of all the
- 4:53Speaker 2: cases the model flagged as positive, what percentage were actually positive?
- 4:57Speaker 1: So it's a measure of trust. If it says positive,
- 4:59Speaker 1: can I bel exactly?
- 5:01Speaker 2: High precision means you can.
- 5:02Speaker 1: And then there's recall or sensitivity.
- 5:05Speaker 2: Right. Recall measures completeness. It asks of all the actual
- 5:08Speaker 2: positive cases that really existed, how many did the model find?
- 5:12Speaker 2: This is critical for screening. You do not want to
- 5:14Speaker 2: miss any true.
- 5:15Speaker 1: Cases, so you want to avoid false negatives.
- 5:18Speaker 2: You want high recall, And often when you're evaluating a model,
- 5:22Speaker 2: you'll look at the F one score, which is a
- 5:24Speaker 2: kind of balanced average of both.
- 5:25Speaker 1: Knowing those metrics is one thing, But the data you
- 5:28Speaker 1: feed the model that's maybe even more important.
- 5:31Speaker 2: Oh, absolutely, which brings us to this stunning real world
- 5:34Speaker 2: example of data bias from the sources.
- 5:37Speaker 1: The sepsis readmission study Yes.
- 5:40Speaker 2: At Chicago Hospital. So researchers notice that patients with dangerously
- 5:45Speaker 2: low pH levels meaning they were very very sick, were
- 5:48Speaker 2: somehow less likely to be readmitted.
- 5:50Speaker 1: Which makes no clinical sense at all.
- 5:52Speaker 2: None the reason. The training data included patients who had
- 5:55Speaker 2: died during their first hospital.
- 5:57Speaker 1: Stay ah, and since deceased patients obviously can't be readmitted,
- 6:01Speaker 1: the algorithm learned to associate low pH with not readmitted.
- 6:06Speaker 2: It created a statistically significant, but fatally flawed connection. It's
- 6:10Speaker 2: a perfect example of how algorithms find correlations, not causation, and.
- 6:14Speaker 1: It shows how vital the medical expert is in curating
- 6:17Speaker 1: that data. Without that clinical oversight, you could deploy a
- 6:20Speaker 1: really dangerous tool.
- 6:21Speaker 2: You really could.
- 6:22Speaker 1: So moving from data to methods, let's touch on shallow
- 6:25Speaker 1: learning models. These sort of laid the groundwork before deep
- 6:28Speaker 1: learning really took off.
- 6:29Speaker 2: Many of them are based on geometric models. A simple
- 6:32Speaker 2: one is K nearest neighbor or kNN. Okay, Imagine we're
- 6:36Speaker 2: plotting tissue samples on a graph based on two features
- 6:39Speaker 2: like cellular size and nuclear density. A new sample lands
- 6:43Speaker 2: near the boundary between two classes. What does kN N do?
- 6:47Speaker 2: It just looks at its K and nearest neighbors say
- 6:50Speaker 2: the closest five samples and it gets assigned to whatever
- 6:53Speaker 2: the majority class of those five is.
- 6:55Speaker 1: Simple enough, what about something more complex like a support
- 6:58Speaker 1: vector machine or SVM.
- 7:00Speaker 2: And SVM tries to find the single best boundary line.
- 7:03Speaker 2: It's called a hyperplane that creates the biggest possible separation
- 7:07Speaker 2: between two classes, and.
- 7:08Speaker 1: It only focuses on the data points closest to that
- 7:10Speaker 1: boundary line, the support vectors exactly.
- 7:13Speaker 2: And what makes SVM so powerful is something called the
- 7:15Speaker 2: kernel trick. If your data is all jumbled up in
- 7:18Speaker 2: two D, the connal trick can project it into a
- 7:20Speaker 2: higher dimension like three D, where suddenly you can separate
- 7:23Speaker 2: the classes with a simple flatplane.
- 7:25Speaker 1: That's a clever way to handle messy data. We should
- 7:28Speaker 1: also mention unsupervised learning like K means clustering.
- 7:32Speaker 2: Right, and K means is different because it works on
- 7:35Speaker 2: unlabeled data. You're trying to find inherent structures.
- 7:39Speaker 1: So you don't know the right answers ahead of time.
- 7:41Speaker 2: You don't. You just tell it how many clusters or
- 7:43Speaker 2: k you want to find. The system guesses some center
- 7:46Speaker 2: points and then keeps assigning data points to the nearest
- 7:49Speaker 2: center until the cluster is stabilize. It's a way to
- 7:52Speaker 2: find natural groupings in your data.
- 7:54Speaker 1: Okay, so now we get to the real engine of
- 7:56Speaker 1: this revolution, deep learning, and the big strength here is
- 8:00Speaker 1: moving from feature engineering to future learning.
- 8:04Speaker 2: This is the core difference with shallow learning. A human
- 8:07Speaker 2: had to engineer the features. You had to explicitly tell
- 8:09Speaker 2: the machine look for lesion area or measure nuclear shape.
- 8:14Speaker 1: But deep learning doesn't need that.
- 8:15Speaker 2: It bypasses that bottlenet completely. The neural network automatically figures
- 8:19Speaker 2: out which features from simple edges all the way to
- 8:22Speaker 2: complex architectural patterns are important for telling a benign tumor
- 8:25Speaker 2: from a malignant one. It just abstracts them from the
- 8:28Speaker 2: raw pixels.
- 8:29Speaker 1: And because this learning happens deep inside the network's hitter layers,
- 8:33Speaker 1: we get the term black box, which in a clinical
- 8:36Speaker 1: setting causes a lot of concern.
- 8:38Speaker 2: It does because the process is often initiated randomly and
- 8:42Speaker 2: becomes partially unexplainable to us. We know the math works,
- 8:46Speaker 2: but tracing the exact rationale for a decision is hard.
- 8:50Speaker 1: The sources make a great analogy for this.
- 8:52Speaker 2: They do ask an experienced pathologist how they made a
- 8:56Speaker 2: really complex diagnosis. Even they might struggle to articulate the
- 9:00Speaker 2: precise cognitive steps. It's an intuitive black box for the
- 9:03Speaker 2: human expert too.
- 9:05Speaker 1: So if the system is learning without explicit rules, how
- 9:08Speaker 1: do we actually teach it?
- 9:09Speaker 2: Through a process called back propagation, it's a type of
- 9:12Speaker 2: supervised learning. You feed the network data that has been
- 9:16Speaker 2: labeled with the ground truth the correct answer Okay. The
- 9:18Speaker 2: network makes a guess an output, and you compare that
- 9:21Speaker 2: to the ground truth. The difference is measured by a
- 9:23Speaker 2: loss function. The system then works backward through its layers,
- 9:27Speaker 2: tweaking the connections to minimize that loss, until its guesses
- 9:30Speaker 2: consistently mash the right answer.
- 9:32Speaker 1: And for image analysis, which is everything in pathology, the
- 9:37Speaker 1: champion architecture is the convolutional neural network. The CNN.
- 9:41Speaker 2: CNNs are just brilliant for images. They use these things
- 9:44Speaker 2: called convolutional filters. They're like little digital magnifying glasses that
- 9:48Speaker 2: slide across the image to find specific features edges, textures,
- 9:53Speaker 2: things like that.
- 9:54Speaker 1: And then the pooling layers come.
- 9:55Speaker 2: In right after convolution pooling layers like max pooling, summariz
- 10:00Speaker 2: whether those features were found in a certain patch of
- 10:02Speaker 2: the image. This whole process makes the network really good
- 10:05Speaker 2: at recognizing structures no matter where they are in the picture.
- 10:08Speaker 1: So let's shift to some of the more advanced architectures.
- 10:11Speaker 1: Not everything is about classification. Some models like jans are
- 10:15Speaker 1: about creation right.
- 10:16Speaker 2: Generative adversarial networks. They're designed to generate things like hyperrealistic
- 10:20Speaker 2: synthetic images of tissue, and they work through this ingenious
- 10:24Speaker 2: adversarial process.
- 10:25Speaker 1: Two competing networks.
- 10:26Speaker 2: Two networks. You have the generator, which tries to create
- 10:29Speaker 2: fake examples, and the discriminator, which tries to tell if
- 10:32Speaker 2: an image is real or fake. They're locked in this game,
- 10:36Speaker 2: and it forces the generator to create increasingly perfect, undetectable forgeries.
- 10:41Speaker 1: And then there's reinforcement learning RL, which is a totally
- 10:44Speaker 1: different concept.
- 10:45Speaker 2: Yeah. RL is inspired by operant conditioning. It's for sequential
- 10:49Speaker 2: decision problems like teaching a system to play chess or go.
- 10:53Speaker 2: This system learns by trial and error. The reward signal
- 10:56Speaker 2: is delayed, it only finds out if its sequence of
- 10:58Speaker 2: moves was good at the end of the day game.
- 11:00Speaker 1: While all this is amazing, the monograph is very clear
- 11:02Speaker 1: about three critical limitations of current AI.
- 11:05Speaker 2: Yes. First, limited generality. They are one trick ponies, an
- 11:10Speaker 2: algorithm trained on liver fibrosis can't analyze kidney disease. They
- 11:14Speaker 2: lack general human intelligence.
- 11:16Speaker 1: Second is the data hunger.
- 11:17Speaker 2: Extreme data hunger. They need thousand, sometimes millions, of expertly
- 11:22Speaker 2: labeled examples. A human toddler can learn the difference between
- 11:25Speaker 2: an apple and a pair with just a few examples.
- 11:28Speaker 1: And the third limitation computational cost is just staggering.
- 11:32Speaker 2: It really is. Training these huge models is incredibly energy intensive.
- 11:37Speaker 2: There are estimates that training one large AI model can
- 11:40Speaker 2: produce carbon emissions nearly five times greater than the entire
- 11:44Speaker 2: life cycle of a car. That's an ethical and logistical
- 11:47Speaker 2: hurdle we just can't ignore.
- 11:49Speaker 1: Which also means we have to look closer at bias.
- 11:52Speaker 1: The sources draw a really clear line between two.
- 11:54Speaker 2: Types, right, you have coding or model bias. This comes
- 11:57Speaker 2: from assumptions baked into the algorithm itself. Health For example,
- 12:01Speaker 2: a simple model might assume all features are independent, which
- 12:04Speaker 2: in biology is almost never true.
- 12:06Speaker 1: And then there's the much more insidious data bias.
- 12:09Speaker 2: This is when the training data itself reflects unfair societal prejudice.
- 12:13Speaker 2: There was a famous example of a healthcare algorithm that
- 12:16Speaker 2: used past costs as a proxy for how sick a
- 12:18Speaker 2: person was.
- 12:19Speaker 1: And that failed because unequal access meant that black patients
- 12:22Speaker 1: often had to be much sicker than white patients to
- 12:25Speaker 1: rack up the same level of costs exactly.
- 12:27Speaker 2: So if you use that algorithm to allocate resources, you
- 12:31Speaker 2: would just amplify the existing health disparities. It's why explainability,
- 12:35Speaker 2: understanding why an AI made a decision is so crucial
- 12:38Speaker 2: for clinical adoption and for regulatory approval.
- 12:41Speaker 1: This brings us right to the practical reality of AI
- 12:44Speaker 1: in pathology today, and the catalyst for everything is the
- 12:47Speaker 1: adoption of whole Slide imaging or WSI.
- 12:51Speaker 2: WSI is the foundation. By digitizing entire biopsy slides, we
- 12:56Speaker 2: create the platform we need to apply machine learning at scale.
- 12:59Speaker 2: Without WI, none of this really happens.
- 13:02Speaker 1: So what are the main tasks AI is tackling in
- 13:04Speaker 1: this new digital world.
- 13:06Speaker 2: You can group them into three buckets. First, classification is
- 13:09Speaker 2: it benign or malignant? Second segmentation, which is identifying in
- 13:13Speaker 2: outlining specific regions of interest.
- 13:15Speaker 1: And third is image translation and enhancement.
- 13:17Speaker 2: Exactly, and with segmentation, it's helpful to know the two types.
- 13:21Speaker 2: There's semantic segmentation separating broad classes like tumor versus STROMA.
- 13:25Speaker 2: And then there's instant segmentation, which is incredibly granular. It
- 13:29Speaker 2: identifies and counts every single unique element, like every single
- 13:33Speaker 2: nucleus in the entire slide. That's a level of detail
- 13:36Speaker 2: that's just impossible for a human to do consistently.
- 13:38Speaker 1: And image translation that sounds like a lab problem.
- 13:42Speaker 2: It solves critical variability issues. Stain color normalization can reduce
- 13:46Speaker 2: color differences caused by different scanners or protocols between labs.
- 13:51Speaker 2: And even more exciting is mode switching without It's where
- 13:54Speaker 2: AI can convert an image from a novel imaging method
- 13:58Speaker 2: like quantitative phase imaging into a familiar H and E
- 14:02Speaker 2: like image. You could potentially eliminate the need for time
- 14:05Speaker 2: consuming chemical staining altogether.
- 14:07Speaker 1: Okay, let's talk performance. The sources give a great clinical
- 14:10Speaker 1: example with prostate cancer grading the Gleason score right.
- 14:13Speaker 2: So, deep learning systems have been trained on this and
- 14:15Speaker 2: the results are impressive. In one study, a DLS got
- 14:18Speaker 2: seventy percent accuracy on glease and grading. The average for
- 14:22Speaker 2: pathologists was sixty one percent.
- 14:24Speaker 1: And it even performed better than pathologists with less than
- 14:26Speaker 1: fifteen years of experience it did.
- 14:29Speaker 2: It shows the potential as a really reliable second opinion. But,
- 14:33Speaker 2: and this is a big butt, there's.
- 14:35Speaker 1: A bottleneck the training data.
- 14:37Speaker 2: The training data. To get that level of performance, one
- 14:40Speaker 2: effort required pathologists to annotate one hundred and twelve million
- 14:44Speaker 2: individual image patches. That took almost nine hundred pathologist hours
- 14:49Speaker 2: just to label the data.
- 14:50Speaker 1: Wow, Scaling that up is the huge challenge.
- 14:52Speaker 2: It is, but the ultimate payoff isn't just about replicating
- 14:55Speaker 2: a human. It's about finding information that's invisible to us.
- 14:59Speaker 2: Predicting a patient's molecular status, their genotype based only on
- 15:03Speaker 2: the visual morphology, the.
- 15:05Speaker 1: Phenotype that's working backward. That's the future.
- 15:07Speaker 2: Absolutely. A key example is analyzing tumor infiltrating lymphocytes or tilS.
- 15:13Speaker 2: AI can generate these quantitative tumor TIL maps on H
- 15:16Speaker 2: and E slides, counting every single immune cell in and
- 15:19Speaker 2: around the tumor. This is vital for predicting if a
- 15:21Speaker 2: patient will respond to immunotherapy.
- 15:23Speaker 1: A human could do that in theory, but not across
- 15:25Speaker 1: hundreds of slides accurately or fast enough to be useful exactly.
- 15:29Speaker 2: The monograph says it would be prohibitive due to the
- 15:32Speaker 2: amount of labor, time and cost. AI makes this kind
- 15:35Speaker 2: of prognostic information instantaneous and actionable.
- 15:39Speaker 1: Amazing. Okay, we've covered a lot the definitions, the challenges,
- 15:42Speaker 1: the clinical reality before we synthesize. Here's a quick review
- 15:45Speaker 1: question for you, the learner.
- 15:47Speaker 2: Yeah, let's see what's docke.
- 15:48Speaker 1: Okay, imagine this. You're a medical learner evaluating a new
- 15:51Speaker 1: model for a rare tumor less than two percent incidents.
- 15:55Speaker 1: The manufacturer is proudly advertising ninety eight percent overall accuracy.
- 15:59Speaker 2: Which sounds great on the surface.
- 16:01Speaker 1: Right, But before you would ever recommend it for clinical use,
- 16:04Speaker 1: which two key metrics beyond accuracy would you absolutely insist
- 16:08Speaker 1: on seeing? And why?
- 16:10Speaker 2: The answer has to be high precision and high recall.
- 16:13Speaker 2: You'd insist on them because ninety eight percent accuracy is
- 16:16Speaker 2: meaningless for a rare disease. You need high recall or
- 16:19Speaker 2: sensitivity to make sure you're catching all the rare cases
- 16:22Speaker 2: and not having dangerous false negatives in high precision and
- 16:25Speaker 2: high precision or PPV to ensure that when the machine
- 16:28Speaker 2: does flag a positive case, you can trust that it's
- 16:31Speaker 2: not just a false alarm.
- 16:32Speaker 1: Perfect So what does this all mean for the future?
- 16:35Speaker 1: Of the pathologist.
- 16:36Speaker 2: Well, the core conclusion from the work is really clear.
- 16:38Speaker 2: AI is not going to replace the pathologist. It's going
- 16:41Speaker 2: to serve as an indispensable digital assistant, handling.
- 16:44Speaker 1: The repetitive, the quantitative, the data heavy tasks.
- 16:47Speaker 2: Within human speed and consistency. The future is the synergy
- 16:52Speaker 2: of human intelligence HI combined with artificial intelligence AI.
- 16:57Speaker 1: And those fascinating potential and the provocative thought. Well leave
- 17:00Speaker 1: you with is AI's ability to detect subtle visual cues
- 17:04Speaker 1: that are invisible to the naked human eye. This lets
- 17:07Speaker 1: us work backward from the observable image phenotype to the
- 17:10Speaker 1: underlying genotype that actually drives a tumor's behavior
- 17:14Speaker 2: And that ability to link morphology to molecular biology that
- 17:17Speaker 2: is the future of truly personalized precision medicine.