# US 2022/0280087 A1 · Visual Perception-Based Emotion Recognition Method

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

- Number: US 2022/0280087 A1
- Document ID: US20220280087A1
- Status: Published application
- Kind: A1
- Application number: 17/681,727
- Filed: 2022-02-26
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Shenzhen Xiangsuling Intelligent Technology Co., Ltd.
- Applicants: Shenzhen Xiangsuling Intelligent Technology Co., Ltd.
- Inventors: Danjiang LI; Ping Liu; Ping Li
- Web page: https://patentgrep.com/patent/US20220280087A1

## CPC

- A61B 5/165: {Evaluating the state of mind, e.g. depression, anxiety}
- G06V 40/162: {using pixel segmentation or colour matching}
- A61B 5/0004: {characterised by the type of physiological signal transmitted}
- A61B 5/0077: {Devices for viewing the surface of the body, e.g. camera, magnifying lens}
- A61B 5/0205: Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
- A61B 5/02405: {Determining heart rate variability}
- A61B 5/02433: {for infrared radiation}
- A61B 5/7203: {for noise prevention, reduction or removal}
- 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/726: {using Wavelet transforms}
- A61B 5/7267: {involving training the classification device}
- G06F 18/2135: based on approximation criteria, e.g. principal component analysis
- G06N 3/045: Combinations of networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06V 40/15: {Biometric patterns based on physiological signals, e.g. heartbeat, blood flow}
- G06V 40/168: {Feature extraction; Face representation}
- G06V 40/172: {Classification, e.g. identification}
- A61B 5/7485: {Automatic selection of region of interest}
- A61B 2576/00: Medical imaging apparatus involving image processing or analysis (A61B1/00009, A61B6/52 and A61B8/52 take precedence)
- G06F 2218/12: Classification; Matching
- A61B: DIAGNOSIS; SURGERY; IDENTIFICATION (usefulness limited to only animals A61D)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure relates to the field of emotion recognition technologies, and specifically, to a visual perception-based emotion recognition method. The method in the present disclosure includes the following steps: step 1: acquiring a face video by using a camera, performing face detection, and locating a region of interest (ROI); step 2: extracting color channel information of the ROI for factorization and dimension reduction; step 3: denoising and stabilizing signals and extracting physiological parameters including heart rate and breathing waveforms, and heart rate variability (HRV); step 4: extracting pre-training nonlinear features of the physiological parameters and performing modeling and regression of a twin network-based support vector machine (SVM) model; and step 5: reading a valence-arousal-dominance (VAD) model by using regressed three-dimensional information to obtain a specific emotional representation.

## Claims

### Claim 1

A visual perception-based emotion recognition method, comprising the following steps:
step 1: acquiring a face video by using a camera, performing face detection, and locating a region of interest (ROI);
step 2: extracting color channel information of the ROI for factorization and dimension reduction;
step 3: denoising and stabilizing signals and extracting physiological parameters comprising heart rate and breathing waveforms, and heart rate variability (HRV);
step 4: extracting pre-training nonlinear features of the physiological parameters and performing modeling and regression of a twin network-based support vector machine (SVM) model; and
step 5: reading a valence-arousal-dominance (VAD) model by using regressed three-dimensional information to obtain a specific emotional representation.

### Claim 2 (depends on 1)

The visual perception-based emotion recognition method according to claim 1, wherein step 1 specifically comprises: acquiring RGB video information containing a face region, process the video information by using face detection and feature point locating algorithms to obtain a position of a face and coordinate information of a feature point in an image, and selecting a rectangular region containing a cheek as the ROI based on the coordinate information of the feature point.

### Claim 3 (depends on 1)

The visual perception-based emotion recognition method according to claim 1, wherein step 1 specifically comprises the following steps:
step 1.1: acquiring a visible light or near-infrared RGB video containing a face region based on a V4L2 framework to obtain the face video;
step 1.2: compressing and preprocessing the face video to obtain a preprocessed video, wherein the preprocessing comprises image distortion correction and exposure correction; and
step 1.3: performing the face detection on the preprocessed video and locating the ROI.

### Claim 4 (depends on 3)

