• Ei tuloksia

Aligning simulated and imaged spectral retinal data for model personalisation

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Aligning simulated and imaged spectral retinal data for model personalisation"

Copied!
28
0
0

Kokoteksti

(1)

Computational Engineering and Technical Physics

Janne Laatunen

Aligning Simulated and Imaged Spectral Retinal Data for Model Personalisation

Supervisor: Prof. Lasse Lensu Examiner: Prof. Lasse Lensu

(2)

Lappeenranta University of Technology School of Engineering Science

Computational Engineering and Technical Physics Janne Laatunen

Aligning Simulated and Imaged Spectral Retinal Data for Model Personalisation

Bachelor’s thesis 2018

21 pages, 11 figures, 2 appendices

Supervisor: Prof. Lasse Lensu

Keywords: Monte Carlo simulation; parametric model; spectral image; retinal image; para- metric map; principal component analysis;

The aim of this thesis is to show the need for alignment of image and simulation model spec- tra when applying inversion to analyze spectral retinal images. This is done by generating parametric concentration maps and visually analyzing them. The alignment process begins by segmenting subsets of the image and simulation model spectra. In this thesis, the macular pigment region is used. The transformations needed to align these subsets are then calculated by utilizing a method based on principal component analysis. The whole simulation model spectra is then transformed with the computed transformations to produce a personalized model for a given spectral retinal image. Parametric concentration maps are then generated using inversion. In inversion, a k-nearest neighbor algorithm is used to find the closest spec- tral value from the simulation model for every spatial location in the spectral retinal image.

Then the five parameter values used to calculate that particular simulation model spectra can be extracted and five concentration maps can be created after this process is applied to every spatial location in the spectral retinal image.

(3)

LIST OF ABBREVIATIONS 5

1 INTRODUCTION 6

1.1 Background . . . 6

1.2 Objectives and restrictions . . . 6

2 THEORY AND CONCEPTS 7 2.1 Imaging methods . . . 7

2.2 Spectral retinal images . . . 8

2.3 Simulation model . . . 8

2.4 Geometric transformations of data . . . 9

2.5 Quotients . . . 9

3 ALIGNMENT OF IMAGE AND MODEL SPECTRA 9 3.1 Segmentation of retinal images . . . 9

3.2 Principal component analysis method . . . 10

3.3 Implementation of the alignment method . . . 11

4 INVERSION OF SPECTRAL IMAGES 12 4.1 Producing parametric concentration maps . . . 12

4.2 Analysis of the inversion method . . . 13

5 DISCUSSION 16

6 CONCLUSION 19

REFERENCES 20

(4)

A Concentration maps with alignment 21

B Concentration maps without alignment 25

(5)

ICP Iterative closest point kNN k-nearest neighbors

OCT Optical coherence tomography PCA Principal component analysis RPE Retinal pigment epithelium

SD OCT Spectral domain optical coherence tomography SVD Singular value decomposition

(6)

1 INTRODUCTION

1.1 Background

Images are a valuable source of information for medical personnel to assess the medical conditions of their patients. Images are useful for multiple reasons, mainly due to their typically non-invasive nature and the straightforward process to obtain them. In the past medical images could only be reliably analyzed by trained doctors in their respective fields but recently larger portion of the analysis tasks have been automated to assist experts perform their diagnosis.

Diabetic retinopathy is one of the fastest growing eye disease threats worldwide [4]. When undetected and not treated, it can lead to blindness or severe visual impairment [4]. This poses a well-motivated possibility to research automatic methods for retinal image process- ing. Traditionally retinal images are RGB images, grayscale images or taken through a band-stop filter. Spectral images can be used to increase the color resolution to tens of in- dividual channels depending on the system used. The increased color resolution has been shown to improve results in various applications, e.g. measurement of oxygen saturation [8], estimation of concentrations of retinal molecules [10] and detection of retinal lesions [9].

The process to automate image processing usually starts by collecting the ground truth. This process commonly involves trained experts to manually mark abnormalities or regions of interest to a large group of images. These markings can be used to train automatic analysis methods such as statistical models.

An alternative approach to interpret spectral retinal images is to use inversion. This approach involves modeling the layered tissue structure of the eye fundus and using that model to sim- ulate light traveling through the multi layered tissue structure via a Monte Carlo approach.

The camera used to capture spectral retinal images is also calibrated and modeled and this model is inverted to enable the transformation of captured spectral retinal images into para- metric maps.

1.2 Objectives and restrictions

