# US 2024/0193986 A1 · Task-independent brainprint recognition method based on feature disentanglement by decorrelation

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

- Number: US 2024/0193986 A1
- Document ID: US20240193986A1
- Status: Published application
- Kind: A1
- Application number: 18/474,529
- Filed: 2023-09-26
- Published: 2024-06-13
- Earliest claimed: 2022-12-08
- Assignees: Hangzhou Dianzi University
- Applicants: Hangzhou Dianzi University
- Inventors: Wanzeng KONG; Xuanyu JIN; Ni LI; Jiajia TANG
- Web page: https://patentgrep.com/patent/US20240193986A1

## CPC

- G06V 40/15: {Biometric patterns based on physiological signals, e.g. heartbeat, blood flow}
- A61B 5/117: Identification of persons (methods or arrangements for recognising patterns, e.g. fingerprints, G06F18/00, G06V40/00; identification of persons by analysing their voice or speech G10L17/00)
- A61B 5/316: Modalities, i.e. specific diagnostic methods
- A61B 5/369: Electroencephalography [EEG]
- A61B 5/374: Detecting the frequency distribution of signals, e.g. detecting delta, theta, alpha, beta or gamma waves
- A61B 5/7235: {Details of waveform analysis (detecting specific parameters of the electrocardiograph cycle A61B5/349)}
- A61B 5/725: {using specific filters therefor, e.g. Kalman or adaptive filters (specific diagnostics methods using using bioelectric or biomagnetic signals A61B5/316)}
- A61B 5/7257: {using Fourier transforms}
- A61B 5/7267: {involving training the classification device}
- G06F 18/00: Pattern recognition
- G06V 10/62: relating to a temporal dimension, e.g. time-based feature extraction; Pattern tracking
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- A61B: DIAGNOSIS; SURGERY; IDENTIFICATION (usefulness limited to only animals A61D)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The present disclosure provides a task-independent brainprint recognition method based on feature disentanglement by decorrelation. Existing methods fail to mine inherent identity information of a brain, leading to poor robustness of brainprint recognition in a scenario across tasks and difficulty of promotion thereof in practical use. The present disclosure firstly uses two branch networks to perform coarse-grained decomposition of identity information and task related information in an electroencephalogram (EEG). Secondly, in consideration of an influence of a task state on the identity information, a decorrelating method is employed such that the identity information and the task related information are independent as much as possible. Finally, a brainprint feature in the EEG is fully utilized for classification by adversarial self-supervision. The method of the present disclosure is good in performance and capable of realizing efficient task-independent brainprint recognition, and is a brainprint recognition method robustly useful in the real life.

## Claims

### Claim at position 1

1-10. (canceled).

### Claim 11

