A text reconstruction method and system of hard constraint filtering and multi-objective optimization

By using hard constraint filtering and multi-objective optimization, the problem of hard constraints being masked in lesson plan optimization is solved, achieving a reasonable balance between meeting class hours and knowledge coverage, and providing a more accurate lesson plan optimization solution.

CN123159285APending Publication Date: 2026-11-24SICHUAN QIMINGDAREN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611662349.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing lesson plan optimization methods, the prominent performance of high-weight dimensions can easily mask violations of hard constraints, leading to the violation of hard constraints. Existing technologies are difficult to effectively combine class time limits and knowledge coverage for optimization.

Method used

By using a combination of hard constraint filtering and multi-objective optimization, lesson plan texts that do not meet the constraints of the upper limit of class time and knowledge point coverage are first eliminated. Then, multi-objective ranking is performed based on the predicted teaching time and knowledge point coverage. Finally, the lesson plan texts ranked lower are reconstructed to ensure that the constraints are met and optimize the teaching content.

Benefits of technology

It achieves a reasonable balance between time and knowledge coverage while meeting hard constraints, avoids constraint violations caused by a single weighted ranking, and provides a more accurate lesson plan optimization solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159285A_ABST
    Figure CN123159285A_ABST
Patent Text Reader

Abstract

This invention discloses a text reconstruction method and system based on hard constraint filtering and multi-objective optimization, belonging to the field of multi-objective optimization technology. Multiple lesson plan texts to be judged are obtained, and hard constraint filtering is performed to obtain multiple constrained lesson plan texts. Based on the multiple constrained lesson plan texts, multi-objective discrimination is performed to obtain a sequence of lesson plan texts. Based on the sequence of lesson plan texts, text reconstruction is performed to obtain multiple reconstructed texts. By using a multi-objective optimization method to balance objectives while ensuring solution feasibility, the technical effect of improving objective values ​​without sacrificing constraint satisfaction is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of multi-objective optimization technology, and more specifically, to a text reconstruction method and system based on hard-constraint filtering and multi-objective optimization. Background Technology

[0002] Currently, existing lesson plan optimization methods generally employ a weighted total score ranking mechanism to evaluate and select the best lesson plans. The advantage of weighted total score ranking lies in its ease of calculation and quick screening, and it can reflect the overall quality level of lesson plans to a certain extent.

[0003] However, this mechanism has a significant technical flaw: outstanding performance in high-weighted dimensions can mask violations of hard constraints. Specifically, when a lesson plan scores highly on high-weighted indicators of knowledge completeness, even if it violates hard constraints such as class hour limits, its overall score may still exceed that of lesson plans that, while not violating hard constraints, demonstrate balanced performance across all indicators, thus being incorrectly selected as the optimal plan. The fundamental reason is that the weighted total score ranking unifies all evaluation dimensions into weighted numerical scores, replacing discrete constraint judgments with continuous numerical compensation. This places "must-be-met" hard conditions and "optimize-as-you-go" soft indicators under the same evaluation scale, thereby losing the rigid boundaries of constraints.

[0004] Against this backdrop, how to filter out a hard constraint in lesson plans—that is, the conditions that must be met, such as time limits and the bottom line of knowledge completeness—and combine them with multi-objective optimization, that is, to balance and optimize the objectives such as the rationality of time allocation and the sufficiency of knowledge coverage in the set of feasible solutions that satisfy the hard constraints, has become an urgent problem to be solved in the field of lesson plan optimization technology. Summary of the Invention

[0005] The purpose of this invention is to provide a text reconstruction method and system with hard constraint filtering and multi-objective optimization to solve the above-mentioned problems existing in the prior art.

[0006] In a first aspect, embodiments of the present invention provide a text reconstruction method for hard-constraint filtering and multi-objective optimization, including:

[0007] Multiple lesson plan texts to be judged are obtained; the lesson plan texts to be judged represent different alternative lesson plan texts for teaching.

[0008] Based on the lesson plan text to be judged, hard constraint filtering is performed based on preset class hour limit constraints and knowledge point coverage constraints to remove lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts; the constrained lesson plan texts represent the lesson plan texts to be judged after hard constraints are applied.

[0009] Based on the multiple constrained lesson plan texts, with the goal of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, a multi-objective ranking and discrimination is performed to obtain a lesson plan text sequence; the lesson plan text sequence is a constrained lesson plan text sequence arranged from high to low matching degree.

[0010] Based on the sequence of lesson plan texts, the later-ranked constraint lesson plan texts are reconstructed to obtain multiple reconstructed texts; the reconstructed texts represent lesson plan texts obtained by modifying the later-ranked constraint lesson plan texts to meet the objective.

[0011] The process involves using the lesson plan texts to be judged, and applying hard constraint filtering based on preset constraints on class time limits and knowledge point coverage, to remove lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts, including:

[0012] Obtain the upper limit constraint of class hours and the set of knowledge point constraints; the upper limit constraint of class hours represents the maximum teaching time allowed for a single teaching session; the set of knowledge point constraints includes multiple knowledge points that are required to be covered under the teaching topic;

