Review method, device, electronic device and storage medium

By splitting and matching components of complex graphics in mathematics, physics and chemistry subject assignments, automated review is realized, which solves the problem of low review efficiency in the existing technology and improves review efficiency and accuracy.

CN112507879BActive Publication Date: 2024-08-23IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011444199.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-08
Publication Date
2024-08-23
Estimated Expiration
2040-12-08

AI Technical Summary

Technical Problem

In the existing technology, student homework or test papers in subjects such as mathematics, physics, and chemistry contain complex graphics, which results in low efficiency of evaluation and requires manual marking, which requires a large workload and a long time.

Method used

By component splitting the combined answer graphics in the image to be reviewed and matching the combined answer graphics in the answer image, component splitting and matching units are used, combined with the area detection model, to automatically review assignments or test papers, reducing manual subjectivity.

Benefits of technology

Automated review is realized, reducing review workload, shortening review time, improving review efficiency, and avoiding the subjectivity of manual review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112507879B
    Figure CN112507879B
Patent Text Reader

Abstract

The embodiments of the present invention provide a review method, device, electronic device and storage medium, wherein the method comprises: determining an image to be reviewed; if the image to be reviewed has a combined answer graph, decomposing the combined answer graph into components to obtain the various answer components and component relationships in the combined answer graph; matching the various answer components and component relationships in the combined answer graph corresponding to the answer image of the image to be reviewed with the various answer components and component relationships in the combined answer graph to obtain a combined graph matching result; and determining the review result of the image to be reviewed based on the combined graph matching result. The methods, devices, electronic devices and storage medium provided by the embodiments of the present invention reduce the review workload, shorten the review time and improve the review efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a review method, device, electronic equipment and storage medium. Background Art

[0002] With the advancement of artificial intelligence (AI), online education has developed rapidly. AI intelligent review of student assignments or test papers is gradually being used in educational scenarios.

[0003] In the prior art, since there are a large number of complex graphics in student homework or test papers of subjects such as mathematics, physics and chemistry, such homework is still graded manually, which increases the workload of teachers and reduces the efficiency of marking. Summary of the invention

[0004] The embodiments of the present invention provide a review method, device, electronic device and storage medium, which are used to solve the problems of heavy workload, long review time and low review efficiency in the prior art review method for student homework or test papers.

[0005] An embodiment of the present invention provides a review method, comprising:

[0006] Identify images to be reviewed;

[0007] If the image to be reviewed has a combined answering graphic, the combined answering graphic is decomposed into components to obtain the various answering components and component relationships in the combined answering graphic;

[0008] Matching each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result;

[0009] Based on the combined graphic matching result, a review result of the image to be reviewed is determined.

[0010] According to an embodiment of the review method of the present invention, the matching of each answer component and component relationship in the combined answer graph of the image to be reviewed corresponding to the answer image with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result includes:

[0011] Matching each answer component of the combined answer graphic with each answer component of the combined answer graphic;

[0012] If each answer component corresponds to each answer component one by one, the component relationship of each answer component is matched with the component relationship of each answer component to obtain a combined graphic matching result of the image to be reviewed.

[0013] According to an embodiment of the review method of the present invention, matching the component relationship of each answer component with the component relationship of each answer component to obtain the combined graphic matching result of the image to be reviewed includes:

[0014] Matching the combined answer graph and the component relationship two-dimensional table of the combined answer graph to obtain a combined graph matching result of the image to be reviewed;

[0015] Among them, the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of the various answer components, and the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of the various answer components.

[0016] According to an embodiment of the review method of the present invention, the answer components and component relationships in the combined answer graph corresponding to the answer image of the image to be reviewed are matched with the answer components and component relationships in the combined answer graph to obtain a combined graph matching result, and then the following further comprises:

[0017] If the matching result of the combined graphics is not a match, the combined answer graphics and the combined answer graphics are respectively rotated multiple times at preset angles to obtain a combined answer graphics set and a combined answer graphics set;

[0018] The combined answer graphics in the combined answer graphics set and the combined answer graphics in the combined answer graphics set are matched as a whole, and the combined graphic matching result is updated based on the whole graphic matching result.

[0019] According to an embodiment of the review method of the present invention, the component splitting of the combined answer graph to obtain the various answer components and component relationships in the combined answer graph also includes:

[0020] The combined answer graphic and / or the combined answer graphic are preprocessed so that the difference in graphic size between the preprocessed combined answer graphic and the combined answer graphic is less than a preset threshold; the preprocessing includes rotation and / or stretching.

[0021] According to an embodiment of the review method of the present invention, if the image to be reviewed also contains answer text and / or basic answer graphics, determining the review result of the image to be reviewed based on the combined graphics matching result includes:

[0022] Determine the review result of the image to be reviewed based on the combined graphic matching result, the answer text matching result and / or the basic graphic matching result;

[0023] Among them, the answer text matching result is determined after matching the answer text with the answer text of the answer image; the basic graphic matching result is determined after identifying the graphic type of the basic answer graphic and matching it with the graphic type of the basic answer graphic of the answer image.

[0024] According to the review method of one embodiment of the present invention, the step of determining the image to be reviewed includes:

[0025] Inputting the image to be reviewed into a region detection model to obtain at least one of an answer text, a basic answer graphic, and a combined answer graphic output by the region detection model;

[0026] Wherein, the region detection model is obtained after training based on sample images, and the sample images include at least one of sample answer text, sample basic answer graphics and sample combined answer graphics.

