Handwriting fill-in-the-blank question determination method, electronic device, and computer-readable storage medium

By collaboratively screening handwritten features using a three-dimensional ambiguous space theoretical model, locating key boundary samples, and performing lightweight training, the problems of blind annotation strategies and heavy scene adaptation in handwritten fill-in-the-blank scoring are solved, achieving efficient and accurate scoring results and resource conservation.

CN123142242APending Publication Date: 2026-11-20GUANGDONG QIMING TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297153.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies in the field of handwritten fill-in-the-blank scoring suffer from problems such as blind annotation strategies, excessive scene adaptation, and coupling between recognition and scoring, resulting in low model adaptation efficiency, poor accuracy, and high computational resource consumption.

Method used

A three-dimensional ambiguity space theoretical model is used to collaboratively screen handwritten features from multiple feature dimensions, locate key boundary samples that affect the score determination, and achieve rapid model adaptation through a lightweight training and calibration mechanism, thereby reducing annotation costs and computational resource consumption.

Benefits of technology

It improves the accuracy and consistency of scores for handwritten fill-in-the-blank questions, reduces annotation costs and computational resource consumption, and enables rapid adaptive adjustment to new examination scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142242A_ABST
    Figure CN123142242A_ABST
Patent Text Reader

Abstract

The application discloses a handwriting fill-in-the-blank judgment method, an electronic device and a computer readable storage medium. The method receives multiple test paper images of the same test, identifies fill-in-the-blank region text and extracts handwriting features; generates a multiple candidate sample set through multi-strategy collaborative screening; sorts and controls the number according to the boundary contribution degree after fusion, and selects a small number of calibration samples near the scoring boundary; performs lightweight training and boundary calibration on the model based on the labeled data to obtain a target model; finally, all test paper images are processed and the result is output. That is, through multi-strategy, high information density samples are cooperatively positioned in different complementary dimensions, and only a small amount of labeling is required to complete the scene adaptation of the scoring model, the recognition accuracy optimization problem is converted into the accurate screening problem of the scoring boundary sample, and the labeling cost and the calculation resource consumption are effectively reduced while the scoring accuracy and consistency are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of text recognition and processing technology, and in particular to a method for judging handwritten fill-in-the-blank questions, an electronic device, and a computer-readable storage medium. Background Technology

[0002] In the field of automatic exam grading and handwritten fill-in-the-blank scoring, existing technologies typically employ automatic judgment methods based on machine learning models or rule models to identify fill-in-the-blank areas in exam paper images and output scoring results.

[0003] However, existing technologies still have certain limitations in practical applications, mainly in the following aspects: Firstly, existing methods for adapting models to new exam scenarios typically rely on uniformly labeling and training a large number of samples, or on constructing training datasets using random sampling. However, these methods struggle to effectively filter key regions in the scoring task, especially failing to prioritize samples near the scoring boundary. This results in labeled data that does not adequately cover key samples that significantly impact the scoring results, thus affecting model adaptation efficiency and scoring accuracy.

[0004] Secondly, existing methods typically treat all samples equally during sample selection and model training, failing to differentiate between samples based on their varying roles in scoring decisions. In handwritten cloze test scoring scenarios, some samples have clear scores, while those near the scoring boundary are more likely to influence the stability of the scoring model. However, current technologies lack multi-dimensional screening mechanisms and priority control strategies for these critical samples.

[0005] Third, existing methods typically require large-scale retraining of the scoring model during model updates, making it difficult to quickly adapt to different exam scenarios while maintaining the original model's capabilities. This results in high model update costs and a lack of a mechanism for effectively calibrating the scoring decision boundary based on a small number of key labeled samples. Summary of the Invention

[0006] This application provides a method for judging handwritten fill-in-the-blank questions, an electronic device, and a computer-readable storage medium, aiming to solve the problems of blind annotation strategies, heavy scene adaptation, and coupling between recognition and scoring in the prior art. While improving the accuracy and consistency of handwritten fill-in-the-blank questions, it effectively reduces annotation costs and computational resource consumption.

[0007] One technical solution adopted in this application is: providing a method for judging handwritten fill-in-the-blank questions, including: In response to receiving multiple test paper images from the same exam, the system identifies the text in each fill-in-the-blank area of ​​the test paper images. Feature extraction is performed on the recognized text of each of the blank areas to obtain the handwritten features of each of the blank areas; A preset multi-strategy collaborative screening mechanism is adopted to screen the recognition text and handwriting features of each fill-in area from multiple different feature dimensions to obtain multiple candidate sample sets; The multiple candidate sample sets are fused, and priority ranking and quantity control are performed based on the boundary contribution of each of the multiple candidate sample sets to obtain calibration samples located near the score determination boundary; the proportion of the number of calibration samples to the total number of samples in the fill-in area does not exceed a preset first proportion threshold. Obtain the labeled data of each of the calibration samples, and use the labeled data to perform lightweight training and score judgment boundary calibration on the initial scoring model to obtain the target scoring model for the current exam; The images of all the test papers for the current exam are input into the target scoring model for processing, and the corresponding scores are output.

[0008] Another technical solution adopted in this application is: providing an electronic device, the electronic device comprising: a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the electronic device performs the method described in any of the above.

[0009] Another technical solution adopted in this application is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any of the above-mentioned methods. Attached Figure Description

[0010] Figure 1 This is a flowchart illustrating the first embodiment of the method of this application; Figure 2 This is a flowchart illustrating the second embodiment of the method of this application; Figure 3 This is a flowchart illustrating the three-strategy collaborative screening and boundary contribution ranking in the third embodiment of the method of this application; Figure 4 This is a detailed flowchart of method S105 of this application; Figure 5 This is a schematic diagram showing the correspondence between the three-dimensional ambiguity space model and the three strategies in this application; Figure 6 This is an exemplary structural block diagram of the electronic device of this application; Figure 7 This is an exemplary structural block diagram of the computer-readable storage medium of this application. Detailed Implementation

[0011] The present application will now be described with reference to the accompanying drawings and embodiments.

[0012] This application embodiment takes into account that, in order to improve scoring efficiency and reduce manual intervention, existing technologies have introduced handwritten character recognition algorithms to achieve automatic scoring of fill-in-the-blank questions. Currently, existing handwritten character image recognition and scoring technologies mainly include the following categories: The first category is recognition methods based on traditional image processing. These methods typically process handwritten images through image preprocessing techniques such as edge detection and morphological processing, and then use template matching or manually designed features for character recognition. These methods are effective for handling simple, well-written characters, but their accuracy is low and their applicability is limited when dealing with handwritten characters with significant differences in writing style, complex strokes, or illegible handwriting.

[0013] The second category is handwriting recognition methods based on deep learning. These methods typically utilize models such as convolutional neural networks to extract features and classify handwriting images, which improves recognition accuracy to some extent. However, due to significant differences in writing habits, character structure, and clarity among different test takers, existing deep learning models still tend to exhibit unstable recognition when faced with diverse handwriting styles, and their performance is highly dependent on the size and distribution of the training data.