[0013] Based on the text of the lesson plan to be judged, the content of the lesson plan is detected to obtain multiple knowledge points and word count of the lesson plan; the knowledge points are the knowledge points identified from the text to be judged, and the word count of the lesson plan is the total number of characters in the text of the lesson plan to be judged;

[0014] Based on the knowledge points and word count of the lesson plan, the teaching duration is predicted.

[0015] Based on the predicted teaching duration and the upper limit of class hours, hard constraint filtering is performed to obtain the class hour constraint value; the class hour constraint value of 1 indicates that the lesson plan text to be judged meets the upper limit of class hours constraint, and 0 indicates that the lesson plan text to be judged does not meet the upper limit of class hours constraint.

[0016] Based on the knowledge points and knowledge point constraint set in the lesson plan, the knowledge points in the lesson plan are matched with the knowledge points in the knowledge point constraint set. The number of successfully matched knowledge points is counted, and the number of matches is normalized to obtain the knowledge point constraint value.

[0017] The lesson plan text to be judged with a class hour constraint value of 1 and a knowledge point constraint value greater than the preset knowledge point threshold is selected as the constraint lesson plan text.

[0018] Based on the lesson plan text to be judged, the content of the lesson plan is detected to obtain multiple lesson plan knowledge points and the word count of the lesson plan, including:

[0019] The lesson plan text to be judged is divided into paragraphs to obtain multiple paragraphs. The word count of all paragraphs is counted to obtain the word count of the lesson plan.

[0020] Extract multiple lesson plan keywords from the lesson plan text to be judged, and record the position of each lesson plan keyword in the text. Construct a lesson plan keyword position mapping by associating the lesson plan keywords with one or more corresponding position information.

[0021] Obtain a lesson plan knowledge graph, which contains multiple knowledge points and their hierarchical relationships. The knowledge points include the knowledge points that are required to be covered under the teaching theme.

[0022] For each lesson plan keyword, count the number of times it appears in each paragraph, and determine the number of the paragraph with the most occurrences as the keyword paragraph number corresponding to the lesson plan keyword, thus obtaining multiple keyword paragraph numbers, where each keyword paragraph number corresponds to one lesson plan keyword;

[0023] Count how many different lesson plan keywords selected each paragraph number as the most frequently occurring paragraph, and obtain the number of times each paragraph number was selected;

[0024] Sort the multiple keyword paragraph numbers in descending order of the number of times they were selected to obtain the lesson plan keyword paragraph number sequence;

[0025] Select the paragraph corresponding to the first preset number of paragraph numbers in the keyword paragraph number sequence of the lesson plan as the key paragraph;

[0026] The text content of the key paragraphs, the location mapping of the lesson plan keywords, and the lesson plan knowledge graph are input into the knowledge point recognition module, which outputs multiple lesson plan knowledge points corresponding to the lesson plan text to be judged.

[0027] The process involves inputting the text content of the key paragraphs, the location mapping of the lesson plan keywords, and the lesson plan knowledge graph into the knowledge point recognition module, and outputting multiple lesson plan knowledge points corresponding to the lesson plan text to be judged, including:

[0028] For each of the key paragraphs, the text content of that key paragraph is used as the paragraph text;

[0029] The paragraph text is input into a large language model, and tokens are obtained through word segmentation. Semantic encoding is then performed through an embedding layer and a Transformer encoding layer to obtain the paragraph feature vector.

[0030] Based on the keyword position mapping of the lesson plan, the position of the keyword in the paragraph text is determined, and the characters in the paragraph text that are not in the keyword position are replaced with preset placeholders to generate keyword text. The keyword text has the same length as the paragraph text and the keyword positions are aligned.

[0031] The keyword text is input into a recurrent neural network, and the character sequence in the keyword text is processed position by position. The hidden state of the last time step is taken as the keyword feature vector.

[0032] The paragraph feature vector and the keyword feature vector are added element by element to obtain a superimposed feature vector, wherein the paragraph feature vector and the keyword feature vector have the same dimension;

[0033] The superimposed feature vector is input into a feedforward neural network and a Softmax classifier, and the probability distribution of the paragraph text belonging to each candidate knowledge point is output. The knowledge point category with the highest probability is selected as the teaching plan knowledge point corresponding to the paragraph.

[0034] By summarizing the lesson plan knowledge points corresponding to each of the key paragraphs, multiple lesson plan knowledge points corresponding to the lesson plan text to be judged are obtained.

[0035] The process of predicting teaching duration based on the knowledge points and word count of the lesson plan, and obtaining the predicted teaching duration, includes:

[0036] Based on the lesson plan knowledge graph, determine the level i of each lesson plan keyword in the hierarchical relationship, and the maximum level n of the lesson plan knowledge graph. Calculate the keyword score s of the lesson plan keyword according to the formula s=n-i+1, where s is the keyword score of the lesson plan keyword, i is the level number of the lesson plan keyword in the knowledge graph, and n is the maximum level number in the knowledge graph, thus obtaining the keyword score corresponding to each lesson plan keyword.

[0037] For each paragraph, the keyword scores corresponding to all the lesson plan keywords in that paragraph are added together to obtain the paragraph keyword score.

[0038] The paragraph keyword score and the word count of the paragraph are used as two-dimensional input features, which are then fed into a feedforward neural network. The output is the predicted duration of the paragraph, which is used as the paragraph prediction duration.

