Научная статья на тему 'Разработка алгоритмов сегментации биомедицинских изображений на основе предварительных разметок и текстурных признаков'

Разработка алгоритмов сегментации биомедицинских изображений на основе предварительных разметок и текстурных признаков Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
62
12
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
ГИСТОЛОГИЧЕСКИЕ И ЦИТОЛОГИЧЕСКИЕ ИЗОБРАЖЕНИЯ / HISTOLOGICAL AND CYTOLOGICAL IMAGES / СЕГМЕНТАЦИЯ / SEGMENTATION / ПРЕДЫДУЩИЕ РАЗМЕТКИ / PRELIMINARY MARKUP / ПРОСТРАНСТВЕННЫЕ МОМЕНТЫ / SPATIAL MOMENTS / ОЦЕНКА СЕГМЕНТАЦИИ / SEGMENTATION ESTIMATION

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — Batko Yu., Batryn N., Melnyk G., Verbovyy S., Datsko T.

Проведено исследование признаков областей, контуров и признаков текстуры для сегментации биомедицинских изображений. Разработан метод и алгоритм сегментации цитологических изображений на основе предыдущих разметок. Разработан метод и алгоритмы текстурной сегментации гистологических изображений на основе пространственных моментов. Разработаны алгоритмы оценки качества сегментации на основе метрического подхода. Приведены результаты сравнения качества сегментации проведенной разработанными алгоритмами

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Development of algorithms for biomedical image segmentation based on preliminary markup and texture attributes

Biomedical images are used for diagnosis and treatment of malignant neoplasms. Images of normal and pathological cells and tissues are derived using light microscopes. These images are the objects of study in histology and cytology. One of the most important stages in the automation of measuring optical and geometrical parameters of images is the segmentation of micro objects. Analysis of biomedical images is complicated due to the highly variable parameters and weak contrast in most micro objects. The use of point connections for segmenting the images has several advantages: processing images of any type, splitting micro objects that are in contact, insensitivity to noise. A method of image segmentation based on preliminary markup implies splitting a color image into homogeneous regions, calculating the coefficient of relation between adjacent points, and merging points into homogeneous regions. The algorithm allows for the automated segmentation. A texture segmentation method involves computing values of spatial moments for each point of the image. A feature space, obtained in this way, is segmented by the algorithm. The algorithm calculates thresholds based on mathematical expectation. This makes it possible to identify such complex micro objects as the layers of cells, cross-sections of blood vessels and ducts. The quality of segmentation was estimated using a metric approach. The developed segmentation algorithms made it possible to improve quality of the biomedical image segmentation by 18-21 % on average

Текст научной работы на тему «Разработка алгоритмов сегментации биомедицинских изображений на основе предварительных разметок и текстурных признаков»

DEVELOPMENT OF ALGORITHMS FOR BIOMEDICAL IMAGE SEGMENTATION BASED ON PRELIMINARY MARKUP AND TEXTURE ATTRIBUTES

Проведено дослидження ознак областей, контурiв та ознак текстури для сегментацй бюмедичних зображень. Розроблено метод i алгоритм сегментацй цитологiчних зображень на основi попередтх розмток. Розроблено метод i алгоритми текстурног сегментацИгiстологiчнихзображень на осно-вi просторових моментiв. Розроблено алгоритми оцшки якостi сегментацй на основi метричного тдходу. Наведено результати порiвняння якостi сегментацй, проведеног розробленими алгоритмами

Ключовi слова: гiстологiчнi та цитологiч-т зображення, сегментащя, попередт роз-мтки, просторовi моменти, оцтка сегментацй

UDC 004.932.2:616-006.06

|DOI: 10.15587/1729-4061.2017.119299]

□-□

Проведено исследование признаков областей, контуров и признаков текстуры для сегментации биомедицинских изображений. Разработан метод и алгоритм сегментации цитологических изображений на основе предыдущих разметок. Разработан метод и алгоритмы текстурной сегментации гистологических изображений на основе пространственных моментов. Разработаны алгоритмы оценки качества сегментации на основе метрического подхода. Приведены результаты сравнения качества сегментации, проведенной разработанными алгоритмами

Ключевые слова: гистологические и цитологические изображения, сегментация, предыдущие разметки, пространственные

моменты, оценка сегментации -□ □-

1. Introduction

Biomedical images are used for diagnosis and treatment of malignant neoplasms. Biomedical images of normal and pathological cells and tissues are obtained by using light microscopes. These images are the objects of study in histology and cytology.

In order to automate analysis of histological images, the systems of automated microscopy (SAM) are applied. SAM include hardware and software parts [1]. One of the most important stages in the automated measurement of optical and geometrical parameters of cells and tissues is the segmentation of micro objects on histological images [2, 3]. The complexity of the analysis lies in the high variability of parameters and low contrast of micro objects.

Micro objects on histological images are the cells of tissues of organs. Tissues are composed of rounded cells, which

Yu. Batko

