A cross-modal handwritten text recognition method based on graph structure guided perception

By converting the mid-air handwriting trajectory into a geometric graph and combining the temporal convolutional recurrent network and the pyramid graph network to extract spatiotemporal and topological information, and using the graphic structure to guide the perceptual cross-modal decoder to recognize the letter sequence, it solves the problem of mid-air handwriting in the existing technology. It solves the problem of insufficient text recognition performance and achieves higher recognition accuracy and better generalization ability.

CN118334682BActive Publication Date: 2024-10-29CHONGQING UNIV OF POSTS & TELECOMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410462544.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-10-29
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Existing mid-air handwritten text recognition methods ignore the geometric characteristics between characters, resulting in insufficient recognition performance and difficulty in effectively recognizing mid-air handwritten text.

Method used

A cross-modal handwritten text recognition method based on graphic structure guided perception is adopted. By converting the writing trajectory into a skeleton-based geometric diagram, combined with the temporal convolutional recurrent network and the pyramid graph network, the spatiotemporal information and topological information are extracted, and the graphic structure is used to guide Perceptual cross-modal decoder recognition of letter sequences.

Benefits of technology

It improves the accuracy and interpretability of handwritten text recognition and enhances the encoding of geometric characteristics of handwriting trajectories. Compared with other methods, it performs better in recognition accuracy and generalization ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334682B_ABST
    Figure CN118334682B_ABST
Patent Text Reader

Abstract

The present invention relates to the fields of human-computer interaction and computer vision, and in particular to a cross-modal handwritten text recognition method based on graphic structure guided perception. A user writes English words in the air with his hands through a VR device, and the VR device recognizes his gestures and records the writing trajectory in the air. The process of recognizing the writing trajectory includes: converting the collected writing trajectory into a skeleton-based geometric graph; constructing a trajectory encoder based on a time convolutional recurrent network, using the encoder to extract spatiotemporal information from the writing trajectory, and obtaining a feature encoding of the writing trajectory; constructing a graphic encoder based on a pyramid graph network, using the encoder to extract topological information from a skeleton-based geometric graph, and obtaining a feature encoding of the geometric graph; constructing a cross-modal decoder based on graphic structure guided perception, inputting the spatiotemporal information and topological information into the decoder as multimodal data, and the decoder recognizes and obtains a letter sequence; the present invention has achieved more advanced performance in handwritten text recognition than other mainstream methods of the same period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of human-computer interaction and computer vision, and in particular to a cross-modal handwritten text recognition method based on graphic structure guided perception. Background Art

[0002] With the continuous development of modern science and technology, handwriting in the air, as a new human-computer interaction method, has very rich research significance and application value. Unlike traditional human-computer interactions such as moving a mouse, keyboard input, and touch screen operation, users can write in the air in a more natural and unrestricted way, providing a more intuitive, convenient and comfortable interactive experience. In addition, users can also interact directly with the surrounding environment or devices through gestures or handwriting in the air. Therefore, the handwriting in the air method is expected to play an important role in many virtual / mixed reality applications such as virtual classrooms. However, how to correctly recognize handwritten text in the air has become a major problem. For example, handwritten text in the air is always completed in one stroke, and the connection between characters will introduce significant ambiguity. In addition, since writing in the air is subject to fewer spatial constraints, it will lead to more diverse writing styles. These characteristics make handwriting recognition in the air more challenging and less explored than traditional handwritten text recognition on paper or touch screens.

[0003] The most advanced methods for in-flight handwriting recognition usually use deep neural networks for modeling, such as using recurrent neural networks (RNN) or time-domain convolutional networks (TCN) to directly recognize handwriting trajectories, or using encoder-decoder and connectionist temporal classification (CTC) models. All of these methods have achieved certain results. However, all of these methods ignore the inherent geometric characteristics between characters and only perform simple learning by modeling the low-level relationship between adjacent points in the trajectory. These methods cannot recognize in-flight handwriting recognition text well, and better handwriting recognition algorithms are urgently needed to improve the performance of in-flight handwriting recognition. Summary of the invention

[0004] In view of the shortcomings of the above-mentioned existing handwritten text recognition technology, the present invention proposes a cross-modal handwritten text recognition method based on graphic structure guided perception. The user writes English words in the air with his hand through a VR device, and the VR device recognizes his gesture and records the writing trajectory in the air. The process of recognizing the writing trajectory includes the following steps:

[0005] Converting the collected writing trajectories into skeleton-based geometric graphs;

[0006] A trajectory encoder based on a temporal convolutional recurrent network is constructed, and the temporal and spatial information is extracted from the writing trajectory using the encoder to obtain the feature encoding of the writing trajectory.

[0007] A graph encoder based on pyramid graph network is constructed, and the encoder is used to extract topological information from skeleton-based geometric graphs to obtain feature encoding of geometric graphs.

[0008] A cross-modal decoder based on graph structure-guided perception is constructed, and the spatiotemporal information and topological information are input into the decoder as multimodal data, and the decoder recognizes the letter sequence.

[0009] Furthermore, the collected writing trajectory X=(x1,…,x n ,…,x N ) is converted into a skeleton-based geometric graph G = (V, E, P), where V = {v i |i=1,…,N} represents the trajectory point, v i represents the i-th trajectory point, N is the number of trajectory points; E = {i, j | v j →v i} represents the connection between trajectory points, P = {x i |i=1,…,N} represents the Euclidean position of the node, x i Represents the spatial coordinates of the i-th trajectory point.

[0010] Furthermore, the process of extracting spatiotemporal information from the writing trajectory using a trajectory encoder based on a temporal convolutional recurrent network includes:

[0011] Input the writing trajectory into the time series convolutional neural network to capture the spatiotemporal information of the writing trajectory and obtain local translation-invariant context features;

[0012] The local translation-invariant contextual features are input into the LSTM-based recurrent neural network to learn implicit semantic features and output the feature encoding of the writing trajectory.

[0013] Furthermore, the graph encoder based on the pyramid graph network is composed of three temporal convolution blocks and a bidirectional long short-term memory network cascade, and the temporal convolution block is composed of a cascaded first convolution unit and a second convolution unit, wherein:

[0014] The first convolution unit processes the input data in sequence through the first one-dimensional convolution layer, batch normalization layer, parameterized linear rectifier unit, second one-dimensional convolution layer, batch normalization layer, and then connects the output of the first one-dimensional convolution layer by data addition, and then activates it through a parameterized linear rectifier unit as the output of the first convolution unit;

[0015] The first convolution unit processes the input data through the third one-dimensional convolution layer, batch normalization layer, parameterized linear rectification unit, fourth one-dimensional convolution layer, and batch normalization layer in sequence, and then connects the data processed by the first one-dimensional convolution layer, the fifth one-dimensional convolution layer, and the batch normalization layer through data addition, and then activates it through a parameterized linear rectification unit as the output of the second convolution unit.

[0016] Furthermore, the process of extracting topological information from the skeleton-based geometric graph using the pyramid graph network-based graph encoder includes:

[0017] The first graph feature is obtained by learning the topological structure from the skeleton-based geometric graph through the pyramid graph network;

[0018] Input the first graph feature into the graph convolutional network to obtain its local topological feature, and obtain the second graph feature;

[0019] Based on the multi-head attention mechanism, the multi-head attention on the features of the second graph is calculated to obtain the feature encoding of the geometric graph.

[0020] Furthermore, the trajectory encoder based on the time convolutional recurrent network is composed of four cascaded graph network modules, each of which is composed of a cascaded first structure processing unit, a second structure processing unit, and a graph coarse-grained operation, wherein:

[0021] The data input to the first structure processing unit is processed by a graph convolution layer and then input to the trunk and branches for processing respectively. The outputs of the trunk and branches are added and processed by a parameterized linear rectifier unit as the output of the first structure processing unit. The trunk is processed by a batch normalization layer, a parameterized linear rectifier unit, a graph convolution layer, and a batch normalization layer in sequence. The branches are processed by a fully connected layer and a batch normalization layer in sequence.

[0022] The data input to the second structure processing unit is processed in sequence through layer normalization, multi-head attention, and random depth processing, and then added to the data input to the second structure processing unit as the output of the second structure processing unit.

[0023] Furthermore, the processing of input data by the graph convolution layer is expressed as:

[0024]

[0025] in, Represents a graph node v i The output after processing by the graph convolution layer; f(v i ) represents the graph node v i The feature representation of Represents a graph node v i Neighborhood The number of nodes in the graph; Represents the i-th graph node v i and the jth graph node v j The aggregation weight between , which is a learnable weight matrix and is updated during the training process.

