Sign language recognition model training method, recognition method, device, equipment and medium

By generating training samples and using the coordinate difference vector between the skeleton point coordinates and the reference point to train the sign language recognition model, the problem of low sign language recognition accuracy in the existing technology is solved, and the accuracy and robustness of the recognition are improved.

CN118447581BActive Publication Date: 2024-09-20LESHAN NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410905261.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-20
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Due to differences in angles and positions during training, existing sign language recognition models have limited sign language recognition accuracy and cannot guarantee recognition accuracy and robustness.

Method used

By obtaining the skeleton key point information of continuous video images, randomly generating random values ​​​​of skeleton point coordinates, applying a spatial transformation strategy to generate a sample coordinate set, and calculating the coordinate difference vector between the skeleton point coordinates and the reference point to form a training sample, the opponent Speech recognition model is trained.

Benefits of technology

It improves the accuracy, generalization ability and robustness of sign language recognition, and solves the problem of limited recognition accuracy caused by angle position transformation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447581B
    Figure CN118447581B
Patent Text Reader

Abstract

The present invention discloses a sign language recognition model training method, a recognition method, a device, an equipment and a medium. The method comprises the following steps: respectively obtaining skeleton key point information of each continuous video image. Randomly generating random values ​​of each skeleton point coordinate set, and performing spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set. Respectively determining the reference point coordinates of each sample coordinate set, calculating the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generating a training sample. According to the training sample, the sign language recognition model is trained until a sign language recognition model that meets the training stop condition is obtained. The method solves the technical problem of limited sign language recognition accuracy due to angle position transformation in the prior art, and ensures the accuracy, generalization ability and robustness of sign language recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sign language recognition, and in particular to a sign language recognition model training method, a recognition method, a device, equipment and a medium. Background Art

[0002] Sign language is a special language that relies on movement and vision to communicate. It is used to convert sign language into text or speech. It is usually used for communication between people with hearing impairments or speechlessness and normal people. Sign language can use gestures to measure movements, simulate images or syllables according to the changes in gestures, and express certain meanings or words.

[0003] When training, existing sign language recognition models generally use human skeleton point coordinates as sample input. In practical applications, since the expression consistency of the same sign language action cannot be guaranteed and the recognition angle and distance are different, the difference between the actual captured human skeleton point coordinates and the human skeleton point coordinates in the training samples can be very large, which can easily lead to recognition errors. Summary of the invention

[0004] In view of the above problems, the embodiments of the present invention solve the technical problem in the prior art that the accuracy of sign language recognition is limited due to angle position changes by providing a sign language recognition model training method, recognition method, device, equipment and medium, thereby ensuring the accuracy, generalization ability and robustness of sign language recognition.

[0005] Embodiments of the present application provide a sign language recognition model training method, a recognition method, an apparatus, a device, and a medium.

[0006] In a first aspect, the present invention provides a sign language recognition model training method, comprising the following steps:

[0007] Respectively obtain skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set and corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set;

[0008] Randomly generate random values ​​of each skeleton point coordinate set, and perform spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set;

[0009] Determine the reference point coordinates of each sample coordinate set respectively, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate training samples;

[0010] The sign language recognition model is trained according to the training samples until the sign language recognition model that meets the training stop condition is obtained.

[0011] Preferably, the step of respectively acquiring skeleton key point information of each continuous video image specifically includes:

[0012] Obtaining video data related to sign language movements;

[0013] Extracting continuous video images containing sign language movements from the video data;

[0014] Based on the preset posture estimation tool, the skeleton key points of each continuous video image are extracted;

[0015] The skeleton key point information is generated according to the skeleton key point.

[0016] Preferably, the randomly generating random values ​​of each skeleton point coordinate set, and performing spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate the sample coordinate set specifically includes:

[0017] Generate a first random value and a second random value for each skeleton point coordinate according to a preset random function;

[0018] When the first random value satisfies a first preset condition, determining a space transformation strategy corresponding to the second random value, wherein the space transformation strategy refers to rotating the skeleton point coordinates according to a preset first rule, or cropping the continuous video image according to a preset second rule, or swinging the skeleton point coordinates of the hand whose joint information belongs to the hand according to a third rule;

[0019] According to the spatial transformation strategy, the skeleton point coordinates in the skeleton point coordinate set are spatially transformed to obtain the sample coordinate set.