[0027] The embodiment of the present invention further provides a review device, comprising:

[0028] A determination unit, used for determining an image to be reviewed;

[0029] a splitting unit, configured to split the combined answer graph into components if there is a combined answer graph in the image to be reviewed, so as to obtain the various answer components and component relationships in the combined answer graph;

[0030] A matching unit, configured to match each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result;

[0031] A review unit is used to determine a review result of the image to be reviewed based on the combined graphic matching result.

[0032] An embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory and a bus, wherein the processor, the communication interface and the memory communicate with each other through the bus, and the processor can call the logic commands in the memory to execute the steps of any of the review methods described above.

[0033] An embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned review methods are implemented.

[0034] The review method, device, electronic device and storage medium provided by the embodiments of the present invention obtain individual answer components and component relationships in the combined answer graphic by component decomposing the combined answer graphic in the image to be reviewed, and match the individual answer components and component relationships in the combined answer graphic of the answer image corresponding to the image to be reviewed with the individual answer components and component relationships in the combined answer graphic to obtain a combined graphic matching result, thereby determining the review result of the image to be reviewed. Since the complex combined answer graphic is structurally decomposed by component decomposition, automatic review of homework or test papers is achieved by graphic comparison, which avoids the subjectivity of manual review, reduces the review workload, shortens the review time, and improves the review efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A schematic diagram of a flow chart of a review method provided by an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a process for generating a combined graphic matching result provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of a flow chart of an overall graphic matching method provided by an embodiment of the present invention;

[0039] Figure 4 A schematic diagram of the structure of an overall matching model provided by an embodiment of the present invention;

[0040] Figure 5 A schematic diagram of the structure of a region detection model provided by an embodiment of the present invention;

[0041] Figure 6 A schematic diagram of region detection of an image to be reviewed provided by an embodiment of the present invention;

[0042] Figure 7 A schematic diagram of the flow of the online handwriting recognition and correction method for mathematics, physics and chemistry provided by an embodiment of the present invention;

[0043] Figure 8 A schematic diagram of the structure of a review device provided by an embodiment of the present invention;

[0044] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0046] In the prior art, the ability test of subjects such as mathematics, physics and chemistry is evaluated through a combination of different question types, including multiple-choice questions, fill-in-the-blank questions, and essay questions, and the answers in these question types contain text, formulas and graphics. Due to the complexity of mathematical, physical and chemical formulas and graphics, manual review is still used so far, and AI automatic review is impossible, which is time-consuming, labor-intensive and inefficient.

[0047] In view of the shortcomings of existing technologies, Figure 1 A schematic diagram of a review method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0048] Step 110: Determine the image to be reviewed.

[0049] Specifically, the image to be reviewed is an image recording the answer content, which may be a student's homework or test paper. The image to be reviewed may be obtained through a handwritten electronic screen, or by scanning a paper homework or paper test paper.

[0050] For example, the image to be reviewed is a math test paper completed by a student on a handwriting electronic screen, which contains the student's handwritten answers, math formulas, and geometric figures. The handwriting electronic screen obtains the track point information when the student writes and renders it into a picture format to obtain the image to be reviewed.

[0051] Step 120: If there is a combined answer graphic in the image to be reviewed, the combined answer graphic is decomposed into components to obtain the various answer components and component relationships in the combined answer graphic.

[0052] Specifically, the image to be reviewed is identified to distinguish the answer content contained in the image to be reviewed. The answer content includes at least one of text, formula, basic answer graphics and combined answer graphics.

[0053] The basic answer figure is a geometric figure composed of vertices, straight line segments, curve segments, planes and curved surfaces. The combined answer figure is a geometric figure composed of multiple basic answer figures. The basic answer figure and the combined answer figure can be a plane figure or a three-dimensional figure. The embodiment of the present invention does not specifically limit the dimension type of the basic answer figure and the combined answer figure.

[0054] The definition of combined answer figures can be determined according to the answer subject and / or the marking criteria. For example, for elementary school mathematics, triangles, parallelograms, squares, rectangles, rhombuses, circles, cones, cylinders, cuboids, cubes and spheres can be determined as basic answer figures, and the combination of multiple basic answer figures is determined as the combined answer figure.

[0055] If there is a group answer graphic in the image to be reviewed, the group answer graphic is split into components. The answer component is the basic unit that constitutes the group answer graphic, and can be set according to the component splitting method. The component splitting methods include point splitting, face splitting, and figure splitting. Among them, point splitting is based on vertices, and the answer component is defined as the straight line segments and curve segments that constitute the group answer graphic. Face splitting is based on faces, and the answer component is defined as the plane and curved surface that constitute the group answer graphic. Figure splitting is based on basic graphics, and the answer component is defined as the basic answer graphic.

[0056] After the combined answer graph is decomposed into components, the answer components constituting the combined answer graph and the component relationships between the answer components are obtained. The component relationship is the connection relationship between the answer components, which is used to indicate the position of each answer component in the combined answer graph. The connection relationship can be up-down relationship, left-right relationship, front-back relationship, inside-out relationship, etc.

[0057] The following is an example of using the point splitting method. The answer components are defined as straight line segments and curve segments. The combined answer graph is split according to the vertices to obtain the individual answer components of the combined answer graph and the component relationships between the individual answer components. Here, the vertices are the connection points between the line segments, and do not include the points contained inside the line segments, that is, the points inside the line segments and the line segments are considered as a whole answer component. The component relationships between the various answer components can be recorded by digital numbering. For example, 0 represents no connection relationship, 1 represents a left-left connection relationship, 2 represents a left-right connection relationship, 3 represents a right-left connection relationship, 4 represents a right-right connection relationship, and so on.