This thesis shows that despite a calibrated fundus camera, the model cannot fully include all its characteristics. Therefore, it is necessary to align the spectra of the images with the spectra of the simulated model by using selected subsets of the spectra. This requires seg-

(7)

mentation of the image information and appropriate selection of the model parameter sub- sets. Parametric concentration maps are also created to qualitatively assess the quality of the alignment.

2 THEORY AND CONCEPTS

2.1 Imaging methods

Spectroscopy is a widely used tool in researching materials. It is fundamentally based on the interaction between light and matter at different wavelengths of electromagnetic radiation [6]. In the case of retinal images, applying spectroscopy seems promising because molecules absorb light differently based on the wavelength of the light, so the added color resolution should help differentiate distinct parts of the tissue more accurately.

When taking spectral images one viable way is to use narrow band-pass filters for selected wavelengths of light. One way of doing this would be to place the filters in a circle formation, then spin the circle and take a picture at the correct time so one image for all individual filters is taken. A better way would be to use programmable filters that can be configured to behave as band-pass filters over a range of wavelengths. By combining these images taken with individual wavelengths, a spectral image is formed. Taking spectral images of the retina poses some challenges. [10]

When imaging the retina, the image is being taken through an objective, the pupil. This causes the edges of the image to be considerably darker than the center. The person being imaged can also move, which can cause the whole image to be unusable. Smaller effects such as involuntary eye movements can automatically be corrected for. [10]

The selection of appropriate wavelengths, or the appropriate filters is important when trying to adopt inversion. The filters must ensure that a unique inverse mapping exists and they should aim to minimize the error in the parameter recovery phase. An objective procedure for optimal filter selection is presented by Styles et al. [10]

(8)

2.2 Spectral retinal images

The spectral retinal images used in this thesis were taken from the DiaRetDB2 database. This database consists primarily of subjects diagnosed with diabetic retinopathy. The images were captured using a spectral fundus camera that can acquire up to 30 wavelength channels [3].

This work uses images 1, 2, 3, 13, 16, 20 and 37 which have been considered to have good spectral qualities after visual examination.

2.3 Simulation model

The simulation model used in this thesis is described in detail in the work of Laaksonen [3]. It consists of 63000 parameter combinations for five parameters representing choroidal hemoglobin, choroidal melanin, macular pigment, retinal hemoglobin and RPE melanin.

The transport of an infinitely narrow photon beam is simulated in a multilayered tissue with infinite width. Each layer of the tissue has a set of parameters representing its characteristics.

The simulation process flow can be seen in Figure 1.

Figure 1.Simulation flowchart [3].

(9)

2.4 Geometric transformations of data

Geometric transformations mean operations that are used to transform data points in a coor- dinate system or between coordinate systems. Translation is a transformation that moves a set of points in the same direction in a coordinate system. It can be interpreted as adding a constant vector to every point. Rotation is a transformation where a set of points is rotated around a fixed point in the coordinate system. In this work, transformations are used to move and rotate the model spectra closer to the image spectra.

2.5 Quotients

Solutions to the uneven illumination problem mentioned in Section 2.1 have been proposed in the work of Styles et al. [10]. They propose the use of quotients to even out the illumi- nation in the spectral image. To successfully recover five model parameters, it is required to have five independent image quotients [10]. The original model uses 16 wavelengths rang- ing from 450nm to 700nm and this is reduced to six wavelengths by convolving the model spectra with a set of filters. The five shortest wavelength channel images are then divided by the longest wavelength spectral value to produce model quotients.

3 ALIGNMENT OF IMAGE AND MODEL SPECTRA

3.1 Segmentation of retinal images

Aligning image and model spectra requires some criteria, based on which the alignment can be made. In the case of retinal images, the criteria can be considered as choosing corre- sponding subsets of the image and model spectra. Segmentation of retinal images is required to select certain areas of the image that can justifiably be considered to have corresponding values in the model. In practice, segmentation is done by selecting regions of interest from the image, generating a subset of the image data.

In this work, the foveal region of images was manually masked. Automatic foveal region detection algorithms from color retinal images have also been developed, so the process of automatically masking the foveal region can be considered solved [7]. The foveal region was chosen as a point of interest because macular pigment appears strongly only in the

(10)

foveal region of the eye [1]. This property makes it an excellent reference point for spectra alignment. An example of a segmented image can be seen in Figure 2.

Figure 2.Retinal image (left), masked foveal region (right).

3.2 Principal component analysis method

Principal component analysis (PCA) transforms a dataset to a new coordinate system, called the PCA space, where each axis represents a principal component. The first principal com- ponent has the largest variance observed in the data, and the second principal component has the second largest variance in the data so that it is orthogonal to the component before it. All other principal components are calculated in the same manner. [2]

