Automatic Classification of Eardrum Shape

Information

  • Patent Application
  • 20180260616
  • Publication Number
    20180260616
  • Date Filed
    March 08, 2017
    7 years ago
  • Date Published
    September 13, 2018
    6 years ago
Abstract
Eardrums are automatically classified based on a feature set from a three-dimensional image of the eardrum, such as might be derived from a plenoptic image captured by a light field otoscope. In one aspect, a grid is overlaid onto the three-dimensional image of the eardrum. The grid partitions the three-dimensional image into cells. One or more descriptors are calculated for each of the cells, and the feature set includes the calculated descriptors. Examples of descriptors include various quantities relating to the depth and/or curvature of the eardrum. In another aspect, isocontour lines (of constant depth) are calculated for the three-dimensional image of the eardrum. One or more descriptors are calculated for the isocontour lines, and the feature set includes the calculated descriptors. Examples of descriptors include various quantities characterizing the isocontour lines.
Description
BACKGROUND
1. Field of the Invention

This disclosure relates generally to analysis of three-dimensional images of the eardrum, including those produced from light field images.


2. Description of Related Art

Past studies have shown that the three-dimensional (3D) shape of the eardrum (also called the tympanic membrane or TM) is one of the most important factors for distinguishing Acute Otitis Media (AOM) which is a bacterial infection of the middle ear and requires antimicrobial treatment, from Otitis Media with Effusion (OME) which is a sterile effusion and tends to resolve on its own, and from No Effusion (NOE) which is a normal ear drum condition. In clinical assessment of otitis media conditions, clinicians typically visually inspect the TM using traditional otoscopes and decide whether the TM is bulging, retracting or it is in its neutral shape. Bulging of the TM is due to the presence of fluid in the middle ear behind the TM, which pushes the TM forward from its neutral position. When the TM is retracted, it is pulled back from its neutral position. Such assessment of the TM shape is very important towards accurate diagnosis.


Therefore, an algorithm that can automatically and accurately assess the three-dimensional (3D) shape of the eardrum could lead to more accurate and more widespread diagnoses. However, most prior work tries to provide automatic classification of otitis media conditions from two-dimensional images obtained with conventional digital otoscopes. They may try to infer shape properties from two-dimensional images—from shading or image gradients—which can be erroneous and depend heavily on prior data.


Thus, there is a need for better approaches to automatically classify the shape of eardrums.


SUMMARY

The present disclosure overcomes the limitations of the prior art by automatically classifying eardrums based on a feature set from a three-dimensional image of the eardrum, such as might be derived from a plenoptic image captured by a light field otoscope. In one aspect, a grid is overlaid onto the three-dimensional image of the eardrum. The grid partitions the three-dimensional image into cells. One or more descriptors are calculated for each of the cells, and the descriptors are used as part of a feature set for classification. Examples of descriptors include various quantities relating to the depth and/or curvature of the eardrum.


In another aspect, isocontour lines of constant depth are calculated for the three-dimensional image of the eardrum. One or more descriptors are calculated for the isocontour lines, and these are used as part of a feature set for classification. Examples of descriptors include various quantities characterizing the isocontour lines.


Other aspects include components, devices, systems, improvements, methods, processes, applications, computer readable mediums, and other technologies related to any of the above.





BRIEF DESCRIPTION OF THE DRAWINGS

The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.


Embodiments of the disclosure have other advantages and features which will be more readily apparent from the following detailed description and the appended claims, when taken in conjunction with the accompanying drawings, in which:



FIG. 1a is a flow diagram for automatic eardrum classification using a light field otoscope (LFO), according to various embodiments.



FIG. 1b is a diagram of a LFO suitable for use in capturing a plenoptic image of the eardrum, according to the method of FIG. 1a. FIG. 1c is a diagram of an optical train for the LFO of FIG. 1b.



FIGS. 2a-2c illustrate the use of an elliptical grid (GE), a circular grid with unregistered center (GC1), and a circular grid with registered center (GC2), respectively, in a grid-based approach for feature extraction, according to various embodiments.



FIG. 3 is a flow diagram for calculating descriptors for a grid-based approach to classification, according to one embodiment.



FIG. 4 is a flow diagram for calculating isocontours for use in an isocontour-based approach to classification, according to one embodiment.



FIGS. 5a-5f are images illustrating the method of FIG. 4.



FIG. 6 is a flow diagram for selecting isocontour-based descriptors, according to one embodiment.





The figures depict various embodiments for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles described herein.


DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The figures and the following description relate to preferred embodiments by way of illustration only. It should be noted that from the following discussion, alternative embodiments of the structures and methods disclosed herein will be readily recognized as viable alternatives that may be employed without departing from the principles of what is claimed.



FIG. 1a is a flow diagram for automatic eardrum classification using a light field otoscope (LFO), according to various embodiments. In this example, a LFO captures 110 a plenoptic image containing four-dimensional (4D) light field data of the ear canal, including the eardrum. The 4D light field data is processed 120 to produce a three-dimensional (3D) image of the eardrum. This 3D image may have variations in tilt, position and scale, due to variations in the otoscope position and variations in the eardrums of different patients. In step 130, the 3D image of the eardrum is registered (i.e., normalized) as defined in a standard form. The registered 3D image is used to calculate 140 a feature set, which is used to classify 150 the three-dimensional eardrum shape, for example to distinguish AOM, OME and NOE. FIG. 1a shows two approaches to calculating 140 features, which will be discussed in further detail below.