[0020] Preferably, the step of respectively determining the reference point coordinates of each sample coordinate set, calculating the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generating a training sample further includes:

[0021] According to a preset human body structure model, the sample coordinates in the sample coordinate set are matched to generate a training sample graph;

[0022] Determine a reference point according to the training sample graph and a preset selection rule, and obtain the coordinates of the reference point;

[0023] Calculate the coordinate difference between the coordinates of each skeleton point in the training sample image and the coordinates of the reference point to generate a coordinate difference vector;

[0024] A training sample is generated according to the coordinate difference vector.

[0025] Preferably, the step of training the sign language recognition model according to the training sample until the sign language recognition model that satisfies the training stop condition is obtained specifically includes:

[0026] Flattening the coordinate difference vector into a corresponding flattened vector;

[0027] Obtaining position coding information of the coordinate difference vector;

[0028] Based on the flattened vector and the position encoding vector, an input vector is generated and input into the sign language recognition model;

[0029] The sign language recognition model is trained until the sign language recognition model that meets the training stop condition is obtained.

[0030] Preferably, the sign language recognition model includes an Encoder module, the Encoder module includes a residual multi-head attention layer, and the residual multi-head attention layer uses an attention score as a residual term.

[0031] In a second aspect, the present invention further provides a sign language recognition method, comprising:

[0032] Determine the sample data to be identified;

[0033] The sample data to be recognized is input into a sign language recognition model to obtain a sign language recognition result of the sample data to be recognized, wherein the sign language recognition model is the sign language recognition model described above.

[0034] In a third aspect, the present invention further provides a sign language recognition device, comprising:

[0035] An acquisition module, used to respectively acquire skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set and corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set;

[0036] A first generation module is used to randomly generate random values ​​of each skeleton point coordinate set, and perform spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set;

[0037] The second generation module is used to determine the reference point coordinates of each sample coordinate set respectively, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate a training sample;

[0038] The training module is used to train the sign language recognition model according to the training samples until the sign language recognition model that meets the training stop condition is obtained.

[0039] In a fourth aspect, the present invention further provides an electronic device, comprising: a processor and a memory, wherein the processor is used to call a program in the memory so that the electronic device executes the sign language recognition training method.

[0040] In a fifth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed, enable a computer to execute a sign language recognition training method.

[0041] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: by collecting skeleton key point information of each continuous video image and generating corresponding random values ​​according to the corresponding skeleton point coordinate set, the corresponding spatial transformation strategy is selected to generate a sample coordinate set, and the coordinate difference vector between the coordinates of each skeleton point in the skeleton point coordinate set and the reference point is obtained by selecting a reference point to generate a training sample, and the sign language recognition model is trained. The technical problem of limited accuracy of sign language recognition due to angle position transformation in the prior art is solved, and the accuracy, generalization ability and robustness of sign language recognition are guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flow chart of a sign language recognition model training method provided in an embodiment of the present application is shown;

[0043] Figure 2 A flow chart of a method for obtaining skeleton key point information provided by an embodiment of the present application is shown;

[0044] Figure 3 A flow chart of a method for generating a sample coordinate set provided in an embodiment of the present application is shown;

[0045] Figure 4 A flow chart of a method for generating training samples provided in an embodiment of the present application is shown;

[0046] Figure 5 A flow chart of a method for training a sign language recognition model provided in an embodiment of the present application is shown;

[0047] Figure 6 A flow chart of a sign language recognition method provided by an embodiment of the present application is shown;

[0048] Figure 7 The structure diagram of the sign language recognition device provided by the embodiment of the present application is shown;

[0049] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application is shown; DETAILED DESCRIPTION

[0050] The embodiments of the present application solve the technical problem in the prior art that the accuracy of sign language recognition is limited due to angle position changes by providing a sign language recognition model training method, recognition method, device, equipment and medium, thereby ensuring the accuracy, generalization ability and robustness of sign language recognition.

[0051] The technical solution in the embodiment of the present application is to solve the problem of limited accuracy of sign language recognition mentioned above, and the overall idea is as follows:

[0052] By sampling the video data set about sign language videos, continuous video images about sign language movements are obtained. By collecting the key information of the skeleton points in each continuous video image, a skeleton point coordinate set including skeleton point coordinates is generated. The coordinates in the skeleton point coordinate set are spatially transformed using the spatial transformation strategy corresponding to the randomly generated numerical values ​​to generate a sample coordinate set. The coordinate difference vector of each skeleton point coordinate is obtained by selecting a reference point to form a training sample, and the sign language recognition model is trained.