A task-independent brainprint recognition method based on feature disentanglement by decorrelation, comprising the following steps:
step 1, preprocessing original electroencephalogram (EEG) data and establishing a data set;
step 2, establishing an EEG feature extraction network for extracting a multi-scale time-frequency-space feature of a brainprint, specifically comprising:
step 2-1, dividing each EEG sample into low-frequency, high-frequency, and full-frequency subsamples by a low frequency band, a high frequency band, and a full frequency band;
step 2-2, separately subjecting low-frequency, high-frequency, and full-frequency time-frequency features to two layers of one-dimensional time-domain convolutions and one layer of one-dimensional frequency-domain convolution having different kernel sizes to extract advanced time-frequency brainprint features of low-frequency, high-frequency, and full-frequency EEGs;
step 2-3, obtaining a time-frequency brainprint feature {ƒi∈n×c}i=13 of each EEG sample by extracting the time-domain brainprint feature and the frequency-domain brainprint feature, wherein n represents a number of hidden layers, and c represents a number of EEG channels; and
step 2-4, splicing the time-frequency brainprint features by frequency-domain dimensions to obtain a time-frequency feature ƒts∈n×c×3, then performing channel-wise and spatial convolutions on the time-frequency feature ƒts with a two-dimensional convolution kernel of (c×3), and outputting the multi-scale time-frequency-space feature ƒ∈n of the brainprint;
step 3, establishing a primary brainprint and task disentangling neural network model;
wherein the primary brainprint and task disentangling neural network model comprises a primary brainprint disentangling neural network and a primary task disentangling neural network that are concurrent;
the primary brainprint disentangling neural network comprises an EEG feature extraction network Gf and an identity discriminator Cf; the EEG feature extraction network Gf is configured to extract identity information, and is the EEG feature extraction network established in step 2; the identity discriminator Cf is configured for identity recognition, and comprises a main classifier C and an auxiliary classifier Cs that are concurrent; and the main classifier C and the auxiliary classifier Cs are both fully connected layers;
a loss function of the EEG feature extraction network Gf is as follows:
s
=
-
1
n
⁢
∑
i
=
1
m
⁢
P
ˆ
⁢
log
⁢
C
f
(
G
f
(
x
i
)
)
=
-
1
n
⁢
∑
i
=
1
m
⁢
P
ˆ
⁢
log
⁢
C
f
(
f
)
(
2
)
wherein s represents the loss function; n represents a number of samples; m represents a number of subjects; and {circumflex over (P)} represents a probability that input data xi belongs to subject m;
the primary task disentangling neural network comprises an EEG feature extraction network Gt and a task classifier Ct; the EEG feature extraction network Gt is configured to extract task information, and is the EEG feature extraction network established in step 2; and the task classifier Ct is configured for task discrimination, and is a fully connected layer;
step 4, training the primary brainprint and task disentangling neural network model training, specifically comprising:
step 4-1, establishing constraint conditions for the EEG feature extraction networks Gf and Gt: decorrelating the identity information S=Gƒ(x) and the task information A=Gt(x), specifically comprising:
1) splicing an original identity feature matrix S and an original task feature matrix A output by the EEG feature extraction networks Gf and Gt to obtain a new matrix Q∈ms×mQ, wherein mS represents a number of samples, and mQ represents feature dimensions; mapping the matrix Q to a high-dimensional reproducing kernel Hilbert space (RKHS), and determining a dependency relationship between any two vectors qi, qj in the matrix Q by a Hilbert-Schmidt independence criterion (HSIC), wherein i, j∈mQ; and calculating a Frobenius norm of a cross-covariance operator in the RKHS;
acquiring an independent representation for a kernel function by mapping original data to the RKHS, as shown below:
(x;·)=Σiαiφi(x)φi(·)=(√{square root over (αi)}φi(x), . . .) (3)
wherein (·,·) represents a measurable symmetric positive definite kernel function; φ represents a mapping function; (·) represents a Hilbert space; and αi represents a feature value;
2) detecting independence of the vectors qi, qj by the HSIC after acquiring the kernel function;
for random variables qi, qj and kernel functions 1, 2, defining the HSIC as:
HSIC1,2(qi,qj):=∥Cqi,qj1,2∥F2 (4)
wherein C1,2 represents the cross-covariance operator regarding the kernel functions 1 and 2 in the RKHS; ∥·∥F is the Frobenius norm; and there exists HSIC1,2(qi, qj)=0⇔qi⊥qj, with qi being independent of qj;
3) optimizing the kernel function (x,·);
approximating the kernel function using random Fourier features (RFF) due to a high complexity of calculating the kernel function (x,·) in the Hilbert space, acquiring a dimension-reduced function by Fourier transform sampling to approximate the original kernel function, and capturing a nonlinear correlation of the two vectors qi, qj, specifically comprising: mapping the vectors qi, qj to a low-dimensional Euclidean space using the RFFs by the following formula (5), and obtaining an inner product after the mapping as an estimated value of the kernel function; performing linear calculation using the RFFs to remove the nonlinear correlation to realize statistical independence of the features;
expressing a random Fourier function space RFF as:
RFF={h:x→√{square root over (2)} cos(ωx+ϕ)|ω˜N(0,1), ϕ˜U(0,2π)} (5)
wherein ω represents sampling from a standard normal distribution N(0,1); ϕ represents sampling from a uniform distribution U(0,2π); and x represents the vectors qi, qj; and
transforming the matrix Q into the RFFs by the formula (5) to approximate the kernel functions (x,·) of an identity feature and a task feature;
4) detecting the independence;
assuming that there exist measurable spaces Ω1 and Ω2, wherein (1, 1) and (2, 2) represent the RKHSs in Ω1 and Ω2, and correspondingly, 1 and 2 are also measurable, and a unique cross-covariance operator ΣXY exists in a space from 1 to 2, deriving:
g, ΣXYƒ=Coν(ƒ(X), g(Y))=XY[ƒ(X)g(Y)]−X[ƒ(X)]Y[g(Y)] (6)
wherein ƒ(X)∈1, g(Y)∈2, and Coν(·) represents a covariance matrix;
as shown in the Formula (6), the calculation of ΣXY is expanded to the calculation of the covariance matrix over the Euclidean space, and ƒ(X) and g(Y) represent nonlinear kernel functions; due to ΣXY=0⇔X⊥Y, if a Hilbert-Schmidt norm of ΣXY is zero, X and Y are considered independent; since calculation is difficult for a kernel method, the RFFs are capable of providing a function space RFF to achieve the objective, and a cross-covariance matrix ΣXY is expressed as:
∑
X
⁢
Y
=
1
n
-
1
⁢
∑
i
=
1
n
[
(
u
⁡
(
X
i
)
-
m
u
_
)
T
·
(
v
⁡
(
Y
i
)
-
m
v
_
)
]
(
7
)
wherein
m
u
_
=
1
n
⁢
∑
i
=
1
n
⁢
u
⁢
(
X
i
)
,
m
v
_
=
1
n
⁢
∑
i
=
1
n
⁢
v
⁢
(
Y
i
)
;
and u and v are elements in a random Fourier space;
theoretically detecting the independence between the two vectors qi, qj, substituting the vectors qi, qj respectively as Xi and Yi into the formulas (6) and (7), wherein whether the cross-covariance operator ΣST regarding u(qi) and ν(qj) tends to 0 needs to be determined, and the elements u and v in the random Fourier space are expressed as:
u
⁡
(
q
i
)
=
(
u
1
(
q
i
)
,
u
2
(
q
i
)
,
…
,
u
n
q
i
(
q
i
)
)
,
u
r
(
q
i
)
∈
RFF
,
∀
r
(
8
)
v
⁡
(
q
j
)
=
(
v
1
(
q
j
)
,
v
2
(
q
j
)
,
…
,
v
n
q
j
(
q
j
)
)
,
v
r
(
q
j
)
∈
RFF
,
∀
r
(
9
)
wherein nqi; and nqj; each represent a number of functions sampled from RFF; and
establishing a cross-covariance matrix, minimizing the Frobenius norm of the cross-covariance matrix to achieve an objective of uncorrelation, and defining a loss function as:
dec=λΣ1≤i,j≤mQ∥Σqi,qj∥F2 (10)
wherein hyper-parameter λ represents sigmoid ramp-up, which is in the following form according to a function with a number of training epochs increasing from 0:
λ(t)=e−5(1−t)2 (11)
wherein tϵ[0, epoch]; and
step 4-2, fully mining the identity information output by the primary brainprint disentangling neural network using an adversarial self-supervised network, specifically comprising:
step 4-2-1, inputting the identity feature S output by the EEG feature extraction network Gf to the adversarial self-supervised network H to obtain a mask representation; taking each dimension of the mask representation as a discrete random variable, and sampling each dimension to obtain an approximate K—hotvector, and defining β representing approximate sampling of a κ—hotvector by Gumbel-Softmax trick as:
β=Gumbel−Softmax (H(S), κN)∈N (12)
wherein κ∈(0,1); N represents dimensions obtained by the adversarial self-supervised network; a mask closest to 1 in κN after sampling from a result is taken as an important feature, and other mask is taken as a secondary feature; and
defining Gumbel-Softmax: for pre-defined τ>0, i∈{1, . . . , N}, p∈{1, . . . , κ}, deriving:
β
i
=
max
p
∈
1
,
…
,
κ
exp
⁡
(
(
log
⁢
π
i
+
ε
i
p
)
/
τ
)
∑
j
=
1
N
⁢
exp
⁡
(
(
log
⁢
π
j
+
ε
j
p
)
/
τ
)
(
13
)
wherein π=H(S)∈N represents a probability vector; ε1p . . . εKp represent samples complying with a Gumbel distribution; and πi≥0, i∈1, . . . , N, Σiπi=1; and
step 4-2-2, multiplying the identity feature S output by the EEG feature extraction network Gf by masks β and 1-β to obtain an important dimension feature and a secondary dimension feature, and utilizing the main classifier C and the auxiliary classifier CS to train the adversarial self-supervised network H to fully utilize a discriminable identity feature;
redefining s of the formula (2) as a loss function of the main classifier C:
shup=l(C(S○β), S) (14)
and as a loss function of the auxiliary classifier CS:
sinƒ=l(CS(S○(1−β)), S) (15)
wherein ○ represents point multiplication;
firstly minimizing the loss functions to train and optimize the EEG feature extraction networks Gf, Gt, the main classifier C, and the auxiliary classifier CS; and secondly minimizing ssup and maximizing sinƒ to train the adversarial self-supervised network H:
min
G
t
,
G
f
,
G
A
,
C
,
C
S
s
sup
+
s
inf
+
t
+
λ
d
⁢
e
⁢
c
(
16
)
min
H
s
sup
-
s
inf
(
17
)
step 5, verifying and testing the trained primary brainprint and task disentangling neural network model; and
step 6, performing brainprint recognition on an EEG using the trained, verified, and tested primary brainprint and task disentangling neural network model.

