# Kohonen SOM for Image Slides Sequencing

Ewa Skubalska-Rafajlowicz, Aneta Górniak

► To cite this version:

Ewa Skubalska-Rafajlowicz, Aneta Górniak. Kohonen SOM for Image Slides Sequencing. 15th IFIP International Conference on Computer Information Systems and Industrial Management (CISIM), Sep 2016, Vilnius, Lithuania. pp.352-365, 10.1007/978-3-319-45378-1_32. hal-01637466

HAL Id: hal-01637466

https://inria.hal.science/hal-01637466

Submitted on 17 Nov 2017

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
Kohonen SOM for Image Slides Sequencing

Ewa Skubalska-Rafajłowicz and Aneta Górniak

Wroclaw University of Science and Technology
Faculty of Electronics, Department of Computer Engineering
Wroclaw, Poland
ewa.rafajlowicz@pwr.edu.pl, aneta.gorniak@pwr.edu.pl

**Abstract.** In this paper we present a new approach to sequencing of 2-D slide images with the goal of 3-D object reconstructions. We focus our attention mostly on microscope images obtained from serial sections of biological tissues. For adequate 3-D body reconstruction the correct sequence of section should be available. We propose a modified SOM Kohonen networks with open chain topology for true sequence estimation based on 2-D image features invariant to section image translation and rotation, but sensitive to a scale of an object on the slide. We provide an experimental validation of the proposed method using artificial section images of a mechanical device and real microscopic histological section images.

**Keywords:** image sequencing, SOM Kohonen map, Euclidean traveling salesman problem, image processing, image registration, 3-D image reconstruction

# 1 Introduction

In this paper we present a new approach to sequencing of 2-D slide images with the goal of 3-D object reconstructions. We focus our attention on microscope images obtained from serial sections of biological tissues. It is assumed that subsequent section images may be located inadequately in the image series. Translations, rotations and even small non-rigid transformations of the object of interest can occur.

Image registration is a very important step in processing sequences of images [10]. A large number of algorithms have been developed to perform registration of medical and biological images. Usually the image registration is the process of aligning multiple images representing the same scene that were captured at a different time, at or by a different set of modalities, or by alignment of successive anatomical slices [10]. We concentrate on the image registration in the case of 3-D tissue reconstruction [17], [19], [23], [24]. The problem becomes remarkably difficult if the order of the slides is not known. In such a case the process involves not only the transformation of the coordinate systems of the reference image and the input image into the joint coordinate system, but the most important problem is determine the reference images, i.e. the nearest neighbors (the
preceding and the subsequent slide image) for each section image. It is clear that aligning every pair of slides is possible only when the number of images is small enough as it was assumed in our previous paper [12]. Otherwise, the problem of common aligning and sequencing of slide images becomes extremely expensive from computational complexity problem of view, especially when separate slide image consists of over a million pixels.

If the correct order of slides is known the reconstruction of a 3-D object body from a series of 2-D sections consists in the co-registration of any two consecutive slices. Nevertheless, the choice of the reference image has a significant impact on registration quality and 3-D reconstruction, even when the correct slide order is known, because the image chosen as a reference slide may contain distorted parts. Thus, it is advisable to repeat the registration in the reverse order and finally identify and correct possibly erroneous slides.

When we do not know which 2-D slide should be the first (the last) in the reconstructed sequence, then the performed registration may lead to undesirable slides' deformations. Thus, it is important to find possibly correct image sequence before performing precise registration. It is clear that image matching could be realized on different levels of image precision. In the paper [2] the imaging system for simultaneous morphological and molecular analysis of section images is presented, but in that approach it is also assumed that correct order of slides is given at the start of the procedure. Another worth of attention method of the automatic registration of histological slices is given in [3]. The standardized slices are divided into small groups. The best reference slice selection in every group of slides is performed. The method of selection is developed based on an iterative assessment of image entropy and mean square error of the registration process. Nevertheless, in the paper it is also assumed that the order of slides presentation have not been destroyed.