[0058] Step 130, matching each answer component and component relationship in the combined answer graph corresponding to the answer image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result.

[0059] Specifically, the answer image is an image that records the standard answer and is used to judge the content consistency of the image to be reviewed. The type and acquisition method of the answer image are the same as those of the image to be reviewed. The answer image contains at least one of the answer text, answer formula, basic answer graphic and combined answer graphic, and corresponds to the image to be reviewed in terms of content type. The definition of the basic answer graphic is consistent with the basic answer graphic, and the definition and splitting method of the answer components in the combined answer graphic are consistent with the combined answer graphic.

[0060] Therefore, the combined answer graph in the answer image can be split in advance to obtain the various answer components and component relationships in the combined answer graph. The various answer components and component relationships are matched with the various answer components and component relationships to obtain the combined graph matching result. The combined graph matching result is used to measure the matching degree and matching relationship between the combined answer graph and the combined answer graph.

[0061] For example, the combined graphic matching result may be the number or ratio of component matches between the combined answer graphic and the combined answer graphic. Component matching here may be understood as follows: if there is an answer component in the combined answer graphic that corresponds to the answer component in the combined answer graphic, and the component relationship of the answer component is consistent with the corresponding answer component, then the answer component matches the corresponding answer component.

[0062] Step 140: Determine the review result of the image to be reviewed based on the combined graphic matching result.

[0063] Specifically, the review result of the image to be reviewed is used to indicate the degree to which the image to be reviewed meets the review criteria. The review result can be expressed in the form of a score or a rating level. For example, the review result can be divided into three levels: error, partially correct, and completely correct.

[0064] For example, the number of component matches between the combined answer graph and the combined answer graph is taken as the combined graph matching result. If the combined graph matching result is zero, it can be determined that the combined answer graph in the image to be reviewed is wrong; if the combined graph matching result is a positive integer less than the number of answer components, it can be determined that the combined answer graph in the image to be reviewed is partially correct; if the combined graph matching result is equal to the number of answer components, it can be determined that the combined answer graph in the image to be reviewed is completely correct.

[0065] The review result of the image to be reviewed can be determined by weighted summing of the combined graphic matching results. The review result of the image to be reviewed is determined according to the proportion of the combined answer graphic part in the image to be reviewed. For example, if the review result is determined using a 10-point system, and the proportion of the combined answer graphic part in the image to be reviewed is 3 points, then the combined graphic matching result multiplied by 0.3 is the score of the combined answer graphic part in the review result.

[0066] In addition, the confidence of the combined graphic matching result can also be calculated to determine the credibility of the combined graphic matching result. The preset confidence threshold is set to 0.85. When the confidence is greater than or equal to 0.85, the combined graphic matching result is credible. When the confidence is less than 0.85, the combined graphic matching result is unreliable. At this time, manual review can be combined to improve the accuracy of the review.

[0067] The review method provided by the embodiment of the present invention obtains each answer component and component relationship in the combined answer graphic by component decomposing the combined answer graphic in the image to be reviewed, and matches each answer component and component relationship in the combined answer graphic of the answer image corresponding to the image to be reviewed with each answer component and component relationship in the combined answer graphic to obtain a combined graphic matching result, thereby determining the review result of the image to be reviewed. Since the complex combined answer graphic is structurally decomposed by component decomposition, automatic review of homework or test papers is achieved by graphic comparison, which avoids the subjectivity of manual review, reduces the review workload, shortens the review time, and improves the review efficiency.

[0068] Based on the above embodiments, Figure 2 A schematic diagram of a flow chart of generating a combined graphic matching result provided by an embodiment of the present invention, such as Figure 2 As shown, step 130 includes:

[0069] Step 1301, matching each answer component of the combined answer graph with each answer component of the combined answer graph.

[0070] Specifically, before performing component matching, the number of components in the combined answer graph and the combined answer graph may be matched. If the point splitting method is used, the number of vertices and the number of components in the combined answer graph and the combined answer graph may also be matched. If the number of vertices and the number of components in the combined answer graph are consistent with those in the combined answer graph, component matching continues; if not, it can be determined that the combined answer graph and the combined answer graph do not match, and the combined graph matching result is mismatched.

[0071] Each answer component of the combined answer graph is matched with each answer component of the combined answer graph, and at least one of one-match-one, one-match-many and many-match-many methods can be used to determine the correspondence between the answer components and the answer components.

[0072] Among them, one-matching-one is to match each answer component in the combined answer graph with each answer component in the combined answer graph to obtain the corresponding relationship between the components. One-matching-multiple is to match each answer component in the combined answer graph with all answer components in the combined answer graph to obtain the corresponding relationship between the components. Multi-matching-multiple is to match all answer components in the combined answer graph with all answer components in the combined answer graph to obtain the corresponding relationship between the components.

[0073] The matching of the corresponding relationship between components can be processed by using a neural network model, which is not specifically limited in the embodiment of the present invention. When a neural network model and a multi-matching multi-method are used, a relationship diagram between all answer components and / or all answer components can also be obtained.

[0074] When matching the answer component and the answer component, the following component matching principles can be used:

[0075] If one or more answer components in the combined answer graph cannot find the corresponding answer component in the combined answer graph, or one or more answer components in the combined answer graph cannot find the corresponding answer component in the combined answer graph, the combined graph matching result is not matched;

[0076] If each answer component in the combined answer graph can find an answer component in the combined answer graph that uniquely corresponds to it, then each answer component corresponds to each answer component one by one;

[0077] If several answer components in the combined answer graph can find several answer components in the combined answer graph respectively, and several answer components match several answer components as a whole, then several answer components correspond one to one with several answer components. For example, if answer component z1 in the combined answer graph has the same answer components a1 and a2 corresponding to it in the combined answer graph, and answer component z2 has the same answer components a1 and a2 corresponding to it in the combined answer graph, and z1 and z2 match a1 and a2 as a whole, then z1 and z2 correspond one to one with a1 and a2, that is, when answer components z1 and z2 are matched with answer components a1 and a2, the matching order is not distinguished.

[0078] Step 132: If each answer component corresponds to each answer component one-to-one, then the component relationship of each answer component is matched with the component relationship of each answer component to obtain a combined graphic matching result of the image to be reviewed.

[0079] Specifically, in addition to determining the correspondence between each answer component and each answer component, it is also necessary to match the component relationship of each answer component with the component relationship of each answer component to determine whether the combined answer graph and the combined answer graph match.

[0080] The review method provided by the embodiment of the present invention matches each answer component of the combined answer graphic with each answer component of the combined answer graphic, determines the correspondence between the answer component and the answer component, and improves the matching accuracy between the combined answer graphic and the combined answer graphic.

[0081] Based on any of the above embodiments, step 1302 includes:

[0082] Matching the combined answer graph and the component relationship two-dimensional table of the combined answer graph to obtain a combined graph matching result of the image to be reviewed;

[0083] Among them, the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of each answer component, and the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of each answer component.

[0084] Specifically, each answer component of the combined answer graphic can be numbered, and a two-dimensional table of component relationships of the combined answer graphic can be established based on the component relationships of each answer component. The horizontal and vertical coordinates of the component relationship two-dimensional table are the numbers of the answer components, and the values ​​in the component relationship two-dimensional table are the component relationships between the answer components. For example, the combined answer graphic A contains three answer components a1, a2, and a3. The component relationships between the answer components are unconnected, left-connected, and right-connected, which can be represented by numbers 0, 1, and 2, respectively. Here, the connection relationship between any answer component and itself can be defined as number 4. Then a two-dimensional table of component relationships of the combined answer graphic A can be established, as shown in Table 1:

[0085] Table 1 Component relationship two-dimensional table

[0086] Components Answer component a1 Answer component a2 Answer component a3 Answer component a1 4 1 2 Answer component a2 1 4 0 Answer component a3 2 0 4

[0087] The same method can be used to establish a two-dimensional table of component relationships of the combined answer graphic, and then adjust the order of row elements and column elements in the combined answer graphic or the two-dimensional table of component relationships of the combined answer graphic based on the one-to-one correspondence between each answer component and each answer component, so as to ensure that the component relationship corresponding to the current row and current column in the two-dimensional table of component relationships of the combined answer graphic can correspond to the component relationship corresponding to the current row and current column in the two-dimensional table of component relationships of the combined answer graphic.

[0088] Finally, the component relationship two-dimensional table of the combined answer graph and the combined answer graph is matched, that is, the values ​​in the two component relationship two-dimensional tables are compared one by one. If the values ​​at the intersection of the same row coordinates and the same column coordinates are the same, then the values ​​in the two component relationship two-dimensional tables are considered to correspond. At this time, if there are several groups of corresponding values, it means that there are several answer components in the combined answer graph and the component relationships of the corresponding answer components in the combined answer graph are consistent, then the number of several answer components can be used as the combined graph matching result. If there are no corresponding values ​​in the two component relationship two-dimensional tables, the combined graph matching result is mismatched.

[0089] The review method provided by the embodiment of the present invention simplifies the comparison of component relationships between answer components and answer components by establishing a two-dimensional table of component relationships, thereby reducing the review workload, shortening the review time, and improving the review efficiency.

[0090] Based on any of the above embodiments, Figure 3 A schematic diagram of a flow chart of an overall graphic matching method provided by an embodiment of the present invention, such as Figure 3 As shown, after step 130, the following steps are also included:

[0091] Step 131: If the combined graphic matching result is not a match, the combined answer graphic and the combined answer graphic are respectively rotated multiple times at preset angles to obtain a combined answer graphic set and a combined answer graphic set.

[0092] Specifically, the combined graphic matching result is not matched, but the combined answer graphic may still be the correct answer. The reason for the combined graphic matching result not matching may also be that the combined answer graphic and / or the combined answer graphic have changed in shape, or the splitting effect is not ideal.

[0093] The combined answer graphics and the combined answer graphics can be rotated multiple times at preset angles. The preset angle can be set to 5°, the rotation direction can be left and right, and the rotation angle range can also be set. For example, the rotation angle range can be set to 45° to the left to 45° to the right. The series of combined answer graphics and the series of combined answer graphics obtained after rotation are respectively used as the combined answer graphic set and the combined answer graphic set.

[0094] Step 132, performing overall graph matching on the combined answer graphs in the combined answer graph set and the combined answer graphs in the combined answer graph set, and updating the combined graph matching result based on the overall graph matching result.

