Chapter 15

Measurement, imaging, and the diagnostic laboratory

What a measurement really is, and when you can trust it

Human Biology for the Medical Maker

Why this chapter exists

  • Measurement is most of what a hospital does before treatment
  • Realistic first projects: cast phantoms, machined jigs, signal simulators
  • Specimen-handling aids, training datasets, models derived from imaging
  • Every one needs you to understand the underlying measurement

The four-layer model from chapter nine — phenomenon, sensor, display, interpretation — gets its fullest workout here.

Medical imaging

What each modality measures, and the trades they share

The modalities at a glance

ModalityPhysical principleGood atCosts and limits
Plain X-rayAttenuation by density and atomic numberBone, chest, foreign bodies; cheapIonising; 3D collapsed to 2D
CTMany X-ray projections reconstructedBone, acute bleeding, speedHigher dose; weaker soft tissue
MRIHydrogen nuclei in a strong fieldSoft tissue contrast, no ionising doseSlow, costly, projectile hazard
UltrasoundEchoes from impedance boundariesReal time, portable, guidanceOperator-dependent; blocked by bone and gas
Nuclear and PETA tracer concentrates by functionPhysiology and metabolismIonising; low resolution
Endoscopy and OCTLightDirect view, biopsy; micrometre slicesInvasive; shallow

None of them measures anatomy

Anatomy is inferred from one physical property. That inference is where artefacts and error live.

Image quality, and the trade you cannot escape

Parameters

  • Spatial, contrast, and temporal resolution
  • Signal-to-noise ratio
  • Field of view and slice thickness
  • Partial volume: one voxel, two tissues, averaged

The trade

  • Every parameter trades against the others
  • In ionising modalities, they trade against dose
  • ALARA: as low as reasonably achievable
  • Every X-ray or CT is a justified decision

From scan to physical model

An attractive reconstruction is not an accurate one

  • Threshold choice alone can shift a bone surface by a millimetre or more
  • Partial volume makes thin walls vanish or merge
  • Smoothing removes real detail with the noise
  • None of this is visible in the finished object
  • Anonymisation is verified, not a best effort: private tags, burned-in pixels

The model is a hypothesis until a qualified person checks it against the source images.

Laboratory medicine

Disciplines, principles, and point-of-care testing

The laboratory disciplines

DisciplineMeasuresTypical methods
Clinical biochemistryElectrolytes, glucose, kidney and liver markers, drugsSpectrophotometry, ion-selective electrodes, immunoassay
HaematologyCell counts, morphology, clottingFlow cytometry, microscopy, coagulometry
MicrobiologyOrganisms and antibiotic susceptibilityCulture, Gram stain, MALDI-TOF, molecular
HistopathologyTissue and cell structureSectioning, staining, microscopy
ImmunologyAntibodies, antigensELISA, flow cytometry
Molecular diagnosticsNucleic acid sequencesPCR, qPCR, sequencing
Transfusion scienceBlood groups and compatibilityAgglutination, antibody screening

The measurement principles worth knowing

PrincipleHow it works
SpectrophotometryAbsorbance at a chosen wavelength gives concentration — Beer–Lambert, as in pulse oximetry
Ion-selective electrodeA membrane potential that varies logarithmically with one ion's activity
AmperometryCurrent from an electrode reaction — the glucose meter
ImmunoassayAn antibody binds its target; a label reports it. ELISA; lateral flow strips
Flow cytometryCells pass a laser single file; scatter and fluorescence classify them
PCRThermal cycling doubles a target sequence each cycle
Mass spectrometryIonise, separate by mass-to-charge, detect

Point-of-care testing

Gains

  • Speed
  • Accessibility at the bedside
  • Glucose, blood gas, lateral flow, coagulation

Gives up by default

  • Analytical performance
  • Calibration and external quality assurance
  • Trained operators and an audit trail

That is why point-of-care programmes have their own governance.

Engineering bridge: what makes a measurement trustworthy

The heart of the chapter

The vocabulary of trust

