=Paper= {{Paper |id=Vol-3646/Paper_6.pdf |storemode=property |title=Experimental Curves Segmentation Using Variable Resolution |pdfUrl=https://ceur-ws.org/Vol-3646/Paper_6.pdf |volume=Vol-3646 |authors=Anton Sharypanov,Vladimir Kalmykov,Vitaly Vishnevskey |dblpUrl=https://dblp.org/rec/conf/iti2/SharypanovKV23 }} ==Experimental Curves Segmentation Using Variable Resolution== https://ceur-ws.org/Vol-3646/Paper_6.pdf
                         Experimental Curves Segmentation Using Variable Resolution
                         Anton Sharypanov, Vladimir Kalmykov and Vitaly Vishnevskey
                         Institute of Mathematical Machines & Systems Problems of National Academy of Sciences of Ukraine (IMMSP),
                         42 Academician Glushkov Avenue, 03680, Kiev, Ukraine

                                          Abstract
                                          A new segmentation method of signals distorted by noise is discussed. Unlike other known
                                          methods, for example, the Canny method, a priori data on interference and / or a signal
                                          (image) is not used. Segmentation of signals and halftone images distorted by interference is
                                          one of the oldest problems in computer vision. But human vision solves this task almost
                                          independently of our consciousness. It was discovered for visual neurons, that sizes of
                                          receptive fields' excitatory zones change during visual act, which eventually mean dynamical
                                          changes in visual system's resolution i.e. coarse-to-fine phenomenon in living organism. We
                                          assumed that "coarse-to-fine" phenomenon, i.e. several different resolutions, is used in
                                          human vision to segment images. A "coarse-to-fine" algorithm for segmentation of
                                          experimental graphs was developed. The main difference of algorithm mentioned above from
                                          others is that decision is made taking into account all partial solutions for all resolutions
                                          being used. This ensures stability of final global solution. The algorithm verification results
                                          are presented. It is expected that the method can naturally be expanded to segmentation of
                                          halftone images.

                                          Keywords 1
                                          Experimental curves, segmentation, coarse-to-fine, cardiac signal

                         1. Introduction
                             Experimental curves represent the results of measurements, as a rule, distorted by interference. The
                         most basic feature of the experimental curve is its shape, which displays function that generates the
                         observed realization of curve and characterizes parameters of the displayed object or process. It is
                         assumed that the measured values are represented the realization of some unknown function existing
                         on a given measurement interval, and the result of the measurement is a finite sequence of pairs
                         "reference number-value". Since different curves that relate to the same object can differ from each
                         other in scale, interference level, number of measurements, etc., direct use of neural network methods
                         or methods that rest on statistical pattern recognition for solving the problem of comparing the shape
                         of graphs or curves does not seem possible. In this case, the unknown functions that describe
                         experimental curves must be approximated by functions that are invariant to affine transformations
                         for their subsequent processing and comparison.
                             Since images, as well as signals, can be considered as experimental realizations of some unknown
                         functions, some image processing methods can be used in signal processing, in particular, the variable
                         resolution method. The aim of our research is to introduce new methods for processing signals and
                         images, in particular, to develop a new algorithm for segmenting experimental curves suitable for
                         automated signal processing based on these methods and finally, to demonstrate the results of this
                         algorithm's application to one-dimensional signals distorted by interference.

                         2. Biological and mathematical aspects of variable resolution in relation to
                            experimental curves segmentation
                            In 70s of the last century, neurophysiologists discovered the phenomenon of changes in sizes of
                         receptive fields’ excitatory zones in the visual system neurons, which was investigated and confirmed

                         Information Technology and Implementation (IT&I-2023), November 20-21, 2023, Kyiv, Ukraine
                         EMAIL: anton.sha.ua@gmail.com (A. 1); vl.kalmykov@gmail.com (A. 2); vit.vizual@gmail.com (A. 3)
                         ORCID: 0000-0001-6804-0533 (A. 1); 0000-0001-8928-182X (A. 2); 0000-0003-2204-0487 (A. 3)
                                     © 2023 Copyright for this paper by its authors.
                                     Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
                                     CEUR Workshop Proceedings (CEUR-WS.org)


CEUR
                  ceur-ws.org
Workshop      ISSN 1613-0073
Proceedings
                                                                                                                                      53
later [1]. If at the beginning of visual act receptive field consists of maximum number (tens,
sometimes hundreds) of receptors, then by the end of visual act this amount decreases to minimum
possible amount - 1-2 receptors. Thus, we can assume that: 1) for visual system, there exists a variable
resolution that is changing during visual act and is determined by the size of excitatory zone of the
neuron receptive field at each moment of time; 2) the receptive field of a neuron is a discrete analogue
of neighborhood of point in a continuous 2-dimensional space.
    To analyze continuity of a function in continuous two-dimensional space, the classical definition
of continuity of a function in e-d form is successfully used: if for each e>0 there exists such d>0 that
for any value of variable x that belongs to δ-neighborhood of point c the values of function f(x) belong
to e-neighborhood of f(c). You should pay attention to how the continuity of function is checked at a
point. Starting with a certain value |x1-c|, the neighborhood of the point c decreases (|x1−c|>|x2−c|,
|x2−c|>|x3−c|, ...) tending to 0. Here f(x) is assumed to be continuous at a point c if the neighborhood
f(c) also tends to 0 (|f(x1)-f(c)|>|f(x2)-f(c)|, |f(x2)-f(c)|>|f(x3)-f(c)|, ...). Thereby, to analyze the continuity
of a function at a point, changing neighborhood of this point is used.
    The decrease in the size of receptive field excitatory zone can be considered as a decrease in