PhD, Senior Lecturer* E-mail: programer_tang@ukr.net N. Batryn PhD, Associate Professor Department of International Economic Relations** Е-mail: nbatryn@tneu.edu.ua G . M e l n y k PhD, Associate Professor* E-mail: mgm@tneu.edu.ua S. Verbovyy Lecturer* E-mail: vso@tneu.edu.ua T. Datsko PhD, Associate Professor*** E-mail: datsko_t@ tdmu.edu.ua P. Selskyy MD, Professor*** E-mail: selskyy@tdmu.edu.ua *Department of Computer Engineering** **Ternopil National Economic University Lvivska str., 11, Ternopil, Ukraine, 46020 ***Department of Pathological Anatomy with section course and Forensic medicine I. Horbachevsky Ternopil State Medical University Voli sq., 1, Ternopil, Ukraine, 46001

are arranged in layers. The size of the cells ranges from 0.5 to 1.2 |im. Micro objects on the cytological images are the cells that are randomly arranged.

An analysis of a histological image involves the following stages: obtaining an image, manual or automated segmentation, measurement of the size, shape, position and optical parameters of micro objects, classification and statistical processing of measurements results.

Histological images have the following features [4, 5]:

- weak contrast due to the use of low-resolution cameras;

- images contain micro objects surrounded by the background that is complex in geometric and optical characteristics;

- non-even background is the result of incorrect configuration of the microscope illumination module;

- attributes of brightness of micro objects are the same as in the background;

© Vii. Batko, N. RaVfiii. G. Meihyk. S. keri,,,vyi, T. natsko. P. Seiskyy. 201.7

- a contrast of micro objects depends on the degree of optical zoom of a microscope;

- images contain regions with repeated pattern;

- stable color palette of the image is enabled by methods of chemical dyeing. Using the specialized color spaces, it is possible to improve quality of morphological operations and speed up processing rate compared to traditional RGB color space.

Image segmentation leads to the splitting of images into regions with similar characteristics. Among the main characteristics of image segmentation is the brightness for black and white images and color component for color images. The segmentation also involves attributes of contour and texture. The process of segmentation splits the image but does not identify separate segments or their ratios [6].

At present, there are no universal methods for segmentation. In practice, a set of specialized methods are employed that are the most effective for this class of tasks. Paper [2] proposed the following requirements for segmentation:

- regions should be homogeneous for the characteristics of brightness or texture;

- part of the region should be simple in shape and have small "openings";

- adjacent regions should significantly differ from each other by some preset characteristics;

- contours of each region should be simple, continuous and spatially precise.

Improving the segmentation of cytological images with a low contrast and non-uniform background requires evaluation of attributes of points from neighboring homogeneous regions. Such an assessment will make it possible to form the rules for building up regions following the preliminary image markup. Because the nuclei of cells are significantly darker than the surrounding background, then in the process of detection of groups of cells in histological images it is required to consider the distribution of levels of gray on the plane. We propose to estimate this distribution using spatial moments calculated for each point of the image. Application of spatial first-order moments will enable segmentation of blood vessels and ducts in the image.

2. Literature review and problem statement

There are several approaches to the classification of segmentation algorithms [8]. The approaches are based on the following criteria [9]: properties of points, regions, contours, a priori knowledge about micro objects, etc. Additional criteria for categorization of segmentation algorithms [10] are: image type (color, grayscale, binary), the nature of the segmentation process (parallel or sequential processing) [13-15]. However, these characteristics are rather ambiguous. For example, threshold segmentation may take place in parallel or under sequential mode and process both binary and grayscale images [11]. This leads to ambiguity in the algorithms of segmentation classification [12]. The criteria specified below will make it possible to better categorize segmentation algorithms.

Algorithms based on the properties of the points. A decision on the inclusion of a point in a homogeneous segment is made by analyzing characteristics of the point [16, 17] (brightness, color components characteristics). The advantage of this class of algorithms is speed, since the decision

on the inclusion of a point in a homogeneous region is made for each separate point. The drawback is the complexity of selection (evaluation) of preliminary information for images in a large number of homogeneous regions with similar characteristics.

Algorithms based on texture properties [4]. A decision on the inclusion of a point in a homogeneous region is made based on the similarity of texture attributes in a given point. This type of algorithms is recommended for images with duplicate patterns.

A texture segmentation process [14-17] can be divided into 3 stages:

1) formation of a set of characteristics (attributes) for the original image, which creates a multidimensional feature space. Each vector describes attributes of a texture [7];

2) stage of the classification, where each point of the image corresponds to a certain class based on the estimation of the vector of attributes;

3) stage of the original image segmentation is based on the information obtained after classification.

The advantage of this class of algorithms is the choice of segments with the same texture, but the drawback is the complexity of the segmentation algorithms.

Algorithms based on the selection of the contour [5]. A decision on the inclusion of a point in a homogeneous region is made by analyzing characteristics of the point of the contour. The algorithms are recommended for images with characteristic changes in brightness along the region's contour. The advantage of this class of algorithms is speed. Disadvantages are the presence of discontinuities at the edges (for the algorithms of filtering) and the difficulty of identifying the a priori information (algorithms of active contour).

Systems for analysis of biomedical images contain tools for manual detection of micro objects by selecting parameters for the segmentation algorithms [17]. In turn, academic studies have not addressed a problem on the automation of setting the algorithms. The results of algorithms work during research are controlled visually. Minimizing manual operations in the selection of segmentation parameters and the estimation of quality of the performed segmentation would allow automated segmentation of particular types of images.