[0026] Furthermore, the process of inputting the spatiotemporal information and the topological information as multimodal data into the cross-modal decoder based on the graph structure guided perception to obtain the letter sequence includes:

[0027] The graph recursive unit obtains a decoding state corresponding to the feature encoding of the current geometric graph according to the graph hidden state of the previous character geometric feature and the previous character;

[0028] Update the hidden state of the graph that needs to predict the character geometry graph according to the feature encoding of the current geometry graph and its decoding state;

[0029] The writing trajectory recursive unit obtains a decoding state corresponding to the feature encoding of the current writing trajectory according to the graph hidden state of the previous character writing trajectory, the graph hidden state of the previous character geometric features and the previous character;

[0030] Update the hidden state of the graph that needs to predict the character writing trajectory according to the feature encoding and decoding state of the current writing trajectory;

[0031] The probability of the current character to be predicted is calculated by fusing the hidden state of the graph of the character writing trajectory that needs to be predicted and the hidden state of the geometric graph, which is expressed as:

[0032]

[0033] in, Indicates the current lth character y l The probability of represents the first l-1 characters that have been predicted, X represents the writing trajectory, G represents the geometric graph based on the skeleton; W is the weight matrix, and b is the bias parameter; is the current λth character y l The hidden state of the graph of the writing trajectory; The current lth character y l Graph hidden states of geometric features.

[0034] Furthermore, the process of obtaining the hidden state of the graph is expressed as:

[0035]

[0036] in, represents the hidden state of the graph corresponding to the feature x of the lth character, x = {g, t}, when x = g, feature x represents a geometric graph, and when x = t, feature x represents a writing trajectory; ex Represents the feature encoding of feature x; Indicates the decoding state corresponding to the feature encoding of feature x of the lth character.

[0037] Furthermore, the decoding state corresponding to the feature encoding of the current writing trajectory is expressed as:

[0038]

[0039] The decoding state corresponding to the feature encoding of the current geometric graph is expressed as:

[0040]

[0041] in, The decoding state corresponding to the feature code representing the writing trajectory of the lth character; is the graph recursive unit for writing trajectories; represents the hidden state of the graph corresponding to the writing trajectory of the l-1th character, represents the hidden state of the geometric graph corresponding to the lth character, y l-1 Indicates the l-1th character; [·,·] indicates a concatenation operation; Indicates the decoding state corresponding to the feature encoding of the geometric graph of the lth character; Represents the hidden state of the graph corresponding to the l-1th character geometry.

[0042] The beneficial effects of the present invention are as follows:

[0043] a) The present invention fully considers the inherent geometric characteristics between characters and uses a modeling method based on a graph structure to enhance the interpretability of the handwritten text recognition method.

[0044] b) The present invention does not introduce additional annotation information, but explicitly converts the existing handwriting trajectory coordinate points into a skeleton-based geometric graph to further encode the geometric characteristics and spatiotemporal information of the handwriting trajectory, thereby avoiding overall additional cost consumption.

[0045] c) The present invention adopts trajectory encoder and graph encoder to process trajectory data and graph data respectively, each of which integrates the advantages of temporal convolutional network (TCN), recurrent neural network (RNN), and graph convolutional network (GCN) and multi-head self-attention, and introduces temporal convolutional recurrent network (TCRN) and pyramid graph network (PyGCN) respectively, which are used to capture the spatiotemporal information of the trajectory and learn the topological structure of the graph, fully improving the performance and effect of target feature extraction.

[0046] d) The decoder part of the present invention adopts a recursive autoregressive architecture, receives the encoding of multimodal data as input, utilizes early cross-modal fusion and late multimodal fusion, fully considers the inherent geometric characteristics between characters, further improves the utilization of target features, and improves the recognition accuracy compared to other methods of the same period.

[0047] e) The present invention can be easily extended to general handwritten text recognition. Experiments are conducted on a widely used handwritten text dataset IAM-OnDB. The results show that the present invention outperforms other state-of-the-art methods on IAM-On DB, demonstrating the effectiveness and generalization ability of the present invention in handwritten text recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic flow chart of the cross-modal handwritten text recognition method based on graphic structure guided perception of the present invention;

