Docsity

Computer Aided Surgery - Appunti - Baroni, Appunti di Robotica

Toggle sidebar
bg1
Computer Aided Surgery (CAS) Lectures
1
Computer Aided Surgery (CAS) Lectures
Data
Slides
Lesson 1 Lesson 10 Lesson 2 Lesson 3 Lesson 4 Lesson 5 Lesson 6
Lesson 7 Lesson 8 Lesson 9
Table of Contents
@August 5, 2023
L01 - Introduction to CAS
Introduction
Aims of Computer Aided Surgery
Definition and CAS Workflow
Uncertainties Issue in CAS
Current applications of CAS/CIS systems
L02 - Classification of BMI devices in CAS/CIS systems
X-Ray Imaging
Generation: X-ray tube
Effects of X-rays on biological matter
Absorption of photons: X-Rays Images
Components of X-Ray Unit
X-Ray Fluoroscopy
Computer Tomography (CT)
Cone Beam Computed Tomography (CBCT)
Motion Artifacts in Imaging for Planning
Slow CT
Inhale and exhale breath-hold CT
Respiratory correlated 4D-CT
Magnetic Resonance Imaging (MRI)
4D MRI
Combined MRI + LINAC
Nuclear Medicine
Positron Emission Tomography (PET)
PET-based dosimetry in particle therapy
Ultrasound Imaging
Ultrasound intra-operative applications
Biomedical images communication and integration - DICOM
DICOM Files structure
Image to Physical Space Mapping
L03 - Imaging workflow in CAS / CIS
Preprocessing
2D Segmentation
Region based methods
Edge - Enhancement methods
3D Preprocessing
3D Segmentation
Iso-surfacing methods
These notes were drafted with Notion, which does not export well in pdf. All the information, pictures and formulas are here
but not formatted in the best way. Also, docsity doesn’t allow the upload of more of 20 Mb so the last two chapters are
missing from this file.
>> If you bought the file, please send me an email ([email protected]), and I will share with you the link so
that you can access the original version on any browser at any time.
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

Anteprima parziale del testo

Scarica Computer Aided Surgery - Appunti - Baroni e più Appunti in PDF di Robotica solo su Docsity!

Computer Aided Surgery (CAS) Lectures

Data Slides Lesson 1 Lesson 10 Lesson 2 Lesson 3 Lesson 4 Lesson 5 Lesson 6 Lesson 7 Lesson 8 Lesson 9 Table of Contents @August 5, 2023 L01 - Introduction to CAS Introduction Aims of Computer Aided Surgery Definition and CAS Workflow Workflow of CAS integrated systems Uncertainties Issue in CAS Current applications of CAS/CIS systems L02 - Classification of BMI devices in CAS/CIS systems X-Ray Imaging Generation: X-ray tube Effects of X-rays on biological matter Absorption of photons: X-Rays Images Components of X-Ray Unit X-Ray Fluoroscopy Computer Tomography (CT) Cone Beam Computed Tomography (CBCT) Motion Artifacts in Imaging for Planning Slow CT Inhale and exhale breath-hold CT Respiratory correlated 4D-CT Magnetic Resonance Imaging (MRI) 4D MRI Combined MRI + LINAC Nuclear Medicine Positron Emission Tomography (PET) PET-based dosimetry in particle therapy Ultrasound Imaging Ultrasound intra-operative applications Biomedical images communication and integration - DICOM DICOM Files structure Image to Physical Space Mapping L03 - Imaging workflow in CAS / CIS Preprocessing 2D Segmentation Region based methods Edge - Enhancement methods 3D Preprocessing 3D Segmentation Iso-surfacing methods

L 01 - Introduction to CAS