The visual perception-based emotion recognition method according to claim 3, wherein step 1.3 specifically comprises the following steps:
step 1.3.1: performing the face detection on the preprocessed video by using a NanoDet model to determine the face region; and
step 1.3.2: training a region locating model based on an attention mechanism of deep learning, and performing ROI locating on the face region by using a trained region locating model to determine the ROI.

### Claim 5 (depends on 2)

The visual perception-based emotion recognition method according to claim 2, wherein step 2 specifically comprises the following steps:
step 2.1: converting a color space of the ROI to a CIELab color space and a YUV color space; and
step 2.2: equally dividing the ROI into n regions, obtaining averages of a, b, U, and V channels in a time window T, concatenating the averages to obtain a feature matrix Fn×T of the video, and performing non-negative matrix factorization on the feature matrix Fn×T by using the following formula:
Fn×T≈MN
wherein M and N represent two non-negative matrices, values of elements in the matrices are greater than 0, and n represents the number of regions in the ROI; and
an error matrix E is expressed as E=Fn×T−MN, it is assumed that the error matrix E conforms to a Gaussian distribution, the matrices M and N are obtained through multiplicative iteration, the two non-negative matrices M and N obtained through separation are multiplied to obtain a reconstruction matrix, and a maximum singular value of the reconstruction matrix is obtained, wherein the maximum singular value is a one-dimensional signal most related to a heart rate.

### Claim 6 (depends on 4)

The visual perception-based emotion recognition method according to claim 4, wherein when the face video is a visible light video, step 2 specifically comprises the following step:
performing dimension reduction on RGB channel signals of the ROI of the visible light video by using a visible light dimension reduction formula to obtain a one-dimensional signal; wherein
the visible light dimension reduction formula is as follows:
raw=C1(t)+αC2(t)
wherein raw(t) represents the one-dimensional signal; C1(t) represents a first intermediate quantity; α represents a weight coefficient; and C2(t) represents a second intermediate quantity;
C
1
⁡
(
t
)
=
G
n
⁡
(
t
)
-
B
n
⁡
(
t
)
C
2
⁡
(
t
)
=
G
n
⁡
(
t
)
+
B
n
⁡
(
t
)
-
2
⁢
R
n
⁡
(
t
)
α
=
std
⁡
(
C
1
⁡
(
t
)
)
std
⁡
(
C
2
⁡
(
t
)
)
wherein Rn(t) Gn(t), and Bn(t) represent the RGB channel signals of the ROI of the visible light video.

### Claim 7 (depends on 4)

The visual perception-based emotion recognition method according to claim 4, wherein when the face video is a near-infrared video, step 2 specifically comprises the following steps:
converting a color space of the ROI of the near-infrared video from a RGB color space to a CIELab color space; and
selecting an L channel signal of the ROI of the near-infrared video in the CIELab color space as a one-dimensional signal.

### Claim 8 (depends on 5)

The visual perception-based emotion recognition method according to claim 5, wherein step 3 specifically comprises the following steps:
step 3.1: performing fast Fourier transform (FFT) on the one-dimensional signal to obtain a frequency-domain signal, filtering out noise out of a heart rate frequency band and a breathing frequency band to obtain a heart rate signal and a breathing signal with the out-of-band noise eliminated, eliminating in-band noise of the heart rate signal and the breathing signal through least squares smooth filtering, and enhancing and stabilizing the data through cubic spline interpolation to obtain a denoised remote heart rate waveform signal OSHR and breathing waveform signal OSBR;
step 3.2: analyzing power spectral densities (PSDs) of OSHR and OSBR, finding a frequency corresponding to a peak of each PSD, that is, obtaining a heart rate fundamental frequency and a breathing fundamental frequency, and multiplying the heart rate fundamental frequency and the breathing fundamental frequency by 60 to obtain the heart rate and a breathing value;
step 3.3: performing window sliding on the signal OSHR to determine a position of the peak, setting a heartbeat period window ωb and a contraction peak period window ωp, performing FFT on the signal OSHR, obtaining frequencies fb[i] and fp[i] at each time point i, and calculating ωb[i] and ωp[i] as follows: ωb[i]=1/fb[i] and ωp[i]=1/fp[i]; and
step 3.4: calculating thresholds win1 and win2 based on the heartbeat period window ωb and the contraction peak period window ωp, respectively.