proportions of point neighborhood at center of the receptive field. The process, which is used in the
analysis of continuity of a function at a point in classical mathematical analysis, is repeated in visual
system of human and animals each visual act. The essential difference between resolution changes in
visual system from analysis of continuity of a function at a point is that the elements of the receptive
field are objects of a discrete space. Similarly, the classical definition is unsuitable for analyzing
continuity of experimental curves, since they are representations of unknown functions and are
identified as sequences of values, which in turn are sets of points in some discrete space. However, at
the initial moments of visual act, the excitatory zones of neurons contain many points (receptors) and
until the receptor sets in the excitatory zones of the receptive fields are not empty, the definition of
continuity can be applied to the brightness function determined in the discrete space of receptors and
it does not contradict to classical theory of discontinuity. Thus, the above phenomenon of resolution
changes in human visual system can be used to create new method of signal processing based on the
concept of variable resolution.

3. Review of the variable resolution using for image processing
    The idea to consider initial data with variable resolution is used by researchers and developers
spontaneously, most often to effectively solve problems of large computational complexity that arise
when processing the visual representation of signals. Such an approach makes it possible to exclude
inappropriate objects or non-informative signal sections at the early stages of processing and apply the
computationally-intensive part of algorithm to reduced volume of data. The review of methods from
the field of image processing that use the idea of variable resolution to save computational resources
is presented. The original image is considered with several reduced resolutions in each of them.
    An example is given in [2] which shows the relevance of using some set of resolving powers in
image and signal processing. Recognition of arbitrary text by standard means in Figure 1 is used as an
example. The text in Figure 1a can be recognized by both statistical and structural recognition
methods. Recognizing the text in Figure 1b is a more difficult task. If you try to apply statistical
methods, the result of calculating the similarity with the etalon image will be distorted due to the
presence of pixels of the grid image with the color of the object in the background field. Also, the
relative position of the text and the grid may change after sampling and quantization operations are
applied to the image. When applying structural methods to the images on Figure 1b, the contours of
grid cells will be detected instead of object contours. Similar results can be expected when the grid
overlaid on the text has a background color (Figure 1c, 1d). In this case, when applying statistical
recognition methods, the recognition result will also be distorted due to the presence of pixels in the
image field that belong to the object but have the background color. Again, the same relative position
of the text and the grid is not guaranteed after the grid is applied to the image and the image is
subjected to sampling and quantization operations.
    If you try to apply structural recognition methods to the images in Figure 1c, 1d the same results
will be obtained as for Figure 1b: the contours of the grid cells will be defined. This statement was
verified using the well-known text recognition program FineReader. The text in Figure 1a was


                                                                                                                 54
successfully recognized. The result of processing images on Figure 1b, 1c, 1d is a refusal to recognize
the object in the image due to the inability to locate it. When the resolution of these images is reduced
several times, the resulting images (Figure 2) are recognized satisfactorily because the recognition
program does not detect the grid lines. This example demonstrates the importance of choosing the
right resolution when processing an image, or, if this is not possible, using a variable resolution.




             a)                                                                        b)



             c)                                                                        d)
Figure 1: Examples of images containing arbitrary text: a) a uniform background; b) an arbitrary text
color grid superimposed on the background; c) an arbitrary background color grid superimposed on
the text image; d) the grid lines on the text have a different thickness than the lines on the text in c)
    In the automated processing of noisy images, preliminary processing of the input image using
different filters is used to eliminate undesirable details.
    The very first case of image processing using variable resolution in order to eliminate unwanted
details is an integral part of the widely used [3, 4] Canny method for determining the boundaries of
objects in an image. The original image V  {v(i, j ) | i  1, I ; j  1, J } is blurred using a Gaussian
filter to reduce the level of noise, eliminate unwanted details and image texture elements:
                                        g (i, j )  G ( )  v(i, j ) ,                               (1)
where G ( ) - Gaussian filter for the value of the standard deviation ,
 g (i, j ) - is an element of the "blurred" image.



                     a)                                                                 b)



                      c)                                                                d)
Figure 2: Images from Figures 1a, 1b, 1c, 1d at 6 times lower resolution
   Partial values of the gradients for the horizontal gi (i, j ) and vertical g j (i, j ) directions in the
blurred image g (i, j ) , using, for example, the Sobel operator to obtain the value of the total gradient
M (i, j ) and its direction  (i, j ) as
                                     M (i, j )  gi2 (i, j )  g 2j (i, j )                            (2)
                                                         g j (i, j )              
                                      (i, j )  arctg               g   (i , j )                     (3)
                                                                       i          
are calculated.
   The values of M (i, j ) , using the threshold T, which should be chosen so that all contour elements
are selected, while most of the interference is eliminated, are obtained M T (i, j ) :

                                                   M (i, j ), if M (i, j )  T
                                     M T (i, j )                                                     (4)
                                                     0, otherwise


                                                                                                        55
    To improve the quality of the method, two thresholds are used T1 and T2, where T1 < T2. If a pixel
v(i,j) with a value T1 < M T (i, j )