### Claim 12 (depends on 11)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, wherein step 1 specifically comprises:
step 1-1, downsampling EEG data to 250 Hz, and filtering the original EEG data at 0 to 75 Hz using a Butterworth filter;
step 1-2, performing short-time Fourier transform on the EEG data x processed in step 1-1 to extract time-frequency features;
step 1-3, intercepting the time-frequency features obtained in step 1-2 using a time window, adding to each time-frequency feature a tag of a subject to which the time-frequency feature belongs and a corresponding task tag; and
step 1-4, using one task of EEG sample data obtained in step 1-3 as a test set {Xt, Yt, Ytl}, and proportionally dividing remaining samples into a training set {Xsj, Ysj, Yslj}j=1K and a validation set {Xν, Yν, Yνl}, wherein X, Y, Yl, and K represent a sample, an identity tag, a task tag, and a number of tasks, respectively.

### Claim 13 (depends on 12)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 12, wherein step 1-2 specifically comprises:
using a time-limited window function h(t), assuming that a non-stationary signal x is stationary within one time window, performing piecewise analysis on the signal x by moving of the window function h(t) on a time axis to obtain a set of local “frequency spectra” of the signal, and defining the short-time Fourier transform of signal x(τ) as:
STFT
⁡
(
t
,
f
)
=
∫
-
∞
∞
x
⁡
(
τ
)
⁢
h
⁡
(
τ
-
t
)
⁢
e
-
j
⁢
2
⁢
π
⁢
f
⁢
τ
⁢
d
⁢
τ
(
1
)
wherein STFT(t, ƒ) represents the short-time Fourier transform of the signal x(τ) in time t and frequency f, and h(τ−t)represents the window function.