[0049] Figure 2 A schematic diagram of the explicit transformation of trajectory coordinate points based on a skeleton geometry diagram of the present invention;

[0050] Figure 3 It is a schematic diagram of the overall structural framework of the present invention;

[0051] Figure 4 It is a schematic diagram of detailed configuration of the modules of the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] The present invention proposes a cross-modal handwritten text recognition method based on graphic structure guided perception. A user writes English words in the air with his hands through a VR device, and the VR device recognizes his gestures and records the writing trajectory in the air. The process of recognizing the writing trajectory includes the following steps:

[0054] Converting the collected writing trajectories into skeleton-based geometric graphs;

[0055] A trajectory encoder based on a temporal convolutional recurrent network is constructed, and the temporal and spatial information is extracted from the writing trajectory using the encoder to obtain the feature encoding of the writing trajectory.

[0056] A graph encoder based on pyramid graph network is constructed, and the encoder is used to extract topological information from skeleton-based geometric graphs to obtain feature encoding of geometric graphs.

[0057] A cross-modal decoder based on graph structure-guided perception is constructed, and the spatiotemporal information and topological information are input into the decoder as multimodal data, and the decoder recognizes the letter sequence.

[0058] like Figure 1 As shown, this example provides a cross-modal handwritten text recognition method based on graphic structure guided perception, which aims to use the geometric structure of characters to guide the decoding of the spatiotemporal information of the trajectory, and further improve the recognition performance and recognition accuracy of handwritten text in the air. The scheme of the present invention mainly includes four steps, namely:

[0059] Step 1: The user writes English words in the air with his hands through the VR device, and the VR device recognizes his gestures and records the writing trajectory in the air;

[0060] Step 2: On the premise of retaining the recorded handwriting trajectory, directly convert its copy into a skeleton-based geometric graph G for recording;

[0061] Step 3: For the trajectory data, i.e., the writing trajectory obtained in step 1, a trajectory encoder is used for processing, and a temporal convolutional recurrent network (TCRN) is introduced to capture the spatiotemporal information of the trajectory. For the image data, i.e., the geometric graph obtained in step 2, a graph encoder is used for processing, and a pyramid graph network (PyGCN) is introduced to learn the topological results of the graph.

[0062] Step 4: Input the multimodal data encoding of the trajectory encoder and the graphic encoder into the cross-modal decoder based on graphic structure-guided perception to iteratively generate the target text sequence.

[0063] This embodiment obtains the handwriting trajectory and converts it into graph data through the following steps:

[0064] a) Handwriting trajectory acquisition: The user writes English words in the air with his hand through the VR device, and the VR device recognizes his gesture and records the writing trajectory in the air.

[0065] b) The handwritten trajectory is converted into a skeleton-based geometric graph: Figure 2 As shown, the handwriting trajectory X=(x1,…,x n ,…,x N ) is directly converted to a skeleton-based geometry G = (V, E, P), where V = {v i |i=1,…,N}, represents a graph node (i.e., a trajectory point), E={i,j|v j →v i}, indicating edge (i.e., node connectivity), and P = {x i|i=1,…,N}, represents the Euclidean position of the node; therefore, without introducing any additional annotations, the multimodal data (X,G) can be directly constructed from the original trajectory, thereby explicitly encoding the geometric features and spatiotemporal information of the handwritten trajectory.

[0066] The data is processed using independent multimodal encoders, such as Figure 3 As shown, the specific steps include:

[0067] 1) For trajectory data, a trajectory encoder is used for processing, and a temporal convolutional recurrent network (TCRN) is introduced to capture the spatiotemporal information of the trajectory: The advantages of the temporal convolutional network (TCN) and the recurrent neural network (RNN) are fully integrated, and the temporal convolutional recurrent network (TCRN) is introduced to directly process the handwriting trajectory to capture the spatiotemporal information of the trajectory; specifically, given a handwriting trajectory X, the TCN module is first used To extract the local translation-invariant context feature z, that is:

[0068]

[0069] Then, we further use the RNN-based modules to capture long-term dependencies of higher-level outputs and learn the underlying semantic linguistics, namely:

[0070]

[0071] in, is a long short-term memory (LSTM) RNN, e t Feature encoding representing the trajectory.