[0014] The third type of method uses a sequence-to-sequence model to represent handwritten characters as temporal data and utilizes recurrent neural networks or long short-term memory networks to model the stroke order and temporal relationship. This type of method has certain advantages in depicting continuous writing processes, but it is quite sensitive to changes in stroke order. When the writing order differs significantly from the training samples, the recognition performance tends to decline.

[0015] The fourth type of method is the end-to-end handwriting recognition model, which directly establishes a mapping relationship between the original image and the recognition result. However, this type of model requires a large amount of high-quality labeled data for training, and it is difficult to quickly adapt to different test papers or different handwriting distributions in actual examination scenarios. The training and inference processes consume a lot of computing resources.

[0016] The fifth type of method combines multimodal deep models with generative language models. It extracts global features from handwritten images using a visual encoder, then maps these visual features to the semantic space of the language model using a cross-modal adapter. Finally, the generative language model performs semantic understanding and normalization on the recognition results, generating a structured standard representation which is then compared with the reference answer for scoring. This type of method has certain advantages in handling complex mathematical formulas and diverse writing styles, but it relies on large-scale pre-trained models and end-to-end inference processes. This results in a large number of model parameters, high computational resource consumption, and a lack of lightweight, rapid adaptation mechanisms when facing new exam scenarios. It is difficult to achieve targeted calibration of the scoring model for the current exam using only a small number of samples.

[0017] First, there is the blindness of the annotation strategy. When adapting to new exam scenarios, existing methods either manually annotate all test paper samples (high annotation cost) or use random sampling to select a portion of the samples for annotation (poor sample representativeness). Both methods lack a precise positioning mechanism for the scoring boundary, and cannot concentrate limited annotation resources on the key samples that have the greatest impact on the scoring results, resulting in unreasonable allocation of annotation resources.

[0018] Secondly, there's the issue of the heavy reliance on specific scenarios for adaptation. Current deep learning methods typically require large-scale data re-labeling and retraining when facing new exams, failing to leverage the prior knowledge that most candidates' answers in the same exam are clear and easily identifiable. In fact, in handwritten fill-in-the-blank questions, the scoring of most samples is clear, and labeling them has a small marginal contribution to the model. What truly affects scoring accuracy are a small number of key samples with non-standard handwriting, ambiguous identification, or abnormal statistical distribution. Current technologies treat all samples equally, resulting in a waste of computational resources.

[0019] Third, there is the coupling between recognition and scoring. Existing methods often equate improvements in handwriting recognition accuracy with improvements in scoring accuracy, conflating the two and ignoring their fundamental differences. In reality, there are samples that are correctly recognized but still require manual review due to non-standard handwriting, and there are also samples whose recognition is ambiguous but can be automatically determined according to scoring rules. This coupling of recognition and scoring makes it difficult for existing methods to be optimized specifically for the scoring task.

[0020] Therefore, the core technical problem that urgently needs to be solved in this field is how to get rid of the single reliance on recognition accuracy, automatically and accurately locate a small number of key boundary samples that affect the score determination from all test papers, and use these samples to quickly adapt the scoring model to the current test scenario in a lightweight way.

[0021] Therefore, to address the aforementioned technical issues, this application proposes an adaptive boundary sample selection and score calibration method for handwritten character scoring. This method divides the labeled data of the calibration samples into a training dataset and a calibration dataset, employing a two-stage decoupled approach to complete model adaptation: In the first stage, the parameters of the initial scoring model are learned based on the training dataset, constructing the model's basic discriminative ability for handwritten character features, resulting in an intermediate scoring model. In the second stage, while maintaining the parameters of the intermediate scoring model unchanged, the scoring decision boundary is remapped based on the calibration dataset by analyzing the overlapping areas of the score output distributions of correct and incorrect answers, resulting in the target scoring model. Since the scoring decision boundary calibration does not rely on learning new feature patterns from a large number of samples but rather remaps the existing output distribution, it can achieve rapid adaptive adjustment of the scoring scale to the current examination scenario while effectively reducing annotation costs and training complexity.

[0022] The core inventive concept that distinguishes this application from existing technologies lies in transforming the problem of automatically scoring handwritten fill-in-the-blank questions from the traditional approach of improving the recognition accuracy of all samples to the precise location and labeling of a small number of critical boundary samples that influence score determination. Since the quality of a scoring model's fit in a given exam is determined not by the vast majority of clear samples, but by a small number of ambiguous samples located near the score determination boundary, automatically and accurately identifying and labeling these boundary samples allows for a high-quality fit of the scoring model to the current exam with minimal labeling overhead.

[0023] To systematically locate scoring boundary samples, this application proposes a three-dimensional ambiguity space theoretical model for handwritten cloze test scoring scenarios. This model posits that the ambiguity in scoring decisions stems from three independent and orthogonal dimensions: (1) Handwriting quality dimension: Candidates' handwriting quality deviates from the group norm due to illegible handwriting, unclear strokes, or abnormal structure, causing discrepancies in recognition and assessment. Such samples are outliers in the statistical distribution of handwriting characteristics.

[0024] (2) Answer matching dimension: The candidate's answer is in the middle ground between being neither completely correct nor completely wrong. Typical examples are correct writing but misidentification due to non-standard writing, or incorrect writing but similar in form to the standard answer, which leads to ambiguity in the score determination. Such samples show an intermediate value in the similarity between the identified text and the standard answer.

[0025] (3) Distribution dimension of group responses: The candidates' responses belong to rare cases in the group, such as rare wrong answers or misidentification results, which are low-frequency anomalies in the group distribution. Such samples are represented as low-frequency clusters in the clustering distribution of the identified text.

[0026] The three dimensions mentioned above are orthogonal and non-substitutable. For example, a sample with normal handwriting quality may fall into ambiguity in the answer matching dimension; a frequently occurring answer may require review due to abnormal handwriting quality in individual candidates. Therefore, screening based on a single dimension cannot cover all boundary samples. Instead, by collaboratively screening from all three dimensions and taking the union of the results in this application, the ambiguity space of score determination can be fully covered. This is the theoretical basis for this application's use of a three-strategy union operation instead of an intersection operation.

[0027] Please see Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the method of this application. It should be noted that if substantially the same result is achieved, the method of this application is not necessarily identical. Figure 1 The illustrated process sequence is limited. The method includes: S101, in response to receiving multiple test paper images from the same exam, identifies the text in each blank area of ​​the test paper images.

[0028] The exam paper images can be digitized image data containing the examinee's answers, collected by scanning devices, photographic devices, or the examination system. The same exam refers to an exam with the same question structure and scoring rules. By using multiple exam paper images from the same exam as a dataset, consistency is achieved across papers in terms of question content, blank placement, and scoring standards, avoiding interference from differences in question types, layouts, or scoring standards between different exams on model training and scoring results. The recognized text can be the text content within the blank areas.

[0029] S102, feature extraction is performed on the identified text of each of the blank areas to obtain the handwritten features of each of the blank areas.