3D models generation 2D contours connection Rendering Surface based rendering Voxel-based rendering L04 - Surgical Simulation Realistic Models Vertex Based Model Spline Based (Free Form Deformation) Method Particle based models Physical FEM models L05 - Surgical Planning Surgical planners interfaces Radiation Oncology Planning Radiotherapy dosimetric assessment Particle therapy L06 - Intro to Registration and Mapping Registration Mapping L07 - Medical Robotics Medical Robotics Devices Inverse kinematics problem in medical robotics Denavit - Hartenberg convention Inverse kinematics problem L08 - Intra-Operative Localization 3D Localization Methods Optical Tracking Localization Localization issue of passive markers: correspondence algorithms L09 - Registration Error propagation Theoretical model for Registration Error distribution Rigid registration of corresponding points Case B Non Corresponding Points Registration Head and Hat (HH) Algorithm Iterative Closest Point (ICP) Algorithm Image Based Registration Interpolation Similarity Metrics Graphical support in image based registration 2D-3D image based registration Camera Pose Estimation Patient Tracking Motion Management in Treatment Delivery 4D CT in Motion Management Indirect tumor tracking: correlation models

  1. giving clinicians the tools to deal with CAS technologies
  2. make correct measurements and planning (accuracy is vital in this setting) → always be aware of the exact margin of uncertainty at each step ( lesion is there 1 mm ) CAS Case Study: Cerebral Biopsy with Navigation MRI guided system to identify tumor position in precise surgeries (brain, spinal cord) to make the smallest and precise surgical cut to extract the tumor. It provides the surgeon a way to see what’s going on during the surgical procedure with respect to the predefined treatment plan All these middle steps are up to us, the surgeon is just using the system
  3. preoperative phase: MRI Scan identify the tumor and its shape, to be extracted
  4. reference system matching (MRI and surgical) by position of the markers on the head of the patient → the software finds the geometrical transformation to match the two and open an information channel between the MRI map and the operative phase [ crucial point of registration ]
  5. intraoperative phase: optoelectronic IR tracker (localizer) identifies in 3D the markers attached on the patient and pointer → the system provides a visual feedback: a red cross (pointer) moving in the patient’s model guides the surgeon. How is this possible? introducing localization system: adding technical points on the patient’s scalp - to have a sufficient set of information to localize in space position and orientation of the rigid body “head” of the patient points minimum (to identify a rigid body) - non collinear surrogates
  6. MRI scanner hp. patient’s body is a rigid body identify the position of the tumor with respect to MRI RS identify the position of the 3 surrogates with respect to MRI RS → need a stable element to establish a connection between preoperative (MRI RS) and intraoperative (surgery RS) surrogates cannot be removed between MRI and surgery, they are now a part of the stable elements needed for identification of the rigid body “head” and coordinates translation otherwise, instead of the surrogates the 3D surface of the patient’s face or some other recognizable surface can be acquired (like in the video, scanning the face)
  7. Build patient based RS can now translate all coordinates (tumor and surrogates) from MRI RS to patient mounted RS build a rototranslational operator T (matrix) which allows to move from one RS to the other

[ ]

Patient RfS and surrogates are essential because they “open the gate” between the MRI and the surgical situation (which are the two real situation we operate in)

  1. Build again the RS in the surgical room with markers and optoelectronic camera can identify three surrogates, and then a rototranslational element to move from patient coordinates to surgical optical system coordinates (dominant in surgical settings) → now when moving with the localized the position is re-tracked in the patient and MRI positions so that MRI, patient and surgical operations all communicate through positions
  2. Registration map and superimpose the treatment plan into the surgical reality, to guide the surgeon interaction in possible thanks to the pointer Aims of Computer Aided Surgery Final outcome: increase quality and reduce costs of surgical procedures Predictable outcome can predict and compare after surgery Documentation and scientific data collection display how the intervention was performed (educational and legal objectives) Minimal trauma and hospitalization smaller surgical cuts → easier rehabilitation and lower invasiveness Longer implant life span in orthopedic surgery More natural, faster and painless recovery Minimized operating room time, since planning occured in advance

(^ ( PM ) RI )^^ T^ =[

R
t

]

t ( P^ )^ =inv( (^ ( PM ) RI )^ T ) t ( MRI )

T (^ ( MORptI )^ )=[

R
t

1 ]

t ( Opt )^ =inv ( T ( Opt ) t

( P )

) ( P^ )

Biomedical Images role in CAS - discussed in the next chapter the imaging approach in CAS is inherently different to the diagnostic one, where qualitative images, which discard attention to geometry and artifacts to a decent amount, are enough to provide a safe and precise diagnosis. In treatment planning and model building, precise quantitative measures with the highest accuracy available are needed: landmarks have to be localized and trajectories computed. Hence, the same imaging technologies that have been used for decades for diagnosis, have been adapted to serve as planning tools highest accuracy possible highest resolution avaiable always keeping in mind the tradeoffs of these gains (e.g. CT exposition to x-rays limits the resolution of images) Technologies X-ray and Computer Tomography (CT) images are the most commonly used to build 3D anatomo-pathological models. 4D CT extends 3D CT into time, allowing for cyclic movement to be detected, to address artifacts (like breathing artifacts) by modeling and compensating motion in the treatment plan Magnetic Resonance Imaging (MRI) is used for soft tissues imaging Positron Emission Tomography (PET) and nuclear medicine are usually superimposed to CT scan to gain metabolic and functional information Ultrasound (US) has often intra-operative applications, since it’s portable (but low quality, not enough for pre-operative planning)

  1. Models are built with image reconstruction techniques
  2. Planning of the surgery based on the obtained model Surgical Planning planning is based on 3D or 4D model coming from diagnostic images, including the identification of quantitative information needed to drive the surgical procedure trajectories, conspicous points, agles,specific geometry and dosimetric datasets stereotactic approach: always 3D approach the plan relies on the hp. to be fully representative of the surgical reality (not true, issues discussed in ) Organ motion : introduces unpredictable deviations between the configuration of the patient at MRI acquisition and in the surgical room → main enemy of CAS