3. The aim and objectives of the study

The aim of present research is the construction of algorithms for the segmentation of cytological and histological images, which would improve quality, when compared with known algorithms, under conditions of low-contrast images, non-uniformity of the background.

To achieve the set aim, the following tasks have been solved:

- to analyze relations between neighboring points and to devise rules for combining adjacent points into homogeneous regions to highlight cells;

- to analyze textural features of complex micro objects on histological images for the development of methods and algorithms for highlighting the layers of cells;

- to construct algorithms for segmentation quality evaluation and to estimate segmentation algorithms compared to the splitting into homogeneous regions by experts.

4. A method of image segmentation based on preliminary markup

We shall consider characteristics of separate points in an image and the relationship between them. We shall denote: I - original image; Isi - original image marked up using the i-th type of markup; Vij - the j-th homogeneous region in the original image marked up using the i-th type of markup;

Mk(x, y, z), x=1..l, y=1..m, z=1..8 is the array of coefficients of correlations for the k-th markup, l is the width of the original image, m is the height of the original image, z is the number of neighboring pixels.

An array of summary coefficients of correlations Msum is equal to (1):

Msum = £ M,

(1)

where n is the number of preliminary markups used in the process of segmentation.

Definition 1. We shall denote markup as the process of splitting original image I into an array of homogeneous regions Vj based on the homogeneity criterion KO. The homogeneity criterion is determined preliminary based on the analysis of original image I:

I in-}.

Definition 2. If two adjacent points I(x1, y1) and I(x2, y2) are located in a homogeneous region, the relationship between them is equal to 1:

R = 1P (I (xv yx)) = P (I ( x2, y2)),

where P(I(xv y) is the identifier of a homogeneous region to which point I(xvyt), belongs, P(I(x2,y2)) is the identifier of a homogeneous region to which point I ( x2, y2), belongs, R is the coefficient of relationship between two neighboring points.

Definition 3. If two adjacent points I(x1, y1) and I(x2, y2) are located in different homogeneous regions, the relationship between them is equal to 0:

R = 0, P (I (xv y) * P (I (x2, y 2)).

Definition 4. The total coefficient of relationship between two pixels I(x1, y1) and I(x2, y2) is defined as the amount of relations at n markups (2):

Rsum = ^ Ri, i = l...n,

(2)

where R is the total coefficient of relationship between two neighboring pixels I(x1, y1) Ta I(x2,y2).

4. 1. Segmentation algorithm based on previous markups

The segmentation algorithm is as follows:

1) perform preliminary markup of the original image I using n markups;

2) create an array of coefficients of correlations Mk between adjacent points for each of the n markups;

3) create an array of total correlation coefficients Msum between adjacent points for each of the n markups;

4) group the points of original image I into homogeneous regions based on the array of total relation coefficients Msum.

Preliminary markup can be performed in three ways.

Manual markup. The markup of the images is performed by several users independently, by manually selecting the homogeneous regions. This approach is labor-intensive and subjective in character because preliminary markup is performed under the influence of the human factor. The advantage of the approach is that the quantity of preliminary markups can be minimal.

Automated markup. Marking is carried out using the known methods of segmentation, but the user assigns the input parameters independently. The advantage of this approach is: high accuracy and performance speed, improvement of the objectivity of the preliminary markup.

Automated markup. Preliminary markup is performed based on the automated analysis of the original image, for example, an analysis of the histogram of distribution of brightness and defining different thresholds of belonging to a homogeneous region.

Since the algorithm was designed for the segmentation of color images during preliminary automated tagging, it enables a transition from a three-dimensional representation of color to the one-dimensional. Representation of the image in a 1-dimensional space allows for the automated analysis of histograms of color distribution using known algorithms for determining the thresholds.

Preliminary markups can be applied in different color spaces.

The following rules were devised to finalize the process of segmentation in order to categorize points of the original image in homogeneous regions based on the relationships between adjacent points:

1) if a connection between two adjacent points I(x1, y1) and I(x2, y2) is maximum Mum ^ max for the original image, then such points are merged into homogeneous region

V (Fig. 1, a);

2) if the total coefficient of connection of point I(x1, y1) with neighboring point I(x2,y2) is larger than that with other neighboring points, these points are merged into homogeneous region V;

3) if point I(xvyi) has the same total coefficient of connection with two (or more) neighboring points

Mum ( XV VV Z ) = Muum ( X 2, ^ Z) = M sum ( X 3, z)

which are combined in homogeneous region I(x2,y2)eV-, I(x3,y3)eV-, then it is added to the respective homogeneous region I(xvyx)eV- (Fig. 1, b);

4) if point I(xvyt) has the same total coefficient of connection with two (or more) neighboring points