[0053] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0054] Embodiment 1:

[0055] Figure 1 FIG. 1 shows a flow chart of a sign language recognition model training method provided by an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a sign language recognition model training method, comprising the following steps:

[0056] S10, respectively obtain skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set, and corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set.

[0057] In this embodiment, the continuous video image refers to an image obtained by sampling a video data set at intervals, and the video data set is composed of multiple video data related to sign language actions. The video data may contain only a single sign language isolated word, or may contain a sentence composed of multiple sign language isolated words. Each continuous video image is related to a sign language action. The skeleton key point information is acquired through a posture estimation tool, including a skeleton point coordinate set, the skeleton point coordinate set includes multiple skeleton point coordinates, and the corresponding joint information corresponding to each skeleton point coordinate, and the corresponding joint information includes facial joints, hand joints, and elbow joints.

[0058] Exemplarily, firstly, video data related to sign language actions are obtained by shooting with a video acquisition device, and a video data set is generated from multiple video data in the order of shooting time, and the video data set is sampled at equal time intervals to obtain a discrete frame set containing continuous video images. Then, a preset posture estimation tool is used to extract skeleton key points from each continuous video image to obtain skeleton key point information, and the skeleton point coordinate set S1= The generated skeleton point coordinate set is S1={ <x 11 ,y 11 >, <x 12 ,y 12 >, ..., <x 1i ,y 1i >, ..., <x 1n ,y 1n >}, where 1≤i≤n, i is an integer, <x 1i ,y 1i > represents the coordinates of a skeleton point in a continuous video image, and x 1i ,y 1i The values ​​are all between 0 and 1. Specifically, the preset pose estimation tool can be one or more of MMPose, RTMPose, OpenPose, MindPose, AlphaPose, GluonCV, Tf PoseEstimation, and MediaPipe. The video acquisition device can be a non-2D camera of different specifications.

[0059] S20, randomly generating random values ​​for each skeleton point coordinate set, and performing spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set.

[0060] In this embodiment, the random value of each skeleton point coordinate set is randomly generated, and according to the random value corresponding to each skeleton point coordinate set, the corresponding spatial transformation strategy is adopted to perform spatial transformation on the skeleton point coordinates in the skeleton point coordinate set, and the skeleton point coordinate set after spatial transformation is used as the sample coordinate set. Specifically, the random value can be generated by a preset random function, a random number generator, or a pseudo-random number generator. The spatial transformation strategy refers to a preset spatial transformation strategy.

[0061] S30, respectively determine the reference point coordinates of each sample coordinate set, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate training samples.

[0062] In this embodiment, the coordinates of the reference point are first selected through the sample coordinate set, and then the coordinate difference vector between each sample coordinate and the reference point in the sample coordinate set is calculated to generate a training sample corresponding to the sample coordinate set.

[0063] S40. Training the sign language recognition model according to the training samples until a sign language recognition model that meets the training stop condition is obtained.

[0064] In this embodiment, the sign language recognition model adopts an improved deep learning model to recognize single isolated sign language words or coherent sign language expression sentences. The training samples include a training set, a test set and a validation set, wherein the training set is used to train the parameters and weights of the model, and the parameters of the model are adjusted to minimize the loss function by learning the sample data in the training set; the validation set is used to evaluate the performance of the model during the training process in order to adjust the hyperparameters and prevent overfitting; the test set is used to test the model performance to ensure that the model has good generalization ability. When the test results of the test set meet the preset performance indicators, the training stop condition is met and the training is stopped. Specifically, the sign language recognition model can use an improved residual Transformer structure.

[0065] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0066] By collecting skeleton key point information of each continuous video image and generating corresponding random values ​​according to the corresponding skeleton point coordinate set, the corresponding spatial transformation strategy is selected to generate a sample coordinate set. The coordinate difference vector between the coordinates of each skeleton point in the skeleton point coordinate set and the reference point is obtained by selecting a reference point to generate training samples and train the sign language recognition model. Using the coordinate difference vector as the model input solves the technical problem of limited sign language recognition accuracy due to angle position transformation in the prior art, and ensures the accuracy, generalization ability and robustness of sign language recognition.

