A real-time feedback and evaluation method for children's digital writing practice

Through the combination of convolutional neural network and TensorFlow deep learning framework, the strokes and stroke order of children's handwritten numbers are evaluated, real-time feedback is provided, and the problem of failing to effectively judge the writing quality in the existing technology is solved, improving the effect and effectiveness of children's digital writing practice. Fun.

CN114140799BActive Publication Date: 2024-09-06HANGZHOU NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110917401.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-09-06
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

Existing children's handwritten digit recognition applications fail to effectively judge the writing quality. They only focus on whether the red outline of the handwritten digits matches, and fail to judge the strokes, stroke order and other factors, resulting in ineffective digital writing practice for young groups.

Method used

It uses a convolutional neural network combined with the TensorFlow deep learning framework to evaluate the strokes, stroke order, and aesthetics of handwritten digits through skeleton extraction and feature analysis, and provides real-time feedback to improve the practice effect.

Benefits of technology

It improves the fun and learning efficiency of children's number writing exercises, stimulates children's interest in numbers, and improves the effect of number practice without supervision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140799B
    Figure CN114140799B
Patent Text Reader

Abstract

The present invention belongs to the field of computers, and specifically relates to a real-time feedback and evaluation method for children's digital writing practice, including: inputting handwritten numbers to be recognized; using a convolutional neural network to recognize the specific numbers written; extracting the skeleton of the handwritten numbers; extracting the features of the handwritten numbers based on the skeleton; judging the handwritten numbers based on the judgment rules of the specific numbers and the features of the handwritten numbers; and outputting the evaluation results of the digital writing quality. The present invention only needs to equip a mobile phone or computer with basic interactive devices, such as a touch screen or a digital tablet, to realize digital writing practice, which is very convenient and fast, and can improve learning interest and learning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computers, and in particular relates to a real-time feedback and evaluation method for children's digital writing practice. Background Art

[0002] In recent years, children have been using more and more tablets and computers. The number of children's skill learning apps in different fields has also increased at an alarming rate, and gamification teaching has been widely used. According to a study by Chang wan Chen et al., children can pay more attention to their writing and improve their writing skills in a gamified environment. Quinn Margaret et al. analyzed the key skills, interactivity, and evaluation capabilities of 633 related apps. The study found that although low-cost and free apps designed to support writing are prevalent, the content processed by these apps is highly limited and is relatively low in various quality metrics. Handwritten digit recognition is the basis for writing quality evaluation. Huang Rui et al. used the TensorFlow deep learning CNN model in handwritten digit recognition, and the recognition rate has reached 99.17%. It was ported to the Android platform for application, but there were no constraints on the specifications of the digits, and only handwritten digits were recognized. Lv Hong et al. also only considered the recognition of handwritten digits, and did not constrain the quality of the written digits themselves.

[0003] At present, there are an endless stream of handwritten number recognition applications and children's writing practice applications. However, the handwritten numbers input by children in the relevant applications on the market are often identified in the form of tracing. As long as the handwriting in the traced area matches, the writing is judged to be correct. However, the strokes, stroke order and other factors that should be considered are not judged, and it cannot provide obvious help for the digital writing practice of young children.

[0004] In addition, the traditional number writing practice program is not encouraging teaching. It is not easy for young children to have a sense of accomplishment, and it is difficult for number writing practice to produce significant results. Students often stop practicing after passing, and the practice effect is not obvious. Summary of the invention

[0005] In order to make up for the deficiencies of the prior art, the present invention provides a technical solution for a real-time feedback and evaluation method for children's digital writing practice.

[0006] The real-time feedback and evaluation method for children's digital writing practice provided by the present invention allows children to practice writing numbers in a grid and corrects them according to the stroke order and writing aesthetics, thus filling this gap and enabling young children to practice writing numbers without anyone around, which greatly improves the effect of children's digital practice, greatly increases the fun of learning, and stimulates children's interest in numbers.

[0007] To achieve the above object, the technical solution of the present invention is:

[0008] A real-time feedback and evaluation method for children's digital writing practice, characterized by comprising the following steps:

[0009] S1 inputs the handwritten number to be recognized;

[0010] S2 uses a convolutional neural network to recognize the specific numbers written;

[0011] S3 performs skeleton extraction on handwritten digits;

[0012] S4 extracts the features of handwritten digits based on the skeleton;