FIG. 1b is a diagram of a LFO suitable for use in capturing 110 a 4D light field image of the eardrum. FIG. 1c is a diagram of an example optical train for the LFO of FIG. 1b. In this example, the otoscope 100 is handheld and includes a main body and a handle. The main body houses the optics 160 and the plenoptic sensor 170. The handle includes illumination 152 for the otoscope 100. Referring to FIG. 1c, the optics 160 includes an otoscope objective 162 and relay optics 164a-b. The plenoptic sensor 170 is a sensor array 174 with a microimaging array 172 (e.g., a microlens array or pinhole array) mounted in front of it. A disposable speculum 155 is attachable to the tip of the otoscope. In this example, the output of the plenoptic sensor 170 is transmitted to a separate computer system 180, which processes the captured light field data and displays the desired results. For example, the computer system 180 may implement the automatic feature extraction and eardrum classification process described in FIG. 1a.


The imaging optics 160 form a conventional image within the otoscope instrument at an intermediate image plane I2. Rather than a conventional sensor array capturing this image, a plenoptic sensor 170 captures the image. The microlens array 172 is positioned at the intermediate image plane I2 and a sensor array 174 is positioned at a conjugate P3 of the pupil plane P1. In addition, a filter module (not shown in FIG. 1) can be inserted at a pupil plane of the optical train (or at one of its conjugates) to allow spectral or other filtering of the light. The 4D light field data captured by the plenoptic sensor 170 is sent to a computing module 180 that performs the image processing of the plenoptic data. In this way, three-dimensional (3D) shapes, translucency and/or color information can be captured and extracted.


In the example design of FIG. 1c, the first relay lens group 164a is used to re-image and magnify the pupil P1. An aperture stop 166 (with removable aperture) is placed at the re-imaged pupil plane P2. The second relay lens group 164b forms an image of the object onto the microlens array 172 at I2, which is a conjugate of image plane I1. The relay lens group 164b is positioned one focal length from the aperture stop location P2 and one focal length from the image plane I2, such that rays are image-space telecentric.


Other examples are described in U.S. application Ser. No. 13/896,924 “Plenoptic Otoscope,” Ser. No. 15/063,362 “Optical Design of a Light Field Otoscope,” and Ser. No. 14/323,949 “Otoscope Illumination,” which are incorporated by reference herein.


The 4D light field data can be processed 120 in various ways to produce a 3D image of the eardrum. Various approaches are described in U.S. application Ser. No. 14/064,090 “Processing of Light Fields by Transforming to Scale and Depth Space,” and Ser. No. 15/048,742 “Processing of Light Fields by Transforming to Scale and Depth Space,” which are incorporated by reference herein. This particular example uses a LFO to obtain 3D images of the eardrum, but the feature extraction and eardrum classification described below is equally applicable to 3D images acquired by other means.


Registration 130 normalizes the 3D image as defined by a predefined standard form. For example, tilt plane registration can be used to remove tilt (i.e., out-of-plane rotation) of the eardrum image. Rotation registration can be used to compensate for rotation of the eardrum image, where “zero rotation” is defined by the standard form. Center localization detects the center of the eardrum image, where “center” is defined in the standard form, such as the location of the umbo. Scale normalization rescales the eardrum image to a standard size, as defined by the standard form. Note that not all of these steps are required nor are they required to be performed in the order shown. In addition, other registration/normalization processes may also be performed. Additional examples are provided in U.S. patent application Ser. No. 15/452,613 “Automatic Eardrum Registration from Light Field Data,” which is incorporated by reference herein.



FIG. 1a shows two approaches to calculating 140 features from the registered 3D image. The lefthand column is a grid-based approach and the righthand column is an isocontour-based approach. In the grid-based approach, a grid is overlaid 141 on the 3D image of the TM. The grid partitions the eardrum image into different cells. One or more descriptors are calculated 142 for the different cells and these descriptors are included 143 in the feature set. In the isocontour-based approach, isocontour lines are calculated 146 for the eardrum image. One or more descriptors are calculated 147 based on the isocontour lines and these descriptors are included 148 in the feature set. These approaches can be used separately or in combination, including with other approaches. They will be described in more detail below.


The feature set is used to classify 150 the eardrum. It may be combined with other information, such as spectral information from an amber or yellow image, which is especially useful to diagnose conditions of the tympanic membrane. Table 1 lists some features distinguishing the conditions of acute otitis media (AOM), otitis media with effusion (OME), and otitis media with no effusion (NOE). Additional examples are described in Ser. No. 14/318,578 “Use of Plenoptic Otoscope Data for Aiding Medical Diagnosis,” which is incorporated by reference herein.









TABLE 1







Otoscopic findings associated with clinical diagnostic categories


on TM images











AOM
OME
NOE





Color
White, pale yellow,
White, amber,
Gray, pink



markedly red
gray, blue



Position
Distinctly full,
Neutral, retracted
Neutral, retracted



bulging




Translucency
Opacified
Opacified, semi-
Translucent




opacified









Depth and Curvature

Before describing specific features, we first describe depth and curvature data for the 3D image of the eardrum. In this example, the input 3D image is obtained by 3D estimation based on the 4D light field data. This can be either a sparse or a dense depth point cloud representation. For a sparse point cloud representation, we can calculate the normalized first derivative Ray-Gaussian light field scale and depth space and/or the Hessian keypoints for the light field scale and depth space, for example as described in U.S. Pat. No. 9,460,515 “Processing of Light Fields by Transforming to Scale and Depth Space” and U.S. Pat. No. 9,569,853 “Processing of Light Fields by Transforming to Scale and Depth Space” (collectively, the “Lisad patents”) which are incorporated by reference herein. Lisad stands for light field scale and depth. We thus get a set of points VϵR2 on the eardrum with specific depth. To get the depth graph J={V, E, W}, we then connect each point to its neighbors using edges E with corresponding weights W. We use Gaussian weights based on either the 3D or 2D distance between the points and we set small ones to zero, resulting in a sparse graph.