[0067] Figure 2 The flowchart of the method for obtaining skeleton key point information provided by the embodiment of the present application is shown. Figure 2 As shown, S10, respectively obtain skeleton key point information of each continuous video image, specifically including:

[0068] S11. Obtain video data related to sign language actions.

[0069] In this embodiment, the video data is captured by a video capture device. The video capture device may be a non-2D camera of different specifications. The video data may be in any data format obtained by capturing the video capture device. Specifically, the video data is a combination of one or more videos in the order of the time of capturing. Before acquiring the video data, it should be determined whether the format of each video is consistent. If not, the video is converted into the same format.

[0070] S12. Extracting continuous video images containing sign language movements from the video data.

[0071] In this embodiment, continuous video images are obtained by sampling at equal time intervals, and the extracted continuous video images are arranged in the order of the shooting time.

[0072] S13. Extract skeleton key points of each continuous video image based on a preset posture estimation tool.

[0073] S14. Generate skeleton key point information based on the skeleton key points.

[0074] In this embodiment, the skeleton key points are collected and extracted according to the preset posture estimation tool, and the skeleton key point information includes the coordinates corresponding to each skeleton key point and the corresponding joint information, and the collection of the coordinates of each skeleton key point generates a skeleton point coordinate set. Specifically, the preset posture estimation tool can be one or more of MMPose, RTMPose, OpenPose, MindPose, AlphaPose, GluonCV, Tf Pose Estimation, and MediaPipe. More specifically, the skeleton point coordinates in the skeleton point coordinate set are the results of normalizing the coordinates corresponding to each skeleton key point.

[0075] For example, the generated skeleton point coordinate set is S1={ <x 11 ,y 11 >, <x 12 ,y 12 >, ..., <x 1i ,y 1i >, ..., <x 1n ,y 1n >}, where 1≤i≤n, i is an integer, <x 1i ,y 1i > represents the coordinates of a skeleton point in a continuous video image, and x 1i ,y 1i The values ​​are all between 0 and 1.

[0076] Figure 3 FIG. 4 shows a flow chart of a method for generating a sample coordinate set provided by an embodiment of the present application. Figure 3 As shown, S20, randomly generating random values ​​of each skeleton point coordinate set, and performing spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set, specifically including:

[0077] S21 . Generate a first random value and a second random value for the coordinates of each skeleton point according to a preset random function.

[0078] S22. When the first random value satisfies the first preset condition, determine the space transformation strategy corresponding to the second random value, wherein the space transformation strategy refers to rotating the skeleton point coordinates according to a preset first rule, or cropping the continuous video image according to a preset second rule, or swinging the skeleton point coordinates of the hand whose joint information belongs to the hand according to a third rule.

[0079] S23. According to the spatial transformation strategy, spatial transformation is performed on the skeleton point coordinates in the skeleton point coordinate set to obtain a sample coordinate set.

[0080] In this embodiment, the first random value and the second random value are generated by a preset random function, the first random value is used to indicate whether to perform spatial transformation, and the second random value is used to indicate which spatial transformation strategy to use. According to the corresponding spatial transformation strategy, a sample coordinate set corresponding to the skeleton point coordinate set is obtained.

[0081] Exemplarily, the first random value and the second random value are represented by p1 and p2, respectively. When the first random value p1<λ, no spatial transformation is performed. When p1>λ, it is determined in which value range p2 is located. When 0<p2<1 / 3, the first spatial transformation strategy is selected; when 1 / 3<p2<2 / 3, the second spatial transformation strategy is selected; when 2 / 3<p2<1, the third spatial transformation strategy is selected.

[0082] Exemplarily, the transformation formula of the first spatial transformation strategy is: x'=(x – 0.5) cosθ + (y - 0.5)sinθ + 0.5, y'=(y – 0.5) cosθ + (x - 0.5) sinθ + 0.5, where 0.5 represents the center point of the sign language action, x and y refer to the horizontal and vertical coordinates of the skeleton point coordinates, respectively, x' and y' refer to the horizontal and vertical coordinates of each group of sample coordinates in the sample coordinate set, respectively, and θ refers to the randomly generated rotation angle, with a value between 0 and 10°.