[0039] Sum the predicted durations of all key paragraphs, and then sum the predicted durations of each paragraph to obtain the predicted teaching duration of the lesson plan text to be judged.

[0040] The level i is numbered progressively from basic to advanced according to the knowledge points, so that the more basic the level in s=n-i+1, the higher the score of the keyword.

[0041] The lesson plan text to be judged is divided into paragraphs to obtain multiple paragraphs. The word count of all paragraphs is then summed to obtain the word count of the lesson plan, including:

[0042] Based on the lesson plan text to be judged, divide it into paragraphs according to line breaks or paragraph marks to obtain multiple paragraphs. Count the number of characters in each paragraph as the word count of that paragraph. Sum the word counts of all paragraphs to get the word count of the lesson plan.

[0043] Obtain multiple preset lesson plan keywords, wherein the lesson plan keywords are a list of professional terms related to the teaching topic;

[0044] Traverse the text of the lesson plan to be judged, detect the character position of each lesson plan keyword in the text, obtain multiple lesson plan keyword positions, and construct the lesson plan keyword position mapping by associating each lesson plan keyword with one or more corresponding position information.

[0045] Based on the multiple constrained lesson plan texts, and with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, a multi-objective ranking and discrimination is performed to obtain a sequence of lesson plan texts, including:

[0046] Obtain the class duration, which is the maximum allowed teaching time for a single lesson (preset).

[0047] For each constrained lesson plan text, calculate the absolute value of the difference between the predicted teaching duration of the constrained lesson plan text and the actual class duration, and use this as the duration difference of the constrained lesson plan text.

[0048] Count the number of knowledge points identified in each constraint lesson plan text, divide the number by the total number of knowledge points in the preset knowledge point constraint set, and obtain the normalized knowledge point value, which takes the range of [0,1].

[0049] A preset duration threshold is provided.

[0050] If the duration difference is greater than the duration threshold, the teaching score of the constrained lesson plan text is calculated. The teaching score = first weight × (1 / duration difference) + second weight × knowledge point value, where the first weight and the second weight are preset positive numbers. The corresponding constrained lesson plan texts are arranged in descending order of teaching score to obtain the first sequence.

[0051] If the duration difference is less than or equal to the duration threshold, the corresponding constraint lesson plan texts are arranged sequentially at the end of the first sequence in ascending order of duration difference to obtain a lesson plan text sequence.

[0052] Based on the lesson plan text sequence, the later-ordered constraint lesson plan texts are reconstructed to obtain multiple reconstructed texts, including:

[0053] The first constrained lesson plan text in the lesson plan text sequence is used as the recommended lesson plan output, and the text of the recommended lesson plan is not reconstructed.

[0054] For each constrained lesson plan text in the sequence of lesson plan texts after the first one, obtain the duration difference corresponding to that constrained lesson plan text:

[0055] If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is greater than the class duration, then the suggested deletion content and the suggested deletion duration are marked in the corresponding position of the original lesson plan text in the form of a side note. The suggested deletion duration is the duration difference, and the reconstructed text corresponding to the constrained lesson plan text is obtained.

[0056] If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is less than the class duration, then the suggested supplementary teaching content and the suggested increase in duration are marked in the form of a side note at the end of the original lesson plan text or at the corresponding knowledge point position. The suggested increase in duration is the duration difference, and the reconstructed text corresponding to the constrained lesson plan text is obtained.

[0057] If the duration difference corresponding to the constrained lesson plan text is less than or equal to the duration threshold, then the suggested supplementary teaching content related to the uncovered lesson plan knowledge points is marked in the original lesson plan text as a side note, thus obtaining the reconstructed text corresponding to the constrained lesson plan text.

[0058] This invention also provides a text reconstruction system for hard-constraint filtering and multi-objective optimization, comprising:

[0059] The acquisition module is used to acquire multiple lesson plan texts to be judged; the lesson plan texts to be judged represent different alternative lesson plan texts for teaching.

[0060] The constraint module is used to perform hard constraint filtering based on preset class hour limit constraints and knowledge point coverage constraints on the lesson plan text to be judged, and to remove the lesson plan text to be judged that does not meet the constraint conditions, so as to obtain multiple constrained lesson plan texts; the constrained lesson plan texts represent the lesson plan text to be judged after hard constraints are applied.

[0061] The target discrimination module is used to perform multi-target ranking discrimination based on the multiple constrained lesson plan texts, with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, to obtain a lesson plan text sequence; the lesson plan text sequence is a constrained lesson plan text sequence arranged from high to low matching degree;

[0062] The reconstruction module is used to reconstruct the constraint lesson plan texts that are ranked lower in the sequence of lesson plan texts, thereby obtaining multiple reconstructed texts. The reconstructed texts represent lesson plan texts obtained by modifying the constraint lesson plan texts that are ranked lower in the sequence to meet the objective.

[0063] Compared with the prior art, the embodiments of the present invention achieve the following beneficial effects:

[0064] This invention also provides a text reconstruction method and system for hard constraint filtering and multi-objective optimization.