For dense depth point cloud representation of 3D eardrum data, we can use the procedure described in the Lisad patents to get a dense depth mesh M={V, O} of the eardrum, where V is the point cloud and O is the mesh connectivity—obtained using Delaunay triangulation, for example. This is the representation that we have used in the following example.


Based on the depth mesh of the eardrum after registration/normalization, which we represent as MR={VR, OR}, we can further compute the eardrum curvature. In order to get a smooth curvature estimate, we first re-mesh the points to get a regular grid in two dimensions. The faces of the new mesh are computed through triangulation (e.g., Delaunay) in two dimensions and the depth on the grid locations is interpolated based on the depth of the initial points. Then, to compute the curvature at each point, we start by approximating the neighborhood of each point (up to third order neighbors) with a quadratic surface. Then, the mean and Gaussian curvature of the points are computed based on the eigenvectors of the Hessian of these quadratic approximations. Other curvature computation methods could be used as well.


Grid-Based Features

In this section we describe various grid-based approaches for extracting descriptors and feature sets from the eardrum 3D depth and curvature data, as previously described with respect to steps 141-143 of FIG. 1a.


Grid Construction. In grid-based approaches, a grid is overlaid onto the 3D image of the eardrum. This is step 141 in FIG. 1a. This partitions the image into cells. The size and shape of the cells depends on the grid. Example grids include the following:


Elliptical grid (GE)


Circular grid with unregistered center (GC1)


Circular grid with registered center (GC2)



FIGS. 2a-2c illustrate the use of these three grids. In these figures, the color image is the 3D depth image of the eardrum, where warmer colors indicate parts of the eardrum that are higher above the average tilt plane and cooler colors indicate parts of the eardrum that are lower below the tilt plane. The grids are defined by the red radial spokes and the blue polar curves in these examples. In all three cases above, the granularity of the cells is determined by two parameters: the number of angular bins nT and the number of radial bins nR, which define how many divisions we have in the angular and radial domains, respectively. In FIG. 2, nT=6, nR=4 and the total number of cells is 6×4=24. The grid is preferably selected so that different cells generally cover similar anatomical regions of the eardrum in different images. The cell granularity is preferably chosen so that the cells are large enough to provide good statistical sampling but not so large as to cover anatomical regions with different characteristics. Cell granularity can also be a function of the accuracy of the depth estimation. If the depth estimation is not as accurate, fewer cells are preferred in order to smooth the statistical information extracted per cell. Finer granularity is preferred when a more accurate depth estimation can be obtained.



FIG. 2a is an example of an elliptical grid (GE). To overlay an elliptical grid on the eardrum mesh MR, we first find the boundary points of the vertices VR. Then, we perform a least squares fit to this boundary to recover the center xEϵR2 as well as the parameters of the major and minor axes of the best fit ellipse. The ellipse is represented in the form:










x
=


x
E

+


Q


(
α
)


·

[




a





cos






(
θ
)







b






sin


(
θ
)






]




,




(
1
)







where xEϵR2 is the center of the ellipse, the rotation matrix








Q


(
α
)


=

[




cos


(
α
)





-

sin


(
α
)








sin


(
α
)





cos


(
α
)





]


,




a and b correspond to the major and minor axes of the ellipse, respectively, and θϵ[0, 2π). This ellipse serves as the outer boundary of the grid, i.e., the border ellipse. Downscaled ellipses are placed co-centrically to create the elliptical grid. The parameters of these ellipses are computed based on the parameters of the border ellipse and the number of radial partitions. In this example, the grid includes nT angular bins and nR ellipses with parameters







(


x
E

,


a
·
j


n
R


,


b
·
j


n
R


,
α

)

,

j
=
1

,





,


n
R

.






FIG. 2b is an example of a circular grid with unregistered center (GC1). In this example, the center of the grid xC1ϵR2 is set equal to the mean coordinates over the vertices VR and the radius of the border circle, RC1, is set equal to the maximum distance of the vertices in VR from the center xC1. To finalize the grid, nR−1 additional circles are placed co-centrically inside the border circle to obtain nR circles with radii








j
·

R

C





1




n
R


,

j
=

1












,


n
R

.






FIG. 2c is an example of a circular grid with registered center (GC2). In this example, we keep the same shape as for grid GC1 but we change the location of the center. Specifically, the center xC2ϵR2 is located based on some definition, for example the location of the umbo on the eardrum. An example of how to automatically find the center is provided in U.S. patent application Ser. No. 15/452,613 “Automatic Eardrum Registration from Light Field Data,” which is incorporated by reference herein. We set the radius of the border circle, namely RC2, equal to the maximum distance of the vertices in VR from the center xC2. To finalize the grid, nR−1 additional circles are placed co-centrically inside the border circle to obtain nR circles with







radii



j
·

R

C





2




n
R



,

j
=

1












,


n
R

.





The grids described above are just examples. Other variations will be apparent. For example, the border ellipse/circle can be determined by making a best fit to the TM image (as in FIG. 2a), by circumscribing the TM image (as in FIGS. 2b,2c) or by inscribing the TM image. The radial and angular divisions do not have to be evenly spaced. The grid can be designed so that there are smaller size cells in regions of the eardrum with finer structure and larger size cells in regions without finer structure. The grid could be manually defined based on the anatomy of a “reference” eardrum and then scaled to fit actual eardrum images.


Grid-Based Feature Descriptors.


After overlaying the grid on the TM image, we calculate a set of values (descriptors) for the cells in the grid. In the following examples, we use descriptors based on the mean and on the histogram of the eardrum depth and curvature, as described in more detail below.



