# US 2022/0019847 A1 · Active interaction method, electronic device and readable storage medium

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

- Number: US 2022/0019847 A1
- Document ID: US20220019847A1
- Status: Published application
- Kind: A1
- Application number: 17/237,978
- Filed: 2021-04-22
- Published: 2022-01-20
- Earliest claimed: 2020-07-20
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Yang Xue; Fan Wang; Jingzhou He
- Web page: https://patentgrep.com/patent/US20220019847A1

## CPC

- G06F 18/40: Software arrangements specially adapted for pattern recognition, e.g. user interfaces or toolboxes therefor
- G06V 20/10: Terrestrial scenes (scenes under surveillance with static cameras G06V20/52; scenes perceived from the exterior of a vehicle G06V20/56; scenes perceived from the interior of a vehicle G06V20/59)
- G06F 18/2132: based on discrimination criteria, e.g. discriminant analysis
- G06F 18/253: {of extracted features}
- G06F 40/30: Semantic analysis
- G06T 7/251: {involving models}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06T 2207/20084: Artificial neural networks [ANN]
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- 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

An active interaction method, an electronic device and a readable storage medium, relating to the field of deep learning and image processing technologies, are disclosed. According to an embodiment, the active interaction method includes: acquiring a video shot in real time; extracting a visual target from each image frame of the video, and generating a first feature vector of each visual target; for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs to generate a second feature vector of each visual target; aggregating the second feature vectors with the same identification information respectively to generate a third feature vector corresponding to each image frame; and initiating active interaction in response to determining that the active interaction is to be performed according to the third feature vector of a preset image frame.

## Claims

### Claim 1

An active interaction method, comprising:
acquiring a video shot in real time;
extracting a visual target from each image frame of the video, and generating a first feature vector of each visual target;
for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs, to generate a second feature vector of each visual target;
aggregating the second feature vectors with the same identification information respectively to generate a third feature vector corresponding to each image frame; and
initiating active interaction in response to determining that the active interaction is to be performed according to the third feature vector of a preset image frame.

### Claim 2 (depends on 1)

The method according to claim 1, wherein extracting the visual target from each image frame of the video comprises:
extracting a specific target from each image frame of the video as the visual target.

### Claim 3 (depends on 1)

The method according to claim 1, wherein extracting the visual target from each image frame of the video, and generating the first feature vector of each visual target comprises:
annotating the visual target according to a feature map of each image frame;
extracting a feature-map sub-region corresponding to the visual target from the feature map, and converting the feature-map sub-region into a sub-feature-map with a preset size; and
performing a global average pooling operation on each sub-feature-map, so as to obtain the first feature vector corresponding to each visual target.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
after the first feature vector of each visual target is obtained, for each visual target, determining its coordinates at the upper left corner and its coordinates at the lower right corner in the image frame in a two-dimensional coordinate system with a center of the image frame as an origin;
selecting a plurality of points from a range limited by the coordinates corresponding to each visual target in the image frame, so as to establish positional representation of each visual target in a two-dimensional plane; and
flattening the established positional representation into a position feature vector with a preset number of dimensions, and then splicing the position feature vector with the first feature vector of each visual target.

### Claim 5 (depends on 1)

The method according to claim 1, wherein for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs to generate a second feature vector of each visual target comprises:
for each image frame in the video, inputting the first feature vector of the visual target and the identification information of the image frame to which the visual target belongs into a pre-created neural network model; and
taking an output result of the neural network model as the second feature vector of the visual target,
wherein the neural network model comprises a plurality of decoder blocks, and each decoder block comprises a self-attention layer and a feed-forward layer.

### Claim 6 (depends on 1)

The method according to claim 1, wherein initiating active interaction comprises:
acquiring feature vectors corresponding respectively to a plurality of multi-modal interaction modes;
determining, from the plurality of multi-modal interaction modes, a multi-modal interaction mode to be employed when the active interaction is initiated, according to the third feature vector of the preset image frame and the feature vectors corresponding respectively to the plurality of multi-modal interaction modes; and
performing the active interaction using the multi-modal interaction mode determined.

### Claim 7 (depends on 6)

The method according to claim 6, wherein acquiring the feature vectors corresponding respectively to the plurality of multi-modal interaction modes comprises:
acquiring a semantic vector for characterizing each interaction statement by a pre-trained language model;
acquiring one-hot codes for characterizing each interaction expression and each interaction action respectively;
constructing different multi-modal interaction modes using different interaction languages, interaction expressions and interaction actions; and
splicing the semantic vector and the one-hot codes corresponding to each multi-modal interaction mode, and inputting the splicing result into a fully-connected network, and taking an output result as the feature vector corresponding to each multi-modal interaction mode.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the determining, from the plurality of multi-modal interaction modes, the multi-modal interaction mode employed when the active interaction is initiated according to the third feature vector of the preset image frame and the feature vectors corresponding respectively to the plurality of multi-modal interaction modes comprises:
multiplying the third feature vector of the preset image frame respectively by the feature vectors corresponding respectively to the plurality of multi-modal interaction modes, and inputting the multiplication results into a pre-trained second discriminant model; and
determining the multi-modal interaction mode employed when the active interaction is initiated according to an output result of the second discriminant model.

### Claim 9