[0013] S5 judges the handwritten digits according to the judgment rules of specific digits and the characteristics of the handwritten digits;

[0014] S6 outputs the evaluation results of the digital writing quality.

[0015] Furthermore, in step S2, based on the TensorFlow deep learning framework, a convolutional neural network model structure is used to train the handwritten samples of MNIST to recognize handwritten digits.

[0016] Further, in step S3, the skeleton of the handwritten digit is extracted using the Hilditch thinning algorithm to generate a further step S4 comprising: extracting one or more information of the strokes, starting point position, end point position, stroke order, number of straight lines, number of arc lines, corner point position, overall position and pixel ratio of the digit;

[0017] Specifically include:

[0018] S4.1 obtains the handwriting image data after thinning;

[0019] S4.2 obtaining the number of strokes, the number of strokes, the stroke position and the stroke starting position characteristics of the handwritten digits according to the handwriting data;

[0020] S4.3 performs Hough line transformation on the handwriting skeleton data to obtain the straight line number features of the digits;

[0021] S4.4 performs Hough circle transform on the handwriting skeleton data to obtain the number characteristics of closed arcs of the digits;

[0022] S4.5 obtains the characteristic points of the handwriting skeleton data, generates a second-order Bezier curve, and compares and obtains the position and quantity characteristics of the non-closed arc;

[0023] S4.6 uses the Harris corner detection method to directly extract corner features based on the grayscale image to perform corner detection on the digits, obtain the intersection features of the handwritten digits, and obtain the intersection position;

[0024] S4.7 determines the overall size and position characteristics based on the entire handwriting data.

[0025] Furthermore, in step S4.2, the digital handwriting data is analyzed to identify the number of strokes, and the number of inputs of the input device is obtained. Among the numbers 0-9, only 4 and 5 need to be entered twice, and the other numbers are only entered once; the judgment is made based on the starting and ending positions of the strokes on the input page; when there are multiple strokes, the starting and ending positions of each stroke are recorded; and the stroke order of each stroke is judged based on the starting and ending positions of each stroke.

[0026] Furthermore, in step S5, normative constraints are applied to the features acquired in step S4.

[0027] Furthermore, in step S6, real-time feedback is provided for features that do not meet the specifications.

[0028] Compared with the prior art, the beneficial effect of the present invention is that the present invention only needs to equip the mobile phone or computer with basic interactive devices, such as a touch screen or a digital tablet, to realize the practice of digital writing, which is very convenient and fast, and can improve learning interest and learning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A flow chart of a method for real-time feedback and evaluation of digital writing practice for children provided by an embodiment of the present invention;

[0030] Figure 2 A template for digital writing in an embodiment of the present invention;

[0031] Figure 3 Schematic diagram of the impact of line thinning on corner point detection in an embodiment of the present invention;

[0032] Figure 4 A schematic diagram comparing different Hough line transformations in an embodiment of the present invention;

[0033] Figure 5 This is a schematic diagram of the closed arc recognition effect in an embodiment of the present invention;

[0034] Figure 6 Schematic diagram of characteristic points of number "2" in an embodiment of the present invention;

[0035] Figure 7 A digital schematic diagram including corner points in an embodiment of the present invention;

[0036] Figure 8Schematic diagram of the starting and ending positions of the number “2” in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In the description of the present invention, it is necessary to understand that the terms "one end", "the other end", "outside", "upper", "inside", "horizontal", "coaxial", "center", "end", "length", "outer end" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0038] The present invention will be further described below in conjunction with the accompanying drawings.

[0039] Example 1

[0040] Figure 1 A flow chart showing a method for real-time feedback and evaluation of children's digital writing practice, comprising:

[0041] S1 uses the learning device to start the software and write digital handwriting through the learning device;

[0042] The S2 learning device recognizes the written numbers and has different number specifications for different numbers;

[0043] S3 extracts the skeleton of the written numbers;

[0044] S4 extracts digital features;

[0045] S5 determines the digital features;

[0046] S6 provides real-time feedback on results.

[0047] In S1, the learning device may be a computer, or an electronic device for learning that supports pen-based interaction, such as a mobile phone, which is not limited in this embodiment.