[0072] 2) For graph data, a graph encoder is used for processing, and a pyramid graph network (PyGCN) is introduced to learn the topological structure of the graph: the advantages of graph convolutional network (GCN) and multi-head self-attention are fully integrated to learn the topological structure of the graph; specifically, the GCN module is first used To encode the local topological structure in graph G, that is:

[0073]

[0074] Among them, the graph convolution calculation of each layer is as follows:

[0075]

[0076] in, Represents a graph node v i The output after processing by the graph convolution layer; f(v i ) represents the graph node v i The feature representation of Represents a graph node vi Neighborhood The number of nodes in the graph, Represents the aggregation weight between the i-th node and the j-th node;

[0077] After that, we further adopt graph attention to model global relationships and promote the interaction between all graph nodes: Specifically, we first The node features of are input into a fully connected layer to generate a query with dimension D The key K and value V are then used to calculate the multi-head attention on the graph features as follows:

[0078]

[0079] Among them, e g It is the feature encoding of the geometric graph.

[0080] The cross-modal decoder based on graph structure guidance perception is used to iteratively output the target text sequence, such as Figure 3 , specifically including the following steps:

[0081] 1) The decoder part adopts a recursive autoregressive architecture, receives the encoding of multimodal data as input, and iteratively generates the target character sequence;

[0082] 2) Initial graph decoding first introduces an attention-based graph recurrent unit to capture the graph embedding g The geometric context features of the graph recursive unit can further guide the subsequent decoding process. First, hide the state according to the previous graph and the previous character y l-1 Compute a decoding state As shown below:

[0083]

[0084] Then, according to the graph embedding e g and its decoding status Update the hidden state of the graph using the attention mechanism As shown below:

[0085]

[0086] Among them, the hidden state of the graph The geometric structure of the handwritten trajectory graph is explicitly exploited;

[0087] 3) In early cross-modal fusion, the contextual features of the graph data (i.e., the geometric graph data in this invention) are used With the guidance of tSpecifically, the trajectory recursive unit (In this embodiment, the figure recursive unit and the trajectory recursive unit are constructed by RNN cell) according to the previous trajectory hidden state Previous character y l-1 and graph context As a graphical guide, calculate the decoding state As shown below:

[0088]

[0089] Among them, [·,·] represents a series operation; similarly, the trajectory hidden state The calculation by attention is as follows:

[0090]

[0091] Among them, the decoding process realizes cross-modal fusion;

[0092] 4) In late multimodal fusion, the cross-modal decoder fuses the multimodal hidden states and Calculate the lth character y l The probability is as follows:

[0093]

[0094] in represents the first l-1 characters, W is the weight matrix, and b is the bias;

[0095] 5) The training goal of the cross-modal decoder based on graph structure-guided perception is to maximize the likelihood over the entire dataset.

[0096] Under the condition of multimodal representation (X, G), generate the target character sequence y=(y1,…,y l ,…y L ),in is the alphabet; formally, y * = argmax y P(y|X,G), 'bos' means the beginning of sequence; 'eos' means the end of sequence; 'pad' means padding.

[0097] This embodiment also provides detailed configuration and training details of the neural network of the present invention, such as Figure 4 As shown, specifically including:

[0098] a) Network configuration:

[0099] 1) For the graph encoder, the present invention designs a graph network module (Graph-Trans-Block), in which each GTB block first undergoes two sets of identical structural processing and then undergoes a graph coarsening operation;

[0100] Each structure contains two layers. In the first layer, the image is first subjected to a graph convolution layer (GraphConv) with a convolution kernel size K of 3 and a step size S of 1. The processed data first passes through a fully connected layer (FC layer) and batch normalization (Batch Norm) on the residual block branch and then jumps to the back. On the trunk, it passes through batch normalization, a parameterized linear rectifier unit (PReLU), a graph convolution layer with a convolution kernel size K of 3 and a step size S of 1, and batch normalization. Then, it is added to the jump-connected data and passes through PReLU once.

[0101] In the second layer, the input data on the branch directly uses the identity mapping jump connection, and passes through layer normalization (LayerNorm), multi-head attention (Multi-Head Attention), random depth (DropPath) on the trunk in sequence, and then added to the jump connection data.

[0102] 2) In the graph encoder, 4 GTB blocks are included in sequence, and their feature dimensions D and attention heads N are 48, 72, 108, 160 and 2, 4, 6, 8 respectively.