### Claim 9 (depends on 5)

The visual perception-based emotion recognition method according to claim 5, wherein step 3 specifically comprises the following steps:
step 3.1: performing fast Fourier transform (FFT) on the one-dimensional signal to obtain a frequency-domain signal, filtering out noise out of a heart rate frequency band and a breathing frequency band to obtain a heart rate signal and a breathing signal with the out-of-band noise eliminated, eliminating in-band noise of the heart rate signal and the breathing signal through least squares smooth filtering, and enhancing and stabilizing the data through cubic spline interpolation to obtain a denoised remote heart rate waveform signal OSHR and breathing waveform signal OSBR;
step 3.2: converting OSHR and OSBR into binary visual images by using a trained waveform graph model, and performing model regression to obtain a heart rate corresponding to OSHR and a breathing value corresponding to OSBR;
step 3.3: performing window sliding on the signal OSHR to determine a position of the peak, setting a heartbeat period window ωb and a contraction peak period window ωp, performing FFT on the signal OSHR, obtaining frequencies fb[i] and fp[i] at each time point i, and calculating ωb[i] and ωp[i] as follows: ωb[1]1/fb[i] and ωp[1]1/fp[i]; and
step 3.4: calculating thresholds win1 and win2 based on the heartbeat period window ωb and the contraction peak period window ωp, respectively.

### Claim 10 (depends on 8)

