Visual speech recognition method and system, storage medium and electronic equipment

Through context modeling and low-rank adapter training of large language models, the problem of the impact of homonyms in visual speech recognition is solved, and the recognition effect and efficiency are improved, especially when there is little data.

CN118609557APending Publication Date: 2024-09-06SHANGHAI MIDU DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410639539.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In visual speech recognition, homophones lead to poor speech recognition due to the ambiguous nature of lip movements, affecting recognition accuracy.

Method used

Using the context modeling capabilities of the large language model, we construct visual speech recognition and translation prompt texts, perform encoding and deduplication processing, combine with low-rank adapters for training, and input visual content to improve the recognition effect.

Benefits of technology

It effectively improves the visual speech recognition effect and improves the accuracy and efficiency of lip movement recognition, especially when using less training labeled data, achieving more efficient recognition and translation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609557A
    Figure CN118609557A
Patent Text Reader

Abstract

The invention provides a visual speech recognition method and system, a storage medium and electronic equipment. The method comprises the following steps: constructing a visual speech recognition prompt text and a visual speech translation prompt text; encoding the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text; encoding the input visual content to be identified to obtain a visual content code; performing de-duplication processing on the visual content code to obtain a de-duplication visual content code; and inputting the first coding prompt text, the second coding prompt text and the de-duplicated visual content code into a large language model to obtain a visual speech recognition result. According to the visual speech recognition method and system, the storage medium and the electronic equipment, visual speech recognition is realized based on the context modeling capability of the large language model, and the visual speech recognition effect is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of deep learning, and in particular relates to a visual speech recognition method, system, storage medium and electronic device. Background Art

[0002] Audio-visual recognition (AVR) is considered as another solution to complete speech recognition tasks when audio is damaged; it is also a visual recognition method used to verify speakers in multi-person scenarios. Visual speech recognition uses information extracted from one modality to improve the recognition ability of another modality by filling in the missing information.

[0003] For example, lip reading recognition uses visual speech recognition technology, which continuously identifies faces from images, determines who is speaking, extracts the person's continuous lip shape change features, and then inputs the continuously changing features into the lip reading recognition model to identify the pronunciation corresponding to the speaker's mouth shape. Then, based on the identified pronunciation, the most likely natural language sentence is calculated.

[0004] However, in visual speech recognition, the ambiguous nature of lip movements results in poor speech recognition results. For example, homophones, which are words with the same lip movements but different sounds, can severely affect speech recognition results. Summary of the invention

[0005] In view of the shortcomings of the prior art mentioned above, the purpose of the present invention is to provide a visual speech recognition method, system, storage medium and electronic device, which realize visual speech recognition based on the context modeling capability of a large language model, thereby effectively improving the visual speech recognition effect.

[0006] In a first aspect, the present invention provides a visual speech recognition method, the method comprising the following steps: constructing a visual speech recognition prompt text and a visual speech translation prompt text, the visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation; encoding the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text; encoding the input visual content to be recognized to obtain a visual content code; deduplicating the visual content code to obtain a deduplicated visual content code; inputting the first encoded prompt text, the second encoded prompt text and the deduplicated visual content code into a large language model to obtain a visual speech recognition result.

[0007] In an implementation of the first aspect, the visual speech recognition prompt text and the visual speech translation prompt text are encoded based on a first encoding module, and the input visual content to be recognized is encoded based on a second encoding module; the first encoding module and the second encoding module are both fixed-parameter encoding models.

[0008] In an implementation of the first aspect, performing deduplication processing on the visual content code to obtain the deduplicated visual content code includes:

[0009] Repeated words or letters in the visual content code are removed.

[0010] In an implementation of the first aspect, during the training of the large language model, a low-rank adapter is used for training.

[0011] In a second aspect, the present invention provides a visual speech recognition system, the system comprising a construction module, a first encoding module, a second encoding module, a deduplication module and a recognition module;

[0012] The construction module is used to construct a visual speech recognition prompt text and a visual speech translation prompt text, wherein the visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation;

[0013] The first encoding module is used to encode the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text;

[0014] The second encoding module is used to encode the input visual content to be recognized to obtain the visual content code;

[0015] The deduplication module is used to perform deduplication processing on the visual content code to obtain a deduplication visual content code;

[0016] The recognition module is used to input the first encoded prompt text, the second encoded prompt text and the deduplicated visual content encoding into a large language model to obtain a visual speech recognition result.

