AL-504-A AI in Health Care

AI in Health Care (AL-504-A) Important Questions

These are the 10 AI in Health Care (AL-504-A) topics we chose from the RGPV syllabus for RGPV B.Tech CSE-AIML semester 5. No past paper of this subject is on this site yet, so we could not count repeats.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 1 (2023 to 2023)
  • Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these

10 AI in Health Care topics from the syllabus

Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.

AI in Health Care important questions with answers

Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.

Q1. Medical image diagnosis with a CNN

Short answer. Medical image diagnosis uses a model, most often a convolutional neural network (CNN), to read a scan and give a score for each disease. The doctor uses the score as a second opinion.

From the syllabus · Unit 1

From the papers

  • “Unit 1: Disease detection with computer vision, Medical Image Diagnosis.” (Syllabus)

Write these points

How a CNN reads a scan

  • Convolution: small filters slide over the image and pick up edges, spots and textures.
  • Pooling: the feature map shrinks, so the network keeps strong signals and drops fine noise.
  • Deep layers: early layers find edges. Later layers find shapes such as a nodule, a fluid patch or an enlarged heart.
  • Output layer: a sigmoid gives one score from 0 to 1 for each disease. One X-ray can show more than one disease, so each label gets its own score.

Where it is used

  • Chest X-ray: pneumonia, fluid, a mass or an enlarged heart.
  • Skin photos: a mole that may be melanoma.
  • Eye photos: diabetic retinopathy. Breast scans: suspicious areas on a mammogram.

Size of the feature maps (from calc.py).

Input X-ray: 320 x 320 pixels, one grey channel.

A 3 x 3 filter with stride 1 and no padding gives 318 x 318. A 2 x 2 pool gives 159 x 159.

A second 3 x 3 filter gives 157 x 157. A second pool gives 78 x 78.

One layer of 32 such filters has 3 x 3 x 1 x 32 + 32 = 320 weights.

Remember. Most real models start from a network trained on everyday photos and then retrain it on scans. This is called transfer learning. It needs far fewer labelled scans.

Real-life example

A district hospital in Madhya Pradesh has many chest X-rays each day and one radiologist. A model reads every X-ray first and gives each a score for pneumonia. The radiologist opens the high scores first. The model does the sorting, while the doctor still writes the report.

Diagram: Medical image diagnosis with a CNN

Difference between CNN and a human radiologist

PointCNNRadiologistSame or opposite
Learns from labelled imagesYesYes, during trainingSame
Time per imageUnder a secondMinutesOpposite
Gets tired late at nightNoYesOpposite
Explains the reasonWeakly, with heat mapsClearlyOpposite
Signs the final reportNoYesOpposite

Exam tip. Draw the CNN chain from input to sigmoid. Name the job of each layer. Then show the size steps from the worked example. Marks are lost when the output layer is left out.

Back to the topic list

Q2. Class imbalance and weighted loss

Short answer. Class imbalance means one class, usually the disease, has far fewer examples than the other. A model trained on such data learns to say "normal" for nearly everything, so we fix it with weighted loss or resampling.

From the syllabus · Unit 1

From the papers

  • “Unit 1: Image Classification and Class Imbalance.” (Syllabus)

Write these points

Why imbalance hurts

  • In screening data only a small share of images show the disease.
  • The plain loss is mostly made of normal images, so the model learns them first.
  • A model that always says normal can show high accuracy and still miss every patient.

Fixes

  • Weighted loss: multiply the positive loss by w_pos = share of negatives. Multiply the negative loss by w_neg = share of positives.
  • With these weights both classes add the same amount to the total loss.
  • Oversampling: show the rare images more often, or make new ones by augmentation.
  • Undersampling: use only part of the normal images. This throws data away.

1,000 X-rays, 100 with disease (from calc.py).

Share of positives = 0.1, share of negatives = 0.9. A model that always says normal gets accuracy 0.9.

Weights: w_pos = 0.9 and w_neg = 0.1. Contribution of each class: 0.9 x 0.1 = 0.09 and 0.1 x 0.9 = 0.09, equal.

Model giving p = 0.1 to every image: plain loss = 0.3251, of which positives give 0.2303 and negatives 0.0948.

Weighted: positives give 0.2072 and negatives 0.0095. The loss now pushes hard on the missed positives.

Real-life example

A railway station has 100 ticket checkers' reports in a day and only a few show a real fraud. A new clerk who marks every report as fine is right most of the time. He still catches no fraud. The station tells him that each missed fraud counts nine times more than a false alarm. Now he studies the rare cases closely.