Here we concentrate on providing a method of sequencing slides which is based on 2-D image features, independent of image translation and rotation (i.e., invariant to rigid transformations), but sensitive to a scale of an object on the slide. First, in order to avoid starting a work on a cellular level, we standardize images removing intensity variations between slices and after that binarize these images providing only contours of sections at the morphological level. We assume that microscopic slides are obtained from the geometrically continuous anatomical structure [19]. Thus, simple image measurements, such as an object diameter, object area, eccentricity of the best-fit ellipse containing the object, and the mean distance of all object's pixels from the center of gravity position of the binarized image, occur highly informative and allow us not only to distinguish one slide from another but also to determine geometrical similarity between them. We propose to consider these image measurements as coordinates in an abstract Euclidean space where each slide is a point with coordinates given by mentioned image measurements. In such a way the problem of slide sequencing can be formalized as a problem of finding the shortest open path between the points. We decided to use the sum of squared Euclidean distances as an optimization criterion. However, other goal functions can also be adequate.
The main reason that we prefer the sum of squared Euclidean distances criterion to the simple sum of Euclidean distances is that: the squared Euclidean distances favor the paths with more uniformly divided distances between separate points than in the case of the sum of strict Euclidean distances. Formally, we are looking for a path that visits every point once, and have separate (not-joined) endpoints, in contrast to the Hamiltonian cycle [16], where the path is closed, i.e., forms a cycle. The number of slides may vary between let say 10 to 200 (see for example [19], [24]). Thus, it is important to propose any efficient method of solving this in fact combinatorial problem which is known to be NP-hard [16], [20]. All method of solving the Travelling Salesmen Problem with Euclidean metric can be easily adapted to solving the open path problem. We decided to use modified version of Self-organizing Map (SOM) network with open chain topology [15], since it is fast, stable and provide very accurate solution when the number of points is not very huge. Furthermore, this method is more appropriate when the squared Euclidean distance instead of the Euclidean metric is used (see for example [6]).

Nevertheless, other general global optimization methods as simulated annealing, particle swarm optimization or genetic algorithms [13], [14], [22] can be also applied for solving our sequencing problem.

It should be noted that the approach for slide images sequencing proposed here will be also helpful for detection of possibly missing slides, errors in the image order or even destroyed sections.

It is clear that the method proposed here generates image sequences optimal with respect to general shape and size parameters. When sections are very similar with respect to these parameters, other, more precise and taking into account internal section details should be used. Furthermore, in the case of simple artificial 3-D bodies, for example a ball, it is obvious that the ordering may be inadequate. Fortunately, biological objects usually characterize large shape variability, allowing the method to generate sequences which with high probability are closed to the true ones. Thus, a sequence obtained on the basis of morphological parameters should be additionally inspected and corrected using internal, possibly cellular structure of subsequent sections, but this problem is outside the scope of our paper. In this paper we do not concentrate on image processing tasks. We have used image processing procedures provided by Wolfram Mathematica 10.1. These procedures occurred to be adequate to our purposes.

The paper is organized as follow. In the next Section the problem of image representation that is invariant to location and rotation on the shape and the size level is addressed. Section 3 provides a concise description of image sequencing by determining the shortest open path through a given set of points in Euclidean feature space. Section 4 presents the details of the proposed modification of the Kohonen SOM algorithm for sequencing image feature points. Section 5 describes results of two computational experiments of sequencing a set of artificial section images of a mechanical device and a set of microscopic histological slices. Finally, in Section 6 some brief conclusions are presented.
## 2 Image Representation on the Shape and the Size Level