FIG. 3 is a flow diagram for calculating grid-based descriptors, which is an example of step 142 in FIG. 1a. The main flow 310-330 is used to calculate the descriptors for one cell and the loop repeats 350 the process for all cells. In the main flow, first determine 310 which mesh vertices belong to the grid cell Gr,t, with rϵ[1, . . . nR] and tϵ[1, . . . , nT]. For the selected vertices, calculate 320 the mean of their depth and curvature values and store them as meanDr,tϵcustom-character and meanCr,tϵcustom-character, respectively. For the selected vertices, also calculate 330 the histogram of their depth and curvature values using nB histogram bins and store them in histDr,tϵcustom-characternB×1 and histCr,tϵcustom-characternB×1, respectively. Repeat 350 the previous steps for each of the cells r=1, . . . , nR and t=1, . . . , nT.


The individual descriptors over the different grid cells are concatenated into one vector for each modality as shown below:











histD
=

[




histD

1
,
1












histD


n
R

,
1












hist






D


n
R

,

n
T







]


,

meanD
=

[




meanD

1
,
1












meanD


n
R

,
1












mean






D


n
R

,

n
T







]










histC
=

[




histC

1
,
1












histC


n
R

,
1












hist






C


n
R

,

n
T







]


,

meanC
=

[




meanC

1
,
1












meanC


n
R

,
1












meanC


n
R

,

n
T






]







(
2
)







where histD is the depth histogram descriptor, histC is the curvature histogram descriptor, me anD is the mean depth descriptor and meanC is the mean curvature descriptor. The size of each descriptor depends on the number of cells in the grid, i.e., nR·nT, as well as the size of the descriptor in each cell which is 1 for the mean descriptors and nB for the histogram descriptors. Therefore, histD, histCϵcustom-character(nR·nT·nB)×1 and meanD, meanCϵcustom-character(nR·nT)×1.


Various combinations of descriptors can also be used. The following are three examples of combinations:











Combo
1

=

[




mean





D





histC



]









Combo
2

=

[




hist





D






mean





C




]









Combo
3

=

[




hist





D






hist





C




]






(
3
)







The Combo1 and Combo2 descriptors combine a mean descriptor with a histogram descriptor and the Combo3 descriptor is composed of purely histogram descriptors.


A summary of different descriptors together with their dimensionality is presented in Table 2. In this table, nR is the number of grid radial bins and nT is the number of grid angular bins, and nB is the number of histogram bins.









TABLE 2







Summary of grid-based descriptors.









Descr.

Descriptor Vector


ID (H)
Descriptor Description
Size (gH)












1
meanD: Means of each depth
g1 ∈  custom-character(nR·nT)×1.



grid cell.



2
histD: Histograms of each depth
g2 ∈  custom-character(nR·nT·nB)×1, g2 ≥ 0.



grid cell.



3
meanC: Means of each
g3 ∈  custom-character(nR·nT)×1.



curvature grid cell.



4
histC: Histograms of each
g4 ∈  custom-character(nR·nT·nB)×1, g4 ≥ 0.



curvature grid cell.



5
Combo1: Concatenation of
g5 ∈  custom-character[nR·nT·(1+nB)]×1.



meanD and histC.



6
Combo2: Concatenation of
g6 ∈  custom-character[nR·nT·(nB+1)]×1.



histD and meanC.



7
Combo3: Concatenation of
g7 ∈  custom-character[nR·nT·2nB)]×1, g7 ≥ 0.



histD and histC.









In various classification tasks, normalization of descriptors may improve the classifier training process. Two options for normalization include local normalization and global normalization. In local normalization, the histograms in each cell Gr,t for r=1, . . . , nR, t=1, . . . , nT are normalized independently of the other cells by dividing by the total number of points in the current cell. That is, the histograms are normalized on a cell-by-cell basis. In this way, each histogram is essentially expressing the percentage of points in the cell that fall into a specific histogram bin. In global normalization, the histograms in all cells are normalized by the total number of points in all of the cells. In this way, the histogram in a specific cell is encoding the percentage of points of the entire TM image that fall into a specific histogram bin for a given cell.


Isocontour-Based Descriptors

In this section we describe various isocontour-based approaches for extracting descriptors and feature sets from the eardrum 3D depth and curvature data, as previously described with respect to steps 146-148 of FIG. 1a.


Isocontour Calculation. Let us assume that we have a 3D point cloud defined by a set of vertices. Isocontours are the contours at a certain height (certain z value for the third dimension of each vertex). Isocontours can be calculated by resampling the 3D point cloud on a regular grid and using the marching squares algorithm on the resampled mesh. Alternatively, the meandering triangles algorithm can be used directly on the 3D point cloud without resampling, after applying triangulation. Other approaches can also be used.


As a specific example, assume we have a set of 3D points defined by vertices V={vi} for i=1, . . . , N. Each vertex can be described as a vector vi=[xi, yi, zi]T. FIG. 4 is a flow diagram for calculating isocontours, which is an example of step 146 and part of step 147 in FIG. 1a. The 3D point cloud representation of the TM image is resampled 410 on a regular grid to obtain a mesh with 2D dimensions w×h, which correspond to width and height, respectively, in pixels. Each value in the mesh is the depth value of the corresponding vertex. Isocontours are constructed 420 from the resampled vertices at D discrete depth levels. For each depth level dj, there may be multiple separate isocontours. Let Pj be the number of isocontours at depth level dj. Eliminate 430 small isocontours using a threshold (thres), for example on the length or area of the isocontour or on the number of points that defines the isocontour. For isocontours that are not closed, close 440 them by using the boundary of the mesh. In one approach, the depth of all points on the boundary segment used to close the isocontour must lie below the depth of the isocontour. If not, that isocontour is left open. Select 450 which isocontours will be used for feature extraction. In one approach, only closed isocontours that enclose the center of the eardrum are used for feature extraction. The number of selected isocontours can depend on the accuracy of depth estimation. If depth estimation is noisy, preferably fewer isocontours are selected. If depth estimation is more accurate, more isocontours can be selected.