In this work PCA is used to help align image and model spectral data. The image subset used is the fovea region of the image, and the model data subset is the spectra of high macular pigment values in the model. First the PCA space of the image subset is calculated. Then the model data subset is projected to the image subset’s PCA space. A scaling factor is calculated by dividing the standard deviation of image subset PCA score by the standard deviation of projected model data subset values. The translation is based on the difference in the means of the image and model data subsets. [3]

To align the datasets, the whole model data is projected to the image subset PCA space. The projected model data is then multiplied by the scaling factor, projected back to the original space, and the translation is added. The image and model subsets are now aligned. [3]

(11)

3.3 Implementation of the alignment method

The need for alignment is apparent in Figure 3. The quotient data of the model and images do not have much in common in any of the quotient planes. Images 1 and 13 seem to have the closest correspondence with the model spectra before alignment in most quotient planes and image 2 is the furthest away.

Figure 3.Non-aligned spectral data from images and simulation model in quotient planes.

The alignment begins by calculating quotient data from the model as described in Section 2.5. Simulation model quotient data is then segmented to represent only high macular pig- ment values. This is done by selecting correct indexes from the quotient spectra correspond- ing to maximum macular pigment values in the model parameters. Variation of other param- eters is ignored.

Image quotient data is loaded next. The quotient data contains the whole image, so a fovea mask is applied to the image to produce the reference region. After selecting subsets of the image and model spectra, the alignment can be calculated. The PCA method explained in Section 3.2 is used to align the spectra. The PCA method produces necessary transformations

(12)

to align the image spectra to the model. This alignment is calculated individually for every image, which can be considered as personalization of the model. These transformations are then applied to the whole model to produce an aligned model for a given image.

4 INVERSION OF SPECTRAL IMAGES

4.1 Producing parametric concentration maps

After the alignment of model and image spectra, as explained in Section 3.3, parametric concentration maps were created using a kNN approach. In the kNN algorithm, the nearest neighbor for every image data point is searched for from the model data. This produces one index of the model data for every pixel in the image. It is then possible to go back to the model and use this index to find out which parameters values were when the model spectrum at that index was calculated. This process is repeated for every pixel in the image, creating a set of five parameters for each pixel. Then the parametric concentration maps can be generated by choosing one of the five parameters and creating a grayscale image based on that parameter’s values at every pixel in the original image. An example of these concentration maps can be seen in Figure 4. All concentration maps have their display range normalized and their absolute parameter values shown in the scale on the right side of the images.

Figure 4.Parametric concentration maps, aligned model.

The same inversion process can be applied when the alignment has not been performed.

(13)

When comparing the concentration maps generated with and without alignment, the aligned model produces better results based on a visual inspection. An example of non-aligned concentration maps can be seen in Figure 5. All of the generated concentration maps are listed in the appendix.

Figure 5.Image 037 parametric concentration maps, non-aligned model

4.2 Analysis of the inversion method

In this work, the alignment was made with the macular pigment parameter, so the macular pigment concentration maps are the main points of interest. Several of the aligned concen- tration maps looked like the one seen in Figure 6. The macular pigment concentration maps are almost entirely black when not aligned and produce some indication of the fovea region when aligned. The macular pigment should not appear outside the fovea region, but most concentration maps produce traces of the pigment outside the correct region.

The image seen in Figure 7 did not generate a good macular pigment concentration map.

Looking at Figure 3 it can be seen that the non-aligned model spectra is furthest away from image 2 spectra than any other image. This may be indication that large transformations of the model spectra to fit the image spectra are unreliable, at least with only one reference point.

(14)

Figure 6.Macular pigment concentration map, aligned left, non-aligned right.

Figure 7.Image 002 macular pigment concentration map, aligned left, non-aligned right-

(15)

Images 1 and 13, seen in Figures 8 and 9 respectively, produced better results. They clearly show the fovea region in the macular pigment concentration map, even though there are traces outside the region. In the non-aligned concentration maps it is hard to pinpoint the fovea region, further showing the need for alignment.

Figure 8.Image 001 macular pigment concentration map, aligned left, non-aligned right.

Figure 9.Image 013 macular pigment concentration map, aligned left, non-aligned right.

Image 16 seen in Figure 10 produced the best result. The concentration map shows the fovea region clearly without any macular pigment traces elsewhere in the image. Looking at the image more carefully, the macular pigment concentration gets smaller towards the edges of the fovea as is expected. The non-aligned concentration map shows two small dots near the foveal region. These dots however, do not reliably indicate the fovea region location, because image 37 seen in Figure 6 also shows similar dots in entirely the wrong place.