[0017] In an implementation of the second aspect, the visual speech recognition prompt text and the visual speech translation prompt text are encoded based on a first encoding module, and the input visual content to be recognized is encoded based on a second encoding module; the first encoding module and the second encoding module are both fixed-parameter encoding models.

[0018] In an implementation of the second aspect, performing deduplication processing on the visual content code to obtain the deduplication visual content code includes:

[0019] Repeated words or letters in the visual content code are removed.

[0020] In an implementation of the second aspect, during the training of the large language model, a low-rank adapter is used for training.

[0021] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;

[0022] The memory is used to store computer programs;

[0023] The processor is used to execute the computer program stored in the memory so that the electronic device performs the above-mentioned visual speech recognition method.

[0024] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned visual speech recognition method when executed by an electronic device.

[0025] As described above, the visual speech recognition method, system, storage medium and electronic device of the present invention have the following beneficial effects:

[0026] (1) Visual speech recognition is realized based on the context modeling capability of the large language model, which effectively improves the visual speech recognition effect;

[0027] (2) Low-Rank Adaptation (LoRA) enables efficient training of large language models and more effective recognition and translation of lip movements using less labeled training data;

[0028] (3) High degree of intelligence and great practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention;

[0030] Figure 2 Shown is a flow chart of a visual speech recognition method in one embodiment of the present invention;

[0031] Figure 3 It is a schematic diagram showing the structure of a visual speech recognition method in one embodiment of the present invention;

[0032] Figure 4 Shown is a schematic diagram of the structure of a visual speech recognition system in one embodiment of the present invention;

[0033] Figure 5 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION

[0034] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0035] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0036] The following embodiments of the present invention provide a visual speech recognition method, which can be applied to Figure 1 The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.

[0037] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).

[0038] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).

[0039] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0040] like Figure 2 and Figure 3 As shown, in one embodiment, the visual speech recognition method of the present invention includes steps S1 to S5.

[0041] Step S1: constructing a visual speech recognition prompt text and a visual speech translation prompt text, wherein the visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation.

[0042] Specifically, since visual speech processing is divided into two subtasks, visual speech recognition and visual speech translation, the present invention generates the visual speech recognition prompt text and the visual speech translation prompt text through prompt. Prompt refers to text or instructions that provide input to the model to guide it to generate specific output. It is a text paragraph provided by the user when interacting with the model, which is used to describe the information, answers, text, etc. that the user wants to obtain from the model. The purpose of prompt is to guide the model to produce the required response in order to better control the generated output.

[0043] For example, the visual speech recognition prompt text is: recognize this speech in English. The visual speech translation prompt text is: translate this English speech.

[0044] Step S2: Encode the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text.

[0045] Specifically, the visual speech recognition prompt text and the visual speech translation prompt text are respectively input into a first encoding module, thereby respectively obtaining the first encoded prompt text and the second encoded prompt text.

[0046] Step S3: Encode the input visual content to be recognized to obtain the visual content code.

[0047] Specifically, the input visual content to be recognized is input into the second encoding module, thereby obtaining the visual content encoding. Through the above encoding, the visual features of the input visual content are effectively reduced, and the complexity is reduced.

[0048] Step S4: perform deduplication processing on the visual content code to obtain deduplication visual content code.

[0049] Specifically, repeated words or letters in the visual content code are deduplicated to obtain the deduplicated visual content code, thereby effectively reducing redundant information.

[0050] Step S5: input the first encoded prompt text, the second encoded prompt text and the deduplicated visual content encoding into a large language model to obtain a visual speech recognition result.

[0051] Specifically, Large Language Models (LLMs) are AI models designed to understand and generate human language. They are trained on large amounts of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, and more. LLMs are characterized by their large size and contain billions of parameters, which help them learn complex patterns in language data. These models are often based on deep learning architectures such as Transformers, which helps them achieve impressive performance on various NLP tasks.

[0052] Among them, the large language model is a pre-trained model, which can output the speech recognition result corresponding to the visual content to be recognized according to the input first coding prompt text, the second coding prompt text and the deduplicated visual content coding. It should be noted that during the training process of the large language model, the first coding module and the second coding module both adopt parameter fixed coding models and do not participate in the training of the large language model. That is to say, during the training process, only the parameters of the large language model are adjusted, and the models and algorithms used in other steps are fixed. In addition, the present invention uses a low-rank adapter to train the large language model, thereby simplifying the training process of the large language model.

[0053] In the present invention, the first encoded prompt text, the second encoded prompt text and the deduplicated visual content are encoded and input into a large language model, and the large language model can output a visual speech recognition result corresponding to the input visual content.