[0065] In this invention, by detecting keywords in lesson plans, a large language model is used to understand the intent of the lesson plan and obtain its knowledge points. Based on the number of keywords and the corresponding knowledge graph, scores are calculated hierarchically. Knowledge points are predicted using the keywords. The predicted teaching duration is obtained by combining the number of words in the lesson plan and the number of knowledge points, thereby constraining the judgment and the sorting and reconstruction of the lesson plan text.

[0066] In summary, when constructing hard constraints that must be strictly satisfied, these constraints limit the feasible solution space to a potentially narrow and discontinuous region. By employing a multi-objective optimization method to weigh objectives while ensuring solution feasibility, and after obtaining the recommended constraint lesson plan text, the remaining constraint lesson plan texts are annotated, thus enabling text reconstruction. This achieves the technical effect of improving objective values ​​without sacrificing constraint satisfaction. Attached Figure Description

[0067] Figure 1 This is a flowchart of a text reconstruction method based on hard constraint filtering and multi-objective selection provided in an embodiment of the present invention.

[0068] Figure 2 This is a schematic diagram illustrating the method for obtaining teaching material knowledge points of a text reconstruction method based on hard constraint filtering and multi-objective optimization provided in an embodiment of the present invention.

[0069] Figure 3 This is a schematic diagram of the method for obtaining paragraph prediction duration in the flowchart of a text reconstruction method for hard constraint filtering and multi-objective optimization provided in an embodiment of the present invention.

[0070] Figure 4 This is a block structure diagram of an electronic device provided in an embodiment of the present invention.

[0071] Icons: 400 - Bus; 401 - Receiver; 402 - Processor; 403 - Transmitter; 404 - Memory; 405 - Bus Interface. Detailed Implementation

[0072] The present invention will now be described in detail with reference to the accompanying drawings.

[0073] Example 1

[0074] like Figure 1 As shown, this embodiment of the invention provides a text reconstruction method based on hard constraint filtering and multi-objective optimization. The method includes:

[0075] S101: Obtain multiple lesson plan texts to be judged. The lesson plan texts to be judged represent different alternative lesson plan texts for teaching.

[0076] S102: Based on the lesson plan texts to be judged, perform hard constraint filtering based on preset constraints on the upper limit of class hours and the coverage of knowledge points, and remove the lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts. The constrained lesson plan texts represent the lesson plan texts to be judged after the hard constraints have been applied.

[0077] Specifically, step S102 includes the following steps:

[0078] (1) Obtain the set of class hour upper limit constraints and knowledge point constraints.

[0079] The maximum class time constraint represents the maximum allowed teaching time for a single lesson (e.g., a 40-minute lesson). The knowledge point constraint set contains multiple knowledge points that are required to be covered under this teaching topic.

[0080] (2) Test the content of the lesson plan to obtain multiple lesson plan knowledge points and word count.

[0081] This step specifically includes: dividing the lesson plan text to be judged into paragraphs, resulting in multiple paragraphs; and summing the word counts of all paragraphs to obtain the total word count of the lesson plan.

[0082] Extract multiple lesson plan keywords (such as "quadratic equation in one variable" and "quadratic equation in two variables" and other preset professional terms) from the lesson plan text to be judged, and record the position of each lesson plan keyword in the text. Construct a lesson plan keyword position mapping by associating the lesson plan keyword with one or more corresponding position information.

[0083] Obtain the lesson plan knowledge graph, which contains multiple knowledge points and their hierarchical relationships (e.g., a quadratic equation in one variable corresponds to one knowledge point, and a quadratic equation in two variables corresponds to one knowledge point. Quadratic equations in one variable and quadratic equations in two variables both belong to quadratic equations, and their hierarchical levels are the same. A quadratic equation is the level of a quadratic equation in one variable or a quadratic equation in two variables minus one).

[0084] For each lesson plan keyword, count the number of times it appears in each paragraph, and determine the paragraph number corresponding to the keyword as the paragraph number of the paragraph with the most occurrences.

[0085] Count how many different lesson plan keywords selected each paragraph number as the most frequently occurring paragraph, obtaining the selection count for each paragraph number. Sort the paragraphs by selection count in descending order to obtain the lesson plan keyword paragraph number sequence.

[0086] Select the paragraphs whose paragraph numbers appear at the top of a preset number of positions (e.g., 3) as key paragraphs.

[0087] Input the text content of key paragraphs, the location mapping of keywords in the lesson plan, and the lesson plan knowledge graph into the knowledge point recognition module, and output multiple lesson plan knowledge points corresponding to the lesson plan text to be judged.

[0088] The internal processing flow of the knowledge point identification module is as follows: For each key paragraph, the text content of that key paragraph is taken as the paragraph text. The paragraph text is input into a Large Language Model (LLM) (e.g., BERT, GPT, etc.), and tokenized by a tokenizer to obtain a token sequence. Semantic encoding is then performed through an embedding layer and a Transformer encoding layer to obtain a paragraph feature vector. Based on the keyword position mapping, the position of the keywords in the paragraph text is determined. Characters in non-keyword positions in the paragraph text are replaced with spaces as placeholders to generate keyword text (the keyword text has the same length as the paragraph text and the keywords are aligned). The keyword text is input into a Recurrent Neural Network (RNN) or a Bidirectional Long Short-Term Memory Network (BiLSTM), and the character sequence is processed position by position. The hidden state at the last time step is taken as the keyword feature vector. The paragraph feature vector and the keyword feature vector are added element-wise (with the same dimension) to obtain a superimposed feature vector. The superimposed feature vector is input into a Feedforward Neural Network (FCNN) and a Softmax classifier, which outputs the probability distribution of the paragraph text belonging to each candidate knowledge point. The knowledge point category with the highest probability is selected as the corresponding knowledge point in the paragraph. By summarizing the lesson plan knowledge points corresponding to each of the key paragraphs, multiple lesson plan knowledge points corresponding to the lesson plan text to be judged are obtained.

