Paper test paper automatic marking method, device and system, and storage medium
By using OCR macro and micro anchor point structure flow and question number-level resource constraints, the problems of unstable question segmentation and mixed scoring paths in complex unstructured test papers are solved, achieving high robustness and controllability of scoring for paper test papers, and supporting the location, review and auditing of automatic marking results.
Patent Information
- Application Number
- CN202611444138.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies, when processing complex unstructured paper-based test papers, suffer from problems such as unstable question segmentation, easy mixing of scoring paths for objective and subjective questions, uncontrollable output of end-to-end AI marking models, and lack of traceable evidence chains in the automatic marking process. These issues make it difficult to meet the requirements of high robustness and auditability in educational assessment.
By introducing OCR macro-micro anchor point structure flow, a hierarchical structure constraint is established by combining the question type information of major questions and the question number information of minor questions. Through the synergistic effect of macro structure and micro position constraint, the final question block structure flow is generated. Question number-level resource constraint information is also introduced to realize the separate scoring of objective questions and subjective questions, output structured marking results, and record scoring process information to support audit traceability.
It improves the stability of question segmentation and the accuracy of scoring routing in complex paper-based test scenarios, enhances the consistency of objective question scoring and the controllability of subjective question scoring, realizes the verifiability and auditability of marking results, and reduces the risk of missed, incorrect, and mixed questions.
Smart Images