(16)

Figure 10.Image 016 macular pigment concentration map, aligned left, non-aligned right.

5 DISCUSSION

To produce better concentration maps, the alignment method should be as general as pos- sible, meaning it would fit better for different images. The parametric concentration maps produced in this work showed a lot of variance in their quality. This indicates that the current alignment method does not transfer well between individual images. To improve the align- ment method, more reference points could be used, if they have a fundamental truth to them, such as the macular pigment region subsets.

The veins in the retina could be another reliable reference point when combined with hemoglobin parameters of the model. The challenge then becomes combining, or creating the alignment from multiple reference points. One straightforward way to realize the alignment would be to select the subsets of the image and model based on all regions of interest, similarly to the fovea region to macular pigment alignment done in this work, and carrying out the same alignment algorithm. This may have a side effect of not aligning the correct subsets of the model to the correct subset of the image spectra, by for example aligning the fovea region subset selected from the model with the veins subset selected from the image. A way to get around this issue would be to produce two alignments, one with the fovea subset and another with the veins subset. The challenge in this approach then becomes combining the alignments in a way that is reliable. Trying to create a mean alignment produced from the individual alignments may cause a problem where the alignments are different enough, that the mean model does not capture enough of the parameter properties from the individ- ual alignments, and ends up being worse than the alignments individually. The better way to combine multiple alignments could be to assign a confidence classification to each individual alignment, and combine them according to these confidences. Initially the confidence could be given to the program manually by visually observing the results from the alignments and

(17)

later producing an automated method to classify the reliability of each individual alignment to automate the whole pipeline.

Another possibility would be to generate sub-alignments, meaning aligning only the subsets and combining the results of sub-alignments later. This would require more justifiable ref- erence points, which is a hard problem, but it could lead to better results. One could for example, take the macular pigment region subset from the model and image, calculate the alignment transformations and only apply these to the subset of the model. Then deducting the macular pigment subset used in this alignment from the original model, and performing another sub-alignment for another reference region. The ordering of these sub-alignments should be such that the first subset selected is the one that is the most reliably justifiable and representative of a distinct region in the image, for example, the macular pigment region.

By ordering these sub-alignments this way, the most reliable and distinct alignments will be taken into account first and the sub-aligned spectra will not affect the rest of the align- ments. Lastly the sub-aligned spectra should be combined to a single model that represents the whole aligned model. The model points that have not been associated with any reference region can either be ignored, or they could be aligned to the rest of the image to produce a rough estimation for the model. Improvements to the alignment method should produce more detailed concentration maps that can then be used in future research and applications.

The whole inversion process starts by imaging the retina. Good quality spectral retinal im- ages are important to the whole inversion process, as they affect every subsequent step. This shows an opportunity to improve spectral retinal imaging techniques to produce high quality spectral retinal images quickly and reliably.

The Monte Carlo simulation model could also be improved. The current model simulates an infinitely narrow beam of light. Expanding the model to use a gaussian light beam might pro- vide additional precision to the model. The model only uses one constant thickness per tissue layer. In the retina, the thickness of tissue layers varies, so the model could be calculated with multiple different tissue thickness combinations. Optical coherence tomography (OCT) is a powerful tool for non-invasively examining tissue structures. LoDuca et al. have used spectral domain optical coherence tomography (SD OCT) to create thickness maps for 6 of the retinal layers with high spatial resolution [5]. An example of these thickness maps can be seen in Figure 11. By having an accurate thickness map for different layers, it would be possible to choose a better suited model for each spatial location in the spectral retinal image.

Research in aligning the SD OCT and spectral retinal images so their datapoints represent the same spatial location should be conducted. These spatially chosen variable thickness models should provide a more accurate representation of the spectra, and thus, improve the alignment of image and model spectra which should lead to better concentration maps.

(18)

Figure 11.Thickness maps created by LoDuca et al. [5]

(19)

6 CONCLUSION

This work shows the need for alignment when trying to adopt inversion in the analysis of retinal images. The Monte Carlo simulation model combined with the camera model cannot include all characteristics of the whole imaging process leading to a misalignment in the im- aged and modeled spectra, as can be seen in Figure 3. This misalignment should be corrected for by aligning the image and model spectra with an alignment method. This personalizes the model to a given image to produce a better representation of the underlying structure of the retina when generating parametric concentration maps, as can be seen in Section 4.1.