[0089] In this example, the teaching plan keywords are quadratic equation in one variable and quadratic equation in two variables, and the corresponding teaching plan knowledge points are multivariable equations.

[0090] Using the methods described above, a Large Language Model (LLM) is employed to extract information from paragraphs, enabling the detection of paragraph meaning and related knowledge points. A feature extraction network is used to extract the features of lesson plan keywords while preserving their positions. Knowledge points in the lesson plan are then identified based on hierarchical relationships and the state of the keywords within the paragraph.

[0091] (3) Predict the teaching duration.

[0092] This step specifically includes:

[0093] Based on the lesson plan knowledge graph, the level i of each lesson plan keyword in the hierarchical relationship is determined, as well as the maximum level n of the lesson plan knowledge graph, according to the formula. Calculate the keyword score s of the keywords in the lesson plan (where level i is numbered in ascending order from basic to advanced knowledge points, so that the more basic the level, the higher the keyword score).

[0094] The diagram illustrating the methods for acquiring knowledge points from lesson plans is shown below. Figure 2 As shown:

[0095] For each paragraph, the keyword scores corresponding to all the lesson plan keywords in that paragraph are added together to obtain the paragraph keyword score.

[0096] The paragraph keyword score and the number of words in the paragraph are used as two-dimensional input features and fed into a feedforward neural network (FCNN). The output is the predicted duration of the paragraph, which is used as the paragraph prediction duration.

[0097] The method for obtaining the predicted duration of a paragraph is as follows: Figure 3 As shown.

[0098] Sum the predicted durations of all key paragraphs, and then sum the predicted durations of each paragraph to obtain the predicted teaching duration of the lesson plan text to be judged.

[0099] Using the above method, positive integer keyword scores can be obtained, with higher scores for smaller keyword levels. The prediction duration of a paragraph is then predicted by combining the frequency of keywords in the lesson plan with the difficulty of their level representation in the knowledge graph.

[0100] (4) Hard constraint filtering.

[0101] Based on the predicted teaching duration and the upper limit of class hours, hard constraint filtering is performed: if the predicted teaching duration is less than or equal to the upper limit of class hours, the class hour constraint value is recorded as 1 (indicating satisfaction), otherwise it is recorded as 0 (indicating non-satisfaction).

[0102] Based on the knowledge points in the lesson plan and the set of knowledge point constraints, the knowledge points in the lesson plan are matched with the knowledge points in the set of knowledge point constraints. The number of successfully matched knowledge points is counted. The number of matches is divided by the total number of knowledge points in the set of knowledge point constraints to obtain the knowledge point constraint value with a value range of [0,1].

[0103] Select lesson plan texts with a class hour constraint value of 1 and a knowledge point constraint value greater than the preset knowledge point value (e.g., 0.9) as constrained lesson plan texts.

[0104] S103: Based on multiple constrained lesson plan texts, with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, a multi-objective ranking and discrimination is performed to obtain a sequence of lesson plan texts. The sequence of lesson plan texts is a sequence of constrained lesson plan texts arranged from high to low matching degree.

[0105] Specifically, it includes:

[0106] Obtain the duration of the class (which is the same parameter as the upper limit constraint of the class in step (1), representing the maximum teaching time allowed for a single teaching session).

[0107] For each constrained lesson plan text, calculate the absolute value of the difference between the predicted teaching duration and the actual class duration of that constrained lesson plan text, and use this as the duration difference of that constrained lesson plan text.

[0108] The larger the time difference, the lower the degree of match between the time of class and the time of get out of class end.

[0109] The number of knowledge points identified in each constraint lesson plan text is counted. This number is then divided by the total number of knowledge points in the preset knowledge point constraint set to obtain the normalized knowledge point value, which ranges from [0,1].

[0110] Set a preset duration threshold (e.g., 5 minutes).

[0111] If the duration difference is greater than the duration threshold, the teaching score of the constrained lesson plan text is calculated as follows: Teaching score = First weight × (1 / duration difference) + Second weight × knowledge point value (where the first and second weights are preset positive numbers, such as both being 5). The corresponding constrained lesson plan texts are arranged in descending order of teaching score to obtain the first sequence.

[0112] If the duration difference is less than or equal to the duration threshold, the corresponding constraint lesson plan texts are arranged sequentially after the end of the first sequence according to the duration difference from smallest to largest, thus obtaining the lesson plan text sequence.

[0113] In this embodiment, the duration threshold is 5, which represents 5 minutes.

[0114] In this embodiment, the weight is 5. The inverse of the duration difference is multiplied by the weight and then added to the knowledge point value to obtain the first teaching score.