[0083] Exemplarily, the transformation formula of the second spatial transformation strategy is: x' = (x - w1) / (W - w1 - w2), y' = (y - h1) / (H - h1 - h2), where x and y refer to the horizontal and vertical coordinates of the skeleton key point information, respectively, x' and y' refer to the horizontal and vertical coordinates of each group of sample coordinates in the sample coordinate set, respectively, W and H refer to the width and height of the continuous video image, w1, w2, h1, h2 refer to the cropping positions of the left, right, top and bottom of the continuous video image, respectively. Wherein, w1, w2, h1, h2, W, H are all normalized values.

[0084] Exemplarily, the transformation formula of the third spatial transformation strategy is: x'= Xelbow +L*cos(θ+θ'),y'=Y elbow +L*sin(θ+θ'), where X elbow and Y elbow They refer to the horizontal and vertical coordinates of any elbow skeleton point in the skeleton point coordinate set, respectively; L refers to the Euclidean distance between any hand skeleton point and the elbow skeleton point in the skeleton point coordinate set; θ refers to the angle between the hand skeleton point and the elbow skeleton point and the horizontal coordinate axis; θ' refers to the randomly generated swing angle, which is set between 0 and 4°.

[0085] The sample coordinate set is represented as S1'={ <x 11 ',y 11 '>, <x 12 ',y 12 '>, ..., <x 1i ',y 1i '>, ..., <x 1n ',y 1n '>}, where 1≤i≤n, i is an integer, <x 1i ',y 1i '> represents the coordinates of a skeleton point in a continuous video image after spatial transformation, and x 1i ',y 1i 'The values ​​are all between 0 and 1.

[0086] Figure 4 The flowchart of the method for generating training samples provided by the embodiment of the present application is shown. Figure 4 As shown, S30, respectively determining the reference point coordinates of each sample coordinate set, calculating the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generating a training sample, further comprising:

[0087] S31. According to a preset human body structure model, sample coordinates in a sample coordinate set are matched to generate a training sample graph.

[0088] S32: Determine a reference point according to the training sample graph and a preset selection rule, and obtain the coordinates of the reference point.

[0089] S33, calculating the coordinate difference between the coordinates of each skeleton point and the coordinates of the reference point in the training sample image, and generating a coordinate difference vector.

[0090] S34. Generate training samples according to the coordinate difference vector.

[0091] In this embodiment, the human body structure model refers to a model trained using the principles of sign language linguistics and human body structure, and the above model can be a variational encoder or a generative adversarial network. Using the preset human body structure model, the sample coordinates in the sample coordinate set are matched to generate a training sample graph containing information of each skeleton point.

[0092] Specifically, the reference point is determined based on the generated training sample image and the preset selection rule. The preset selection rule refers to the pre-set reference point selection rule. Specifically, the reference point can be a skeleton point in the training sample image or a non-skeleton point. For example, the reference point is the geometric center of the left shoulder and the right shoulder human skeleton points. <x base ,y base > indicates that the coordinate difference vector is expressed as<x*,y*> It means that, where x*=x 1i '-x base , y*=y 1i '-y base , the training sample is S1*={ <x 11 *,y 11 *>, <x 12 *,y 12 *>, ..., <x 1i *,y 1i *>, ..., <x 1n *,y 1n *>}, where 1≤i≤n and i is an integer.

[0093] Figure 5 FIG. 1 is a flow chart showing a method for training a sign language recognition model provided in an embodiment of the present application. Figure 5 As shown, S40, training the sign language recognition model according to the training samples until a sign language recognition model that meets the training stop condition is obtained, specifically including:

[0094] S41. Flatten the coordinate difference vector into a corresponding flattened vector.

[0095] S42. Obtain position coding information of the coordinate difference vector.

[0096] S43. Generate an input vector based on the flattened vector and the position encoding vector, and input it into the sign language recognition model.

[0097] S44, training the sign language recognition model until a sign language recognition model that meets the training stop condition is obtained.

[0098] In this embodiment, the input of the sign language recognition model is determined according to the flattened vector and the position coding information, the length of the flattened vector is the same as the vector length of the position coding information, and the input vector is obtained by weighted calculation of the flattened vector and the position coding information, and is input to the sign language recognition model for training until a sign language recognition model that meets the training stop condition is obtained. Exemplarily, the input vector is obtained by adding the flattened vector and the position coding information.

[0099] In this embodiment, the sign language recognition model includes an Encoder module, the Encoder module includes a residual multi-head attention layer, and the residual multi-head attention layer uses an attention score as a residual term.