Fixing class imbalance
Fixing class imbalance

Difference between weighted loss and oversampling

PointWeighted lossOversamplingSame or opposite
GoalBalance the classesBalance the classesSame
Changes the dataNoYesOpposite
Changes the lossYesNoOpposite
Risk of overfitting rare imagesLowHigherOpposite
Easy to codeYesYesSame

Exam tip. Start with the trivial model that gets 90 percent accuracy. Then write w_pos and w_neg and show that both classes add 0.09. Draw the flow of the fix.

Back to the topic list

Q3. Sensitivity, specificity and accuracy as conditional probability

Short answer. Sensitivity is the share of sick people the test catches, P(+ | disease), while specificity is the share of healthy people it clears, P(- | normal). Accuracy is a mix of the two, weighted by prevalence.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Sensitivity, Specificity and Evaluation Metrics, Accuracy in terms of conditional probability.” (Syllabus)

Write these points

Definitions

  • Sensitivity = TP / (TP + FN).
  • Specificity = TN / (TN + FP).
  • PPV (precision) = TP / (TP + FP): chance of disease when the test is positive.
  • NPV = TN / (TN + FN): chance of no disease when the test is negative.
  • Prevalence = share of people who have the disease.

Accuracy as conditional probability

Accuracy = P(correct) = P(correct | disease) P(disease) + P(correct | normal) P(normal).

So Accuracy = Sensitivity x Prevalence + Specificity x (1 - Prevalence).

1,000 people, prevalence 10 percent (from calc.py).

TP = 90, FN = 10, FP = 45, TN = 855.

Sensitivity = 90 / 100 = 0.9. Specificity = 855 / 900 = 0.95.

Accuracy = 0.9 x 0.1 + 0.95 x 0.9 = 0.945. Direct count (90 + 855) / 1000 also gives 0.945.

PPV = 90 / 135 = 0.6667. NPV = 855 / 865 = 0.9884.

Remember. With a rare disease most people are normal, so accuracy follows specificity. A high accuracy can hide a low sensitivity.

Real-life example

A blood sugar camp in a village tests 1,000 people. The test catches 9 of every 10 diabetics, which is its sensitivity. It clears 95 of every 100 healthy people, which is its specificity. Still, only two of three people with a positive result truly have diabetes. That is why a positive camp result is always followed by a lab test.

Four outcomes of a test
Four outcomes of a test

Difference between sensitivity and specificity

PointSensitivitySpecificitySame or opposite
Conditional onDisease presentDisease absentOpposite
Formula usesTP and FNTN and FPOpposite
Range0 to 10 to 1Same
Changes with thresholdYesYesSame
Raised by a lower thresholdYesNoOpposite

Exam tip. Write both formulas, then derive accuracy from conditional probability in one line. Fill one confusion matrix and compute all five numbers.

Back to the topic list

Q4. ROC curve and AUC

Short answer. The ROC curve plots sensitivity against the false positive rate (1 - specificity) for every threshold. Its area, the AUC, is the chance that a random sick patient gets a higher score than a random healthy one.

From the syllabus · Unit 2

From the papers

  • “Unit 2: ROC curve and Threshold.” (Syllabus)

Write these points

How to draw it

  1. Sort patients by score from high to low.
  2. Start at (0, 0) with the threshold above every score.
  3. Lower the threshold past each score. A sick patient moves the point up. A healthy patient moves it right.
  4. End at (1, 1) where everyone is called positive.

Reading it

  • A curve near the top left corner is a strong model.
  • The diagonal line is a coin toss, AUC = 0.5.
  • AUC = 1 means every sick patient scores above every healthy one.
  • The curve does not depend on prevalence, so it compares models fairly.

AUC of the 10-patient example (from calc.py).

4 sick and 6 healthy patients give 4 x 6 = 24 pairs.

In 21 pairs the sick patient has the higher score.

AUC = 21 / 24 = 0.875.

Real-life example

Think of a college entrance test used to pick students who will pass the final year. Take one student who later passed and one who failed. If the test score of the passing student is higher in most such pairs, the test ranks well. The AUC is that share of pairs.

Diagram: ROC curve and AUC

Difference between ROC curve and confusion matrix

PointROC curveConfusion matrixSame or opposite
Number of thresholdsAllOneOpposite
Shows sensitivityYesYesSame
Single summary numberAUCAccuracy and othersOpposite
Depends on prevalenceNoYes, for PPV and accuracyOpposite
Built from model scoresYesYesSame

