Docsity
Top Seller

Smart Medical Imaging, Appunti di Ingegneria Biomedica

Toggle sidebar
bg1
1
biological system → sensors → preprocessing & filtering → feature extraction
→ classification (diagnosis - therapy - prognosis)
Medical Imaging is not an add-on in clinical practice: most of the diagnoses are based on images and on quantitative
parameters derived from their analysis.
In the last years, technological developments provided many different imaging acquisition systems, allowing the
representation of the “body” from “different views”.
We can explore different levels of reality “at different scales”.
These systems are continuing improving and physicians have no time to interiorize their experience.
An increasing amount of intelligence is required in the imaging acquisition systems to help physicians: they need
“tools” to support/optimize patient diagnosis and treatment.
Medical Imaging understanding or acquisition?
Imaging does not mean you have to ˝see˝ what you are looking for: medical Images are «data» and information is in
the data, but it is ˝not visible”.
EX.: radiomics is a method that extracts many features from medical images using data-characterisation algorithms.
In the past, there was INTUITION MEDICINE, based on signs and symptoms observation.
In the present, there is EVIDENCE-BASED MEDICINE, based on clinical trials (take a lot of patients with the same
pathology and provide half of them with the same treatment, while the not-treated ones are the control group, and
then look at the short- and long-term benefits and controversial effects).
In the future, there will be PRECISION MEDICINE, based on algorithms (allowing each patient to benefit from
individual, specialised treatment).
Medical imaging supports modelling and simulation based on a patient-specific approach.
3D cardiac computational modelling is currently a rising field of research in which the combination of models and
simulations can help to interpret experimental data and contribute to the understanding of complex diseases.
Full pipeline to build a 3D cardiac model aimed at biophysical simulation:
∙ 3D cardiac geometry
∙ biophysical models of the heart (EP and/or mechanical)
∙ cardiac conduction system
∙ myocardial structure
∙ pathology
3D models of cardiac anatomy
• generic models:
∙ simplistic models based on geometric shapes: for applications in which anatomy is not crucial for the
purpose of the model
∙ anatomical model: low level of anatomical detail due to poor quality of the data used to build them (histo-
anatomical slices)
• CAD models: no anatomical source
• medical image-based models: ex-vivo / in-vivo imaging
Ex-vivo (from latin: "out of the living") means that which takes place “outside” an organism: high spatial resolution,
absence of motion artifacts, no limitations imposed by «alive» subjects, detailed reconstruction of cardiac
geometries, «complex preparation».
SMART MEDICAL IMAGING
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Anteprima parziale del testo

Scarica Smart Medical Imaging e più Appunti in PDF di Ingegneria Biomedica solo su Docsity!

biological system → sensors → preprocessing & filtering → feature extraction → classification (diagnosis - therapy - prognosis) Medical Imaging is not an add-on in clinical practice: most of the diagnoses are based on images and on quantitative parameters derived from their analysis. In the last years, technological developments provided many different imaging acquisition systems, allowing the representation of the “body” from “different views”. We can explore different levels of reality “at different scales”. These systems are continuing improving and physicians have no time to interiorize their experience. An increasing amount of intelligence is required in the imaging acquisition systems to help physicians: they need “tools” to support/optimize patient diagnosis and treatment. Medical Imaging understanding or acquisition? Imaging does not mean you have to ˝see˝ what you are looking for: medical Images are «data» and information is in the data, but it is ˝not visible”. EX.: radiomics is a method that extracts many features from medical images using data-characterisation algorithms. In the past, there was INTUITION MEDICINE, based on signs and symptoms observation. In the present, there is EVIDENCE-BASED MEDICINE, based on clinical trials (take a lot of patients with the same pathology and provide half of them with the same treatment, while the not-treated ones are the control group, and then look at the short- and long-term benefits and controversial effects). In the future, there will be PRECISION MEDICINE, based on algorithms (allowing each patient to benefit from individual, specialised treatment). Medical imaging supports modelling and simulation based on a patient-specific approach. 3D cardiac computational modelling is currently a rising field of research in which the combination of models and simulations can help to interpret experimental data and contribute to the understanding of complex diseases. Full pipeline to build a 3D cardiac model aimed at biophysical simulation: ∙ 3D cardiac geometry ∙ biophysical models of the heart (EP and/or mechanical) ∙ cardiac conduction system ∙ myocardial structure ∙ pathology 3D models of cardiac anatomy

  • generic models: ∙ simplistic models based on geometric shapes: for applications in which anatomy is not crucial for the purpose of the model ∙ anatomical model: low level of anatomical detail due to poor quality of the data used to build them (histo- anatomical slices)
  • CAD models: no anatomical source
  • medical image-based models: ex-vivo / in-vivo imaging Ex-vivo (from latin: "out of the living") means that which takes place “outside” an organism: high spatial resolution, absence of motion artifacts, no limitations imposed by «alive» subjects, detailed reconstruction of cardiac geometries, «complex preparation».

