← Writing & notes

FROM THE NOTEBOOK

Machine Learning for Healthcare - MIT 6.S897

MIT 6.S897 Machine Learning for Healthcare, Spring 2019 - YouTube

This course provides a comprehensive, end-to-end exploration of the application of machine learning to solve critical challenges in modern healthcare. The curriculum is designed to move beyond theoretical algorithms to address the unique complexities and high-stakes nature of the medical domain. The course begins by establishing a strong foundation in the practice of medicine, the structure of clinical data, and the history of AI in healthcare. It then delves into core predictive tasks, teaching students how to build models for risk stratification, survival analysis, and diagnosis using a wide array of data modalities, including structured electronic health records, physiological time series, clinical notes (NLP), and medical imaging like echocardiography and digital pathology.
Moving from prediction to intervention, the course introduces advanced frameworks for causal inference and reinforcement learning, equipping students to ask "what if?" and learn optimal sequential treatment policies from observational data. A significant portion of the curriculum is dedicated to unsupervised learning for scientific discovery, focusing on data-driven methods for disease progression modeling and the identification of novel patient subtypes, with a look toward the future of precision medicine and genomics.
Finally, the course confronts the critical real-world challenges of deployment and ethics. It provides a pragmatic view on navigating the regulatory landscape (FDA, IRB), integrating models into complex clinical workflows, and ensuring algorithmic robustness against dataset shift. The curriculum concludes with a deep dive into the essential topics of fairness, to ensure models do not perpetuate societal biases, and interpretability, to build the trust necessary for clinical adoption. Students emerge with not only the technical skills to build sophisticated models but also the contextual and ethical understanding required to translate these powerful technologies into safe, effective, and equitable clinical practice.

L1: Introduction

This lecture serves as an introduction to the Spring 2019 "Machine Learning for Healthcare" course, delivered by Professor David Sontag from MIT's Computer Science and Institute for Medical Engineering and Science. The lecture outlines the fundamental problems in healthcare, the historical context of AI in medicine, the reasons why the present is an opportune time for transformation, and the unique challenges and goals of applying machine learning in this domain.
The Problem: Transforming Healthcare
Professor Sontag begins by highlighting the critical issues plaguing the U.S. healthcare system: exorbitant costs, late diagnosis and poor management of chronic diseases, and frequent medical errors. He personalizes these systemic failures with poignant stories from his own family. His grandfather's late diagnosis of Alzheimer's disease caused preventable family distress. More tragically, his mother passed away from multiple myeloma, a blood cancer, without ever starting treatment. Her condition was misjudged as low-risk based on standard blood markers, but the cancer silently caused fatal heart failure. These anecdotes underscore the urgent need for better tools to transform healthcare, with machine learning and AI being a crucial piece of the puzzle.
A Brief History of AI in Medicine
The lecture revisits the long history of AI in medicine, which dates back to the 1960s and 70s. Key early examples include:

Despite their early promise and impressive capabilities, these systems failed to be integrated into clinical practice. The primary reasons for this failure were their inability to fit into existing clinical workflows, the difficulty and cost of maintaining the manually-curated knowledge bases, and the poor generalizability of models when transferred to different institutions.
The Opportunity Now: A Confluence of Factors
Professor Sontag argues that, after decades of limited success, the time is finally right for a machine learning revolution in healthcare. This optimism is driven by three major developments:

  1. Data Availability: The widespread adoption of Electronic Medical Records (EMRs) in the U.S., largely spurred by a $30 billion investment from the 2009 economic stimulus package, has created a massive repository of digital health data. This includes publicly available research datasets like the MIMIC database from MIT (containing rich, de-identified ICU data) and large-scale insurance claims databases like Truven MarketScan. National initiatives like the "All of Us" program are further expanding these data resources, encompassing everything from clinical notes and imaging to genomics and data from wearable devices.
  2. Data Standardization: Decades of work have led to the creation of standardized vocabularies and data models. These include ICD-10 for diagnoses, LOINC for lab tests, and ontologies like the Unified Medical Language System (UMLS). Modern standards like FHIR (Fast Healthcare Interoperability Resources) and common data models like OMOP are making it easier to exchange and aggregate data from different systems, enabling the development of scalable, portable machine learning algorithms.
  3. Breakthroughs in Machine Learning: Recent advances in the field provide the necessary tools to analyze this complex data. Key developments include algorithms for learning with high-dimensional features, progress in unsupervised and semi-supervised learning (critical for dealing with limited labeled data), and the power of modern deep learning architectures like Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs).

