1 / 48

Introduction to Medical Image Analysis

Introduction to Medical Image Analysis. Rasmus R. Paulsen DTU Informatics rrp@imm.dtu.dk http://www.imm.dtu.dk/courses/02511. TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A A A A A. Lecture 9 – Pixel Classification.

ura
Télécharger la présentation

Introduction to Medical Image Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Medical Image Analysis Rasmus R. Paulsen DTU Informatics rrp@imm.dtu.dk http://www.imm.dtu.dk/courses/02511 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAAAA

  2. Lecture 9 – Pixel Classification

  3. What can you do after today? • Describe the concept of pixel classification • Use Matlab to select pixel training data • Compute the pixel value ranges in a minimum distance classifier • Implement and use a minimum distance classifier • Describe how a pixel value histogram can be approximated using a Gaussian distribution • Describe how the pixel value ranges can be selected in a parametric classifier • Implement and use a parametric classifier • Explain the concept of Bayesian classification

  4. Classification • Take a measurement and put it into a class Measurement Classes • Bike • Truck • Car • Motorbike • Train • Bus ? Classifier Wheels: 2 HP: 50 Weight: 200

  5. General Classification • Multi-dimensional measurement • Pre-defined classes • Can also be found automatically – can be very difficult!

  6. Pixel Classification • Classify each pixel • Independent of neighbours • Also called labelling • Put a label on each pixel • We look at the pixel value and assign them a label • Labels already defined CT scan of human head Quiz: Two class classification with background and object? Background Soft-Tissue Trabecular Bone Hard Bone

  7. Pixel Classification – formal definition Pixel value (the measurement) k classes Classification rule

  8. Pixel Classification – example Pixel value Set of 4 classes Classification rule How do we construct a classification rule?

  9. Pixel classification rule background trabeculae soft-tissue bone How do we do this?

  10. Pixel classification rule – manual inspection Looking at some few pixels background bone soft-tissue trabeculae

  11. Pixel classification rule – manual inspection New pixel – where do we put it? Looking at some few pixels background bone soft-tissue trabeculae

  12. Pixel classification rule – manual inspection New pixel – where do we put it? Looking at some few pixels • Measure the “distance” to the other classes • Select the closest class Minimum distance classification background bone soft-tissue trabeculae

  13. Pixel classification ruleMinimum Distance Classification The possible pixel values are divided into ranges Here the distance to “background” is equal to “soft-tissue” Background range Trabecular range soft-tissue range Bone range background bone soft-tissue trabeculae

  14. Pixel classification ruleMinimum Distance Classification Background range Trabecular range soft-tissue range Bone range background bone soft-tissue trabeculae

  15. Pixel classification rule • For all pixel in the image do

  16. Pixel Classification example Background Soft-Tissue Trabecular Bone Hard Bone CT scan of human head

  17. Better range selection • Guessing range values is not a good idea • Better to use “training data” • Start by selecting representative regions from an image • Annotation • To mark points, regions, lines or other significant structures

  18. Classifier training - annotation • An “expert” is asked how many different tissue types that are possible • Then the expert is asked to mark representative regions of the selected tissue types Background Soft-Tissue Trabecular Bone Hard Bone

  19. Classifier training – region selection • Many tools exist • Matlab tool roipoly • Select closed regions using a piecewise polygon Training is only done once! Optimally, the training can be used on many pictures that contains the same tissue types

  20. Initial analysis - histograms Gaussian

  21. Initial analysis - histograms Class separation

  22. Simple pixel statistics • Calculate the average (mean) and the standard deviation of each class Standard deviation Average

  23. Minimum distance classification Any objections? The pixel value ranges are not always in good correspondence with the histograms?

  24. Exam question 09.15

  25. Parametric classification • Describe the histogram using a few parameters • Gaussian/Normal distribution • Average • Standard deviation Trabecular bone Only two values needed

  26. Parametric classification Training pixel values Estimated average Estimated standard deviation Trabecular bone

  27. Parametric classification • Fit a Gaussian to the training pixels for all classes What do we see here? What is the difference between the two classes? Trabeculae has much higher variation in the pixel values

  28. Parametric classification • New pixel with value 78 • Is it soft-tissue or trabecular bone? • Minimum distance classifier? • Soft-tissue • Is that fair? • Soft-tissue Gaussian says “Extremely low probability that this pixel is soft-tissue”

  29. Parametric classification – repeat the question • New pixel with value 78 • Is it soft-tissue or trabecular bone? • Most probably trabecular bone • Where should we set the limit? • Where the two Gaussians cross!

  30. Parametric classification – ranges • The pixel value ranges depends on • The average • The standard deviation • Compared to the minimum distance classifier • Only the average Trabecular bone Soft-tissue

  31. Parametric classification – how to • Select training pixels for each class • Fit Gaussians to each class • Use Gaussians to determine pixel value ranges • Little bit difficult with the Gaussians

  32. Parametric classifier - ranges • We want to compute where they cross • Create a lookup table: • Run through all 256 possible pixel values • Check which Gaussian is the highest • Store the [value, class] in the table

  33. Alternatively – analytic solution The two Gaussians Intercept at Piece of cake!

  34. Exam Question 09.2 and 09.19

  35. Exercises ?

  36. Bayesian Classification Pure parametric classifier assumes equal amount of different tissue types Area = 1

  37. Bayesian Classification Much more soft-tissue than trabecular bone Area = 1 How do we handle that?

  38. Bayesian Classification • An expert tells us that a CT scan of a head contains • 20% Trabecular bone • 50% Soft-tissue • Picking a random pixel in the image • 20% Chance that it is trabecular bone • 50% Chance that it is soft-tissue • How do use that?

  39. Bayesian Classification – histogram scaling Scaled with 0.50 Scaled with 0.20 Bayesian classifier Parametric classifier Little change in class border (sometimes significant changes)

  40. Formal definition • Given a pixel value • What is the probability that the pixel belongs to class Example: If the pixel value is 78, what is the probability that the pixel is bone

  41. Formal definition Constant – ignored from now on

  42. Formal definition • The a priori probability (what is known from before) Example: From general biology it is known that 20% of a brain CT scan is trabecular bone. Therefore P(trabecular) = 0.20

  43. Formal definition • The class conditional probability • Given a class, what is the probability of a pixel with value v Example: If we consider class = soft-tissue. What is the probability that the pixel value is 78? Very low

  44. Formal definition – sum up

  45. Parametric classification – how to • Select training pixels for each class • Fit Gaussians to each class • Ask an expert for the prior probabilities (how much there normally is in total of each type) • For each pixel in the image • Compute for each class (the a posterior probability) • Select the class with the highest

  46. When to use Bayesian classification • The parametric classifier is good when there are approximately the same amount of all type of tissues • Use Bayesian classification if there are very little or very much of some types

  47. Exercises ?

More Related