SMART MEDICAL IMAGING

Several features could be altered: to what extent an ex-vivo derived geometry is relevant to the in-vivo function of the heart? Medical image-based 3D models have proliferated over the last 15 years due to the advance and consolidation of techniques such as MRI, CT and RT3DE - DICOM format. Magnetic Resonance Imaging uses strong magnetic fields, magnetic field gradients and radio waves to generate images of the organs in the body:

  • 2D imaging
  • non-invasive (no ionizing radiation)
  • «reference» technique for many applications, especially for soft tissues
  • multiparametric imaging for a comprehensive evaluation of a disease (data integration, paying attention to acquisition parameters)
  • morphological information: cine-balancedsteady-statefreeprecessionimagesareroutinelyusedforcardiac volumetry, due to their high blood-to-myocardial contrast and high SNR: ∙ in-plane resolution: 1-2 mm-slice thickness: 8 mm wo gap/with 2 mm gap ∙ temporal resolution: max 30 frames per cardiac
  • functional information:
    1. first pass perfusion and late gadolinium (not toxic) enhanced imaging (1st^ part of the left heart) ∙ in-plane resolution: 1-1.5 mm ∙ slice thickness: 5 mm ∙ single-frame acquisition, ECG-triggered (static)
    2. blood-oxygen-level-dependent (BOLD) imaging to observe different areas of the organ, which is found to be active at any given time (morphological data), to evaluate blood perfusion under stress conditions (physical cause or due to drugs)

On-board/proprietary software are used for volumetric quantification of global and regional functional parameters (EF, volumes, contraction pattern, cardiac valves assessment, perfusion imaging…), that might be very useful for simulation studies to set patient-specific “boundary “conditions. 3D speckle tracking e strain imaging: The level of anatomical detail achieved by a given model also depends strongly on the source of anatomical information and the methodology used to build it.

  • Qualitative analysis: descriptive (visual assessment) → example: carotid stenosis
  • Semi-quantitative analysis: indexed (visual assessment and imaging analysis of quantitative parameters) → example: mild carotid stenosis (mild 75%)
  • Quantitative analysis: measurement (imaging analysis) → example: carotid stenosis 78.5% Future approaches: imaging reports will integrate also a classification.

Acquisition → storage and communication (DICOM) → processing and analysis DICOM was born as a response to the need to create a world standard for the communication and management of medical images through imaging systems by different manufacturers. The DICOM committee was born in 1983. The need of such standard arose after the discovery of TAC and other digital imaging techniques. This standard was developed in agreement with the NEMA (National Electrical Manufacturers Association) and the ACR (American College of Radiology) with the support of other organizations for standardization as a response to the need of integration of clinical data of the different information systems, because there was lack of uniformity between systems, lack of a standard for data format and lack of a communication standard. This makes it a “de facto” standard. In the late 1980s, digital modalities began to spread, but each worked on proprietary platforms, but each one had to be considered an “isolated“ system and intercommunication was possible only within the same family. It would have been desirable that systems from different manufacturers could communicate with each other with a standardized data format: there was the need to standardize the format of medical images in order to be able to create open systems without necessarily having to adopt the standards required by modality manufacturers. It’s an evolving standard, i.e. it’s (controversially) not fixed: it’s a constantly evolving standard and updates are under the responsibility of the DICOM Committee (proposals of updates or modifications come from the users enrolled in the committee; they are evaluated by the committee and eventually the standard is updated) and obviously, care must be taken to maintain compatibility between DICOM versions. The ability to exchange medical images linked by various information through telematic networks required the creation of a global communication standard, able to ensure intercommunication between heterogeneous systems. Such standard allows the radiologist to retrieve all the exams of the same patient at the same time and in one place and the other doctors to access the images through a local network connection. Also, DICOM represents a model of this standardization, the birth of which was however initially hindered by the plurality of manufacturers in the medical field, who, by proposing proprietary standards, had created a situation of complete lack of communication between devices. It works only of these 2 are fulfilled:

  • data transfer: define the rules to encode/decode information, define the rules to specify the messages among the different applications, define and manage message workflow
  • data management: define the models to describe the information entities, define the model to query/retrieve information (hierarchical model) International standard for digital imaging and communication from various manufacturers from various manufacturers and across different platforms. DICOM defines the interface that allows the connection between different systems It represents a non-proprietary standard which specifies the format for medical images and how to the exchange medical images and linked data.