This convergence has sparked massive industry interest, with billions of dollars being invested by tech giants like Google and IBM, as well as hundreds of startups, all aiming to leverage AI in healthcare.
How Machine Learning Will Transform Healthcare
The lecture outlines the healthcare ecosystem—comprising patients, providers (doctors, hospitals), and payers (insurance companies)—and provides concrete examples of how machine learning can intervene at different points.

What's Unique and Challenging About ML in Healthcare
The lecture concludes by emphasizing that healthcare is not just another domain for applying standard machine learning techniques. It presents a unique set of challenges:

The course aims to equip students with the intuition and technical skills to navigate these challenges, formalize healthcare problems as machine learning tasks, and understand the subtleties of safely deploying these powerful technologies.

L2: Overview of Clinical Care

Introduction: The Goals and Practice of Medicine
Peter Szolovits, a long-time researcher in medical AI, begins by explaining that the lecture's purpose is to provide context for the course by exploring the fundamental goals of healthcare and the day-to-day practice of medicine. This understanding is crucial for identifying the right problems for machine learning to solve. He contrasts historical and modern medicine, from a tribal shaman emphasizing the healer-patient relationship to a high-tech Intensive Care Unit (ICU), noting that the human element of trust and the placebo effect remain vital.
Part 1: The Goals of Healthcare - Defining and Measuring Health
The lecture first tackles the broad goal of achieving "health," defined by the World Health Organization as "a state of complete physical, mental, and social well-being, not merely the absence of disease or infirmity."

Part 2: The Practice of Medicine - A Cyclic Process
This section delves into how clinicians work, generating the data that machine learning models will use.

Part 3: Public Health and Epidemiology
The focus shifts from individual patient care to the health of entire populations.

Part 4: Paying for Healthcare - The Economic Context
The final section addresses the economic realities that shape healthcare and create incentives for using AI.

Szolovits concludes by noting that money determines much of what is possible in healthcare, and that historically low IT spending in the field has hindered the kind of data-driven progress this course aims to foster.

L3: Deep Dive into Clinical Care

Introduction: The Treachery of Data and the MIMIC Database
The lecture begins with a powerful cautionary tale using the MIMIC-III database, a rich dataset of ICU admissions from the Beth Israel Deaconess Medical Center. The core lesson is to know your data before you analyze it, as it is filled with artifacts and hidden complexities.
Szolovits presents a histogram of heart rates from the database, which surprisingly shows a bimodal (two-peaked) distribution. This is highly unusual for physiological data. The investigation reveals the two peaks correspond to two different data collection systems used over the 12-year period:

The mystery is solved by examining the age of the patients. The CareVue system was used in the Neonatal Intensive Care Unit (NICU), while MetaVision was not. The second, higher heart rate peak was simply the data from babies, who have naturally faster heart rates than adults.
A second artifact is revealed: a cluster of patients with a recorded age of 300 years. This is not an error but a result of the HIPAA privacy rule, which prohibits recording the specific age of any patient 90 years or older. To de-identify the data, all such patients are assigned an age of 300. This illustrates how external rules and data collection practices can create bizarre and misleading patterns in the data.
A Catalog of Medical Data Types
The lecture provides a comprehensive overview of the different kinds of data available in a typical Electronic Health Record (EHR), many of which are present in MIMIC.