Listing A at the end of the detailed description contains pseudo-code implementing the method described above, and FIGS. 5a-5f are images illustrating the method described above. FIG. 5a shows the 3D TM image, which is resampled 410 on a regular x-y grid. FIG. 5b shows the raw isocontours extracted 420 from the depth image. Warmer colors are at higher depth values and cooler colors are at lower depth values. FIG. 5c shows the mesh boundary in red. In FIG. 5d, small contours such as 511, 512 in FIG. 5c have been eliminated 430. In addition, open contours lying above the boundary are closed 440. In FIG. 5d, open isocontours 521, 522 have been closed using the boundary. In contrast, isocontours 526, 527 remain open because the boundary does not lie below the isocontour. FIG. 5e shows only the closed isocontours and also shows two possible centers, one based on the center of mass and one based on an anatomical center of the TM. In this example, the anatomical center is selected as the center. FIG. 5f shows only those isocontours that enclose the center. These are the isocontours that are used to calculate the isocontour-based descriptors.


Isocontour-Based Feature Descriptors.


After extracting the isocontours from the 3D point cloud, we calculate statistical and geometric descriptors for the isocontours. A summary of the different descriptors together with their dimensionality is presented in Table 3. In this table, with a slight abuse of notation, Nc refers to the number of selected isocontours of the mesh, which is not constant for all eardrum images. In the table, the terms contour and isocontour are used interchangeably.









TABLE 3







Summary of isocontour-based descriptors









Descr.




ID (H)
Descriptor Description
Descriptor Vector Size (fH)












1
Total number of contours.
f1 ∈  custom-character  , f1 ≥ 0.


2
Total number of unique contour depths.
f2 ∈  custom-character  , f2 ≥ 0.


3
Total number of closed contours.
f3 ∈  custom-character  , f3 ≥ 0.


4
Total number of unique contour depths having
f4 ∈  custom-character  , f4 ≥ 0.



closed contours.



5
Is lowest contour closed?
f5 ∈ {True, False}.


6
Level of lowest closed contour
f6 ∈  custom-character  .


7
Mean depth of contours.
f7 ∈  custom-character  .


8
Median depth of contours.
f8 ∈  custom-character  , f8 ≥ 0.


9
Number of contours above mean depth.
f9 ∈  custom-character  , f9 ≥ 0.


10
Number of contours above median depth.
f10 ∈  custom-character  , f10 ≥ 0.


11
Number of contours below mean depth.
f11 ∈  custom-character  , f11 ≥ 0.


12
Number of contours below median depth.
f12 ∈  custom-character  , f12 ≥ 0.


13
Number of closed contours above mean depth.
f13 ∈  custom-character  , f13 ≥ 0.


14
Number of closed contours above median depth.
f14 ∈  custom-character  , f14 ≥ 0.


15
Number of closed contours below mean depth.
f15 ∈  custom-character  , f15 ≥ 0.


16
Number of closed contours below median depth.
f16 ∈  custom-character  , f16 ≥ 0.


17
Contour perimeter.
f17 ∈  custom-characterNc×1 f17 ≥ 0.


18
Contour area.
f18 ∈  custom-characterNc×1 f18 ≥ 0.


19
Contour eccentricity.
f19 ∈  custom-characterNc×1 f19 ≥ 0.


20
Contour line waviness.
f20 ∈  custom-characterNc×1 0 ≤ f20 ≤ 1.


21
Contour area waviness.
f21 ∈  custom-characterNc×1 0 ≤ f21 ≤ 1.


22
Contour perimeter to mesh boundary perimeter.
f22 ∈  custom-characterNc×1 0 ≤ f22


23
Contour area to mesh area.
f23 ∈  custom-characterNc×1 0 ≤ f23 ≤ 1.


24
Inscribed circle perimeter to circumscribed
f24 ∈  custom-characterNc×1 0 ≤ f24 ≤ 1.



circle perimeter.








For all multidimensional features above (with H ∈ {17-25}) calculate:









H.a
Mean of non-zero elements.
fH.a ∈  custom-character  .


H.b
Mean difference of subsequent non-zero
fH.b ∈  custom-character  .



elements.



H.c
Median of non-zero elements.
fH.c ∈  custom-character  .


H.d
Slope (rate of change) of the line that best fits
fH.d ∈  custom-character  .



the non-zero elements.









Table 3 lists a total of 56 isocontour-based descriptors. The statistical descriptors (1-16) as well as some of the geometric descriptors (17-18) and their accumulated descriptors (H.a-H.d) are self-evident from the descriptions in the table. For the remaining descriptors (19-24), we provide explanations below:


Contour eccentricity (19): For each closed isocontour, we make a best fit of an ellipse to the isocontour. The ellipse has principal axes with lengths a and b and the eccentricity of the ellipse is calculated as the ratio a/b. If the ellipse is close to a circle, the eccentricity will be close to 1. Otherwise, it will take values deviating from 1.


Contour line waviness (20): For each closed isocontour, we calculate the smallest convex shape that circumscribes the isocontour and then find the ratio of the perimeter of this convex hull to the perimeter of the isocontour. This provides a measure of how wavy each isocontour is, with isocontours that have less concavity and less waviness having values close to 1 while those with more concavity and more waviness have values smaller than 1.


