# US 2022/0292312 A1 · Bipolar morphological neural networks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292312 A1
- Document ID: US20220292312A1
- Status: Published application
- Kind: A1
- Application number: 17/495,628
- Filed: 2021-10-06
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Smart Engines Service, LLC
- Applicants: Smart Engines Service, LLC
- Inventors: Elena Evgenyevna LIMONOVA; Dmitry Petrovich NIKOLAEV; Vladimir Viktorovich ARLAZAROV
- Web page: https://patentgrep.com/patent/US20220292312A1

## CPC

- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06V 10/82: using neural networks
- G06F 18/2431: Multiple classes
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/778: Active pattern-learning, e.g. online learning of image or video features
- G06V 20/00: Scenes; Scene-specific elements (control of digital cameras H04N23/60)
- G06V 20/62: Text, e.g. of license plates, overlay texts or captions on TV images
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A bipolar morphological neural network may be generated by converting an initial neural network by replacing multiplication calculations in one or more convolutional layers with approximations that utilize maximum/minimum and/or addition/subtraction operations. The remaining part of the network may be trained after each convolutional layer is converted.

## Claims

### Claim 1

A method comprising using at least one hardware processor to:
convert an initial neural network into a bipolar morphological neural network by, for one or more convolutional layers in the initial neural network, converting the convolutional layer into a bipolar morphological layer by replacing each calculation of
∑
i
=
1
N
x
i
⁢
w
i
wherein x is an input in an input vector that has a length N, and w is a weight, with a calculation of
exp
⁢
max
j
(
y
j
+
v
j
)
wherein exp is an exponential function, max identifies a maximum, y is a new input derived from x, and v is a new weight derived from w; and
train each bipolar morphological layer in the bipolar morphological neural network layer by layer.

### Claim 2 (depends on 1)