The alignment method plays a crucial part in the process of generating parametric maps and it is an important target in future research.

(20)

[1] Richard A. Bone, Betty Brener, and Jorge C. Gibert. “Macular pigment, photopig- ments, and melanin: Distributions in young subjects determined by four-wavelength reflectometry”. In: Vision Research 47.26 (Dec. 2007), pp. 3259–3268. DOI: 10 . 1016 / j . visres . 2007 . 09 . 002. URL: https : / / doi . org / 10 . 1016 % 2Fj.visres.2007.09.002.

[2] Christopher Chatfield and Alexander J. Collins. “Principal component analysis”. In:

Introduction to Multivariate Analysis. Springer US, 1980, pp. 57–81.DOI:10.1007/

978-1-4899-3184-9_4. URL:https://doi.org/10.1007%2F978-1- 4899-3184-9_4.

[3] Lauri Laaksonen. “Spectral retinal image processing and analysis for ophthalmology”.

PhD thesis. Lappeenranta University of Technology, 2016.

[4] Ryan Lee, Tien Y. Wong, and Charumathi Sabanayagam. “Epidemiology of diabetic retinopathy, diabetic macular edema and related vision loss”. In: Eye and Vision2.1 (Sept. 2015). DOI: 10.1186/s40662- 015- 0026- 2. URL: https://doi.

org/10.1186%2Fs40662-015-0026-2.

[5] Ana L. Loduca et al. “Thickness Mapping of Retinal Layers by Spectral-Domain Op- tical Coherence Tomography”. In: American Journal of Ophthalmology 150.6 (Dec.

2010), pp. 849–855. DOI: 10 . 1016 / j . ajo . 2010 . 06 . 034. URL: https : //doi.org/10.1016%2Fj.ajo.2010.06.034.

[6] D J Mordant et al. “Spectral imaging of the retina”. In:Eye25.3 (Mar. 2011), pp. 309–

320. DOI:10.1038/eye.2010.222. URL:https://doi.org/10.1038%

2Feye.2010.222.

[7] Meindert Niemeijer, Michael D. Abr`amoff, and Bram van Ginneken. “Fast detection of the optic disc and fovea in color fundus photographs”. In:Medical Image Analysis 13.6 (Dec. 2009), pp. 859–870. DOI:10.1016/j.media.2009.08.003. URL: https://doi.org/10.1016%2Fj.media.2009.08.003.

(21)

p. 6170. DOI: 10 . 1364 / oe . 16 . 006170. URL: https : / / doi . org / 10 . 1364%2Foe.16.006170.

[9] P. Soliz, P.W. Truitt, and S.C. Nemeth. “Spectrally-based fundus imaging: implica- tions for image enhancement and diagnosis of retinal diseases”. In:Conference Record

of Thirty-Fifth Asilomar Conference on Signals, Systems and Computers (Cat.No.01CH37256).

Institute of Electrical and Electronics Engineers (IEEE), 2001. DOI: 10 . 1109 / acssc . 2001 . 987694. URL: https : / / doi . org / 10 . 1109 % 2Facssc . 2001.987694.

[10] I.B. Styles et al. “Quantitative analysis of multi-spectral fundus images”. In:Medical Image Analysis10.4 (Aug. 2006), pp. 578–597.DOI:10.1016/j.media.2006.

05.007.URL:https://doi.org/10.1016%2Fj.media.2006.05.007.

A Concentration maps with alignment

(22)
(23)
(24)
(25)
(26)
(27)
(28)

Viittaukset

LIITTYVÄT TIEDOSTOT

The method that yields information about the economic values and social impact of different investment options can be presented as a process with five main phases. In

Resistance and reactance can be thought as parameters that affect how far the protection area reaches on the R- and X-axis. Fourth parameter, line angle, can be used to tilt

The main claims in this thesis are that spectral color information can be used to enhance the visibility of diabetic retinopathy lesions and retinal landmarks in eye fundus

Network-based warfare can therefore be defined as an operative concept based on information supremacy, which by means of networking the sensors, decision-makers and weapons

According to the rights model we established, there are five aspects that the domestic system needs to check in order to decide whether an instance of a right can

The model can be used for transforming complex multiaxial mechanical loadings into equivalent uniaxial loadings parallel to the magnetic field, such that the permeability can

A YANG Data Model for Interface Management which defines configuration definitions that can be used to modify interfaces and state definitions that can be used to access

Therefore, this model can be used to study the energy consumption during the dynamic percussive drilling and more future work can be conducted to investigate the details