[0030] The fill-in-the-blank areas are pre-defined locations within the exam paper image designated for candidates to write their answers by hand. Handwriting features are characteristic information used to represent the content written by the candidate, and may include, but are not limited to, at least one of character outline features, stroke structure features, morphological features, grayscale distribution features, neatness features, and writing standardization features. Features can be extracted from each fill-in-the-blank area using image processing algorithms, feature engineering methods, or neural network models, transforming the original exam paper image data into a feature data format suitable for statistical analysis and model training.

[0031] S103, a preset multi-strategy collaborative screening mechanism is adopted to screen the recognition text and handwritten features of each fill-in area from multiple different feature dimensions to obtain multiple candidate sample sets.

[0032] The multi-strategy collaborative screening mechanism can include multiple detection strategies across different dimensions, which are independent and complementary. Each detection strategy corresponds to a different feature dimension and performs boundary sample screening based on the sample's feature performance in that corresponding feature dimension. Since each detection strategy relies on a different feature dimension, each strategy can be executed independently without depending on the results of other strategies. Furthermore, different feature dimensions reflect the sample's feature performance from different perspectives, ensuring that the boundary samples selected by each strategy are at least partially different, thus allowing multiple candidate sample sets to complement each other in terms of sample coverage. Therefore, the detection strategies are both relatively independent and complementary.

[0033] In some examples, it can be based on a three-dimensional ambiguity space theoretical model, using corresponding detection strategies to screen boundary samples from three mutually orthogonal dimensions: writing quality, answer matching, and group answer distribution, to obtain a candidate sample set for the corresponding detection strategy.

[0034] S104, the multiple candidate sample sets are fused, and priority sorting and quantity control are performed based on the boundary contribution of the multiple candidate sample sets respectively, to obtain the calibration samples located near the score judgment boundary.

[0035] As an example, these candidate sample sets are fused, for instance, by taking the union and sorting them by boundary contribution while controlling the upper limit of the number, to obtain calibration samples with high information density. Through a three-dimensional ambiguity space model and a multi-strategy collaborative screening mechanism, key boundary samples are automatically located. Model adaptation can be completed by annotating only the calibration samples that account for no more than 5% of all test papers. Compared with the full annotation method, the amount of annotation data is reduced by one to two orders of magnitude.

[0036] S105, obtain the labeled data of each of the calibration samples, and use the labeled data to perform lightweight training and score judgment boundary calibration on the initial scoring model to obtain the target scoring model for the current exam.

[0037] The labeled data can be score data obtained by assigning or classifying the candidates' answers to the calibrated samples according to the corresponding scoring rules. It includes the calibrated samples and the corresponding score labels. The score labels reflect the content of the fill-in-the-blank area corresponding to the calibrated sample and whether that content is correct, partially correct, or incorrect. The labeled data can be obtained through manual annotation, automatic comparison based on a high-reliability answer database, or a combination of both. In some embodiments, the score labels can be discrete or continuous values; for example, when the full score is 2 points, the score labels can be any value in the range [0, 2].

[0038] Because the calibration samples accurately cover the three-dimensional ambiguity space of the scoring decision, and the boundary contribution ranking further focuses on high-value samples, even if the number of labeled samples is small, it can still provide a calibration basis with high information density for the scoring model, ensuring the consistency of the scoring results with the manual scoring standard.

[0039] The initial scoring model is a model that has undergone basic training based on historical exam data or general handwriting samples, and is capable of effectively representing handwriting features and outputting scores. The initial scoring model can employ a lightweight classifier, and the score decision boundary calibration process does not involve large-scale updates to model parameters, decoupling model parameter learning from score decision boundary calibration. Compared to end-to-end methods that rely on large-scale pre-trained models, this effectively reduces computational resource consumption. Furthermore, through a one-time collaborative screening (without multiple iterations requiring active learning) combined with a lightweight mechanism that decouples training and calibration, rapid adaptation to new exam scenarios can be achieved in a short time, avoiding the time overhead risks associated with large-scale data re-labeling and retraining.

[0040] S106, input all the test paper images of the current exam into the target scoring model for processing, and output the corresponding score results.

[0041] This embodiment achieves automatic scoring of the entire exam paper by accurately selecting a small number of calibrated samples from the three-dimensional ambiguous space for annotation and model adaptation. While adapting to differences in candidates' writing and changes in the exam scenario and improving scoring accuracy, it effectively reduces annotation costs and computational resource consumption.

[0042] Please see Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the method of this application. Based on the first embodiment, this embodiment refines the preprocessing for feature extraction in step S102, including the following steps: S101, in response to receiving multiple test paper images from the same exam, identifies the text in each blank area of ​​the test paper images.

[0043] S201, perform layout analysis on multiple test paper images to obtain the position and size information of the fill-in-the-blank area.

[0044] The layout analysis involves analyzing the overall structure of the exam paper image. By identifying the positional relationships of different sections such as the question stem area, the fill-in-the-blank area, and the answer area, the position and size information of the fill-in-the-blank area in the exam paper image are accurately located. In some embodiments, S201 includes: reading multiple exam paper images and converting them into grayscale images; processing the grayscale images using an edge detection algorithm to obtain edge images; performing morphological operations on the edge images and using a connected component analysis algorithm to determine all connected components in the exam paper image; and determining the position and size information of the fill-in-the-blank area based on the position and size information of the connected components.

[0045] Converting color exam paper images to grayscale reduces data dimensionality and computational complexity. Edge detection highlights structural outlines such as question borders, fill-in-the-blank boxes, and table lines, separating the layout from a complex background. Morphological operations remove noise, fill in broken edges, and enhance structural connectivity. Connected component analysis identifies spatially connected regions in an image; since fill-in-the-blank regions are connected regions of a certain size and regular shape, they can be located by filtering the geometric features of connected components.

[0046] S202, based on the position and size information of the filling area, feature extraction is performed on the content in the filling area to obtain contour information and stroke information.

[0047] The outline information refers to the overall shape, boundary distribution, and closure of the content in the blank area, used to characterize the overall structural features of the handwriting; the stroke information refers to the direction, thickness variation, and connection relationship of the lines formed during handwriting, used to characterize the local structure and writing behavior features of the handwriting. In some embodiments, S202 includes: dividing each blank area into multiple layers according to the position and size information; performing binarization on each layer, and performing outline detection on the binarized layers to obtain outline information; and refining the outline information to obtain stroke information. Binarization can enhance the contrast between the handwriting and the background; refining can skeletonize the outline, making the handwriting width approach a single pixel line, and more accurately reflecting the direction and structure of the strokes.

[0048] S203, detect the contour information and stroke information corresponding to the blank area to determine the valid handwritten characters in the blank area.