TermMeaning
AccuracyCloseness to the true value — freedom from systematic error
PrecisionCloseness of repeats to each other — freedom from random error
BiasThe difference between the average result and the true value
Repeatability / reproducibilitySame operator and conditions / across operators, instruments, sites
Calibration and traceabilityAn unbroken chain back to a reference standard
DriftSlow change in output with no change in input
UncertaintyQuantified doubt — a result without it is incomplete

Accuracy and precision are independent

An instrument can be precise and consistently wrong. That is bias — and it is the more dangerous failure, because the repeatability looks reassuring.

The pulse oximeter in chapter nine is the example

Diagnostic sensitivity and specificity

The arithmetic everyone should do once

99% sensitive, 99% specific, prevalence 1 in 1,000Condition presentCondition absentTotal
Test positive10100110
Test negative09,8909,890
Total109,99010,000

Positive predictive value about 9%. A positive result from a 99% test means the condition is probably absent.

What follows from the arithmetic

  • Screening programmes are designed by epidemiologists, not enthusiasts
  • "Our model is 99% accurate" means little without prevalence
  • Clinical classifiers must report more than an accuracy figure
  • A positive screen is a reason to look further, not a diagnosis
  • Thresholds: ROC curves show the trade; people choose the cut-off

Devices, software, and training technology

Clinical devices and software

Devices

  • Digital radiography, CT, MRI, ultrasound
  • Automated and haematology analysers
  • PCR instruments, mass spectrometers, slide scanners
  • Point-of-care cartridges and readers

Software

  • PACS and DICOM; RIS and LIS over HL7 and FHIR
  • 3D Slicer, ITK-SNAP, InVesalius — free
  • pydicom and SimpleITK for code
  • OHIF, Orthanc: a whole pipeline on public data

Training technology and entry points

Training technologyForm
Ultrasound phantomsGelatin, agar, PVA cryogel or silicone with embedded targets
Vascular access trainersSimulated vessels in tissue-mimicking material
Teaching files and datasetsRadiopaedia, TCIA — anonymised cases
Anatomical models from imagingPrinted, milled, or cast from a mould; clearest accuracy obligation
Instrument test fixturesMachined holders, signal and pressure simulators, reference samples
Radiation safety trainersSimulation software and survey-meter practice

The best first project here — an ultrasound phantom

  • Mould: fabricated acrylic, milled former, sheet-metal tray, or printed shell
  • Material: gelatin, agar, PVA cryogel, silicone — the real decision
  • Scatterer plus embedded targets; a few pounds of materials
  • Limits: wrong acoustic properties, short life, grows mould

Agree the target first — which skill, at which depth, with what needle.

Worked example: a model from a patient's scan

Before touching a fileWhy
Information governance approval?Approval precedes access
Who anonymises and verifies?Identifiers hide in private tags and pixels
What is it for?Planning, rehearsal, explanation and sizing differ
Does it need to be physical?A screen model may do; purpose decides the method
What accuracy, and who says?"Looks right" is not a specification
Who verifies the anatomy?A qualified person — not you
Sterile field? Scan protocol?A 5 mm slice cannot support a 0.5 mm claim

The label is part of the deliverable

Derived from CT series [id], slice thickness [x] mm. Segmentation by [method] at threshold [value]. Smoothed and decimated. Dimensional check [result]. Verified by [name, role, date]. Not sterile. Not for intraoperative use.

Without it, the model is a convincing artefact whose provenance nobody can reconstruct.

Workshop exercise and exit criteria

  • Run DICOM to segmentation to mesh to object on a public dataset; justify the route
  • Segment at three thresholds and measure the spread
  • Cast an ultrasound phantom and list four limitations
  • Compute PPV for 95% sensitivity, 90% specificity at 1% and 40% prevalence
  • Open a DICOM file with pydicom and find identifying tags

What this chapter does not establish

  • You cannot interpret any image or result
  • You cannot handle clinical imaging data without approval
  • You cannot certify a model's anatomical accuracy
  • Nothing here is for the sterile field
  • A phantom is not tissue; an accuracy figure is not performance

Next — Diagnostic devices, how they work and what they are for.