respiration, brain shift needs to be taken into account and make the most to address, still it is an unsolved issue, can be limited not eliminated

  1. Intra-operative phase it uses an (i) optical tracking device for localization, an (ii) imaging system to acquire images of the patient and (iii) robots performing the surgery or delivering treatment and/or image guidance for navigation Navigation it provides to the surgeon an augmented reality to enhance the surgical plan’s information. It allows the clinician to correct the trajectories and to always have under control the position of the pointer within the patient (within the inevitable uncertainties) allows recording of data during procedure (education, sharing, legal reasons)
  2. Registration the exchange of data and information between the pre- and intra-operative phases is allowed by registration techniques, which allow super-imposition and comparison of preoperative information onto the surgical setting it can be based on points, images or surfaces it uses matching algorithms Case Study - Radiation oncology completely automated procedure, no physical bisturi, repeated for 30-40 days highest level of CAS , completely automated - will be referenced quite a lot in the course no human - surgeon interaction, completely automated, the surgeon is not there to deal with errors errors have to be identified and dealt with automatically, with no human supervision in a standard CAS setting the surgeon is there and can act in case of errors Uncertainties Issue in CAS CAS overview with pre and inter-operative phases Technical elements of a CAS/CIS system to conduct all the workflow’s phases

Definitions and Terminology A CIS/CAS system is: a set of devices mastered by computers aiming at increasing the dexterity (manual ability), provide visual and haptic feedback and augment information for the surgeon at the time of intervention CAS does NOT replace the human operator, it optimizes and amplifies the capabilities! Stereotaxis : (from ancient greek: “place in space” ) is a surgical “mentality” more than a technique. In this course, stereotactic surgery groups surgical techniques which entail the 3D localization of the target (and organs at risk) expressed with respect to a reference frame solid with the patient (helmets, body-frames, control points) Registration (or matching): procedure for the superimposition/comparison/ integration of pre-operative versus intra-operative dataset Mapping : analytic transformation which allows one to express 2D or 3D data w.r.t. different reference systems Robot : Automatic and programmable device designed to replace human operators in specific activities (typically dangerous and/or tiring) in industry and scientific research Segmentation : extraction (manual, semi-automatic, automatic) of specific features on 2D/3D bioimages; Rendering : visualization (with different level of elaboration) (2D, 2D 1⁄2) of anatomopathological models (surfaces/volumes) obtained from bioimages IGS : Image Guided Surgery IGRT : Image Guided Radiotherapy

L 02 - Classification of BMI devices in CAS/CIS systems

Historical background of CAS development, highlights that the 90 s have been the golden years of these technologies

the imaging approach in CAS is inherently different to the diagnostic one, where qualitative images, which discard attention to geometry and artifacts to a decent amount, are enough to provide a safe and precise diagnosis. In treatment planning and model building, precise quantitative measures with the highest accuracy available are needed: landmarks have to be localized and trajectories computed. BMI technologies will be discussed within this framework in this chapter. when surgery is planned a completely new MRI / CT scan is performed, which aims at providing the material to build the patient’s model and planning they are no longer diagnostic machines, they are measurement machines Elements for classification

  1. pre-operative or intra-operative application US are mostly intra-operative, CT pre-operative and MRI for both
  2. dimensional information features 2D - conventional radiography 2D+time - continuous x-ray acquisition 3D - intrinsic in MRI and CT 4D = 3D+time - to control motion in treatment planning and compensate for motion artifacts and displacements)
  3. Image features : intensity level coding: number of bits used to code the grey level pixel by pixel spatial resolution: physical dimension of a 2D pixel pixel dimension (resolution) defines the lowest error we can make and is therefore a crucial parameter→ highest spatial resolution, lowest possible space between slices never SNR Distortions: crucial in MRI for planning, since can introduce geometrical errors

X-Ray Imaging