[0100] Using attention scores as residual terms can enhance the robustness, diversity and dynamic weight allocation of sign language recognition models, improve feature extraction capabilities, and prevent gradient disappearance.

[0101] Figure 6 FIG. 1 shows a flow chart of a sign language recognition method provided by an embodiment of the present application. Figure 6 As shown, the embodiment of the present application provides a sign language recognition method, including:

[0102] S100: Determine sample data to be identified.

[0103] S200, inputting the sample data to be recognized into a sign language recognition model to obtain a sign language recognition result of the sample data to be recognized, wherein the sign language recognition model is the sign language recognition model provided in the present application.

[0104] Embodiment 2:

[0105] Figure 7 FIG. 1 shows a structural diagram of a sign language recognition device provided in an embodiment of the present application. Figure 7 As shown, the embodiment of the present application provides a sign language recognition device, including:

[0106] The acquisition module 400 is used to respectively acquire the skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set and the corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set.

[0107] The first generating module 500 is used to randomly generate random values ​​of each skeleton point coordinate set, and perform spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set.

[0108] The second generation module 600 is used to determine the reference point coordinates of each sample coordinate set respectively, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate training samples.

[0109] The training module 700 is used to train the sign language recognition model according to the training samples until a sign language recognition model that meets the training stop condition is obtained.

[0110] The acquisition module 400 includes:

[0111] The acquisition unit 410 is used to acquire video data related to the sign language action.

[0112] The first extraction unit 420 is used to extract continuous video images containing sign language actions from the video data.

[0113] The second extraction unit 430 is used to extract skeleton key points of each continuous video image based on a preset posture estimation tool.

[0114] The generating unit 440 is used to generate skeleton key point information according to the skeleton key points.

[0115] The first generating module 500 includes:

[0116] The generating unit 510 is used to generate a first random value and a second random value of the coordinates of each skeleton point according to a preset random function.

[0117] The determination unit 520 is used to determine whether the first random value satisfies the first preset condition, and the spatial transformation strategy corresponding to the second random value, wherein the spatial transformation strategy refers to rotating the skeleton point coordinates according to a preset first rule, or cropping the continuous video image according to a preset second rule, or swinging the skeleton point coordinates of the hand whose joint information belongs to the hand according to a third rule.

[0118] The obtaining unit 530 is used to perform spatial transformation on the skeleton point coordinates in the skeleton point coordinate set according to the spatial transformation strategy to obtain a sample coordinate set.

[0119] The second generating module 600 includes:

[0120] The first generating unit 610 is used to match the sample coordinates in the sample coordinate set according to a preset human body structure model to generate a training sample graph.

[0121] The acquisition unit 620 is used to determine the reference point according to the training sample graph and the preset selection rule, and obtain the coordinates of the reference point.

[0122] The calculation unit 630 is used to calculate the coordinate difference between the coordinates of each skeleton point and the coordinates of the reference point in the training sample image to generate a coordinate difference vector.

[0123] The second generating unit 640 is used to generate a training sample according to the coordinate difference vector.

[0124] The training module 700 includes:

[0125] The flattening unit 710 is used to flatten the coordinate difference vector into a corresponding flattened vector.

[0126] The acquisition unit 720 is used to acquire the position coding information of the coordinate difference vector.

[0127] The input unit 730 is used to generate an input vector based on the flattened vector and the position encoding vector, and input the input vector into the sign language recognition model.

[0128] The training unit 740 is used to train the sign language recognition model until a sign language recognition model that meets the training stop condition is obtained.

[0129] Among them, the sign language recognition model includes an Encoder module, the Encoder module includes a residual multi-head attention layer, and the residual multi-head attention layer uses the attention score as the residual term.

[0130] Embodiment three:

[0131] An electronic device comprises: a processor and a memory, wherein the processor is used to call a program in the memory so that the electronic device executes a sign language recognition training method.

[0132] Figure 8 FIG. 1 shows a structural diagram of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the computer device includes a processor, a memory and a network interface connected through a system bus.

[0133] The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data samples. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for improving building performance is implemented.

[0134] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] Embodiment 4:

[0136] A computer-readable storage medium stores instructions, which, when executed, enable a computer to execute a sign language recognition training method.