### Claim 14 (depends on 11)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, wherein in step 2-1, the low frequency is 1 to 12 Hz, and the high frequency is 12 to 30 Hz.

### Claim 15 (depends on 11)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, wherein in step 2-3, the kernel sizes of the two layers of one-dimensional frequency-domain convolutions are [(6×1), (7×1)], [(7×1), (11×1)], and[(15×1), (15×1)], respectively.

### Claim 16 (depends on 15)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 15, wherein in step 2-3, the kernel sizes of the one layer of one-dimensional frequency-domain convolution are (12×1), (18×1), and (30×1), respectively.

### Claim 17 (depends on 11)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, wherein in step 2-3, the kernel sizes of the one layer of one-dimensional frequency-domain convolution are (12×1), (18×1), and (30×1), respectively.

### Claim 18 (depends on 11)

The task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, wherein the loss functions (16) and (17) are optimized by gradient back propagation.

### Claim 19 (depends on 11)

A task-independent brainprint recognition apparatus that implements the task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11, comprising:
a data acquisition module configured to acquire EEG data;
a data preprocessing module configured to preprocess the EEG data; and
a brainprint recognition module configured to use a trained, verified, and tested primary brainprint and task disentangling neural network model.

### Claim 20 (depends on 19)

The task-independent brainprint recognition apparatus according to claim 19, wherein step 1 specifically comprises:
step 1-1, downsampling EEG data to 250 Hz, and filtering the original EEG data at 0 to 75 Hz using a Butterworth filter;
step 1-2, performing short-time Fourier transform on the EEG data x processed in step 1-1 to extract time-frequency features;
step 1-3, intercepting the time-frequency features obtained in step 1-2 using a time window, adding to each time-frequency feature a tag of a subject to which the time-frequency feature belongs and a corresponding task tag; and
step 1-4, using one task of EEG sample data obtained in step 1-3 as a test set {Xt, Yt, Ytl}, and proportionally dividing remaining samples into a training set {Xsj, Ysj, Yslj}j=1K and a validation set {Xν, Yν, Yνl}, wherein X, Y, Yl, and K represent a sample, an identity tag, a task tag, and a number of tasks, respectively.