[0095] Specifically, the combined answer graph set and the combined answer graph set can be input into the overall matching model, and the overall matching model performs graphic feature matching on the combined answer graphs in the combined answer graph set and the combined answer graphs in the combined answer graph set to obtain an overall graphic matching result. The overall graphic matching result is used to measure the overall matching degree of the combined answer graph and the combined answer graph.

[0096] Before executing step 132, the overall matching model can be pre-trained. Specifically, the overall matching model can be obtained by the following training method: First, a large number of sample combination answer graphics and sample combination answer graphics corresponding to the sample combination answer graphics are collected. The overall graphic matching results corresponding to the sample combination answer graphics are manually labeled to obtain the overall graphic matching result labels of the sample combination answer graphics. Then, a large number of sample combination answer graphics, sample combination answer graphics and overall graphic matching result labels of the sample combination answer graphics are input into the initial model for training, with the goal of improving the recognition ability of the overall graphic similarity between the combination answer graphics and the combination answer graphics, and obtaining the overall matching model.

[0097] The overall matching model may adopt a fully convolutional neural network (FCN), which is not specifically limited in the embodiment of the present invention.

[0098] Figure 4 A schematic diagram of the structure of the overall matching model provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the overall matching model includes a feature extraction layer, a feature recognition layer and a result output layer. Accordingly, step 132 includes:

[0099] Inputting the combined answer graph set and the combined answer graph set into the feature extraction layer of the overall matching model, and obtaining the feature representation vectors of the combined answer graph and the combined answer graph output by the feature extraction layer;

[0100] The feature representation vectors of the combined answer graph and the combined answer graph are respectively input into the feature recognition layer of the overall matching model to obtain the graph similarity vector output by the feature recognition layer;

[0101] The graphic similarity vector is input into the result output layer of the overall matching model to obtain the overall graphic matching result output by the result representation layer.

[0102] The review method provided by the embodiment of the present invention improves the review accuracy by performing overall graphic matching after rotating the combined answer graphic and the combined answer graphic multiple times at preset angles.

[0103] Based on any of the above embodiments, before step 120, the following steps may be further included:

[0104] The combined answer graphic and / or the combined answer graphic are preprocessed so that the difference in graphic size between the preprocessed combined answer graphic and the combined answer graphic is less than a preset threshold; the preprocessing includes rotation and / or stretching.

[0105] Specifically, before the combined answer graphic is decomposed into components, the combined answer graphic and / or the combined answer graphic may be preprocessed, i.e., the graphics may be rotated and / or stretched, and the graphic size of the combined answer graphic and / or the combined answer graphic may be changed, such as the length and width of the graphics, etc., so that the combined answer graphic and the combined answer graphic are as similar in size as possible.

[0106] The size of the preset threshold can be set according to actual conditions so that the difference in graphic size between the preprocessed combined answer graphic and the combined answer graphic is smaller than the preset threshold and the outer contours are similar, thereby reducing comparison errors and improving matching accuracy.

[0107] The review method provided by the embodiment of the present invention pre-processes the combined answer graphics and / or the combined answer graphics before the components are separated, thereby reducing the size error between the graphics and improving the review accuracy.

[0108] Based on any of the above embodiments, if the image to be reviewed still contains answer text and / or basic answer graphics, accordingly, step 140 includes:

[0109] Determine the review result of the image to be reviewed based on the combined graphic matching result, the answer text matching result and / or the basic graphic matching result;

[0110] Among them, the answer text matching result is determined after matching the answer text with the answer text of the answer image; the basic graphic matching result is determined after identifying the graphic type of the basic answer graphic and matching it with the graphic type of the basic answer graphic of the answer image.

[0111] Specifically, if in addition to the combined answer graphics, there are answer texts and / or basic answer graphics in the image to be reviewed, the review result of the image to be reviewed needs to be determined based on the combined graphic matching result, as well as the answer text matching result and / or the basic graphic matching result.

[0112] The review result of the image to be reviewed can be determined by taking a weighted sum of the score weights of the combined graphic, answer text and basic graphic in the review criteria, combined with the combined graphic matching results, the answer text matching results and the basic graphic matching results.

[0113] The answer text matching result can be determined by matching the answer text with the answer text of the answer image. For example, for simple question types such as multiple-choice questions and fill-in-the-blank questions, the answer text and the answer text are matched according to the scoring rules. If they match, the score is 1, otherwise the score is 0. The recognition results of the answer text can select the first three in descending order of recognition rate as candidates, and match them with the answer text one by one to improve the review accuracy. For complex question types such as answer questions, which require knowledge of semantic understanding, it is necessary to decompose the answer text into multiple answer steps, compare them one by one, and determine the final score based on the correctness of each answer step.

[0114] The answer text includes words and formulas. For the recognition of the answer text area in the image to be reviewed, a deep learning model can be used for recognition, such as an Encoder-Decoder model. The answer text area in the image to be reviewed is input into the deep learning model to obtain words and formulas, where the formula can be recognized as a latex formula result. For example, the latex formula of 1 / 2 after recognition is \frac{1}{2}, then it contains 5 units, namely "\frac", "{", "}", "1" and "2", where "\frac", "{", "}" are virtual entities, and "1" and "2" are entities. The latex formula of the chemical equation AgNO3+HCl=AgCl↓+HNO3 after recognition is AgNO_{3}+HCl=AgCl↓+HNO_{3}, where "_", "{", "}" are virtual entities, and the others are entities. When the Encoder-Decoder model is used for recognition, the answer text area in the image to be reviewed can be preprocessed, and the preprocessing can be highly adjusted, and then sent to the Encoder-Decoder model for recognition. Among them, the Encoder end of the model uses VGG (Visual Geometry Group, Computer Vision Group) or ResNet+BiLSTM (Bi-directional Long Short Term Memory Network) or BiGRU (Bi-directional Gate Recurrent Unit) to encode and extract text formula features, and the Decoder end of the model uses Attention (attention mechanism) and BiLSTM or BiGRU for decoding. In the decoding process, the Beam Search algorithm is selected, and the top three in descending order of recognition rate are retained as the recognition results.