[0049] Valid handwritten characters have a relatively complete and continuous outer contour, and are composed of continuous strokes with clear start and end relationships and spatial connection characteristics between strokes; while blank areas, noisy areas, printed fonts, or background textures usually lack the continuity and directional change characteristics of handwritten strokes. In some embodiments, S203 includes: extracting features from contour information and stroke information based on a neural network model to obtain contour features and stroke features; classifying the contour features and stroke features to determine whether the content in the blank area is a valid handwritten character; when the content has handwritten stroke structure features but does not have printed font features or blank area features, it is determined to be a valid handwritten character. When an invalid handwritten character (such as a blank) is detected, the content corresponding to the blank area can be directly marked as an incorrect answer. The neural network model may include, but is not limited to, convolutional neural networks, recurrent neural networks, attention-based neural networks, graph neural networks, or combinations thereof.

[0050] S204, extract features from the valid handwriting to obtain handwriting neatness features and writing standardization features.

[0051] Among them, the neatness feature reflects the stability and consistency of handwriting in terms of overall brightness distribution, stroke thickness uniformity, and edge smoothness. The writing standardization feature characterizes the regularity and standardization of the stroke structure and writing direction, reflecting the conformity and consistency of handwritten characters at the structural level.

[0052] In some embodiments, S204 includes: performing pixel-level brightness analysis on the effective handwriting, calculating the mean and standard deviation of the brightness matrix to obtain handwriting neatness features; performing gradient direction distribution analysis on the effective handwriting, extracting gradient direction distribution features; and calculating the gradient direction distribution features to obtain the writing standardization features.

[0053] The process involves pixel-level brightness analysis of valid handwritten images to obtain the grayscale or brightness distribution of each pixel, and constructing a brightness matrix accordingly. Based on the brightness matrix, statistical characteristic parameters, including the mean and standard deviation, are calculated to characterize the concentration and dispersion of the overall brightness distribution of the handwritten handwriting, thereby obtaining the neatness characteristics of the handwriting.

[0054] Simultaneously, gradient direction distribution analysis is performed on valid handwritten images. First, the image gradient is calculated based on pixel grayscale changes, and the distribution probability or frequency of gradients in different directions is statistically analyzed to form a gradient direction histogram or equivalent distribution representation, which characterizes the directionality and structural features of strokes, thereby extracting gradient direction distribution features. Based on this, the gradient direction distribution features are quantitatively processed, such as by statistically analyzing directional concentration, directional entropy, or the proportion of the main direction, to characterize the consistency and regularity of stroke directions, thus obtaining writing standardization features.

[0055] S103, S104, and S105 are the same as in the first embodiment.

[0056] This embodiment uses an effective handwriting detection mechanism to eliminate blank areas, printed fonts, or interfering information, ensuring that feature extraction and model training are based on real handwriting content. Furthermore, the extracted handwriting neatness features and writing standardization features can reflect the quality of handwriting from the perspective of structure and writing behavior, thereby improving the reliability of the judgment process.

[0057] To systematically locate scoring boundary samples, a third embodiment is proposed. This embodiment illustrates the multi-strategy collaborative screening mechanism in S103 with an example. In this embodiment, a three-dimensional ambiguity space theoretical model is proposed for handwritten fill-in-the-blank questions. This model posits that the ambiguity of samples leading to scoring decisions can be attributed to three independent and orthogonal dimensions: (1) Handwriting quality dimension: Candidates' handwriting quality deviates from the group norm due to illegible handwriting, unclear strokes, or abnormal structure, causing discrepancies in recognition and assessment. Such samples are outliers in the statistical distribution of handwriting characteristics.

[0058] (2) Answer matching dimension: The candidate's answer is in the middle ground between being neither completely correct nor completely wrong. Typical examples are correct writing but misidentification due to non-standard writing, or incorrect writing but similar in form to the standard answer, which leads to ambiguity in the score determination. Such samples show an intermediate value in the similarity between the identified text and the standard answer.

[0059] (3) Distribution dimension of group responses: The candidates' responses belong to rare cases in the group, such as rare wrong answers or misidentification results, which are low-frequency anomalies in the group distribution. Such samples are represented as low-frequency clusters in the clustering distribution of the identified text.

[0060] The three dimensions mentioned above are orthogonal and non-substitutable: a sample with normal writing quality may fall into ambiguity in the answer matching dimension; a frequently occurring answer may require review due to abnormal writing quality in individual candidates. Therefore, screening based on a single dimension cannot cover all boundary samples. It is necessary to collaboratively screen from all three dimensions and take the union to fully cover the ambiguity space of score determination. This is the theoretical basis for this application's use of a three-strategy union operation instead of an intersection operation.

[0061] It is important to note that the three-dimensional ambiguity space screening mechanism of this application is fundamentally different from the active learning commonly used in the field of machine learning: general active learning usually selects samples iteratively based on a single model uncertainty indicator (such as prediction entropy or interval sampling), requiring multiple rounds of "training-selection-retraining" cycles, and its uncertainty comes from the model itself rather than the semantics of the task; while this application is oriented towards the semantic essence of the scoring task, and performs a one-time collaborative screening from three dimensions that are strongly correlated with the score: writing quality, answer matching, and group distribution, without the need for multiple rounds of iteration, and the screening basis comes from the domain understanding of the causes of the ambiguity in the score.

[0062] Based on the aforementioned three-dimensional ambiguity space model, this application performs a union operation on the sample sets selected by the detection strategies corresponding to the three dimensions to obtain a candidate sample set. Considering the differences in the calibration value of different samples to the score judgment boundary, this application further introduces boundary contribution to prioritize the candidate samples: samples that are hit by multiple dimensions simultaneously, and samples that are closer to the judgment threshold in each dimension, are considered to have higher boundary contribution. After sorting by boundary contribution from high to low, the number is truncated according to a preset proportion threshold, thereby further refining the final calibration samples (e.g., no more than 5% of all samples) from the candidate sample set (e.g., no more than 10% of all samples). This two-stage screening mechanism of union recall and contribution ranking not only ensures comprehensive coverage of the ambiguity space, but also further concentrates the annotation resources on the samples with the highest information density.

[0063] Please see Figure 3 and Figure 5 This embodiment is based on the above-mentioned three-dimensional ambiguity space theoretical model. Boundary samples are screened from three mutually orthogonal dimensions, and after taking the union, they are sorted according to the boundary contribution and the upper limit of the number is controlled.

[0064] Detection Strategy 1: Adopt a suspicious sample detection strategy to screen the handwritten features of each of the blank areas to obtain a suspicious sample set, that is, suspicious sample detection based on the abnormality of handwritten features.

[0065] This detection strategy identifies anomalous samples based on handwriting quality. The specific steps are as follows: (1) Statistical analysis was performed on the neatness and standardization of handwriting in all fill-in-the-blank areas, and the mean μ and standard deviation σ of each feature dimension were calculated.

[0066] (2) For the handwritten features of each fill-in-the-blank area, calculate its standardized deviation from the corresponding mean in each feature dimension, i.e., the z-score: z = (x μ) / σ, where x is the value of the sample on a certain feature dimension.