The method of claim 1, wherein a structure of the bipolar morphological layer is:
exp
⁢
max
j
(
ln
⁢
ReLU
⁡
(
x
j
)
+
v
j
0
)
-
exp
⁢
max
j
(
ln
⁢
ReLU
⁡
(
x
j
)
+
v
j
1
)
-
exp
⁢
max
j
(
ln
⁢
ReLU
⁡
(
-
x
j
)
+
v
j
0
)
+
exp
⁢
max
j
(
ln
⁢
ReLU
⁡
(
-
x
j
)
+
v
j
1
)
⁢
wherein
v
j
k
=
{
ln
⁢
❘
"\[LeftBracketingBar]"
w
j
❘
"\[RightBracketingBar]"
,
if
⁢
(
-
1
)
k
⁢
w
j
>
0
-
∞
,
otherwise
wherein ln is a natural logarithm, and ReLU is a Rectified Linear Unit.

### Claim 3 (depends on 1)

The method of claim 1, wherein each bipolar morphological layer processes positive and negative parts of x separately but in a same manner.

### Claim 4 (depends on 3)

The method of claim 3, wherein a structure of the bipolar morphological layer is:
σ
⁡
(
exp
⁢
max
j
=
1
N
(
ln
⁢
x
j
+
+
v
j
+
)
-
exp
⁢
max
j
=
1
N
(
ln
⁢
x
j
+
+
v
j
-
)
-
exp
⁢
max
j
=
1
N
(
ln
⁢
x
j
-
+
v
j
+
)
+
exp
⁢
max
j
=
1
N
(
ln
⁢
x
j
-
+
v
j
-
)
+
v
b
)
⁢
wherein
x
j
+
=
{
x
j
,
x
j
>
0
0
,
x
j
<
0
x
j
-
=
{
-
x
j
,
x
j
<
0
0
,
x
j
≥
0
v
j
k
=
{
ln
⁢
❘
"\[LeftBracketingBar]"
w
j
❘
"\[RightBracketingBar]"
,
if
⁢
(
-
1
)
k
⁢
w
j
>
0
-
∞
,
otherwise
wherein ln is a natural logarithm.

### Claim 5 (depends on 1)

The method of claim 1, wherein training the bipolar morphological neural network comprises, sequentially from first to last, for each bipolar morphological layer:
training the bipolar morphological layer; and,
after training the bipolar morphological layer and before any subsequent training, freezing a structure and weights of the bipolar morphological layer, such that the structure and weights of the bipolar morphological layer do not change during the subsequent training.

### Claim 6 (depends on 1)

The method of claim 1, wherein the initial neural network has a U-Net architecture.

### Claim 7 (depends on 1)

The method of claim 1, further comprising using the at least one hardware processor to execute the trained bipolar morphological neural network to complete a task that produces an output from an input.

### Claim 8 (depends on 7)

The method of claim 7, wherein the input comprises an image, and wherein the task comprises object recognition within the image.

### Claim 9 (depends on 7)

The method of claim 7, wherein the input comprises an image, and wherein the task comprises text recognition within the image.

### Claim 10 (depends on 7)

The method of claim 7, wherein the input comprises an image, wherein the task comprises classifying each pixel in the image into one of two classes, and wherein the output comprises a binarization of the image.

### Claim 11 (depends on 10)

The method of claim 10, wherein the initial neural network has a U-Net architecture.

### Claim 12 (depends on 10)

The method of claim 10, wherein the two classes consist of foreground and background.

### Claim 13 (depends on 7)

The method of claim 7, further comprising using the at least one hardware processor to generate the input by:
converting an input image to grayscale; and
extracting a plurality of patches from the grayscale input image, wherein each of the plurality of patches is an input to the trained bipolar morphological neural network.

### Claim 14 (depends on 1)

The method of claim 1, further comprising using the at least one hardware processor to, before converting the initial neural network into the bipolar morphological neural network, train the initial neural network.

### Claim 15 (depends on 1)

The method of claim 1, further comprising using the at least one hardware processor to, after training each bipolar morphological layer in the bipolar morphological neural network layer by layer, training a remainder of the bipolar morphological neural network without changing a structure and weights of any bipolar morphological layers in the bipolar morphological neural network.

### Claim 16 (depends on 1)

The method of claim 1, wherein converting an initial neural network into a bipolar morphological neural network further comprises, for one or more fully-connected layers in the initial neural network, converting the fully-connected layer into a bipolar morphological layer by replacing an operation of
J
=
σ
⁡
(
∑
p
=
1
P
I
⁡
(
p
)
·
w
⁡
(
p
,
q
)
+
b
⁡
(
q
)
)
⁢
wherein
q
=
1
,
Q
_
wherein I is an input to the fully-connected layer, J is an output from the fully-connected layer, σ is a nonlinear activation function, P is a number of inputs I, Q is a number of neurons in the fully-connected layer, w(p,q) is a weight for input p and neuron q, and b(q) is a bias for neuron q,
with an operation of
J
=
σ
⁡
(
exp
⁢
max
p
=
1
P
(
ln
⁢
❘
"\[LeftBracketingBar]"
I
⁡
(
p
)
❘
"\[RightBracketingBar]"
+
v
+
(
p
,
q
)
)
-
exp
⁢
max
p
=
1
P
(
ln
⁢
❘
"\[LeftBracketingBar]"
-
I
⁡
(
p
)
❘
"\[RightBracketingBar]"
+
v
+
(
p
,
q
)
)
-
exp
⁢
max
p
=
1
P
(
ln
⁢
❘
"\[LeftBracketingBar]"
I
⁡
(
p
)
❘
"\[RightBracketingBar]"
+
v
-
(
p
,
q
)
)
+
exp
⁢
max
p
=
1
P
(
ln
⁢
❘
"\[LeftBracketingBar]"
-
I
⁡
(
p
)
❘
"\[RightBracketingBar]"
+
v
-
(
p
,
q
)
)
+
b
⁡
(
q
)
)
wherein v+(p,q) is a new weight for a positive part of input p and neuron q, and wherein v− (p,q) is a new weight for a negative part of input p and neuron q.

### Claim 17 (depends on 1)

The method of claim 1, wherein all convolutional layers in the initial neural network are converted into bipolar morphological layers.

### Claim 18 (depends on 17)

The method of claim 17, wherein the convolutional layers in the initial neural network are the only layers in the initial neural network that are converted into bipolar morphological layers.

### Claim 19

A system comprising:
at least one hardware processor; and
one or more software modules that are configured to, when executed by the at least one hardware processor,
convert an initial neural network into a bipolar morphological neural network by, for one or more convolutional layers in the initial neural network, converting the convolutional layer into a bipolar morphological layer by replacing each calculation of
∑
i
=
1
N
x
i
⁢
w
i
wherein x is an input in an input vector that has a length N, and w is a weight,
with a calculation of
exp
⁢
max
j
(
y
j
+
v
j
)
wherein exp is an exponential function, max identifies a maximum, y is a new input derived from x, and v is a new weight derived from w, and
train each bipolar morphological layer in the bipolar morphological neural network layer by layer.

### Claim 20

A non-transitory computer-readable medium having instructed stored thereon, wherein the instructions, when executed by a processor, cause the processor to:
convert an initial neural network into a bipolar morphological neural network by, for one or more convolutional layers in the initial neural network, converting the convolutional layer into a bipolar morphological layer by replacing each calculation of
∑
i
=
1
N
x
i
⁢
w
i
wherein x is an input in an input vector that has a length N, and w is a weight, with a calculation of
exp
⁢
max
j
(
y
j
+
v
j
)
wherein exp is an exponential function, max identifies a maximum, y is a new input derived from x, and v is a new weight derived from w; and
train each bipolar morphological layer in the bipolar morphological neural network layer by layer.
