Method and device for recognizing writing behavior based on artificial intelligence

The writing behavior is recognized through the deep learning neural network model based on artificial intelligence, which solves the time-consuming, labor-intensive and low-accuracy problems of traditional behavior recognition technology, and achieves efficient and accurate writing behavior recognition.

CN112001236BInactive Publication Date: 2024-09-10SHANGHAI XINTU INTELLIGENT TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202010668299.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-13
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional behavior recognition technology is time-consuming and labor-intensive, has high labor costs, can easily lead to misjudgment, and cannot accurately identify writing behavior.

Method used

Using artificial intelligence-based methods, by receiving image data in real time, using deep learning neural network models, including recurrent neural networks and three-dimensional convolutional neural networks, to identify image sequences of writing tools and their nearby areas, and extract motion trajectories and image sequences , to achieve accurate recognition of writing behavior.

Benefits of technology

It improves the accuracy of behavior recognition, reduces labor costs, improves user experience, and achieves efficient recognition of writing behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112001236B
    Figure CN112001236B
Patent Text Reader

Abstract

The present invention provides a method and device for recognizing writing behavior based on artificial intelligence, including: acquiring collected image data that needs to be recognized for writing behavior in real time; locating the writing tool in the image data through a deep learning neural network model for image target recognition based on a convolutional neural network of a Densenet structure, or an image recognition backbone network based on a Resnet, VGG, or Darknet structure, and extracting the image sequence of the writing tool and the area near the writing tool frame by frame in chronological order; using a deep learning neural network model based on a Densenet structure, recognizing and outputting the writing behavior state of the extracted image sequence. The embodiment of the present invention realizes the recognition of writing behavior, improves the accuracy of behavior recognition, better meets the needs of users, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for recognizing writing behavior based on artificial intelligence. Background Art

[0002] Artificial Intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial Intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems.

[0003] With the popularization of Internet technology and the development of artificial intelligence, artificial intelligence has become increasingly important in behavior recognition applications.

[0004] Traditional behavior recognition mainly relies on dedicated personnel to monitor and analyze the surveillance images. Therefore, this behavior recognition method is time-consuming and labor-intensive, has high labor costs, and is greatly affected by human subjective factors. It is easy to miss suspicious situations in the surveillance images, and therefore it is impossible to accurately judge behavioral actions. Summary of the invention

[0005] The present application provides a method and device for recognizing writing behavior based on artificial intelligence, aiming to solve the problems of existing behavior recognition technology being time-consuming and labor-intensive, high in labor costs, and prone to errors, thereby realizing the recognition of writing behavior.

[0006] In an embodiment of the first aspect of the present application, a method for recognizing writing behavior based on artificial intelligence is proposed, comprising:

[0007] Receive and collect image data that needs to be used for writing behavior recognition in real time;

[0008] Extracting an image sequence of a writing tool and an area near the writing tool from the image data in chronological order;

[0009] Using the preset deep learning neural network model, the writing behavior state of the extracted image sequence is identified and output.

[0010] Furthermore, receiving in real time the collected image data that needs to be recognized for writing behavior further includes:

[0011] Image data collected in real time by an image collection device is received, wherein the image data includes a plurality of interaction subjects.

[0012] Furthermore, extracting a writing tool image sequence from the image data in chronological order further comprises:

[0013] A set of continuous image data is acquired in chronological order; a writing tool among multiple interactive subjects in each frame of image data is identified, and the writing tool is used as an interactive focus; the interactive focus of each frame of image data is located, an image sequence of the interactive focus is extracted, and a motion trajectory of the interactive focus is acquired.

[0014] Furthermore, extracting an image sequence of an area near the writing tool from the image data in chronological order further includes:

[0015] A set of continuous image data is extracted in chronological order; writing tools among multiple interactive subjects in each frame of image data are identified, and the writing tools are used as interactive focuses; the interactive focus of each frame of image data is located, and the focus area image within a preset range near the interactive focus is extracted to obtain an image sequence of the interactive focus area.

[0016] Furthermore, the deep learning neural network model adopts a recurrent neural network model, and training the recurrent neural network model includes:

[0017] A recurrent neural network is constructed, a plurality of the image sequences are acquired and labeled, the labeled image sequences are input into the recurrent neural network, data is looped back and transmitted in the time evolution direction, and a recognition result is output.

[0018] Furthermore, the deep learning neural network model adopts a three-dimensional convolutional neural network model, and training the three-dimensional convolutional neural network model includes:

[0019] Construct a three-dimensional convolutional neural network, obtain multiple image sequences, input the multiple image sequences into the three-dimensional convolutional neural network as a three-dimensional data as a whole, and use the time axis as the third dimension to output the recognition results of any scale on the time axis.

[0020] In an embodiment of the second aspect of the present application, a writing behavior recognition device based on artificial intelligence is proposed, which adopts the writing behavior recognition method based on artificial intelligence as described in any one of the above, including: an acquisition module, an extraction module, and a processing module.

[0021] The acquisition module is used to acquire the collected image data that needs to be used for writing behavior recognition;

[0022] The extraction module is used to extract the image sequence of the writing tool and the area near the writing tool from the image data in time sequence;

[0023] The processing module is used to use a preset deep learning neural network model to perform writing behavior recognition on the extracted image sequence and output it.

[0024] Furthermore, the processing module includes a first extraction module and a second extraction module.

[0025] The first extraction module is used to obtain a set of continuous image data in time sequence; identify the writing tools among the multiple interactive subjects in each frame of image data, and use the writing tools as the interactive focus; locate the interactive focus of each frame of image data, extract the image sequence of the interactive focus, and obtain the motion trajectory of the interactive focus;

[0026] The second extraction module is used to extract a set of continuous image data in chronological order; identify writing tools among multiple interactive subjects in each frame of image data, and use the writing tools as the interactive focus; locate the interactive focus of each frame of image data, extract the focus area image within a preset range near the interactive focus, and obtain an image sequence of the interactive focus area.

[0027] In an embodiment of the third aspect of the present application, a terminal device is proposed, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for recognizing writing behavior based on artificial intelligence as proposed in the first aspect is implemented.

[0028] In an embodiment of the fourth aspect of the present application, a computer-readable storage medium is proposed, on which a computer program is stored. When the program is executed by a processor, the method for recognizing writing behavior based on artificial intelligence as proposed in the first aspect is implemented.

[0029] Compared with the prior art, the embodiment of the present application realizes the recognition of writing behavior by extracting several image sequences and inputting them into the deep learning neural network model, thereby improving the accuracy of behavior recognition, better meeting user needs, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A flow chart of a method for recognizing writing behavior based on artificial intelligence according to an embodiment of the present invention;

[0031] Figure 2 A schematic diagram of a convolutional network neural recognition principle according to an embodiment of the present invention;

[0032] Figure 3 A schematic diagram of the RNN structure of a recurrent neural network model according to an embodiment of the present invention;

[0033] Figure 4 A schematic diagram of a recurrent neural network model RNN recognition principle according to an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of the structure of a three-dimensional convolutional neural network model according to an embodiment of the present invention;

[0035] Figure 6 A three-dimensional convolutional neural network model RNN recognition principle diagram of an embodiment of the present invention;

[0036] Figure 7 A structural block diagram of a writing behavior recognition system based on artificial intelligence according to an embodiment of the present invention.

[0037] Figure 8 This is a structural diagram of a writing behavior recognition device based on artificial intelligence according to an embodiment of the present invention; DETAILED DESCRIPTION

[0038] The embodiments of the present invention are described in detail below, and the embodiments are identified in the accompanying drawings, wherein the same or similar reference numerals throughout identify the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, but are not to be construed as limiting the present invention.

[0039] Specifically, the embodiments of the present invention are intended to address the problem that in the prior art, behavior recognition mainly relies on manual recognition, which is time-consuming and labor-intensive, has high labor costs and a high error rate, and propose a method for recognizing writing behavior based on artificial intelligence. The method for recognizing writing behavior based on artificial intelligence provided in the embodiments of the present application obtains a continuous period of image data in chronological order, and uses a trained deep neural network model to recognize writing behavior, thereby improving the accuracy of writing behavior, better meeting user needs, and improving user experience.