[0103] 3) For the trajectory encoder, the present invention designs a temporal convolution block (Temporal-Conv-Block), which includes two layers;

[0104] In the first layer, a one-dimensional convolution (Conv1D) layer is used to process the time series trajectory data. The convolution kernel size K is 3, the step size S is 1, and the identical mapping jump connection is used on the branch. The trunk is sequentially subjected to batch normalization, PreLU, a one-dimensional convolution layer with a convolution kernel size K of 3 and a step size S of 1, batch normalization, and then added to the jump connection data and subjected to PReLU.

[0105] In the second layer, the skip connection identity mapping of the first layer is changed to a one-dimensional convolution layer with a convolution kernel size K of 3 and a step size S of 1, and a batch normalization; the step size S of the second one-dimensional convolution layer of the first layer backbone is changed to 2; the rest of the structure remains unchanged from the first layer.

[0106] 4) In the trajectory encoder, three TCB blocks and one bidirectional long short-term memory network (BLSTM) are included in sequence; the feature dimensions of the three TCB blocks are 64, 128, and 200 respectively, the feature dimension of one BLSMT block is 160, and the number of layers L is 2.

[0107] 5) In the multimodal decoder, the feature dimension of LSTMCell in the graph decoding part and the trajectory decoding part is 160, and the number of layers is 2.

[0108] b) Training details:

[0109] The entire network is implemented in PyTorch, and the model is optimized by the ADAM algorithm with a batch size of 128 and a learning rate of 0.001.

[0110] In this example, in order to verify the effectiveness of the method proposed in the present invention, this embodiment first evaluates the method proposed in the present invention and other air handwriting word recognition methods on the public air handwriting dataset IAHWE-UCAS2016. The dataset IAHWE-UCAS2016 is a large public air handwriting English word dataset contributed by 324 different participants, in which each handwriting sample is completed by a single stroke of air gesture, containing 150480 records, covering 2280 English words; in the experiment, two-thirds of the samples in each category were randomly selected as training data, and the rest were used as test data. The experimental results are as follows:

[0111] Table 1 Comparison between the present invention and the prior art on the IAHWE-UCAS2016 dataset

[0112]

[0113] In Table 1, this embodiment compares in detail the gap between the proposed method for air handwriting recognition in the present invention and the mainstream recognition methods in terms of character accuracy rate (CAR) and word recognition rate (WRR). The experiment shows that the proposed method for air handwriting recognition in the present invention has surpassed other mainstream methods and achieved the highest recognition accuracy rate on the IAHEW-UCAS2016 dataset. In general, the experimental results prove the effectiveness of the method of the present invention on the IAHEW-UCAS2016 dataset.

[0114] Furthermore, in order to verify the generalization ability and versatility of the proposed in-air handwriting recognition method, this embodiment conducted experiments on the widely used handwritten text dataset IAM-OnDB. IAM-OnDB is a widely used general online handwritten English text dataset, consisting of more than 1,700 handwritten English tables provided by 221 authors, including 13,049 lines of annotated text. The experimental results are as follows:

[0115] Table 2 Comparison between the present invention and the prior art on the IAM-OnDB dataset

[0116]

[0117] In Table 2, this embodiment compares in detail the differences between the in-air handwriting recognition method proposed in the present invention and the mainstream recognition methods in terms of character error rate (CER) and word error rate (WER). Experiments show that the in-air handwriting recognition method proposed in the present invention has surpassed other mainstream methods and achieved the lowest recognition error rate on the IAM-OnDB dataset, proving its effectiveness and generalization ability in handwritten text recognition.

[0118] In this example, in order to further verify the effectiveness of the cross-modal architecture and decoder fusion in the method provided by the present invention, for various situations of the cross-modal architecture and decoder fusion strategy, this embodiment conducted relevant ablation experiments on the IAHEW-UCAS2016 and IAM-OnDB datasets, and the experimental results are as follows:

[0119] Table 3 Ablation experiments of cross-modal architecture

[0120]

[0121] According to the ablation experiment of the cross-modal architecture in Table 3, it shows that:

[0122] 1. When processing trajectory data directly (using TCRN, considering only graphic trajectories), higher accuracy can be achieved, which shows that spatial-temporal information is very effective for handwriting recognition.

[0123] 2. Comparable accuracy can be achieved by only decoding the geometric graph (using Py GT, without considering the graph trajectory), indicating that the geometric structure helps with recognition.