Mum ( xV yv Z ) = Msum ( x 2, У2, z) = M sum ( x 3, Уз, Z\

which do not belong to one homogeneous region I (x2, y2) eVi, I(x3,y3)e V- i^ j, then the point is added to the region with which it has more neighboring points (Fig. 1, c).

The result of work of the method is a set of homogeneous regions. Since the objects in an image typically consist of a group of homogeneous regions, then it is necessary, in order to select the objects in an image, to perform a procedure for additional combination of homogeneous regions.

mpq = JT x"yqf ( x, y)dxdy,

W/2 W/2

mpq = É É f (m-n)xmyq -

-W/2-W/2

matrix Pd, which describes the distribution of brightness in a window the size of W x W centered at the point with coordinates (x, y). The elements of matrix Pd are determined from:

Pd ( i- j) = É (xm,n ; xm+d,n+d )>

(m-n)eD

(5)

a b c

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

Fig. 1. Examples of merging the points into homogeneous

regions: a — maximum connection between points; b — the same total connection coefficient with neighboring points; c — the same total connection coefficient with adjacent points that do not belong to one homogeneous region

5. Method of texture segmentation

A texture segmentation method involves the following stages [19]:

a) computation of texture attributes for each point in an image within a sliding window the size of WxW;

b) segmentation of the created texture field.

We shall consider textural attributes based on the spatial moments of a region and matrices of the distribution of levels of gray.

5. 1. Computation of spatial moments in a region

A texture of the image can be quantitatively described using simple statistical characteristics, such as mathematical expectation, variance and moments of the highest order [19]. The term of spatial moments (SM) originates from mechanics. SM, when applied to images, reflect distribution of the levels of gray image along its axes. Based on SM, it is possible to calculate region attributes that are invariant to rotation, transfer and scale.

Spatial moments of region at point with coordinates (x, y) and the value of function of levels of gray f(x, y) are calculated from (3):

where D is the square the size of W x W (W is an odd number); i, j=0..255 are the values of brightness of points; xmn is the brightness of point with coordinates (m, n).

Function f j( xm ,n ; xm+d n+d) is derived from:

f ( x ; x ) =

m,n> m+d,n+d '

1- ( X m ,n = i and Xm+d n+d = j)

OT (X m ,n = j and Xm+d ,n+d = i);;(6)

0, otherwise.

(3)

where p+q=0,1,2,3.

An image is considered to be a function of two variables f(x, y); we calculate a series of points of the lower order for each pixel in image ( p+q<2). The moments are calculated within local windows the size of WxW around each pixel.

In a discrete variant, SM within a window with a center in pixel (i, j) are calculated as the sum at normalized coordinates ^ yn):

This function is an indicator that the points that are located at a given distance have a certain level of brightness. Parameter d determines the distance at which the analysis of neighboring points is performed. Based on MDLG, we define such textural attributes as energy, entropy, contrast, homogeneity, correlation, etc.

By applying matrix Pd(i, j), which describes the distribution of brightness inside a region centered at point (x, y), we compute attributes of textures. After processing the entire image, we form for each of the attributes a matrix that stores a value for the attribute in all processed points - a field of texture attributes. To describe the attributes, we shall employ auxiliary magnitudes:

m, =É jP (i- j)- Pj = É P( i- j)- (7)

mathematical expectation

Mx = É ipi.

i

Below are the formulae for computing the attributes.

1. Total mean value:

Fi = É mPr • (8)

i

2. Inertia:

F2 = ÉÉ(i - j)2P(i- j). (9)

i j

3. Second angular moment:

F3 =ÉÉP 2( i- j). (10)

(4)

where m, n are the coordinates of point relative to the window.

To estimate a distribution of the levels of gray, we using row-column moment of inertia m1,1.

5. 2. Computing the matrices of distribution of the levels of gray

In the matrix of distribution of the levels of gray (MDLG) [19] Pd for displacement vector d = (dx, dy), the value of element pi j is the number of occurrences of the pair of values for levels of gray i and j, which are located at distance d. Thus, each point in the image f(x, y) can be matched with

' 1

4. Total correlation:

f4=ÉÉmm •

i j

5. Entropy:

F5 = -ÉÉln(P (i- j))P (i- j).

i j

6. Correlation:

F6 = ÉÉ(i - Mx )( j - Mx )P(i- j).

(11)

(12)

(13)

dx,dThe complexity of applying MDLG for the segmentation of biomedical images is in the large number of the enumer-

ated attributes, need to choose values for d, m, n. Existing SAM do not possess means to search for optimal parameters of the texture segmentation algorithm.

5. 3. Texture segmentation algorithm

The proposed texture field segmentation algorithm involves the following stages:

1. Construction of texture field G whose every point g e G in accordance with (1):

W/2 W/2

g {i,j) = mn = E E f(m n)xmyn ■

-W/2-W/2

2. Normalization of G, ge [0, 255].

3. Search for thresholds t1, t2,..., tn using the following steps:

a) Setting interval R=[a, b]; a=0 and b=255.

b) Finding mathematical expectation ^ root-mean-square deviation o of all pixels in interval R.

c) Computing thresholds t1 and t2 as ti = |i-ho and t2 = + ho. Parameter k affects the magnitude of interval R.

d) Computing new intervals a=t1+1, b=t2-1.

e) Repeat steps a-d n/2 times (n is the number of thresholds), setting new bounds of intervals a=t1+1, b = |a and a = |i + l b=t2-1.