[0040] The following reference figures describe the method and device for recognizing writing behavior based on artificial intelligence according to an embodiment of the present invention.

[0041] Embodiment 1

[0042] refer to Figure 1 As shown, this embodiment provides a method for recognizing writing behavior based on artificial intelligence, which may include the following steps.

[0043] Step 101, acquiring in real time the collected image data that needs to be used for writing behavior recognition.

[0044] The subject of the recognition of writing behavior based on artificial intelligence provided by the embodiment of the present invention is the device for recognizing writing behavior based on artificial intelligence provided by the embodiment of the present invention. The device is configured with an image acquisition device that can acquire image data in real time. Therefore, the device can be configured in any terminal device with image acquisition function to realize the recognition of writing behavior.

[0045] Furthermore, in this embodiment, the image acquisition device acquires image data in real time, and the image data includes multiple interactive subjects. The image data includes at least interactive subjects such as writing tools, writing media, and hands, and the hands hold the writing tools and write on the writing media. The purpose of this embodiment is to identify the image area of ​​the writing tools and the writing tool accessories through the image acquisition device to determine the writing behavior state. The handwriting information left by the writing tool can be determined when the writing medium is written.

[0046] Step 102, locate the writing tools in the image data through an image target recognition deep learning neural network model based on a convolutional neural network with a Densenet structure, or an image recognition backbone network based on a Resnet, VGG or Darknet structure, and extract an image sequence of the writing tools and the writing tool accessory area frame by frame in chronological order.

[0047] In the simple deep neural network model based on Densenet, the Densenet algorithm is consistent with the ResNet algorithm, establishing dense connections between all the previous layers and the subsequent layers. However, the DenseNet algorithm achieves feature reuse by connecting features on channels, and DenseNet achieves better performance than ResNet with fewer parameters and computational costs.

[0048] In the image recognition backbone network based on Resnet, VGG or Darknet structure, Resnet network can accelerate the training of neural network very quickly and improve the accuracy of the model. At the same time, ResNet has very good generalizability and can even be directly used in InceptionNet network. ResNet adds a direct channel to the network, that is, the idea of ​​HighwayNetwork. ResNet solves the problems of information loss and loss in traditional convolutional networks or fully connected networks to a certain extent when transmitting information. It also solves the problem of gradient disappearance or gradient explosion. Since very deep networks cannot be trained, by directly bypassing the input information to the output, the integrity of the information is protected. The entire network only needs to learn the difference between input and output, simplifying the learning objectives and difficulty. VGG network, VGGNet all use 3*3 convolution kernels and 2*2 pooling kernels, and improve performance by continuously deepening the network structure. The increase in the number of network layers does not bring about an explosion in the number of parameters, because the number of parameters is mainly concentrated in the last three fully connected layers. At the same time, the series connection of two 3*3 convolutional layers is equivalent to a 5*5 convolutional layer, and the series connection of three 3*3 convolutional layers is equivalent to a 7*7 convolutional layer, that is, the receptive field size of three 3*3 convolutional layers is equivalent to that of one 7*7 convolutional layer. However, the number of parameters of three 3*3 convolutional layers is only about half of that of 7*7. At the same time, the former can have three nonlinear operations, while the latter has only one nonlinear operation, which makes the former have stronger learning ability for features. Using 1*1 convolutional layers to increase linear transformations does not change the number of output channels. Here are other uses of 1*1 convolutional layers. 1*1 convolutional layers are often used to refine features, that is, the features of multiple channels are combined together and condensed into outputs of larger or smaller channels, while the size of each image remains unchanged. Sometimes 1*1 convolutional neural networks can also be used to replace fully connected layers. When training, VGGNet first trains a simple network of level A, and then reuses the weights of the A network to initialize the following complex models, so that the convergence speed is faster. The author of VGGNet concluded that the LRN layer is not very useful, the deeper the network, the better the effect. 1*1 convolution is also very effective, but not as good as 3*3 convolution, because the 3*3 network can learn larger spatial features.The Darknet network is easy to install: select the additional items you need in the makefile (cuda, cudnn, opencv, etc.) and run make directly, and the installation will be completed in a few minutes; there is no dependency: the entire framework is written in C language and does not rely on any library. Even the opencv author has written functions that can replace it; the structure is clear, and the source code is easy to view and modify: the basic files of the framework are in the src folder, and some defined detection and classification functions are in the example folder. The source code can be directly viewed and modified as needed; friendly python interface: although darknet is written in c language, it also provides a python interface. Through python functions, python can be used to directly call the trained .weight format model; easy to port: the framework is very simple to deploy locally on the machine, and can use cpu and gpu according to the machine situation, especially for local deployment of detection and recognition tasks, darknet will be extremely convenient.