[0124] 3. The proposed architecture integrating multimodal data achieves the best recognition performance because the model exploits the geometric structure and spatial-temporal information of handwritten characters.

[0125] Table 4 Ablation experiment of decoder fusion strategy

[0126]

[0127] The ablation experiment of the decoder fusion strategy in Table 4 shows that:

[0128] 1. When no fusion strategy is used, the recognition accuracy is low.

[0129] 2. The early fusion strategy brings performance improvement, indicating that combining different information early in the processing stage can improve the recognition rate.

[0130] 3. The late fusion strategy further improves the performance, which indicates that it is beneficial to combine information in the decoding stage.

[0131] 4. The combination of early and late fusion strategies achieves the best recognition performance, indicating that combining multiple information at different stages can significantly improve the accuracy of handwriting recognition.

[0132] The research results of the above ablation experiments emphasize the importance of using multimodal data and different fusion strategies to improve the accuracy of handwriting recognition, and further verify the effectiveness of the cross-modal handwritten text recognition method based on graphic structure guided perception provided by the present invention.

[0133] In summary, the examples of the present invention have verified the effectiveness of the cross-modal handwritten text recognition method based on graphic structure guided perception provided by the present invention through the above experiments. The method has good generalization ability in handwritten text recognition and has achieved the most advanced performance in handwritten text recognition in the air.

[0134] In addition, it is worth emphasizing that the above-mentioned embodiments are only preferred embodiments of the present invention and are only special cases, and should not be regarded as limiting the present invention. Any modification, replacement, improvement, etc. made within the concept and principle of the present invention should be included in the protection scope of the present invention.

[0135] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A cross-modal handwritten text recognition method based on graph structure guided perception, characterized in that: The user writes English words in the air with his hands through the VR device, and the VR device recognizes the gesture and records the writing trajectory in the air. The process of recognizing the writing trajectory includes the following steps: Converting the collected writing trajectories into skeleton-based geometric graphs; A trajectory encoder based on a temporal convolutional recurrent network is constructed, and the temporal and spatial information is extracted from the writing trajectory using the encoder to obtain the feature encoding of the writing trajectory. A graph encoder based on pyramid graph network is constructed, and the encoder is used to extract topological information from skeleton-based geometric graphs to obtain feature encoding of geometric graphs. A cross-modal decoder based on graph structure-guided perception is constructed, and the spatiotemporal information and topological information are input into the decoder as multimodal data. The decoder recognizes the letter sequence, which specifically includes the following steps: The graph recursive unit obtains a decoding state corresponding to the feature encoding of the current geometric graph according to the graph hidden state of the previous character geometric feature and the previous character; Update the hidden state of the graph that needs to predict the character geometry graph according to the feature encoding of the current geometry graph and its decoding state; The writing trajectory recursive unit obtains a decoding state corresponding to the feature encoding of the current writing trajectory according to the graph hidden state of the previous character writing trajectory, the graph hidden state of the previous character geometric features and the previous character; Update the hidden state of the graph that needs to predict the character writing trajectory according to the feature encoding and decoding state of the current writing trajectory; The probability of the current character to be predicted is calculated by fusing the hidden state of the graph of the character writing trajectory that needs to be predicted and the hidden state of the geometric graph, which is expressed as: in, Indicates the current lth character y l The probability of represents the first l-1 characters that have been predicted, X represents the writing trajectory, G represents the geometric graph based on the skeleton; W is the weight matrix, and b is the bias parameter; The current lth character y l The hidden state of the graph delivered by the writing trajectory; The current lth character y l Graph hidden states of geometric features.

2. According to claim 1, a cross-modal handwritten text recognition method based on graphic structure guided perception is characterized in that: The collected writing trajectory X=(x1,…,x n ,…,x N ) is converted into a skeleton-based geometric graph G = (V, E, P), Where V = {v i |i=1,…,N} represents the trajectory point, v i represents the i-th trajectory point, N is the number of trajectory points; E = {i, j | v j →v i } represents the connection between trajectory points, P = {x i |i=1,…,N} represents the Euclidean position of the node, x i Represents the spatial coordinates of the i-th trajectory point.

