Lab 12: AI in the Real World — Healthcare, Finance, Security
Objective
Healthcare: AI as a Diagnostic Tool
Medical Imaging
Task
Model
Performance
vs. Human
# Conceptual: medical image classifier using transfer learning
import torchvision.models as models
import torch.nn as nn
class ChestXRayClassifier(nn.Module):
"""Classify chest X-rays into 14 pathologies (CheXNet architecture)"""
def __init__(self, num_classes=14):
super().__init__()
# DenseNet-121 pre-trained on ImageNet
self.densenet = models.densenet121(pretrained=True)
# Replace final layer for multi-label classification
num_features = self.densenet.classifier.in_features
self.densenet.classifier = nn.Sequential(
nn.Linear(num_features, num_classes),
nn.Sigmoid() # multi-label: each class independent 0-1 probability
)
def forward(self, x):
return self.densenet(x)
# Output: [0.92, 0.03, 0.87, ...]
# Labels: [Atelectasis, Cardiomegaly, Effusion, ...]
# Radiologist reviews AI flags — AI is the triage, human is the decisionDrug Discovery
Clinical Language Understanding
Finance: AI in Markets, Risk, and Fraud
Algorithmic Trading
Credit Scoring
Fraud Detection
Cybersecurity: AI Attacks and Defences
Threat Detection
AI-Generated Malware (The Threat)
Deepfakes and Social Engineering
AI for Defence
Legal, Education, and Creative Industries
Legal
Education
Creative Industries
Tool
Use Case
Controversy
The Production Reality Gap
Research
Production Reality
Career Paths in Applied AI
Role
Skills
Typical Entry
Further Reading
PreviousLab 11: Vision AI — How Machines See the WorldNextLab 13: The Ethics of AI — Bias, Hallucinations, Deepfakes
Last updated