[0048] Understandably, according to Figure 2 The template shown uses an electronic device to input handwritten numbers; further, based on the position information of the handwritten numbers, the number of inputs required to write the numbers is completed, and the strokes and stroke order of the numbers are judged. If they do not meet the standards, real-time feedback is given to the user.

[0049] It can be understood that in S2, the input handwritten number will be recognized as a corresponding number, so that the handwritten number is constrained by the corresponding number specification.

[0050] For example, when a user writes in the number "3", the system will first recognize that this is the number "3", and then use the various standards of "3" to judge the written "3".

[0051] It can be understood that in S3, the evaluation of numbers depends on various features, such as whether the numbers have intersections, whether the numbers have straight lines and arcs, and the extraction of these features will extract different results for handwritten numbers of different thicknesses, such as Figure 3 The number "4" originally has two intersections, but because the handwriting is relatively thick, there will be errors in the number of intersections, so it is necessary to extract the skeleton of the handwritten number, delete unnecessary pixels in the digital image, generate a simplified skeleton image data, and then perform subsequent feature extraction and judgment operations on it.

[0052] It can be understood that in S4, various features of the handwritten digits are identified and extracted, and the features include strokes, starting point position, end point position, stroke order, number of straight lines, number of arc lines, corner point position, overall position and pixel ratio, etc. After extracting various features, various aspects of the input digits can be judged according to the judgment rules in Table 1 to prepare for subsequent operations.

[0053] It can be understood that the number of inputs of the input device is obtained. Among the numbers 0-9, only 4 and 5 need to be input twice, that is, two strokes, and the other numbers are only input once; the stroke order is determined by the position of the head and tail of each stroke. Figure 8 The number "2" in Figure 8 In the Tianzi grid, the pen-dropping position should be in area ②, and the pen-starting position should be in area ③. If the opposite is true, it means that the number 2 may not be written, the stroke order is wrong, or the writing is not standard. The judgment of the number of straight lines is applied to the numbers "1", "2", "4", "5", "7", and "9". There should be a certain number of straight lines in these numbers to be considered as standard-written numbers. The judgment of the number of arcs is applied to the numbers "2", "3", "5", "6", "8", and "9". There should be a certain number of arcs in these numbers to be considered as standard-written numbers. It can be understood that extracting these features can make a more detailed judgment on the quality of handwritten numbers.

[0054] It can be understood that various digital features are extracted in S5, and the digital features are limited according to the correspondence between digital aesthetics and digital features, so as to achieve the standardization of handwritten numbers. The standardization standards are shown in Table 1. The judgment also includes the judgment of the weights of these features. For example, if the number is written too large and the strokes are incorrect, then the incorrect strokes have a higher priority and will be recorded first.

[0055]

[0056] Table 1 Evaluation criteria for handwritten digits

[0057] It can be understood that in S6, the extracted features are compared according to the evaluation criteria in Table 1, and the parts that do not meet the standards are fed back to the user, so that the user can make targeted changes.

[0058] Example 2

[0059] A flow chart of a method for real-time feedback and evaluation of children's digital writing practice, comprising the following steps:

[0060] S1 inputs the handwritten number to be recognized;

[0061] S2 uses a convolutional neural network to recognize the specific numbers written;

[0062] S3 performs skeleton extraction on handwritten digits;

[0063] S4 extracts the features of handwritten digits based on the skeleton;

[0064] S5 judges the handwritten digits according to the judgment rules of specific digits and the characteristics of the handwritten digits;

[0065] S6 outputs the evaluation results of the digital writing quality.

[0066] In the above technical solution, the user starts the software and writes numbers according to the given digital template, wherein the digital template is a digital writing sample that meets the digital standard set in this article. After writing any number 0-9, the corresponding result will be given, pointing out the deficiencies and output in the form of voice. The user can understand the problems in his or her writing through evaluation, for example, the number written by the user is too large or too small, the closed place is not closed, etc. The user can make targeted corrections, which greatly improves the efficiency of digital practice and achieves the purpose of writing better and better.

[0067] Furthermore, in step S2, compared with the traditional Soft model for digital recognition, the present invention uses a convolutional neural network model structure based on the TensorFlow deep learning framework to train the model on 60,000 handwritten samples of MNIST, thereby recognizing handwritten digits. Studies have shown that the recognition rate based on the CNN model is as high as 99.17%, while the recognition rate of the Softmax regression model is slightly lower, 91.57%. Therefore, the CNN model based on the deep learning framework is used to recognize handwritten digits.