[0115] The basic graphic matching result can be determined by identifying the graphic type of the basic answer graphic and matching it with the basic answer graphic of the answer image. The basic answer graphic can be determined according to the subject information. For example, for mathematics, the basic answer graphics can include triangles, squares, rectangles, trapezoids, parallelograms, rhombuses, pentagons, hexagons, circles, ellipses, sectors, cylinders, cones, cubes, cuboids, triangular prisms, triangular pyramids, spheres, direct proportional functions, linear functions, inverse proportional functions, exponential functions, logarithmic functions, quadratic functions, sine functions, cosine functions, tangent functions, cotangent functions, and other graphics. For physics, the basic answer graphics can include graphics such as electric bells, power supplies, light bulbs, switches, ammeters, voltmeters, motors, and sliding rheostats. For chemistry, the basic answer graphics can include graphics such as benzene, rings, wide-mouth bottles, conical bottles, round-bottom flasks, and separatory funnels.

[0116] For the basic answer graphics, the scoring rules can be directly used for matching. If a match is found, the score is 1, otherwise the score is 0. The recognition results of the basic answer graphics can select the first three in descending order of recognition rate as candidates, and match them with the basic answer graphics one by one, thereby improving the review accuracy.

[0117] The review method provided by the embodiment of the present invention determines the review result of the image to be reviewed according to the combined graphic matching result, the answer text matching result and the basic graphic matching result, thereby improving the review accuracy and the comprehensiveness of the review result.

[0118] Based on any of the above embodiments, step 110 includes:

[0119] Inputting the image to be reviewed into the region detection model, and obtaining at least one of the answer text, the basic answer graphic, and the combined answer graphic output by the region detection model;

[0120] The region detection model is obtained after training based on sample images, and the sample images include at least one of sample answer text, sample basic answer graphics and sample combination answer graphics.

[0121] Specifically, Figure 5 A schematic diagram of the structure of the region detection model provided by the embodiment of the present invention is shown in FIG. Figure 5 As shown, the region detection model includes a region feature extraction layer, a region feature recognition layer and a region result output layer.

[0122] The image to be reviewed is input into the regional feature extraction layer of the regional detection model to obtain the regional representation vector of the image to be reviewed output by the regional feature extraction layer; the regional representation vector is input into the regional feature recognition layer of the regional detection model to obtain the regional feature vector output by the regional feature recognition layer; the regional feature vector is input into the regional result output layer of the regional detection model to obtain the regional detection result output by the regional result representation layer, and the regional detection result includes at least one of the answer text, the basic answer graphic and the combined answer graphic.

[0123] Before executing the above steps, a region detection model can be pre-trained. Specifically, the region detection model can be obtained by the following training method: First, a large number of sample images are collected, and the sample images include at least one of sample answer text, sample basic answer graphics, and sample combination answer graphics. The sample answer text, sample basic answer graphics, and sample combination answer graphics in the sample image are manually labeled to obtain sample answer text labels, sample basic answer graphics labels, and sample combination answer graphics labels, respectively. Then, a large number of sample images are input into the initial model for training to improve the recognition ability of answer text, basic answer graphics, and combination answer graphics, and obtain the region detection model.

[0124] The region detection model may adopt FCIS (Fully Convolutional Instance-aware Semantic Segment), DBNet, or Cascade RCNN (Cascaded Regional Convolutional Neural Network), which is not specifically limited in the embodiment of the present invention.

[0125] Figure 6 A schematic diagram of region detection of an image to be reviewed provided by an embodiment of the present invention, such as Figure 6 As shown, after the image to be reviewed is detected by the region detection model, it is divided into region 610 and region 620. Region 610 is the answer text, and region 620 is the group answer graphic.

[0126] The review method provided by the embodiment of the present invention uses a region detection model to perform region detection on the image to be reviewed, decomposes the image to be reviewed into answer text, basic answer graphics and combined answer graphics, thereby improving the comprehensiveness of the review results.

[0127] Based on any of the above embodiments, Figure 7 A flow chart of a method for online handwriting recognition and correction of mathematics, physics and chemistry provided by an embodiment of the present invention is shown in FIG. Figure 7 As shown, the method is based on seven models:

[0128] The first model uses a rendering algorithm to render the online handwriting points of math, physics and chemistry questions into images;

[0129] The second model uses a detection algorithm to obtain text formula area blocks and graphic area blocks for the image;

[0130] The third model recognizes the text formula area block and obtains the text formula recognition result;

[0131] The fourth model recognizes the graphic area blocks to obtain basic graphic recognition results and combined graphic recognition results;

[0132] The fifth model compares the text formula recognition results and the basic graphic recognition results with the basic answer part of the standard answer to determine the text formula area score and the basic graphic area score;

[0133] The sixth model splits the combined graphic recognition results and the standard answer combination answer part to obtain each answer component and component relationship, each answer component and component relationship;