[0115] Using the above method, the lesson plan text is selected based on network prediction, thereby constraining the selection of the best objective and obtaining a sequence of lesson plan texts.

[0116] S104: Based on the lesson plan text sequence, reconstruct the later-ordered constraint lesson plan texts to obtain multiple reconstructed texts. Each reconstructed text represents a lesson plan text obtained by modifying the later-ordered constraint lesson plan texts to meet the objective.

[0117] In this context, each constraint lesson plan text following the first one in the lesson plan text sequence is considered a constraint lesson plan text that is ranked later.

[0118] Specifically, it includes:

[0119] The first constrained lesson plan text in the lesson plan text sequence is output as the recommended lesson plan, and the text of the recommended lesson plan is not reconstructed.

[0120] For each constraint lesson plan text in the lesson plan text sequence, excluding the first constraint lesson plan text, obtain the duration difference corresponding to that constraint lesson plan text:

[0121] If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is greater than the class duration, then the suggested deletion content and the suggested deletion duration (the suggested deletion duration is the duration difference) are marked in the corresponding position of the original lesson plan text in the form of a side note, thus obtaining the reconstructed text corresponding to the constrained lesson plan text.

[0122] If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is less than the class duration, then the suggested supplementary teaching content and the suggested increase in duration (the suggested increase in duration is the duration difference) are marked in the form of a side note at the end of the original lesson plan text or at the corresponding knowledge point position, thus obtaining the reconstructed text corresponding to the constrained lesson plan text.

[0123] If the duration difference corresponding to the constrained lesson plan text is less than or equal to the duration threshold, then the suggested supplementary teaching content related to the uncovered lesson plan knowledge points is marked in the original lesson plan text as a side note, thus obtaining the reconstructed text corresponding to the constrained lesson plan text.

[0124] Using the above methods, the modifications are finally output as side notes or reversible patches, simultaneously generating the modification location and intention. This avoids a single weighted total score masking inviolable teaching requirements. Inoperable branches are first filtered out using class hour limits and knowledge point load limits, then sorted or selected using constrained multi-objective optimization strategies.

[0125] Example 2

[0126] Based on the above-described text reconstruction method combining hard constraint filtering and multi-objective selection, this invention also provides a text reconstruction system combining hard constraint filtering and multi-objective selection, the system comprising:

[0127] The acquisition module is used to acquire multiple lesson plan texts to be judged. These lesson plan texts represent different alternative lesson plan texts for teaching purposes.

[0128] The constraint module is used to perform hard constraint filtering on the lesson plan texts to be judged, based on preset constraints on the upper limit of class hours and the coverage of knowledge points. It removes lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts. The constrained lesson plan texts represent the lesson plan texts to be judged after applying the hard constraints.

[0129] The objective discrimination module is used to perform multi-objective ranking discrimination based on multiple constrained lesson plan texts, with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, to obtain a sequence of lesson plan texts. The sequence of lesson plan texts is a sequence of constrained lesson plan texts arranged from high to low matching degree.

[0130] The reconstruction module is used to reconstruct the lesson plan texts that are later in the order, based on the sequence of lesson plan texts, resulting in multiple reconstructed texts. Each reconstructed text represents a lesson plan text obtained by modifying the later-ordered constraint lesson plan texts to meet the target objective.

[0131] Regarding the systems and apparatus in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0132] This invention also provides an electronic device, such as... Figure 4 As shown, it includes a memory 404, a processor 402, and a computer program stored in the memory 404 and capable of running on the processor 402. When the processor 402 executes the program, it implements the steps of the hard constraint filtering and multi-objective optimization text reconstruction described above.

[0133] Among them, Figure 4 In this application, a bus architecture (represented by bus 400) is used. Bus 400 may include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 402 and memory represented by memory 404. Bus 400 may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further here. Bus interface 405 provides an interface between bus 400 and receiver 401 and transmitter 403. Receiver 401 and transmitter 403 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 404 can be used to store data used by processor 402 during operation.

[0134] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0135] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0136] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the apparatus according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

Claims

1. A method of text reconstruction with hard constraints filtering and multi-objective optimization, characterized in that, include: Obtain multiple lesson plan texts to be judged; The lesson plan texts to be judged represent different alternative lesson plan texts for teaching; Based on the lesson plan text to be judged, hard constraint filtering is performed based on preset class hour limit constraints and knowledge point coverage constraints to remove lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts; the constrained lesson plan texts represent the lesson plan texts to be judged after hard constraints are applied. Based on the multiple constrained lesson plan texts, with the goal of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, a multi-objective ranking and discrimination is performed to obtain a lesson plan text sequence; the lesson plan text sequence is a constrained lesson plan text sequence arranged from high to low matching degree. Based on the sequence of lesson plan texts, the later-ranked constraint lesson plan texts are reconstructed to obtain multiple reconstructed texts; the reconstructed texts represent lesson plan texts obtained by modifying the later-ranked constraint lesson plan texts to meet the objective.