[0054] The protection scope of the visual speech recognition method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.

[0055] An embodiment of the present invention further provides a visual speech recognition system, which can implement the visual speech recognition method described in the present invention. However, the implementation device of the visual speech recognition system described in the present invention includes but is not limited to the structure of the visual speech recognition system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.

[0056] like Figure 4 As shown, in one embodiment, the visual speech recognition system of the present invention includes a construction module 41 , a first encoding module 42 , a second encoding module 43 , a deduplication module 44 and a recognition module 45 .

[0057] The construction module 41 is used to construct a visual speech recognition prompt text and a visual speech translation prompt text. The visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation.

[0058] The first encoding module 42 is connected to the construction module 41 and is used to encode the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text.

[0059] The second encoding module 43 is used to encode the input visual content to be recognized to obtain the visual content code.

[0060] The deduplication module 44 is connected to the second encoding module 43 and is used to perform deduplication processing on the visual content code to obtain deduplication visual content code.

[0061] The recognition module 45 is connected to the first encoding module 42 and the deduplication module 44, and is used to input the first encoded prompt text, the second encoded prompt text and the deduplication visual content encoding into a large language model to obtain a visual speech recognition result.

[0062] Among them, the structures and principles of the construction module 41, the first encoding module 42, the second encoding module 43, the deduplication module 44 and the recognition module 45 correspond one by one to the steps in the above-mentioned visual speech recognition method, so they are not repeated here.

[0063] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0064] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0065] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0066] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.

[0067] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.

[0068] The memory is used to store computer programs.

[0069] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.

[0070] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned visual speech recognition method.

[0071] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0072] like Figure 5 As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 51, a memory 52, and a bus 53 connecting different system components (including the memory 52 and the processing unit 51).

[0073] Bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0074] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0075] The memory 52 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 523 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0076] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in the memory 52, such program modules 5241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 5241 generally perform the functions and / or methods of the embodiments described herein.

[0077] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 5 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0078] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A visual speech recognition method, characterized in that: The method comprises the following steps: Constructing a visual speech recognition prompt text and a visual speech translation prompt text, wherein the visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation; Encode the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text; Encode the input visual content to be recognized to obtain the visual content code; Performing deduplication processing on the visual content code to obtain deduplication visual content code; The first encoded prompt text, the second encoded prompt text and the deduplicated visual content encoding are input into a large language model to obtain a visual speech recognition result.

2. The visual speech recognition method according to claim 1, characterized in that: Encoding the visual speech recognition prompt text and the visual speech translation prompt text based on a first encoding module, and encoding the input visual content to be recognized based on a second encoding module; The first encoding module and the second encoding module are both fixed-parameter encoding models.

3. The visual speech recognition method according to claim 1, characterized in that: Performing deduplication processing on the visual content code to obtain the deduplication visual content code includes: Repeated words or letters in the visual content code are removed.

4. The visual speech recognition method according to claim 1, characterized in that: During the training process of the large language model, a low-rank adapter is used for training.

5. A visual speech recognition system, characterized in that: The system includes a construction module, a first encoding module, a second encoding module, a deduplication module and an identification module; The construction module is used to construct a visual speech recognition prompt text and a visual speech translation prompt text, wherein the visual speech recognition prompt text is used to prompt visual speech recognition, and the visual speech translation prompt text is used to prompt visual speech translation; The first encoding module is used to encode the visual speech recognition prompt text and the visual speech translation prompt text to obtain a first encoded prompt text and a second encoded prompt text; The second encoding module is used to encode the input visual content to be recognized to obtain the visual content code; The deduplication module is used to perform deduplication processing on the visual content code to obtain a deduplication visual content code; The recognition module is used to input the first encoded prompt text, the second encoded prompt text and the deduplicated visual content encoding into a large language model to obtain a visual speech recognition result.

6. The visual speech recognition system according to claim 5, characterized in that: Encoding the visual speech recognition prompt text and the visual speech translation prompt text based on a first encoding module, and encoding the input visual content to be recognized based on a second encoding module; The first encoding module and the second encoding module are both fixed-parameter encoding models.

7. The visual speech recognition system according to claim 5, characterized in that: Performing deduplication processing on the visual content code to obtain the deduplication visual content code includes: Repeated words or letters in the visual content code are removed.

8. The visual speech recognition system according to claim 5, characterized in that: During the training process of the large language model, a low-rank adapter is used for training.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic device executes the visual speech recognition method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the visual speech recognition method according to any one of claims 1 to 4 is implemented.