[0134] The seventh model matches each answer component with each answer component to obtain component matching information.

[0135] The score of the combined graphic area can be determined by combining the component matching information and the component relationship. The final score of the question is determined based on the score of the text formula area, the score of the basic graphic area and the score of the combined graphic area.

[0136] Based on any of the above embodiments, Figure 8 A schematic diagram of the structure of a review device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the device comprises:

[0137] A determination unit 810, configured to determine an image to be reviewed;

[0138] A splitting unit 820 is used to split the combined answer graphic into components if there is a combined answer graphic in the image to be reviewed, so as to obtain each answer component and component relationship in the combined answer graphic;

[0139] A matching unit 830 is used to match each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result;

[0140] The review unit 840 is used to determine the review result of the image to be reviewed based on the combined graphic matching result.

[0141] Specifically, the determination unit 810 is used to determine the image to be reviewed, which can be obtained through a handwriting electronic screen or a scanning device. The splitting unit 820 is used to split the combined answer graph existing in the image to be reviewed, and obtain the various answer components and component relationships in the combined answer graph. The matching unit 830 is used to match the various answer components and component relationships in the combined answer graph of the answer image with the various answer components and component relationships in the combined answer graph to obtain a combined graph matching result. The review unit 840 is used to determine the review result of the image to be reviewed based on the combined graph matching result determined by the matching unit 830.

[0142] The review device provided by the embodiment of the present invention obtains each answer component and component relationship in the combined answer graphic by component decomposing the combined answer graphic in the image to be reviewed, and matches each answer component and component relationship in the combined answer graphic of the answer image corresponding to the image to be reviewed with each answer component and component relationship in the combined answer graphic to obtain a combined graphic matching result, thereby determining the review result of the image to be reviewed. Since the complex combined answer graphic is structurally decomposed by component decomposition, automatic review of homework or test papers is achieved by graphic comparison, thereby avoiding the subjectivity of manual review, reducing the review workload, shortening the review time, and improving the review efficiency.

[0143] Based on any of the above embodiments, the matching unit 830 includes:

[0144] A component matching subunit, used for matching each answer component of the combined answer graph with each answer component of the combined answer graph;

[0145] The relationship matching subunit is used to match the component relationship of each answer component with the component relationship of each answer component if each answer component corresponds one-to-one with each answer component, so as to obtain a combined graphic matching result of the image to be reviewed.

[0146] Based on any of the above embodiments, the relationship matching subunit includes:

[0147] A two-dimensional table matching module is used to match the combined answer graph and the component relationship two-dimensional table of the combined answer graph to obtain the combined graph matching result of the image to be reviewed;

[0148] Among them, the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of each answer component, and the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of each answer component.

[0149] Based on any of the above embodiments, the device further includes:

[0150] The overall matching unit is used for rotating the combined answer graphic and the combined answer graphic at preset angles for multiple times to obtain a combined answer graphic set and a combined answer graphic set if the combined graphic matching result is not a match;

[0151] The combined answer graphics in the combined answer graphics set and the combined answer graphics in the combined answer graphics set are matched as a whole, and the combined graphic matching result is updated based on the whole graphic matching result.

[0152] Based on any of the above embodiments, the device further includes:

[0153] A preprocessing unit is used to preprocess the combined answer graphic and / or the combined answer graphic so that the difference in graphic size between the preprocessed combined answer graphic and the combined answer graphic is less than a preset threshold; the preprocessing includes rotation and / or stretching.

[0154] Based on any of the above embodiments, if the image to be reviewed still contains answer text and / or basic answer graphics, the review unit 840 is further configured to:

[0155] Determine the review result of the image to be reviewed based on the combined graphic matching result, the answer text matching result and / or the basic graphic matching result;

[0156] Among them, the answer text matching result is determined after matching the answer text with the answer text of the answer image; the basic graphic matching result is determined after identifying the graphic type of the basic answer graphic and matching it with the graphic type of the basic answer graphic of the answer image.

[0157] Based on any of the foregoing embodiments, the determining unit 810 is configured to:

[0158] Inputting the image to be reviewed into the region detection model, and obtaining at least one of the answer text, the basic answer graphic, and the combined answer graphic output by the region detection model;

[0159] The region detection model is obtained after training based on sample images, and the sample images include at least one of sample answer text, sample basic answer graphics and sample combination answer graphics.

[0160] Based on any of the above embodiments, Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig. 9As shown, the electronic device may include: a processor (Processor) 910, a communication interface (CommunicationsInterface) 920, a memory (Memory) 930 and a communication bus (Communications Bus) 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic command in the memory 930 to execute the following method:

[0161] Determine the image to be reviewed; if there is a combined answer graph for the image to be reviewed, decompose the combined answer graph into components to obtain the various answer components and component relationships in the combined answer graph; match the various answer components and component relationships in the combined answer graph of the answer image corresponding to the image to be reviewed with the various answer components and component relationships in the combined answer graph to obtain a combined graph matching result; determine the review result of the image to be reviewed based on the combined graph matching result.

[0162] In addition, the logic commands in the above-mentioned memory 930 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several commands to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0163] An embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method provided in each of the above embodiments is implemented, for example, including:

[0164] Determine the image to be reviewed; if there is a combined answer graph for the image to be reviewed, decompose the combined answer graph into components to obtain the various answer components and component relationships in the combined answer graph; match the various answer components and component relationships in the combined answer graph of the answer image corresponding to the image to be reviewed with the various answer components and component relationships in the combined answer graph to obtain a combined graph matching result; determine the review result of the image to be reviewed based on the combined graph matching result.