[0049] An image sequence is a group of continuous image data in chronological order, image data of the same size at fixed time intervals. Of course, it can also be considered as a piece of video data.

[0050] This step includes extracting an image sequence of the writing tool frame by frame according to the time sequence of the image data, and extracting an image sequence of the writing tool accessory area frame by frame according to the time sequence of the image data.

[0051] Extracting the image sequence of the writing tool from the image data frame by frame in chronological order further includes acquiring a group of continuous image data in chronological order; identifying the writing tool among multiple interactive subjects in each frame of image data, and taking the writing tool as the interactive focus; locating the interactive focus of each frame of image data, extracting the image sequence of the interactive focus, and acquiring the motion trajectory of the interactive focus.

[0052] Extracting an image sequence of an area near a writing tool from image data frame by frame in chronological order further includes: extracting a group of continuous image data frame by frame in chronological order; identifying a writing tool among multiple interactive subjects in each frame of image data, and taking the writing tool as an interactive focus; locating the interactive focus of each frame of image data, extracting an image of a focus area within a preset range near the interactive focus, and obtaining an image sequence of the interactive focus area.

[0053] Furthermore, in this step 102, the recognition of the writing tool is completed by the writing tool positioning neural network. The network consists of a 5-layer convolutional neural network and a 3-layer deconvolutional neural network. The network output is a feature image with the same size as the input image. During training, the target feature image is a two-dimensional normal distribution X~N(u, d) centered on the pen tip of the writing tool, where the maximum value at the pen tip is 1, and gradually decreases to 0 toward the edge. It looks like a light spot centered on the pen tip to the naked eye. The loss function of the neural network is the L1 error between the target feature image and the inference feature image. The optimization algorithm uses AdamSGD, with training data of about 1 million images and 1 million iterations to converge. The output of the convolution encoder is the input of the deconvolution decoder. The approximate position of the pen tip is obtained through the neural network, and with this position as the reference center, the offset calculation is performed in the four directions of up, down, left and right to cut out the image of the area near the writing tool. The specific offset distance needs to be adjusted proportionally according to the size of the writing tool itself.

[0054] Step 103, using a deep learning neural network model based on a Densenet structure, recognize and output the writing behavior state of the extracted image sequence.

[0055] The recognition of the writing behavior state is that, in a determined image sequence, for example, some (ratio range is 0-100%) continuous frames of image data are in a writing state, wherein the writing state mark can be marked as 1, and the non-writing state can be marked as 0. In this embodiment, a sufficient number of image sequences are collected and marked.