### Claim 21 (depends on 20)

The task-independent brainprint recognition apparatus according to claim 20, wherein step 1-2 specifically comprises:
using a time-limited window function h(t), assuming that a non-stationary signal x is stationary within one time window, performing piecewise analysis on the signal x by moving of the window function h(t) on a time axis to obtain a set of local “frequency spectra” of the signal, and defining the short-time Fourier transform of signal x(τ) as:
STFT
⁡
(
t
,
f
)
=
∫
-
∞
∞
x
⁡
(
τ
)
⁢
h
⁡
(
τ
-
t
)
⁢
e
-
j
⁢
2
⁢
π
⁢
f
⁢
τ
⁢
d
⁢
τ
(
1
)
wherein STFT(t, ƒ) represents the short-time Fourier transform of the signal x(τ) in time t and frequency f, and h(τ−t)represents the window function.

### Claim 22 (depends on 19)

The task-independent brainprint recognition apparatus according to claim 19, wherein in step 2-1, the low frequency is 1 to 12 Hz, and the high frequency is 12 to 30 Hz.

### Claim 23 (depends on 19)

The task-independent brainprint recognition apparatus according to claim 19, wherein in step 2-3, the kernel sizes of the two layers of one-dimensional frequency-domain convolutions are [(6×1), (7×1)], [(7×1), (11×1)], and[(15×1), (15×1)], respectively.

### Claim 24 (depends on 19)

The task-independent brainprint recognition apparatus according to claim 19, wherein in step 2-3, the kernel sizes of the one layer of one-dimensional frequency-domain convolution are (12×1), (18×1), and (30×1), respectively.

### Claim 25 (depends on 19)

The task-independent brainprint recognition apparatus according to claim 19, wherein the loss functions (16) and (17) are optimized by gradient back propagation.

### Claim 26 (depends on 11)

A computer-readable storage medium, storing a computer program, wherein the computer program, when executed in a computer, causes the computer to perform the task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11.

### Claim 27 (depends on 26)

The computer-readable storage medium according to claim 26, wherein step 1 specifically comprises:
step 1-1, downsampling EEG data to 250 Hz, and filtering the original EEG data at 0 to 75 Hz using a Butterworth filter;
step 1-2, performing short-time Fourier transform on the EEG data x processed in step 1-1 to extract time-frequency features;
step 1-3, intercepting the time-frequency features obtained in step 1-2 using a time window, adding to each time-frequency feature a tag of a subject to which the time-frequency feature belongs and a corresponding task tag; and
step 1-4, using one task of EEG sample data obtained in step 1-3 as a test set {Xt, Yt, Ytl}, and proportionally dividing remaining samples into a training set {Xsj, Ysj, Yslj}j=1K and a validation set {Xν, Yν, Yνl}, wherein X, Y, Yl, and K represent a sample, an identity tag, a task tag, and a number of tasks, respectively.

### Claim 28 (depends on 27)

The computer-readable storage medium according to claim 27, wherein step 1-2 specifically comprises:
using a time-limited window function h(t), assuming that a non-stationary signal x is stationary within one time window, performing piecewise analysis on the signal x by moving of the window function h(t) on a time axis to obtain a set of local “frequency spectra” of the signal, and defining the short-time Fourier transform of signal x(τ) as:
STFT
⁡
(
t
,
f
)
=
∫
-
∞
∞
x
⁡
(
τ
)
⁢
h
⁡
(
τ
-
t
)
⁢
e
-
j
⁢
2
⁢
π
⁢
f
⁢
τ
⁢
d
⁢
τ
(
1
)
wherein STFT(t, ƒ) represents the short-time Fourier transform of the signal x(T) in time t and frequency f, and h(τ−t) represents the window function.

### Claim 29 (depends on 26)

The computer-readable storage medium according to claim 26, wherein in step 2-1, the low frequency is 1 to 12 Hz, and the high frequency is 12 to 30 Hz.

### Claim 30 (depends on 11)

A computing device, comprising a memory and a processor, wherein an executable code is stored in the memory, and the processor, when executing the executable code, performs the task-independent brainprint recognition method based on feature disentanglement by decorrelation according to claim 11.