Exam tip. Draw the axes with labels, the diagonal and a stepped curve. Define AUC as a ranking chance and compute it by counting pairs.

Back to the topic list

Q5. 2D U-Net and 3D U-Net

Short answer. U-Net is a segmentation network shaped like a U: the encoder shrinks the image to learn what is in it. The decoder grows it back to say where it is, with skip connections carrying fine detail across.

From the syllabus · Unit 2

From the papers

  • “Unit 2: 2D U-Net and 3D U-Net.” (Syllabus)

Write these points

Parts

  • Encoder: repeated convolution and pooling. Size halves at each level and the number of filters grows.
  • Bottleneck: the smallest map, holding the most general features.
  • Decoder: up-convolution doubles the size at each level.
  • Skip connections: each decoder level joins the encoder map of the same size, so edges stay sharp.
  • Output: a 1 x 1 convolution with sigmoid or softmax gives a class score for every pixel.

2D U-Net and 3D U-Net

  • 2D U-Net takes one slice at a time. It needs less memory, but it loses the link between slices.
  • 3D U-Net takes a sub-volume with 3D filters. It keeps depth information but needs much more memory.
  • With 3D U-Net we split the MRI into small sub-volumes and stitch the masks back.

Level sizes for a 256 x 256 slice.

Encoder: 256, 128, 64, 32. Bottleneck: 16. Each step halves the side.

Decoder: 32, 64, 128, 256. The output mask is again 256 x 256.

Real-life example

A map maker first looks at a whole city from a hill to know where the river and the market are. Then she walks the streets to draw each lane exactly. She keeps her street notes beside the hill view while drawing. The hill view is the encoder, the street notes are the skip connections.

Diagram: 2D U-Net and 3D U-Net

Difference between 2D U-Net and 3D U-Net

Point2D U-Net3D U-NetSame or opposite
InputOne sliceSub-volumeOpposite
U shape with skip linksYesYesSame
Memory neededLowerHigherOpposite
Uses depth informationNoYesOpposite
OutputMask per pixelMask per voxelOpposite

Exam tip. Draw the U with sizes at each level and the skip links. State what encoder, decoder and skip links each do. Then give two differences between 2D and 3D.

Back to the topic list

Q6. Medical prognosis and linear prognostic models

Short answer. Medical prognosis predicts the future risk of an event, such as a stroke or death, for one patient. A linear prognostic model adds up weighted risk factors to make a score, often turned into a probability.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Linear prognostic models, Medical Prognosis, Atrial fibrillation, Liver Disease Mortality, Risk of heart disease.” (Syllabus)

Write these points

Where prognosis is used

  • Atrial fibrillation: scores estimate the yearly risk of stroke. They guide who should get blood thinners.
  • Liver disease mortality: scores built from lab values estimate the short-term risk of death. They help rank patients for a transplant.
  • Heart disease risk: age, blood pressure, cholesterol, smoking and diabetes give a 10-year risk.
  • The common shape: risk = f(b0 + b1 x1 + b2 x2 + ...).

Building the model

  1. Pick the outcome and the time window.
  2. Collect risk factors, often transformed, such as log of a lab value.
  3. Fit weights with logistic regression for a yes or no outcome.
  4. Add interaction terms when one factor changes the effect of another.
  5. Evaluate with the C-index (next answer).

Illustrative logistic model (from calc.py, made-up weights).

z = -7.0 + 0.05 age + 0.02 BP + 0.7 smoker. Risk = 1 / (1 + e^(-z)).

Age 60, BP 150, smoker: z = -0.3, risk = 0.4256.

Age 40, BP 120, non-smoker: z = -2.6, risk = 0.0691.

Smoking multiplies the odds by e^0.7 = 2.0138.

Remember. The weights above are made up to show the method. Real scores, such as the stroke score in atrial fibrillation or the liver disease score, have their own published items and points. They are not given here because we could not confirm them.

Real-life example

An insurance agent sets a premium from age, smoking and past illness. Each factor adds points and the total decides the price. A doctor's risk score works the same way, but the total is a chance of a heart attack. The doctor uses it to decide who gets medicine early.

Linear prognostic model
Linear prognostic model

Difference between diagnosis and prognosis

PointDiagnosisPrognosisSame or opposite
QuestionWhat disease now?What will happen later?Opposite
Uses patient dataYesYesSame
Time windowPresentFuture, such as 10 yearsOpposite
OutputDisease labelRisk of an eventOpposite
Evaluated bySensitivity, AUCC-indexOpposite

