Model training method, lip speech recognition method, device, electronic equipment and vehicle
By constructing a lip-reading recognition model with 3D convolutional modules, the problem of drivers with language barriers having difficulty controlling vehicles through lip reading has been solved, achieving highly accurate lip reading recognition and vehicle control, thus improving driving safety and convenience.
Patent Information
- Application Number
- CN202311488091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-09
AI Technical Summary
Existing in-vehicle voice control systems are not user-friendly for drivers with speech impairments, making it difficult to control the vehicle through lip reading.
A lip-reading recognition model is constructed, which includes a prediction module and multiple sequentially connected 3D convolutional modules. Image feature extraction and lip-reading recognition are performed using training sample image frame sequences, and the lip-reading recognition results are used to assist vehicle control.
It improves the accuracy of lip reading, enabling drivers with speech impairments to control their vehicles via lip reading, thereby enhancing driving safety and human-vehicle interaction efficiency.
Smart Images

Figure CN117539347B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control, and more specifically, to a model training method, lip reading method, device, electronic device, vehicle, and computer-readable storage medium in the field of vehicle control. Background Technology
[0002] With the rapid development of the automotive industry, in-vehicle driver assistance systems are gradually becoming standard equipment in vehicles. These systems offer voice recognition, allowing drivers to control the vehicle via voice commands to perform actions such as changing music, adjusting the air conditioning, and controlling the navigation system, ensuring that the driver's hands are always on the wheel and improving driving safety. However, drivers with speech impairments may struggle to clearly issue voice commands or may be completely unable to speak, making voice control functions unfriendly and difficult to implement. Therefore, how to assist drivers with speech impairments in controlling the vehicle through lip reading has become a pressing issue that needs to be addressed. Summary of the Invention
[0003] This application provides a model training method, a lip reading recognition method, a device, an electronic device, a vehicle, and a computer-readable storage medium. The lip reading recognition model trained by the model training method can perform lip reading recognition and use the lip reading recognition results to assist drivers with speech impairments in controlling the vehicle through lip reading.
[0004] Firstly, a model training method is provided, comprising: acquiring a sequence of sample image frames containing lips; wherein the sample image frame sequence is labeled with preset character information related to lip reading; inputting the sample image frame sequence into a pre-constructed lip reading recognition model; wherein the lip reading recognition model includes a prediction module and multiple sequentially connected 3D convolutional modules, the output of the last 3D convolutional module is connected to the input of the prediction module, and for any two adjacent 3D convolutional modules, the output of the preceding 3D convolutional module is the input of the following 3D convolutional module; The sample image frame sequence is sequentially processed by multiple 3D convolutional modules to extract image features, and the target feature map sequence corresponding to the sample image frame sequence is output by the last 3D convolutional module. The number of image channels and the feature map size information of the feature map sequences output by the first to the last 3D convolutional module increase sequentially. The prediction module predicts the character information represented by lip movements corresponding to the target feature map sequence to obtain predicted character information. The lip movement recognition model is trained based on the predicted character information and the preset character information.
[0005] This application embodiment pre-constructs a lip-reading recognition model including a prediction module and multiple sequentially connected 3D convolutional modules. During model training, a sequence of sample image frames containing lips and pre-defined character information represented by lip movements is input into the lip-reading recognition model. Multiple 3D convolutional modules sequentially extract image features from the sample image frame sequence, and the last 3D convolutional module outputs a target feature map sequence. The prediction module predicts the character information represented by lip movements corresponding to the target feature map sequence, thus obtaining the predicted character information. The technical solution of training the lip-reading recognition model based on the predicted character information and the pre-defined character information realizes the training of the lip-reading recognition model. Since the lip-reading recognition model includes 3D convolutional modules, 3D convolution can simultaneously consider the temporal and spatial information in the video sequence. Furthermore, since the task of lip-reading recognition is a spatiotemporally continuous task, by using a model including 3D convolutional modules as the lip-reading recognition model, subtle changes and continuous movements of the lips can be captured more accurately, thereby improving the accuracy of lip-reading recognition. After the lip-reading recognition model is trained, it can not only help people with language impairments to communicate fluently with others, but also help them control smart devices such as home appliances and vehicles through lip reading, bringing great convenience to their lives and work.
[0006] In addition, the network used in this application does not use a residual design structure. Since the number of network layers is small, there is no need to consider the gradient vanishing problem, which greatly improves inference efficiency. Moreover, the network design is a lightweight design, which is more convenient for vehicle deployment.
[0007] In conjunction with the first aspect, in some possible implementations, the plurality of 3D convolutional modules include: a first 3D convolutional module, a second 3D convolutional module, and a third 3D convolutional module, wherein the output of the first 3D convolutional module is the input of the second 3D convolutional module, and the output of the second 3D convolutional module is the input of the third 3D convolutional module; the step of sequentially extracting image features from the sample image frame sequence using the plurality of 3D convolutional modules, and outputting the target feature map sequence corresponding to the sample image frame sequence by the last 3D convolutional module, includes: using the first 3D convolutional module to extract image features from the sample image frame sequence to obtain a first feature image sequence; using the second 3D convolutional module to extract image features from the first feature image sequence... Image features are extracted from the feature image sequence to obtain a second feature image sequence; wherein the number of feature maps included in the second feature image sequence is less than the number of feature maps included in the first feature image sequence; the second feature image sequence is then subjected to image feature extraction using the third 3D convolution module to obtain the target feature image sequence; wherein the number of image channels corresponding to the target feature image sequence, the second feature image sequence, and the first feature image sequence increases sequentially, and the feature map size information corresponding to the target feature image sequence, the second feature image sequence, and the first feature image sequence decreases sequentially.
[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, before using the third 3D convolution module to extract image features from the second feature image sequence to obtain the target feature image sequence, the model training method further includes: obtaining a target value from a preset value set; adjusting the output parameters of the third 3D convolution module to the target value; wherein, the preset value set includes multiple different values, and the output parameters are used to adjust the number of feature maps in the feature map sequence output by the third 3D convolution module.
[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of using the prediction module to predict the character information represented by the lip movements corresponding to the target feature map sequence to obtain the predicted character information includes: inputting the target feature map sequence into the prediction module, and having the prediction module output multiple candidate character information represented by the lip movements corresponding to the target feature map sequence; wherein each of the multiple candidate character information carries a probability value; determining the maximum probability value from the probability values carried by each of the multiple candidate character information; and determining the candidate character information corresponding to the maximum probability value among the multiple candidate character information as the predicted character information.
[0010] In combination with the first aspect and the above implementation methods, in some possible implementation methods, for any 3D convolution module among the plurality of 3D convolution modules, the 3D convolution module includes a 3D convolution layer, a nonlinear activation function layer and a 3D pooling layer, and the prediction module includes a first fully connected layer, a nonlinear activation function layer, a fine-tuning layer, a second fully connected layer and a normalization function layer.
[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, obtaining the sample image frame sequence containing lips includes: obtaining a sample video containing a face; performing frame extraction processing on the sample video to obtain a sequence of image frames to be processed; and cropping the lip region map included in each frame of the sequence of image frames to be processed to obtain the sample image frame sequence.
[0012] Secondly, a lip-reading recognition method is provided, comprising: acquiring a video containing a user's lips; inputting the video into a pre-trained lip-reading recognition model, wherein the lip-reading recognition model outputs at least one set of candidate character information; wherein the lip-reading recognition model is trained according to the model training method, each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value; for each set of candidate character information, determining the candidate character information corresponding to the maximum probability value in each set of candidate character information as the target character information; and combining the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip-reading recognition result corresponding to the video.
[0013] This application embodiment employs a technical solution that involves acquiring a video containing a user's lips, inputting the video into a pre-trained lip-reading model, and having the lip-reading model output at least one set of candidate character information. Each set of candidate character information includes multiple candidate character information, each carrying a probability value. For each set of candidate character information, the candidate character information corresponding to the highest probability value in each set is determined as the target character information. The target character information corresponding to each of the at least one set of candidate character information is combined in chronological order to obtain the lip-reading result corresponding to the video. This solution realizes the application of the trained lip-reading model. Through the lip-reading model, lip movements can be recognized, which can not only assist people with language impairments in communicating fluently with others, but also assist them in controlling smart devices such as home appliances and vehicles through lip reading, bringing great convenience to the lives and work of people with language impairments.
[0014] In conjunction with the second aspect, in some possible implementations, after combining the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip reading result corresponding to the video, the lip reading method further includes: generating vehicle control commands based on the lip reading results; and performing vehicle control based on the vehicle control commands.
[0015] Lip reading models can identify a driver's lip movements. Based on the lip reading results, the driver's intention to control the vehicle can be analyzed in real time, and the vehicle can be controlled to perform corresponding operations. In this way, the driver can control the vehicle simply by issuing verbal commands without any hand operations or additional interactions, which improves driving safety and the efficiency of human-vehicle interaction.
[0016] Thirdly, a model training apparatus is provided, the model training apparatus comprising:
[0017] A sample acquisition module is used to acquire a sequence of sample image frames containing lips; wherein the sample image frame sequence is labeled with preset character information related to lip reading.
[0018] A feature extraction module is used to input the sample image frame sequence into a pre-constructed lip-reading recognition model. The lip-reading recognition model includes a prediction module and multiple sequentially connected 3D convolutional modules. The output of the last 3D convolutional module is connected to the input of the prediction module. For any two adjacent 3D convolutional modules, the output of the preceding 3D convolutional module is the input of the following 3D convolutional module. Image features are extracted from the sample image frame sequence sequentially by the multiple 3D convolutional modules, and the last 3D convolutional module outputs the target feature map sequence corresponding to the sample image frame sequence. The number of image channels and the feature map size information corresponding to the feature map sequences output by the first to the last 3D convolutional module increase sequentially.
[0019] The result prediction module is used to predict the character information represented by the lip movements corresponding to the target feature map sequence, and obtain the predicted character information.
[0020] The model training module is used to train the lip reading recognition model based on the predicted character information and the preset character information.
[0021] In conjunction with the third aspect, in some possible implementations, the plurality of 3D convolutional modules include: a first 3D convolutional module, a second 3D convolutional module, and a third 3D convolutional module, wherein the output of the first 3D convolutional module is the input of the second 3D convolutional module, and the output of the second 3D convolutional module is the input of the third 3D convolutional module; the feature extraction module is specifically used to extract image features from the sample image frame sequence using the first 3D convolutional module to obtain a first feature image sequence; to extract image features from the first feature image sequence using the second 3D convolutional module to obtain a second feature image sequence; wherein the number of feature maps included in the second feature image sequence is less than the number of feature maps included in the first feature image sequence; and to extract image features from the second feature image sequence using the third 3D convolutional module to obtain the target feature image sequence; wherein the number of image channels corresponding to the target feature image sequence, the number of image channels corresponding to the second feature image sequence, and the number of image channels corresponding to the first feature image sequence increase sequentially, and the feature map size information corresponding to the target feature image sequence, the feature map size information corresponding to the second feature image sequence, and the feature map size information corresponding to the first feature image sequence decrease sequentially.
[0022] In conjunction with the third aspect and the above implementation methods, in some possible implementations, the model training device further includes:
[0023] A parameter adjustment unit is used to obtain a target value from a preset set of values; and adjust the output parameters of the third 3D convolution module to the target value; wherein, the preset set of values includes multiple different values, and the output parameters are used to adjust the number of feature maps in the feature map sequence output by the third 3D convolution module.
[0024] In conjunction with the third aspect and the above implementation methods, in some possible implementation methods, the result prediction module is specifically used to input the target feature map sequence into the prediction module, and the prediction module outputs multiple candidate character information represented by lip readings corresponding to the target feature map sequence; wherein, each of the multiple candidate character information carries a probability value; the maximum probability value is determined from the probability values carried by each of the multiple candidate character information; and the candidate character information corresponding to the maximum probability value among the multiple candidate character information is determined as the predicted character information.
[0025] In combination with the third aspect and the above implementation methods, in some possible implementation methods, for any 3D convolution module among the plurality of 3D convolution modules, the 3D convolution module includes a 3D convolution layer, a nonlinear activation function layer and a 3D pooling layer, and the prediction module includes a first fully connected layer, a nonlinear activation function layer, a fine-tuning layer, a second fully connected layer and a normalization function layer.
[0026] In conjunction with the third aspect and the above implementation methods, in some possible implementation methods, the sample acquisition module is specifically used to acquire a sample video containing a face; perform frame extraction processing on the sample video to obtain a sequence of image frames to be processed; and crop the lip region map included in each frame of the sequence of image frames to be processed to obtain the sample image frame sequence.
[0027] Fourthly, a lip-reading recognition device is provided, the lip-reading recognition device comprising:
[0028] The video acquisition module is used to acquire videos containing the user's lips;
[0029] The video processing module is used to input the video into a pre-trained lip reading recognition model, and the lip reading recognition model outputs at least one set of candidate character information; wherein, the lip reading recognition model is trained according to the model training method, and each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value.
[0030] The information selection module is used to determine the candidate character information corresponding to the maximum probability value in each group of candidate character information in the at least one group of candidate character information as the target character information.
[0031] The information combination module is used to combine the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip reading recognition result corresponding to the video.
[0032] In conjunction with the fourth aspect, in some possible implementations, the lip-reading device further includes:
[0033] The control unit is used to generate vehicle control commands based on the lip reading results and to perform vehicle control based on the vehicle control commands.
[0034] Fifthly, an electronic device is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the electronic device to execute the model training method in the first aspect or any possible implementation thereof, or to execute the lip reading recognition method in the second aspect or any possible implementation thereof.
[0035] Sixthly, a vehicle is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the electronic device to perform the lip-reading recognition method of the second aspect or any possible implementation thereof.
[0036] In a seventh aspect, a computer-readable storage medium is provided, which stores computer program code that, when executed on a computer, causes the computer to perform the model training method in the first aspect or any possible implementation thereof, or to perform the lip reading recognition method in the second aspect or any possible implementation thereof. Attached Figure Description
[0037] Figure 1 A schematic flowchart of a model training method provided in an embodiment of this application is shown;
[0038] Figure 2 An exemplary structural diagram of the lip-reading recognition model provided in an embodiment of this application is shown;
[0039] Figure 3 This illustration shows yet another exemplary structural diagram of the lip-reading recognition model provided in an embodiment of this application;
[0040] Figure 4 A schematic flowchart of a lip-reading recognition method provided in an embodiment of this application is shown;
[0041] Figure 5 This paper shows a schematic diagram of the structure of a model training device provided in an embodiment of this application;
[0042] Figure 6 This illustration shows a schematic diagram of the structure of a lip-reading recognition device provided in an embodiment of this application;
[0043] Figure 7 This illustration shows a structural schematic diagram of an electronic device provided in an embodiment of this application;
[0044] Figure 8 A schematic diagram of the structure of a vehicle provided in an embodiment of this application is shown. Detailed Implementation
[0045] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0046] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0047] The following is an embodiment of a model training method provided in this application.
[0048] Figure 1 A schematic flowchart of a model training method provided in an embodiment of this application is shown, such as... Figure 1 As shown, the model training method provided in this application embodiment is applied to electronic devices with computing power, such as computers. The model training method includes the following schemes:
[0049] In one exemplary embodiment, a lip-reading recognition model is pre-built, such as... Figure 2 As shown, Figure 2 This diagram illustrates an exemplary structural diagram of a lip-reading recognition model provided in an embodiment of this application. The lip-reading recognition model includes a prediction module and N sequentially connected 3D convolutional modules, where N is a positive integer greater than or equal to 3. The N 3D convolutional modules are the 1st 3D convolutional module, the 2nd 3D convolutional module, ..., the (N-1)th 3D convolutional module, and the Nth 3D convolutional module. The output of the last 3D convolutional module is connected to the input of the prediction module, that is, the output of the Nth 3D convolutional module is connected to the input of the prediction module. For any two adjacent 3D convolutional modules, the output of the preceding 3D convolutional module is the input of the following 3D convolutional module; for example, the output of one 3D convolutional module is the input of the second 3D convolutional module.
[0050] For any 3D convolutional module among N 3D convolutional modules, each 3D convolutional module includes a 3D convolutional layer, a non-linear activation function layer, and a 3D pooling layer, which are connected in sequence. The prediction module includes a first fully connected layer, a non-linear activation function layer, a fine-tuning layer, a second fully connected layer, and a normalization function layer, which are connected in sequence.
[0051] S110: Obtain a sequence of sample image frames containing the lips.
[0052] In one possible implementation, the above-mentioned method for obtaining a sequence of sample image frames containing lips includes the following scheme:
[0053] Obtain sample videos containing human faces;
[0054] The sample video is subjected to frame extraction to obtain a sequence of image frames to be processed;
[0055] The lip region image included in each frame of the image frame sequence to be processed is cropped to obtain the sample image frame sequence.
[0056] Sample videos containing human faces are acquired via a camera. Frame extraction is performed on these videos to obtain a sequence of image frames to be processed. The RetinaFace algorithm, known for its high accuracy and real-time performance, is used to detect key facial features within the sequence. This allows for accurate cropping of the mouth region from each frame. The cropped mouth image is then scaled to a preset height and width (e.g., 224 for both), resulting in the final sample image frame sequence. Frame extraction reduces data processing volume and improves computational efficiency.
[0057] The dataset includes multiple sample image frame sequences containing lips, which are used to train the lip-reading recognition model. Each sample image frame sequence includes multiple sample images containing lips, and each sample image frame sequence is labeled with preset character information representing lip reading. The preset character information is manually annotated on the sample image frame sequence beforehand. The preset character information includes single characters or strings. Characters include Chinese characters, numbers, English letters, pinyin, special symbols, calculation symbols, punctuation marks, etc. A single character is, for example, a single Chinese character, and a string refers to a combination of at least a single character, such as a Chinese word. This application uses a single Chinese character as an example and a Chinese word as an example for illustration.
[0058] S120: Input the sample image frame sequence into the pre-built lip reading recognition model, extract image features from the sample image frame sequence sequentially through the multiple 3D convolution modules, and output the target feature map sequence corresponding to the sample image frame sequence by the last 3D convolution module.
[0059] After obtaining the sample image frame sequence, it is input into the lip-reading recognition model. The input to the lip-reading recognition model is also the input to the first 3D convolutional module. N 3D convolutional modules sequentially extract image features from the sample image frame sequence. The last 3D convolutional module (the Nth 3D convolutional module) outputs the target feature map sequence corresponding to the sample image frame sequence. The feature map sequence output by the first 3D convolutional module serves as the input to the second 3D convolutional module, the feature map sequence output by the second 3D convolutional module serves as the input to the third 3D convolutional module, and so on. The feature map sequence output by the (N-1)th 3D convolutional module serves as the input to the Nth 3D convolutional module, and the Nth 3D convolutional module outputs the target feature map sequence. The number of image channels corresponding to the feature map sequences output by the first to the Nth 3D convolutional modules increases sequentially, while the feature map size information decreases sequentially. The feature map size information includes the image height and width; in this application, the image height and width are the same. The number of feature maps in the feature map sequences output by the first 3D convolutional module to the (N-1)th 3D convolutional module decreases sequentially, and the number of image channels corresponding to the sample image frame sequence is less than the number of image channels corresponding to the feature map sequence output by the first 3D convolutional module.
[0060] like Figure 3 As shown, Figure 3 This diagram illustrates another exemplary structural diagram of the lip-reading recognition model provided in this application embodiment. Multiple 3D convolutional modules include: a first 3D convolutional module 101, a second 3D convolutional module 102, and a third 3D convolutional module 103. The output of the first 3D convolutional module 101 is the input of the second 3D convolutional module 102, and the output of the second 3D convolutional module 102 is the input of the third 3D convolutional module 103. The input of the 3D convolutional layer in the first 3D convolutional module 101 is the input of the first 3D convolutional module. The input to module 101, which is the input to the lip-reading model, is connected to the 3D pooling layer in the first 3D convolutional module 101 and the 3D convolutional layer in the second 3D convolutional module 102. The 3D pooling layer in the second 3D convolutional module 102 is connected to the 3D convolutional layer in the third 3D convolutional module 103. The 3D pooling layer in the third 3D convolutional module 103 is connected to the first fully connected layer in the prediction module 104. The output of the normalization function layer in the prediction module 104 is the output of the lip-reading model. As shown in Table 1, Table 1 illustrates the design information of the lip-reading model.
[0061] Table 1
[0062]
[0063]
[0064] The input and output dimensions in Table 1 can be represented by A×B×H×W, where A represents the number of image channels, B represents the number of image frames included in the frame sequence, H represents the height of the image, and W represents the width of the image. Table 1 shows that the larger the layer number, the larger the number of image channels in the output dimension of the network layer, and the smaller the height and width of the image. The number of image frames corresponding to layers 1-8 gradually decreases.
[0065] The process of sequentially extracting image features from the sample image frame sequence using multiple 3D convolutional modules, and then outputting the target feature map sequence corresponding to the sample image frame sequence by the last 3D convolutional module, includes the following scheme:
[0066] The first 3D convolution module is used to extract image features from the sample image frame sequence to obtain a first feature image sequence.
[0067] The second 3D convolution module is used to extract image features from the first feature image sequence to obtain a second feature image sequence; wherein the number of feature maps included in the second feature image sequence is less than the number of feature maps included in the first feature image sequence.
[0068] The third 3D convolution module is used to extract image features from the second feature image sequence to obtain the target feature image sequence. The number of image channels corresponding to the target feature image sequence, the second feature image sequence, and the first feature image sequence increases sequentially, while the feature map size information corresponding to the target feature image sequence, the second feature image sequence, and the first feature image sequence decreases sequentially.
[0069] refer to Figure 3According to Table 1, the input size of the 3D convolutional layer in the first 3D convolutional module is 3×16×224×224, indicating that the sample image frame sequence includes 16 images, with 3 image channels, and each image has a height and width of 224. The first 3D convolutional module extracts image features from the sample image frame sequence. The 3D pooling layer in the first 3D convolutional module outputs the first feature image sequence, with a corresponding output size of 64×7×111×111, indicating that the first feature image sequence includes 7 images, with 64 image channels, and each image has a height and width of 111. The second 3D convolutional module extracts image features from the first feature image sequence. The second 3D convolutional module's 3D pooling layer outputs a second feature image sequence, with an output size of 128×2×54×54, indicating that the first feature image sequence includes two frames with 128 image channels and a height and width of 54 for each frame. The third 3D convolutional module extracts image features from the second feature image sequence, and its 3D pooling layer outputs a target feature image sequence, with an output size of 256×(T / / 8-3)×26×26, indicating that the first feature image sequence includes (T / / 8-3) frames with 256 image channels and a height and width of 26 for each frame. Here, T is an output parameter that can be adjusted to optimize the output interface of the third 3D convolutional module, thereby adjusting the number of feature maps in the output feature map sequence. T is a value greater than or equal to 32.
[0070] In one possible implementation, before using the third 3D convolution module to extract image features from the second feature image sequence to obtain the target feature image sequence, the model training method further includes the following scheme:
[0071] Obtain the target value from a preset set of values;
[0072] Adjust the output parameters of the third 3D convolution module to the target value.
[0073] The preset numerical set includes multiple different numerical values, and the minimum numerical value among the multiple numerical values is greater than or equal to 32. The determination of the output parameters of the third 3D convolution module includes: when training the lip reading recognition model each time, selecting a numerical value from the preset numerical set according to the size of the numerical value to obtain the target numerical value, and then adjusting the output parameters to the target numerical value to complete the adjustment of the output parameters.
[0074] S130: The prediction module is used to predict the character information represented by the lip movements corresponding to the target feature map sequence, and the predicted character information is obtained.
[0075] After obtaining the target feature map sequence, the target feature map sequence is input into the prediction module. The prediction module predicts the character information represented by the lip movements corresponding to the target feature map sequence to obtain the predicted character information. For example, the predicted character information is a single Chinese character.
[0076] In one possible implementation, the prediction module predicts the character information represented by the lip movements corresponding to the target feature map sequence to obtain the predicted character information, including the following schemes:
[0077] The target feature map sequence is input into the prediction module, and the prediction module outputs multiple candidate character information represented by lip reading corresponding to the target feature map sequence; wherein, each of the multiple candidate character information carries a probability value;
[0078] The maximum probability value is determined from the probability values carried by each of the multiple candidate character information;
[0079] The candidate character information corresponding to the highest probability value among the multiple candidate character information is determined as the predicted character information.
[0080] After obtaining the target feature map sequence, it is input into the first fully connected layer of the prediction module. The normalization function layer in the prediction module outputs multiple candidate character information represented by lip readings corresponding to the target feature map sequence. Each candidate character information carries a probability value. In fact, the normalization function layer outputs a 1×M matrix, where each value is a probability value. The size of M is determined based on the expected total number of characters, strings, or the sum of characters and strings that the lip reading recognition model can recognize. For example, if the character is a single Chinese character and the expected lip reading recognition model can recognize 120 Chinese characters, then M = 120. The 1×120 matrix contains 120 probability values, and the sum of these 120 probability values is 1. The index of each probability value in the 1×120 matrix corresponds to a Chinese character, thus obtaining 120 Chinese characters and their corresponding probability values.
[0081] After obtaining multiple candidate character information, the maximum probability value is determined from the probability values carried by each candidate character information. The candidate character information corresponding to the maximum probability value among the multiple candidate character information is determined as the predicted character information. That is, the candidate character information corresponding to the maximum probability value is the candidate character information with the highest confidence, thereby realizing the recognition of lip reading corresponding to the sample image frame sequence.
[0082] S140: Train the lip reading recognition model based on the predicted character information and the preset character information.
[0083] After obtaining the predicted character information, the error between the predicted character information and the preset character information is calculated using a loss function. It is then determined whether the error is less than or equal to a preset threshold. If the error is greater than the preset threshold, the lip reading recognition model is iteratively trained until the error is less than or equal to the preset threshold. At this point, the training of the model is stopped, and the lip reading recognition model is considered complete. The lip reading recognition model is then saved and can be applied in real-world scenarios.
[0084] This application embodiment pre-constructs a lip-reading recognition model including a prediction module and multiple sequentially connected 3D convolutional modules. During model training, a sequence of sample image frames containing lips and pre-defined character information represented by lip movements is input into the lip-reading recognition model. Multiple 3D convolutional modules sequentially extract image features from the sample image frame sequence, and the last 3D convolutional module outputs a target feature map sequence. The prediction module predicts the character information represented by lip movements corresponding to the target feature map sequence, thus obtaining the predicted character information. The technical solution of training the lip-reading recognition model based on the predicted character information and the pre-defined character information realizes the training of the lip-reading recognition model. Since the lip-reading recognition model includes 3D convolutional modules, 3D convolution can simultaneously consider the temporal and spatial information in the video sequence. Furthermore, since the task of lip-reading recognition is a spatiotemporally continuous task, by using a model including 3D convolutional modules as the lip-reading recognition model, subtle changes and continuous movements of the lips can be captured more accurately, thereby improving the accuracy of lip-reading recognition. After the lip-reading model is trained, it can not only assist people with speech impairments in fluent conversations, but also help them control smart devices such as home appliances and vehicles through lip reading, greatly improving their lives and work. For example, the lip-reading model can be applied to vehicles. After the vehicle's image acquisition device captures the user's lip video data, the lip-reading model recognizes the user's lip movements and controls the vehicle accordingly, such as navigation, air conditioning, and windshield wipers. This provides a comprehensive vehicle control experience for users with speech impairments, enhancing their driving experience.
[0085] The following is an embodiment of a lip reading method provided in this application.
[0086] Figure 4 The illustration shows a schematic flowchart of a lip-reading recognition method provided in an embodiment of this application, such as... Figure 4 As shown, the lip-reading recognition method provided in this application embodiment is applied to electronic devices or vehicles with computing power. The lip-reading recognition method includes the following scheme:
[0087] S210: Obtain a video containing the user's lips;
[0088] S220: Input the video into a pre-trained lip reading model, and have the lip reading model output at least one set of candidate character information; wherein, the lip reading model is trained according to the above-mentioned model training method, and each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value.
[0089] S230: For each set of candidate character information in the at least one set of candidate character information, determine the candidate character information corresponding to the maximum probability value in each set of candidate character information as the target character information;
[0090] S240: Combine the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip reading recognition result corresponding to the video.
[0091] In an exemplary embodiment, after the lip reading model is trained, it can be applied to a vehicle. After the lip reading model is configured in the vehicle's system, the vehicle can recognize the lip reading of the driver and passengers through the lip reading model. By performing lip reading recognition, it is possible for drivers with language impairments to control the vehicle and for drivers with language impairments to communicate with passengers without barriers. For example, when a lip-reading model is applied to a vehicle, if a driver with a speech impediment uses their mouth to express what they want to say, the in-vehicle camera can capture video containing the driver's lips. This video is then input into the lip-reading model, which divides the video into at least one short video in chronological order. Each short video is then processed by frame extraction to obtain at least one sequence of image frames containing lips. The model then predicts the lip movements corresponding to each of these image frame sequences and outputs at least one set of candidate character information. Each set of candidate character information includes multiple candidate character information, each carrying a probability value. After obtaining at least one set of candidate character information, the candidate character information corresponding to the highest probability value in each set is determined as the target character information. Finally, the target character information corresponding to each of the at least one set of candidate character information is combined in chronological order to obtain the lip-reading result corresponding to the video.
[0092] For example, when the characters are individual Chinese characters, the video is divided into 4 short videos, and frame extraction processing is performed on each short video to obtain 4 image frame sequences containing lips. After being arranged in chronological order, the sequences are Sequence 1, Sequence 2, Sequence 3, and Sequence 4. The lipreading corresponding to each of Sequence 1 to Sequence 4 is predicted to obtain 4 groups of alternative Chinese character information, which are the first group of alternative Chinese character information, the second group of alternative Chinese character information, the third group of alternative Chinese character information, and the fourth group of alternative Chinese character information. The alternative character information corresponding to the maximum probability value in the first group of alternative Chinese character information is "qu", the alternative character information corresponding to the maximum probability value in the second group of alternative Chinese character information is "na", the alternative character information corresponding to the maximum probability value in the third group of alternative Chinese character information is "li", and the alternative character information corresponding to the maximum probability value in the fourth group of alternative Chinese character information is "ya". Then, the target Chinese character information corresponding to each of the four groups of alternative Chinese character information is "qu", "na", "li", and "ya" respectively. After being combined in chronological order, the obtained lipreading recognition result is "qu na li ya".
[0093] The embodiments of the present application adopt the technical solution of acquiring a video containing the user's lips, inputting the video into a pre-trained lipreading recognition model, outputting at least one group of alternative character information by the lipreading recognition model, each group of alternative character information includes a plurality of alternative character information, each of the plurality of alternative character information carries a probability value, for each group of alternative character information in the at least one group of alternative character information, determining the alternative character information corresponding to the maximum probability value in each group of alternative character information as target character information, and combining the target character information corresponding to each of the at least one group of alternative character information in chronological order to obtain the lipreading recognition result corresponding to the video, which realizes the application of the trained lipreading recognition model, and the lipreading recognition model can recognize lipreading, which can not only assist people with language impairments to have smooth conversations with others, but also assist people with language impairments to control devices with intelligent functions such as home appliances and vehicles through lipreading, bringing great convenience to the life and work of people with language impairments.
[0094] In a possible implementation manner, if the lipreading recognition model is applied to a vehicle's lipreading recognition system, after the target character information corresponding to each of the at least one group of alternative character information is combined in chronological order to obtain the lipreading recognition result corresponding to the video, the lipreading recognition method further includes the following solutions:
[0095] generating a vehicle control instruction according to the lipreading recognition result;
[0096] performing vehicle control according to the vehicle control instruction.
[0097] If the driver has a speech impediment, the vehicle's lip-reading system can recognize the driver's lip movements. The system then determines if the lip-reading is relevant to vehicle control. If relevant, it generates a control command and prompts the driver to execute it. Once the driver confirms, the system controls the vehicle accordingly. For example, if the lip-reading result is "turn on the air conditioner," which is relevant to vehicle control, a command to turn on the air conditioner is generated, prompting the driver to confirm. The driver then turns on the air conditioner. By incorporating a lip-reading model, the system can recognize the driver's lip movements and interpret their intentions in real time, controlling the vehicle to perform the corresponding actions. This allows the driver to control the vehicle simply by issuing verbal commands, eliminating the need for hand gestures or additional interaction, thus improving driving safety and the efficiency of human-vehicle interaction.
[0098] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0099] Figure 5 This application provides a schematic diagram of the structure of a model training device according to an embodiment of the present application. Figure 5 As shown, the model training device 500 includes:
[0100] The sample acquisition module 510 is used to acquire a sequence of sample image frames containing lips; wherein the sample image frame sequence is labeled with preset character information related to lip reading.
[0101] The feature extraction module 520 is used to input the sample image frame sequence into a pre-constructed lip-reading recognition model. The lip-reading recognition model includes a prediction module and multiple sequentially connected 3D convolutional modules. The output of the last 3D convolutional module is connected to the input of the prediction module. For any two adjacent 3D convolutional modules, the output of the preceding module is the input of the following module. Image features are extracted from the sample image frame sequence sequentially by the multiple 3D convolutional modules, and the last 3D convolutional module outputs the target feature map sequence corresponding to the sample image frame sequence. The number of image channels and the feature map size information corresponding to the feature map sequences output by the first to the last 3D convolutional module increase sequentially.
[0102] The result prediction module 530 is used to predict the character information represented by the lip movements corresponding to the target feature map sequence using the prediction module, and obtain the predicted character information.
[0103] The model training module 540 is used to train the lip reading recognition model based on the predicted character information and the preset character information.
[0104] In one possible implementation, the plurality of 3D convolutional modules include: a first 3D convolutional module, a second 3D convolutional module, and a third 3D convolutional module, wherein the output of the first 3D convolutional module is the input of the second 3D convolutional module, and the output of the second 3D convolutional module is the input of the third 3D convolutional module; the feature extraction module 520 is specifically used to extract image features from the sample image frame sequence using the first 3D convolutional module to obtain a first feature image sequence; to extract image features from the first feature image sequence using the second 3D convolutional module to obtain a second feature image sequence; wherein the number of feature maps included in the second feature image sequence is less than the number of feature maps included in the first feature image sequence; and to extract image features from the second feature image sequence using the third 3D convolutional module to obtain the target feature image sequence; wherein the number of image channels corresponding to the target feature image sequence, the number of image channels corresponding to the second feature image sequence, and the number of image channels corresponding to the first feature image sequence increase sequentially, and the feature map size information corresponding to the target feature image sequence, the feature map size information corresponding to the second feature image sequence, and the feature map size information corresponding to the first feature image sequence decrease sequentially.
[0105] In one possible implementation, the model training device 500 further includes:
[0106] A parameter adjustment unit is used to obtain a target value from a preset set of values; and adjust the output parameters of the third 3D convolution module to the target value; wherein, the preset set of values includes multiple different values, and the output parameters are used to adjust the number of feature maps in the feature map sequence output by the third 3D convolution module.
[0107] In one possible implementation, the result prediction module 530 is specifically used to input the target feature map sequence into the prediction module, and the prediction module outputs multiple candidate character information represented by lip readings corresponding to the target feature map sequence; wherein each of the multiple candidate character information carries a probability value; the maximum probability value is determined from the probability values carried by each of the multiple candidate character information; and the candidate character information corresponding to the maximum probability value among the multiple candidate character information is determined as the predicted character information.
[0108] In one possible implementation, for any one of the plurality of 3D convolutional modules, the 3D convolutional module includes a 3D convolutional layer, a nonlinear activation function layer, and a 3D pooling layer, and the prediction module includes a first fully connected layer, a nonlinear activation function layer, a fine-tuning layer, a second fully connected layer, and a normalization function layer.
[0109] In one possible implementation, the sample acquisition module 510 is specifically used to acquire a sample video containing a face; perform frame extraction processing on the sample video to obtain a sequence of image frames to be processed; and crop the lip region map included in each frame of the sequence of image frames to be processed to obtain the sample image frame sequence.
[0110] It should be noted that the model training device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the model training method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the model training device and the model training method embodiments provided in the above embodiments belong to the same concept. Therefore, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the model training method of this application, which will not be repeated here.
[0111] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0112] Figure 6 This paper shows a schematic diagram of the structure of a lip-reading recognition device according to an embodiment of this application, as shown below. Figure 6 As shown, the lip-reading recognition device 600 includes:
[0113] Video acquisition module 610 is used to acquire video containing the user's lips;
[0114] The video processing module 620 is used to input the video into a pre-trained lip reading recognition model, and the lip reading recognition model outputs at least one set of candidate character information; wherein, the lip reading recognition model is trained according to the model training method, and each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value.
[0115] The information selection module 630 is used to determine the candidate character information corresponding to the maximum probability value in each group of candidate character information in the at least one group of candidate character information as the target character information.
[0116] The information combination module 640 is used to combine the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip reading recognition result corresponding to the video.
[0117] In one possible implementation, the lip-reading device 600 further includes:
[0118] The control unit is used to generate vehicle control commands based on the lip reading results and to perform vehicle control based on the vehicle control commands.
[0119] It should be noted that the lip-reading device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the lip-reading method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the lip-reading device and the lip-reading method embodiments provided in the above embodiments belong to the same concept. Therefore, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the lip-reading method of this application, which will not be repeated here.
[0120] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0121] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0122] For example, such as Figure 7 As shown, the electronic device 700 includes a memory 701 and a processor 702. The memory 701 stores executable program code 7011, and the processor 702 is used to call and execute the executable program code 7011 to perform a model training method or a lip reading recognition method.
[0123] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each module can correspond to a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0124] When each function is divided into modules corresponding to its specific function, the electronic device may include: a model building module, a sample acquisition module, a feature extraction module, a result prediction module, and a model training module. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional descriptions of the corresponding modules, and will not be repeated here.
[0125] The electronic device provided in this embodiment is used to execute the above-described model training method or lip reading method, and thus can achieve the same effect as the above-described implementation method.
[0126] When using integrated units, the electronic device may include a processing module and a storage module. The processing module is used to control and manage the operation of the electronic device. The storage module is used to support the execution of program code and data by the electronic device.
[0127] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.
[0128] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a model training method in the above embodiment.
[0129] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement a model training method described in the above embodiment.
[0130] In addition, the electronic device provided in the embodiments of this application may specifically be a chip, component or module. The electronic device may include a connected processor and a memory. The memory is used to store instructions. When the electronic device is running, the processor may call and execute the instructions to make the chip execute a model training method in the above embodiments.
[0131] In this embodiment, the electronic device, computer-readable storage medium, or chip is used to execute the corresponding model training method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding model training method provided above, and will not be repeated here.
[0132] Figure 8 A schematic diagram of the structure of a vehicle provided in an embodiment of this application is shown.
[0133] For example, such as Figure 8 As shown, the vehicle 800 includes a memory 801 and a processor 802. The memory 801 stores executable program code 8011, and the processor 802 is used to call and execute the executable program code 8011 to perform a model training method.
[0134] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0135] When each functional module is divided according to its corresponding function, the vehicle may include: a video acquisition module, a video processing module, an information selection module, an information combination module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.
[0136] The vehicle provided in this embodiment is used to execute the lip reading recognition method described above, and thus can achieve the same effect as the above implementation method.
[0137] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's actions. The storage module supports the vehicle in executing program code and data.
[0138] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of functions that implement computation, such as a combination of one or more microprocessors, a combination of digital signal processing and microprocessors, etc., and the storage module may be a memory.
[0139] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a lip reading recognition method in the above embodiment.
[0140] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a lip reading recognition method as described in the above embodiment.
[0141] In addition, the vehicle provided in the embodiments of this application may specifically be a chip, component or module. The vehicle may include a connected processor and a memory. The memory is used to store instructions. When the vehicle is running, the processor may call and execute the instructions to make the chip execute a lip reading method in the above embodiments.
[0142] In this embodiment, the vehicle, computer-readable storage medium, or chip are all used to execute the corresponding lip-reading recognition method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding lip-reading recognition method provided above, and will not be repeated here.
[0143] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0144] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0145] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A model training method, characterized in that, The model training method includes: Obtain a sequence of sample image frames containing lips; wherein the sequence of sample image frames is labeled with preset character information related to lip reading; The sample image frame sequence is input into a pre-constructed lip-reading recognition model; wherein, the lip-reading recognition model includes a prediction module and N sequentially connected 3D convolutional modules, where N is a positive integer greater than or equal to 3, and the N 3D convolutional modules are respectively the 1st to the Nth 3D convolutional module, the output of the Nth 3D convolutional module is connected to the input of the prediction module, and for any two adjacent 3D convolutional modules, the output of the previous 3D convolutional module is the input of the next 3D convolutional module; The sample image frame sequence is sequentially processed by the N 3D convolutional modules to extract image features, and the Nth 3D convolutional module outputs the target feature map sequence corresponding to the sample image frame sequence. The number of image channels and the feature map size information (including the height and width of the image) are sequentially increased and decreased for the feature map sequences output by the 1st to the Nth 3D convolutional modules, respectively. The number of feature maps in the feature map sequences output by the 1st to the (N-1th)th 3D convolutional modules is sequentially decreased, and the number of image channels corresponding to the sample image frame sequence is less than the number of image channels corresponding to the feature map sequence output by the 1st 3D convolutional module. The prediction module predicts the character information represented by lip movements corresponding to the target feature map sequence to obtain predicted character information. This process includes: inputting the target feature map sequence into the prediction module; the prediction module outputting multiple candidate character information represented by lip movements corresponding to the target feature map sequence, each candidate character information carrying a probability value; determining the maximum probability value from the probability values carried by each candidate character information; and determining the candidate character information corresponding to the maximum probability value among the multiple candidate character information as the predicted character information. The lip reading recognition model is trained based on the predicted character information and the preset character information.
2. The model training method according to claim 1, characterized in that, The N 3D convolutional modules include: a first 3D convolutional module, a second 3D convolutional module, and a third 3D convolutional module. The output of the first 3D convolutional module is the input of the second 3D convolutional module, and the output of the second 3D convolutional module is the input of the third 3D convolutional module. The step of sequentially extracting image features from the sample image frame sequence using the N 3D convolutional modules, and outputting the target feature map sequence corresponding to the sample image frame sequence by the Nth 3D convolutional module, includes: The first 3D convolution module is used to extract image features from the sample image frame sequence to obtain a first feature image sequence. The second 3D convolution module is used to extract image features from the first feature image sequence to obtain a second feature image sequence; wherein the number of feature maps included in the second feature image sequence is less than the number of feature maps included in the first feature image sequence. The third 3D convolution module is used to extract image features from the second feature image sequence to obtain the target feature map sequence; wherein, the number of image channels corresponding to the target feature map sequence, the number of image channels corresponding to the second feature image sequence, and the number of image channels corresponding to the first feature image sequence increase sequentially, and the feature map size information corresponding to the target feature map sequence, the feature map size information corresponding to the second feature image sequence, and the feature map size information corresponding to the first feature image sequence decrease sequentially.
3. The model training method according to claim 2, characterized in that, Before using the third 3D convolution module to extract image features from the second feature image sequence to obtain the target feature map sequence, the model training method further includes: Obtain the target value from a preset set of values; The output parameters of the third 3D convolutional module are adjusted to the target value; wherein, the preset value set includes multiple different values, and the output parameters are used to adjust the number of feature maps in the feature map sequence output by the third 3D convolutional module.
4. The model training method according to claim 1, characterized in that, For any one of the N 3D convolutional modules, the 3D convolutional module includes a 3D convolutional layer, a non-linear activation function layer and a 3D pooling layer, and the prediction module includes a first fully connected layer, a non-linear activation function layer, a fine-tuning layer, a second fully connected layer and a normalization function layer.
5. A lip-reading recognition method, characterized in that, The lip-reading method includes: Get a video containing the user's lips; The video is input into a pre-trained lip-reading model, and the lip-reading model outputs at least one set of candidate character information; wherein, the lip-reading model is trained according to the model training method according to any one of claims 1 to 4, and each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value; For each set of candidate character information in the at least one set of candidate character information, the candidate character information corresponding to the maximum probability value in each set of candidate character information is determined as the target character information; The target character information corresponding to each of the at least one set of candidate character information is combined in chronological order to obtain the lip reading recognition result corresponding to the video.
6. A model training device, characterized in that, The model training device includes: A sample acquisition module is used to acquire a sequence of sample image frames containing lips; wherein the sample image frame sequence is labeled with preset character information related to lip reading. A feature extraction module is used to input the sample image frame sequence into a pre-constructed lip-reading recognition model. The lip-reading recognition model includes a prediction module and N sequentially connected 3D convolutional modules, where N is a positive integer greater than or equal to 3. The N 3D convolutional modules are the first to the Nth convolutional modules, respectively. The output of the Nth convolutional module is connected to the input of the prediction module. For any two adjacent convolutional modules, the output of the preceding module serves as the input of the following module. Image features are extracted sequentially from the sample image frame sequence using the N 3D convolutional modules. The Nth 3D convolutional module outputs the target feature map sequence corresponding to the sample image frame sequence; wherein, the number of image channels corresponding to the feature map sequences output by the 1st 3D convolutional module to the Nth 3D convolutional module increases sequentially, and the feature map size information decreases sequentially, the feature map size information including the height and width of the image, the number of feature maps contained in the feature map sequences output by the 1st 3D convolutional module to the (N-1)th 3D convolutional module decreases sequentially, and the number of image channels corresponding to the sample image frame sequence is less than the number of image channels corresponding to the feature map sequence output by the 1st 3D convolutional module; The result prediction module is used to predict the character information represented by lip movements corresponding to the target feature map sequence using the prediction module, and obtain predicted character information. The step of using the prediction module to predict the character information represented by lip movements corresponding to the target feature map sequence and obtain predicted character information includes: inputting the target feature map sequence into the prediction module, and having the prediction module output multiple candidate character information represented by lip movements corresponding to the target feature map sequence, each candidate character information carrying a probability value; determining the maximum probability value from the probability values carried by each candidate character information; and determining the candidate character information corresponding to the maximum probability value among the multiple candidate character information as the predicted character information. The model training module is used to train the lip reading recognition model based on the predicted character information and the preset character information.
7. A lip-reading recognition device, characterized in that, The lip-reading device includes: The video acquisition module is used to acquire videos containing the user's lips; A video processing module is used to input the video into a pre-trained lip reading recognition model, and the lip reading recognition model outputs at least one set of candidate character information; wherein the lip reading recognition model is trained according to the model training method according to any one of claims 1 to 4, and each set of candidate character information includes multiple candidate character information, each of the multiple candidate character information carrying a probability value. The information selection module is used to determine the candidate character information corresponding to the maximum probability value in each group of candidate character information in the at least one group of candidate character information as the target character information. The information combination module is used to combine the target character information corresponding to each of the at least one set of candidate character information in chronological order to obtain the lip reading recognition result corresponding to the video.
8. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the model training method as described in any one of claims 1 to 4, or to implement the lip reading recognition method as described in claim 5.
9. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the lip reading method as described in claim 5.
Citation Information
Patent Citations
Lip language recognition method and device, computer equipment and storage medium
CN110276259A
Chinese lip language recognition method based on two-stage neural network model
CN111104884A