[0067] (3) Set a deviation threshold θ and mark samples with |z|>θ on any feature dimension as suspicious samples. These samples usually have illegible handwriting, unclear strokes or abnormal structure, which can easily cause ambiguity in the scoring.

[0068] Regarding the steps for determining the deviation threshold θ: This application sets θ based on the 3σ principle in statistics. In an approximately normal distribution, samples falling outside the mean ± 2σ account for approximately 4.6%, and samples falling outside ± 3σ account for approximately 0.3%. To strike a balance between adequately capturing statistically significant outliers and avoiding over-screening that leads to candidate set inflation, this application sets the value of θ to be between 2 and 3. When the exam size is large and stricter control over the number of candidate samples is required, θ = 3 can be used; when it is necessary to improve the recall rate of boundary samples, θ = 2 can be used.

[0069] Detection Strategy 2: Employ a similar-looking and easily confused sample detection strategy to filter the identified text in each of the fill-in-the-blank areas and obtain a set of similar-looking and easily confused samples, which is a similar-looking and easily confused sample detection based on the approximate matching of the standard answer.

[0070] The second detection strategy identifies ambiguous samples based on the matching dimension between the identification results and the standard answers. The specific steps are as follows: (1) Perform handwritten character recognition on the handwritten image of each blank area to obtain the recognized text. The handwritten character recognition can be performed using existing optical character recognition technology or handwritten character recognition model.

[0071] (2) Calculate the similarity between the identified text and the standard answer to the fill-in-the-blank question. This can be done using at least one of the following methods: edit distance algorithm, character shape similarity algorithm, or confusion matrix matching. Specifically, the edit distance algorithm calculates the minimum number of editing operations between the identified text and the standard answer and normalizes it to a similarity value; the character shape similarity algorithm extracts the stroke features and structural features of the corresponding characters and calculates the visual morphological similarity between the characters; and the confusion matrix matching determines whether the corresponding characters belong to easily confused character pairs based on a preset character confusion matrix.

[0072] (3) Set a similarity threshold range [S_low, S_high], and mark samples with similarity within this range as easily confused samples. The lower limit S_low is used to exclude clearly wrong answers that are completely irrelevant to the standard answer, and the upper limit S_high is used to exclude clearly correct answers that completely match the standard answer.

[0073] Regarding the criteria for determining the similarity interval: This application considers samples with similarity below S_low to be clearly incorrect, and samples with similarity above S_high to be clearly correct; both are unambiguous in their scoring and require no labeling. Samples between [S_low, S_high] fall into a fuzzy zone where even manual scoring can lead to discrepancies, and are key samples that the scoring model needs to focus on learning. In one implementation, S_low ranges from 0.4 to 0.6, and S_high ranges from 0.85 to 0.95, with the specific values ​​adjustable based on the character length of the standard answer and the leniency of the exam's scoring. This strategy effectively captures two types of key ambiguous samples: one type is samples where the candidate writes correctly but is misidentified due to improper handwriting; the other type is samples where the candidate writes incorrectly but is similar in form to the standard answer.

[0074] Detection Strategy 3: The low-frequency abnormal sample detection strategy is used to cluster and filter the identified text in each of the blank areas to obtain a set of low-frequency abnormal samples, that is, low-frequency abnormal sample detection based on text clustering.

[0075] The third detection strategy identifies anomalous samples from the perspective of group response distribution. The specific steps are as follows: (1) Summarize the identification texts of the same fill-in-the-blank question in all test papers to obtain the complete set of identification texts for that fill-in-the-blank question.

[0076] (2) Based on text similarity measurement, a clustering algorithm is used to divide the identified text into multiple clusters.

[0077] (3) Count the number of samples in each cluster, calculate its proportion to the total number of samples, and mark the samples in the clusters with a proportion lower than the preset frequency threshold as low-frequency abnormal samples.

[0078] The basis for determining the frequency threshold is as follows: In standardized tests, correct answers and common incorrect answers typically form high-frequency clusters, while rare errors and misidentifications form low-frequency clusters. This application sets the frequency threshold to a small percentage (e.g., 1% to 3%), and clusters below this threshold are considered outliers in the population distribution. Low-frequency outlier samples typically include rare incorrect answers and misidentifications caused by non-standard writing; their scoring is uncertain and requires manual verification.

[0079] Three detection strategies work together: the suspicious sample set, the easily confused sample set, and the low-frequency abnormal sample set are combined to obtain the candidate sample set, wherein the number of the candidate sample set accounts for no more than a preset second proportion threshold of the total number of samples in the fill-in-the-blank area; the boundary contribution of each sample in the candidate sample set is calculated; the samples are sorted from high to low according to the boundary contribution and truncated according to a preset first proportion threshold to obtain multiple calibration samples, wherein the number of calibration samples accounts for no more than the first proportion threshold of the total number of samples in the fill-in-the-blank area.

[0080] Please see Figure 3 The set of suspicious samples A selected by detection strategy one, the set of similar and easily confused samples B selected by detection strategy two, and the set of low-frequency abnormal samples C selected by detection strategy three are combined to obtain the candidate sample set U = A ∪ B ∪ C.

[0081] Since the three strategies filter from three mutually orthogonal dimensions, the overlap between the three sets is low. Therefore, the union operation can ensure that the candidate samples fully cover the three-dimensional ambiguity space. According to experimental statistics, the sample overlap rate between any two sets is usually 15% to 25% (see the fifth embodiment for specific data). This experimentally verifies that the three dimensions do indeed capture different types of boundary samples, and the three strategies are complementary rather than redundant. This confirms the effectiveness of the three-dimensional ambiguity space theoretical model and also explains the necessity of using the union operation (rather than the intersection operation) in this application: if the intersection operation is used, only a very small number of samples that are hit by all three dimensions will be retained, resulting in a large number of single-dimensional boundary samples being missed.

[0082] Through the above union operation, boundary samples under different feature dimensions can be recalled from all fill-in region samples, forming a candidate sample set U. In some exemplary methods, the number of samples in the candidate sample set U can be controlled so that the number of samples in the total fill-in region does not exceed a second proportion threshold, such as 10%. Based on this, in order to further screen samples with a high degree of contribution to model calibration from the candidate sample set U, this application further calculates the boundary contribution of each candidate sample and performs fine ranking based on the boundary contribution. Specifically, as follows: (1) For each sample in the candidate sample set U, count the number of strategies n (n ∈ {1, 2, 3}) that are hit by the three detection strategies.

[0083] (2) For each sample, calculate its boundary proximity under each hit detection strategy: For detection strategy one, the boundary proximity is determined by the proximity of |z| to θ; for detection strategy two, it is determined by the similarity being in the middle of the interval [S_low, S_high]; for detection strategy three, it is determined by the degree to which the frequency of the cluster it belongs is close to the frequency threshold.

[0084] (3) The boundary contribution of each sample is obtained by weighting and fusing the number of policy hits n with the boundary proximity. Samples that are hit by multiple policies at the same time (with a larger n) and samples that are closer to the decision threshold in each dimension have a higher boundary contribution.