X-Ray imaging remains the predominant modality in healthcare systems and markets, due to a strong tradition dating back to the end of the 20th century and reduced costs. X and - rays: ionizing radiations feature high frequency ( , beyond 1016 Hz) and small wave lengths ( , lower than 10-8 m) cause ionization in biological markers, danger but can be used to kill cancerous cells out of the visible spectrum and can penetrate and interact with the biological matter It is based on the attenuation of X-rays through the subject’s body, which allows to reconstruct the density of the crossed tissues, according to Beer’s Law radiation intensity at measurement depth z

> 1 mm

γ ↑ f ↓ λ

I ( z )

Energy equivalence in the X-ray tube Very low efficiency, ~ 1% of ∆V energy in input produces X-rays, the rest is lost in heat def. Electronvolts [eV]: unit of measure of energy of X-ray beams energy needed to move one electron in the absolute space There is a relation between the imposed ∆V and the energy of the relative X-rays Convention : 100kV as ∆V, will result in a production of an X-ray beam of 100eV → crucial in imaging because allows to modulate X-rays energy, which affects the imaging parameters (see later) Effects of X-rays on biological matter The image is obtained from the photons that are able to cross the subject’s body without being deviated, even if attenuated by the tissues crossed. However, we have to take into account other interactions that occur between X-rays and biological matter, which can lead to secondary radiation resulting in image noise and in biological ionization, which needs to be carefully considered. These effects depend on the energy of the impinging beams, from lower to higher energy they are:

  1. Photo-electric effect When an X-ray photon collides with an atom, it can expel one of the atom's orbital electrons, causing secondary or scattered radiation, which results in image noise atom ionization and radicals production, which are unstable species that can lead to chromosome aberrations and cellular instability. This instability can provoke cancer or even immediate damage to structures, leading to metabolic dysfunctions.
  2. Compton effect the interaction of an X-ray photon with an atom results in the expulsion of an (i) electron (Compton electron) and a (ii) photon (Compton photon). This produces secondary radiation and contributes to noise in imaging systems. the Compton photon can cause secondary photoelectric effect on its own, leading to a secondary source of noise
  3. Pair Production Pair production is a process in which a high-energy photon interacts with a nucleus, creating a positron and an electron. This process produces very high-energy radiation that is not useful for imaging and is considered noise. the electron hits the nucleus which generates expulsion for (i) electron and (ii) positron with very high energy radiation (MeV), still secondary radiation we don’t want → it’s a huge source of noise, reason why we never reach too high voltage differences in acquisition

1 eV

E X − rays [ eV ] ∝∆ Vi mposed [ kV ]

( 1 0 0 keV − 10 1 keV )

( 1 0 1 keV )

( 1 0 2 keV − 10 3 keV )

Diagnostic imaging ~ with Compton and photoelectric effects being dominant Therapeutic irradiation ~ , with pair production and consequent ionization as main effect. This causes death of irradiated cells (tumoral targets) Absorption of photons: X-Rays Images Absorption allows for image formation through different gray levels and is a negative exponential ruled by Lambert-Beer law, which regulates attenuation of rays in matter (in general, attenuation depends on the density of the matter) Lambert-Beer’s Law radiation intensity at measurement depth z initial intensity attenuation/absorption coefficient physical density of the crossed tissue the existing radiation has diversified attenuated energy according to the portion and density of the tissue that was crossed by the beams. Detecting the remaining energy the density of the crossed tissue of each impinging beam on a pixel can be reconstructed. It is possible to see the physical density and the absorption coefficient coupled together in a unique coefficient → coefficient of absorption or attenuation Photo Electric Effect Compton^ Effect Pair^ Production X-Rays effects on biological matter with respect to the beam’s energy

50 − 150 keV
10 MeV

I = I 0 e − μρz

I ( z )

I 0

μ [ m^2 / g ]