Contour area waviness (21): Similar to the line waviness (20) above, the area waviness for a closed isocontour is defined as the ratio of the area of its convex hull to the area of the isocontour. Since area increases quadratically, we actually calculate the square root of this ratio giving rise to values that lie between 0 and 1.


Contour perimeter to mesh boundary perimeter (22): For each closed isocontour we calculate the ratio of its perimeter to the perimeter of the boundary of the mesh, giving rise to values that are usually between 0 and 1. This gives an indication of the size of the isocontour compared to the size of the whole mesh described by the input vertices.


Contour area to mesh area (23): Similar to the aforementioned ratio of perimeters (22), we calculate the ratio between the area of each closed isocontour to the area of the whole mesh. Since area increases quadratically, we actually calculate the square root of this ratio, giving rise to values that lie between 0 and 1.


Inscribed circle perimeter to circumscribed circle perimeter (24): For each closed isocontour we find the largest inscribed circle (i.e., the largest circle that fits entirely within the isocontour) and the smallest circumscribed circle (i.e., the smallest circle that encloses the entire isocontour), and calculate the ratio of their perimeters, giving rise to values between 0 and 1. This measure provides a shape factor for the isocontour (e.g., how closely it resembles a circle), with values closer to 1 indicating a more circle-like and less jaggy isocontour.


The multidimensional descriptors (16-24) are calculated for the Nc selected closed isocontours found on the current mesh. If no closed isocontours are found, the corresponding values are set to 0. If there are non-zero values, then descriptors (H.a-H.d) are calculated for the sequence of Nc closed isocontours found on each mesh.


Ordering of Feature Descriptors.


As mentioned earlier, the multidimensional isocontour feature descriptors presented in Table 3 have been denoted as having dimensions Nc×1. However, this Nc is not a constant but is the number of selected closed isocontours on each mesh (i.e., for each image), which can be different for different meshes. In order to use these multidimensional descriptors to train a classifier, the dimensions preferably should be the same across different meshes. In one approach, the descriptors are ordered to meet this constraint.


In priority ordering, we find the largest value of Nc in the training set (i.e., the training sample that has the largest number of selected isocontours), which we denote as Nc,max. Then all multidimensional descriptors are converted to dimensions Nc,max×1 using zero padding. For example, if for a mesh we have values {u1, u2, u3} for a multidimensional descriptor and Nc,max is 5, we convert it to {u1, u2, u3, 0, 0}.


In depth order, we use the depth levels {d1, . . . dD} to construct each descriptor vector. For example, if for a mesh we have values {u1 u2, u3} at depth levels {d2, d5, dD} for a multidimensional feature, we convert it to {0, u1, 0, 0, u2, 0, . . . , 0, u3}. Hence all multidimensional descriptors have dimensions D×1.


Example Results

We have run experiments for all of the descriptors listed above. In these experiments, we use a database of images of human eardrums captured by a light field otoscope. There are approximately 350 samples, for which we have ground truth labels. Specifically, eardrums have been characterized as exhibiting Bulging, being Neutral or exhibiting Retraction. We considered two different types of two-class classification problems. First, we classify Bulging vs No-Bulging (i.e., Neutral or Retraction). Second, we classify Retraction vs No-Retraction (i.e., Neutral or Bulging).


We have used two classifiers, namely a neural network (NN) classifier with one hidden layer and Support Vector Machines (SVMs). However, different classifiers could be employed as well.


Grid-Based Feature Descriptors.


In the experiments for the grid-based descriptors, we focused mainly on two values for the number of angular bins nT=6 and nT=1. The number of radial bins was set to nR=4. We also used different types of feature normalization.


We would like the size of the descriptors to stay as low as possible. Therefore, we would like to use as few bins (nB) as possible in the histograms without penalizing the performance of the descriptors. We normalized the depth and curvature values to [−1, 1]. Within this range, most of the values are concentrated in the range [−0.3, 0.3]. Therefore, we compress the values outside this range and provide finer resolution within this range. In one approach, we use nB=8 bins per histogram with the following edge values: [−1, −0.3, −0.2, −0.1, 0, 0.1, 0.2, 0.3, 1].


In our experiments, we observe that with nT=6 for the number of angular bins of the grids we get generally better results than with nT=1. As far as the normalization of the histogram descriptors is concerned, most of the time global normalization seems to work better than local normalization, especially when nT=6. The elliptical grid generally seems to yield better classification results than the circular grids. Of the individual experiments, mean curvature using an elliptical grid generally produced the best results.


Isocontour-Based Feature Descriptors.


We have calculated all of the isocontour-based descriptors listed in Table 3 for our sample images and then classify the sample images based on their descriptors. In one approach, we want to identify isocontour feature descriptors that are discriminative for each type of classification problem. For that purpose, we use an algorithm that greedily tests all isocontour descriptors and ranks them in decreasing order of importance for the classification problem at hand.



FIG. 6 is a flow diagram for selecting isocontour-based descriptors, according to one embodiment. This is an example implementation of step 148 in FIG. 1a. Each isocontour descriptor is individually evaluated and ranked 610 with respect to their ability to discriminate. That is, the descriptors that provide the highest classification accuracy are ranked the highest. Initialize 620 a feature set with only the highest ranked descriptor, and determine its classification accuracy. Then add 630 the next highest ranked descriptor to the feature set and determine the classification accuracy for the new feature set. If the classification accuracy improves 640, then keep 642 the newly added descriptor as part of the feature set. Otherwise, discard 644 it. Repeat 650 until all descriptors have been considered. Listing B at the end of the detailed description contains pseudo-code implementing this method.