DICOM (Digital Imaging and Communication in Medicine)

A set of attributes which defines a specific context forms a “module”, which simplifies the definition of an IOD. Once defined the objects of interest and all their characteristics, DICOM defines which operations can be performed and on which objects, calling them DIMSE (DICOM Message Service Element). The pair between an object and a Service Group is called SOP (Service-Object Pair). The set of the SOPs linked to a single object defines the fundamental functional unit called SOP CLASS : Service-Object Pair (SOP) Class: union of a set of DIMSE services and an IOD that completely defines a precise communication context (both the action and the data on which to perform it). Each SOP class is identified by a SOP Class UID. Service Class: collection of SOP Classes that realizes a single application (modality worklist management, performed procedure step, storage, print, query/retrieve). NB: The image (variable with the size of the image) is in the value field, typically at the end of the dataset. The Application Entity (Workstation, Laser Printer, Computed Radiography) is a device that runs services on objects. Obviously, for each combination of SOP Class and role, the DICOM standard defines a set of basic rules applied during pre-allocation or negotiation, during which it is established whether communication between the 2 devices is possible or not. Once communication is open, the information is encoded in the DICOM dataset, which represents a set of data (data element); each data element contains the encoding of the attribute values of the object, of which the data set represents an instance. To represent the instance of an IOD, DICOM uses a structure called a Data Set. A data set consists of a set of units called Data Elements. In each Data Element the value of an attribute is saved. A data element is the smallest information unit used for transmitting or storing a DICOM file.

A DICOM file is a sequence of elements composed by:

  • attribute (tag): it uniquely identifies the Data Element. Tags are catalogued in part 6 of the standard (glossary), divided into groups and it consists of a pair of values that identify the group number and the element number, respectively.
  • type (VR = Value Representation): it is a 2-byte string that contains the Value Representation of the Data Element, it is optional and, in practice, it describes the type of data (for example an integer or a string); in part 5 of the standard there is a list of all supported VRs.
  • length: it indicates the length of the Value Field and it can be represented by a number of 16 or 32 bits (or undefined, FFFFFFFF in case of sequences).
  • value field: it is the value of the field, always encoded with an even number of bytes; it can also be a multiple field as in the case of pixels in an image. DICOM assigns each SOP a UID (Unique Identification Number) called SOP Class UID. In DICOM standard "storage of an MRI image", is the MR Storage Sop Class which is assigned to the UID 1.2.840.10008.5.1.4.1.1.4, which uniquely defines the operation of storing an MRI. In practice, an IOD consists of data that DICOM calls attributes: to each data is assigned the Attribute Name and each attribute is uniquely identified by a Tag composed of a pair of numbers (the group number and the element number). For example, the data having as Attribute Name "Patient's Name", is uniquely identified by the couple (0010, 0010). What about the «modules»? Refer to documentation PS 3.3. «Patient» module refers to table 7.1.1 in annex C. Attribute Type: 1: mandatory and not null 2: mandatory 1C o 2C: conditional 3: optional

DICOM is the most ambitious project for the standardization of medical images, developed by companies and professional societies. It is a standard for the storage and communication of medical images and it is complex as far as content is concerned, but easily usable. Some MATLAB codes:

  • ImageInfo = dicominfo(‘immagineDICOM’) → to read the TAGs (not all of them are mandatory)
  • Image = dicomread(‘immagineDICOM’) → to read the image
  • isdicom(‘filename’) → TRUE if the file is a DICOM file
  • To access the fields of the structure ImageInfo a ‘.’ must be used together with the name of the attribute (ex.: ImageInfo.PixelSpacing).