Exam tip. Define prognosis and give the three syllabus examples. Write the linear model formula and compute one risk with numbers. Say that real scores have fixed published items.

Back to the topic list

Q7. Evaluating prognostic models: concordant pairs, risk ties and the C-index

Short answer. The C-index (concordance index) checks whether a prognostic model ranks patients correctly. It is the share of permissible pairs in which the patient with the worse outcome got the higher risk score.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Evaluating Prognostic Models, Concordant Pairs, Risk Ties, Permissible Pairs.” (Syllabus)

Write these points

Pairs

  • Permissible pair: two patients with different outcomes, so we know who should rank higher.
  • Pairs with the same outcome are not permissible and are skipped.
  • Concordant pair: the patient with the event has the higher score.
  • Risk tie: both patients have the same score. It counts as half.

Formula

C-index = (concordant + 0.5 x risk ties) / permissible pairs.

  • C = 1: perfect ranking. C = 0.5: random. Below 0.5: the model ranks the wrong way round.
  • For survival data, a pair is permissible only when we know who had the event first, so censoring is handled.

Four patients (from calc.py).

Scores and outcomes: A 0.8 event, B 0.6 no event, C 0.6 event, D 0.2 no event.

Permissible pairs: A-B, A-D, C-B, C-D = 4.

A-B, A-D and C-D are concordant = 3. C-B is a risk tie = 1.

C-index = (3 + 0.5 x 1) / 4 = 0.875.

Real-life example

A cricket selector ranks young players by a fitness score. A year later some made the state team and some did not. For each pair of one selected and one not selected player, we check if the selected one had the higher score. The share of correct pairs tells how good the score was.

Sorting every pair
Sorting every pair

Difference between C-index and AUC

PointC-indexAUCSame or opposite
Counts correctly ordered pairsYesYesSame
Random model gives0.50.5Same
Handles censored time dataYesNoOpposite
Typical usePrognosis, survivalDiagnosisOpposite
TiesCount as halfCount as halfSame

Exam tip. Define permissible, concordant and tie with one line each. Write the formula. Work a four-patient example and list every pair.

Back to the topic list

Q8. Survival function and the Kaplan-Meier estimate

Short answer. A survival model predicts the time until an event, such as death or relapse. The survival function S(t) = P(T > t) is the chance that a patient is still event-free after time t.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Survival Model, Survival function, collecting time data, estimating the survival function.” (Syllabus)

Write these points

Collecting time data

  • For each patient record the start time, the end time and whether the event happened.
  • Censoring: a patient leaves the study or the study ends before the event. We only know the event came later than the last visit.
  • Censored patients must not be dropped or counted as events. Both choices bias the curve.

Kaplan-Meier estimate

  • At each event time t: S(t) = S(previous) x (1 - d / n).
  • d = events at t. n = patients still at risk just before t.
  • Censored patients leave the risk set without making a drop.
  • S(t) starts at 1 and never rises.

Eight patients (months; c = censored) (from calc.py).

Data: 2, 3c, 4, 4, 6c, 8, 9c, 10.

t = 2: n = 8, d = 1, S = 1 x 7/8 = 0.875.

t = 4: n = 6 (one censored at 3), d = 2, S = 0.875 x 4/6 = 0.5833.

t = 8: n = 3, d = 1, S = 0.3889. t = 10: n = 1, d = 1, S = 0.

Real-life example

A mobile shop sells 100 phones and tracks how many still work each month. Some buyers move to another city and stop reporting. The shop cannot say those phones broke, so it simply stops counting them. The share still working each month is a survival curve.

Diagram: Survival function and the Kaplan-Meier estimate

Difference between survival model and a classifier

PointSurvival modelClassifierSame or opposite
OutputProbability over timeOne yes or no scoreOpposite
Handles censored patientsYesNoOpposite
Uses patient featuresYesYesSame
ExampleS(5 years)Disease now or notOpposite
Needs labelled dataYesYesSame

Exam tip. Define S(t) and censoring first. Then build the Kaplan-Meier table step by step and draw the step curve. Never treat a censored patient as an event.

Back to the topic list

Q9. Cox model: relative risk, individual and baseline hazard, survival trees

Short answer. The Cox proportional hazards model gives each patient a hazard h(t | x) = h0(t) exp(b x), where b x is the weighted sum of features. The baseline hazard h0(t) is shared, while exp(b x) is the patient's relative risk.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Relative risk, Individual vs. baseline hazard, Survival Trees.” (Syllabus)

Write these points