Deep Dive into MIMIC Data: Examples and Challenges
Szolovits uses MIMIC data to illustrate the properties and pitfalls of these data types.

Case Study: Diurnal Variation in Lab Tests
Szolovits attempts to replicate a study on whether lab test results become more abnormal at night.

The Power of Clinical Notes
The lecture concludes by focusing on the immense value of unstructured text notes.

Final Takeaways and Future Standards
The lecture wraps up with a discussion of emerging standards and the overarching lessons learned.

L4: Risk Stratification 1

The lecture begins by defining risk stratification as the process of separating a patient population into categories of risk (e.g., high, low, medium). Unlike diagnosis, which has strict performance criteria, risk stratification is "fuzzier" and its primary goal is to couple predictions with interventions, often to prevent a negative outcome and reduce healthcare costs.
Key Differences from Diagnosis:

Examples of Risk Stratification:

  1. Infant Morbidity: The traditional method is the Apgar score, a simple scoring system used at birth. Modern machine learning approaches, like one from Johns Hopkins, aim to provide more accurate predictions.
  2. Coronary Care Admission (A 1984 Case Study): An early example of using logistic regression to predict which ER patients with heart-related issues truly needed expensive admission, demonstrating that the core idea is not new.
  3. Hospital Readmission: A major focus in modern U.S. healthcare, driven by government penalties for hospitals with high 30-day readmission rates. The goal is to identify at-risk patients before discharge so that interventions (e.g., better discharge instructions, follow-up nurse visits) can be implemented.

Part 2: Old vs. New Approaches

Part 3: Case Study - Early Detection of Type 2 Diabetes
This section details a real-world application of ML-based risk stratification.