[0085] (4) Sort the samples in the candidate sample set U from high to low according to the boundary contribution, and truncate the number according to the preset first proportion threshold (e.g., no more than 5% of all samples) to obtain the final calibration sample set.

[0086] This embodiment takes into account the long-tail distribution characteristics of test takers' answers in standardized tests, setting this threshold accordingly. In standardized tests, approximately 95% of test takers' answers are concentrated in areas that are clear and have predictable scores, while approximately 5% of their answers are located on the boundary or in abnormal areas of score determination. Therefore, controlling the proportion of calibrated samples to within 5%, i.e., the first proportion threshold not exceeding 5%, can both cover the vast majority of boundary samples and keep the annotation cost to a minimum. Furthermore, testing revealed that as the annotation proportion gradually increases from 3% to 7%, the improvement in scoring accuracy exhibits a significant diminishing marginal effect (see the fifth embodiment for specific data). Therefore, setting the first proportion threshold to around 5% is the optimal balance between annotation cost and scoring effect.

[0087] Through the two-stage screening mechanism of union recall and contribution ranking described above, this embodiment ensures comprehensive coverage of the three-dimensional ambiguity space while further concentrating annotation resources on the samples with the highest information density, thereby maximizing annotation efficiency.

[0088] Please see Figure 4 , Figure 4 This is a detailed flowchart of method S105 of this application, illustrating the implementation of lightweight training and score decision boundary calibration in S105. This embodiment separates model parameter learning from score decision boundary calibration, including the following steps: S401, the labeled data is divided into a training dataset and a calibration dataset.

[0089] The training dataset is used to learn the model parameters of the scoring model and build the basic discrimination ability of the scoring model for handwriting features; the calibration dataset is used to analyze the score output distribution of the scoring model in the current examination scenario, and then adjust the score judgment boundary so that the subscale is consistent with the actual scoring standard of the current examination.

[0090] S402, Based on the training dataset, the model parameters of the initial scoring model are learned to obtain an intermediate scoring model.

[0091] The initial scoring model possesses the basic ability to process handwritten features and output results, but its scoring boundary has not yet been adapted to the current exam. As an example, the initial scoring model can be a classifier, such as one or more of the following: Support Vector Machine, Logistic Regression Model, Decision Tree Model, Random Forest, Gradient Boosting Tree, Multilayer Perceptron, Lightweight Neural Network Model, K-Nearest Neighbor Classifier, or Bayesian Classifier. Using a lightweight classifier as the initial scoring model can further reduce computational resource consumption.

[0092] S403, input the handwritten features with correct answer labels and the handwritten features with incorrect answer labels from the calibration dataset into the intermediate scoring model respectively, and statistically obtain the output distribution of correct answer scores and the output distribution of incorrect answer scores.

[0093] Specifically, the handwritten features labeled with correct answers in the calibration dataset are input into the intermediate scoring model, and the distribution of its score output values ​​is statistically analyzed, denoted as the correct answer score output distribution; the handwritten features labeled with incorrect answers are input into the intermediate scoring model, and the distribution of its score output values ​​is statistically analyzed, denoted as the incorrect answer score output distribution.

[0094] S404, based on the correct answer score output distribution and the incorrect answer score output distribution, calibrate the score judgment boundary of the intermediate score model to obtain the target score model for the current exam score.

[0095] The learning of model parameters and the calibration of the score determination boundary are separate processes, and the model parameters of the intermediate score model remain unchanged during the calibration of the score determination boundary.

[0096] Specifically, the scoring decision boundary calibration process includes: (1) Analyze whether there is an overlapping region between the score output distribution of correct answers and the score output distribution of incorrect answers. The overlapping region refers to the area where the intermediate scoring model gives similar score output values ​​for some correct answers and incorrect answers, resulting in ambiguity in the score judgment.

[0097] (2) In the overlapping area, the following strategy is used to determine the target score judgment threshold: when the sample ratio parameter is higher than the upper limit of the ratio range, for example when the sample number of correct answers and incorrect answers in the overlapping area is significantly different, the criterion of minimizing the misjudgment rate is adopted, that is, the optimization objective is to minimize the total probability of correct answers being misjudged as incorrect and incorrect answers being misjudged as correct, and to search for the optimal threshold in the overlapping area.

[0098] When the sample ratio parameter is lower than the lower limit of the ratio range, for example when the sample number distribution is relatively balanced, the maximum score consistency criterion is adopted, that is, the threshold is determined with the maximum consistency index between the model score result and the labeled data as the optimization objective. When the sample ratio parameter is within the ratio range, for example when both criteria are applicable, the weighting coefficient is determined based on the ratio of the number of correct answers to the number of incorrect answers in the calibration dataset, and the weighted average of the two threshold values ​​is taken as the final threshold.

[0099] (3) Set the target score determination threshold as the score determination boundary of the target score model.

[0100] It is important to emphasize that the model parameters of the intermediate scoring model remain unchanged during the score decision boundary calibration process. Since decision boundary calibration does not rely on learning new feature patterns from a large number of samples, but rather on remapping the existing output distribution, a small amount of representative labeled data can be used to achieve rapid adaptive adjustment of the scoring scale to the current examination scenario while maintaining the stability of the model structure and main parameters, thus completing the lightweight adaptation process. This is one of the key mechanisms by which this application can complete model adaptation with only a small number of calibrated samples.

[0101] For example, the proportion range can be [0.2, 0.6]. That is, when the sample proportion parameter is higher than 0.6, the criterion of minimizing the false positive rate is adopted; when the sample proportion parameter is lower than 0.2, the criterion of maximizing the score consistency is adopted; when the sample proportion parameter is within [0.2, 0.6], the weighted average of the two criteria is used to determine the threshold as the final threshold.

[0102] Furthermore, after automatic scoring is completed, the confidence level of the scoring results can be evaluated. Specifically, for the scoring results of each fill-in-the-blank area, the confidence level of the target scoring model is calculated. This confidence level is determined based on the distance between the handwritten features of the fill-in-the-blank area and the scoring decision boundary: when the handwritten features are far from the scoring decision boundary, the scoring decision is relatively clear, and the confidence level is high; when the distance is close, the sample is in a region of disagreement, and the confidence level is low. When the confidence level is lower than a preset confidence threshold, the corresponding fill-in-the-blank area is marked as requiring manual review and submitted to the examiners for final judgment. Through the scoring confidence evaluation mechanism, samples with uncertain scoring model decisions can be effectively identified while ensuring scoring efficiency, avoiding misjudgments of samples with ambiguous boundaries, and improving the overall reliability of the scoring system.

[0103] This embodiment separates model parameter learning from score determination boundary calibration, enabling the sub-model to quickly adjust to the handwriting feature distribution of the current exam while maintaining structural stability. This avoids the computational overhead of model retraining and effectively corrects misjudgment of samples near the determination boundary, achieving adaptive adjustment of the scoring scale.