4. Segmentation of textural field G, resulting in obtaining n+1 binary masks st, i={1, ..., n+1}:

S(x, y) =

i, if tM < g(x, y) < t,, 0, otherwise,

where t0=0, tn+1=255.

5. Segmentation of the original image in order to obtain n+1 images si, i={1, ..., n+1}:

S(x, y) =

f(x, У), if st (x, y) = X 0, otherwise.

regions. In order to find the smallest distances between contours, we shall use a metric by Gromov-Frechet; between regions - by Gromov-Hausdorff. Quantitative assessment of the quality of segmentation algorithms is based on the following algorithms [22].

Consider polygonal regions.

Fig. 2 shows polygonal regions after being segmented by an expert and after segmentation executed by the algorithm.

Consider algorithms for determining the Frechet distance and the Hausdorff distance.

6. 1. Algorithm for computing the discrete Frechet distance

Let two contours C and R be assigned (Fig. 2).

Ime

a Ime -m—

O2

To test MDLG (5) as a texture's attribute, it is necessary to execute a given algorithm by constructing at step 1 g(i, j)=F5. Parameter k is used to control the interval between the lowest and the largest threshold.

The optimal threshold number n (accordingly, the number of iterations of the algorithm) can be assigned a priori, based on actual application, or chosen based on a change in the value of signal/noise ratio p. Values of p can be calculated between the original image and the segmented image with averaged values of pixels in the middle of the segments.

6. Quantitative estimation of segmentation algorithms

In order to quantitatively estimate algorithms for the segmentation of cytological and histological images, we shall employ a metric approach. It implies using the Frechet and Hausdorff metrics. The original image is segmented by an expert, that is, it is split into a set of homogeneous regions that do not intersect. The same image is processed by the constructed segmentation algorithms. The expert's set of homogeneous regions and a set after algorithm's work in a general case do not match. The level of similarity between these sets defines the quality of segmentation. To compare the contours of images, we shall apply the Frechet metric while the Hausdorff metric will be employed to compare

(14)

b

Fig. 2. Polygons: a — expert segmentation; b — algorithm segmentation

1. Represent contours C and R by sets: o(C) = (vi,..., vr),

o(R) = (wi,..., ws),

where r, s is the number of segments.

2. Introduce set L between C and R:

L = ^ ^M^ wb2),...,(vam , wbm I

a1 = 1, b1 = 1, am=r bm=s.

3. Then finding the Euclidean norm

L = .Kfz-^a,, wb. )<

will involve the following steps.

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

3. 1. If i=1 and j=1, then the Euclidean distance is equal to:

d = (15)

3. 2. If i>1 and j=1, then the Euclidean distance is equal to:

max{d (vai_v w^ d (vaV wbi)\.

(16)

3. 3. If i=1 and j>1, then the Euclidean distance is equal to:

max{d (VaV Wb,-i) d (VaV wbj )}. (17)

w

n

3. 4. If ¿>1 and j>1, then the distance is equal to:

max{min(d( Vai-1, Wbi X d(Vai-1, Wbi-1 X (18)

d(va^ Wbi-1), d^ wbi))}.

Before finding distances between contours, we perform segmentation of a biomedical image and linear approximation of contours of the homogeneous regions.

6. 2. Algorithm for computing the Hausdorff distance

Thus, we have two polygonal convex regions 01= =(o1, v,.., vm) and O2=(w1, ®1v.., wm), where vi (i = 1,m), wi(i = 1,n). Then the Hausdorff distance between regions O1 and O2 is equal to:

dH (Oi,O 2) =

= max{maxdO (a1,b'),maxdO (a?,b?)},

(19)

do,(v, w) =

(v,w)- ProjO[ ( v,w) ,(v,w) i Interio(Ol), 0 in other cases,

(20)

T =

A

\

a b p c d q m n s

For the isometric transformations, the matrix is represented as:

T =

A

a 0 0 0 d 0 m n 1

, m, n eR, a, d eZ, a = d = {-1,0,1}}.

We shall represent the algorithm of isometric transformations in the following steps:

1. Compute centers of masses M4(xC^, yC^) and M2(xC^, yC^) for regions 01 and O2.

2. Build straight lines mx and m2 for regions O1 and O2, which intersect them at points A'(x'vy'), B'(x'2,y'2) and A"(x''y[\ B"(x'' y'O.

3. Compute angles 8', 62 between straight lines mx and m2 and the OX axis.

4. Perform parallel carry P of field O2 onto region O1 to match the centers of masses M1 and M2.

5. Perform rotation R for the difference of angles between 8' and 8'.

6. Calculate the Hausdorff distance based on expression:

dH = max(maxmindH(O'.,Oei), maxmindH(O'.,Oe)).

where dO^(a',b') are the projections of vertices of region Ox onto region O2; dO (a',b2) are the projections of vertices of region O2 onto region Ot [24].

Projections dOi (l= ',' ) are computed from:

7. Compute the discrete Frechet distance according to expression

ddF (C, R) = min (I L\\}.

8. Compute the least distance between the polygons based on expression

D = adF +PdH, -where a and p are the weight coefficients.

Oi

where Projol(v, w) is the minimum Euclidean distance from point P(v, w) to region O1 [22].

Then the Hausdorff distance is calculated based on steps:

1) We obtain polygonal regions O1=(v1, v1v.., vm) and O2=(w1, w1v.., wm). Find distances dOl (l= ',' ) of regions O1 and O2 according to expression (20).

2) The Hausdorff distance dH is to be found according to expression (19).

Computing the Gromov-Frechet distance and the Gro-mov-Hausdorff distance implies conducting a number of isometric transformations. That is why we shall consider the algorithm of isometric transformations of polygonal regions.

6. 3. Algorithm of isometric transformations

Isometric transformations are assigned by set

T, = {P, R, 5},

where P is the parallel carry, R is rotation, S is mapping relative to the axis (Fig. 3). Matrix of transformations in affine space is represented in the following way:

Fig. 3. Isometric transformations of polygons

Estimation of the quality of segmentation for two images will consist of the following stages: splitting the image into homogeneous regions, approximation of contours, finding the Hausdorff distance, finding the Frechet distance, calculating the weighted sum of distances for two metrics.

7. Experimental research into segmentation algorithms

In order to perform computer experiments, software in the Java programming language was developed using the OpenCV computer vision library. The software is designed for preliminary processing, image segmentation and segmentation quality evaluation. Preprocessing algorithm presented in detail in [24]. Segmentation algorithms are estimated based on the devised metric approach [22].

The main purpose of the algorithm is to adapt automatically to different types of images that can greatly simplify operation compared to improving an image manually. The devised algorithm involves the following stages:

1. Determining the level of brightness, contrast, mean value of red, green, and blue channels of the RGB original image.

2. Selecting parameters for improving quality of an image depends on the input parameters obtained at stage 1. As a rule, the levels of brightness of cytological and histological images are not always uniform, which is why they require correction. The result of correcting brightness and contrast of cytological images is shown in Fig. 4.

a b

Fig. 4. Result of the correction of contrast and brightness of the image: a — original image; b — adjustment of contrast and brightness

3. Filtration of images. Results of the experiments based on a sample of 100 cytological images from database [25] have shown that the averaging filter core with p=3 is the most appropriate to reduce the level of noise. Fig. 5 shows an example of the image filtration.

Fig. 6. Morphological operations: a — original image; b — dilation; c — erosion

5. Image segmentation based on the algorithm of preliminary markup.

6. Application of threshold segmentation. This segmentation algorithm is employed to convert an image into format "objects - background".

7. Evaluation of segmentation algorithms.

The study has shown that the algorithm that is based on the previous markup identifies homogeneous regions very clearly. However, it is necessary to perform additional processing to identify micro objects in the image.

Fig. 5. Result of image filtration: a — noisy image; b — p=3; c — p=7

Fig. 5 shows that filter with a core of p=3 reduced the noise level of the original image without distorting the image visually. Filter with a core of p=7 reduced the noise level, but it significantly distorted the image.

4. Obtaining the mean values of RGB channels, which are used to perform morphological operations ("dilation", "erosion"). Morphological operation "dilation" implies blurring the images using a filter. The image is generated from the local minimum, that is, dark regions increase. peration "dilation" implies enlargement of the image using a filter. The image is generated from the local maximum, that is, bright regions increase. Examples of performing operations of dilation and erosion are shown in Fig. 6.

Fig. 7. Images segmented by using different algorithms: a — original image; b — expert segmentation; c — ^-means algorithm; d — waterfront algorithm; e — algorithm based on preliminary markup

b

a

c

b

a

b

a

c

c

e

Histological images contain such complex micro objects as cross-sections of glands and ducts. Fig. 8, a shows a fragment of the histological image of breast tissue. To study texture segmentation algorithms experimentally, we employed a base of 100 histological images [25]. We conducted segmentation based on SM algorithm. Fig. 8, b shows space of texture features.

a b

Fig. 8. Fragment of the original image and space of texture attributes: a — original image; b — space of texture attributes

Space of texture attributes is split into regions by the calculation of thresholds. The numbered regions form markup (Fig. 9, a). One of the homogeneous regions corresponds to a breast duct shown in Fig. 9, b.

Table 1

Comparison of segmentation algorithms

Algorithm Hausdorff metric Gromov-Hausdorff metric Fréchet metric Gromov-Fréchet metric

Algorithm of ¿-means 67.89 64.63 67.89 64.63

Waterfront algorithm 130.9 125.7 132.76 126.1

Algorithm based on preliminary markup 54.38 53.27 54.38 53.27

Results of the texture segmentation were evaluated using a metric approach. Table 2 gives results of the comparison of texture segmentation algorithms to separate the tissue in a histological image. The third column of the metric denotes the following: Hausdorff - 1; Gromov-Hausdorff - 2; Frechet - 3; Gromov-Frechet - 4.

Table 2

Evaluation of texture segmentation algorithms

Expert segmentation

К

^ о

S

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

а

3

Texture segmentation

5

Distance value

SM

122.14

119.31

240.5

135.11

335.62

323.27

335.62

322.94

111

103.56

405.26

389.07

422.9

408.3

420.31

405.36

170.35

170.35

231.13

231.13

MDLG

158.78

173.00

288.60

175.64

436.31

468.74

402.74

549.00

155.40

150.16

486.31

505.79

549.77

592.04

630.47

672.90

221.46

247.01

277.36

300.47

a b

Fig. 9. Image segmentation and selection of a homogeneous region: a — marked up image; b — region of the breast duct

Table 1 gives comparison of segmentation algorithms of the cells. We applied the Hausdorff, Frechet, Gromov-Haus-dorff, Gromov-Frechet metrics for comparison.

The results of comparison show that the application of segmentation algorithm based on SM made it possible to improve the quality of segmentation by 18 % on average in comparison with the algorithm based on MDLG.

6. Discussion of results of studying the effect of properties of the points as texture attributes on the quality of segmentation

The use of connections between points for the segmentation of cytological images has the following advantages: processing images of any type, splitting micro objects that are in contact, insensitivity to noise.

The devised algorithm for texture segmentation based on spatial moments makes it possible to segment a group of cells (tissue) in a histological image. In addition to the better quality of segmentation, another benefit of the constructed algorithm is a smaller number of parameters. The study in the future should be conducted in the direction of development of an algorithm for calculating the size of a sliding window to compute spatial moments. This will allow automatic setting of parameters of the algorithm according to the multiplicity of magnification of a microscope or the scale of an image. However, the automation of processing biomedical images is hampered by the Ukrainian reality of applying manual microscopes.

The estimation of segmentation quality based on the Hausdorff distance involves convex regions, which is why a shortcoming is the need to additionally convert the non-convex regions into convex regions. This causes enhanced computational complexity. A promising direction for the

4

4

estimation of quality of segmentation is to search for metrics to compare the non-convex regions. This path implies overcoming a problem of the dependence of computing cost on the complexity of contours of objects.

The developed algorithms and software tools make it possible to automate the operations of preliminary segmentation in the systems of automated microscopy and to reduce the time of image processing. Automating manual operations leads to improved efficiency of medical diagnosis based on cytological and histological images.

9. Conclusions

1. We devised the method and constructed the algorithm for segmentation based on preliminary markup, which made it possible to improve the quality of cytolog-ical image segmentation by 21 % on average. A method of segmentation implies splitting a color image into homo-

geneous regions, computing a coefficient of connection between adjacent points, and merging the points into homogeneous regions. The algorithm allows for the automated segmentation.

2. We devised the method and built the algorithms for texture segmentation of layers of cells, which made it possible to improve the quality of histologic image segmentation by 18 % on average. The method involves computing the values of spatial moments for each point of the image. A feature space, obtained in this way, is segmented by the algorithm. The algorithm calculates thresholds based on mathematical expectation.

3. The algorithms of segmentation quality assessment based on a metric approach were developed. The application of the Frechet and Hausdorff distances made it possible to find similarity between the contours and regions in the quantitative form. The use of the Gromov-Frechet and Gromov-Hausdorff metrics allowed us to find the shortest distances between the contours and regions, respectively.

References

1. Argyris, G. 3D Terrain Modelling of the Amyntaio - Ptolemais Basin [Text] / G. Argyris, I. Kapageridis, A. Triantafyllou // 2nd International Workshop in "Geoenvironment and Geotechnics". - Milos island, 2008.

2. Berezsky, O. M. Method of image segmentation based on previous layouts images [Text] / O. M. Berezsky, Y. M. Batko, G. M. Melnyk // Proceedings of the 4th International Scientific-Technical Conference "Computer Science and Information Technology 2009". - Lviv: "Tower and Co", 2009. - P. 48-52.

3. Berezsky, O. M. Vision-based medical expert system [Text] / O. M. Berezsky, K. M. Berezska, Y. M. Batko, G. M. Melnyk // 6th International Scientific and Technical Conference "Computer Sciences and Information Technologies". - Lviv, 2011. -P. 49-50.

4. Bieri, M. Quantitative analysis of Alzheimer plaques in mice using virtual microscopy [Text] / M. Bieri, A. Wethmar, N. Wey // First European Workshop on Tissue Imaging and Analysis. - 2009. - P. 31-38.

5. Muralidhar, G. S. Snakules: A Model-Based Active Contour Algorithm for the Annotation of Spicules on Mammography [Text] / G. S. Muralidhar, A. C. Bovik, J. D. Giese, M. P. Sampat, G. J. Whitman, T. M. Haygood et. al. // IEEE Transactions on Medical Imaging. - 2010. - Vol. 29, Issue 10. - P. 1768-1780. doi: 10.1109/tmi.2010.2052064

6. Berezsky, O. M. Texture segmentation of biomedical images based on spatial moments [Text] / O. M. Berezsky, Y. M. Batko, G. M. Melnyk // Proceedings of the 4th International Scientific-Technical Conference "Computer Science and Information Technology 2009". - Lviv: "Tower and Co", 2009. - P. 42-45.

7. Berezsky, O. Segmentation of cytological and histological images of breast cancer cells [Text] / O. Berezsky, Y. Batko, G. Melnyk, S. Verbovyy, L. Haida // 2015 IEEE 8th International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS). - 2015. doi: 10.1109/idaacs.2015.7340745

8. Fu, K. S. A survey on image segmentation [Text] / K. S. Fu, J. K. Mui // Pattern Recognition. - 1981. - Vol. 13, Issue 1. - P. 3-16. doi: 10.1016/0031-3203(81)90028-5

9. Pal, N. R. A review on image segmentation techniques [Text] / N. R. Pal, S. K. Pal // Pattern Recognition. - 1993. - Vol. 26, Issue 9. - P. 1277-1294. doi: 10.1016/0031-3203(93)90135-j

10. Skarbek, W. Color Image Segmentation - A Survey [Text] / W. Skarbek, A. Koschan. - Berlin, 1994. - 81 p.

11. Lucchese, L. Color Image Segmentation: A State-of-the-Art Survey, Image Processing, Vision, and Pattern Recognition [Text] / L. Lucchese, S. Mitra // Proceedingss of the Indian National Science Academy (INSA-A). - New Delhi, India, 2001. -P. 207-221.

12. Jipkate, B. R. A Comparative Analysis of Fuzzy C-means Clustering and K-means Clustering Algorithms [Text] / B. R. Jipkate, V. V. Gohokar // International Journal of computational Engineering Research. - 2012. - Vol. 2, Issue 3. - P. 737-739.

13. Thilagamani, S. A Survey on image segmentation through clustering [Text] / S. Thilagamani, N. Shanthi // International journal of research and Information sciences. - 2011. - Vol. 1, Issue 1.

14. Sharma, N. Colour image segmentation techniques and issues: an approach [Text] / N. Sharma, M. Mishra, M. Shrivastava // International Journal of Scientific & Technology Research. - 2012. - Vol. 1, Issue 4. - P. 9-12.

15. Saini, S. A Study Analysis on the Different Image Segmentation Techniques [Text] / S. Saini, K. Arora // International Journal of Information & Computation Technology. - 2014. - Vol. 4, Issue 14. - P. 1445-1452.

16. Belaid, L. J. Image segmentation: a watershed transformation algorithm [Text] / L. J. Belaid, W. Mourou // Image Analysis & Stereology. - 2011. - Vol. 28, Issue 2. - P. 93. doi: 10.5566/ias.v28.p93-102

17. Abirami, M. S. Analysis of Image Segmentation Techniques for Medical Images [Text] / M. S. Abirami, T. Sheela // Proceedings of International Conference on Emerging Research in Computing, Information, Communication and Applications (ERCICA-14). - 2014.

18. Li, C. A Level Set Method for Image Segmentation in the Presence of Intensity Inhomogeneities With Application to MRI [Text] / C. Li, R. Huang, Z. Ding, J. C. Gatenby, D. N. Metaxas, J. C. Gore // IEEE Transactions on Image Processing. - 2011. - Vol. 20, Issue 7. - P. 2007-2016. doi: 10.1109/tip.2011.2146190

19. Berezsky, O. M. Design of computer systems for biomedical image analysis [Text] / O. M. Berezsky, K. M. Berezska, Y. M. Batko, G. M. Melnyk // Proceedings of the X-th International Conference "The Experience of Designing and Application of CAD Systems in Microelectronics" CADSM'2009. - Lviv-Polyana, 2009. - P. 186-192.

20. Arbelaez, P. Contour Detection and Hierarchical Image Segmentation [Text] / P. Arbelaez, M. Maire, C. Fowlkes, J. Malik // IEEE Transactions on Pattern Analysis and Machine Intelligence. - 2011. - Vol. 33, Issue 5. - P. 898-916. doi: 10.1109/ tpami.2010.161

21. Joshi, V. S. A Review of an Enhanced Algorithm for Color Image Segmentation [Text] / V. S. Joshi, A. N. Shire // International Journal of Advanced Research in Computer Science and Software Engineering. - 2013. - Vol. 3, Issue 3. - P. 435-441.

22. Berezsky, O. N. Quantitative evaluation of the quality of the segmentation of images based on metrics [Text] / O. N. Berezsky, E. N. Berezskaya // Upravlyayushchie Sistemy i Mashiny. - 2015. - Vol. 6. - P. 59-65.

23. Atallah, M. J. A linear time algorithm for the computation of some distance functions between convex polygons [Text] / M. J. Atallah, C. C. Ribeiro, S. Lifschitz // RAIRO - Operations Research. - 1991. - Vol. 25, Issue 4. - P. 413-424. doi: 10.1051/ro/ 1991250404131

24. Berezsky, O. Automated Processing of Cytological and Histological Images [Text] / O. Berezsky, O. Pitsun // 2016 XII International Conference on Perspective Technologies and Methods in MEMS Design (MEMSTECH). - Lviv-Polyana, 2016. -P. 51-53. doi: 10.1109/memstech.2016.7507518

25. Berezky, O. M. Relational database of intelligent automated microscopy system [Text] / O. M. Berezky, O. Yo. Pitsun, S. O. Verbovyi, T. V. Datsko // Scientific Bulletin of UNFU. - 2017. - Vol. 27, Issue 5. - P. 125-129. doi: 10.15421/ 40270525

i Надоели баннеры? Вы всегда можете отключить рекламу.