Parts

  • Baseline hazard h0(t): the hazard of a patient with all features at 0 or at the reference value.
  • Individual hazard: the baseline scaled by exp(b . x).
  • Hazard ratio: exp(b) for a one-unit rise in one feature, other features held fixed.
  • Proportional hazards: the ratio between two patients is the same at all times.

Survival trees

  • A survival tree splits patients like a decision tree, but each leaf holds its own survival curve.
  • It can find interactions and hazards that are not proportional.
  • A random survival forest averages many such trees. It is evaluated with the C-index for survival data.

Two patients (from calc.py, illustrative weights).

Weights: age 0.03 per year, smoker 0.6.

Patient 1: age 70, smoker. Patient 2: age 50, non-smoker.

Hazard ratio = exp(0.03 x 20 + 0.6) = exp(1.2) = 3.3201. Patient 1 is at 3.32 times the hazard at every time.

Smoking alone: exp(0.6) = 1.8221. Ten extra years: exp(0.3) = 1.3499.

Remember. The weights are made up to show the arithmetic. Real weights come from fitting the model to patient data.

Real-life example

Two families in the same colony face the same seasons: summer, rains and winter. One family has old wiring, so its fire risk is higher in every season by the same factor. The season pattern is the baseline hazard. The wiring factor is the relative risk.

Diagram: Cox model: relative risk, individual and baseline hazard, survival trees

Difference between Cox model and survival tree

PointCox modelSurvival treeSame or opposite
Assumes proportional hazardsYesNoOpposite
Gives a risk rankingYesYesSame
FormFormula with weightsYes or no splitsOpposite
Finds interactions by itselfNoYesOpposite
Evaluated by C-indexYesYesSame

Exam tip. Write the Cox formula and name each part. Compute one hazard ratio with numbers. Add a short paragraph on survival trees as the non-linear option.

Back to the topic list

Q10. Randomized controlled trial and average treatment effect

Short answer. A randomized controlled trial (RCT) gives a treatment to a randomly chosen group and compares it with a control group. The average treatment effect (ATE) is the difference in outcome risk between the two groups.

From the syllabus · Unit 5

From the papers

  • “Unit 5: Analyse data from a randomized control trial, Average treatment effect.” (Syllabus)

Write these points

Why randomize

  • A coin toss decides who is treated, so the groups are alike on average in age, illness and habits.
  • Any difference in outcome can then be put down to the treatment.
  • Without randomization, doctors may give a drug to sicker patients and the drug looks harmful.

Measures from the trial

  • Risk in each arm = events / patients.
  • Absolute risk reduction (ARR) = control risk minus treatment risk.
  • Relative risk (RR) = treatment risk / control risk.
  • Number needed to treat (NNT) = 1 / ARR: patients to treat to prevent one event.
  • ATE as a risk difference = treatment risk minus control risk. A negative value means the treatment lowers risk.

Trial of 1,000 patients (from calc.py).

Treatment: 40 events in 500, risk 0.08. Control: 60 events in 500, risk 0.12.

ARR = 0.12 - 0.08 = 0.04. RR = 0.08 / 0.12 = 0.6667.

NNT = 1 / 0.04 = 25. ATE = -0.04.

Real-life example

A state wants to know if a free nutrition kit lowers anaemia in girls. A lottery picks half the schools for the kit. A year later both groups are tested. Because the lottery chose the schools, the difference in anaemia comes from the kit, not from richer or poorer areas.

Diagram: Randomized controlled trial and average treatment effect

Difference between ARR and RR

PointARRRRSame or opposite
FormulaControl risk minus treatment riskTreatment risk / control riskOpposite
Value in the example0.040.6667Opposite
Uses both armsYesYesSame
Gives NNT directlyYesNoOpposite
From the same trial tableYesYesSame

Exam tip. Draw the trial with two arms. Compute risks, ARR, RR and NNT from one table. State why randomization makes the comparison fair.

Back to the topic list

Start with the latest papers

AI in Health Care - Nov 2023

See all 1 papers →

AI in Health Care (AL-504-A) FAQs

What are the most important topics in AI in Health Care?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Medical image diagnosis with a CNN; Class imbalance and weighted loss; Sensitivity, specificity and accuracy as conditional probability; ROC curve and AUC; 2D U-Net and 3D U-Net.

How were these AI in Health Care important questions chosen?

Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of AI in Health Care important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for AI in Health Care is free to download from this page.

The 10 topics of AI in Health Care (AL-504-A) for RGPV B.Tech CSE-AIML semester 5, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted. AI in Health Care is also searched for as AI-703-C.

Also known as AI-703-C