[0068] Furthermore, in step S3, an improved Hilditch thinning algorithm is used to extract the skeleton of the handwritten digits to generate a handwritten digit with a thickness of one pixel. The skeleton of the digits is extracted to facilitate the subsequent extraction of digit features.

[0069] Among them, when a part of the handwritten number is too thick or the font is too small, an area with a width much larger than the normal stroke width will appear in the digital image, like a small circle; at this time, if the general refinement method is used to process it, the geometric structure of the image will be deformed, and the area will be refined into a line or a point, which will seriously affect the recognition effect.

[0070] To solve the above problem, we can perform preprocessing before thinning, that is, adjust the size of the digital image to be thinned to a specified value, and then scan it in rows and columns to find the maximum pixel values ​​of all rows and columns, which are set as Max1 and Max2 respectively. In general, the stroke widths of a number should be roughly the same, so we can first find the approximate width of the strokes. If both of these maximum values ​​are greater than the preset threshold, we can use this point as the center to find an inscribed square with a width of (2 / 5)*Max1 and a length of inverted pixel values ​​of all internal points; in this way, when we perform the next thinning step, we can obtain a thinned image that can maintain the geometric features of the original image.

[0071] Further, step S4 includes: extracting one or more information of the strokes of the digit, the position of the starting point, the position of the ending point, the stroke order, the number of straight lines, the number of arc lines, the position of the corner point, the overall position and the pixel ratio;

[0072] Specifically include:

[0073] S4.1 obtains the handwriting image data after thinning;

[0074] S4.2 obtaining the number of strokes, the number of strokes, the stroke position and the stroke starting position characteristics of the handwritten digits according to the handwriting data;

[0075] S4.3 performs Hough line transformation on the handwriting skeleton data to obtain the straight line number features of the digits;

[0076] S4.4 performs Hough circle transform on the handwriting skeleton data to obtain the number characteristics of closed arcs of the digits;

[0077] S4.5 obtains the characteristic points of the handwriting skeleton data, generates a second-order Bezier curve, and compares and obtains the position and quantity characteristics of the non-closed arc;

[0078] S4.6 uses the Harris corner detection method to directly extract corner features based on the grayscale image to perform corner detection on the digits, obtain the intersection features of the handwritten digits, and obtain the intersection position;

[0079] S4.7 determines the overall size and position characteristics based on the entire handwriting data.

[0080] In step S4.2, the digital handwriting data is analyzed to identify the number of strokes and obtain the number of inputs of the input device. Among the numbers 0-9, only 4 and 5 need to be input twice, i.e. two strokes, and the other numbers only need to be input once.

[0081] The judgment is made based on the starting and ending positions of the strokes on the input page. When there are multiple strokes, the starting and ending positions of each stroke are recorded. The stroke order of each stroke is determined based on the starting and ending positions of each stroke.

[0082] In step S4.3, the Hough line transform is used to determine whether the input number is a straight line. The Hough line transform is a method for finding a straight line. There are three common Hough line transforms: standard Hough transform (SHT), multi-scale Hough transform (MSHT) and cumulative probability Hough transform (PPHT).

[0083] The commonly used standard Hough line transform and cumulative probability Hough transform are compared. When the threshold is the same, the recognition results are as follows: Figure 4 It can be seen that the cumulative probability Hough transform can more effectively identify straight lines that are not very straight, and the images input by children often have this problem. Therefore, the present invention uses the cumulative probability Hough transform to obtain the number of straight lines.

[0084] For straight lines that may appear during writing, such as Figure 4 In the “4” in .a, there are small straight lines at the beginning and end. The cumulative probability Hough transform can avoid this situation well. However, when the writing is not standardized, such as Figure 4 The "4" in .b will identify a straight line. There should be no straight line in the number "4", so this "3" does not meet the standard of the number of straight lines.

[0085] In step S4.4, the closed arc is identified by using the Hough circle transform. The Hough circle transform is a method for finding circles. The recognition effect is as follows: Figure 5 As shown in the figure, the closed arc in the number can be well recognized.

