1
00:00:00,050 --> 00:00:03,890
Case study ensuring AI tool accuracy, fairness and robustness.

2
00:00:03,920 --> 00:00:06,560
A case study of media's diagnostic system.

3
00:00:07,070 --> 00:00:13,370
AI system accuracy and effectiveness must be rigorously tested post-deployment to ensure reliability,

4
00:00:13,400 --> 00:00:16,910
fairness, and robust performance in dynamic environments.

5
00:00:17,330 --> 00:00:23,390
Consider the case of Medhai, a healthcare technology company that recently deployed an AI powered diagnostic

6
00:00:23,420 --> 00:00:28,040
tool to assist doctors in identifying early signs of diabetic retinopathy.

7
00:00:29,330 --> 00:00:34,850
Sarah, the lead data scientist at Medai, along with her team, gathers data from various hospitals

8
00:00:34,850 --> 00:00:36,740
where the AI tool has been deployed.

9
00:00:36,770 --> 00:00:42,980
They collect input variables like patient demographics, retinal images, predicted outcomes, and actual

10
00:00:42,980 --> 00:00:46,310
outcomes by comparing predicted and actual outcomes.

11
00:00:46,340 --> 00:00:49,130
Sarah's team assesses the tool's accuracy.

12
00:00:49,160 --> 00:00:53,090
However, they recognize that accuracy alone is insufficient.

13
00:00:53,360 --> 00:01:00,270
They also calculate precision recall, F1 score, an O SoC to provide a more comprehensive performance

14
00:01:00,270 --> 00:01:00,990
assessment.

15
00:01:01,590 --> 00:01:07,200
In this medical context, achieving high recall is crucial since failing to identify a true positive

16
00:01:07,230 --> 00:01:09,210
could have serious consequences.

17
00:01:10,350 --> 00:01:16,170
Reflecting on the first phase, Sarah wonders how can they ensure that the AI tool maintains a balance

18
00:01:16,170 --> 00:01:18,240
between recall and precision?

19
00:01:18,720 --> 00:01:24,330
They decide to prioritize recall, but closely monitor precision to avoid an overwhelming number of

20
00:01:24,330 --> 00:01:27,990
false positives, which could lead to unnecessary treatments.

21
00:01:29,250 --> 00:01:32,280
Next, the team delves into error analysis.

22
00:01:32,460 --> 00:01:36,150
They categorize errors into false positives and false negatives.

23
00:01:36,390 --> 00:01:42,240
False positives are cases where the AI incorrectly predicts diabetic retinopathy, while false negatives

24
00:01:42,240 --> 00:01:43,740
are misdiagnoses.

25
00:01:44,220 --> 00:01:48,420
Understanding these errors helps in identifying weaknesses in the AI tool.

26
00:01:48,450 --> 00:01:54,610
For instance, they discover a higher rate of false negatives in patients with atypical retinal images.

27
00:01:55,000 --> 00:02:01,600
This insight prompts Sarah to ask what specific features in the retinal images are causing these errors.

28
00:02:02,380 --> 00:02:08,080
To address this, they employ more detailed image analysis techniques and find that certain features,

29
00:02:08,080 --> 00:02:12,940
like unusual blood vessel patterns, are not well represented in the training data.

30
00:02:13,390 --> 00:02:19,660
This leads them to retrain the model with more diverse retinal images, aiming to reduce the false negative

31
00:02:19,660 --> 00:02:20,200
rate.

32
00:02:21,670 --> 00:02:24,670
Sarah then turns her focus to bias detection.

33
00:02:24,760 --> 00:02:30,850
Given that the AI tool was trained on historical data, there is a risk of inherent biases such as demographic

34
00:02:30,850 --> 00:02:31,720
biases.

35
00:02:32,260 --> 00:02:37,240
The team conducts a fairness audit and discovers that the tool has a slightly higher error rate for

36
00:02:37,240 --> 00:02:40,030
patients from underrepresented ethnic groups.

37
00:02:40,930 --> 00:02:46,990
This raises an important question how can the team mitigate these biases to ensure fair treatment across

38
00:02:46,990 --> 00:02:48,710
all demographic Graphic groups.

39
00:02:50,030 --> 00:02:55,070
They implement fairness aware machine learning techniques to adjust the training process, ensuring

40
00:02:55,070 --> 00:02:58,730
that the model gives equal importance to all demographic groups.

41
00:02:59,570 --> 00:03:05,690
Additionally, they validate the changes by running the AI tool on a balanced test dataset, confirming

42
00:03:05,690 --> 00:03:07,790
that the biases have been mitigated.

43
00:03:09,920 --> 00:03:12,650
Robustness testing is another critical step.

44
00:03:13,010 --> 00:03:18,620
Sarah's team conducts stress testing and adversarial testing to evaluate the AI tools stability under

45
00:03:18,620 --> 00:03:19,910
various conditions.

46
00:03:19,940 --> 00:03:26,390
They intentionally introduce slight perturbations to retinal images to see how the AI tool responds.

47
00:03:26,840 --> 00:03:32,180
Surprisingly, they find that minor changes significantly impact the model's predictions.

48
00:03:32,660 --> 00:03:38,690
This vulnerability to adversarial attacks prompts Sarah to question what measures can they take to enhance

49
00:03:38,690 --> 00:03:41,570
the model's robustness against such perturbations.