Table 4 shows the results of this prioritization of isocontour-based descriptors. Each column in Table 4 lists a difference scenario. The first column lists results for the classification task of Bulging vs No-Bulging, where the samples are zero-padded to the same size using the priority ordering approach described above. In that case, descriptor (5) was the most discriminating and was used to initialize the feature set. The descriptor IDs are as defined previously in Table 3. That is, descriptor (5) is “Is lowest contour closed?” Descriptor (6) was added next, and so on. The final feature set included a total of 16 descriptors. The second column lists results for the same task Bulging vs No-Bulging, but using depth ordering. Descriptor (4) was the most discriminating. Descriptor (5) was added next, and so on. This resulted in a feature set with 23 descriptors. The third and fourth columns show analogous results, but for the classification task Retraction vs No-Retraction. Note that a fair number of the more discriminating descriptors are fairly simple descriptors, such as one-dimensional descriptors that can be calculated fairly efficiently.









TABLE 4







Feature sets using isocontour-based descriptors








Bulging vs No-Bulging
Retraction vs No-Retraction










Priority
Depth
Priority
Depth


Ordering
Ordering
Ordering
Ordering













 5
4
5
 2


 6
5
6
14


13
6
9
17. [d]


14
7
11
18. [a, d]


20. [a, b, c, d]
8
12
19. [b]


21
11
13
20. [a]


21. [a, b, c]
12
14
21. [c]


24
13
18
22. [a, d]


24. [a, b, c]
14
20. [a, b]
23



17. [b]
21
23. [c]



19. [b]
21. [a, b]
24. [b]



20. [a, b, c, d]
24. [c]




21. [b, c]





22. [b]





23. [a, c]





24. [a, b, c]




16 selected
23 selected
14 selected
13 selected


descriptors
descriptors
descriptors
descriptors









ADDITIONAL CONSIDERATIONS

Alternate embodiments are implemented in computer hardware, firmware, software, and/or combinations thereof. Implementations can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps can be performed by a programmable processor executing a program of instructions to perform functions by operating on input data and generating output. Embodiments can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory and/or a random access memory. Generally, a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits) and other forms of hardware.


Although the detailed description contains many specifics, these should not be construed as limiting the scope of the invention but merely as illustrating different examples and aspects of the invention. It should be appreciated that the scope of the invention includes other embodiments not discussed in detail above. For example, classifications can be based on a combination of grid-based features and isocontour-based features, and/or in combination with other techniques. Various other modifications, changes and variations which will be apparent to those skilled in the art may be made in the arrangement, operation and details of the method and apparatus of the present invention disclosed herein without departing from the spirit and scope of the invention as defined in the appended claims. Therefore, the scope of the invention should be determined by the appended claims and their legal equivalents.












Listing A: Pseudo-code for calculating isocontours from a 3D point cloud
















1:
Inputs: N vertices vi = [xi,yi,zi]T for i = 1,...,N describing a 3D point cloud;



w × h describing the dimensions of a grid (width, height respectively) in pixels;



Set of D depth levels {d1,...,dD} with dj ∈ custom-character  for j = 1,...,D;



a threshold thres.


2:
Calculate coordinate limits as:


3:
  ix,min ← argmin xi ⇒ xmin ← └xix,min┘, iy,min ← argmin yi ⇒ ymin = └yiy,min


4:
  ix,max ← argmax xi ⇒ xmax ← ┌xix,max┐, iy,max ← argmax yi ⇒ ymax ← ┌yiy,max



  where argmin and argmax are over the index i


5:
Resample vertices on a regular 2D grid of dimensions w × h at equally spaced intervals



over the ranges [xmin,xmax], [ymin,ymax] using interpolation. Obtain new set of vertices



of a mesh {tilde over (v)}i = [{tilde over (x)}i,{tilde over (y)}i,{tilde over (z)}i]T for i = 1,...,w · h with possible undefined values.


6:
Find mesh center: Determine {{tilde over (x)}center,{tilde over (y)}center}.


7:
Find mesh boundary: Determine set of vertices bi = [{tilde over (x)}i,{tilde over (y)}i,{tilde over (z)}i]T for i = 1,...,B,0 <



B < w · h) that belong to the boundary of the mesh.


8:
for j ← 1,...,D do:


9:
  Find Pj ≥ 0 disconnected isocontours Cj,p,p = 1,...,Pj containing information:


10:
   Cj,p.X ← Set of {tilde over (x)} coordinates.


11:
   Cj,p.{tilde over (Y)} ← Set of {tilde over (y)} coordinates.


12:
   Cj,p.isopen ← True if first and last values in Cj,p.{tilde over (X)} and Cj,p.{tilde over (Y)} are different.


13:
   Cj,p.flag ← False.


14:
  if |Cj,p.{tilde over (X)}| < thres then


15:
   Erase isocontour Cj,p and continue to the next isocontour.


16:
  end if


17:
  if Cj,p.isopen then


18:
   Close isocontour by connecting its points with boundary points bi, in clockwise



   or counterclockwise order, selecting the boundary segment with the smallest length.


19:
   if dj is smaller than depth of all points of the selected boundary segment then


20:
     Cj,p.isopen ← False


21:
     Update coordinates Cj,p.{tilde over (X)},Cj,p.{tilde over (Y)}, appropriately including boundary.


22:
   end if


23:
   if {{tilde over (x)}center,{tilde over (y)}center } is inside the 2D polygon defined by {Cj,p.{tilde over (X)},Cj,p.{tilde over (Y)} } then


24:
     Cj,p.flag ← True


25:
  end if


26:
end if


27:
end for


28:
Outputs: Set of isocontours CCj,p, for j=1,...,L and p = 1,...,Pj, Nc of which are flagged as



selected (i.e. Cj,p.flag = True).



















Listing B: Pseudo-code for calculating feature set of isocontour-based descriptors
