[0056] Furthermore, the recognition of the writing behavior state is completed by the writing state recognition neural network. There are three different sets of technical principles for this network. The first solution uses a deep convolutional neural network (CNN) to extract features from each frame of the image separately. The input data is a picture with a resolution of 240-800, and the features are extracted through 3-7 CNN modules. The CNN module includes a convolution layer, a pooling layer, and an excitation layer. After feature extraction, the CNN module sequence will be output to the softmax layer for classification. The writing state of each frame is obtained. The second solution is based on the use of the above-mentioned CNN structure, and a recurrent neural network of corresponding data size is linked after the CNN module sequence, so as to link the extracted features of multiple consecutive frames. Through the loop and temporal memory function of the RNN network, the coherent information of multiple frames before and after is compared, and the data of a certain length (3-10 frames, about 1-3 seconds) is analyzed to obtain a writing state classification and recognition result with better accuracy. The third solution uses a three-dimensional convolutional neural network and outputs multiple consecutive frames of images at the same time. It extracts features through a three-dimensional CNN module. Its input data is multiple frames of image data of the same size. Therefore, in addition to the width and height of the image, the data dimension has an additional time dimension, which is called three-dimensional convolution. The size of the corresponding CNN module sequence has also changed from two-dimensional to three-dimensional. However, its basic structure and calculation method remain completely unchanged. Through this solution, multiple sequence images can be directly extracted for features and directly connected to the softmax classifier for writing state recognition and classification.

[0057] As shown in Reference 2-6, in this embodiment, the deep learning neural network model may include but is not limited to a recurrent neural network model and a three-dimensional convolutional neural network model.

[0058] Training the recurrent neural network model includes: building a recurrent neural network, acquiring and labeling multiple image sequences, inputting the labeled image sequences into the recurrent neural network, performing data loop feedback and transmission in the direction of time evolution, and outputting recognition results

[0059] Furthermore, a recurrent neural network structure is constructed, which can be a standard recurrent neural network structure such as RNN, LSTM, GRU, etc. A recurrent neural network is a type of neural network structure that takes sequence data as input, performs cyclic feedback and transmission of data in the direction of time evolution, and finally outputs.

[0060] At the output layer, the output result can be a discrete classification result or a continuous regression value. At the output quantity level, the output structure can be a single result or multiple results that are continuous and evolve over time.

[0061] In this embodiment, the recurrent neural network structure is trained using labeled image data. When a real-time sequence is continuously input into the recurrent neural network structure, the structure can continuously output the classification results of the input sequence corresponding to a fixed time length at each time scale in real time, so that in the real-time image acquisition process, it can be known through the calculation of the recurrent neural network whether the actual physical phenomenon represented by the series of image sequences corresponding to the current moment is in a writing state.

[0062] Recurrent neural networks can output results related only to past time data at a certain moment without obtaining all the data in this time period.

[0063] Training a three-dimensional convolutional neural network model includes: constructing a three-dimensional convolutional neural network, acquiring multiple image sequences, inputting the multiple image sequences into the three-dimensional convolutional neural network as a three-dimensional data as a whole, and taking the time axis as the third dimension to output recognition results of any scale on the time axis.

[0064] The three-dimensional convolutional neural network of this embodiment uses the time axis as the third dimension and can also complete the work content of the recurrent neural network. The deep learning neural network does not emphasize the relationship between the time evolution direction and the data input. In the three-dimensional convolutional neural network of this embodiment, the image sequence is input into the three-dimensional convolutional neural network as a three-dimensional data entity. By designing a three-dimensional convolution kernel to extract the logical information in the entire data entity, the output result can be a discrete classification result or a continuous regression value. The output structure can also be a result on multiple time scales.

[0065] When a three-dimensional convolutional neural network is trained on the same set of data, for example, pictures with the same size, content, time, and length, it can only output recognition results at any time scale within this time period after obtaining all the data within this time period. This may cause delays in the data at each moment, but this may also lead to higher accuracy.

[0066] Embodiment 2

[0067] refer to Figure 7 As shown, this embodiment provides a writing behavior recognition system based on artificial intelligence, adopting the writing behavior recognition method based on artificial intelligence of embodiment one, and the system includes: an acquisition module 100, an extraction module 200, and a processing module 300.

[0068] The acquisition module 100 is used to acquire the collected image data that needs to be used for writing behavior recognition.

[0069] The extraction module 200 is used to locate the writing tool in the image data through an image target recognition deep learning neural network model based on a convolutional neural network with a Densenet structure, or based on a conventional image recognition backbone network, and to extract an image sequence of the writing tool and the area near the writing tool frame by frame in chronological order.