50
00:03:43,070 --> 00:03:48,540
To counter this, they incorporate adversarial training into the model development process, where the

51
00:03:48,540 --> 00:03:52,200
AI tool is trained on both clean and perturbed images.

52
00:03:52,590 --> 00:03:58,050
This approach helps in developing a more robust model that can handle variations in input data.

53
00:03:59,970 --> 00:04:04,980
Continuous monitoring is crucial for maintaining the AI tools effectiveness over time.

54
00:04:05,400 --> 00:04:11,580
The team sets up a monitoring system that tracks performance metrics and flags any significant deviations.

55
00:04:11,850 --> 00:04:16,770
For instance, they notice a gradual decline in accuracy over several months.

56
00:04:17,070 --> 00:04:22,440
Sarah hypothesizes that this could be due to concept drift, where the data distribution changes over

57
00:04:22,440 --> 00:04:23,040
time.

58
00:04:24,930 --> 00:04:30,690
To adapt to these changes, the team uses online learning techniques that allow the model to update

59
00:04:30,690 --> 00:04:33,180
itself with new data continuously.

60
00:04:33,660 --> 00:04:39,930
This adaptive approach ensures that the AI tool remains effective even as patient demographics and medical

61
00:04:39,940 --> 00:04:41,410
practices evolve.

62
00:04:42,100 --> 00:04:46,630
Clear documentation and reporting are essential for transparency and accountability.

63
00:04:46,990 --> 00:04:52,510
Sarah ensures that every step of the post-hoc testing process is meticulously documented.

64
00:04:52,540 --> 00:04:58,630
This includes performance metrics, error analysis, bias detection, and robustness evaluation.

65
00:04:59,050 --> 00:05:04,270
Comprehensive documentation supports communication with stakeholders, including developers, users,

66
00:05:04,270 --> 00:05:05,800
and regulatory bodies.

67
00:05:06,220 --> 00:05:10,450
For example, to comply with the EU General Data Protection Regulation.

68
00:05:10,480 --> 00:05:17,050
The team maintains detailed records of the AI tools, decision making processes, ensuring transparency

69
00:05:17,050 --> 00:05:18,220
and accountability.

70
00:05:19,120 --> 00:05:25,330
Finally, integrating post-hoc testing insights into the broader AI system lifecycle is critical.

71
00:05:25,630 --> 00:05:31,690
Sarah establishes a feedback loop where insights gained from post-hoc testing inform future iterations

72
00:05:31,690 --> 00:05:33,070
of the AI tool.

73
00:05:33,100 --> 00:05:38,880
For instance, the additional diverse retinal images used to reduce false negatives, and the fairness

74
00:05:38,880 --> 00:05:43,620
aware machine learning techniques are incorporated into the model retraining process.

75
00:05:44,040 --> 00:05:50,280
This iterative improvement cycle helps the AI tool evolve, becoming more accurate, effective, and

76
00:05:50,280 --> 00:05:51,450
fair over time.

77
00:05:52,140 --> 00:05:56,580
Reflecting on the process, Sarah considers the broader implications of their findings.

78
00:05:56,940 --> 00:06:03,180
How can they generalize these practices to other AI applications within Medai, ensuring that these

79
00:06:03,180 --> 00:06:08,970
rigorous post-hoc testing procedures become standard practice across the company could significantly

80
00:06:08,970 --> 00:06:12,690
enhance the reliability and fairness of all their AI tools.

81
00:06:14,490 --> 00:06:20,130
Through this detailed case study, we've explored various dimensions of post-hoc testing for AI system

82
00:06:20,160 --> 00:06:21,930
accuracy and effectiveness.

83
00:06:22,410 --> 00:06:28,560
Validating model predictions requires a comprehensive approach encompassing error analysis to uncover

84
00:06:28,560 --> 00:06:30,630
and address specific weaknesses.

85
00:06:30,990 --> 00:06:32,790
Bias detection and mitigation.

86
00:06:32,790 --> 00:06:37,230
Ensure fairness while robustness testing guards against vulnerabilities.

87
00:06:37,590 --> 00:06:42,120
Continuous monitoring and adaptive learning maintain performance over time.

88
00:06:42,150 --> 00:06:48,180
Clear documentation underpins transparency and regulatory compliance, and integrating insights into

89
00:06:48,180 --> 00:06:50,940
the lifecycle fosters ongoing improvement.

90
00:06:51,750 --> 00:06:58,230
By addressing each question raised, we see how critical thinking and systematic analysis lead to practical

91
00:06:58,230 --> 00:06:59,160
solutions.

92
00:06:59,490 --> 00:07:01,170
Balancing recall and precision.

93
00:07:01,170 --> 00:07:03,270
Identifying specific error sources.

94
00:07:03,270 --> 00:07:10,110
Mitigating biases, enhancing robustness, adapting to concept drift, and ensuring transparency collectively

95
00:07:10,110 --> 00:07:13,410
contribute to the responsible deployment of AI technologies.

96
00:07:13,410 --> 00:07:19,470
This case study not only illustrates the importance of post-hoc testing, but also provides a framework

97
00:07:19,470 --> 00:07:25,500
for students to apply these principles in real world scenarios, enhancing their understanding and application

98
00:07:25,500 --> 00:07:26,820
of the lesson material.