Figure CN123142249A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of educational information processing technology, specifically relating to an automatic marking method, device, system, and storage medium for paper test papers, applicable to scenario adaptation processing of answer sheet pages. Background Technology
[0002] With the deep integration of educational informatization and artificial intelligence technologies, the automatic grading of paper-based exam papers has become a key link in realizing intelligent educational assessment. To improve assessment efficiency, automatic grading technologies based on image scanning, OCR text recognition, fixed template slicing, and multimodal large models have shown great application potential.
[0003] However, when faced with highly unstructured and complex exam papers in real-world teaching scenarios (such as varied layouts, multi-page answers, left and right columns, and handwritten notes attached to the question stem), existing technologies face significant bottlenecks. On the one hand, traditional fixed template or absolute coordinate slicing schemes are highly susceptible to scanning distortion and minor layout adjustments, exhibiting extremely poor robustness. On the other hand, dynamic slicing schemes that rely solely on local OCR features often lack macroscopic layout topological constraints, making them highly susceptible to interference from redundant numbers in the question stem or handwritten answers, leading to severe omissions and errors in slicing. On the other hand, existing marking workflows typically coarsely couple physical slicing results with scoring logic. When dealing with complex "mixed question types," the lack of fine-grained, question-number-level resource association mechanisms makes the system prone to logical confusion such as mixing candidate scoring paths for subjective and objective questions and mismatched reference standards, severely restricting the certainty of scoring.
[0004] Furthermore, with the application of end-to-end large-scale models in marking, it has become common practice to directly input entire pages of exam papers or large blocks of questions into the model for scoring. However, without precise region focusing and pre-defined rule constraints, large-scale models face serious "attention shift" and "illusion" problems when processing long text and image contexts, easily leading to distortions such as interference from adjacent questions (question cross-referencing), missed scoring, and inconsistencies between subjective and objective scoring standards. At the same time, existing systems generally exhibit a "black box" nature, lacking intermediate factual records such as the physical boundaries of the slides, routing and distribution logic, and the model's operational state, failing to meet the stringent requirements of educational assessment for scoring fairness and full-process auditing.
[0005] In answer sheet scenarios, the page typically doesn't contain the complete question stem, but rather displays question numbers, answer boxes, filling areas, short answer areas, subjective question writing areas, and identity information areas. If the standard question stem-based segmentation method used in regular exam papers is still employed, it's easily affected by name boxes, admission ticket number boxes, barcode boxes, instruction boxes, page borders, and layout offsets, leading to mis-detection of answer areas, incorrect question number binding, or mismatched scoring paths. Therefore, it's necessary to provide a scenario-adaptive answer unit generation method for the answer sheet page without altering the backend scoring resource binding and scoring execution chain.
[0006] Therefore, how to effectively decouple physical layout parsing from logical scoring constraints under complex and ever-changing unstructured layouts, and construct an intelligent marking mechanism that combines highly robust positioning, highly deterministic scoring, and full-link traceability, is a technical challenge that urgently needs to be solved in this field. Summary of the Invention
[0007] To address the problems existing in the prior art, this invention provides an automatic marking method, device, system, and storage medium for paper-based examination papers. It solves problems such as unstable question segmentation under complex paper-based examination paper layouts, easy mixing of scoring paths for objective and subjective questions, uncontrollable output of end-to-end AI marking models, and lack of traceable evidence chains in the automatic marking process. The invention improves the robustness of question segmentation and the accuracy of scoring routing in complex unstructured examination paper scenarios, achieves procedural deterministic scoring of objective questions and controllable scoring of subjective questions by specified question numbers, and enhances the verifiability, interpretability, and auditability of the marking results.
[0008] To achieve the above objectives, the present invention provides the following solution: A method for automatically grading paper-based examination papers includes: Acquire images of paper test paper pages and obtain OCR structured recognition results based on the paper test paper page images; Based on the OCR structured recognition results, a macro-micro anchor point structure flow is generated. The macro-micro anchor point structure flow includes macro-structural constraints formed by the question type information of the major questions and micro-positional constraints formed by the question number information of the minor questions. The final question block structure flow is determined based on the macro-micro anchor point structure flow, and the final question block structure flow is used as the basis for determining the question image region, question type division, and binding scoring resources; Based on the question number-level resource constraint information, the question number or question number range in the final question block structure flow is bound to scoring resources and the path validity is judged. Based on the final question block structure flow and the question number-level resource constraint information, the objective question scoring process and the subjective question scoring process are executed respectively to generate structured marking results; When the page to be processed is an answer sheet page, an answer sheet answering unit is generated based on the answer area, question number text and / or preset layout order, question number configuration relationship and spatial proximity relationship. The answer sheet answering unit is used as a scoring execution unit compatible with the final question block structure flow, and accesses question number level resource constraint information, scoring path verification and objective question scoring process or subjective question scoring process.
[0009] Preferably, the generation of the macro-micro anchor point structure flow includes: identifying macro anchor points related to the major question type and micro anchor points related to the sub-question numbers based on the text content, text box coordinates, and page layout information in the OCR structured recognition results; wherein, the macro anchor points are used to represent the major question title, question type semantics, and question block scope, and the micro anchor points are used to represent the sub-question numbers, question number order, and sub-question positional relationships; and generating the macro-micro anchor point structure flow according to the spatial relationship, sequential relationship, and question type context relationship between the macro anchor points and the micro anchor points.
[0010] Preferably, the determination of the final question block structure flow includes: organizing and classifying candidate question blocks in the test paper according to the macro-micro anchor point structure flow; determining the final question block structure flow for downstream processing according to the question type attributes, question number range, page position and context relationship of the candidate question blocks; wherein, the final question block structure flow includes at least question block type, question number affiliation, question image region and candidate scoring path.
[0011] Preferably, the question-number level resource constraint information includes: standard answer, reference answer resource, question score, and allowed scoring path corresponding to the question number or question number range; wherein, the standard answer is used to constrain the scoring process of objective questions, the reference answer resource is used to constrain the scoring process of subjective questions, the question score is used to constrain the score range of the scoring results, and the allowed scoring path is used to determine the legality of candidate scoring paths.
[0012] Preferably, the objective question scoring process includes: determining an objective question region or objective question block based on the final question block structure flow, and determining the corresponding objective question standard answer and question score based on the question number-level resource constraint information; extracting student answers from the objective question region or objective question block; separating the answer extraction result from the procedural comparison process, and performing procedural comparison and score calculation based on the objective question standard answer to generate the objective question scoring result.
[0013] Preferably, the subjective question scoring process includes: determining a single subjective question slice image or a subjective question slice based on the final question block structure flow, and determining the current question number to be scored, the corresponding reference answer resource, and the question score based on the question number-level resource constraint information; after binding the reference answer resource, performing a score for the specified question number on the single subjective question slice image or subjective question slice; and constraining the score range and marking abnormal states on the subjective question scoring output results to generate subjective question scoring results.
[0014] Preferably, the method further includes a diagnostic and auditing process: recording process information related to the macro-micro anchor point structure flow, the final question block structure flow, question number-level resource constraint information, scoring results, and anomaly markers, and locating, reviewing, and auditing the automatic marking results based on the process information.
[0015] Preferably, the generation of the answer sheet answering unit includes: identifying the answering area in the answer sheet page; excluding or marking at least one non-answering area among the identity information area, barcode area, description area, header / footer, and full-page border; associating the question number or question number range with the corresponding answering area based on at least one of the question number text, preset layout order, question number configuration relationship, and spatial proximity relationship to generate the answer sheet answering unit; and converting the answer sheet answering unit into a scoring execution unit compatible with the final question block structure flow; wherein, the answer sheet answering unit includes at least the question number or question number range, answering area coordinates, area type, candidate scoring path, and anomaly marker.
[0016] The present invention also provides an automatic paper exam paper marking device, comprising: The OCR recognition module is used to acquire images of paper test paper pages and obtain OCR structured recognition results based on the images of the paper test paper pages. The structure flow generation module is used to generate a macro-micro anchor point structure flow based on the OCR structured recognition result. The macro-micro anchor point structure flow includes macro-structural constraints formed by the question type information of the major questions and micro-positional constraints formed by the question number information of the minor questions. The question block determination module is used to perform structured organization, question type classification, and question block purification processing on candidate question blocks according to the macro-micro anchor point structure flow, so as to determine the final question block structure flow for downstream processing; or, when the page to be processed is an answer sheet page, it generates answer sheet answering units based on the association between the answer area and the question number, and converts the answer sheet answering units into scoring execution units compatible with the final question block structure flow; The resource binding module is used to bind scoring resources to the question numbers or question number ranges in the final question block structure flow or the scoring execution unit according to the question number-level resource constraint information, and to perform legality verification on the candidate scoring paths. The scoring execution module is used to execute the scoring process for objective questions and / or subjective questions based on the candidate scoring paths that have passed the verification. The results output module is used to output structured marking results, which include at least the question number, question type, scoring path, score, full score, scoring reason, and anomaly marker.
[0017] The diagnosis and audit module is used to record process information related to macro and micro anchor point structure flow, final question block structure flow, question number-level resource constraint information, scoring results and anomaly markers, in order to support the location, review and audit traceability of automatic marking results.
[0018] Furthermore, the structure flow generation module is configured to: identify macro anchors related to major question types and micro anchors related to minor question numbers based on the text content, text box coordinates, and page layout information in the OCR structured recognition results, and generate a macro-micro anchor structure flow according to the spatial relationship, sequential relationship, and question type context relationship between the macro anchors and the micro anchors.
[0019] Furthermore, the question block determination module is configured to: determine candidate question blocks based on the macro-micro anchor point structure flow, and generate a final question block structure flow based on the question type attribute, question number affiliation, page position and context relationship of the candidate question blocks; wherein, the final question block structure flow includes at least question block type, question number affiliation, question image region and candidate scoring path.
[0020] Furthermore, the resource binding module is configured to: bind scoring resources to the final question block structure flow based on the standard answer, reference answer resources, question score, and allowed scoring path corresponding to the question number or question number range, and determine whether the candidate scoring path satisfies the allowed scoring path.
[0021] Furthermore, the scoring execution module includes an objective question scoring submodule and a subjective question scoring submodule; The objective question scoring submodule is configured to: extract student answers from objective question areas or objective question blocks, separate the answer extraction results from the programmed scoring process, and perform programmed comparison and score calculation based on the corresponding objective question standard answers; The subjective question scoring submodule is configured to: after binding the reference answer resource corresponding to the current question number to be scored, perform scoring on the subjective question slice image or subjective question slice with the specified question number, and constrain the score range and mark abnormal status on the subjective question scoring output results.
[0022] The present invention also provides an automatic paper-based test paper marking system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes an automatic paper-based test paper marking method when executed by the processor.
[0023] The present invention also provides a storage medium storing a computer program, which executes an automatic grading method for paper-based examination papers when running.
[0024] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention introduces an OCR macro-micro anchor point structure flow, enabling automatic grading of paper-based exam papers to simultaneously utilize both major question type information and minor question number information to establish hierarchical structural constraints. Macro anchor points represent the semantics of major question types and the scope of question blocks, while micro anchor points represent the position and sequence of minor question numbers. Through the synergistic effect of these macro-structural and micro-positional constraints, unstructured exam paper images can be transformed into a final question block structure flow suitable for subsequent grading processing, reducing structural ambiguity in question-level processing.
[0025] When faced with complex situations such as layout changes, left and right columns, cross-page answers, missed question number recognition, interference from pseudo-question numbers, and handwritten content adhering to the question stem, this invention can reduce the problems of missed segmentation, incorrect segmentation, and question mixing caused by relying solely on fixed templates or single question number recognition. Therefore, it improves the stability of question segmentation and scoring routing in complex paper-based exam scenarios.
[0026] This invention further introduces question-number-level resource constraint information, binding standard answers, reference answer resources, question scores, and allowed scoring paths to specific question numbers or question number ranges. Through this resource constraint mechanism, the legality of scoring resources and candidate scoring paths can be judged based on the final question block structure flow, reducing the risks of mixed use of objective and subjective question candidate scoring paths, mismatched reference resources, and score out-of-bounds errors.
[0027] For objective questions, this invention separates student answer extraction from programmed scoring. The model primarily extracts students' original answers, while the program performs comparisons and score calculations based on the question number and standard answer, thereby improving the consistency and certainty of objective question scoring. For subjective questions, this invention performs scoring for the specified question number after binding it to the current question number and its corresponding reference answer resource. This reduces issues such as question mixing, missed scoring, and mismatched reference resources in multi-question consecutive scenarios, improving the controllability of the subjective question scoring process.
[0028] Furthermore, this invention outputs structured marking results containing question number, question type, scoring path, score, full score information, scoring instructions, or anomaly markers, and records process information related to macro- and micro-anchor point structure flows, final question block structure flows, question number-level resource constraint information, and scoring results. Therefore, the automatic marking results can be located, reviewed, and audited, thereby improving the stability, controllability, and audit traceability of automatic marking of paper-based exam papers.
[0029] This invention can also convert the answer area recovery result into a scoring input object that is compatible with the question block structure flow of ordinary test papers in the answer sheet scenario, so that the answer sheet answer area can reuse question number-level resource constraints, objective question procedural scoring, subjective question number-specified scoring and diagnostic auditing processes, thereby reducing the risk of inconsistent scoring interfaces and resource mismatch in multi-page scenarios. Attached Figure Description
[0030] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the automatic marking method for paper-based examination papers according to an embodiment of the present invention; Figure 2 This is a schematic diagram of OCR macro-micro anchor point structure flow generation provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the final question block structure flow generation and question block splitting provided in an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the binding of question number-level resource constraints and scoring resources in an embodiment of the present invention; Figure 5 This is a schematic diagram of the dual-link scoring process for objective and subjective questions provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the automatic paper exam paper marking device provided in an embodiment of the present invention; Figure 7 This is a schematic diagram illustrating the diagnostic and audit traceability provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the answer sheet scenario adaptation process provided in an embodiment of the present invention. Detailed Implementation
[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] Example 1 like Figure 1 As shown, the present invention provides a method for automatically grading paper exam papers, comprising: Acquire images of paper test paper pages and obtain structured recognition results corresponding to the page images. The structured recognition results include one or more of text content, coordinate boxes, and confidence scores. Adapt the structured recognition results and / or page layout information to the marking scenario. Based on the structured recognition results, macro anchors corresponding to the main title and micro anchors corresponding to the sub-question numbers are identified, and a test paper structure flow is generated according to the macro anchors, the micro anchors and the page layout information; the candidate question blocks in the test paper structure flow are classified by question type, and when the candidate question block contains multiple scoring semantics, it is split into sub-blocks to generate the final question block structure flow as the basis for downstream image slicing and scoring routing; Based on the final question block structure flow, or based on a scoring execution unit compatible with the final question block structure flow, generate objective question block images and / or subjective question single question slice images, and determine the scoring resources and allowed scoring paths for the corresponding question number according to the question number-level resource constraint information; Based on the scoring resources and allowed scoring paths, answer extraction and procedural scoring are performed on the objective question block images, and / or scoring is performed on the subjective question single question slice images by specified question numbers; Output structured marking results, which include at least the question number, score, full score, marking reason, and anomaly marker.
[0035] As one embodiment of the present invention, the step of identifying macro anchors corresponding to major question titles and micro anchors corresponding to minor question numbers based on the structured recognition results, and generating a test paper structure flow based on the macro anchors, the micro anchors, and page layout information, specifically includes: Macro anchor points for corresponding main headings are identified based on the text content, text coordinate boxes, and page position in the structured recognition results. Based on the text content, local coordinate relationships, and question number format rules in the structured recognition results, the micro-anchor points of the corresponding sub-question numbers are identified, and pseudo-question numbers are filtered out. Based on the page column affiliation, vertical order within the page, page number information, and cross-page continuity, the macro anchors and micro anchors are associated with the corresponding candidate question blocks; Candidate question blocks are constructed by using macro anchor points as the starting point and macro anchor points in the same column, page boundaries, or cross-page inheritance boundaries as the ending points. The test paper structure flow is generated by combining micro-anchors in candidate question blocks, structured recognition context, and question block attributes.
[0036] As one embodiment of the present invention, the step of classifying candidate question blocks in the test paper structure stream by question type to generate a final question block structure stream as the basis for downstream image slicing and scoring routing specifically includes: Based on macro anchor text, local structured recognition context, and question type keywords, candidate question blocks are classified into objective question blocks, subjective question blocks, or mixed question blocks; When a candidate question block is classified as a mixed question block, a local question interval is extracted based on the micro-anchor point position and the neighboring text. Based on the objective question signals and subjective question signals in the local question interval, the mixed question block is divided into objective question sub-blocks and subjective question sub-blocks; The objective question blocks, subjective question blocks, and objective question sub-blocks and subjective question sub-blocks obtained by splitting the mixed question blocks are written into the final question block structure stream for use in subsequent image slicing and scoring routing.
[0037] As one embodiment of the present invention, the step of determining the scoring resources and allowed scoring paths for the corresponding question number based on the question number-level resource constraint information specifically includes: Maintain the question number set, objective question standard answer, subjective question reference answer diagram, question score, default scoring path, and allowed scoring path set through question number-level resource constraint information; Based on the current question number, retrieve the corresponding standard answer, reference answer diagram, question score, and scoring path constraint information from the question number-level resource constraint information; The final question block structure flow or scoring execution unit serves as the factual basis for question block coordinates, question number range, and candidate scoring paths, while the question number-level resource constraint information serves as the constraint basis for the legality of scoring resources and paths. When a candidate scoring path satisfies the set of allowed scoring paths, the corresponding scoring process is executed; when a candidate scoring path does not satisfy the set of allowed scoring paths, an abnormal status is recorded or a review flag is output.
[0038] As one embodiment of the present invention, the step of extracting answers and performing programmed scoring on the objective question block image specifically includes: Based on micro-anchors, structured text, top candidate question numbers, bridging relationships between adjacent question blocks, and question number order relationships, construct the expected question number set corresponding to the current objective question block image; The objective question block image and the expected question number set are input into the multimodal model, so that the multimodal model extracts the student's original answer content without performing right or wrong judgment or directly assigning points; The set of missing question numbers is determined based on the difference between the set of question numbers returned by the multimodal model for the first time and the expected set of question numbers. For the question numbers in the set of missing question numbers, perform targeted retry extraction and merge the initial extraction result with the targeted retry extraction result; Based on the objective question standard answers and question scores bound in the question number-level resource constraint information, the student's original answers are normalized, compared blank by blank, scored blank by blank, and the results are summarized to form a structured scoring result for objective questions.
[0039] As one embodiment of the present invention, the step of scoring the subjective question slice image by a specified question number specifically includes: Based on the final question block structure flow, generate single-question or question area-level subjective question slice images, and determine the current question number to be scored; Based on the current question number to be scored, bind the reference answer image, question score, and scoring configuration resources from the question number-level resource constraint information; Perform a pre-scoring quality check on the subjective question slice image, the pre-scoring quality check including at least one of slice integrity check, answer area clarity check and reference resource existence check; The subjective question slice image, the current question number to be scored, and the reference answer image bound to the current question number to be scored are input into the multimodal scoring model, and the multimodal scoring model is constrained to score only the current question number to be scored; The multimodal scoring model outputs at least one of the following: question number consistency check, score range check, field integrity check, and reason and score consistency check. If the check fails, a re-evaluation, score truncation, or review flag is triggered and output.
[0040] As one embodiment of the present invention, it also includes a diagnostic and auditing process based on structure flow, scoring execution unit, and fact object, specifically including: The preprocessed page image is used as the diagnostic background image; The final question block structure flow serves as the source of structural facts for question block boundaries, question types, and question number ranges. Establish a fact object for each image slice or answer sheet unit. The fact object includes at least a slice identifier or unit identifier, a source question block identifier or source region identifier, a cropping boundary, a question number or question number range, an output path, and a warning message. Based on the preprocessed page image, the final question block structure flow, the scoring execution unit, the fact object, and the running configuration, a diagnostic annotation map or audit map is deterministically generated to support slice source review, anomaly location, and manual review. Record key operational events related to image slicing, directed retries, warnings, score truncation, and result output to form an audit evidence chain oriented towards the slicing and scoring process.
[0041] As one embodiment of the present invention, the method further includes an answer sheet scenario adaptation process; when the page to be processed is an answer sheet page, based on the answer area, question number text and / or preset layout order, question number configuration relationship and spatial proximity relationship, the non-answer area in the answer sheet page is excluded or marked to generate an answer sheet answer unit, and the answer sheet answer unit is converted into a scoring execution unit compatible with the final question block structure flow, so as to allow the question number-level resource constraint information to perform resource binding and scoring path verification; wherein, the answer sheet answer unit includes at least a question number or question number range, answer area coordinates, area type, candidate scoring path and anomaly marker.
[0042] This invention provides an automatic grading method for paper-based exam papers based on OCR macro-micro anchor point structure flow and question number-level resource constraints. The paper-based exam paper page images, OCR structured recognition results, macro anchor points, micro anchor points, macro-micro anchor point structure flow, final question block structure flow, question number-level resource constraint information, objective question scoring process, subjective question scoring process, and diagnosis and auditing process involved in this invention are all exemplary descriptions used to facilitate the explanation of the technical solution of this invention, and do not constitute a limitation on specific data formats, module naming, or implementation methods.
[0043] In this embodiment of the invention, the macro-micro anchor structure flow refers to the intermediate structural information generated based on the OCR structured recognition results, used to describe the context of major question types, the position of sub-question numbers, the order of question numbers, the relationship of question type affiliation, and the layout of pages in a paper-based test paper. Macro anchors are used to represent the title of major questions, the semantics of question types, and the scope of question blocks, while micro anchors are used to represent the question numbers, the order of question numbers, and the positional relationship of sub-questions. The macro-micro anchor structure flow is mainly used to provide a structural basis for constructing candidate question blocks.
[0044] The final question block structure flow refers to the question block-level execution structure formed based on the macro-micro anchor point structure flow, after candidate question block construction, question type classification, mixed question block splitting, and candidate scoring path determination. The final question block structure flow includes at least one or more of the following: question block identifier, question block type, question number or question number range, page number, column information, image region coordinates, source macro anchor point, source micro anchor point, candidate scoring path, resource binding status, and anomaly marker. The final question block structure flow serves as the basis for downstream image slicing, scoring resource binding, and scoring path splitting.
[0045] The question-number-level resource constraint information refers to scoring constraint information maintained independently of page physical coordinates and indexed by question number or question number range. This information may include one or more of the following: standard answers for objective questions, reference answer resources for subjective questions, question scores, default scoring paths, a set of allowed scoring paths, scoring rules, and exception handling strategies. This question-number-level resource constraint information is used to validate the legality of question number attribution, candidate scoring paths, and scoring resource binding relationships in the final question block structure flow.
[0046] The scoring execution unit is a structured input object that can be bound to resource information at the question number level, have its scoring path verified, and enter the scoring process for objective or subjective questions. The scoring execution unit can originate from the final question block structure flow or from the answer sheet answering unit. The scoring execution unit can include one or more of the following: question number or question number range, image region coordinates, candidate scoring path, source identifier, resource binding status, and anomaly marker. The answer sheet answering unit, in the answer sheet scenario, generates a question number-level answer area object based on the answer area, question number text, and / or preset layout order, question number configuration relationship, and spatial proximity relationship. The answer sheet answering unit can include one or more of the following: unit identifier, page identifier, question number or question number range, answer area coordinates, area type, candidate scoring path, resource binding status, confidence level, and anomaly marker. The answer sheet answering unit is used to replace the question block structure input in a regular exam paper in the answer sheet scenario, and after being converted into a scoring execution unit, it accesses question number-level resource constraint information, scores path verification, and subsequent scoring processes.
[0047] This invention provides an automatic grading method for paper-based exam papers based on OCR macro-micro anchor point structure flow and question number-level resource constraints. Figure 1 This diagram illustrates the overall flowchart of an automatic grading method for paper-based examination papers provided by an embodiment of the present invention. The method takes images of the paper-based examination paper pages and configuration resources as input, and generates structured grading results through image preprocessing, text recognition and structure parsing, question type semantic routing classification, question slicing, objective question scoring, subjective question scoring, and result summarization.
[0048] Figure 1 The automatic grading method for paper-based exam papers shown includes steps 101 to 108, and includes a scoring resource analysis module 109 and a mixed question type splitting unit 110. The following section will combine... Figure 1 Each step and functional unit is explained.
[0049] like Figure 1As shown, in step 101, test paper data and configuration resources are input. The test paper data may include images of paper test paper pages obtained through scanning, photographing, or file conversion; the configuration resources may include a set of question numbers, standard answer resources for objective questions, reference answer resources for subjective questions, question scores, scoring rules, and allowed scoring paths, etc. The test paper data is used to provide the physical page content of the test paper to be graded, and the configuration resources are used to provide a basis for subsequent binding of scoring resources, judgment of the legality of scoring paths, and score constraints.
[0050] In step 102, the exam paper image is preprocessed. This preprocessing may include one or more of the following: image denoising, tilt correction, page cropping, grayscale conversion, sharpness enhancement, or layout normalization. Preprocessing the exam paper image can improve the stability of subsequent OCR recognition and layout structure analysis. It should be understood that the specific preprocessing method can be adjusted according to the exam paper image acquisition method, sharpness, tilt degree, and layout quality.
[0051] In step 103, text recognition and structural analysis are performed. Specifically, OCR recognition is performed on the preprocessed test paper image to obtain OCR structured recognition results. The OCR structured recognition results may include one or more of the following: text content, text box coordinates, confidence level, page number information, column information, and page order information.
[0052] During the structural analysis process, macro anchors and micro anchors are extracted based on the OCR structured recognition results. Macro anchors are used to represent the main question title, question type semantics, and question block scope. For example, text fragments with question type hierarchy meanings such as "I. Fill in the blanks," "II. Multiple choice questions," "III. Calculation questions," and "IV. Problem-solving questions" in the OCR recognition results can be identified as macro anchors. Micro anchors are used to represent the sub-question numbers, question number order, and sub-question positional relationships. For example, question number texts that indicate the starting position of a sub-question, such as "1.", "2.", "(1)", and "Question 3", can be identified as micro anchors.
[0053] In one implementation, pseudo-anchors can also be suppressed. These pseudo-anchors can include text that is easily misidentified as question numbers, such as decimals, equations, page numbers, fractions, numbers in the question stem, or numbers in student answers. For example, for text such as "3.14", "7+8=15", and "1 / 2", their authenticity can be determined by combining the question number format, local coordinates, neighboring text, and contextual relationships. This processing can reduce the interference of non-question number numbers on the subsequent generation of question block structures.
[0054] After obtaining macro-anchor points and micro-anchor points, a macro-micro-anchor point structure flow is generated based on the spatial, sequential, and question-type contextual relationships between them. This macro-micro-anchor point structure flow is used to describe the question-type structure, question numbering, question block scope, and page layout relationships in the exam paper.
[0055] In step 104, routing is classified based on question type semantics. Specifically, based on the macro-micro anchor point structure flow generated in step 103, and combined with question type semantics, question number attribution relationships, page layout relationships, and OCR context, candidate question blocks are classified. Candidate question blocks can be divided into objective question blocks, subjective question blocks, or mixed question blocks.
[0056] During this process, the final question block structure flow that can be used for downstream slicing and scoring can be further determined. This final question block structure flow can include information such as question block type, question number affiliation, question image region, and candidate scoring path. For example, macro anchors can be used to determine the start and end range of a question type region, micro anchors can be used to determine the question number order and local position of sub-questions within that region, and page columns and in-page order can be used to determine the spatial affiliation of question blocks on the page. Thus, the OCR structure parsing results can be transformed into structured question block objects that can be directly used in the downstream scoring process.
[0057] In step 105, question slicing is performed according to the routing results. Specifically, based on the final question block structure flow obtained in step 104, the corresponding question areas in the paper test paper page image are cropped to obtain objective question block images, subjective question single question slice images, or subjective question area-level slice images. Through this step, the entire page of unstructured test paper image can be transformed into a scoring input object with question number and question type attributes.
[0058] In one implementation, for subjective question slices, the question region boundary can be determined based on the current micro-anchor point position and the next micro-anchor point position; for objective question blocks, question block images can be generated according to question type region or question number range. The above slicing method is not limited to a fixed coordinate template, but is determined based on the macro-micro-anchor point structure flow and the final question block structure flow.
[0059] In step 106, answers are extracted and scored from the objective question slices. For images identified as objective question regions or objective question blocks, answers are extracted from student responses based on the objective question standard answer resources and question scores provided by the scoring resource analysis module 109.
[0060] In this embodiment, the objective question scoring process separates the answer extraction process from the programmed scoring process. Specifically, objective question block images can be input into the model to extract students' original answers. The model output can be a structured correspondence between question numbers and student answers. Subsequently, based on the question number-level standard answer resources, normalization processing, blank-by-blank comparison, and score calculation are performed on the student's answers to generate the objective question scoring results. Thus, the judgment of correctness and score calculation for objective questions are not directly completed by the model, but are executed by the program based on the standard answers.
[0061] In step 107, the subjective question slices are scored by comparing them with the reference answers. For images identified as single subjective question slices or subjective question slices, the current question number to be scored is determined based on the reference answer resources, question scores, and scoring rules provided by the scoring resource parsing module 109, and the current subjective question slice is bound to the reference answer resource corresponding to that question number. Subsequently, scoring for the specified question number is performed based on the current question number, the subjective question slice, and the corresponding reference answer resource.
[0062] In one implementation, the scoring results for subjective questions can also be subject to score range constraints and anomaly flagging. For example, when the model outputs a score exceeding the full score range for a question, or when the output lacks necessary fields such as question number, score, and scoring instructions, anomaly flags can be recorded, scores can be truncated, or a review prompt can be output. This processing can reduce the risks of question mix-ups, missed scoring, mismatched reference answer resources, or score out-of-bounds errors.
[0063] In step 108, the scoring results are summarized and a report is generated. Specifically, the scoring results for objective questions and subjective questions are summarized to generate structured marking results. The structured marking results may include question number, question type, scoring path, score, full score information, scoring instructions, or anomaly markers. In some embodiments, a marking report may also be generated based on the structured marking results to display the student's scores for each question, total score, anomaly markers, and information on questions requiring review.
[0064] Figure 1 The scoring resource parsing module 109 is used to provide corresponding scoring resources to the objective question scoring process and the subjective question scoring process based on question number-level resource constraint information. The question number-level resource constraint information may include a set of question numbers, objective question standard answer resources, subjective question reference answer resources, question scores, scoring rules, and allowed scoring paths, etc. The scoring resource parsing module 109 does not replace the question type semantic routing classification in step 104, but rather, after the final question block structure flow is formed, it performs scoring resource binding and candidate scoring path validity judgment on the corresponding question number or question number range.
[0065] Figure 1The mixed question type splitting unit 110 is used to process mixed question blocks that simultaneously contain objective and subjective question features. For such mixed question blocks, splitting can be based on macro-micro anchor structure flow, question number attribution relationship, and local OCR context. For example, when both short-answer sub-questions requiring standard answer comparison and process-based scoring sub-questions exist within the same large question area, the mixed question block can be split into objective question sub-blocks and subjective question sub-blocks based on micro-anchor position, neighboring text, and question type semantics, for subsequent entry into the corresponding scoring processes.
[0066] pass Figure 1 As shown in the process, this embodiment can gradually transform the paper test paper page image into a structured marking object with question type semantics, question number attribution, image region and scoring resource constraints, thereby supporting question slicing, scoring distribution, resource binding and result output in complex paper test paper scenarios.
[0067] Example 2 Figure 2 This diagram illustrates an OCR macro-micro anchor point structure flow generation method according to an embodiment of the present invention. This process can be applied to, for example... Figure 1 The paper-based automatic grading method shown illustrates how to transform OCR recognition results into a final question block structure flow with question type semantics, question number attribution, and execution constraints.
[0068] like Figure 2 As shown, the OCR recognition result input unit 201 receives the OCR recognition result. The OCR recognition result includes not only the text content but also the coordinate information of each text box on the page. In one embodiment, each OCR text box may include at least the text content, the coordinates of the top-left corner of the text box, the width and height of the text box, the confidence level, the page number, the column location, and the page sorting number. An OCR representation layer can be constructed based on this information, so that subsequent anchor point extraction no longer relies solely on plain text but also combines text semantics and page layout.
[0069] The macro anchor extraction unit 202 is used to extract the title of a major question or the starting point of a question type area from the OCR presentation layer. Specifically, macro anchors can be determined based on question type keywords, title number format, and text box position. For example, when the OCR text contains text with major question numbers and question type keywords, such as "I. Fill in the blanks," "II. Multiple choice questions," "III. Calculation questions," and "IV. Problem solving questions," and this text is located above the question area or at the beginning of the same column, it can be identified as a macro anchor. Macro anchors are used to determine the question type semantics and major question scope of subsequent question blocks.
[0070] The micro-anchor extraction unit 203 is used to extract the question numbers from the OCR representation layer. Specifically, micro-anchors can be determined based on the question number format, local coordinate relationship, and neighboring text. For example, texts with question number characteristics such as “1.”, “2,”, “(1),” and “Question 3” located in the question's starting area can be extracted as micro-anchors. When extracting micro-anchors, pseudo-question numbers can also be filtered. For non-question number texts such as decimals, formulas, fractions, page numbers, scores, and student answer numbers such as “3.14,” “7+8=15,” and “1 / 2,” they can be excluded by combining their neighboring characters, text box position, whether they are in the question stem's starting area, and whether they satisfy the question number increment relationship, thereby reducing the interference of non-question number numbers on subsequent question selection.
[0071] Anchor point collaboration constraint unit 204 is used to associate macro anchor points and micro anchor points. Specifically, the subordinate relationship can be determined based on the page coordinate relationship, column relationship, and question number order relationship between macro anchor points and micro anchor points. If multiple micro anchor points are located after a macro anchor point, in the same column, or within a continuous page range, and the question number order satisfies an ascending relationship, these micro anchor points can be attached to the question type context corresponding to the macro anchor point. When no macro anchor point is recognized at the top of a new page, the macro anchor point context at the end of the previous page can be inherited to maintain the question type continuity of cross-page question blocks. Through this collaboration constraint, segmentation based solely on local question numbers or fixed coordinates can be avoided.
[0072] The preliminary structure flow generation unit 205 is used to generate a preliminary question block structure flow based on the anchor point association results. Specifically, a macro anchor point can be used as the starting point of a large question area, and a macro anchor point in the same column, a page boundary, or a cross-page inheritance boundary can be used as the ending point of that large question area. At the same time, the question number range and page position of the candidate question blocks are determined based on the page coordinate order, column affiliation, and question number continuity of the micro anchor points. The preliminary question block structure flow generated in this way can record the question type semantics, question number range, page number, column, image area, and OCR context of each candidate question block.
[0073] The question block classification unit 206 is used to determine the type of candidate question blocks based on the preliminary question block structure flow. Specifically, it can combine macro anchor text, micro anchor distribution within the candidate question block, local OCR text, and question resource constraint information 209 to classify candidate question blocks into objective question blocks, subjective question blocks, or mixed question blocks. For example, a question block containing question type semantics such as multiple choice, fill-in-the-blank, and true / false, and corresponding to standard answer resources, can be identified as an objective question block; a question block containing question type semantics such as solution, proof, application, and drawing, and corresponding to reference answer resources, can be identified as a subjective question block; when objective question signals and subjective question signals exist simultaneously within the same candidate question block, it can be identified as a mixed question block.
[0074] The mixed question block secondary splitting unit 207 is used to perform fine-grained splitting of mixed question blocks. Specifically, it can obtain the coordinate boundaries of each micro-anchor point within the mixed question block and extract the local OCR text between or after adjacent micro-anchor points; then, it combines text features, spatial height, and question number range to determine the subtype. For example, if the local text after a micro-anchor point has features such as short answer, formula, equal sign, or multiple choice, and the question corresponds to a standard answer resource, an objective question sub-block can be generated; if the area after a micro-anchor point has a large blank space for answering, process-based solution text, or a reference answer resource binding relationship, a subjective question sub-block can be generated. Through this processing, objective and subjective questions mixed within the same large question area can be split into different sub-blocks for subsequent entry into the corresponding scoring process.
[0075] The final execution stream output unit 208 is used to generate the final question block structure stream. In one embodiment, the final question block structure stream can be denoted as `final_block_stream`. A single question block object in this structure stream may include fields such as question block identifier, question block type, question number or question number range, page number, column, image region coordinates, candidate scoring path, and associated OCR context. Through this structured output, the system transforms the preceding OCR recognition results and anchor point relationships into a unified structural basis that can be used by downstream slicing, resource binding, and scoring execution.
[0076] Question resource constraint information 209 is used to assist in question block classification and final execution flow output. The question resource constraint information may include question number range, candidate paths, and type constraints. In this embodiment, the question resource constraint information does not directly replace structured flow judgment, but is used to verify whether the question number attribution, question type attribute, and candidate scoring path in the question block are reasonable. For example, when a question number is only allowed to enter the subjective question scoring path according to the resource constraint information, candidate results that are misclassified as objective question blocks can be anomaly marked or re-judged.
[0077] pass Figure 2 The processing method shown can generate a macro-micro anchor point structure flow based on OCR text content and page layout coordinates, and further output a final question block structure flow containing question block type, question number affiliation, image region, and candidate scoring path. This final question block structure flow provides an executable structured basis for subsequent question slicing, resource binding, and multi-link scoring. Thus, the macro-micro anchor point structure flow focuses on expressing the structural analysis facts recovered from OCR anchor points and page layout relationships, while the final question block structure flow focuses on expressing the question block execution facts after classification, splitting, and path candidate determination. The two correspond to the structural analysis stage and the scoring execution preparation stage in the automatic marking process, respectively.
[0078] Example 3 Figure 3This diagram illustrates a final question block structure flow generation and question block splitting method provided by an embodiment of the present invention. This process can be applied to, for example... Figure 1 The method for automatically grading paper-based exam papers shown herein, and undertakes... Figure 2 The OCR macro-micro anchor point structure flow generation process shown illustrates how candidate question blocks are further processed into a final question block structure flow that can be used for downstream slicing, resource binding, and scoring execution.
[0079] like Figure 3 As shown, the candidate question block input unit 301 is used to receive candidate question blocks generated by the preceding structure parsing process. The candidate question blocks can originate from OCR structured recognition results, macro-micro anchor point structure flow, and page layout relationships. Each candidate question block can contain structural facts such as question type semantics, question number or question number range, page number, column affiliation, image region coordinates, and local OCR context. These structural facts serve as the basis for subsequent question block classification and execution path determination.
[0080] The candidate question block classification unit 302 is used to classify candidate question blocks by type. Specifically, candidate question blocks can be classified according to the macro anchor text, micro anchor question number range, local OCR text features, and question number-level resource constraint information corresponding to the candidate question block. If the question number corresponding to the candidate question block has a standard answer resource, and its question type semantics or local text has objective question features such as multiple choice, fill-in-the-blank, judgment, and short calculation, it can be identified as an objective question block; if the question number corresponding to the candidate question block has a reference answer resource, and its question type semantics or local text has subjective question features such as solution, application, proof, and drawing, it can be identified as a subjective question block; if the same candidate question block contains both objective and subjective question features, it can be identified as a mixed question block.
[0081] The mixed question block secondary splitting unit 303 is used to perform fine-grained splitting of candidate question blocks classified as mixed question blocks. In one embodiment, micro-anchors within a mixed question block can be used as local segmentation references to extract local OCR text between or after adjacent micro-anchors, and subtype determination can be made by combining spatial region height, answer blank area, question number range, and resource binding status. For example, if the local text after a certain micro-anchor contains selection options, fill-in-the-blank lines, equal signs, or short answer features, and the question number is bound to a standard answer resource, an objective question sub-block can be generated; if the area after a certain micro-anchor has a large answer space, or the question number is bound to a reference answer resource, a subjective question sub-block can be generated. The boundaries of the objective and subjective question sub-blocks can be determined based on the current micro-anchor position, the next micro-anchor position, the candidate question block boundary, or the page boundary.
[0082] The final question block structure stream generation unit 304 is used to generate a final question block structure stream based on objective question blocks, subjective question blocks, objective question sub-blocks, and subjective question sub-blocks. In one embodiment, the final question block structure stream can be denoted as `final_block_stream`. A single question block object in the final question block structure stream may include fields such as question block identifier, question block type, question number affiliation, question number range, page number, image region coordinates, source anchor point, candidate scoring path, and anomaly flag. Through the above structured organization, the system transforms candidate question blocks into a final question block structure stream that can be directly used by downstream question slicing, resource binding, and scoring execution.
[0083] In one specific implementation, the final question block structure stream can consist of multiple question block objects, each representing a question block unit corresponding to an executable scoring link. The question block objects can be represented using a structured data organization method, and their representative fields may include: question block identifier (block_id), question block type (type), corresponding macro anchor text (macro_anchor), corresponding micro anchor set (micro_anchors), question block boundary (bounding_box), and candidate execution path (candidate_route).
[0084] For example, the question block object can be represented as: {block_id: "B_01", type: "OBJECTIVE_BLOCK", macro_anchor: "I. Multiple Choice Questions", micro_anchors: [1,2,3,4,5], bounding_box: [x1,y1,x2,y2], candidate_route: "objective"}.
[0085] The structured objects described above can organize the facts of the exam paper layout, the range of question numbers, and the candidate execution link facts into a single data object, thereby decoupling the layout structure analysis results from subsequent image slicing, link splitting, and scoring processes.
[0086] The execution path routing determination unit 305 is used to determine the legality of the candidate scoring paths for a question block based on the question block type and candidate scoring paths in the final question block structure flow, and in conjunction with the question number range, allowed paths, and scoring resource constraint information provided by the question number-level resource constraint unit 306. It should be noted that the question number-level resource constraint unit 306 does not directly replace the question block classification results, but rather verifies the question number attribution, resource binding status, and allowed execution paths based on the candidate scoring paths already formed in the final question block structure flow.
[0087] When a question block is determined to be an objective question block or an objective question sub-block, and its candidate scoring path satisfies the allowed path in the question number-level resource constraint information, it is sent to the objective execution path 3051. The objective execution path 3051 is used for subsequent objective question answer extraction, standard answer comparison, and programmed score calculation.
[0088] When a question block is determined to be a subjective question block or a subjective question sub-block, and its candidate scoring path satisfies the allowed path in the question number-level resource constraint information, the system sends it to the subjective execution path 3052. The subjective execution path 3052 is used for subsequent subjective question slicing, reference answer resource binding, and scoring of specified question numbers.
[0089] If the question block type, question number affiliation, or candidate scoring path does not match the question number-level resource constraint information, an anomaly marker can be set for the question block, or it can be transferred to the review process to avoid mixing objective and subjective question candidate scoring paths.
[0090] pass Figure 3 The process shown can further transform the previously generated candidate question blocks into a final question block structure stream with question block type, question number affiliation, image region, candidate scoring path, and resource constraint state, thereby providing executable structured input for subsequent question slicing, scoring resource binding, and objective / subjective dual-link scoring.
[0091] Example 4 Figure 4 This diagram illustrates a method for binding question-number level resource constraints and scoring resources according to an embodiment of the present invention. This process can be applied to, for example... Figure 1 The method for automatically grading paper-based exam papers shown herein, and undertakes... Figure 3 The process of generating and executing the final question block structure flow shown is used to illustrate how, based on the final question block structure flow, scoring resource binding and candidate scoring path validity judgment are completed based on question number-level resource constraint information.
[0092] like Figure 4 As shown, the structure flow question block facts 401 are used to provide the question block fact information to be bound. The structure flow question block facts 401 can originate from the aforementioned final question block structure flow, and may include information such as question block identifier, question block type, question number or question number range, question image region, source anchor point, candidate scoring path, and abnormal status. These question block facts characterize the question type attribute, question number affiliation, and image position of the current question block within the exam paper structure, serving as the basis for subsequent resource binding and execution constraint judgment.
[0093] The question-number-level resource constraint information 403 is used to provide scoring resources and path constraint information indexed by question number or question number range. In one embodiment, the question-number-level resource constraint information 403 may include a set of question numbers, question type identifiers, standard answers for objective questions, reference answer resources for subjective questions, question scores, allowed execution paths, and scoring configurations. For example, for an objective question number, the corresponding standard answer and full score information can be configured; for a subjective question number, the corresponding reference answer resources, full score information, and scoring requirements can be configured. The question-number-level resource constraint information 403 does not directly replace the structured flow's judgment of question block types, but is used to bind and verify the scoring resources and candidate scoring paths of the current question block.
[0094] In one specific implementation, question-level resource constraint information can be represented using a structured resource object indexed by question number. Representative fields of the resource object may include: question_id, standard_answer, reference_resource, point_value, default_route, and allowed_routes.
[0095] For example, the question-level resource constraint object can be represented as: {question_id: "24", standard_answer: null, reference_resource: "ref_q24.png", point_value: 4, default_route: "subjective", allowed_routes: ["subjective"]}.
[0096] The above resource objects enable the binding of scoring resources by question number and the legality constraints on candidate execution paths based on the set of allowed execution paths, thereby ensuring the consistency between scoring objects, scoring resources and scoring links.
[0097] The resource binding and execution constraint unit 402 is used to establish a question number-level correspondence between the structured flow question block facts 401 and the question number-level resource constraint information 403. Specifically, it first parses the question number or question number range in the current question block; then, using the question number or question number range as an index, it queries the corresponding standard answer, reference answer resource, question score, and allowed execution path in the question number-level resource constraint information 403; subsequently, it binds the queried scoring resources to the current question block and determines whether the candidate scoring path of the current question block belongs to the allowed execution path.
[0098] If the current question block is determined to be an objective question block, and its candidate scoring path satisfies the allowed execution path in the question number-level resource constraint information 403, an objective question scoring binding result is generated, and the objective question scoring execution 404 is entered. The objective question scoring binding result may include information such as question number, objective question image region, standard answer, question score, and objective question execution path, which is used to support subsequent objective question answer extraction and programmatic scoring.
[0099] If the current question block is determined to be a subjective question block, and its candidate scoring path satisfies the allowed execution path in the question number-level resource constraint information 403, a subjective question scoring binding result is generated, and the process proceeds to subjective question scoring execution 405. The subjective question scoring binding result may include information such as question number, subjective question image region, reference answer resource, question score, and subjective question execution path, which are used to support subsequent reference answer resource binding and scoring of specified question numbers.
[0100] When the structured flow question block fact 401 does not match the question number-level resource constraint information 403, or the candidate scoring path does not meet the allowed execution path, an exception recording or fallback processing 406 is initiated. In one implementation, exceptions may include: the current question number is not in the question number set, objective questions lack standard answers, subjective questions lack reference answer resources, the question block type is inconsistent with the question type identifier in the resource constraints, or the candidate scoring path does not belong to the allowed execution path. For the above exceptions, an exception marker can be recorded, a review prompt can be output, illegal scoring path execution can be prevented, or the corresponding question block can be transferred to the manual review process.
[0101] pass Figure 4 The process shown in this embodiment allows for the binding of question numbers with standard answers, reference answer resources, question scores, and allowed execution paths based on the question block facts in the final question block structure flow, and for the legality judgment of candidate scoring paths. Thus, without replacing the structure flow splitting judgment, question number-level constraints can be applied to scoring resources and execution paths, thereby reducing the risks of scoring resource mismatch, mixing of objective and subjective question candidate scoring paths, and score out-of-bounds errors.
[0102] pass Figure 4 As shown in the process, this embodiment can bind the question number with the standard answer, reference answer resources, question score and allowed execution path on the basis of the final question block structure flow, and make a legality judgment on the candidate scoring path, thereby reducing the risk of mismatch of scoring resources, mixing of candidate scoring paths for objective questions and subjective questions and score over-limit.
[0103] Example 5 Figure 5 This illustration shows a flowchart of a dual-link scoring process for objective and subjective questions, provided by an embodiment of the present invention. This process can be applied to, for example... Figure 1The method for automatically grading paper-based exam papers shown herein, and undertakes... Figure 3 and Figure 4 The final question block structure flow generation, execution path splitting, and question number-level resource binding process shown illustrates how the system performs objective question scoring and subjective question scoring based on the structured question block execution flow.
[0104] like Figure 5 As shown, the structured question block execution flow 501 is used to provide question block input for entering the scoring stage. The structured question block execution flow may include information such as question block type, question number or question number range, question image region, candidate scoring path, and resource binding status. The execution path diversion determination unit 502 sends the question block to the objective question processing link or the subjective question processing link according to the question block type and candidate scoring path in the structured question block execution flow.
[0105] In the objective question processing chain, the objective question execution unit 503 receives objective question blocks or objective question sub-blocks. The question number range completion module 504 completes the expected question number set of the current objective question block based on the micro-anchor point information, question number order relationship, and question number range in the question number level resource constraint information 519 in the structured question block execution flow. This processing can reduce the problem of missed evaluation of objective questions due to missing question number identification.
[0106] The student answer extraction unit 505 is used to extract the original student answers from the objective question block image. In one implementation, the model can only output the structured correspondence between question numbers and student answers, without allowing the model to directly judge right or wrong or give scores. The answer cleaning and alignment module 506 is used to normalize the format of the extracted student answers and align the question numbers, such as removing irrelevant symbols, unifying the option format, and processing empty or multi-blank answers, so as to facilitate subsequent procedural comparison.
[0107] When the set of question numbers returned by the model is found to be inconsistent with the expected set of question numbers, the missing question number targeted retry module 507 can trigger supplementary extraction only for the missing question numbers. After the retry result is merged with the initial extraction result, the scoring resource association unit 508 binds the corresponding standard answer and question score, and the programmatic scoring engine 509 performs standard answer comparison and score calculation to generate the objective question scoring result 510. Thus, the objective question link achieves the separation of answer extraction and programmatic scoring, avoiding the model directly determining the correctness of objective questions.
[0108] In the subjective question processing chain, the subjective question execution unit 511 is used to receive subjective question blocks, subjective question sub-blocks, or subjective question slices. The image slice and question number confirmation module 512 is used to confirm the current question number to be scored and determine the subjective question image region corresponding to that question number. The reference resource association unit 513 binds the corresponding reference answer resource, question score, and scoring configuration to the current question number to be scored according to the question number-level resource constraint information 519.
[0109] The pre-scoring quality check module 514 is used to perform basic checks on the subjective question slices and reference resources. These checks may include whether the slice is empty, whether the image is obviously incomplete, whether the reference answer resource exists, whether the question number matches, and whether the score configuration is valid. The directional controlled scoring unit 515 is used to perform scoring on a specified question number based on the current subjective question slice, the current question number to be scored, and the corresponding reference answer resource, ensuring that the scoring process focuses on the current question number and reduces question overlap and missed scoring in scenarios with multiple consecutive questions.
[0110] The verification and anomaly review module 516 is used to verify the subjective question scoring output. The verification may include question number consistency verification, score range verification, field integrity verification, and anomaly status judgment. When the scoring output does not meet the verification conditions, a review can be triggered, an anomaly marker can be recorded, or a review prompt can be output. The verified results are then used by the subjective question scoring result generation unit 517 to generate the subjective question scoring results.
[0111] Question number-level resource constraint information 519 provides common resource constraints for both objective and subjective question processing chains. This layer can include information such as standard answers, reference resources, scores, and path configurations. Specifically, standard answers support procedural scoring of objective questions, reference resources support scoring of subjective questions by specified question numbers, scores constrain the scoring range, and path configurations assist in determining the validity of execution paths.
[0112] Finally, the objective question scoring results 510 and the subjective question scoring results 517 are sent to the scoring result aggregation and report output unit 518. This unit is used to aggregate the scoring results of different question types and generate structured marking results or marking reports. The structured marking results may include one or more of the following: question number, question type, student answer, score, full score information, scoring instructions, anomaly markers, and review markers.
[0113] pass Figure 5 The dual-link scoring process shown in this embodiment enables objective questions to be executed in the manner of "answer extraction - question number completion - answer alignment - procedural scoring", and subjective questions to be executed in the manner of "question number confirmation - reference resource binding - designated question number scoring - result verification", thereby improving the certainty of scoring, controllability of scoring and anomaly handling capabilities in the automatic scoring process of paper test papers.
[0114] Example 6 Figure 6 This diagram illustrates the structure of an automatic paper exam paper grading device according to an embodiment of the present invention. This device can be used to implement the aforementioned automatic paper exam paper grading method. Figure 1 The methods and procedures shown are different. Figure 6 The key points are shown regarding the composition relationship of each functional module in the device, the data transmission relationship, and the generation relationship of intermediate objects.
[0115] like Figure 6 As shown, the automatic paper-based test paper marking device includes an OCR recognition module 601, a structure flow generation module 602, a question block determination module 603, a resource binding module 604, a scoring execution module 605, a result output module 606, and a diagnosis and auditing module 607.
[0116] The OCR recognition module 601 serves as the data input to the device, receiving images of paper exam paper pages and converting the image content into OCR structured recognition results suitable for structural analysis. These OCR structured recognition results do not only include plain text but may also include structured fields such as text box coordinates, text line order, page numbers, column assignments, and confidence levels. Therefore, the OCR recognition module 601 outputs a page text object with spatial location attributes, rather than a plain text recognition result.
[0117] The structure flow generation module 602 is connected to the OCR recognition module 601 and is used to perform anchor point parsing and relationship modeling on the OCR structured recognition results. This module includes a macro anchor point parsing unit 6021 and a micro anchor point parsing unit 6022. The macro anchor point parsing unit 6021 can identify the title of a major question or the starting point of a question type area based on the major question number, question type keywords, and text box position, such as text like "I. Fill in the blanks", "II. Multiple choice questions", and "III. Calculation questions". The micro anchor point parsing unit 6022 can identify the question number of a sub-question based on the question number format, local coordinates, and neighboring text, such as question number text like "1.", "2.", and "(1)".
[0118] In the structure flow generation module 602, the macro anchor point parsing results and micro anchor point parsing results are not output independently, but are further correlated. Specifically, the structure flow generation module 602 can attach micro anchor points to their corresponding macro anchor points or question type contexts based on the vertical positional relationship, column affiliation relationship, question number increment relationship, and question type context relationship between macro anchor points and micro anchor points. If a macro anchor point is missing at the top of the page, the structure flow generation module 602 can also inherit the question type context from the previous page or previous question block. Thus, the structure flow generation module 602 outputs a macro-micro anchor point structure flow, which serves as input to the subsequent question block determination module 603.
[0119] The question block determination module 603 is connected to the structure flow generation module 602 and is used to transform the macro-micro anchor point structure flow into the final question block structure flow. This module does not simply receive a list of question numbers; instead, it determines the question type region based on macro anchor points, determines the question number range and local boundaries based on micro anchor points, and combines page layout, page order, and local OCR context to determine candidate question blocks. For each candidate question block, the question block determination module 603 can generate a question block object including a question block identifier, question block type, question number attribution, question image region, source anchor point, and candidate scoring path.
[0120] In one implementation, when both objective and subjective question signals exist within a candidate question block, the question block determination module 603 can also perform question block purification processing. For example, if the same large question area contains both objective question features such as short answers, multiple-choice options, fill-in-the-blank lines, and equal signs, and also contains a large answer area, answer-type text, or reference answer resource binding relationships, then the question block determination module 603 can split the candidate question block into objective question sub-blocks and subjective question sub-blocks based on the micro-anchor point position and the neighboring OCR text. This processing enables the output final question block structure stream to directly support subsequent sub-link scoring.
[0121] In the answer sheet scenario, the question block determination module 603 can also generate answer sheet answering units based on the answer area, question number text and / or preset layout order, question number configuration relationship and spatial proximity relationship, and then convert the answer sheet answering units into scoring execution units and send them to the resource binding module 604. The answer sheet answering units can be used to describe the filling area, short answer area or subjective question writing area in the answer sheet, and retain information such as source page, area boundary, question number or question number range, candidate scoring path and anomaly marker.
[0122] The resource binding module 604 is connected to the question block determination module 603 and is used to match the final question block structure stream with question number-level resource constraint information. Specifically, the resource binding module 604 can read the question number or question number range in the final question block structure stream and use the question number as an index to query the corresponding standard answer, reference answer resources, question score, and allowed execution path. The role of the resource binding module 604 is not to re-determine the question block type, but to complete the binding of scoring resources and the validity verification of candidate scoring paths based on the candidate scoring paths already formed by the question block determination module 603.
[0123] When the resource binding module 604 detects an inconsistency between the question block type and the question number-level resource constraint information, or when the candidate scoring path does not belong to the allowed execution path, it can generate an exception marker or a review marker. For example, situations such as objective question blocks lacking standard answers, subjective question blocks lacking reference answer resources, question numbers exceeding the resource configuration range, and candidate paths not matching allowed paths can all be marked by the resource binding module 604 and passed to the scoring execution module 605 or the result output module 606.
[0124] The scoring execution module 605 is connected to the resource binding module 604 and is used to call different scoring sub-modules based on the resource binding results. The scoring execution module 605 includes an objective question scoring sub-module 6051 and a subjective question scoring sub-module 6052. The objective question scoring sub-module 6051 receives objective question block images and their bound standard answer resources. Its implementation can include student answer extraction, answer format normalization, question number alignment, and programmatic comparison. Specifically, the model can be used to extract students' original answers, and the program then performs a blank-by-blank or question-by-question comparison based on the standard answers and calculates the score, thus ensuring that the judgment of whether an objective question is right or wrong does not directly rely on the model's arbitrary judgment.
[0125] The subjective question scoring submodule 6052 receives the subjective question slice image and its associated reference answer resource. This submodule can first confirm the current question number to be scored, and then use the subjective question slice, the current question number, and the corresponding reference answer resource as scoring input to perform scoring for the specified question number. After scoring is completed, the subjective question scoring submodule 6052 can perform score range verification, question number consistency verification, and anomaly status marking on the output results; when out-of-bounds scores, inconsistent question numbers, or missing result fields are detected, a review flag or anomaly handling can be triggered.
[0126] The result output module 606 is connected to the scoring execution module 605 and is used to receive objective question scoring results, subjective question scoring results, and anomaly markers from the resource binding module 604 or the scoring execution module 605, and generate structured marking results. The structured marking results may include fields such as question number, question type, scoring path, score, full score information, scoring instructions, anomaly markers, and review markers. In one embodiment, the result output module 606 can also summarize the results according to the question number order to generate a total score, sub-question scores, and a list of questions requiring review.
[0127] The diagnosis and audit module 607 is located on one side of the main module and is linked to the structure flow generation module 602, question block determination module 603, resource binding module 604, scoring execution module 605, and result output module 606 via dotted lines. This module receives key intermediate objects generated at each stage, rather than directly participating in the scoring path determination. Specifically, the diagnosis and audit module 607 can record process information such as macro and micro anchor point structure flow, final question block structure flow, resource binding results, scoring results, and anomaly markers. Through these records, when scoring results are abnormal, it is possible to trace back to the corresponding question block, question number, slice area, or resource binding status, thereby supporting location, review, and audit traceability.
[0128] pass Figure 6The device structure shown in this embodiment divides the automatic paper-based exam marking system into "input recognition layer, structure modeling layer, question block execution layer, question number-level resource constraint information layer, scoring execution layer, and result output layer." Specifically, the OCR recognition module 601 provides spatialized text input, the structure flow generation module 602 forms a macro-micro anchor point structure flow, the question block determination module 603 forms the final question block structure flow, the resource binding module 604 completes question number-level resource binding and legality verification, the scoring execution module 605 completes dual-link scoring of objective and subjective questions, the result output module 606 outputs structured marking results, and the diagnosis and auditing module 607 records key intermediate facts. Therefore, this device can implement the aforementioned automatic paper-based exam marking method in a modular manner.
[0129] Example 7 Figure 7 This diagram illustrates a diagnostic and audit traceability method provided by an embodiment of the present invention. This process can be applied to automatic grading methods for paper-based exam papers, illustrating how traceable audit information is generated based on page facts, structural facts, segmentation facts, runtime events, and configuration constraints.
[0130] like Figure 7 As shown, the page fact layer 701 is used to store the basic image facts of the test paper page during processing. The page facts may include the original page image `raw_page` and the cleaned page image `clean_page`. This layer provides a page-level base map for subsequent diagnostic image drawing and anomaly localization.
[0131] The structural fact layer 702 is used to store the structural facts of the question blocks generated by the aforementioned structural parsing process. These structural facts may include the final question block structure stream (final_block_stream), the question block identifier (block_id), and the question block type (block_type). This layer allows for the recording of the source, type, and affiliation of each question block within the exam paper structure.
[0132] The slice fact layer 703 is used to store the slice facts generated during the question slicing process. These slice facts may include the slice identifier (slice_id), the crop boundary (crop_bbox), and the question scope (question_scope). This allows the scoring results to be back-linked to specific image slices and further traced back to the corresponding question blocks and page regions.
[0133] The runtime status and event layer 704 is used to record key runtime events during the automatic grading process. These runtime events can include information such as retry, warnings, and score truncation. For example, when the extraction of objective question answers triggers a targeted retry, or when the score of a subjective question exceeds the limit, the corresponding event and its associated question number can be recorded in this layer.
[0134] The diagnostic diagram generation layer 705 is used to generate diagnostic diagrams or audit diagrams based on the aforementioned page facts, structural facts, slice facts, and configuration constraints. In one implementation, clean_page, final_block_stream, slice boundaries, and configuration resources can be used as the basis for drawing to deterministically generate xray diagrams, overlay diagrams, or audit diagrams to display block boundaries, slice boundaries, question number ranges, and anomaly markers. This diagnostic diagram is not generated by model speculation but is drawn from process facts and configuration data already recorded by the system. The diagnostic diagram drawing basis 709 includes page data (page), structural stream (stream), slice information (slice), and configuration information (config), and this diagnostic diagram drawing basis 709 serves as the input to the diagnostic diagram generation layer 705.
[0135] Configuration and question-level resource constraint information 707 is used to provide schema constraints, configuration constraints, and resource constraints for the diagnostic and auditing process. This layer may include information such as question-level resource configuration, allowed scoring paths, standard answer resources, reference answer resources, and scoring value constraints, and can provide verification basis for slice facts, runtime events, and diagnostic graph generation processes.
[0136] The audit traceability output layer 706 is used to output location, review, and audit results. It can locate and review abnormal scoring results based on information from the page fact layer 701, structure fact layer 702, slice fact layer 703, running status and event layer 704, and diagnostic graph generation layer 705. For example, it can trace back from a structured scoring result to the corresponding slice, then from the slice to the question block, and finally back to the original page area.
[0137] The structured scoring result 708 is used to store the final scoring output. The structured scoring result may include information such as question number, score, and warning. This result is correlated with the audit traceability output layer 706, enabling the scoring result to be mapped to the page, question block, slice, and runtime event during its generation process.
[0138] Figure 7 The result traceability chain shown at the bottom indicates that a backtracking process can be performed in the direction of "result - slice - question block - page". Through this traceability chain, when there are missed slices, incorrect slices, scoring anomalies, resource mismatches, or path anomalies, the specific stage in page processing, structure parsing, slice generation, scoring execution, or resource binding can be located. Specifically, result 710, slice 711, question block 712, and page 713 constitute the traceability nodes for backtracking from the scoring output to the original page facts.
[0139] In summary, Figure 7Using the page fact layer 701, structural fact layer 702, slice fact layer 703, running status and event layer 704, configuration and resource constraint layer 707, and diagnostic diagram drawing basis 709 as the data foundation for diagnosis and auditing, the diagnostic diagram generation layer 705 forms visualized diagnostic information, the audit traceability output layer 706 associates it with the structured scoring results 708, and the anomaly location, review and auditing are completed through the result traceability chain composed of results 710, slices 711, question blocks 712 and pages 713.
[0140] pass Figure 7 The diagnostic and audit traceability process shown in this embodiment can save key intermediate objects in the automatic marking process in the form of a fact layer, and generate verifiable diagnostic information based on these facts, thereby improving the location, verifiability and audit traceability of the automatic marking results of paper test papers.
[0141] In some embodiments, it can also be based on Figure 7 The page facts, structural facts, slice facts, running status and events, diagnostic graphs, and structured scoring results shown are used to generate automatic marking quality evaluation indicators. These indicators are used to perform tiered evaluations of question segmentation, scoring routing, objective question answer extraction, and final scoring errors, thereby helping the system distinguish the sources of error at different stages.
[0142] Specifically, the automatic marking quality evaluation indicators may include question segmentation and routing failure rate, answer extraction completeness rate, and model judgment error rate. The question segmentation and routing failure rate is used to evaluate whether the front-end structure processing is correct; the answer extraction completeness rate is used to evaluate whether the answers to objective questions are completely extracted; and the model judgment error rate is used to evaluate the difference between the final score of the evaluation system and the teacher's actual score, assuming that front-end errors and answer extraction errors have been eliminated.
[0143] In one implementation, let N be the total number of questions in the sample set and Q be the total set of objective questions. obj The total number of objective questions is For any problem q, define This indicates whether problem q has been correctly sliced; the value is 1 if correctly sliced, and 0 otherwise. This indicates whether question q has entered the correct candidate scoring path. A value of 1 indicates it has entered the correct candidate scoring path, and a value of 0 indicates it has not. Here, N is a positive integer. The correct preceding path flag for question q can be represented as: Specifically, when question q experiences omissions, incorrect cuts, incorrect merging, failure to form effective slices, or entry into an incorrect candidate scoring path, The value is 0. Therefore, the problem segmentation and routing failure rate... It can be represented as: The above indicators can quantify the anomalies in the front-link caused by question slicing failures or candidate scoring path errors, thereby evaluating the processing effect of macro- and micro-anchor structure flow and final question block structure flow under complex test paper layouts.
[0144] In some embodiments, for the set of objective questions Q obj Let K be the number of answer units that should be extracted from question q. q The actual number of answer units successfully extracted was M. q The answer unit can be a blank answer, a multiple-choice answer, a fill-in-the-blank slot answer, or other objective question answering units. Kq is a positive integer and 0 ≤ Mq ≤ Kq; the completeness of answer extraction for question q is defined as C(q) = Mq / Kq, where C(q) ranges from [0,1]. When Nobj > 0, the completeness of answer extraction can be calculated using the following formula. : For single-blank objective questions, if the answer is extracted completely, then... =1, if not extracted, then =0; For multiple-blank objective questions, the ratio can be calculated based on the actual number of successfully extracted answer units to the theoretical number of answer units. This indicator is only used to evaluate the completeness of the objective question answer extraction layer and does not directly evaluate whether the final score of the objective question is correct.
[0145] In some embodiments, let S be the final score for question q. q The teacher's actual score for question q is T. q The maximum score for question q is F. q Where Fq > 0. The normalized error of problem q can be calculated: For example, if a question has a full score of 4 points and the difference between the system score and the teacher's actual score is 0.5 points, the normalization error of that question is 0.125.
[0146] The total error can be further calculated based on the normalized error of each question. .
[0147] In one implementation, the sum of the normalized errors e(q) of all questions is denoted as Etotal; the set of questions correctly marked with front_ok(q) = 0 in the front-link is denoted as Qfront, and the sum of the normalized errors of each question in Qfront is denoted as Efront; the set of objective questions with correct front-link and answer extraction completeness C(q) < 1 is denoted as Qextract, and the sum of the normalized errors of each question in Qextract is denoted as Eextract. After separating the front-link error and the answer extraction error, the model judgment error can be expressed as: Let Qvalid be the set of questions after removing Qfront and Qextract from all questions. The number of valid judgeable questions, Nvalid, is the number of questions in Qvalid, which can be expressed as: When Nvalid > 0, the model decision error rate It can be represented as: Among them, the model judgment error rate This is used to measure the degree of inconsistency between the system's final scoring result and the teacher's actual scoring, assuming that errors in question segmentation, scoring routing, and objective question answer extraction have been separated.
[0148] By employing the aforementioned tiered evaluation method, automatic marking errors can be decomposed into front-end structure processing errors, objective question answer extraction errors, and final scoring errors. This tiered evaluation method avoids repeatedly attributing non-model scoring issues such as slicing failures, routing errors, or missed answer extractions to the final model judgment process, thereby improving the accuracy of system diagnosis, review, and audit traceability.
[0149] In some embodiments, the question segmentation and routing failure rate, answer extraction completeness rate, and model judgment error rate can be related to... Figure 7 The page fact layer, structural fact layer, slice fact layer, running status and event layer, and structured scoring results are linked together. When a certain indicator exceeds a preset threshold, an anomaly marker can be generated, a review prompt can be output, or related questions, slices, question blocks, and page areas can be associated with the audit traceability output layer for manual review or system optimization.
[0150] Example 8 Figure 8This illustration shows a schematic diagram of an answer sheet scenario adaptation process provided by an embodiment of the present invention. This implementation can be applied to an answer sheet page or an answer sheet-style test paper page. Its purpose is to restore the answer area in the answer sheet to a scoring execution unit that can be received by the backend scoring link without changing the question number-level resource constraints, the objective question scoring process, and the subjective question scoring process.
[0151] In answer sheet scenarios, the page typically does not contain the complete question stem, or only a limited amount of question stem information. Instead, it includes question numbers, answer boxes, filling areas, short answer areas, subjective question writing areas, and non-answer areas such as name areas, admission ticket number areas, barcode areas, instruction areas, and page borders. Therefore, instead of directly using the question block segmentation method based on the complete question stem and macro / micro anchors found in ordinary exam paper pages, we can use a front-end area restoration method oriented towards answer sheets to generate answer sheet answer units.
[0152] Specifically, firstly, an image of the answer sheet page is acquired (step 801), and then the answer sheet page image is preprocessed. The preprocessing may include one or more of the following: grayscale conversion, noise reduction, tilt correction, page cropping, sharpness enhancement, or layout normalization. Subsequently, the OCR structured text box set and page layout information of the answer sheet page can be obtained. The OCR structured text box set may include question number text, explanatory text, identity information text and its coordinate frame, confidence level, and page order information. The page layout information may include information such as area outline, border lines, dashed boxes, fill grids, page columns, and relative positions of areas.
[0153] After obtaining the above information, the answer area is detected or identified (step 802). The answer area may include the multiple-choice question filling area, the fill-in-the-blank or short answer area, the calculation question writing area, the subjective question writing area, and other areas for students to answer. For non-answer areas such as the name area, admission ticket number area, barcode area, instruction area, header and footer, full page border or binding edge, they can be excluded or marked according to the area location, text semantics, page layout, area size, border type or preset layout rules to reduce the risk of non-answer areas being mistakenly bound as scoring objects (step 803).
[0154] Subsequently, based on the question number text, preset layout order, question number configuration relationship, and spatial proximity relationship, the question number or question number range is bound to the corresponding answer area (step 804). In one embodiment, if there is identifiable question number text near the answer area, a binding relationship can be established based on the relative position, distance, and page order between the question number text and the answer area. In another embodiment, if the question number text is missing from the answer sheet page, the recognition confidence is low, or the question number is separated from the answer box, the question number or question number range corresponding to the answer area can be determined based on the preset layout order, answer box order, answer sheet page order, and question number configuration relationship. The above binding methods can be used individually or in combination.
[0155] Based on the above binding results, an answer sheet answering unit is generated (step 805). The answer sheet answering unit may include one or more of the following: unit identifier, page identifier, question number or question number range, answer area coordinates, clipping area coordinates, area type, candidate scoring path, resource binding status, confidence level, binding basis, and anomaly flag. For answer sheet answering units that meet the requirements of clear question number, clear area type, existing resources, and legal scoring path, they can be converted into scoring execution units compatible with the final question block structure flow (step 806); for answer sheet answering units that cannot determine question number, cannot determine area type, have missing resources, conflicting scoring paths, cannot automatically split multiple subjective areas, or whose area quality does not meet the scoring requirements, anomaly flags can be recorded or review flags can be output.
[0156] After the answer sheet answering unit is converted into a scoring execution unit, it is input into the question number-level resource constraint information for resource binding and scoring path validity verification (step 807). After the verification is passed, the objective question scoring process or subjective question scoring process is executed according to the question type corresponding to the scoring execution unit (step 808). If the scoring execution unit corresponds to an objective question or a range of objective question numbers, the objective question scoring process can be called to extract student answers from the answer area image and perform programmed comparison and score calculation based on the bound objective question standard answer and question score; if the scoring execution unit corresponds to a single subjective question, the subjective question scoring process can be called to bind the subjective question answer area image with the corresponding reference answer resource and then execute the scoring for the specified question number. In the answer sheet scenario, a fact object can be created for each answer sheet unit, recording information such as the answer area boundary, trimming area boundary, question number association method, binding basis, area type, resource binding status, candidate scoring path, anomaly marker, and output path to generate results and audit logs (step 809). The aforementioned fact object can be associated with page facts, scoring execution units, question number-level resource constraint information, and structured scoring results to support slice source lookup, anomaly location, scoring path verification, and manual verification in the answer sheet scenario. If the scoring execution unit does not meet the allowed scoring path requirements, automatic scoring can be prevented and an anomaly or verification marker can be output (step 810).
[0157] pass Figure 8 The answer sheet scenario adaptation process shown can convert the answer area recovery result in the answer sheet page into a scoring input object that is compatible with the final question block structure flow of the ordinary test paper. This allows the ordinary test paper page and the answer sheet page to have different front-end area recovery methods, but to maintain consistency in question number-level resource constraints, procedural scoring of objective questions, scoring of subjective questions by specified question number, and diagnostic audit process.
[0158] When the scoring object originates from the answer sheet's answer unit, the diagnostic and auditing process can also record the answer area boundary, question number association method, area type, resource binding status, scoring path, and anomaly markers to support slice source review, scoring path verification, and manual verification in the answer sheet scenario.
[0159] Example 9 The present invention also provides an automatic paper-based test paper marking system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes an automatic paper-based test paper marking method when executed by the processor.
[0160] Example 10 The present invention also provides a storage medium storing a computer program, which executes an automatic grading method for paper-based examination papers when running.
[0161] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.
Claims
1. A method for automatically grading paper-based examination papers, characterized in that, include: Acquire images of paper test paper pages and obtain OCR structured recognition results based on the paper test paper page images; Based on the OCR structured recognition results, a macro-micro anchor point structure flow is generated. The macro-micro anchor point structure flow includes macro-structural constraints formed by the question type information of the major questions and micro-positional constraints formed by the question number information of the minor questions. The final question block structure flow is determined based on the macro-micro anchor point structure flow; or, when the page to be processed is an answer sheet page, an answer sheet answering unit is generated based on the association between the answer area and the question number, and the answer sheet answering unit is converted into a scoring execution unit compatible with the final question block structure flow. Based on the question number-level resource constraint information, the question number or question number range in the final question block structure flow or the scoring execution unit is bound to scoring resources and the legality of candidate scoring paths is verified. Based on the verified candidate scoring paths, execute the objective question scoring process and / or the subjective question scoring process to generate structured marking results.
2. The automatic grading method for paper-based examination papers as described in claim 1, characterized in that, The generation of the macro-micro anchor point structure flow includes: identifying macro anchor points related to the major question type and micro anchor points related to the sub-question numbers based on the text content, text box coordinates, and page layout information in the OCR structured recognition results; wherein, the macro anchor points are used to represent the major question title, question type semantics, and question block scope, and the micro anchor points are used to represent the sub-question numbers, question number order, and sub-question positional relationships; and generating the macro-micro anchor point structure flow according to the spatial relationship, sequential relationship, and question type context relationship between the macro anchor points and the micro anchor points.
3. The automatic grading method for paper-based examination papers as described in claim 2, characterized in that, The determination of the final question block structure flow includes: organizing and classifying candidate question blocks in the test paper according to the macro-micro anchor point structure flow; determining the final question block structure flow for downstream processing according to the question type attributes, question number range, page position and context relationship of the candidate question blocks; wherein, the final question block structure flow includes at least question block type, question number affiliation, question image region and candidate scoring path.
4. The automatic grading method for paper-based examination papers as described in claim 3, characterized in that, The question-number level resource constraint information includes: the standard answer, reference answer resources, question score, and allowed scoring paths corresponding to the question number or question number range; wherein, the standard answer is used to constrain the scoring process of objective questions, the reference answer resources are used to constrain the scoring process of subjective questions, the question score is used to constrain the score range of the scoring results, and the allowed scoring paths are used to determine the legality of candidate scoring paths.
5. The automatic grading method for paper-based examination papers as described in claim 4, characterized in that, The objective question scoring process includes: determining the objective question region or objective question block based on the final question block structure flow, and determining the corresponding objective question standard answer and question score based on the question number-level resource constraint information; extracting student answers from the objective question region or objective question block; separating the answer extraction result from the programmed comparison process, and performing programmed comparison and score calculation based on the objective question standard answer to generate the objective question scoring result.
6. The automatic grading method for paper-based examination papers as described in claim 4, characterized in that, The subjective question scoring process includes: determining a single subjective question slice image or a subjective question slice based on the final question block structure flow, and determining the current question number to be scored, the corresponding reference answer resource, and the question score based on the question number-level resource constraint information; after binding the reference answer resource, performing a score for the specified question number on the single subjective question slice image or subjective question slice; and constraining the score range and marking abnormal states on the subjective question scoring output results to generate subjective question scoring results.
7. The automatic grading method for paper-based examination papers as described in claim 1, characterized in that, The generation of the answer sheet answering unit includes: identifying the answering area on the answer sheet page; excluding or marking at least one non-answering area among the identity information area, barcode area, description area, header / footer, and full-page border; associating the question number or question number range with the corresponding answering area based on at least one of the question number text, preset layout order, question number configuration relationship, and spatial proximity relationship to generate the answer sheet answering unit; and converting the answer sheet answering unit into a scoring execution unit compatible with the final question block structure flow; wherein, the answer sheet answering unit includes at least the question number or question number range, answering area coordinates, area type, candidate scoring path, and anomaly marker.
8. An automatic paper exam paper marking device, characterized in that, include: The OCR recognition module is used to acquire images of paper test paper pages and obtain OCR structured recognition results based on the images of the paper test paper pages. The structure flow generation module is used to generate a macro-micro anchor point structure flow based on the OCR structured recognition result. The macro-micro anchor point structure flow includes macro-structural constraints formed by the question type information of the major questions and micro-positional constraints formed by the question number information of the minor questions. The question block determination module is used to perform structured organization, question type classification, and question block purification processing on candidate question blocks according to the macro-micro anchor point structure flow, so as to determine the final question block structure flow for downstream processing; or, when the page to be processed is an answer sheet page, it generates answer sheet answering units based on the association between the answer area and the question number, and converts the answer sheet answering units into scoring execution units compatible with the final question block structure flow; The resource binding module is used to bind scoring resources to the question numbers or question number ranges in the final question block structure flow or the scoring execution unit according to the question number-level resource constraint information, and to perform legality verification on the candidate scoring paths. The scoring execution module is used to execute the scoring process for objective questions and / or subjective questions based on the candidate scoring paths that have passed the verification. The results output module is used to output structured marking results, which include at least the question number, question type, scoring path, score, full score, scoring reason, and anomaly marker. The diagnosis and audit module is used to record process information related to macro and micro anchor point structure flow, final question block structure flow, question number-level resource constraint information, scoring results and anomaly markers, in order to support the location, review and audit traceability of automatic marking results.
9. An automatic grading system for paper-based examination papers, characterized in that, include: A memory and a processor, wherein the memory stores a computer program executed by the processor, the computer program, when executed by the processor, performs the automatic grading method for paper-based examination papers as described in any one of claims 1-7.
10. A storage medium, characterized in that, The storage medium stores a computer program, which, when running, executes the automatic grading method for paper-based examination papers as described in any one of claims 1-7.