2. The method of claim 1, wherein the hard constraints are applied to the text reconstruction process. The process involves using the lesson plan texts to be judged, and applying hard constraint filtering based on preset constraints on class time limits and knowledge point coverage, to remove lesson plan texts that do not meet the constraints, resulting in multiple constrained lesson plan texts, including: Obtain the upper limit constraint of class hours and the set of knowledge point constraints; the upper limit constraint of class hours represents the maximum teaching time allowed for a single teaching session; the set of knowledge point constraints includes multiple knowledge points that are required to be covered under the teaching topic; Based on the text of the lesson plan to be judged, the content of the lesson plan is detected to obtain multiple knowledge points and word count of the lesson plan; the knowledge points are the knowledge points identified from the text to be judged, and the word count of the lesson plan is the total number of characters in the text of the lesson plan to be judged; Based on the knowledge points and word count of the lesson plan, the teaching duration is predicted. Based on the predicted teaching duration and the upper limit of class hours, hard constraint filtering is performed to obtain the class hour constraint value; the class hour constraint value of 1 indicates that the lesson plan text to be judged meets the upper limit of class hours constraint, and 0 indicates that the lesson plan text to be judged does not meet the upper limit of class hours constraint. Based on the knowledge points and knowledge point constraint set in the lesson plan, the knowledge points in the lesson plan are matched with the knowledge points in the knowledge point constraint set. The number of successfully matched knowledge points is counted, and the number of matches is normalized to obtain the knowledge point constraint value. The lesson plan text to be judged with a class hour constraint value of 1 and a knowledge point constraint value greater than the preset knowledge point threshold is selected as the constraint lesson plan text.

3. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 2, characterized in that, Based on the lesson plan text to be judged, the content of the lesson plan is detected to obtain multiple lesson plan knowledge points and the word count of the lesson plan, including: The lesson plan text to be judged is divided into paragraphs to obtain multiple paragraphs. The word count of all paragraphs is counted to obtain the word count of the lesson plan. Extract multiple lesson plan keywords from the lesson plan text to be judged, and record the position of each lesson plan keyword in the text. Construct a lesson plan keyword position mapping by associating the lesson plan keywords with one or more corresponding position information. Obtain a lesson plan knowledge graph, which contains multiple knowledge points and their hierarchical relationships. The knowledge points include the knowledge points that are required to be covered under the teaching theme. For each lesson plan keyword, count the number of times it appears in each paragraph, and determine the number of the paragraph with the most occurrences as the keyword paragraph number corresponding to the lesson plan keyword, thus obtaining multiple keyword paragraph numbers, where each keyword paragraph number corresponds to one lesson plan keyword; Count how many different lesson plan keywords selected each paragraph number as the most frequently occurring paragraph, and obtain the number of times each paragraph number was selected; Sort the multiple keyword paragraph numbers in descending order of the number of times they were selected to obtain the lesson plan keyword paragraph number sequence; Select the paragraph corresponding to the first preset number of paragraph numbers in the keyword paragraph number sequence of the lesson plan as the key paragraph; The text content of the key paragraphs, the location mapping of the lesson plan keywords, and the lesson plan knowledge graph are input into the knowledge point recognition module, which outputs multiple lesson plan knowledge points corresponding to the lesson plan text to be judged.

4. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 3, characterized in that, The process involves inputting the text content of the key paragraphs, the location mapping of the lesson plan keywords, and the lesson plan knowledge graph into the knowledge point recognition module, and outputting multiple lesson plan knowledge points corresponding to the lesson plan text to be judged, including: For each of the key paragraphs, the text content of that key paragraph is used as the paragraph text; The paragraph text is input into a large language model, and tokens are obtained through word segmentation. Semantic encoding is then performed through an embedding layer and a Transformer encoding layer to obtain the paragraph feature vector. Based on the keyword position mapping of the lesson plan, the position of the keyword in the paragraph text is determined, and the characters in the paragraph text that are not in the keyword position are replaced with preset placeholders to generate keyword text. The keyword text has the same length as the paragraph text and the keyword positions are aligned. The keyword text is input into a recurrent neural network, and the character sequence in the keyword text is processed position by position. The hidden state of the last time step is taken as the keyword feature vector. The paragraph feature vector and the keyword feature vector are added element by element to obtain a superimposed feature vector, wherein the paragraph feature vector and the keyword feature vector have the same dimension; The superimposed feature vector is input into a feedforward neural network and a Softmax classifier, and the probability distribution of the paragraph text belonging to each candidate knowledge point is output. The knowledge point category with the highest probability is selected as the teaching plan knowledge point corresponding to the paragraph. By summarizing the lesson plan knowledge points corresponding to each of the key paragraphs, multiple lesson plan knowledge points corresponding to the lesson plan text to be judged are obtained.

5. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 4, characterized in that, The process of predicting teaching duration based on the knowledge points and word count of the lesson plan, and obtaining the predicted teaching duration, includes: Based on the lesson plan knowledge graph, determine the level i of each lesson plan keyword in the hierarchical relationship, and the maximum level n of the lesson plan knowledge graph. Calculate the keyword score s of the lesson plan keyword according to the formula s=n-i+1, where s is the keyword score of the lesson plan keyword, i is the level number of the lesson plan keyword in the knowledge graph, and n is the maximum level number in the knowledge graph, thus obtaining the keyword score corresponding to each lesson plan keyword. For each paragraph, the keyword scores corresponding to all the lesson plan keywords in that paragraph are added together to obtain the paragraph keyword score. The paragraph keyword score and the word count of the paragraph are used as two-dimensional input features, which are then fed into a feedforward neural network. The output is the predicted duration of the paragraph, which is used as the paragraph prediction duration. Sum the predicted durations of all key paragraphs, and then sum the predicted durations of each paragraph to obtain the predicted teaching duration of the lesson plan text to be judged.

6. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 5, characterized in that, The level i is numbered progressively from basic to advanced according to the knowledge points, so that the more basic the level in s=n-i+1, the higher the score of the keyword.

7. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 3, characterized in that, The lesson plan text to be judged is divided into paragraphs to obtain multiple paragraphs. The word count of all paragraphs is then summed to obtain the word count of the lesson plan, including: Based on the lesson plan text to be judged, divide it into paragraphs according to line breaks or paragraph marks to obtain multiple paragraphs. Count the number of characters in each paragraph as the word count of that paragraph. Sum the word counts of all paragraphs to get the word count of the lesson plan. Obtain multiple preset lesson plan keywords, wherein the lesson plan keywords are a list of professional terms related to the teaching topic; Traverse the text of the lesson plan to be judged, detect the character position of each lesson plan keyword in the text, obtain multiple lesson plan keyword positions, and construct the lesson plan keyword position mapping by associating each lesson plan keyword with one or more corresponding position information.

8. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 5, characterized in that, Based on the multiple constrained lesson plan texts, and with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, a multi-objective ranking and discrimination is performed to obtain a sequence of lesson plan texts, including: Obtain the class duration, which is the maximum allowed teaching time for a single lesson (preset). For each constrained lesson plan text, calculate the absolute value of the difference between the predicted teaching duration of the constrained lesson plan text and the actual class duration, and use this as the duration difference of the constrained lesson plan text. Count the number of knowledge points identified in each constraint lesson plan text, divide the number by the total number of knowledge points in the preset knowledge point constraint set, and obtain the normalized knowledge point value, which takes the range of [0,1]. A preset duration threshold is provided. If the duration difference is greater than the duration threshold, the teaching score of the constrained lesson plan text is calculated. The teaching score = first weight × (1 / duration difference) + second weight × knowledge point value, where the first weight and the second weight are preset positive numbers. The corresponding constrained lesson plan texts are arranged in descending order of teaching score to obtain the first sequence. If the duration difference is less than or equal to the duration threshold, the corresponding constraint lesson plan texts are arranged sequentially at the end of the first sequence in ascending order of duration difference to obtain a lesson plan text sequence.

9. The text reconstruction method based on hard constraint filtering and multi-objective selection according to claim 8, characterized in that, Based on the lesson plan text sequence, the later-ordered constraint lesson plan texts are reconstructed to obtain multiple reconstructed texts, including: The first constrained lesson plan text in the lesson plan text sequence is used as the recommended lesson plan output, and the text of the recommended lesson plan is not reconstructed. For each constrained lesson plan text in the sequence of lesson plan texts after the first one, obtain the duration difference corresponding to that constrained lesson plan text: If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is greater than the class duration, then the suggested deletion content and the suggested deletion duration are marked in the corresponding position of the original lesson plan text in the form of a side note. The suggested deletion duration is the duration difference, and the reconstructed text corresponding to the constrained lesson plan text is obtained. If the duration difference corresponding to the constrained lesson plan text is greater than the duration threshold, and the predicted teaching duration is less than the class duration, then the suggested supplementary teaching content and the suggested increase in duration are marked in the form of a side note at the end of the original lesson plan text or at the corresponding knowledge point position. The suggested increase in duration is the duration difference, and the reconstructed text corresponding to the constrained lesson plan text is obtained. If the duration difference corresponding to the constrained lesson plan text is less than or equal to the duration threshold, then the suggested supplementary teaching content related to the uncovered lesson plan knowledge points is marked in the original lesson plan text as a side note, thus obtaining the reconstructed text corresponding to the constrained lesson plan text.

10. A text reconstruction system combining hard-constraint filtering and multi-objective optimization, characterized in that, include: The acquisition module is used to acquire multiple lesson plan texts to be judged; The lesson plan texts to be judged represent different alternative lesson plan texts for teaching; The constraint module is used to perform hard constraint filtering based on the lesson plan text to be judged, based on the preset class hour limit constraint and knowledge point coverage constraint, to remove the lesson plan text to be judged that does not meet the constraint conditions, and obtain multiple constrained lesson plan texts. The constrained lesson plan text refers to the lesson plan text to be judged after hard constraints are applied. The target discrimination module is used to perform multi-target ranking discrimination based on the multiple constrained lesson plan texts, with the objectives of predicting the difference between teaching duration and class duration and the degree of knowledge point coverage, to obtain a lesson plan text sequence; the lesson plan text sequence is a constrained lesson plan text sequence arranged from high to low matching degree; The reconstruction module is used to reconstruct the constraint lesson plan texts that are ranked lower in the sequence of lesson plan texts, thereby obtaining multiple reconstructed texts. The reconstructed texts represent lesson plan texts obtained by modifying the constraint lesson plan texts that are ranked lower in the sequence to meet the objective.