[0104] Furthermore, to verify the technical effectiveness of this application, a comparative experiment was conducted in a real-world examination scenario. The experimental data came from a standardized test, with a total of [N] test papers collected. Each test paper contained [M] fill-in-the-blank questions, resulting in a total of [N×M] fill-in-the-blank samples. The experiment was conducted in the same hardware environment. All test papers were processed using the following methods, and the scores were compared with those obtained manually by qualified scorers. Please refer to the table below.

[0105] Table 1: Overall Comparison of the Method in this Application with Existing Methods

[0106] As shown in Table 1, the method of this application achieves a score accuracy and consistency close to that of full annotation (approximately 20 times the amount of annotation) with less than 5% of the annotations. Compared with the random sampling method with the same annotation ratio, the score accuracy is improved by approximately [6.5] percentage points, proving the effectiveness of the three-strategy collaborative screening for locating key samples. Compared with the general active learning method, this application achieves higher accuracy while significantly reducing the adaptation time due to the absence of multiple iterations, thus verifying the efficiency advantage of one-time collaborative screening.

[0107] Table 2: Validation of the complementarity of the three strategies (statistics on sample overlap)

[0108] As shown in Table 2, the sample overlap rate between each pair of the three strategies is only [16% to 22%], and the samples hit by all three strategies simultaneously account for only [7.4%]. This indicates that the three strategies do indeed capture different types of boundary samples from different dimensions, and there is significant complementarity rather than redundancy among them. From an experimental perspective, this verifies the effectiveness of the three-dimensional ambiguity space theoretical model and confirms the necessity of using union operations.

[0109] Table 3: Impact of annotation ratio on score accuracy (based on 5% threshold)

[0110] As shown in Table 3, the accuracy of the score improves significantly when the annotation ratio increases from 3% to 5%. However, when the annotation ratio exceeds 5%, the improvement in accuracy exhibits a significant diminishing marginal effect. This indicates that around 5% is the optimal balance between annotation cost and scoring effect, validating the rationality of setting the calibration sample ratio threshold to no more than 5% in this application.

[0111] Based on the above experimental results, the method of this application is significantly superior to existing methods in terms of annotation cost, adaptation speed, scoring accuracy and consistency, and realizes the lightweight, fast and scenario-adaptive nature of the handwritten fill-in-the-blank scoring system.

[0112] Please see Figure 6 , Figure 6 This is an exemplary structural block diagram of the electronic device of this application. The electronic device 600 of this application may include a processor 601 and a memory 602, wherein the processor 601 and the memory 602 communicate via a bus. The memory 602 stores program instructions for scoring handwritten fill-in-the-blank questions. When the program instructions are executed by the processor 601, the processor 601 performs the aforementioned related method steps to implement the methods in any of the above embodiments.

[0113] Please see Figure 7 , Figure 7 This is an exemplary structural block diagram of a computer-readable storage medium of this application. The computer-readable storage medium 700 stores a computer program 701. When the computer program 701 is run by a processor on a computer, it causes the computer to perform the aforementioned method steps, implementing the methods in any of the above embodiments.

[0114] In summary, this application transforms the problem of automatic scoring of handwritten fill-in-the-blank questions from optimizing recognition accuracy to accurately selecting scoring boundary samples. It proposes a three-dimensional ambiguity space theoretical model for handwritten scoring and designs a multi-strategy collaborative selection and boundary contribution ranking mechanism based on this model. Combined with a lightweight adaptation mechanism that decouples training and calibration, it effectively reduces annotation costs and computational resource consumption while ensuring scoring accuracy and consistency. This achieves a lightweight, fast, and scenario-adaptive handwritten fill-in-the-blank scoring system.

[0115] In the several embodiments provided in this application, it should be understood that the disclosed methods, electronic devices, and storage media can be implemented in other ways. For example, the device embodiments described above are merely illustrative, and the division of modules or units is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0116] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0117] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0118] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0119] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for judging handwritten fill-in-the-blank questions, characterized in that, The method includes: In response to receiving multiple test paper images from the same exam, the system identifies the text in each fill-in-the-blank area of ​​the test paper images. Feature extraction is performed on the recognized text of each of the blank areas to obtain the handwritten features of each of the blank areas; A preset multi-strategy collaborative screening mechanism is adopted to screen the recognition text and handwriting features of each fill-in area from multiple different feature dimensions to obtain multiple candidate sample sets; The multiple candidate sample sets are fused, and priority ranking and quantity control are performed based on the boundary contribution of each of the multiple candidate sample sets to obtain calibration samples located near the score determination boundary; the proportion of the number of calibration samples to the total number of samples in the fill-in area does not exceed a preset first proportion threshold. Obtain the labeled data of each of the calibration samples, and use the labeled data to perform lightweight training and score judgment boundary calibration on the initial scoring model to obtain the target scoring model for the current exam; The images of all the test papers for the current exam are input into the target scoring model for processing, and the corresponding scores are output.

2. The method according to claim 1, characterized in that, The method employs a pre-defined multi-strategy collaborative screening mechanism to filter the recognized text and handwritten features of each fill-in-the-blank area from multiple different feature dimensions, resulting in multiple candidate sample sets, including: A suspicious sample detection strategy is adopted to filter the handwritten features of each of the blank areas to obtain a suspicious sample set; A similar-shaped and easily confused sample detection strategy is adopted to filter the recognized text of each of the blank areas to obtain a set of similar-shaped and easily confused samples. A low-frequency abnormal sample detection strategy is used to cluster and filter the identified text in each of the blank areas to obtain a low-frequency abnormal sample set. The suspicious sample detection strategy, the similar-shaped easily confused sample detection strategy, and the low-frequency abnormal sample detection strategy are independent of each other and complementary.

3. The method according to claim 2, characterized in that, The aforementioned suspicious sample detection strategy filters the handwritten features of each of the blank areas to obtain a suspicious sample set, including: Statistical analysis was performed on the handwritten features of each of the aforementioned fill-in areas in each feature dimension, and the mean μ and standard deviation σ of each feature dimension were calculated. Based on the mean μ and standard deviation σ of each feature dimension, the standardized deviation z of the handwritten features of each fill-in region is calculated, where z = (x μ) / σ; x is the value on the corresponding feature dimension; The samples corresponding to the blank regions where the absolute value of the standardized deviation on any feature dimension exceeds a preset deviation threshold θ are marked as suspicious samples, thus obtaining the suspicious sample set.

4. The method according to claim 2, characterized in that, The method employs a similar-shape easily confused sample detection strategy to filter the recognized text in each of the fill-in-the-blank regions, resulting in a set of similar-shape easily confused samples, including: Obtain the standard answer corresponding to the identified text, and calculate the similarity between the identified text and the standard answer; The identified texts whose similarity falls within a preset similarity interval are marked as easily confused samples, thus obtaining the set of easily confused samples; wherein, the lower limit of the preset similarity interval is used to exclude incorrect answers that are completely unrelated to the standard answer, and its upper limit is used to exclude correct answers that completely match the standard answer.