The visual perception-based emotion recognition method according to claim 8, wherein the following formulas are used to calculate the thresholds win1 and win2 in step 3.4, respectively:
wi
⁢
n
1
=
1
ω
b
⁢
(
O
⁢
S
H
⁢
R
⁡
(
i
-
ω
b
/
2
)
+
…
+
OS
H
⁢
R
⁡
(
i
)
+
…
+
OS
H
⁢
R
⁡
(
i
+
ω
b
/
2
)
⁢
⁢
⁢
win
2
=

ω
p

wherein OSHR represents a remote heart rate waveform signal, ωb represents the heartbeat period window, ωp represents the contraction peak period window, i represents the time point, and OSHR(I) represents a remote heart rate waveform signal value at the time point i; and
if OSHR(i) in the heartbeat period window is greater than win1 a corresponding region is regarded as the ROI; if a width of the ROI is greater than win2, it is considered that a peak detection condition is met; and a maximum value in the ROI is used as the peak, and the HRV is calculated based on a position difference between peaks.

### Claim 11 (depends on 10)

The visual perception-based emotion recognition method according to claim 10, wherein step 4 specifically comprises the following steps:
step 4.1: extracting pre-training features of a pulse timing signal and a breathing timing signal, and a feature combination of the HRV; and
step 4.2: performing network building and regression.

### Claim 12 (depends on 11)

The visual perception-based emotion recognition method according to claim 11, wherein the extracting pre-training features of a remote heart rate waveform timing signal and a breathing timing signal in step 4.1 specifically comprises the following steps:
step (1): extracting features of the remote heart rate waveform timing signal and a raw breathing waveform timing signal from a fixed-length time window through discrete wavelet transform, and obtaining detail coefficients of second, third, and fourth scales, an overview coefficient of the fourth scale, and an autocorrelation coefficient of the overview coefficient to form multidimensional feature sample points of each remote heart rate and breathing waveform timing signal sample; and
step (2): using a Euclidean distance as a distance measure to calculate a discrete value to measure a distance between the feature sample points, wherein any several feature sample points constitute a feature combination, and each feature combination corresponds to a divergence value based on a pre-training distance measure, and normalizing the divergence value to a unified interval to form the pre-training features fv=(v=0, 1, . . . k) of the heart rate timing signal and breathing timing signal for use during classification, wherein fv represents a pre-training feature set, and v represents a dimension of final features.

### Claim 13 (depends on 12)

The visual perception-based emotion recognition method according to claim 12, wherein the extracting a feature combination of the HRV in step 4.1 specifically comprises the following steps:
step 4.1.1: performing short-term nonlinear analysis on the HRV by extracting time interval features between each two peak waves, using a jth heartbeat period as an abscissa and a (j+1)th heartbeat period as an ordinate, and drawing an elliptical region in a two-dimensional plane, wherein semi-major and semi-short axes of the ellipse are respectively SD1 and SD2. and SD1 and SD2 are calculated by using the following formulas, respectively:
SD
⁢
⁢
1
=
S
⁢
TD
⁡
(
Y
-
X
)
2
S
⁢
D
⁢
2
=
S
⁢
TD
⁡
(
Y
+
X
)
2
wherein X and Y respectively represent sets of X and Y coordinates contained in elements within the ellipse region, and STD represents an operation of obtaining a standard deviation;
step 4.1.2: obtaining a sequence of N time intervals, and using approximate entropy ApEn to measure irregularity of a feature change of the time interval sequence, wherein given a sequence RR=[RR1, RR2, . . . RRN], phase space reconstruction of the sequence RR is xp=[RR[p], RR[p+1] . . . , RR[p+m−1]], p∈[1, 2, . . . N], m=2, RR represents the time interval sequence, RR[p] represents a pth time interval, m represents an embedded dimension, and xp represents the phase space reconstruction; a vector set X[s]=[x1, x2, . . . xN−m+1], s∈[1, N−m+1] whose element xp is constituted, wherein x1 represents a sequence at a first moment; a distance d[X[q], X[t]] between any two vectors X[q] and X[t] is defined as a difference between maximum absolute values of their respective components; given r=0.2×SDNN, wherein SDNN represents a standard deviation of the time interval sequence; and a number of d[X[q], X[t]]<r is calculated for each vector, and then compared with a total number N−m+1 to obtain a probability Cim(r), wherein the following formula is used:
C
i
m
⁡
(
r
)
=
number
⁢
⁢
of
⁢
⁢
{
d
⁡
[
X
⁡
[
q
]
,
X
⁡
[
t
]
]
≤
r
}
N
-
m
-
1
,
q
,
t
∈
[
1
,
N
-
m
+
1
]
wherein number of represents an operation of counting a number;
step 4.1.3: calculating a follower index Φm(r) by obtaining a natural logarithm of each Cim(r), a sum of the logarithms, and then an average of the logarithms by using the following formula:
Φ
m
⁡
(
r
)
=
1
N
-
m
+
1
⁢
∑
i
=
1
N
-
m
+
l
⁢
ln
⁢
C
i
m
⁡
(
r
)
;
wherein ln represents a logarithmic function, represents a summation function, and finally, approximate entropy ApEn of the time interval sequence is calculated by the following formula:
ApEn(m,r,N)=Φm(r)−Φm+1(r)
wherein m and N are natural numbers, Φm(r) represents an mth follower index, Φm+1(r) represents an (m+1)th follower index, and the extracted feature combination of the HRV is {SD1, SD2, ApEn(0.2)}.

### Claim 14 (depends on 13)

The visual perception-based emotion recognition method according to claim 13, wherein the performing network building and regression in step 4.2 comprises: inputting a feature combination set {fi, SD1, SD2, ApEn(0.2)} into the twin network-based SVM model, and connecting a softmax layer, namely, a last layer of the twin network to the SVM model for multidimensional classification, wherein the SVM model finally outputs a nonlinear three-dimensional feature vector extracted from each time window of an HRV timing signal obtained from the heart rate and breathing signals; and the feature combination set is calibrated to a specific emotional state and then input to the network to form an end-to-end learning process that allows the neural network to model nonlinear dependence between a physiological signal in a user's resting state and a physiological signal during emotional arousal.

### Claim 15 (depends on 14)

The visual perception-based emotion recognition method according to claim 14, wherein the reading a VAD model by using regressed three-dimensional information to obtain a specific emotional representation in step 5 specifically comprises the following steps:
step 5.1: using a predefined VAD emotion dimension model, wherein the VAD emotion dimension model has a numerical distribution of 1,280 emotion points in three axes, and arousal, valence, and dominance are continuous values, with a value range of [0-9];
step 5.2: training two branch networks of the twin network-based SVM model, wherein current emotion feature data is input to one branch, and specified neutral emotion feature data is input to the other branch; and
step 5.3: training the network through backpropagation of time and stochastic gradient descent to resolve three-valued regression problems related to the user's arousal, valence, and dominance levels, eventually corresponding to a specific emotional state of the VAD model.
