Module 14 · Running the PoC, the interview, and capstone projects
Time: as long as you like · Lab: python course/labs/lab14_conformal.py
You need: Modules 1–13. Part B's question bank points to the module behind each answer; Part C assumes you can run the labs.
This module has three parts:
- Part A, running a proof of concept: the phases, the coordination documents and the final evaluation report. This is the project-coordination half of the internship.
- Part B, interview preparation: a pitch, how to structure answers, and a question bank with model answers, including questions specific to the ISS role.
- Part C, capstone projects: extensions to TrayCheck for after the interview.
Part A: running a proof of concept
A proof of concept (PoC) tests whether an idea works well enough, in the real setting, to justify further investment. Its output is a decision: continue, change course, or stop. Everything in a PoC should serve that decision. The position description's final item says the same: "produce a clear final PoC evaluation to support ISS's decision on future development and implementation".
The phases
| Phase | What happens | Key output | Modules |
|---|---|---|---|
| 1. Initiate | Agree objectives, scope, stakeholders, governance (privacy, security, clinical), and the performance measures with targets | Project plan; agreed measures | 10 §1, 13 |
| 2. Baseline | Measure the current process before the AI: how waste is recorded today, how long it takes, how accurate it is | Baseline figures | 10 §1, 12 §1 |
| 3. Set up and test | Install and configure; prepare the test dataset; run UAT scenarios; train users | UAT results; trained staff | 9 §7, 11 §5 |
| 4. Pilot | Run in real service; collect data; monitor weekly; log issues and model observations | Pilot dataset; issues register; weekly updates | 11, 12 §7 |
| 5. Evaluate | Compare results with the agreed measures, with uncertainty; analyse errors, operations and feedback | Evaluation results | 10 |
| 6. Recommend | Continue / change / stop, with reasons, costs and lessons learned | Final evaluation report | Part A below |
The baseline is the step most often skipped, and the one that matters most. Without it, "the AI found 18% plate waste" can't be compared with anything. Was it 25% before, or 15%? Is the AI's figure more accurate than staff estimates?
The coordination documents
The position description lists these duties: maintain the project plan, timeline and milestones; prepare agendas and capture meeting notes; maintain action registers; escalate issues. The standard documents:
| Document | What it holds | Updated |
|---|---|---|
| Project plan | Phases, milestones with dates, owners, dependencies | Weekly |
| Action register | Action, owner, due date, status; every action from every meeting | After each meeting |
| Decision log | What was decided, by whom, when, and why | When decisions are made |
| RAID log | Risks (may happen), Assumptions (believed true, unverified), Issues (happening now), Dependencies (what we wait on) | Weekly |
| Issues and improvement register | Problems found in testing and the pilot, including model observations (Module 11 §5) | Continuously |
| Status report | Progress, RAG status (red / amber / green), top risks, decisions needed | Weekly or fortnightly |
| Meeting notes | Attendees, decisions, actions (copied to the register) | Each meeting |
Examples of RAID entries for a food-recognition PoC:
| Type | Example |
|---|---|
| Risk | Staff skip photos during busy dinner service, so dinner is under-represented in the data |
| Assumption | The vendor's model has been trained on photos similar to this hospital's trays |
| Issue | Ward 4's scale is not connected; returned weights are missing for that ward |
| Dependency | Privacy approval from SA Health before any photos are stored |
Escalation. Escalate when an issue threatens a milestone, the agreed measures, or patient privacy and safety, and the people in the room can't resolve it. Escalate early, with the facts, the impact and the options.
The final evaluation report
Lead with the recommendation; support it with results against the agreed measures:
- Recommendation (one paragraph): continue, change or stop, and why.
- Objectives and agreed measures, as set in phase 1.
- What was tested: sites, period, number of trays, model version, data exclusions.
- Results against measures: a table like the one below, with ranges.
- Model observations: where and how it fails (dishes, wards, lighting, confident mistakes).
- Operational findings: what the data shows about waste, workload and workflow.
- User feedback.
- Data quality and limitations: what the results do not show.
- Privacy, security and governance findings.
- Costs and next steps, and lessons learned.
An illustrative results table (targets invented for the example; results from TrayCheck):
| Measure | Target | Result | Met? |
|---|---|---|---|
| Dish identification accuracy, all trays | ≥ 90% | 88.75% (95% range 83%–93%) | Inconclusive: the range includes the target |
| Error among trays nobody reviews | ≤ 5% | 4.1% on test photos; 3.6% (1%–12%) from pilot spot checks | Met on test; pilot range too wide to confirm |
| Share of trays needing review | ≤ 30% | 24% on test photos; 32% in the simulated month | Met on test; not in the simulated month |
| Waste estimate vs weighing | Bias within ±10% | Not measured: no weighed reference | Not assessed: gap in the test plan |
"Inconclusive" and "not assessed" are legitimate, useful results. They tell the decision-makers exactly what more evidence would be needed, which is better than a confident claim the data doesn't support.
Part B: interview preparation
Your 60-second pitch
"To prepare for this role I built TrayCheck, a small prototype of the PoC you describe. It recognises the dish in a tray photo, decides when a person needs to check it, and turns the checked records into reports on corrections and food waste.
The model is MobileNetV2, pre-trained on ImageNet and fine-tuned on 400 Food-101 photos of four dishes. On 160 photos it never saw it's 88.75% accurate, about 83 to 93% given the sample size. But the part I learned most from is the evaluation around it: a person checks a tray if the model is unsure, if its answer isn't on today's menu, or as a random 10% spot check, which estimates the error rate in records nobody checked. Every record keeps the model's original answer and the person's decision, so the dashboard shows where the model fails and how much checking it costs. The month of kitchen operations on the dashboard is simulated and clearly labelled as such."
How to structure answers
- Technical questions: definition → example from TrayCheck → what it means for the PoC. For example: "Precision is the share of the model's 'bibimbap' answers that really are bibimbap. In TrayCheck it's 86%, so about 1 in 7 trays recorded as bibimbap is something else. In a PoC that would mean bibimbap's counts and waste figures are inflated."
- Behavioural questions ("tell me about a time you…"): the STAR structure. Situation (one or two sentences of context), Task (what you were responsible for), Action (what you did, the longest part), Result (what happened, with a number if possible, and what you learned). Prepare four or five real stories from your studies, internship and projects that can each answer several questions.
- If you don't know: say so, then reason out loud from what you do know. "I haven't used that, but here's how I'd approach it" is a strong answer for an intern.
Question bank
Role-specific: evaluating an AI PoC at ISS
How would you evaluate the vendor's food identification accuracy? (Modules 9, 10) Agree first what decision the result supports, the ground truth (a person's confirmed dish), the metric and target, and the test set. Collect a representative sample across dishes, wards and meal periods, split by tray and day, and enough of it: about 140 checked trays per group for ±5 points. Report accuracy with a range, plus per-dish precision and recall and the main confusions, and compare with the current process as a baseline.
How would you test portion or waste estimates? (Module 10 §6) Weigh a sample of trays and compare: report the bias (average over- or under-estimate), the mean absolute error, and Bland–Altman limits of agreement. Whether the agreement is good enough depends on the use: ward-level trends tolerate more error than an individual patient's intake.
A vendor says their model is 95% accurate. What do you ask? (Modules 1, 9, 10) On what data, how many examples, from which sites and when; whether any of it was used for training or tuning; accurate at what (dish or portion); the per-dish breakdown and the baseline; and what happens when the model is unsure.
What does "training and testing data" mean, and why does it matter here? (Modules 1, 9) Training data is what the model's parameters were fitted to; test data is held back to measure performance honestly on examples the model never saw. If test trays overlap with training trays, or come from a different hospital than the one deploying it, the accuracy figure won't hold here.
How would you explain model accuracy to a kitchen manager? (Module 10 §8) In their terms: "about 9 in 10 trays are named correctly. In a 500-tray service, about 380 need no check and about 16 of those will carry the wrong dish, which spot checks let us estimate." Lead with what it means for their decisions, give a range, and say what's uncertain.
What is predictive analytics, and where could it help here? (Modules 1, 12 §6) Using historical records to forecast an outcome: meals needed per ward tomorrow, or plate waste by dish next week. The first test is whether a model beats a simple baseline such as "same as last week" by enough to matter operationally.
How would you identify patterns and anomalies in the PoC data? (Modules 10 §7, 12 §6) Start descriptive: waste by dish, ward, meal period and day, with counts. Look for outliers (a day or ward far from its usual level) and check data quality before interpreting them. Then error analysis: which dishes the model confuses, and under what conditions.
What data quality problems would you expect, and how would you check? (Module 9 §1) Missing weights, impossible values (returned more than served), duplicate scans, mislabelled dishes and late entries. Check completeness, validity, accuracy, consistency, uniqueness and timeliness; ask whether problems are random or systematic, and always report how many records were excluded.
How would you design UAT for this system? (Module 11 §5) Scenarios that cover how the workflow handles errors, not just the happy path: confident correct answers, unsure ones, off-menu answers, corrections, missing and impossible weights, and known limitations like non-food photos. Measure review time and how often people override the model, and log everything in an issues register.
What privacy issues does a hospital food PoC raise? (Module 13) Tray photos can capture faces, name cards, bed numbers and diet codes; consumption data linked to a patient is health information. Approval before collection, collect only what's needed, retention limits, access control, and involve ISS's privacy and security functions and SA Health's Digital Health team early.
The pilot results are inconclusive but a stakeholder wants to roll out anyway. What do you do? Present what the evidence does and doesn't show, with ranges, and what it would take to be conclusive (more trays, a weighed sample). Offer options, such as an extended pilot or a limited rollout with monitoring. The decision belongs to the sponsor; my job is to make the evidence clear.
ML fundamentals
What's the difference between AI, ML and deep learning? (Module 1) AI is the goal: systems that make good decisions. Machine learning is a method: you write a model with adjustable parameters and fit them to labelled examples instead of writing the decision rule. Deep learning is machine learning where the features are learned too, by many stacked layers.
What is overfitting, and how do you detect it? (Module 6) When a model fits its training data, including its noise, better than it generalises. You see it as a gap between training and validation performance: TrayCheck's head reached about 95% on training photos against 82–84% on validation, partly overfitting and partly noisy validation labels.
What loss do you train with, and why? (Modules 2, 4) Cross-entropy: the negative log of the probability given to the right dish. It punishes confident mistakes heavily and gives smooth gradients.
What is backpropagation? (Module 5) The chain rule applied from the loss backwards through every layer, reusing intermediate values, to get every parameter's gradient for roughly the cost of one forward pass.
What is transfer learning? (Module 8) Reusing a model trained on a large dataset as the starting point for a related task with little data. TrayCheck reuses ImageNet features and trains only a new head, then fine-tunes the top layers.
TrayCheck: the model and training
Why MobileNetV2? (Module 8) Small (2.26 million backbone parameters), fast on a CPU, strong transfer from ImageNet, well supported in Keras. Alternatives: EfficientNet-B0, ResNet-50.
Walk me through training. (Module 8) Two stages with the Adam optimiser. First the new head on a frozen backbone at learning rate 5e-4, with early stopping on validation loss. Then the last 20 backbone layers (which contain six convolution layers) fine-tuned at 1e-5 with batch normalisation frozen. Augmentation: horizontal flips and rotations up to ±18°; dropout 0.25 in the head.
Why freeze batch normalisation when fine-tuning? (Modules 7, 8) Small food batches would overwrite the ImageNet running statistics that everything downstream relies on, which can wreck accuracy.
What does a depthwise separable convolution do? (Module 7) It splits a standard convolution into a per-channel spatial filter plus a 1×1 channel mixer: about 8.5 times cheaper for a 144-channel layer.
TrayCheck: evaluation
How accurate is it, really? (Module 10) 142 of 160 test photos, 88.75%, with a 95% interval of about 83–93%. These are restaurant photos, not hospital trays.
Which dish is hardest? Bread pudding had the lowest recall (82.5%), but the per-dish intervals overlap. With 40 photos each I wouldn't claim it's genuinely harder.
How did you choose the review threshold? On validation photos only: the lowest threshold where at most 5% of unflagged photos are wrong, which gave 0.85. On test: 24% flagged, 4.1% error among the rest.
Are the scores calibrated? Roughly: expected calibration error about 0.03 on test. Temperature scaling fitted on validation didn't help, probably because validation labels are noisier than test labels.
What's a confident mistake, and how do you catch it? A wrong answer with a high score, for example ribs next to rice called bibimbap at 99%. A threshold can't catch these; the menu check, spot checks and people noticing can.
TrayCheck: human review and system design
Why spot-check trays the model is confident about? (Module 11) To measure the error rate of records nobody checks. Random sampling makes the estimate unbiased; I report it with a Wilson interval.
How many spot checks do you need? About 280 for ±2 points at a 3% error rate; about 1,100 for ±1 point.
What's stored per record and why? (Module 12) The original prediction and score, flag reasons, final dish, derived checked and corrected flags, service details, optional weights with their source, and the model version. That's enough to audit the records and compare models.
How would you scale it to several kitchens? A server database behind an API, logins, one central model service, monitoring of correction rates, and a controlled retraining loop evaluated on held-out kitchens.
Behavioural (prepare real STAR stories)
These need your own experiences; model answers would be invented. For each, pick a real story and draft it in STAR form:
- Tell us about a time you coordinated work between people with different priorities.
- Tell us about a time you explained something technical to a non-technical person.
- Tell us about a time you found a problem in data or results that others had missed.
- Tell us about a time a project didn't go to plan. What did you do?
- Why this role, and why healthcare food services?
- How do you keep track of many tasks and deadlines?
TrayCheck itself is a good story for the third and fourth: for example, finding that temperature scaling made calibration worse on test data, and why (Module 10 §4).
Questions to ask them
- What will the vendor's system measure in the first phase: dish identification, portions, waste, or all three?
- What ground truth will be available: weighed trays, staff confirmation, dietitian assessment?
- Have the performance measures and targets for the PoC been agreed yet, and who signs them off?
- How has the vendor's model been trained and tested so far: on other hospitals' trays, or generic food photos?
- What would success look like for ISS at the end of the internship?
- How will privacy approval for tray photos be handled with SA Health?
Final self-check
You're ready when you can explain each of these without notes, in two or three sentences, with a TrayCheck example and what it means for the PoC:
AI vs ML vs deep learning · training, validation and test data · overfitting · transfer learning · the confusion matrix · precision vs recall · why accuracy can mislead · thresholds and the review rule · calibration · confidence intervals and sample size · bias, MAE and limits of agreement · data-quality dimensions · leakage · distribution shift · Cohen's kappa · the three review flags and spot checks · UAT for an AI workflow · the PoC phases and the baseline · what TrayCheck must never be used for.
Part C: capstone projects
For after the interview. Each lists the files to touch, how to evaluate fairly, and the test to add. Do them on a new git branch.
C1. Show the spot-check interval on the dashboard: done, use it as a worked example
- Why: Module 11 showed "2 of 55" means roughly 1–12%; the dashboard used to show only 3.6%.
- What was built, in the order you'd build it yourself:
- Function:
wilson_interval(k, n)inreview_rules.py. - Unit tests:
WilsonIntervalintests/test_review_workflow.py. They check exact closed-form values (0 of n gives an upper bound of z²/(n + z²)) and that the range always contains the estimate. That test caught a real edge case: for 55 of 55 the upper bound came out as 0.9999999999999999 instead of 1, so the function now returns the exact value at the edges. - UI: the Hidden mistakes section in
app.pynow reads "2 of 55 … 3.6%, plausibly 1.0%–12.3% … about 20 of them (somewhere between 6 and 68)". - App tests: two tests in
tests/test_app.pycheck that text on the real dashboard.
- Function:
- Study it:
git log --oneline -- review_rules.pyfinds the commit;git show <commit>shows the whole change. Then do C2 the same way: function → tests → interface → app test.
C2. Test-time augmentation
- Why: Lab 8 showed a confident mistake flipping to the right answer under a random flip. Averaging predictions over the photo and its mirror image may fix some fragile mistakes.
- Do: in a copy of
vision_score.py, score each photo and its horizontal flip (tf.image.flip_left_right) and average the four probabilities. - Evaluate fairly: decide on validation photos whether it helps; only then measure test accuracy once, with its interval. Note the cost: two forward passes per photo.
C3. Conformal prediction sets in the review screen
- Why: Lab 14 shows that sets of dishes can replace "one answer + a score": one-dish sets are auto-accept candidates; two- or three-dish sets become a short list for the reviewer.
target 90%: test coverage 95.6%, average set size 1.17, single-dish sets 84%
test/baby_back_ribs/2134746.jpg real baby_back_ribs set ['bibimbap']
- Think about: empty sets (a strong "unknown" signal); confident mistakes still produce a one-dish wrong set, so keep the menu check and spot checks; and the assumption that calibration data resembles deployment data.
- Read: Angelopoulos & Bates, A Gentle Introduction to Conformal Prediction, §1–2.
C4. Reviewer identity and agreement
- Why: reviewers make mistakes too (Modules 9 §5 and 11 §4).
- Do: add
reviewer_initials(Lab 12 shows the migration) and a "double check" mode where a random 5% of checked trays go to a second person; report agreement with Cohen's kappa. - Test: the schema migration on an existing database loses no rows; the kappa function on known examples.
C5. A fifth dish, end to end
- Why: exercises the whole offline pipeline (Modules 8–10).
- Do: add a class from
data/food_mnist_*.json(for exampleapple_pie) invision_prepare.py; download; retrain; re-score; re-choose the threshold; update the simulation's per-dish leftover table; regenerate the model card (Lab 13). - Watch for: the model version changes, so old records keep the old version; compare per-dish recall with intervals; check that the review threshold still meets the rule on validation.
C6. "Not one of my dishes": open-set detection (research)
- Why: the model always names one of four dishes (Module 1, question 10).
- Ideas: flag photos whose 1,280-number feature vector (Lab 8) is far from every training photo's, or whose top score is low and whose conformal set is empty. Evaluate using photos of other Food-101 dishes as the "unknown" class.
Go deeper
Short on time? The study guide says which of these to read first.
- Huyen, Introduction to Machine Learning Interviews, free online: the chapters on the interview process and on ML fundamentals questions. huyenchip.com/ml-interviews-book
- Google, Rules of Machine Learning, Rules #1–#3, again: they are good interview material on when ML is and isn't worth it. developers.google.com/machine-learning/guides/rules-of-ml
- Angelopoulos & Bates (2021), A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification, §1–2. arxiv.org/abs/2107.07511
- Huyen, Designing Machine Learning Systems (2022), Chapter 11, The Human Side of Machine Learning. Paid.