To process an image means to enhance or modify its content to highlight some particular features. To analyze an image means to study its content to infer information to contextualize the represented scene. An image is defined as a 2D function, I(x, y), where (x, y) is the pair of spatial coordinates and the value of I in (x, y) is the gray level intensity. If I, x and y are discrete and finite quantities, then the image is a digital image. A digital image is composed of a finite number of elements called pixels (picture elements). Each pixel is characterized by a position and a value. In most medical images, we measure a single quantity, therefore the image has only one channel (gray level). The gray level is proportional to the physical phenomenon being measured. Spatiotemporal representation (2D, 2D+t, 3D, 3D+t) of a physical phenomenon or principle linked to a specific acquisition system. The physical characteristics of a region of space (pixel/voxel) wrt some excitation (opacity to X-rays, magnetic resonance, ultrasound ...) are translated into a numerical signal value. I(x, y) : Ω ⊆ ℝ² → ℝ⁺ g(x, y) In this course we will deal with the processing of digital bio-images, using the computer: → image processing - image analysis - computer vision processing of low-mid-high level:

  • the 1 st^ level, low, contains all the primitive pre-processing operations which consist in reducing the noise due to the acquisition process, improving the contrast and making the image as sharp as possible: these operations have the peculiarity that both the input and the output are images
  • the medium level, mid, consists of the operation of segmenting the image; then partitioning and classifying the image into regions of interest: in this layer the input is an image while the output is generally a set of information extracted from the image
  • the last level, high, interprets the image, recognizing objects and analysing them The 3D information is provided in the form of a collection of 2D images or more. There are some fundamental differences between biomedical images and normal digital images. Biomedical images typically are displayed in gray levels (US, MRI, CT). The meaning of the gray level depends on the acquisition physics. Some non-specific software for the analysis of biomedical images, such as MATLAB, display a grayscale image with an arbitrary colour map does not allow us to believe that this representation is acceptable. In some cases (SPECT, PET), standard colormaps are used to display the image in false colours. The colormap used must always be associated with the image: the right way to represent an image basically depends on an agreement among users.

DIGITAL IMAGES

You choose a number of colours equivalent to the number of elements that can be represented with N bits (i.e. if N=8 you can represent 256 colours) and each of them is associated with an element of a table (lookup table/palette):

  • the lookup table is a table of 256 elements
  • the numbers from 0 to 255 represent the indices
  • each element contains a different colour (RGB) Each colour of the palette is associated with an index that identifies it in the palette. Pros/cons:
  • drastic savings in memory and computational time compared to other approaches
  • limits the range of colours that can be used to those present in the palette
  • fixed / changeable colours depending on the specificity of an image
  • 256colors: when an even greater number of colours is needed, palettes are not used RGB model was defined in 1931 by CIE and it’s based on the additive synthesis of colours, starting from the 3 monochromatic primary colours:
  • red (wavelength  = 700nm)
  • green ( = 546.1nm)
  • blue ( = 435.8nm) A large percentage of the visible spectrum can be represented by mixing red, green and blue light in different proportions and intensities. Additive color synthesis: each colour can be obtained by mixing 3 light emissions related to the 3 primary colours:
  • by combining the red and green lights, yellow-orange lights are obtained
  • by combining red and blue lights produces purple lights
  • white is obtained by combining the 3 primary lights at maximum power Subtractive colour synthesis : CMY
  • the word "subtractive" means that colours are removed from white to obtain other colours
  • white light is passed through filters that allow only radiation of a certain wavelength (i.e. a given colour) to pass The RGB model is typical of acquisition and display devices. The CMY model is based on the ability of ink on paper to absorb light: when white light hits the inks, some visible wavelengths are absorbed, while others are reflected and seen on paper. This synthesis is the standard for printers.

HSV model is an alternative model much closer to our way of seeing colours. The HSV model is used very often in image analysis:

  • H = hue
  • S = saturation
  • V = value (illumination)
    • Spatial resolution: size of the smallest structure that can be distinguished; it depends on the imaging system and the pixel size is often associated with this size
    • Amplitude resolution: minimum detectable intensity variation; it depends on the imaging system and it is often linked to the number of bits used to encode a pixel An “ideal” biomedical image is a set of non-overlapping regions characterized by a certain gray level. Each gray level and consequently each region will correspond to a different tissue. non-homogeneity due to the internal structure of the tissues (for example: blood/muscle)

