联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981
UNIVERSITY COLLEGE LONDON
EXAMINATION FOR INTERNAL STUDENTS
MODULE CODE : MPHY0020
ASSESSMENT Pattern: MPHY0020A6UE
MODULE NAME : Computing in Medicine
LEVEL: : Undergraduate
DATE: : 11-May-2023
TIME : 10:00
DURATION : 03:10
Late submission is permitted for Controlled Conditioned exams but late
penalties will apply – any submissions that are up to 40 minutes late will be
penalised, after which no submissions will be accepted under any
circumstances.
You must ensure to allow sufficient time to upload and hand in your work
This paper is suitable for candidates who attended classes for this module in
the following academic year(s):
Year
2022-23
Duration << Exam Duration>>
Additional time for converting handwritten
notes to PDF where applicable 10 mins
Upload window 20
Total time
3 Hours 30 mins
Additional material
Special instructions
TURN OVER
MPHY0020 / 2022-23 (Main) Page 2 CONTINUES
A6U
Exam paper for MPHY0020 Computing in Medicine
Answer all parts of all questions 1-6.
The number in square brackets following each question indicates the maximum
number of marks attainable for that part of the question. You can use these marks as
an indication of the extent and depth of the answer expected.
Answers can be hand-written or typed using a word processor, or you can use a
combination of both methods. All answers must be submitted electronically via the
AssessmentUCL platform. Submissions via email or any other method cannot not be
accepted.
Everything you submit, including drawings, diagrams, and mathematical calculations,
must be your own work and not copied or reproduced from any other source.
You must not discuss examination questions or your answers with any other person,
including other UCL students, or obtain assistance from any third party during the
period of the examination.
MPHY0020 / / 2022-23 (Main) Page 3 TURN OVER
A6U
QUESTION 1
(a) Describe three situations in which a higher CPU clock speed does not result in faster
computations, explaining for each why this is the case.
[1.5]
(b) You work in the radiotherapy ward of your local hospital and are responsible for
computing radiotherapy dose delivery plans. The desktop computer at your disposal
offers a peak computational performance of 3.4 GFLOPS. The treatment planning
software you wish to use employs an algorithm that performs 500 million basic
arithmetic operations per image voxel to compute a dose delivery plan for a patient.
Assuming that a plan must be available so that treatment can be performed two hours
after the patient has undergone a pre-treatment CT scan, how many voxels can be
processed per patient using this computer
[3.5]
(c) The treatment plan needs to comprise 128×128×128 voxels to ensure sufficient
resolution to limit the radiation dose to nearby sensitive organs and tissues. Explain,
with the aid of a simple calculation, why the desktop computer provided for this task
cannot be used to meet the two-hour turnaround time for planning a treatment. In
addition, suggest a solution that would allow the two-hour turnaround time to be met
and justify your suggestion.
[3]
MPHY0020 / 2022-23 (Main) Page 4 CONTINUES
A6U
QUESTION 2
(a) You are tasked with reducing the file size when storing image I in Fig. 2.1 below, and
you are considering applying either run-length encoding or efficient symbol encoding.
To maximise file size reduction, which of these two methods would you apply to image
I, and why
[2]
(b) Assuming image I above was generated using the int64 data type, compute the
compression ratio that is achieved when run-length encoding is applied and in addition
the data is converted into the uint8 data type.
[3]
(c) Assume image I is a typical image acquired using a new imaging modality, and that
images are stored in the NIfTI format in int64 without applying compression. How
many such images can you store in i) volatile memory and ii) non-volatile storage on a
computer with the following specifications: 4.40 GHz 6-core CPU, 16 MB shared
cache, 8 GB DDR2 RAM, 500 GB SSD, 128 GB microSD flash card, 2 GB GPU Your
answer should be two numbers: the number of images for all volatile memory
combined, and the number of images for all non-volatile storage combined. Show your
working.
[3]
Fig. 2.1 – Image I
MPHY0020 / / 2022-23 (Main) Page 5 TURN OVER
A6U
QUESTION 3
A screening test has been applied to a sample of 2500 people from a population in which
the estimated disease prevalence was 2.4%. The screening test operates at a point
indicated on the ROC curve shown in Fig. 3.1 below, for which x = 0.14754, y = 0.66667.
(a) Calculate the confusion matrix for this test. Show your working.
[4]
(b) You are testing a new image segmentation algorithm, and ask your clinical
collaborator for images of patients. Would you prefer these images to be anonymised
or pseudo-anonymised for testing purposes Explain your reasoning.
[2]
y
x
Fig. 3.1 – ROC curve
MPHY0020 / 2022-23 (Main) Page 6 CONTINUES
A6U
QUESTION 4
The digital Boolean circuit shown in Fig. 4.1 below has an input representing a 3-bit signed
integer abc with a being the most significant bit and c the least significant bit.
Based on this Boolean circuit, perform the following tasks showing all calculations steps:
(a) Find the outputs u, v and the intermediate outputs x, y and z for two input signed
integers -4 and -2.
[3]
(b) Find the Boolean algebra expressions for v as a function of arguments a, b and c.
[3]
(c) Find the inputs a, b, c for which v = 0, and comment on what this means for the above
Boolean circuit.
[2]
Fig. 4.1 – Boolean circuit
MPHY0020 / / 2022-23 (Main) Page 7 TURN OVER
A6U
QUESTION 5
A fiberscope is a medical device that uses a long flexible bundle of optical fibres to see
within hollow cavities of the body, for example, within the lumen of the gastrointestinal tract.
Each individual fibre within the bundle carries light, via total internal reflection, to a camera
outside the patient. Each fibre contains a single piece of information such that by using
many thousands of fibres, a final image can be built up. A fiberscope image of the letter ‘T’
is shown in Fig. 5.1 below.
The resulting image contains an artefact introduced by the cladding between the individual
image fibres. This this artefact is called a ‘honeycomb’ pattern due to its regular hexagonal
spacing.
(a) Due to defects in the camera, the image contains so-called ‘hot pixels’. These are
isolated pixels with very high pixel values compared to the values of surrounding
pixels. Describe how these hot pixels could be removed using a non-linear image filter
and justify your choice of filter.
[2]
Fig. 5.1 – fiberscope
image of the letter T
MPHY0020 / 2022-23 (Main) Page 8 CONTINUES
A6U
QUESTION 5 continued
(b) To calibrate a fiberscope, an image of a blank white target (e.g. a piece of white
paper) may be taken, such as the image shown in Fig. 5.2 below (left). The resulting
calibration image is very dark outside the fibres and very bright (values >250) inside
the fibres. The individual fibres can be seen in the zoomed image (Fig. 5.2, right).
The 2-D discrete Fourier transform (DFT) of the calibration image is shown in Fig. 5.3
below, where zero frequencies are shifted to the centre of the image. Based on the
structure of the image in Fig. 5.2 above, explain the spatial appearance of the DFT
shown in Fig. 5.3 below.
[2]
(c) Given the Fourier transform shown above, how can frequency domain filtering be
applied to remove the honeycomb artefact You may wish to include labelled sketches
in your answer.
[4]
(d) If the honeycomb patter was irregular, for example, the spacing were non-uniform and
not packed in a regular hexagonal structure, how might you change your filter
[1]
Fig. 5.2 – Fiberscope
calibration image (left)
and magnification (right)
Fig. 5.3 – DFT of the
fiberscope calibration image
MPHY0020 / / 2022-23 (Main) Page 9 TURN OVER
A6U
QUESTION 5 continued
An alternative approach to removing the honeycomb artefact attempts to find the centre
location of every fibre, extract the pixels from only these points, and then interpolate an
image based on these values.
(e) In fewer than 100 words, briefly describe what approach could be used to find the
centres of the fibres using an image processing algorithm. You could, for instance,
consider morphological operations.
[3]
Once the centre positions are defined, the pixel values at all other positions must be
determined. Triangular interpolation performs this using the formula
=
+ +
where: IP is the interpolated pixel value at the point P at coordinates (xP,yP); IA, IB and IC are
the pixel values at the points A, B and C with coordinates (xA,yA), (xB,yB) and (xC,yC),
respectively; and the weightings W are given by
=
(
)(
)+ ( )(
)
(
)(
)+ ( )(
)
,
=
(
)(
) + (
)(
)
(
)(
) + ( )(
)
,
= 1 .
The triangle ABC contains the point P as shown in Fig. 5.4 below. Point P is indicated in
yellow at (xP,yP) = (6,10).
Fig. 5.4 – Fiberscope image and
triangular interpolation definition
MPHY0020 / 2022-23 (Main) Page 10 CONTINUES
A6U
QUESTION 5 continued
(f) Using triangular interpolation, calculate the interpolated pixel value at the point x=6,
y=10 based on the pixel values at the fibre centres A, B and C with coordinates (4,5),
(5,14) and (11,7) respectively.
[4]
(g) If, instead, nearest neighbour interpolation was used, what would be the value of the
point shown Comment on how the results obtained with triangular and nearest
neighbour interpolation compare, and what implications this might have for processing
this image.
[2]
QUESTION 6
Photoacoustic imaging can capture images of blood oxygenation in real-time. This
technology can be used to study tumours because, due to the uncontrolled growth of
tumours, tumour blood vessels may be poorly organised, resulting in ‘hypoxic’ regions that
do not have a good supply of blood and therefore oxygen. To test which tumour regions are
hypoxic, the following ‘oxygen challenge’ can be performed on a patient during imaging.
Assuming a start time at t=0 s, at t=1.25 s the breathing supply is switched from normal air
(21% oxygen) to pure (100%) oxygen, and the oxygenation of the tumour is monitored over
time. A graph of how the tumour oxygenation is expected to vary over time during an
oxygen challenge, in absence of additional physiological effects and noise, is shown n Fig.
6.1 below:
As can be seen from this graph, the response to the oxygen challenge is expected to
approximate a step function, where the oxygenation rises quickly following a short delay
after the start of the challenge. The time between the start of the oxygen challenge and this
step change in tumour oxygenation is called the ‘response time’.
In reality, however, two other signals contribute additively to the measured oxygenation
signal: a slow sinusoidal variation with amplitude of 20 units corresponding to changes in
blood flow at the frequency of the patient’s heart rate; and a 5Hz noise component with an
amplitude of 10 units due to electrical noise in the circuits of the photoacoustic imaging
device.
Fig. 6.1 – a typical
response to an
oxygen challenge
MPHY0020 / / 2022-23 (Main) Page 11 TURN OVER
A6U
QUESTION 6 continued
(a) Given the information provided above, sketch the oxygenation signal that you would
expect to measure as a function of time, labelling the key characteristics and time
periods on your graph.
[3]
(b) To measure the signal, the noise and heartbeat signal need to be separated from the
step function. Design a filter to do this, and explain your reasoning and how your filter
would be applied.
[3]
(c) After the heartbeat signal and noise are removed, the following signal is obtained:
Time (s) 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3 3.25 3.5 3.75 4.25 4.5
Oxygenation 20 21 20 20 19 20 20 19 79 80 79 80 80 81 80 80
To determine the response time, the time point when the step occurs needs to be
determined. To do this, edge detection methods could be used. Apply the following
edge detection filters to the signal above, and estimate the response time obtained
using each of the following two filters:
i. The 1-D gradient filter [-1, 0, 1]
ii. The 1-D Laplacian filter [1, -2, 1]
For each method, show your working and describe how you determined the response
time.
[4]
For every pixel in a photoacoustic image, the response time can be defined. Pixels whose
response time is longer than 0.4 seconds are likely to be hypoxic. The binary image in Fig.
6.2(a) below shows the pixels considered hypoxic after applying this threshold. The binary
image in Fig. 6.2(b) shows an estimate of the tumour area. The size of these hypoxic
regions is associated with disease prognosis, so the fraction of the tumour that is classified
as hypoxic – the so-called ‘hypoxic fraction’ – needs to be quantified.
(b) Estimated tumour area (a) Pixels classified as hypoxic
Fig. 6.2 – binary images of hypoxic pixels (a) and estimated tumour area (b)
MPHY0020 / 2022-23 (Main) Page 12 END OF PAPER
A6U
QUESTION 6 continued
(d) Assuming the true tumour should be one large contiguous region, how can the binary
tumour mask [panel (b)] shown above be corrected You must describe your answer
in detail, but do not need to perform the operation(s).
[2]
(e) Hypoxic regions should be of appreciable size (regions of fewer than 5 pixels are likely
to be artefacts/noise). Describe an approach calculating the hypoxic fraction for the
thresholded image shown in Fig. 6.2(a). You must describe your answer in detail, but
do not need to perform the operation(s).
[3]
(f) If the image was taken from closer to the tumour, such that the tumour and hypoxic
regions were now twice as large in the image (twice as many pixels in length and
width), how would the methods considered in 6d) and 6e) need to be modified
[1]


发表回复