ρ [ g / cm^3 ]

  1. Image white crystals are impressed by low energy photons (crossed high density tissues, like bones) and black areas where high energy photons collided (crossed low density tissues or air) X-Ray Fluoroscopy 2D + time: 15-20 Hz temporal resolution intraoperative application mostly digital detectors in today’s application C-arm system X-ray fluoroscopy performed with portable C-arm devices, allowing flexibility in the surgical room the continuous acquisition shows not only the anatomy but the dynamics of phenomena of surgical interest as well allows to follow tumors dynamically during surgery (they move for breathing movement, brain shift at the skull opening etc.) a radio clip in implanted in the tumor, since soft tissue cannot be segmented with a decent accuracy There are three ways to perform x-rays conversion to build an image, the most used method is indirect conversion (i) X-ray hits a scintillator layer, where crystals are excited in a way dependent on the photons’ energy, (ii) the scintillator produces a visible light which excites the below photodiodes, which produce the image, (iii) the image is sampled by a TFT array (like a normal screen to produce the image) The flat panel detector (usually amorphous Si) parameters determine the resolution of the image
  2. dimensions of pixel area : active area, determines how physically big will be the acquired image (FOV)
  3. number of pixels in the pixel area: determines the image’s resolution Issues of Fluoroscopy
  4. Invasive application: radio clip needs to be implanted Three ways to perform X-rays conversion and image building
  1. Continuous irradiation : additional dose delivered (especially risky in radiation oncology, where high doses of ionizing radiation are already being delivered for therapy and this additional image guidance dose has to be considered Motion issue in radiation oncology there are two way to address the movement of the tumoral mass during oncology surgery
  2. irradiate all the area the tumor moves within, but this has side effects on many healthy tissues
  3. Tumor tracking: focus the therapy beam on the tumor at all times, by using the data from the intra- operative fluoroscopy imaging → increases radio dose for the 5-10 minutes of treatment
  4. Accuracy is limited by the secondary radiations: there never are black-to-white transitions in the image, due to the noise introduced by the secondary emissions → issue when segmenting structures (especially bones against liquids or soft tissue)
  5. Provides 2D images only : cannot rely too much on 2D images, structures of interest are 3D → 2D limitation is a crucial issue in intra-operative imaging (in general) Computer Tomography (CT) reference technology for pre-operative X-ray, since it is intrinsically 3D and 4D it is widely used in the patient’s model building. How does it work? rotating couple made of an X-ray tube and collimator + array of detectors
  6. the couple rotates 360° around the patient and the beam is collimated in a thin blade, corresponding to slice thickness (few mm)
  7. once all angles have been sampled, the patient is advanced in the device, to acquire the next slice
  8. the 3D image is reconstructed from the slices projections (FDK algorithm, see BMI part) → redundancy of attenuation data allows to construct a 3D map of attenuation values in the tissues idea: by using just a thin blade and not an entire beam, scattering phenomena are strongly limited CT technologies
  9. old systems: axial CT start and stop, acquiring 1 slide (360° rotation) at a time CT head scan diagram

Typical features 1. spatial resolution 512x512, gray level coding 12 bits

  1. physical pixel dimension 0.5mm
  2. slice thickness 1-10mm
  3. 5-200 slices/scanning Intrinsically 3D biomedical images techniques why can we say that CT is an intrinsically 3D unit of imaging? each CT slice is 2D, but it’s the 2D representation (function) of the densities of 3D elements → it represents 3D information in a 2D map when backprojecting we consider the 2D information (physical density) as concentrated in the center of the 3D voxel during CT sampling, the projections are not lines as for traditional radiography, but blade shaped beams that select a specific 3D portion of the patient each pixel is the image of a voxel (tipically 0.98x0.98x3 mm) → selecting the slice thickness is up to the operator, in our setting we keep it as low as possible, to increase the spatial resolution along the axial (3rd) dimension when looking at a 2D CT, we always have to consider that it is an intrinsically 3D representation that averages the densities of tissues within the 3D voxel! The voxel dimension determines the minimum error we can commit in surgical setting, we cannot pretend to be more precise than this uncertainty (further than sampling) → slice thickness definition determines the surgical planning accuracy 3 D setting in CT single slice scan

Hounsfield Unit (HU) : gray level of the image pixel is a function of the CT number (normalized attenuation coefficient) of the corresponding voxel through different CT numbers we are able to distinguish between different soft tissues with proper rendering at the rendering stage the structures are highlighted by setting the CT number range and the center of this window we want to be represented on the image, improving recognition of anatomical structures many soft tissues can be enhanced (e.g. lungs) CT Applications in CAS in CAS the main application of CT is in the preoperative phase, but there exist some intra-operative CT scan applications: has some crucial limitation: exposition, CT scan needs to be in the surgical room, takes long time to acquire and build the volume and then compare information with the reference → overall the time spent for fast surgical procedures (like orthopedic) makes it not common More used in radiation oncology (bunker is already there, no operators inside: no radio-protection issues) → scanning immediately before irradiation (scanning on rail moving along the patient, otherwise patient would have to slide through two systems: scanning and irradiation) increases time needed, but applied in some situations that needs extremely high precision in irradiation, like proton beam irradiation

CTn umber = 1000

μwater

μ − μwater

CT number for various hard and soft tissues