5. The method according to claim 2, characterized in that, The low-frequency anomaly sample detection strategy is used to cluster and filter the identified text in each of the blank regions to obtain a low-frequency anomaly sample set, including: The identified text in the same fill-in-the-blank area of ​​the multiple test paper images is summarized; Based on a preset text similarity metric, a clustering algorithm is used to divide the identified text in the same blank area into multiple clusters; The number of samples in each cluster is counted to obtain the number of samples in each cluster and the total number of samples. Calculate the ratio of the number of samples in each cluster to the total number of samples. Mark the samples in the clusters whose sample number is lower than the preset frequency threshold as low-frequency abnormal samples to obtain the set of low-frequency abnormal samples.

6. The method according to claim 2, characterized in that, The process of fusing the multiple candidate sample sets and prioritizing and controlling the number of samples based on the boundary contribution of each candidate sample set to obtain calibrated samples located near the score determination boundary includes: The set of suspicious samples, the set of easily confused samples with similar shapes, and the set of low-frequency abnormal samples are combined to obtain the set of candidate samples. The number of the candidate sample set accounts for no more than a preset second proportion threshold; the second proportion threshold is greater than the first proportion threshold. Calculate the boundary contribution of each sample in the candidate sample set; The samples are sorted from high to low according to their boundary contribution and truncated according to a preset first proportion threshold to obtain multiple calibration samples. The proportion of the number of calibration samples to the total number of samples in the fill-in area does not exceed the first proportion threshold.

7. The method according to claim 6, characterized in that, The calculation of the boundary contribution of each sample in the candidate sample set includes: For each sample in the candidate sample set, count the number of strategies that meet the screening criteria among the suspicious sample detection strategy, the similar and easily confused sample detection strategy, and the low-frequency abnormal sample detection strategy, and use this as the strategy hit count. For each detection strategy matched by each sample, based on the judgment threshold corresponding to the detection strategy, the deviation between the feature value of the sample and the judgment threshold is calculated. The deviation is used as the boundary proximity under the corresponding detection strategy. The boundary proximity represents the distance between the feature value of the sample and the judgment threshold of the corresponding strategy. The smaller the distance, the closer it is to the judgment boundary of the strategy. The boundary contribution is obtained by weighting and fusing the number of hits of the strategy with the boundary proximity of each detection strategy, wherein the sample with more hits of the strategy corresponds to a higher boundary contribution.

8. The method according to claim 1, characterized in that, The step of using the labeled data to perform lightweight training and score determination boundary calibration on the initial scoring model to obtain the target scoring model for the current exam includes: The labeled data is divided into a training dataset and a calibration dataset; Based on the training dataset, the model parameters of the initial scoring model are learned to obtain an intermediate scoring model; The handwritten features labeled with correct answers and the handwritten features labeled with incorrect answers in the calibration dataset are respectively input into the intermediate scoring model, and the output distribution of correct answer scores and the output distribution of incorrect answer scores are statistically obtained. Based on the correct answer score output distribution and the incorrect answer score output distribution, the score determination boundary of the intermediate score model is calibrated to obtain the target score model; wherein, the learning of the model parameters and the calibration of the score determination boundary are separated, and the model parameters of the intermediate score model remain unchanged during the calibration of the score determination boundary.

9. The method according to claim 8, characterized in that, The step of calibrating the score decision boundary of the intermediate scoring model based on the correct answer score output distribution and the incorrect answer score output distribution to obtain the target scoring model includes: Determine the overlapping region between the correct answer score output distribution and the incorrect answer score output distribution; Within the overlapping area, a target score judgment threshold is determined based on the criteria of minimizing the misjudgment rate and / or maximizing the score consistency; wherein, the sample ratio parameter is obtained by calculating the quantitative ratio between the number of correct answer samples and the number of incorrect answer samples, and a ratio range is preset. When the sample ratio parameter is higher than the upper limit of the ratio range, the score judgment threshold is determined by the criterion of minimizing the false judgment rate. When the sample proportion parameter is lower than the lower limit of the proportion range, the score judgment threshold is determined by maximizing score consistency criteria. When the sample ratio parameter is within the ratio range, the weight coefficient is determined according to the sample ratio parameter, and the minimum misjudgment rate criterion and the maximum score consistency criterion are weighted and fused, and the threshold corresponding to the weighted result is taken as the target score judgment threshold. The target score determination threshold is used as the score determination boundary of the target score model.

10. The method according to claim 1, characterized in that, The images of all the test papers for the current exam are input into the target scoring model for processing, followed by: For each of the fill-in-the-blank regions, the score confidence of the target scoring model is calculated, wherein the score confidence is determined based on the distance between the handwritten features of the fill-in-the-blank region and the score determination boundary; When the confidence level of the score is lower than the preset confidence threshold, the corresponding blank area is marked as awaiting manual review.

11. The method according to claim 1, characterized in that, The handwriting features include neatness features and writing standard dimension features. The step of extracting features from the recognized text of each of the blank areas to obtain the handwriting features of each blank area includes: Layout analysis is performed on multiple test paper images to obtain the location and size information of the fill-in-the-blank area; Based on the position and size information of the blank area, feature extraction is performed on the content in the blank area to obtain contour information and stroke information; The outline and stroke information corresponding to the blank area are detected to determine the valid handwritten characters in the blank area; Feature extraction is performed on the valid handwritten characters to obtain the handwritten character features.

12. The method according to claim 11, characterized in that, The step of performing layout analysis on multiple test paper images to obtain the position and size information of the fill-in-the-blank area includes: Read multiple test paper images and convert them into grayscale images; The grayscale image is processed using an edge detection algorithm to obtain an edge image; Morphological operations are performed on the edge image, and a connected component analysis algorithm is used to analyze the edge image to determine all connected components in the test paper image; Based on the location and size information of the connected domain, the location and size information of the filling region are determined.

13. The method according to claim 11, characterized in that, The step of detecting the contour information and stroke information corresponding to the blank area to determine the valid handwritten characters in the blank area includes: Based on a neural network model, feature extraction is performed on the contour information and the stroke information to obtain contour features and stroke features; The outline features and stroke features are classified to determine whether the content in the blank area is a valid handwritten character. When the content in the blank area has handwritten stroke structure features but does not have printed font features or blank area features, the content in the blank area is determined to be a valid handwritten font.

14. The method according to claim 11, characterized in that, The handwriting features include neatness features and writing standardization features. The step of extracting features from the valid handwriting to obtain the handwriting features includes: Pixel-level brightness analysis is performed on the effective handwriting, and the mean and standard deviation of the brightness matrix are calculated to obtain the neatness characteristics of the handwriting. Gradient direction distribution analysis is performed on the effective handwritten characters to extract gradient direction distribution features; The writing standardization features are obtained by calculating the gradient direction distribution characteristics.

15. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the handwritten fill-in-the-blank question determination method as described in any one of claims 1 to 14.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the handwritten fill-in-the-blank question determination method as described in any one of claims 1 to 14.