Part 4: Guest Discussion on Real-World Implementation (Leonard "Len" D'Avolio)
Len D'Avolio, CEO of the risk stratification company Sift, provides an industry perspective on applying these models in practice.

L5: Risk Stratification 2

Part 1: Continuing the Theme of Risk Stratification
The lecture continues the topic from the previous week, using the case study of predicting type 2 diabetes onset to explore the nuances of building and evaluating risk models.
1. Deriving Labels: The Challenge of "Electronic Phenotyping"
A crucial, non-trivial step in supervised learning is creating the ground-truth labels. The central question is: how do we definitively know from retrospective data that a patient was newly diagnosed with diabetes in a specific time window?

2. Evaluating Risk Stratification Models
Beyond simple accuracy, several metrics are used to evaluate risk models.

3. What Can Go Wrong? Key Subtleties in Healthcare ML
The lecture highlights several critical pitfalls that can invalidate machine learning models.

Part 2: Introduction to Survival Modeling
The lecture shifts from binary classification ("will an event occur?") to predicting time-to-event ("when will an event occur?").

L6: Physiological Time-Series

Part 1: Conclusion of Risk Stratification and Survival Modeling
The lecture begins by finishing the previous week's topic on survival modeling, a method for formalizing risk stratification as a time-to-event regression problem.
Recap and Formalization

Parametric Survival Modeling and Learning

Evaluation of Survival Models

Recap on Non-Stationarity
The lecture revisits the critical problem of non-stationarity (dataset shift over time) and proposes several research directions for addressing it:

  1. Imputation/Transformation: Use statistical methods to fill in missing data or learn a new data representation that is more stable over time.
  2. Re-weighting: Give more weight during training to historical data points that are more similar to the current data distribution.
  3. Online Learning: Use algorithms designed to adapt to changes in the data stream over time, often by detecting "change points."

Part 2: Physiological Time Series Modeling
The main topic of the lecture is modeling physiological data, such as vital signs from an ICU or EKG signals. The approach taken depends heavily on the amount of available data and domain knowledge.
Case Study 1: ICU Monitoring (Low Data, High Domain Knowledge)

Case Study 2: Detecting Atrial Fibrillation from EKGs (High Data, Low Domain Knowledge)

L7: NLP 1

Part 1: Why We Care About Clinical Text (Peter Szolovits)
The lecture begins by establishing the immense value of unstructured clinical text, such as doctor's notes and discharge summaries. This is motivated by a real-world research project on the genetics of Rheumatoid Arthritis (RA).

This compelling case study demonstrates that clinical notes contain crucial information that is often missing from or misrepresented in structured data.
Part 2: Traditional NLP Methods (Pre-Neural Networks)
This section covers the foundational, non-neural network approaches to clinical NLP.

Part 3: Guest Discussion with Dr. Katherine Liao
Dr. Katherine "Kat" Liao, a rheumatologist and researcher, provides an inside look at the evolution and real-world application of these NLP techniques.

L8: NLP 2

Part 1: Sophisticated Term Spotting and Feature Expansion
The lecture begins by building on the previous session's topic of "term spotting" (identifying key phrases in text) and introduces more advanced, automated methods for creating the feature sets used in phenotyping algorithms.

Part 2: The Importance of Context and De-identification
This section highlights the challenge of ambiguity in clinical text and describes a machine learning approach to solve a related problem: de-identification.

Part 3: Unsupervised Methods for Clinical Text
The lecture explores unsupervised learning techniques that can discover patterns in clinical notes without needing pre-defined labels.

Part 4: The Modern Era of Language Modeling (Neural Networks)
This final, major section covers the revolutionary shift in NLP driven by neural networks, particularly word embeddings and the Transformer architecture.

The lecture concludes by reflecting that while these new models represent a phenomenal engineering success, their "black box" nature leaves a scientific conundrum. They have little resemblance to traditional linguistic theories or human cognition, raising the question of what we have truly learned about intelligence itself from their success.

L9: Tech into Clinic

Part 1: The Challenge of Deployment and the Hype Cycle (Peter Szolovits)
The lecture begins with a pragmatic and cautionary perspective on translating AI and machine learning from research into real-world clinical practice.

Part 2: A View from the Trenches - Interview with Dr. Adam Wright
Dr. Adam Wright, who oversees clinical decision support for the Epic EHR system at Partners HealthCare, provides a real-world perspective on implementing these systems.

L10: Cardiac Imaging

Part 1: Introduction to Cardiac Medicine and Diagnostics
The lecture begins with a primer on cardiovascular medicine to provide the necessary clinical context for understanding how machine learning can be applied.

Part 2: Computer Vision in Cardiac Imaging
This section covers the core computer vision tasks relevant to interpreting cardiac images and the challenges of applying them in a clinical context.

Part 3: An Automated Pipeline for Echocardiogram Interpretation
Professor Deo details his group's ambitious project to create a fully automated pipeline for interpreting echocardiograms, moving from raw data to clinical measurements and diagnoses.

Part 4: The Future: Moving Beyond Imaging to Biology
The lecture concludes with Professor Deo's current work at the "One Brave Idea" initiative, which aims to bridge the gap between imaging, clinical data, and the underlying biology of heart disease.

L11: Differential Diagnosis

Part 1: Introduction to Differential Diagnosis and Early Models
The lecture begins by defining diagnosis as identifying the cause of a phenomenon and differential diagnosis as the process of distinguishing a specific disease from others with similar features.

Part 2: Probabilistic Models for Diagnosis
This section covers the shift to more mathematically principled probabilistic models.

Part 3: Handling Multiple Diseases (Heuristic and Bayesian Approaches)
The lecture moves to the more realistic and complex scenario where a patient can have multiple simultaneous diseases.

Part 4: Meta-Reasoning and Modern Reinforcement Learning
The final section explores advanced concepts of reasoning under constraints and the latest approaches using reinforcement learning.

L12: Pathology

Part 1: Introduction to Pathology and its Challenges
The lecture begins with an overview of the field of pathology and why it is a prime area for the application of machine learning.

Part 2: Deep Learning for Computational Pathology
This section details how modern deep learning, particularly convolutional neural networks (CNNs), is being applied to solve key problems in pathology.

Part 3: Real-World Applications and the Future of Pathology
Dr. Beck discusses how these technologies are being developed and validated at his company, PathAI, and how they will change the field.

Part 4: Conclusion and Q&A

L13: Mammography

Part 1: Cancer Detection and Triage in Mammography
The lecture begins by addressing the low incidence of cancer in routine breast cancer screening and proposing a "triage" system to improve radiologist efficiency.

Part 2: Technical Approach - Modeling Challenges and Solutions
This section delves into the specific technical challenges of applying deep learning to mammograms and the solutions the team developed.

Part 3: Triage Model Analysis and Results

Part 4: Assessing Breast Cancer Risk
The lecture shifts from detecting current cancer to predicting a woman's future risk of developing cancer over a five-year period.

Part 5: How to Mess Up (Pitfalls in Medical ML)
Yala concludes with a frank discussion of the many ways projects like this can go wrong.

L14: Causal Inference 1

Part 1: Why Causality Matters in Healthcare
The lecture begins by shifting the focus from purely predictive modeling to causal questions, arguing that the most important questions in healthcare are not just about prediction but about intervention.

Part 2: A Formal Language for Causal Inference
To address these questions, the lecture introduces a formal mathematical framework for causality.

Part 3: Assumptions for Causal Inference from Observational Data
To overcome the fundamental problem of causal inference, we must make strong, untestable assumptions.

  1. Ignorability (No Unobserved Confounding): This is the most critical assumption. It states that, conditional on the observed covariates X, the treatment assignment T is independent of the potential outcomes Y(0) and Y(1).
    • What it means: There are no hidden variables that influence both who gets the treatment and what their outcome would be.
    • How it's violated: If a doctor decides to give a treatment based on a factor (e.g., the patient has diabetes) that is not recorded in our dataset X, and that factor also affects the outcome, then ignorability is violated, and our estimates will be biased. Validating this assumption requires deep domain expertise.
  2. Overlap (Common Support): For every type of patient (i.e., for every value of X), there is a non-zero probability of them receiving either treatment.
    • What it means: There is no group of patients that always gets one treatment and never gets the other. There must be some stochasticity or variation in treatment assignment.
    • How to check it: Unlike ignorability, overlap can be checked empirically in the data by looking for subgroups that only ever receive one treatment.

Part 4: A Method for Causal Inference - Covariate Adjustment
Assuming ignorability and overlap hold, we can estimate causal effects. The lecture introduces the first of several methods.

L15: Causal Inference 2

Part 1: Recap and Motivation for Causal Inference
The lecture begins by recapping the causal inference framework introduced in the previous session and motivating its importance with real-world examples, including the COVID-19 pandemic.

Part 2: Method 1 - Covariate Adjustment (Recap and Deep Dive)
This section revisits the first method for causal inference, covariate adjustment, and explores the critical role of modeling assumptions.

Part 3: A Special Case of Covariate Adjustment - Matching
The lecture introduces matching as an intuitive, non-parametric approach and shows that it is a special case of covariate adjustment.

Part 4: Method 2 - Propensity Score Methods
This section introduces a completely different approach to causal inference that focuses on the treatment assignment mechanism rather than the outcome model.

The lecture concludes by mentioning that even more advanced methods, like doubly robust estimators, exist that combine the strengths of both covariate adjustment and propensity score weighting.

L16: RL 1

Part 1: From Causal Effects to Optimal Policies
The lecture begins by bridging the previous week's topic of causal inference with the new topic of sequential decision-making.

Part 2: The Sequential Setting - Sepsis Management as an Example
Sepsis, a life-threatening complication of infection, is used as a motivating example for sequential decision-making.

Part 3: Reinforcement Learning Fundamentals
The lecture introduces the core concepts and terminology of RL, framing it as a general method for learning optimal sequential policies.

Part 4: Learning Optimal Policies
The lecture describes how to find the best policy within the RL framework.

Part 5: The Challenge of Off-Policy Learning in Healthcare
The final section discusses the specific challenges of applying RL in a healthcare context, where data is observational and not generated by the learning agent itself.

L17: RL 2

Part 1: Reinforcement Learning - Beyond Average Reward (David Sontag)
The lecture begins by revisiting the core goal of reinforcement learning (RL) and questioning its standard formulation.

Part 2: From Causal Inference to Optimal Policies and Back
This section connects the frameworks of one-step causal inference (from the previous week) and multi-step reinforcement learning, showing how they can inform each other.

Part 3: Evaluating Dynamic Treatment Strategies in Practice (Barbra Dickerman)
Guest lecturer Barbra Dickerman presents her work on using causal inference methods to evaluate dynamic treatment strategies in cancer research.

L18: Disease Progression Modeling and Subtyping 1

Part 1: Introduction to Disease Progression Modeling
The lecture introduces the field of disease progression modeling, which aims to understand and predict how a patient's disease evolves over time.

Part 2: Prognosis as a Supervised Learning Problem
This section frames the problem of predicting a patient's future disease status as a supervised machine learning task.

Part 3: Disease Subtyping as an Unsupervised Learning Problem
This section shifts from supervised prediction to unsupervised discovery, focusing on finding meaningful patient subgroups.

Part 4: Conclusion and Limitations
The lecture concludes by summarizing the methods discussed and highlighting their limitations, which will be addressed in the next session.

The next lecture will introduce more sophisticated probabilistic modeling approaches to overcome these limitations.

L19: Disease Progression Modeling and Subtyping 2

Part 1: Staging from Cross-Sectional Data - Building Intuition
The lecture begins by building intuition for how one might infer a patient's disease stage from a single, cross-sectional snapshot of their data, assuming for now that there is only one disease subtype.

Part 2: A Probabilistic Model for Disease Progression (COPD Case Study)
This section introduces a formal, probabilistic model for learning disease progression from sparse, irregular, cross-sectional data.

Part 3: Pseudo-Time Methods for Trajectory Inference
The lecture introduces a different family of algorithms for ordering cross-sectional data, known as pseudo-time or trajectory inference methods, which are very popular in single-cell genomics.

L20: Precision Medicine

Part 1: The Vision of Precision Medicine
The lecture begins by defining "precision medicine" and outlining the vision for its future, as laid out in a 2017 National Research Council report.

Part 2: Re-Taxonomizing Disease
A core goal of precision medicine is to move beyond historical, symptom-based disease definitions to a new, molecularly-based taxonomy.

Part 3: A Shallow Dive into Genetics
To understand the molecular basis of precision medicine, the lecture provides a rapid review of fundamental molecular biology.

Part 4: Methods for Genetic Association Studies
This section covers the primary computational methods used to link genetic variation to disease.

L21: Automating Clinical Workflows

Part 1: Improving Medical Care - Reduce Variance vs. Improve the Average
The lecture begins by posing a fundamental question: what is the best way to improve medical care? Two competing philosophies are presented.

Part 2: Top-Down Workflow - Clinical Practice Guidelines
This section describes the primary "top-down" mechanism for reducing variance: the development and dissemination of clinical practice guidelines.

Part 3: Bottom-Up Workflow - Care Plans and Clinical Pathways
This section explores a "bottom-up" approach to standardizing care that originates from the day-to-day practice of nursing.

Part 4: The "Wisdom of the Crowd" and Its Pitfalls
This section discusses another bottom-up approach that learns from the collective behavior of clinicians.

Part 5: Monitoring and Maintaining Workflow Systems
This section addresses the practical challenges of ensuring that these complex clinical IT systems work correctly over time.

Part 6: The Central Role of Communication
The lecture shifts to a topic that is often overlooked in technical discussions: the critical importance of communication in healthcare.

Part 7: The Failed Dream of the Personal Health Record
The lecture concludes with the story of Google Health, a high-profile attempt to create a "guardian angel"—a lifelong, patient-controlled personal health record.

The story serves as a final, powerful reminder that even the most compelling technical vision will fail if it does not account for the complex realities of clinical workflow, data infrastructure, and human incentives.

L22: Regulation

Part 1: Introduction and Frameworks for AI in Healthcare (Andy Coravos)
The lecture begins by setting the stage for the complex world of regulating algorithmically-driven healthcare products.

Part 2: The Regulatory Landscape for Healthcare Software
This section provides an overview of the key government agencies involved in overseeing healthcare software in the US.

Part 3: The Role of the Institutional Review Board (IRB) (Mark Shervey)
Mark Shervey shifts the focus from federal regulation to the local, institutional level of oversight provided by the IRB.

Part 4: Discussion and Public Participation
The session concludes with a discussion and a call to action for the students to participate in the public rulemaking process.

L23: Fairness

Part 1: Introduction - The Legal and Societal Context of Algorithmic Fairness
The lecture begins by framing the issue of algorithmic fairness not just as a technical problem, but as a critical societal and legal issue.

Part 2: Defining Fairness - A Multifaceted and Conflicting Problem
The lecture moves from the context to the core technical and philosophical challenge of defining what "fairness" actually means.

Part 3: Case Studies in Healthcare Fairness
The lecture presents two case studies that explore bias and fairness in real-world medical datasets.

The lecture concludes by emphasizing that fairness is a rich and critical area for future work, requiring both technical innovation and a deep understanding of the societal context and desired goals.

L24: Robustness to Dataset Shift

Part 1: Introduction to Dataset Shift
The lecture introduces the critical problem of dataset shift, which violates the core machine learning assumption that training and test data are drawn from the same distribution. This is a common and dangerous problem when deploying models in the real world.

Part 2: Identifying and Describing Dataset Shift
Before developing technical solutions, the first step is to identify and characterize potential shifts between populations.

Part 3: Transfer Learning - Adapting to New Distributions
The bulk of the lecture focuses on transfer learning, a set of techniques for adapting a model trained on a source distribution to perform well on a new, target distribution.
Linear Models

Deep Learning Models

Part 4: Defenses Against Adversarial Attacks
The lecture concludes by returning to adversarial examples and outlining a principled defense mechanism.

L25: Interpretability

Part 1: The Need for Interpretability
The lecture begins by establishing why interpretability is a critical issue for machine learning, especially in high-stakes domains like healthcare.

Part 2: Two Philosophies of Interpretability
The lecture outlines two main approaches to making complex models understandable.

  1. Post-Hoc Explanations ("Just-So Stories"): This is the dominant approach. First, you train a high-performance, complex "black box" model. Then, you use a separate technique to generate a simplified, local explanation for a specific prediction. This doesn't explain the entire model, but it provides a plausible, human-understandable rationale for a single decision.
  2. Inherently Interpretable Models: This approach sacrifices some potential performance for simplicity. You deliberately choose to use a simpler, more transparent model from the start, such as a decision tree or a sparse linear model, whose logic can be directly inspected and understood by a human.

Part 3: Post-Hoc Explanations in Detail
This section dives into the history and methodology of generating explanations for existing models.

Part 4: A Different Kind of Explanation - Attention Mechanisms
The lecture discusses another popular technique for interpretability in deep learning: attention.

Part 5: Inherently Interpretable Models in Detail
The final section explores the alternative philosophy: building models that are simple and transparent by design.

The lecture concludes with a summary of the topics covered throughout the entire course, from the basics of healthcare data to advanced topics like causality, fairness, and interpretability, and a thank you to the teaching assistants and students.

All writing