[0165] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of commands to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0167] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A review method, characterized in that: include: Identify images to be reviewed; If there is a combined answer graphic in the image to be reviewed, the combined answer graphic is component-splitting to obtain various answer components and component relationships in the combined answer graphic; the component splitting includes at least one of point splitting, surface splitting, and graphic splitting, wherein the point splitting is splitting based on vertices in the combined answer graphic, the surface splitting is splitting based on faces in the combined answer graphic, and the graphic splitting is splitting based on basic answer graphics in the combined answer graphic, wherein the basic answer graphics are geometric graphics obtained by combining vertices, straight line segments, curve segments, planes, and curved surfaces; The component relationship is the connection relationship between the various answer components, and the connection relationship includes up-down relationship, left-right relationship, front-back relationship, and inside-outside relationship; Matching each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result; Determining a review result of the image to be reviewed based on the combined graphic matching result; Before performing component matching, the number of components in the combined answer graph and the combined answer graph are matched. If the number of components is consistent, component matching is performed; if not consistent, the matching result of the combined graph is determined to be unmatched; The step of matching each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result further includes: If the matching result of the combined graphics is not a match, the combined answer graphics and the combined answer graphics are respectively rotated multiple times at preset angles to obtain a combined answer graphics set and a combined answer graphics set; The combined answer graphics in the combined answer graphics set and the combined answer graphics in the combined answer graphics set are matched as a whole, and the combined graphic matching result is updated based on the whole graphic matching result.

2. The review method according to claim 1, characterized in that: The matching of each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result includes: Matching each answer component of the combined answer graphic with each answer component of the combined answer graphic; If each answer component corresponds to each answer component one by one, the component relationship of each answer component is matched with the component relationship of each answer component to obtain a combined graphic matching result of the image to be reviewed.

3. The review method according to claim 2, characterized in that: The matching of the component relationships of the answer components with the component relationships of the answer components to obtain the combined graphic matching result of the image to be reviewed includes: Matching the combined answer graph with the component relationship two-dimensional table of the combined answer graph to obtain a combined graph matching result of the image to be reviewed; Among them, the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of the various answer components, and the component relationship two-dimensional table of the combined answer graph is determined based on the component relationship of the various answer components.

4. The review method according to any one of claims 1 to 3, characterized in that: The component decomposition of the combined answer graph to obtain the various answer components and component relationships in the combined answer graph also includes: The combined answer graphic and / or the combined answer graphic are preprocessed so that the difference in graphic size between the preprocessed combined answer graphic and the combined answer graphic is less than a preset threshold; the preprocessing includes rotation and / or stretching.

5. The review method according to any one of claims 1 to 3, characterized in that: If the image to be reviewed still has answer text and / or basic answer graphics, determining the review result of the image to be reviewed based on the combined graphics matching result includes: Determine the review result of the image to be reviewed based on the combined graphic matching result, the answer text matching result and / or the basic graphic matching result; Among them, the answer text matching result is determined after matching the answer text with the answer text of the answer image; the basic graphic matching result is determined after identifying the graphic type of the basic answer graphic and matching it with the graphic type of the basic answer graphic of the answer image.

6. The review method according to claim 5, characterized in that: The step of determining the image to be reviewed comprises: Inputting the image to be reviewed into a region detection model to obtain at least one of an answer text, a basic answer graphic, and a combined answer graphic output by the region detection model; Wherein, the region detection model is obtained after training based on sample images, and the sample images include at least one of sample answer text, sample basic answer graphics and sample combined answer graphics.

7. A review device, characterized in that: include: A determination unit, used for determining an image to be reviewed; a splitting unit, for performing component splitting on the combined answer graph if there is a combined answer graph in the image to be reviewed, so as to obtain the various answer components and component relationships in the combined answer graph; the component splitting includes at least one of point splitting, surface splitting, and graph splitting, wherein the point splitting is splitting based on vertices in the combined answer graph, the surface splitting is splitting based on faces in the combined answer graph, and the graph splitting is splitting based on basic answer graphs in the combined answer graph, wherein the basic answer graph is a geometric figure obtained by combining vertices, straight line segments, curve segments, planes, and curved surfaces; The component relationship is the connection relationship between the various answer components, and the connection relationship includes up-down relationship, left-right relationship, front-back relationship, and inside-outside relationship; A matching unit, configured to match each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result; A review unit, configured to determine a review result of the image to be reviewed based on the combined graphic matching result; Before performing component matching, the number of components in the combined answer graph and the combined answer graph are matched. If the number of components is consistent, component matching is performed; if not consistent, the matching result of the combined graph is determined to be unmatched; Also included are integral matching units for: Matching each answer component and component relationship in the combined answer graph corresponding to the answer image of the image to be reviewed with each answer component and component relationship in the combined answer graph to obtain a combined graph matching result, and then further comprising: If the matching result of the combined graphics is not a match, the combined answer graphics and the combined answer graphics are respectively rotated multiple times at preset angles to obtain a combined answer graphics set and a combined answer graphics set; The combined answer graphics in the combined answer graphics set and the combined answer graphics in the combined answer graphics set are matched as a whole, and the combined graphic matching result is updated based on the whole graphic matching result.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the review method according to any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the review method according to any one of claims 1 to 6 are implemented.