An electronic device, comprising:
at least one processor;
a memory connected with the at least one processor communicatively;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to carry out an active interaction method, which comprises:
acquiring a video shot in real time;
extracting a visual target from each image frame of the video, and generating a first feature vector of each visual target;
for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs, to generate a second feature vector of each visual target;
aggregating the second feature vectors with the same identification information respectively to generate a third feature vector corresponding to each image frame; and
initiating active interaction in response to determining that the active interaction is to be performed according to the third feature vector of a preset image frame.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein extracting the visual target from each image frame of the video comprises:
extracting a specific target from each image frame of the video as the visual target.

### Claim 11 (depends on 9)

The electronic device according to claim 9, wherein extracting the visual target from each image frame of the video, and generating the first feature vector of each visual target comprises:
annotating the visual target according to a feature map of each image frame;
extracting a feature-map sub-region corresponding to the visual target from the feature map, and converting the feature-map sub-region into a sub-feature-map with a preset size; and
performing a global average pooling operation on each sub-feature-map, so as to obtain the first feature vector corresponding to each visual target.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the method further comprises:
after the first feature vector of each visual target is obtained, for each visual target, determining its coordinates at the upper left corner and its coordinates at the lower right corner in the image frame in a two-dimensional coordinate system with a center of the image frame as an origin;
selecting a plurality of points from a range limited by the coordinates corresponding to each visual target in the image frame, so as to establish positional representation of each visual target in a two-dimensional plane; and
flattening the established positional representation into a position feature vector with a preset number of dimensions, and then splicing the position feature vector with the first feature vector of each visual target.

### Claim 13 (depends on 9)

The electronic device according to claim 9, wherein for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs to generate a second feature vector of each visual target comprises:
for each image frame in the video, inputting the first feature vector of the visual target and the identification information of the image frame to which the visual target belongs into a pre-created neural network model; and
taking an output result of the neural network model as the second feature vector of the visual target,
wherein the neural network model comprises a plurality of decoder blocks, and each decoder block comprises a self-attention layer and a feed-forward layer.

### Claim 14 (depends on 9)

The electronic device according to claim 9, wherein initiating active interaction comprises:
acquiring feature vectors corresponding respectively to a plurality of multi-modal interaction modes;
determining, from the plurality of multi-modal interaction modes, a multi-modal interaction mode to be employed when the active interaction is initiated, according to the third feature vector of the preset image frame and the feature vectors corresponding respectively to the plurality of multi-modal interaction modes; and
performing the active interaction using the multi-modal interaction mode determined.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein acquiring the feature vectors corresponding respectively to the plurality of multi-modal interaction modes comprises:
acquiring a semantic vector for characterizing each interaction statement by a pre-trained language model;
acquiring one-hot codes for characterizing each interaction expression and each interaction action respectively;
constructing different multi-modal interaction modes using different interaction languages, interaction expressions and interaction actions; and
splicing the semantic vector and the one-hot codes corresponding to each multi-modal interaction mode, and inputting the splicing result into a fully-connected network, and taking an output result as the feature vector corresponding to each multi-modal interaction mode.

### Claim 16 (depends on 14)

The electronic device according to claim 14, wherein the determining, from the plurality of multi-modal interaction modes, the multi-modal interaction mode employed when the active interaction is initiated according to the third feature vector of the preset image frame and the feature vectors corresponding respectively to the plurality of multi-modal interaction modes comprises:
multiplying the third feature vector of the preset image frame respectively by the feature vectors corresponding respectively to the plurality of multi-modal interaction modes, and inputting the multiplication results into a pre-trained second discriminant model; and
determining the multi-modal interaction mode employed when the active interaction is initiated according to an output result of the second discriminant model.

### Claim 17

A non-transitory computer readable storage medium comprising instructions, which, when executed by a computer, cause the computer to carry out an active interaction method, which comprises:
acquiring a video shot in real time;
extracting a visual target from each image frame of the video, and generating a first feature vector of each visual target;
for each image frame of the video, fusing the first feature vector of each visual target and identification information of the image frame to which the visual target belongs, to generate a second feature vector of each visual target;
aggregating the second feature vectors with the same identification information respectively to generate a third feature vector corresponding to each image frame; and
initiating active interaction in response to determining that the active interaction is to be performed according to the third feature vector of a preset image frame.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein extracting the visual target from each image frame of the video, and generating the first feature vector of each visual target comprises:
annotating the visual target according to a feature map of each image frame;
extracting a feature-map sub-region corresponding to the visual target from the feature map, and converting the feature-map sub-region into a sub-feature-map with a preset size; and
performing a global average pooling operation on each sub-feature-map, so as to obtain the first feature vector corresponding to each visual target.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium according to claim 18, wherein the method further comprises:
after the first feature vector of each visual target is obtained, for each visual target, determining its coordinates at the upper left corner and its coordinates at the lower right corner in the image frame in a two-dimensional coordinate system with a center of the image frame as an origin;
selecting a plurality of points from a range limited by the coordinates corresponding to each visual target in the image frame, so as to establish positional representation of each visual target in a two-dimensional plane; and
flattening the established positional representation into a position feature vector with a preset number of dimensions, and then splicing the position feature vector with the first feature vector of each visual target.

### Claim 20 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein initiating active interaction comprises:
acquiring feature vectors corresponding respectively to a plurality of multi-modal interaction modes;
determining, from the plurality of multi-modal interaction modes, a multi-modal interaction mode to be employed when the active interaction is initiated, according to the third feature vector of the preset image frame and the feature vectors corresponding respectively to the plurality of multi-modal interaction modes; and
performing the active interaction using the multi-modal interaction mode determined.