[0070] The extraction module 200 includes a first extraction module 200 and a second extraction module 200. The first extraction module 200 is used to obtain a set of continuous image data frame by frame in chronological order; identify writing tools among multiple interactive subjects in each frame of image data, and use the writing tools as the interactive focus; locate the interactive focus of each frame of image data, extract the image sequence of the interactive focus, and obtain the motion trajectory of the interactive focus; the second extraction module 200 is used to extract a set of continuous image data frame by frame in chronological order; identify writing tools among multiple interactive subjects in each frame of image data, and use the writing tools as the interactive focus; locate the interactive focus of each frame of image data, extract the focus area image within a preset range near the interactive focus, and obtain the image sequence of the interactive focus area.

[0071] The processing module 300 is used to use a preset deep learning neural network model to perform writing behavior recognition on the extracted image sequence.

[0072] This embodiment is based on a writing behavior recognition system based on artificial intelligence, and applies the writing behavior recognition method based on artificial intelligence in Embodiment 1 to provide a writing behavior recognition device based on artificial intelligence. Figure 8 As shown, the apparatus includes a camera device 11, an AI smart device 10, and an output device. In one embodiment, the camera device 11 and the output device are embedded in the AI ​​smart device 10.

[0073] The camera device 11 is used to collect image data required for writing behavior recognition.

[0074] The AI ​​smart device 10 is used to acquire collected image data that needs to be used for writing behavior recognition; extract the image sequence of the writing tool and the area near the writing tool from the image data in chronological order; further includes acquiring a group of continuous image data in chronological order; identifying the writing tool among multiple interactive subjects in each frame of image data, and using the writing tool as the interaction focus; locating the interaction focus of each frame of image data, extracting the image sequence of the interaction focus, and obtaining the motion trajectory of the interaction focus; and extracting a group of continuous image data in chronological order; identifying the writing tool among multiple interactive subjects in each frame of image data, and using the writing tool as the interaction focus; locating the interaction focus of each frame of image data, extracting the focus area image within a preset range near the interaction focus, and obtaining the image sequence of the interaction focus area; further using a preset deep learning neural network model to perform writing behavior recognition on the extracted image sequence.

[0075] The output device is used to output the recognition results of the AI ​​smart device in the form of voice or image / video.

[0076] The output device in the writing behavior recognition apparatus based on artificial intelligence provided in this embodiment may be a display device, such as a display tool including a display screen 12 or an indicator light, to prompt that the writing behavior is currently being performed.

[0077] An embodiment of the present invention proposes a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, a method for recognizing writing behavior based on artificial intelligence as in the aforementioned embodiment is implemented.

[0078] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for recognizing writing behavior based on artificial intelligence as in the aforementioned embodiment is implemented.

[0079] In addition, an embodiment of the present invention further provides a computer program product. When an instruction processor in the computer program product is executed, the method for recognizing writing behavior based on artificial intelligence as in the aforementioned embodiment is executed.

[0080] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0081] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0082] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0084] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0085] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0086] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module 300, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0087] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0088] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. Recognition method of writing behavior based on artificial intelligence, It is characterized in that The method comprises: Acquire the collected image data required for writing behavior recognition in real time; Using a deep learning neural network model for image target recognition based on a convolutional neural network with a Densenet structure, or an image recognition backbone network based on a Resnet, VGG, or Darknet structure, the writing tool in the image data is located, and an image sequence of the writing tool and the area near the writing tool is extracted frame by frame in chronological order; Using a deep learning neural network model based on the Densenet structure, the writing behavior state of the extracted image sequence is recognized and output; The deep learning neural network model adopts a recurrent neural network model, and training the recurrent neural network model includes: constructing a recurrent neural network, acquiring and marking a plurality of the image sequences, inputting the marked image sequences into the recurrent neural network, performing data cyclic feedback and transmission in the time evolution direction, and outputting a recognition result; or The deep learning neural network model adopts a three-dimensional convolutional neural network model, and training the three-dimensional convolutional neural network model includes: constructing a three-dimensional convolutional neural network, obtaining multiple image sequences, inputting the multiple image sequences into the three-dimensional convolutional neural network as a three-dimensional data as a whole, and taking the time axis as the third dimension, and outputting the recognition results of any scale on the time axis.