1:
 Inputs: Feature descriptor database FD;



 Set of descriptor IDs FN = {FN,1,...,FN,F} corresponding to the database FD (see Table 3);



 Training (Tl) and testing (Ql) (or validation Kl) sets for L database partitions with



 l = 1,...,L, for a classification problem with C classes.


2:
 if Kl ≠ { } then


3:
   Ql ← Kl.


4:
 end if


5:
 currentF ← { }.


6:
 selectedF ← { }.


7:
 f ← 1.


8:
 while FN ≠ { } do:


9:
   selectedF ← currentF ∪ FN,f.


10:
   for l ← 1,...,L do:


11:
    Train classifier for C classes using the training partition Tl and the selected feature



    descriptors, whose IDs appear in selectedF, from the feature database FD.


12:
    Test the trained classifier using the testing (or validation) partition Ql and the



    selected feature descriptors, whose IDs appear in selectedF, from the feature



    database FD.


13:
    Store classification accuracies Af,l.


14:
   end for


15:
   Af,mean ← Σl=1L(Af,l)/L


16:
   lmin ← argmin Af,l ⇒ Af,min ← Af,lmin.


17:
   lmax ← argmax Af,l ⇒ Af,max ← Af,lmax.


18:
   if f = |FN| then


19:
    f ← argmax (Af,mean + Af,max + Af,min).


20:
    FN ← FN \ {FN,{tilde over (f)}}, (i.e., remove FN,{tilde over (f)} from set FN).


21:
    currentF ← currentF ∪ {FN,{tilde over (f)}}.


22:
    f ← 1.


23:
   else


24:
    f ← f + 1.


25:
   end if


26:
end while


27:
Outputs: Featured IDs selectedF in decreasing order in terms of importance for



performing classification on C classes.








Claims
  • 1. A method for automatic classification of eardrum shape from a three-dimensional image of an eardrum, the method performed by a computer system having a processor and memory, the method comprising: calculating a feature set for the eardrum based on the three-dimensional image of the eardrum; andclassifying a three-dimensional shape of the eardrum based on the feature set.
  • 2. The method of claim 1 wherein calculating the feature set comprises: overlaying a grid onto the three-dimensional image of the eardrum, the grid partitioning the three-dimensional image into cells; andcalculating one or more descriptors for each of the cells, the feature set comprising the calculated descriptors.
  • 3. The method of claim 2 wherein the grid is one of an elliptical grid, a circular grid with an unregistered center and a circular grid with a registered center.
  • 4. The method of claim 2 wherein at least one of the descriptors is based on the eardrum depth values within each cell.
  • 5. The method of claim 2 wherein at least one of the descriptors is based on the eardrum curvatures within each cell.
  • 6. The method of claim 1 wherein calculating the feature set comprises; calculating isocontour lines for the three-dimensional image of the eardrum; andcalculating one or more descriptors for the isocontour lines, the feature set comprising the calculated descriptors.
  • 7. The method of claim 6 wherein the descriptors are not calculated for isocontour lines that have a length below a threshold.
  • 8. The method of claim 6 further comprising: for isocontour lines that are open and end at a boundary of the three-dimensional image, closing the isocontour line.
  • 9. The method of claim 6 wherein the descriptors are calculated only for closed isocontour lines that enclose a center of the eardrum.
  • 10. The method of claim 6 wherein at least one of the descriptors is based on the number of isocontour lines.
  • 11. The method of claim 6 wherein at least one of the descriptors is based on a depth of the isocontour lines.
  • 12. The method of claim 6 wherein at least one of the descriptors is based on a length of the isocontour lines, on an area enclosed by the isocontour lines, or on a shape of the isocontour lines.
  • 13. The method of claim 1 wherein the feature set comprises grid-based features and isocontour-based features; wherein the grid-based features are calculated by: overlaying a grid onto the three-dimensional image of the eardrum, the grid partitioning the three-dimensional image into cells; andcalculating one or more grid-based descriptors for each of the cells, the grid-based features comprising the calculated grid-based descriptors; andwherein the isocontour-based features are calculated by: calculating isocontour lines for the three-dimensional image of the eardrum; andcalculating one or more isocontour-based descriptors for the isocontour lines, the isocontour-based features comprising the calculated isocontour-based descriptors.
  • 14. The method of claim 1 wherein the feature set comprises a plurality of descriptors calculated based on values for the three-dimensional image of the eardrum, and at least one of the descriptors is calculated based on a statistical average of values.
  • 15. The method of claim 1 wherein the feature set comprises a plurality of descriptors calculated based on values for the three-dimensional image of the eardrum, and at least one of the descriptors comprises a histogram of values.
  • 16. The method of claim 1 wherein classifying a three-dimensional shape of the eardrum distinguishes between a bulging eardrum and a not bulging eardrum.
  • 17. The method of claim 1 wherein classifying a three-dimensional shape of the eardrum distinguishes between a retracted eardrum and a not retracted eardrum.
  • 18. The method of claim 1 wherein classifying a three-dimensional shape of the eardrum distinguishes between acute otitis media (AOM), otitis media with effusion (OME) and no effusion (NOE).
  • 19. The method of claim 1 wherein the three-dimensional image of the eardrum is a registered three-dimensional image of the eardrum, wherein registration compensates for out-of-plane rotation, in-plane rotation and center localization.
  • 20. A non-transitory computer-readable storage medium storing executable computer program instructions for automatic classification of eardrum shape from a three-dimensional image of an eardrum, the instructions executable by a processor and causing the processor to perform a method comprising: calculating a feature set for the eardrum based on the three-dimensional image of the eardrum; andclassifying a three-dimensional shape of the eardrum based on the feature set.