Biomedical images can be corrupted by noise and artifacts. Artifacts are recognizable structures with an internal coherence and appear on the image even if they do not exist in the real object: they are typically unpredictable and are evaluated through the probability of their occurrence along a long series of acquisitions. Noise is a completely random process, characterized by the absence of a structure and it is uniformly distributed on the image; it makes the detail decrease as the size of the object decreases and it makes the objects less contrasted or poorly/not visible. Noise can be the subject of a systematic analysis and can be described as a random process of which some statistical parameters can be identified: Images are always corrupted by noise introduced by the acquisition system and the type of the noise is linked to the physical principles of the acquisition system. The noise widens the distribution of the signal relative to the various tissues, to the point of confusing each other with pixels belonging to different tissues. The greater the noise compared to the signal value, the worse the image quality. If we normalize the values of the histogram by the total number of pixels, the normalized histogram will represent the probability of finding a pixel with that value in the image. The various types of noise can be distinguished by the shape of the probability density function (pdf) associated with the random variable.

Gaussian noise is characterized for example by a bell-shaped pdf, while Rayleigh noise pdf is asymmetrical bell- shaped. The pdf describes how the new gray levels introduced by noise around those already present are distributed. To understand what kind of noise an image is corrupted by, you can analyse its histogram: the histogram of the original image examined without noise has only 3 lines corresponding to the intensity values associated with the 3 colours in the image (white, gray and black). The noise generates new random gray levels around the already existing ones with a trend that depends on its pdf. The noise widens the distribution of the signal relative to the various tissues, up to the point of confusing each other with pixels belonging to different tissues. The greater the noise compared to the signal value, the worse is the image quality. Signal-to-Noise Ratio = = ratio between the average value of the signal in a region and the noise in the same region. Contrast-to-Noise Ratio = = difference between the average value of the signal between 2 regions and the average noise in the 2 regions. Where M is the signal mean and σ is the standard deviation. SNR and CNR represent 2 quality parameters widely used in image evaluation. These indices can be evaluated manually by plotting the regions of interest (ROI) on the image and calculating the mean value and the standard deviation of the signal within the ROIs. The measurement must be carried out in "homogeneous" regions of the image and that the greater the ROI area used, the greater the accuracy of the measurement. If we extract N ROI from the image and estimate the mean and SD for each ROI, we obtain a distribution of the mean estimates and SDs. This distribution is Gaussian even if the noise- corrupting the image is not Gaussian.

Tomographic images and radiographic images which are obtained by projecting objects on a plane (plate/digital image/….). where FRD is the focal receptor distance and FOD is the focal object distance

Image arithmetic is the simplest form of image processing. Image arithmetic applies one a standard arithmetic operator or a logical operator to 2 or more images. Operators are applied pixel by pixel, which means that the pixel value of the output image depends only on the corresponding pixel values of the input images. Images must be the same size. We analyse the following image arithmetic operators:

  • point by point addition: image + image (or constant)
  • point by point subtraction: image ‒ image (or constant)
  • point by point multiplication: image .* image (or constant)
  • point by point division: image ./ image (or constant)
  • blending: linear combination of 2 images ADDITION takes as input 2 images of the same size and produces as an output an image of the same size in which each pixel is given by the sum of the corresponding pixels in the input images. You can use a constant image as the 2 nd^ input image (histogram translation towards brighter levels). The addition of 2 images is achieved directly in a single step. The values of the output pixels in (i,j) are given by: If you want to add a constant C to a single image: If the pixel values of the input images are vectors instead of scalar (for example, in the case of colour images), the individual components (red, blue and green) are added separately to produce the output image. If the format of the input images supports only 8-bit (values 0-255), it may happen that the result of addition is greater than the maximum allowed, producing an overflow phenomenon. The value of these pixels is set to the maximum allowable value, producing a phenomenon called "saturation". In matrix notation it is written respectively: where + represents the addition of matrices

ARITHMETIC OPERATIONS and IMAGE TRANSFORMATION