3. According to the cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1, it is characterized in that: The process of extracting spatiotemporal information from the written trajectory using a trajectory encoder based on a temporal convolutional recurrent network includes: Input the writing trajectory into the time series convolutional neural network to capture the spatiotemporal information of the writing trajectory and obtain local translation-invariant context features; The local translation-invariant contextual features are input into the LSTM-based recurrent neural network to learn implicit semantic features and output the feature encoding of the writing trajectory.

4. A cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1 or 3, characterized in that: The graph encoder based on the pyramid graph network consists of three temporal convolutional blocks and a bidirectional long short-term memory network cascade. The temporal convolutional block consists of the first convolution unit and the second convolution unit cascaded, where: The first convolution unit processes the input data in sequence through the first one-dimensional convolution layer, batch normalization layer, parameterized linear rectifier unit, second one-dimensional convolution layer, batch normalization layer, and then connects the output of the first one-dimensional convolution layer by data addition, and then activates it through a parameterized linear rectifier unit as the output of the first convolution unit; The first convolution unit processes the input data through the third one-dimensional convolution layer, batch normalization layer, parameterized linear rectification unit, fourth one-dimensional convolution layer, and batch normalization layer in sequence, and then connects the data processed by the first one-dimensional convolution layer, the fifth one-dimensional convolution layer, and the batch normalization layer through data addition, and then activates it through a parameterized linear rectification unit as the output of the second convolution unit.

5. The cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1, characterized in that: The process of extracting topological information from skeleton-based geometric graphs using a pyramid graph network-based graph encoder includes: The first graph feature is obtained by learning the topological structure from the skeleton-based geometric graph through the pyramid graph network; Input the first graph feature into the graph convolutional network to obtain its local topological feature, and obtain the second graph feature; Based on the multi-head attention mechanism, the multi-head attention on the features of the second graph is calculated to obtain the feature encoding of the geometric graph.

6. A cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1 or 5, characterized in that: The trajectory encoder based on the time convolutional recurrent network consists of four cascaded graph network modules, each of which consists of a cascaded first structure processing unit, a second structure processing unit, and a graph coarse-grained operation, where: The data input to the first structure processing unit is processed by a graph convolution layer and then input to the trunk and branches for processing respectively. The outputs of the trunk and branches are added and processed by a parameterized linear rectifier unit as the output of the first structure processing unit. The trunk is processed by a batch normalization layer, a parameterized linear rectifier unit, a graph convolution layer, and a batch normalization layer in sequence. The branches are processed by a fully connected layer and a batch normalization layer in sequence. The data input to the second structure processing unit is processed in sequence through layer normalization, multi-head attention, and random depth processing, and then added to the data input to the second structure processing unit as the output of the second structure processing unit.

7. The cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 6, characterized in that: The processing process of the graph convolution layer on the input data is expressed as: in, Represents a graph node v i The output after processing by the graph convolution layer; f(v i ) represents the graph node v i The feature representation of Represents a graph node v i Neighborhood The number of nodes in the graph; Represents the i-th graph node v i and the jth graph node v j The aggregation weight between .

8. The cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1, characterized in that: The process of obtaining the hidden state of the graph is expressed as: in, represents the hidden state of the graph corresponding to the feature x of the lth character, x = {g, t}, when x = g, feature x represents a geometric graph, and when x = t, feature x represents a writing trajectory; e x Represents the feature encoding of feature x; Indicates the decoding state corresponding to the feature encoding of feature x of the lth character.

9. A cross-modal handwritten text recognition method based on graphic structure guided perception according to claim 1 or 8, characterized in that: The decoding state corresponding to the feature encoding of the current writing trajectory is expressed as: The decoding state corresponding to the feature encoding of the current geometric graph is expressed as: in, The decoding state corresponding to the feature code representing the writing trajectory of the lth character; is the graph recursive unit for writing trajectories; represents the hidden state of the graph corresponding to the writing trajectory of the l-1th character, represents the hidden state of the geometric graph corresponding to the lth character, y l-1 Indicates the l-1th character; [·,·] indicates a concatenation operation; Indicates the decoding state corresponding to the feature encoding of the geometric graph of the lth character; Represents the hidden state of the graph corresponding to the l-1th character geometry.

Citation Information

Patent Citations

  • Handwriting recognition method and device, electronic equipment and storage medium

    CN115984877A

  • Air handwriting recognition method for virtual reality man-machine interaction

    CN117409423A