[0086] In step S4.4, for a non-closed arc, three feature points of the handwriting are obtained, such as Figure 6 In the number "2", ①②④, since the arc is in the upper half of the number, we find the special points above the corner point ③ of the number, namely ①②, ① is the highest point of the arc, ② is the rightmost point of the arc, and the slope of each point is calculated. According to the point slope formula, the tangent equation of the two points can be obtained to calculate the intersection point of the tangent ④. The A-level Bezier curve is generated based on the direction of the tangents of ①②. In order to achieve the same method as controlling a quadratic curve, to generate a typical A-level Bezier curve of degree 2, the generated second-order Bezier curve is compared with the handwriting to determine the number of non-closed arcs.

[0087] In step S4.6, since the number of intersections of each digit is different, the number of intersections is also a main feature of the digit. An intersection is a point where lines intersect, or a turning point. In an image, a corner point is similar to it. When a small change in any direction of a point in an image will cause a large change in grayscale, then this point is called a corner point. The present invention adopts the Harris corner point detection method. The corner point detection results of the digits 0-9 are as follows: Figure 7 shown.

[0088] In step S4.7, the overall size and position characteristics are determined based on the entire handwriting data. Since the size of the written number directly affects the beauty of the number, a standard good-looking handwriting should be of moderate size and centered, so the position and pixel distribution of the number are also the criteria for judging a number.

[0089] Furthermore, in step S5, normative constraints are imposed on the features acquired in step S4. In order to comprehensively evaluate the handwritten digital handwriting, the present invention designs a set of handwritten digital evaluation standards to limit the extracted features, that is, to convert the aesthetics of the numbers into various limitations of digital features, thereby standardizing the handwritten numbers well, as shown in Table 1 of Example 1.

[0090] Furthermore, in step S6, real-time feedback is provided for features that do not meet the specifications. The extracted features are compared according to the evaluation criteria in Table 1 of Example 1, and the parts that do not meet the specifications are fed back to the user. The user can then make targeted changes, thereby completing the digital writing practice without anyone's guidance.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A real-time feedback and evaluation method for children's digital writing practice, characterized in that: The following steps are involved: S1 inputs the handwritten number to be recognized; S2 uses a convolutional neural network to recognize the specific numbers written. Based on the TensorFlow deep learning framework, the convolutional neural network model structure is used to train the MNIST handwriting samples to recognize the handwritten numbers. S3 extracts the skeleton of the handwritten digits, wherein the skeleton of the handwritten digits is extracted using the Hilditch thinning algorithm to generate a handwritten digit with a thickness of one pixel. The skeleton of the digit is extracted to facilitate the subsequent extraction of digit features; S4 extracts features of the handwritten digits according to the skeleton, including: extracting one or more information of the strokes, starting point position, ending point position, stroke order, number of straight lines, number of arc lines, corner point position, overall position and pixel ratio of the digits; Specifically include: S4.1 obtains the handwriting image data after thinning; S4.2 Obtain the number of strokes, number of strokes, stroke position and stroke position features of the handwritten digits according to the handwriting data, wherein the digital handwriting data is analyzed to identify the number of strokes, and the number of inputs of the input device is obtained. Among the digits 0-9, only 4 and 5 need to be input twice, and the other digits are only input once; judge according to the starting position and ending position of the strokes on the input page; when there are multiple strokes, record the starting and ending positions of each stroke; judge the stroke order of each stroke according to the starting and ending positions of each stroke; S4.3 performs Hough line transformation on the handwriting skeleton data to obtain the straight line number features of the digits; S4.4 performs Hough circle transform on the handwriting skeleton data to obtain the number characteristics of closed arcs of the digits; S4.5 obtains the characteristic points of the handwriting skeleton data, generates a second-order Bezier curve, and compares and obtains the position and quantity characteristics of the non-closed arc; S4.6 uses the Harris corner detection method to directly extract corner features based on the grayscale image to perform corner detection on the digits, obtain the intersection features of the handwritten digits, and obtain the intersection position; S4.7 judging the overall size and position characteristics based on the entire handwriting data; S5 judges the handwritten digits according to the judgment rules of specific digits and the characteristics of the handwritten digits; S6 outputs the evaluation results of the digital writing quality.

2. A method for real-time feedback and evaluation of children's digital writing practice according to claim 1, characterized in that: In step S5, normative constraints are applied to the features acquired in step S4.

3. A method for real-time feedback and evaluation of children's digital writing practice according to claim 1, characterized in that: In step S6, real-time feedback is provided for features that do not meet the specifications.