A method, device, equipment, medium and product for generating course-related test questions
By structuring the course teaching materials and extracting knowledge points, and using the pre-training model to determine the availability of test questions, the problems of low test question generation efficiency and low quality in the existing technology are solved, and efficient and accurate test question generation is achieved. .
Patent Information
- Application Number
- CN202410159367.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-02-04
AI Technical Summary
The existing course-related test question generation scheme is inefficient and the quality of the questions is not high. It is prone to problems such as inconsistent difficulty of test questions and incomplete knowledge points.
Artificial intelligence technology is used to automatically generate test questions. By structuring the course teaching materials, extracting knowledge points, using pre-training models to determine the usability of the test questions, eliminating erroneous items, and generating high-quality test questions.
It achieves the rapid and efficient generation of high-quality test questions, avoids the phenomenon of test questions exceeding the outline, incomplete coverage of knowledge points and errors, and improves the efficiency and quality of question generation.
Smart Images

Figure CN117874171B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a method, device, equipment, medium and product for generating course-related test questions. Background Art
[0002] At present, the test questions in traditional video courses are mainly set by teachers or teaching teams, and then composed into corresponding course test papers. This process is time-consuming and laborious. In addition, since manually written test questions are affected by subjective factors, there may be inconsistencies in difficulty and incomplete knowledge points.
[0003] With the continuous development of artificial intelligence technology, how to use AI (Artificial Intelligence) technology to automatically generate course-related test questions in order to improve the efficiency and quality of question setting has become a topic that technical personnel in this field urgently need to study. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, computer equipment, computer-readable storage medium and computer program product for generating course-related test questions, so as to solve the problems of low efficiency of manual question generation and low question quality due to incomplete knowledge points covered in existing course-related test question generation schemes.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect, a method for generating course-related test questions is provided, comprising:
[0007] Obtaining the course teaching materials of the target course, wherein the course teaching materials include course teaching material files and / or course audio files;
[0008] Structuring the course teaching materials to obtain a structured text of the course teaching materials;
[0009] Performing knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set;
[0010] Generating at least one relevant test question of the target course according to the course knowledge point set;
[0011] For each related test question in the at least one related test question, using a pre-trained artificial intelligence model to determine whether a corresponding test question has an unavailability error;
[0012] Relevant test questions with unusability errors in the at least one relevant test question are eliminated to obtain a final set of relevant test questions for the target course.
[0013] Based on the above invention content, a new solution is provided for automatically generating course-related test questions based on course teaching materials and performing usability self-checking, that is, firstly, the course teaching materials of the target course are structured to obtain the structured text of the course teaching materials, and then the structured text of the course teaching materials is processed for knowledge points extraction to obtain a course knowledge point set, and then at least one relevant test question of the target course is generated according to the course knowledge point set, and for each relevant test question, a pre-trained artificial intelligence model is used to determine whether the corresponding test question has an unavailability error, and finally the relevant test questions with unavailability errors are eliminated to obtain the final relevant test question set of the target course, so that matching test questions can be extracted quickly and efficiently for the target course, and it can be ensured that the test questions will not exceed the syllabus, cover incomplete knowledge points, or have test questions errors when used, thereby ensuring the high quality and usability of the test questions and facilitating practical application and promotion.
[0014] In a possible design, when the course teaching materials include a course audio file, the course teaching materials are structured to obtain a structured text of the course teaching materials, including:
[0015] Using speech recognition technology to perform speech-to-text processing on the course audio file to obtain a course audio transcription text;
[0016] Using natural language processing technology to perform grammatical analysis on the course audio transcription text to obtain grammatical information including parts of speech and sentence structure;
[0017] Identifying at least one phrase representing a key knowledge point from the grammatical information using a rule / template matching method;
[0018] Using a predefined knowledge system template / ontology, key knowledge points represented by each phrase in the at least one phrase are determined, and structured text of the course material is obtained through structured representation.
[0019] In a possible design, knowledge points are extracted from the structured text of the course material to obtain a set of course knowledge points, including:
[0020] According to the structured text of the course material, at least one first knowledge point is generated using a first pre-trained language model ChatGPT based on a Transformer structure;
[0021] Using the extractive question-answering model LangChain to perform knowledge point extraction processing on the structured text of the course textbook to obtain at least one second knowledge point;
[0022] Performing matching processing on the at least one first knowledge point and the at least one second knowledge point to obtain a knowledge point intersection;
[0023] For each knowledge point in the intersection of the knowledge points, using a second pre-trained language model RoBERTa pre-built based on natural language inference technology, to determine whether there is a logical relationship conflict between different sentences and / or different sentence groups in the corresponding knowledge point;
[0024] The knowledge points with logical conflicts in the intersection of the knowledge points are eliminated to obtain a set of course knowledge points without logical conflicts and with reasonable semantics.
[0025] In a possible design, generating at least one relevant test question of the target course according to the course knowledge point set includes:
[0026] For each course knowledge point in the course knowledge point set, a predefined question type template suitable for the corresponding knowledge point is selected using semantic matching technology, wherein the predefined question type template includes a question stem slot and an answer option slot, and the question types of the predefined question type template include multiple-choice questions, fill-in-the-blank questions, essay questions, true-or-false questions, and / or programming questions;
[0027] For each of the course knowledge points, insert the corresponding knowledge point content into the question stem slot of the corresponding predefined question type template to obtain the corresponding question stem content;
[0028] For each of the course knowledge points, a language generation model based on the GPT series language model is used to generate answer options that meet the requirements in both syntax and semantics according to the corresponding question stem content, and the answer options are inserted into the answer option slots in the corresponding predefined question template to obtain the corresponding answer content;
[0029] For each of the course knowledge points, assemble the corresponding question stem content and answer content to obtain the corresponding relevant test questions.
[0030] In a possible design, for each related test question in the at least one related test question, using a pre-trained artificial intelligence model to determine whether the corresponding test question has an unavailability error includes:
[0031] For each of the at least one related test question, using a first judgment type question classification model pre-trained based on a first artificial intelligence algorithm and used to identify whether a test question has a conceptual error, a first prediction result of whether the corresponding test question has the conceptual error is given;
[0032] For each of the related test questions, using a second judgment-type question classification model pre-trained based on a second artificial intelligence algorithm and used to identify whether a test question has a factual error, a second prediction result of whether the corresponding test question has the factual error is given;
[0033] For each of the related test questions, a third judgment-type problem classification model pre-trained based on a third artificial intelligence algorithm and used to identify whether a test question has a logical error is used to provide a third prediction result of whether the corresponding test question has the logical error;
[0034] For each of the related test questions, a fourth judgment-type question classification model pre-trained based on a fourth artificial intelligence algorithm and used to identify whether a test question has a grammatical error is used to provide a fourth prediction result of whether the corresponding test question has the grammatical error;
[0035] For each of the relevant test questions, based on the corresponding first prediction result, the second prediction result, the third prediction result and the fourth prediction result, if the corresponding test question has the conceptual error, the factual error, the logical error and / or the grammatical error, it is determined that the corresponding test question has an unavailability error; otherwise, it is determined that the corresponding test question does not have an unavailability error.
[0036] In one possible design, the method further includes:
[0037] Determine a keyword group for indicating the difficulty level of the target course according to the course title, course introduction, course difficulty level indicator and / or course syllabus text of the target course;
[0038] For each course knowledge point in the course knowledge point set, according to the keyword group and the corresponding knowledge point, a knowledge point learning difficulty level prediction model obtained by pre-training based on the fifth artificial intelligence algorithm is used to give a learning difficulty level of the corresponding knowledge point;
[0039] After obtaining the final set of relevant test questions of the target course, for each relevant test question in the final set of relevant test questions, the corresponding answer difficulty level is positively correlated with the learning difficulty level of the corresponding knowledge point, or the corresponding answer difficulty level is positively correlated with the learning difficulty level of the corresponding knowledge point and the preset answer difficulty level of the corresponding question type;
[0040] In the target test scenario, at least one test question whose question type is suitable for the target test scenario and whose answer difficulty level is suitable for the target examination group is selected from the final set of relevant test questions, and the at least one test question is pushed to the target examination group.
[0041] In a second aspect, a device for generating course-related test questions is provided, comprising a teaching material acquisition unit, a structured processing unit, a knowledge point extraction unit, a test question generation unit, a usability judgment unit, and a test question elimination unit which are sequentially connected in communication;
[0042] The teaching material acquisition unit is used to acquire the course teaching materials of the target course, wherein the course teaching materials include course teaching material files and / or course audio files;
[0043] The structured processing unit is used to perform structured processing on the course teaching materials to obtain a structured text of the course teaching materials;
[0044] The knowledge point extraction unit is used to perform knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set;
[0045] The test question generating unit is used to generate at least one relevant test question of the target course according to the course knowledge point set;
[0046] The availability judgment unit is configured to use a pre-trained artificial intelligence model to judge, for each relevant test question in the at least one relevant test question, whether the corresponding test question has an unavailability error;
[0047] The test question elimination unit is used to eliminate the relevant test questions with unusability errors in the at least one relevant test question to obtain a final set of relevant test questions for the target course.
[0048] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the course-related test question generation method as described in the first aspect or any possible design of the first aspect.
[0049] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the method for generating course-related test questions as described in the first aspect or any possible design of the first aspect is executed.
[0050] In a fifth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the method for generating course-related test questions as described in the first aspect or any possible design of the first aspect.
[0051] Beneficial effects of the above scheme:
[0052] (1) The present invention creatively provides a new solution for automatically generating course-related test questions based on course teaching materials and performing usability self-checking, namely, firstly, the course teaching materials of the target course are structured to obtain the structured text of the course teaching materials, then the structured text of the course teaching materials is processed for knowledge points extraction to obtain a course knowledge point set, and then at least one relevant test question of the target course is generated based on the course knowledge point set, and for each relevant test question, a pre-trained artificial intelligence model is used to determine whether the corresponding test question has an unavailability error, and finally the relevant test questions with unavailability errors are eliminated to obtain the final relevant test question set of the target course. In this way, matching test questions can be extracted for the target course quickly and efficiently, and it is ensured that the test questions will not exceed the syllabus, cover incomplete knowledge points, or have test errors when used, thereby ensuring the high quality and usability of the test questions and facilitating practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A flowchart of a method for generating course-related test questions provided in an embodiment of the present application.
[0055] Figure 2 This is an example diagram of the predefined relationship between different course knowledge points and different question types provided in an embodiment of the present application.
[0056] Figure 3 This is an example diagram of the predefined relationship between different test scenarios and different question types provided in an embodiment of the present application.
[0057] Figure 4 A schematic diagram of the structure of a device for generating course-related test questions provided in an embodiment of the present application.
[0058] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0060] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.
[0061] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.
[0062] Example:
[0063] like Figure 1 As shown, the course-related test question generation method provided in the first aspect of this embodiment can be, but is not limited to, executed by a computer device with certain computing resources, such as a platform server, a personal computer (PC, which refers to a multi-purpose computer with a size, price and performance suitable for personal use; desktops, laptops, small laptops, tablets and ultrabooks are all personal computers), smart phones, personal digital assistants (PDA) or wearable devices. Figure 1 As shown, the method for generating course-related test questions may include, but is not limited to, the following steps S1 to S6.
[0064] S1. Obtain the course teaching materials of the target course, wherein the course teaching materials include but are not limited to course teaching material files and / or course audio files, etc.
[0065] In step S1, the target course may be, but is not limited to, a video course, an audio course, or a course in other forms. In addition, the course teaching material file may be, but is not limited to, a text file, a video file, and / or a PPT (PowerPoint, presentation software) file.
[0066] S2. Structuring the course teaching materials to obtain a structured text of the course teaching materials.
[0067] In the step S2, specifically, when the course teaching materials include a course audio file, the course teaching materials are structured to obtain a structured text of the course teaching materials, including but not limited to the following steps S21 to S24.
[0068] S21. Use speech recognition technology to perform speech-to-text processing on the course audio file to obtain a course audio transcription text.
[0069] In the step S21, the speech recognition technology may be, but is not limited to, the open source speech recognition system Whisper.
[0070] S22. Use natural language processing technology to perform grammatical analysis on the course audio transcription text to obtain grammatical information including parts of speech and sentence structure.
[0071] In step S22, the natural language processing technology may be, but is not limited to, the existing Tokenize technology (ie, word segmentation technology) and / or Part-of-speech tagging technology (ie, part-of-speech tagging technology).
[0072] S23. Use rule / template matching to identify at least one phrase representing a key knowledge point from the grammatical information.
[0073] In the step S23, the at least one phrase may be, but is not limited to, a noun phrase and / or a verb phrase.
[0074] S24. Using a predefined knowledge system template / ontology, determine the key knowledge points represented by each phrase in the at least one phrase, and obtain a structured text of the course material through structured representation.
[0075] In step S2, if the course teaching materials include a course teaching material file, it is also necessary to first convert the course teaching material file into a course teaching material text using existing technology (for example, when the course teaching material file is a video file, it is necessary to use existing image-text recognition to text technology to extract the course teaching material text from the video file), and then obtain the structured text of the course teaching material based on the aforementioned steps S22 to S24.
[0076] S3. Perform knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set.
[0077] In step S3, in order to achieve the purpose of using AI technology to complete knowledge point extraction and self-check whether there are self-consistency problems in knowledge points, preferably, the structured text of the course textbook is processed for knowledge point extraction to obtain a set of course knowledge points, including but not limited to the following steps S31 to S35.
[0078] S31. Based on the structured text of the course material, generate at least one first knowledge point using a first pre-trained language model ChatGPT based on a Transformer structure.
[0079] In the step S31, the first pre-trained language model ChatGPT (full name: Chat Generative Pre-trained Transformer, a chat robot program developed by OpenAI, released on November 30, 2022, is a natural language processing tool driven by artificial intelligence technology. It can generate answers based on the patterns and statistical laws seen in the pre-training stage, and can also interact according to the context of the chat, truly chat and communicate like humans, and even complete tasks such as writing emails, video scripts, copywriting, translation, code or writing papers) can be but not limited to the specific use of the GPT-4 model.
[0080] S32. Use the extractive question-answering model LangChain to extract knowledge points from the structured text of the course textbook to obtain at least one second knowledge point.
[0081] In step S32, the extractive question-answering model LangChain is a framework for developing applications based on language models, which can implement the following applications: data awareness, i.e. connecting the language model to other data sources; autonomy, i.e. allowing the language model to interact with its environment.
[0082] S33. Match the at least one first knowledge point with the at least one second knowledge point to obtain a knowledge point intersection.
[0083] S34. For each knowledge point in the intersection of the knowledge points, use the second pre-trained language model RoBERTa pre-constructed based on natural language reasoning technology to determine whether there is a logical relationship conflict between different sentences and / or different sentence groups in the corresponding knowledge point.
[0084] In the step S34, the second pre-trained language model RoBERTa is an optimized version of the BERT (Bidirectional Encoder Representations from Transformers, a language representation model) model, and its main advantage is that it uses online dynamic masking technology during pre-training, instead of completing masking operations in offline mode like BERT, so no additional storage space is required, and mask replacement is performed in real time during model training, which improves efficiency and accuracy. Therefore, based on natural language inference technology and a certain amount of positive and negative samples of knowledge points, conventional training can be used to obtain the second pre-trained language model RoBERTa that can effectively identify the semantically incoherent parts in the knowledge points, so as to determine whether there is a logical relationship conflict between different sentences and / or different sentence groups in the knowledge point.
[0085] S35. Eliminate knowledge points with logical conflicts in the intersection of the knowledge points to obtain a set of course knowledge points without logical conflicts and with reasonable semantics.
[0086] S4. Generate at least one relevant test question of the target course according to the set of course knowledge points.
[0087] In step S4, in order to achieve the purpose of generating at least one related test question of different question types using AI technology, preferably, at least one related test question of the target course is generated based on the course knowledge point set, including but not limited to the following steps S41 to S44.
[0088] S41. For each course knowledge point in the course knowledge point set, semantic matching technology is used to select a predefined question type template suitable for the corresponding knowledge point, wherein the predefined question type template includes but is not limited to a question stem slot and an answer option slot, etc., and the question types of the predefined question type template cover but are not limited to multiple-choice questions, fill-in-the-blank questions, essay questions, true-or-false questions and / or programming questions, etc.
[0089] In step S41, taking programming class as an example, the predefined relationship between different course knowledge points and different question types can be as follows: Figure 2 As shown, for a certain course knowledge point of "interface", the predefined single-choice question template, true-or-false question template and programming question template can be selected as the predefined question type templates suitable for the corresponding knowledge point.
[0090] S42. For each of the course knowledge points, the corresponding knowledge point content is inserted into the question stem slot of the corresponding predefined question type template to obtain the corresponding question stem content.
[0091] S43. For each of the course knowledge points, use a language generation model based on the GPT series language model to generate answer options that meet the requirements in both grammar and semantics according to the corresponding question content, and insert the answer options into the answer option slots in the corresponding predefined question template to obtain the corresponding answer content.
[0092] In step S43, the GPT series language model may be, but is not limited to, a GPT-4 model.
[0093] S44. For each of the course knowledge points, assemble the corresponding question stem content and answer content to obtain the corresponding relevant test questions.
[0094] In step S44, taking programming class as an example, the obtained related test questions can be exemplified as follows:
[0095] {"Question":"What are the useful classes provided by Java? (List 3)",
[0096] "Answer": "String, Math, Date",
[0097] "Analysis": "According to the content of the article, the practical classes provided by Java include String, Math, Date, etc."},
[0098] {"question":"What is the Date type in Java?",
[0099] "Answer": "java.uti.Date",
[0100] "Analysis": "According to the content in the article, the date type in Java is java.ut\il.Date"},
[0101] {"Question":"What are the common applications? (List 2)",
[0102] "Answer": "Convert time to a Long integer, or convert time to a string in a certain format".
[0103] "Analysis": "According to the content of the article, common applications include converting time to Long integer, converting time to a string in a certain format, etc."
[0104] {"question":"How many milliseconds have passed since θ on January 1, 1978?",
[0105] ″Answer″:″e″,
[0106] "Analysis": "According to the content of the article, the number of milliseconds since Θ on January 1, 1978 is Θ"},
[0107] {"Question":"How to get the milliseconds of the current time?",
[0108] "Answer": "System.cUrrentTimeMillis()",
[0109] "Analysis": "According to the content in the article, you can use System.currentTimeMillis() to get the milliseconds of the current time."}
[0110] {"Question":"How do I create a current date?",
[0111] ″Answer″: ″new Date()″,
[0112] "Analysis": "According to the content in the article, you can use new Date() to create a current date"}
[0113] S5. For each related test question in the at least one related test question, use a pre-trained artificial intelligence model to determine whether there is an unavailability error in the corresponding test question.
[0114] In step S5, the unavailability error specifically includes but is not limited to conceptual errors (e.g., the question itself is wrong), factual errors (e.g., the correct answer option is already reflected in the question stem), logical errors (e.g., there is no correct answer option) and / or grammatical errors (e.g., the question description is incomplete or unclear), etc. Specifically, for each related test question in the at least one related test question, a pre-trained artificial intelligence model is used to determine whether the corresponding test question has an unavailability error, including but not limited to the following steps S51 to S54.
[0115] S51. For each related test question in the at least one related test question, a first judgment-type question classification model pre-trained based on a first artificial intelligence algorithm and used to identify whether a test question has a conceptual error is used to give a first prediction result of whether the corresponding test question has the conceptual error.
[0116] In the step S51, the machine learning algorithm is a core artificial intelligence algorithm that specifically studies how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their own performance. It is the fundamental way to make computers intelligent. Specifically, the first machine learning algorithm can be implemented by, but is not limited to, machine learning algorithms such as support vector machines, K nearest neighbor methods, stochastic gradient descent methods, multilayer perceptrons, decision trees, back propagation neural networks, or radial basis function networks, and can be pre-trained to obtain the first judgment-type problem classification model through conventional calibration verification modeling methods (the specific process includes a calibration process and a verification process of the model, that is, first comparing the model simulation results with the measured data, and then adjusting the model parameters according to the comparison results to make the simulation results consistent with the actual process).
[0117] S52. For each of the related test questions, a second judgment-type question classification model pre-trained based on a second artificial intelligence algorithm and used to identify whether a test question has factual errors is used to provide a second prediction result of whether the corresponding test question contains the factual errors.
[0118] In step S52, the second machine learning algorithm can also be implemented by, but is not limited to, machine learning algorithms such as support vector machine, K nearest neighbor method, stochastic gradient descent method, multilayer perceptron, decision tree, back propagation neural network or radial basis function network, and can be pre-trained through conventional calibration and verification modeling methods to obtain the second judgment-type problem classification model.
[0119] S53. For each of the related test questions, a third judgment-type problem classification model pre-trained based on a third artificial intelligence algorithm and used to identify whether a test question has a logical error is used to provide a third prediction result of whether the corresponding test question has the logical error.
[0120] In step S53, the third machine learning algorithm can also be implemented by, but is not limited to, machine learning algorithms such as support vector machine, K nearest neighbor method, stochastic gradient descent method, multilayer perceptron, decision tree, back propagation neural network or radial basis function network, and can be pre-trained through conventional calibration and verification modeling methods to obtain the third judgment-type problem classification model.
[0121] S54. For each of the related test questions, a fourth judgment-type question classification model pre-trained based on a fourth artificial intelligence algorithm and used to identify whether a test question has a grammatical error is used to provide a fourth prediction result of whether the corresponding test question has the grammatical error.
[0122] In step S54, the fourth machine learning algorithm may also be implemented by, but is not limited to, machine learning algorithms such as support vector machine, K nearest neighbor method, stochastic gradient descent method, multilayer perceptron, decision tree, back propagation neural network or radial basis function network, and may be pre-trained through conventional calibration and verification modeling to obtain the fourth judgment-type problem classification model.
[0123] S55. For each of the relevant test questions, according to the corresponding first prediction result, the second prediction result, the third prediction result and the fourth prediction result, if the corresponding test question has the conceptual error, the factual error, the logical error and / or the grammatical error, it is determined that the corresponding test question has an unavailability error; otherwise, it is determined that the corresponding test question does not have an unavailability error.
[0124] S6. Eliminate the relevant test questions with unusability errors in the at least one relevant test question to obtain a final set of relevant test questions for the target course.
[0125] After step S5, for the related test questions with unavailability errors, AI technology can be used to regenerate or correct the corresponding test questions based on the corresponding knowledge points, and then the aforementioned step S5 can be used again for verification to ensure the correctness and completeness of each test question. In addition, in order to achieve the purpose of pushing appropriate course-related test questions to different examination groups in different test scenarios, preferably, the method also includes but is not limited to the following steps S71 to S74.
[0126] S71. Determine a keyword group for indicating the difficulty level of the target course based on the course title, course introduction, course difficulty indicator and / or course outline text of the target course.
[0127] In the step S71, the keyword group may be exemplified by "advanced JAVA" and / or "primary operation and maintenance" and the like.
[0128] S72. For each course knowledge point in the course knowledge point set, according to the keyword group and the corresponding knowledge point, use the knowledge point learning difficulty level prediction model obtained by pre-training based on the fifth artificial intelligence algorithm to give the learning difficulty level of the corresponding knowledge point.
[0129] In step S72, the fifth machine learning algorithm may also be implemented by, but is not limited to, a machine learning algorithm such as a support vector machine, a K nearest neighbor method, a stochastic gradient descent method, a multilayer perceptron, a decision tree, a back propagation neural network, or a radial basis function network, and the knowledge point learning difficulty level prediction model may be obtained by pre-training through a conventional calibration verification modeling method. In addition, the learning difficulty level may be exemplified as no difficulty, low difficulty, medium difficulty, and / or high difficulty.
[0130] S73. After obtaining the final set of relevant test questions of the target course, for each relevant test question in the final set of relevant test questions, the corresponding answer difficulty level is made positively correlated with the learning difficulty level of the corresponding knowledge point, or the corresponding answer difficulty level is made positively correlated with the learning difficulty level of the corresponding knowledge point and the preset answer difficulty level of the corresponding question type.
[0131] In step S73, the preset answer difficulty can also be exemplified as no difficulty, low difficulty, medium difficulty and / or high difficulty, etc. Generally, the preset answer difficulty of true or false questions, single-choice questions, multiple-choice questions, fill-in-the-blank questions and essay questions increases in sequence.
[0132] S74. In the target test scenario, select at least one test question from the final set of relevant test questions, the question type of which is suitable for the target test scenario and the difficulty level of answering which is suitable for the target examination group, and push the at least one test question to the target examination group.
[0133] In step S74, specifically, the predefined relationship between different test scenarios and different question types can be as follows: Figure 3 As shown, for example, if the target test scenario is "daily practice", judgment questions, single-choice questions and multiple-choice questions can be selected from the final set of relevant test questions to form at least one test question suitable for the target test scenario.
[0134] Therefore, based on the course-related test question generation method described in the aforementioned steps S1 to S6, a new solution is provided for automatically generating course-related test questions based on course teaching materials and performing usability self-checking, that is, firstly, the course teaching materials of the target course are structured to obtain the structured text of the course teaching materials, and then the structured text of the course teaching materials is processed for knowledge points extraction to obtain a course knowledge point set, and then at least one relevant test question of the target course is generated according to the course knowledge point set, and for each relevant test question, a pre-trained artificial intelligence model is used to determine whether the corresponding test question has an unusability error, and finally the relevant test questions with unusability errors are eliminated to obtain the final relevant test question set of the target course, so that matching test questions can be extracted quickly and efficiently for the target course, and it can be ensured that the test questions will not exceed the syllabus, cover incomplete knowledge points, or have test questions errors when used, thereby ensuring the high quality and usability of the test questions and facilitating practical application and promotion.
[0135] like Figure 4 As shown, the second aspect of this embodiment provides a virtual device for implementing the method for generating course-related test questions as described in the first aspect, comprising a teaching material acquisition unit, a structured processing unit, a knowledge point extraction unit, a test question generation unit, a usability judgment unit, and a test question elimination unit which are sequentially connected in communication;
[0136] The teaching material acquisition unit is used to acquire the course teaching materials of the target course, wherein the course teaching materials include course teaching material files and / or course audio files;
[0137] The structured processing unit is used to perform structured processing on the course teaching materials to obtain a structured text of the course teaching materials;
[0138] The knowledge point extraction unit is used to perform knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set;
[0139] The test question generating unit is used to generate at least one relevant test question of the target course according to the course knowledge point set;
[0140] The availability judgment unit is configured to use a pre-trained artificial intelligence model to judge, for each relevant test question in the at least one relevant test question, whether the corresponding test question has an unavailability error;
[0141] The test question elimination unit is used to eliminate the relevant test questions with unusability errors in the at least one relevant test question to obtain a final set of relevant test questions for the target course.
[0142] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the method for generating course-related test questions described in the first aspect, and will not be described in detail here.
[0143] like Figure 5 As shown, the third aspect of the present embodiment provides a computer device for executing the course-related test question generation method as described in the first aspect, including a memory, a processor and a transceiver connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program, and executes the course-related test question generation method as described in the first aspect. Specifically, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.
[0144] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be found in the method for generating course-related test questions described in the first aspect, and will not be described in detail here.
[0145] The fourth aspect of this embodiment provides a computer-readable storage medium storing instructions including the method for generating course-related test questions as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are run on a computer, the method for generating course-related test questions as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0146] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be found in the method for generating course-related test questions as described in the first aspect, and will not be described in detail here.
[0147] In a fifth aspect, the present embodiment provides a computer program product, including a computer program or instructions, wherein when the computer program or instructions are executed by a computer, the method for generating course-related test questions as described in the first aspect is implemented. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
[0148] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating course-related test questions, characterized in that: include: Obtaining the course teaching materials of the target course, wherein the course teaching materials include course teaching material files and / or course audio files; Structuring the course teaching materials to obtain a structured text of the course teaching materials; Performing knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set; Generate at least one relevant test question of the target course according to the course knowledge point set; For each related test question in the at least one related test question, use a pre-trained artificial intelligence model to determine whether the corresponding test question has an unavailability error, specifically including: for each related test question in the at least one related test question, use a first judgment type question classification model pre-trained based on a first artificial intelligence algorithm and used to identify whether the test question has a conceptual error, and give a first prediction result of whether the corresponding test question has the conceptual error; for each related test question, use a second judgment type question classification model pre-trained based on a second artificial intelligence algorithm and used to identify whether the test question has a factual error, and give a second prediction result of whether the corresponding test question has the factual error; for each related test question, use a second judgment type question classification model pre-trained based on a third artificial intelligence algorithm and used to identify whether the test question has a factual error A third judgment-type question classification model obtained by pre-training based on a fourth artificial intelligence algorithm and used to identify whether a test question has a logical error is used to give a third prediction result of whether the corresponding test question has the logical error; for each of the related test questions, a fourth judgment-type question classification model obtained by pre-training based on a fourth artificial intelligence algorithm and used to identify whether a test question has a grammatical error is used to give a fourth prediction result of whether the corresponding test question has the grammatical error; for each of the related test questions, according to the corresponding first prediction result, the second prediction result, the third prediction result and the fourth prediction result, if the corresponding test question has the concept error, the fact error, the logical error and / or the grammatical error, it is determined that the corresponding test question has an unavailability error, otherwise it is determined that the corresponding test question does not have an unavailability error; Relevant test questions with unusability errors in the at least one relevant test question are eliminated to obtain a final set of relevant test questions for the target course.
2. The method for generating course-related test questions according to claim 1, characterized in that: When the course teaching materials include course audio files, the course teaching materials are structured to obtain a structured text of the course teaching materials, including: Using speech recognition technology to perform speech-to-text processing on the course audio file to obtain a course audio transcription text; Using natural language processing technology to perform grammatical analysis on the course audio transcription text to obtain grammatical information including parts of speech and sentence structure; Identifying at least one phrase representing a key knowledge point from the grammatical information using a rule / template matching method; Using a predefined knowledge system template / ontology, key knowledge points represented by each phrase in the at least one phrase are determined, and a structured text of the course material is obtained through structured representation.
3. The method for generating course-related test questions according to claim 1, characterized in that: The structured text of the course material is processed for knowledge point extraction to obtain a course knowledge point set, including: According to the structured text of the course material, at least one first knowledge point is generated using a first pre-trained language model ChatGPT based on a Transformer structure; Using the extractive question-answering model LangChain to perform knowledge point extraction processing on the structured text of the course textbook to obtain at least one second knowledge point; Performing matching processing on the at least one first knowledge point and the at least one second knowledge point to obtain a knowledge point intersection; For each knowledge point in the intersection of the knowledge points, using a second pre-trained language model RoBERTa pre-built based on natural language inference technology, to determine whether there is a logical relationship conflict between different sentences and / or different sentence groups in the corresponding knowledge point; The knowledge points with logical conflicts in the intersection of the knowledge points are eliminated to obtain a set of course knowledge points without logical conflicts and with reasonable semantics.
4. The method for generating course-related test questions according to claim 1, characterized in that: Generating at least one relevant test question of the target course according to the course knowledge point set, including: For each course knowledge point in the course knowledge point set, a predefined question type template suitable for the corresponding knowledge point is selected using semantic matching technology, wherein the predefined question type template includes a question stem slot and an answer option slot, and the question types of the predefined question type template include multiple-choice questions, fill-in-the-blank questions, essay questions, true-or-false questions, and / or programming questions; For each of the course knowledge points, insert the corresponding knowledge point content into the question stem slot of the corresponding predefined question type template to obtain the corresponding question stem content; For each of the course knowledge points, a language generation model based on the GPT series language model is used to generate answer options that meet the requirements in both syntax and semantics according to the corresponding question stem content, and the answer options are inserted into the answer option slots in the corresponding predefined question template to obtain the corresponding answer content; For each of the course knowledge points, assemble the corresponding question stem content and answer content to obtain the corresponding relevant test questions.
5. The method for generating course-related test questions according to claim 1, characterized in that: The method also includes: Determine a keyword group for indicating the difficulty level of the target course according to the course title, course introduction, course difficulty level indicator and / or course syllabus text of the target course; For each course knowledge point in the course knowledge point set, according to the keyword group and the corresponding knowledge point, a knowledge point learning difficulty level prediction model obtained by pre-training based on the fifth artificial intelligence algorithm is used to give a learning difficulty level of the corresponding knowledge point; After obtaining the final set of relevant test questions of the target course, for each relevant test question in the final set of relevant test questions, the corresponding answer difficulty level is positively correlated with the learning difficulty level of the corresponding knowledge point, or the corresponding answer difficulty level is positively correlated with the learning difficulty level of the corresponding knowledge point and the preset answer difficulty level of the corresponding question type; In the target test scenario, at least one test question whose question type is suitable for the target test scenario and whose answer difficulty level is suitable for the target examination group is selected from the final set of relevant test questions, and the at least one test question is pushed to the target examination group.
6. A device for generating course-related test questions, characterized in that: It includes a teaching material acquisition unit, a structured processing unit, a knowledge point extraction unit, a test question generation unit, a usability judgment unit and a test question elimination unit which are sequentially connected in communication; The teaching material acquisition unit is used to acquire the course teaching materials of the target course, wherein the course teaching materials include course teaching material files and / or course audio files; The structured processing unit is used to perform structured processing on the course teaching materials to obtain a structured text of the course teaching materials; The knowledge point extraction unit is used to perform knowledge point extraction processing on the structured text of the course textbook to obtain a course knowledge point set; The test question generating unit is used to generate at least one relevant test question of the target course according to the course knowledge point set; The availability judgment unit is used to use a pre-trained artificial intelligence model to judge whether the corresponding test question has an unavailability error for each related test question in the at least one related test question, specifically comprising: for each related test question in the at least one related test question, using a first judgment type question classification model pre-trained based on a first artificial intelligence algorithm and used to identify whether the test question has a conceptual error, to give a first prediction result of whether the corresponding test question has the conceptual error; for each related test question, using a second judgment type question classification model pre-trained based on a second artificial intelligence algorithm and used to identify whether the test question has a factual error, to give a second prediction result of whether the corresponding test question has the factual error; for each related test question, using a second judgment type question classification model pre-trained based on a second artificial intelligence algorithm and used to identify whether the test question has a factual error A third judgment-type question classification model obtained by pre-training with the algorithm and used to identify whether a test question has a logical error gives a third prediction result of whether the corresponding test question has the logical error; for each of the related test questions, a fourth judgment-type question classification model obtained by pre-training with the fourth artificial intelligence algorithm and used to identify whether a test question has a grammatical error is used to give a fourth prediction result of whether the corresponding test question has the grammatical error; for each of the related test questions, according to the corresponding first prediction result, the second prediction result, the third prediction result and the fourth prediction result, if the corresponding test question has the conceptual error, the factual error, the logical error and / or the grammatical error, it is determined that the corresponding test question has an unavailability error, otherwise it is determined that the corresponding test question does not have an unavailability error; The test question elimination unit is used to eliminate the relevant test questions with unusability errors in the at least one relevant test question to obtain a final set of relevant test questions for the target course.
7. A computer device, characterized in that: It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the course-related test question generation method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the course-related test question generation method as described in any one of claims 1 to 5 is executed.
9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or the instruction is executed by a computer, the method for generating course-related test questions as claimed in any one of claims 1 to 5 is implemented.