[0137] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0142] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A sign language recognition model training method, characterized in that: The steps include: Respectively obtain skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set and corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set; Randomly generate random values ​​of each skeleton point coordinate set, and perform spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set; Determine the reference point coordinates of each sample coordinate set respectively, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate training samples; According to the training samples, the sign language recognition model is trained until the sign language recognition model that meets the training stop condition is obtained; The randomly generated random values ​​of each skeleton point coordinate set and the spatial transformation of the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random values ​​to generate the sample coordinate set specifically include: Generate a first random value and a second random value for each skeleton point coordinate according to a preset random function; When the first random value satisfies a first preset condition, determining a space transformation strategy corresponding to the second random value, wherein the space transformation strategy refers to rotating the skeleton point coordinates according to a preset first rule, or cropping the continuous video image according to a preset second rule, or swinging the skeleton point coordinates of the hand whose joint information belongs to the hand according to a third rule; According to the spatial transformation strategy, the skeleton point coordinates in the skeleton point coordinate set are spatially transformed to obtain the sample coordinate set.

2. The method according to claim 1, characterized in that: The obtaining of skeleton key point information of each continuous video image specifically includes: Obtaining video data related to sign language movements; Extracting continuous video images containing sign language movements from the video data; Based on the preset posture estimation tool, the skeleton key points of each continuous video image are extracted; The skeleton key point information is generated according to the skeleton key point.

3. The method according to claim 2, characterized in that The step of respectively determining the reference point coordinates of each sample coordinate set, calculating the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generating a training sample further includes: According to a preset human body structure model, the sample coordinates in the sample coordinate set are matched to generate a training sample graph; Determine a reference point according to the training sample graph and a preset selection rule, and obtain the coordinates of the reference point; Calculate the coordinate difference between the coordinates of each skeleton point in the training sample image and the coordinates of the reference point to generate a coordinate difference vector; A training sample is generated according to the coordinate difference vector.

4. The method according to claim 3, characterized in that The step of training the sign language recognition model according to the training sample until the sign language recognition model that satisfies the training stop condition is obtained specifically includes: Flattening the coordinate difference vector into a corresponding flattened vector; Obtaining position coding information of the coordinate difference vector; Based on the flattened vector and the position encoding vector, an input vector is generated and input into the sign language recognition model; The sign language recognition model is trained until the sign language recognition model that meets the training stop condition is obtained.

5. The method according to claim 4, characterized in that The sign language recognition model includes an Encoder module, the Encoder module includes a residual multi-head attention layer, and the residual multi-head attention layer uses an attention score as a residual term.

6. A sign language recognition method, characterized in that: include: Determine the sample data to be identified; The sample data to be recognized is input into a sign language recognition model to obtain a sign language recognition result of the sample data to be recognized, wherein the sign language recognition model is the sign language recognition model according to any one of claims 1 to 5.

7. A sign language recognition device, characterized in that: include: An acquisition module, used to respectively acquire skeleton key point information of each continuous video image, wherein the continuous video image is related to the sign language action, and the skeleton key point information includes a skeleton point coordinate set and corresponding joint information of each skeleton point coordinate in the skeleton point coordinate set; A first generation module is used to randomly generate random values ​​of each skeleton point coordinate set, and perform spatial transformation on the corresponding skeleton point coordinate set according to the spatial transformation strategy corresponding to the random value to generate a sample coordinate set; The second generation module is used to determine the reference point coordinates of each sample coordinate set respectively, calculate the coordinate difference vector between the reference point coordinates and each sample coordinate in the sample coordinate set, and generate a training sample; A training module, used for training the sign language recognition model according to the training samples until the sign language recognition model that meets the training stop condition is obtained; Wherein, the first generation module includes: A generating unit, used to generate a first random value and a second random value of the coordinates of each skeleton point according to a preset random function; a determination unit, configured to determine a space transformation strategy corresponding to the second random value when the first random value satisfies a first preset condition, wherein the space transformation strategy refers to rotating the skeleton point coordinates according to a preset first rule, or cropping the continuous video images according to a preset second rule, or swinging the skeleton point coordinates of the hand whose joint information belongs to the hand according to a third rule; The obtaining unit is used to perform spatial transformation on the skeleton point coordinates in the skeleton point coordinate set according to the spatial transformation strategy to obtain the sample coordinate set.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to call a program in the memory to enable the electronic device to execute the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the method according to any one of claims 1 to 5.