# US 2022/0044117 A1 · Federated learning for anomaly detection

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

- Number: US 2022/0044117 A1
- Document ID: US20220044117A1
- Status: Published application
- Kind: A1
- Application number: 17/395,118
- Filed: 2021-08-05
- Published: 2022-02-10
- Earliest claimed: 2020-08-06
- Assignees: NEC Laboratories America, Inc.
- Applicants: NEC Laboratories America, Inc.
- Inventors: Dongjin Song; Yuncong Chen; Cristian Lumezanu; Takehiko Mizoguchi; Haifeng Chen; Wei Zhu
- Web page: https://patentgrep.com/patent/US20220044117A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for training a neural network include collecting model exemplar information from edge devices, each model exemplar having been trained using information local to the respective edge devices. The collected model exemplar information is aggregated together using federated averaging. Global model exemplars are trained using federated constrained clustering. The trained global exemplars are transmitted to respective edge devices.

## Claims

### Claim 1

A method for training a neural network model, comprising:
collecting model exemplar information from a plurality of edge devices, each model exemplar having been trained using information local to the respective edge devices;
aggregating the collected model exemplar information together using federated averaging;
training global model exemplars using federated constrained clustering using a processor; and
transmitting the trained global exemplars to respective edge devices of the plurality of edge devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein federated averaging includes determining an element-wise average of local exemplars.

### Claim 3 (depends on 2)

The method of claim 2, wherein federated averaging includes averaging exemplars after matching the exemplars by their values.

### Claim 4 (depends on 3)

The method of claim 3, wherein federated averaging includes projecting the local exemplars to a latent space and matching the local exemplars according to their respective positions in the latent space.

### Claim 5 (depends on 1)

The method of claim 1, wherein federated constrained clustering may be performed by minimizing an objective function:
min
ϕ
,
{
v
1
,
⁢
…
⁢
,
v
K
}
⁢
-
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
α
i
l
⁢
p
i
⁢
l
T
⁢
log
⁢
q
i
⁢
l
-
1
T
⁢
log
⁡
(
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
p
i
⁢
l
)
+
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
R
⁡
(
c
i
l
)
where ϕ represents parameters of the projection network h, {v1, . . . , vK} are latent cluster centers in an output space of h, N is a number of number of time series segments, K is a number of global exemplars, L is a number of edge devices, R(·) is a constraint function that encourages the projection network h to give similar embeddings for exemplars that have the same initialization, αil represents a prior distribution for an edge device l at a time i, pil is a target cluster membership vector for the edge device l at the time i, qil is a cluster membership vector for the edge device l at the time i, and cil is the exemplar of the edge device l at time i.

### Claim 6 (depends on 5)

The method of claim 5, wherein training the global exemplars {u1, . . . , uK} includes:
u
z
=
1
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
q
il
,
z
⁢
c
i
l
where z is an index between 1 and K.

### Claim 7 (depends on 1)

The method of claim 1, wherein collecting the model exemplar information does not gather training data for the model exemplars from the edge devices.

### Claim 8 (depends on 1)

The method of claim 1, further comprising repeating the collection, aggregation, training, and transmission based on updated model exemplar information from the edge devices.

### Claim 9 (depends on 1)

The method of claim 1, wherein the model exemplars are trained using multivariate time series data collected by the respective edge devices.

### Claim 10 (depends on 1)

The method of claim 1, wherein the trained global model exemplars are configured to recognize diverse operating conditions from cyber-physical systems associated with the plurality of edge devices.

### Claim 11

A system for training a neural network model, comprising:
a hardware processor;
a network interface in communication with a plurality of edge devices, configured to collect model exemplar information from the plurality of edge devices, each model exemplar having been trained using information local to the respective edge devices, and to transmit trained global exemplars to respective edge devices of the plurality of edge devices; and
a memory that stores a computer program product, which, when executed by the hardware processor, causes the hardware processor to:
aggregate the collected model exemplar information together using federated averaging; and
train the global model exemplars using federated constrained clustering using a processor.

### Claim 12 (depends on 11)

The system of claim 11, wherein the computer program product further causes the hardware processor to determine an element-wise average of local exemplars for federated averaging.

### Claim 13 (depends on 12)

The system of claim 12, wherein the computer program product further causes the hardware processor to average exemplars after matching the exemplars by their values for federated averaging.

### Claim 14 (depends on 13)

The system of claim 13, wherein the computer program product further causes the hardware processor to project the local exemplars to a latent space and matching the local exemplars according to their respective positions in the latent space for federated averaging.

### Claim 15 (depends on 11)

The system of claim 11, wherein the computer program product further causes the hardware processor to minimizing an objective function for federated constrained clustering:
min
ϕ
,
{
v
1
,
⁢
…
⁢
,
v
K
}
⁢
-
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
α
i
l
⁢
p
i
⁢
l
T
⁢
log
⁢
q
i
⁢
l
-
1
T
⁢
log
⁡
(
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
p
i
⁢
l
)
+
1
N
⁢
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
R
⁡
(
c
i
l
)
where ϕ represents parameters of the projection network h, {v1, . . . , vK} are latent cluster centers in an output space of h, N is a number of number of time series segments, K is a number of global exemplars, L is a number of edge devices, R(·) is a constraint function that encourages the projection network h to give similar embeddings for exemplars that have the same initialization, αil represents a prior distribution for an edge device l at a time i, pil is a target cluster membership vector for the edge device l at the time i, qil is a cluster membership vector for the edge device l at the time i, and cil is the exemplar of the edge device l at time i.

### Claim 16 (depends on 15)

The system of claim 15, wherein the computer program product further causes the hardware processor to train the global exemplars {u1, . . . , uK} with:
u
z
=
1
∑
i
=
1
K
⁢
∑
l
=
1
L
⁢
q
il
,
z
⁢
c
i
l
where z is an index between 1 and K.

### Claim 17 (depends on 11)

The system of claim 11, wherein the network interface does not gather training data for the model exemplars from the edge devices.

### Claim 18 (depends on 11)

The system of claim 11, wherein the computer program product further causes the hardware processor to repeat the aggregation and training based on updated model exemplar information from the edge devices.

### Claim 19 (depends on 11)

The system of claim 11, wherein the model exemplars are trained using multivariate time series data collected by the respective edge devices.

### Claim 20 (depends on 11)

The system of claim 11, wherein the trained global model exemplars are configured to recognize diverse operating conditions from cyber-physical systems associated with the plurality of edge devices.