We have assumed that each object image is represented roughly by chosen image measurements which are invariant to rigid object image transformation, i.e., are invariant to translations and/or rotations. Thus, in order to obtain exact measurements, it is important to separate precisely an object image from its background. The methods used for this task depend on the slide quality and visual inspection of results is very important [11]. In our experiments we have used algorithms supplied by Mathematica 10.1. We skip details because in every case the segmentation procedure was different. For example, in our histological sections it was important to remove images of patches used for fixing every section. After image segmentation process the background on each slide was deleted. The whole image was binarized, i.e., every object pixel intensity was set to 1 whereas the rest of pixels was set to 0. On the basis of the object silhouette we can to compute simple object features such as:

- The object area $A$ (areas of the two largest image segments are summarized), i.e., number of object's pixels normalized by the total number of pixels forming the whole image;

- The mean distance of to the center of gravity MCD (mean distance of all object's elements from the center of gravity position) divided by number of pixels in the image column;

- Maximal perimeter distance of the object MPD (i.e., object diameter measured in pixels and divided by number of pixels in the image column);

- The eccentricity of the object $E$, i.e., the eccentricity of the best-fit ellipse containing the object. $E = \sqrt{1 - (b/a)^2}$, where *a* and *b* are major and minor axes of the ellipse.

We assume that subsequent slides should be characterized by similar feature values. Each image is represented by a vector of its features. We expect that good image sequence can be obtained by minimizing the sum of squared errors (distances) between image feature vectors. The good sequence means the sequence close to the true one. It is clear that in general the problem of choosing image features providing such good sequences depends on properties of object and on a quality of images.

## 3 Image Sequencing by Determining the Shortest Open Path through a Given Set of Points in the Euclidean Space

Similarly as each city in the travelling-salesman problem with Euclidean distances between cities (ETSP) [16] is represented by a point on the map (usually 2-D space) also in our problem every image is represented by a point in some compact subset of $R^d$. We assume that this set is a unit cube $I^d = [0, 1] \times \dots \times [0, 1]$. The problem of determining the shortest open path through a given set of $N$
points is very close to the well known problem of finding the shortest closed path through a given set of N points, i.e., ETSP.

Let $X = \{x_1, \dots, x_N\}$ be a given set of point in $I^d$. Our goal is to find a sequence of points $X$, i.e., a permutation of points indexes $\Pi = (\pi(1), \pi(2), \dots, \pi(N))$, such that

$$Q_P(\Pi, X) = \sum_{i=2}^{N} \|x_{\pi(i)} - x_{\pi(i-1)}\|^2, \qquad (1)$$

is minimized over all possible permutations. $||.||$ denotes the Euclidean norm. Due to a symmetry property of the Euclidean distance between a pair of points (and obviously also the squared Euclidean metric), there exist at most $0.5N!$ different solutions of the problem.

Testing all $0.5N!$ possible image sequences one can always find the shortest path connecting all $N$ points, but the computational effort for this exhaustive search strategy, rises exponentially with $N$ and rapidly becomes unmanageable. For $N = 10$ it is 1814400 different solutions, for $N = 20$ the number of solutions rises to 1216451004088320000, and for $N = 30$ it is definitely unmanageable to perform the brute force search.

Usually in the case of ETSP only the sum of Euclidean distances, and not squared Euclidean distances, is minimized:

$$C_{TSP}(\Pi, X) = \sum_{i=2}^{N} \|x_{\pi(i)} - x_{\pi(i-1)}\| + \|x_{\pi(N)} - x_{\pi(1)}\|. \qquad (2)$$

Furthermore, it can be assumed that $\pi(1) = 1$, so that it is possible to find only $0.5(N-1)!$ different closed paths between points from set $X$.

It is known that the Euclidean TSP, similarly as a more general TSP, is NP-hard [20]. There are known many exact and approximate methods of solving TSP and ETSP (see for example [22] and the literature cited in there). Most of them can be adopt to solving $\min_{\Pi} Q_P(\Pi, X)$. Here we concentrate on using Kohonen SOM network [15] with open chain topology since similar type SOM networks with closed chain topology used for solving ETSP [1], [9], [6], [4], [5], [18], [25] are known to minimize the sum of squared Euclidean distances (SSD) rather than the sum of Euclidean distances between TSP points [8].

In our work we have used the algorithm presented in detail in the next Section.

## 4 Kohonen SOM Algorithm for Sequencing Data Points

Let $M$ denote the number of neurons. It is assumed that $M \ge N$ [1], [5]. Recall that $N$ is the number of data points in set $X$. Each neuron is represented by a point in $R^d$ labeled by a number $j = 1, 2, \dots, M$. Coordinates of such a point, let say labeled by $j$, form a vector $W_j \in I^d$, i.e., $W_j$ is the $j$-th neuron's weight. Each data point $x_i \in X$ can be uniquely represented by neuron $j^*$ such that
$$i^*(x_i) = \arg \min_{j=1,...,M} \|x_i - W_j\|^2. \quad (3)$$

Such neuron is often called "a winner". In the case of ties we will randomly pick exactly one winning neuron.

As a consequence, each neuron $j \in \{1, ..., M\}$ may be "empty", may be closest to exactly one data point from X or it may happen that two or even more than two data points are connected to the same neuron [9]. Let $A(j)$ denote the set of data points connected to neuron $j$. It is clear that

$$\bigcup_{j=1}^{M} A(j) = \{1, 2, ..., N\}. \quad (4)$$

Furthermore, $A(j)$, $j = 1, ..., M$ define at least partial order in the set of data points. In the case when there exist $A(j)$ such that $|A(j)| > 1$, strict order can be obtained by random choice or using the lexicographical order defined in X. We will be represent $A_j$ by lists rather than sets, which allows us to retain ordering. Thus, we obtain a linear order of data points from X uniquely providing sequence $\Pi$. Computational complexity of that ordering is $O(NM \log M)$ (we skip the dependence on $d$).

## 4.1 SOM Learning

Kohonen learning rule is applied for updating neuron weights (their positions in the data space). Denote by $W_j(n)$ the weight of j-th neuron in n-iteration of learning process. The process of learning is some kind of stochastic approximation process [21]. In every iteration only one data point from X is chosen at random and used for neuron position updating. Kohonen's method of learning is very efficient since not only a winning neuron selected according to (3) is updated but its neighbors in neuron's chain topology are also updated according to:

$$W_j(n) = W_j(n) + \alpha(n)h(x_i, j, n)(x_i - W_j(n)), \quad j = 1, ..., M \quad (5)$$

where $h(x_i, j, n)$ is a neighborhood function taking values in $[0, 1]$ and $\alpha(n)$ is a learning rate. $\alpha(n)$ is usually very small and decreases to zero with $n$. The common choice of the neighborhood function is the Gaussian function

$$h(x_i, j, n) = \exp\left(-\frac{|i^*(x_i) - j|}{2\sigma(n)^2}\right), \quad (6)$$

were $\sigma(n) \to 0$ when $n \to \infty$. There could be different methods of changing $\sigma$ and $\alpha$. Here we will assume that the learning is performed according to the following rules of learning parametres updating:

$$\alpha(n) = 0.5 \exp(-n/1000) \quad (7)$$

and

$$\sigma(n) = \sigma_0 0.01^{n/1000}, \quad \sigma_0 = 20, 10, 5. \quad (8)$$

However, it should be noted that in the case of ETSP also other formulas are used with success [4], [6], [25].
## 4.2 Algorithm

**Step1.** Initialization: Let $n$ be a discrete learning time starting from 0. The algorithm inputs are points $X = \{x_1, \dots, x_N\} \subset I^d$. Choose $M \ge N$, (for example, let $M = 1.5N$). We initialize neuron's weights $W$ at random using the uniform distribution on cube $[w_{1,min}, w_{1,max}] \times \dots \times [w_{d,min}, w_{d,max}]$, where $w_{k,min} = \text{Min}_{1 \le i \le N}[x_{i,k}]$, $w_{k,max} = \text{Max}_{1 \le i \le N}[x_{i,k}] (k = 1, \dots, d)$, and $(x_{i,1}, \dots, x_{i,k}, \dots, x_{i,d})^T = x_i$, $i = 1, \dots, N$. Set $W_{opt} = W$. Denote the value of the best sequence according to (1) by $Q_{opt}$ and the optimal sequence consisting of $N$ element list by $\Pi_{opt}$. Start with $Q_{opt} = 100$ and $\Pi_{opt} = (1, 2, \dots, N)$ Let the initial value of neighborhood function parametr be $\sigma_0 = 20$. And let $n_{max}$ be the value of the maximum number of iterations.

The main loop of the algorithm consists of the following steps:

**Step 2.** If $n > n_{max}$ go to Step End. Otherwise, compute parameters $\alpha(n) = 0.5 \exp(-n/1000)$ and $\sigma(n) = \sigma_0 0.01^{n/1000}$. Randomly draw point $x$ from set of points $X$. Let say $x = x_i$.

**Step 3.** Find neuron $i^*(x_i)$ closest to $x_i$ (3). Update weights according to (5).

**Step 4.** Set $A_j = \{\} \quad j = 1, \dots, M$. For $i = 1, 2, \dots, N$ find $j = i^*(x_i)$ and add index $i$ to the list $A_j$.

**Step 5.** Obtain new sequence $\Pi$ by concatenating lists $A_j$, $j = 1, \dots, M$ (empty lists are rejected).

**Step 6.** Compute $Q(\Pi, X)$ according to (1). If $Q(\Pi, X) \le Q_{opt}$ set: $Q_{opt} = Q(\Pi, X)$, $\Pi_{opt} = \Pi$ and $W_{opt} = W$. Set $n = n + 1$ and go to Step 2.

**Step End** Return the best results: $\Pi_{opt}$ and $Q_{opt}$.

# 5 Experiments

In this section we demonstrate results of computational experiments with sequencing both artificial and natural 2-D image slides. The artificial set of slides is a part of provided by Mathematica image example "ExampleData/CTengine.tiff" (20 subsequent image sections from the set of 110 sections). The histological set of section images consists of 10 slides. In this case we do not know how the proper sequence should look like. The sample images of each set are shown in Fig. 1 and Fig. 6.

## 5.1 Sequencing 2-D Section Images of a Technical Device

We have 20 subsequent image sections at our disposal. Each section image is of the size 256 x 256 pixels. In this example the true sequence of slides is known. Thus, we have randomly changed the numbering of slides. The true sequence (after random permutations of section numbers) is

(20, 2, 3, 10, 9, 18, 13, 15, 5, 1, 17, 19, 4, 12, 7, 6, 11, 8, 16, 14).
<figure><img src="image_2.png" /><figcaption>Fig. 1. The part of the image set consisting of 20 section images of a mechanical device; the size of image 256 × 256 pixels</figcaption></figure>

In Figure 1 four subsequent slides with new numbers 13, 15, 5, 1, respectively, have been shown.

We have computed three image features: the area of the binarized object A, the maximal diameter distance of the object MPD and the mean distance to the center of gravity MCD (see Figure 2 – left panel). The optimal sequence

<figure><img src="image_3.png" /><figcaption>Fig. 2. Image coordinates of the randomly rearranged sequence of the mechanical device slides (see Fig. 1): area of the binarized object A (thick), maximal diameter distance of the object MPD (dashed), mean distance to the center of gravity MCD (dotted) (left panel). Image coordinates of the original (untidy) sequence of microscopy slides (see Fig. 6): area of the binarized object (thick), mean distance to the center of gravity (dashed), eccentricity of the best-fit ellipse containing the object (dotted) (right panel)</figcaption></figure>

was obtained using the proposed here algorithm (see section 4.2) as:

(20, 2, 3, 10, 9, 18, 13, 5, 1, 15, 17, 19, 4, 12, 7, 6, 11, 8, 16, 14).

This sequence differs from the true one in the position of slide 15. Its correct location is just before slides 5 and 1 (not after them). Process of Kohonen network learning was performed ten times starting from randomly chosen neuron's positions. The number of neurons was $M = 20, 30, 40$ and $\sigma_0 = 20$. In the case of $M = 30$ the optimal solution was obtained in every simulation. Otherwise, when the number of neurons was smaller or larger (i.e., $M = 20$ or $M = 40$), the network has produced also suboptimal paths. Trajectories of the sum of the
squared Euclidean distances (SSD) obtained by the SOM algorithm in two exemplary runs are depicted on Figure 3. Figure 4 shows the sketch of the neuronal

<figure><img src="image_4.png" /><figcaption>**Fig. 3.** The results of the section images sequencing using the proposed method. SSD obtained in the subsequent iterations of the algorithm for 20 neuron (left panel) and for 30 neuron (right panel). In the both cases the same - optimal sequence - was found</figcaption></figure>

paths corresponding to the obtained optimal sequence. The network equipped
with *M* = 30 neurons visibly converges to the optimal solution, while in the case
*M* = 20 the best sequence is computed and memorized in the Step 5 of the algo-
rithm, but the network further converges to the slightly worse sequence. Finally,

<figure><img src="image_5.png" /><figcaption>**Fig. 4.** The path of 20 neurons obtained for image sequence optimal with respect to SSD (left panel) and the path of 30 neurons obtained for image sequence optimal with respect to SSD (right panel) . Large dots indicate position of images</figcaption></figure>

Figure 5 presents comparison of the 3-D image of a part of the mechanical device (on the left image) and its 3-D reconstruction obtained on the basis of the
optimal with respect to SSD section sequence. The differences are not visible, although small inconsistencies can be found inside the object, since the location of section 15 should be corrected in the precise matching of neighboring slides.

<figure><img src="image_6.png" /><figcaption>**Fig. 5.** 3-D image of a part of an mechanical device (left panel) 3-D reconstruction of an mechanical device object obtained on the basis of the optimal with respect to SSD section images sequence (right panel)</figcaption></figure>

## 5.2 Sequencing Microscopy Section Images

The analyzed set of microscopy section images contains 10 slides of the size 184 × 184 pixels (see Fig 6). This time also three image features have been computed: the area of the binarized object *A*, the eccentricity of the best-fit ellipse containing the 2-D object *E*, and the mean distance to the center of gravity *MCD*. Due to the vary small differences between measurements and relatively large differences between mean values of the separate features, values of *A* and *MCD* features rescaled by 0.15 and 0.2, respectively. The rescaled feature values are shown on the right panel of Fig. 2. The optimal with respect to the SSD section sequence was: (5, 6, 10, 4, 8, 7, 2, 3, 9, 1) with *SSD* = 0.0075 and the second best was (5, 6, 4, 10, 8, 7, 2, 3, 9, 1) with *SSD* = 0.0084. Processing of Kohonen network learning was performed ten times starting from randomly chosen neuron's positions. The number of neurons was *M* = 10 and *M* = 15 and *σ*₀ = 5 and *σ*₀ = 20, respectively. Trajectories of the sum of the SSD obtained by the SOM algorithm in two exemplary runs are depicted on Figure 7. In the both cases the same - optimal sequence was found, but only for 15 neurons the networks has converged to the optimal solution. The outline of the neuronal paths corresponding to the obtained optimal sequence is shown in Fig. 8. The network equipped with *M* = 15 neurons visibly converges to the optimal solution, while in the case *M* = 10 the best sequence is computed and memorized in the Step 5 of the algorithm, but the network further converges to the slightly worse sequence. 3-D reconstruction of an biological object obtained on the basis of the optimal (with respect to SSE) section sequence is presented in Fig 9.
<figure><img src="image_7.png" /><figcaption>**Fig. 6.** The image set consisting of 10 microscopy section images of the size 184 × 184 pixels</figcaption></figure>

<figure><img src="image_8.png" /><figcaption>**Fig. 7.** The results of the section images sequencing using the proposed method. SSD obtained in the subsequent iterations of the algorithm for 15 neurons net (left panel) and for 10 neurons net (right panel)</figcaption></figure>

<figure><img src="image_9.png" /><figcaption>**Fig. 8.** The 15 neurons path obtained for optimal image sequence for starting value of $\sigma = 20$ (left panel) and $\sigma = 5$ (right panel). Large dots indicate position of images</figcaption></figure>
<figure><img src="image_10.png" /><figcaption>**Fig. 9.** Two views of 3-D reconstruction of an biological object obtained on the basis of the optimal with respect to SSD section sequence after additional alignment</figcaption></figure>

# 6 Conclusion

The paper presents a problem of 2-D section images ordering for 3-D body re-construction. We propose a slightly modified SOM Kohonen networks with the open chain topology for adequate sequence specification based on 2-D image features invariant to section image translation and rotation, but sensitive to a scale of an object on the slide. This means that location and orientation of objects on slides can be coincidental and sequencing of slides at the shape and the size level is performed without precise image registration. It should be noted that the approach proposed here for slide images sequencing will be also helpful for detection of possibly missing slides, errors in the image order or even destroyed sections. The method of slide sequencing proposed here provides image orders optimal with respect to its general shape and size parameters. When sections are very similar with respect to these parameters, other, more precise and taking into account internal section details should be used. We stress that a sequence obtained on the basis of morphological parameters should be additionally inspected and corrected using internal, possibly cellular features of the subsequent sections. This problem is outside the scope of the paper and will be developed later taking into account the non-rigid registration problems.

The presented SOM algorithm is shown to perform well on artificial and on natural series section images when the number of neurons is greater than the number of slides, but not too large. 1.5*N* neurons, where *N* is the number of section images was a best choice. It is less than in the case of ETSP, where 2*N* – 3*N* neurons are recommended. Inspecting sequence path picture (Fig. 4, 8) one can observe that the points representing images are located rather regularly, also forming almost regular routes. This can be reason that a relatively small number of neuron is here needed. Due to the lack of space we have shown only the small part of experiments we have performed, but it is worth to stress that the number of iterations needed for obtaining good solution was relatively stable, independent of the number of slides. This observation agrees with experiments performed by Budinich [7] (with respect to one dimensional ordering) and indicates that properties of SOM Kohonen networks seem to be worth of further investigations.
We also hope that the proposed approach can be also usable in others sequencing problems where object of complicated structure should be ordered.

**Acknowledgments.** The authors express their special thanks to Dr. Agnieszka Malińska and to professor Maciej Zabel from University School of Medicine, Poznań, Poland for the microscopy section images.

This research was supported by S50242 grant at the Faculty of Electronics, Wrocław University of Science and Technology.

## References

1. Angeniol B., Vaubois C., and Texier J.-Y. L.: Selforganizing feature maps and the traveling salesman problem. Neural Networks 1 289-293 (1988)

2. Arganda-Carreras I., Fernandez-Gonzalez R., Munoz-Barrutta A., Ortiz-De-Solorzano C.: 3D Reconstruction of Histological Sections: Application to Mammary Gland Tissue. Microscopy Research and Technique 73:1019-1029 (2010)

3. Bagci U., Bai L.: Fully Automatic 3D Reconstruction of Histological Images. In Proc. of 5th IEEE International Symposium on Biomedical Imaging: From Nano to Macro. 991-994 (2008)

4. Bai Y., Zhang W., Hu H.: An Efficient Growing Ring SOM and Its Application to TSP, in Proceedings of the 9th WSEAS International Conference on Applied Mathematics, Istanbul, Turkey, May 27-29, 2006: 351-355 (2006)

5. Bai Y., Zhang W., Jin Z.: An new self-organizing maps strategy for solving the traveling salesman problem. Chaos, Solitons and Fractals 28 1082-1089 (2006)

6. Budinich M.: A Self-Organising Neural Network for the Travelling Salesman Problem that is Competitive with Simulated Annealing. Neural Computation 8(2): 416-424 (1996)

7. Budinich M.: Sorting with Self-Organising Maps. Neural Computation 7(6): 1188-1190 (1995)

8. Budinich M. and Rosario B.: A Neural Network for the Travelling Salesman Problem with a Well Behaved Energy Function, in: Ellacott, S.W., Mason, J.C. And Anderson I.J. (editors) Mathematics of Neural Networks: Models, Algorithms and Applications, Kluwer Academic Publishers, Boston 134-139 (1997)

9. Favata S, Walker R.: A study of the application of Kohonen-type neural networks to the traveling salesman problem. Biological Cybernetics 64: 463-8 (1991)

10. Flusser, J., Zitova, B.: Image registration methods: a survey. Image and Vision Computing, 21, 977-1000 (2003)

11. Gonzalez R.C., Woods R.E.: Digital Image Processing. Prentice Hall (2007)

12. Górniak A., Skubalska-Rafajlowicz E.: Registration and sequencing of vessels section images at macroscopic levels. In: Khalid Saeed and Wadysaw Homenda (eds.) CISIM 2015, LNCS vol. 9339, pp. 399-410. Springer, Heidelberg (2015)

13. Kennedy, J.; Eberhart, R.: Particle Swarm Optimization Proceedings of IEEE International Conference on Neural Networks 1942-1948 (1995)

14. Kirkpatrick, S., Gelatt Jr, C. D., Vecchi, M. P.: Optimization by Simulated Annealing. Science 220 (4598): 671-680 (1983)

15. Kohonen T.: Self-organizing map. New York: Springer (2001)

16. Lawler E., Lenstra J., Rinnooy Kan A.: The Traveling Salesman Problem: A Guided Tour of Combinatorial Optimization. Wiley, New York (1985)
17. Lippolis, G., Edsjo, A., Helczynski, L., Bjartell, A., Overgaard, N.: Automatic registration of multi-modal microscopy images for integrative analysis of prostate tissue sections. MBC Cancer 13:408 (2013)

18. La Maire B.F.J., Mladenov V.M.: Comparison of Neural Networks for Solving the Travelling Salesman Problem. In IEEE Proc. NEUREL 2012, DOI: 10.1109/NEUREL.2012.6419953 (2012)

19. Ourselin, S., Roche, A., Subsol, G., Pennec, X., and Ayache, N.: Reconstructing a 3D structure from serial histological sections. Image and vision computing. 19(1), 25-31 (2001)

20. Papadimitriou CH.:The Euclidean traveling salesman problem is NP-complete. Theoretical Computer Science 4:237-244 (1978)

21. Ritter H., Martinetz T. and Schulten K.: Neural Computation and Self Organizing Maps: An Introduction. Addison-Wesley, New York, (1992)

22. Saadatmand-Tarzjan M., Khademi M, Akbarzadeh-T MR., Moghaddam HA. : A Novel Constructive-Optimizer Neural Network for the Traveling Salesman Problem. IEEE Transactions on Systems, Man, and Cybernetics-part B: Cybernetics, 37(4): 954-770 (2007)

23. Schwier, M., Böhler, T., Hahn, H.K., Dahmen, U., Dirsch, O.: Registration of histological whole slide images guided by vessel structures. Journal of Pathology Informatics. 4:2(Suppl):S10 (2013)

24. Stille M., Smith E.J., Crum W.R., Modo M.: 3D reconstruction of 2D fluorescence histology images and registration with in vivo MR images: Application in a rodent stroke model. Journal of Neuroscience Methods 219: 27-40 (2013)

25. Xu X., Jia Z., Ma J., Wang J.: A Self-organizing Map Algorithm for the Traveling Salesman Problem, In: IEEE Proc. of the Fourth International Conference on Natural Computation, 431-435, DOI 10.1109/ICNC.2008.569 (2008)