2. The method for recognizing writing behavior based on artificial intelligence as claimed in claim 1, It is characterized in that Real-time acquisition of collected image data that needs to be used for writing behavior recognition further includes: Image data collected in real time by an image acquisition device is acquired, wherein the image data includes a plurality of interactive subjects.

3. The method for recognizing writing behavior based on artificial intelligence as claimed in claim 2, It is characterized in that Extracting a writing tool image sequence from the image data in chronological order further comprises: A set of continuous image data is acquired frame by frame in chronological order; a writing tool among multiple interactive subjects in each frame of image data is identified, and the writing tool is used as an interactive focus; the interactive focus of each frame of image data is located, an image sequence of the interactive focus is extracted, and a motion trajectory of the interactive focus is acquired.

4. The method for recognizing writing behavior based on artificial intelligence as claimed in claim 3, It is characterized in that Extracting an image sequence of an area near a writing tool frame by frame from the image data in time sequence, further comprising: A set of continuous image data is extracted frame by frame in chronological order; a writing tool among multiple interactive subjects in each frame of image data is identified, and the writing tool is used as an interactive focus; the interactive focus of each frame of image data is located, and a focus area image within a preset range near the interactive focus is extracted to obtain an image sequence of the interactive focus area.

5. Writing behavior recognition device based on artificial intelligence, It is characterized in that The method for recognizing writing behavior based on artificial intelligence as described in any one of claims 1 to 4 is adopted, wherein the device comprises: an acquisition module, an extraction module, and a processing module. The acquisition module is used to acquire the collected image data that needs to be used for writing behavior recognition in real time; The extraction module is used to locate the writing tool in the image data through an image target recognition deep learning neural network model based on a convolutional neural network with a Densenet structure, or based on a conventional image recognition backbone network, and extract an image sequence of the writing tool and the area near the writing tool frame by frame in chronological order; The processing module is used to use a deep learning neural network model based on a Densenet structure to perform writing behavior recognition on the extracted image sequence and output it; The deep learning neural network model adopts a recurrent neural network model, and training the recurrent neural network model includes: constructing a recurrent neural network, acquiring and marking a plurality of the image sequences, inputting the marked image sequences into the recurrent neural network, performing data cyclic feedback and transmission in the time evolution direction, and outputting a recognition result; or The deep learning neural network model adopts a three-dimensional convolutional neural network model, and training the three-dimensional convolutional neural network model includes: constructing a three-dimensional convolutional neural network, obtaining multiple image sequences, inputting the multiple image sequences into the three-dimensional convolutional neural network as a three-dimensional data as a whole, and taking the time axis as the third dimension, and outputting the recognition results of any scale on the time axis.

6. The writing behavior recognition device based on artificial intelligence as claimed in claim 5, It is characterized in that The extraction module includes a first extraction module and a second extraction module. The first extraction module is used to acquire a set of continuous image data frame by frame in time sequence; identify the writing tools among the multiple interactive subjects in each frame of image data, and use the writing tools as the interaction focus; Positioning the interactive focus of each frame of image data, extracting an image sequence of the interactive focus, and obtaining a motion trajectory of the interactive focus; The second extraction module is used to extract a set of continuous image data frame by frame in time sequence; Identify a writing tool among a plurality of interaction subjects in each frame of image data, and use the writing tool as an interaction focus; The interactive focus of each frame of image data is located, and a focus area image within a preset range near the interactive focus is extracted to obtain an image sequence of the interactive focus area.

7. A terminal device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for recognizing writing behavior based on artificial intelligence as described in any one of claims 1 to 4 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for recognizing writing behavior based on artificial intelligence as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Writing detection device

    CN103109251A

  • Stroke segmentation method based on writing video and calligraphy copying guiding method

    CN108764070A

  • A finger clicking character recognition method and a translation method based on artificial intelligence

    CN109325464A

  • Blackboard writing behavior recognition method and device and camera

    CN110765814A

  • Student classroom behavior identification method based on convolutional neural network

    CN110941976A