Clinical test questionnaire generation method and device, equipment and storage medium

By retrieving from the structured medical knowledge database and combining user characteristics, a personalized clinical trial questionnaire was generated, which solved the problem of relying on experience and manual editing of traditional questionnaire generation, realizing the scientificity and consistency of the questionnaire and improving the Data accuracy and reliability.

CN119007900AInactive Publication Date: 2024-11-22BEIJING HOUPU PHARM TECH CO LTD
View PDF 0 Cites 14 Cited by

Patent Information

Application Number
CN202411145526.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional clinical trial questionnaire generation methods rely on the experience and manual editing of medical experts, making it difficult to ensure the consistency and scientificity of the questionnaire quality.

Method used

By obtaining clinical trial questionnaire generation requests, searching results from structured medical knowledge databases, extracting key concepts and relationships, combining diverse problem template libraries and user characteristics, problem set generation and optimization are carried out, and finally generating clinical trial questionnaire through the questionnaire structure optimization system .

Benefits of technology

Ensure the scientificity and consistency of the questionnaire, improve the accuracy and reliability of clinical trial data, and make the questionnaire more targeted and applicable through personalized adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007900A_ABST
    Figure CN119007900A_ABST
Patent Text Reader

Abstract

The invention provides a clinical test questionnaire generation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a clinical test questionnaire generation request, and carrying out the retrieval from a structured medical knowledge database according to the request to obtain a result. And based on a retrieval result, extracting knowledge sub-graphs from the enhanced medical knowledge graph, and obtaining key concepts and relationships. Templates are screened from the diversified question template library, elements are filled according to the knowledge sub-graphs, and an initial question set is generated; and obtaining user information, extracting user features, and optimizing the initial problem set according to the user features to form a personalized problem set. And inputting the personalized question set into a preset questionnaire structure optimization system, and performing structured processing to generate a final clinical test questionnaire. According to the method, the scientificity and the consistency of the questionnaire are ensured in combination with the diversified question template library and the user characteristics, the questionnaire is more targeted and applicable through personalized adjustment of the user characteristics, and the accuracy and the reliability of clinical test data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of questionnaire generation, and in particular to a method, device, equipment and storage medium for generating a clinical trial questionnaire. Background Art

[0002] Clinical trial questionnaires are important tools for collecting data and obtaining patient feedback in clinical research. In modern medical research, designing scientific and efficient clinical trial questionnaires has an important impact on the accuracy and effectiveness of trial results. Traditional clinical trial questionnaire generation methods usually rely on the experience of medical experts and manual editing, which is not only time-consuming and laborious, but also easily affected by subjective factors, making it difficult to ensure the consistency and scientificity of the questionnaire quality. Summary of the invention

[0003] The main purpose of the present invention is to solve the technical problem that the existing clinical trial questionnaires rely on the experience of medical experts and manual editing, and it is difficult to ensure the consistency and scientificity of the questionnaire quality.

[0004] A first aspect of the present invention provides a method for generating a clinical trial questionnaire, the method comprising: Obtaining a clinical trial questionnaire generation request, and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; Based on the search results, extract subgraphs from a preset enhanced medical knowledge graph to obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; Screening templates from a pre-built diversified question template library according to the key concepts and relationships, and filling elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; Acquire user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; The personalized question set is input into a preset questionnaire structure optimization system, and the personalized question set is structured by the questionnaire structure optimization system to generate a clinical trial questionnaire.

[0005] Optionally, in a first implementation of the first aspect of the present invention, before obtaining a clinical trial questionnaire generation request and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, the method further includes: Collecting and cleaning multi-source heterogeneous medical data to obtain an initial medical text set, and performing word segmentation and part-of-speech tagging on the initial medical text set to obtain a tagged text sequence; Performing named entity recognition processing on the text sequence according to a medical field-specific dictionary to obtain a medical entity set, and constructing an initial knowledge graph according to the medical entity set to obtain an initial knowledge graph, wherein the entities in the medical entity set serve as nodes of the initial knowledge graph, and the relationships between the entities in the medical entity set serve as edges of the initial knowledge graph; Applying a multi-layer graph convolutional network to the initial knowledge graph for information propagation and aggregation processing to obtain an updated node representation, and applying a bidirectional gated graph neural network to the updated node representation to obtain an enhanced node representation; The entity description text is encoded using a bidirectional long short-term memory network to obtain a sequence information representation, and the enhanced node representation and the sequence information representation are fused to obtain an enhanced medical knowledge graph.

[0006] Optionally, in a second implementation of the first aspect of the present invention, based on the search results, extracting a subgraph from a preset enhanced medical knowledge graph to obtain a corresponding knowledge subgraph, and extracting key concepts and relationships of the knowledge subgraph includes: Performing semantic analysis on the search results to obtain a search keyword set, and performing node matching on the enhanced medical knowledge graph according to the search keyword set to obtain an initial matching node set; Applying a graph traversal algorithm to expand the initial matching node set to obtain an expanded node set, and performing subgraph extraction processing on the enhanced medical knowledge graph based on the expanded node set to obtain a knowledge subgraph; Applying a centrality calculation algorithm to the knowledge subgraph to perform node importance evaluation processing to obtain a node importance ranking, and pruning the knowledge subgraph according to the node importance ranking to obtain a simplified knowledge subgraph; Applying a community discovery algorithm to cluster the simplified knowledge subgraph to obtain a set of concept clusters, and performing weight calculation on the edges in the simplified knowledge subgraph according to the set of concept clusters to obtain a weighted knowledge subgraph; A path search algorithm is applied to the weighted knowledge subgraph to perform key path identification processing to obtain a set of key concepts and relationships.

[0007] Optionally, in a third implementation of the first aspect of the present invention, before obtaining a clinical trial questionnaire generation request and searching a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, the method further includes: Collecting and preprocessing a large-scale medical question-answering dataset to obtain an initial question set, and applying a semantic analysis algorithm to the initial question set to perform topic extraction processing to obtain a question topic classification; Clustering the initial question set according to the question subject classification to obtain a question cluster set, and applying a corresponding syntactic analysis algorithm to the question cluster set to perform structure extraction processing to obtain a question structure pattern set; Performing template generation processing on the problem cluster set according to the problem structure pattern set to obtain an initial template library; Applying a variable replacement algorithm to generalize the initial template library to obtain a generalized template set, and performing difficulty assessment on the generalized template set according to a preset cognitive difficulty standard to obtain a difficulty-labeled template set; Applying a contrastive learning algorithm to the difficulty annotation template set to perform similarity calculation processing to obtain a template similarity matrix, and performing deduplication and merging processing on the difficulty annotation template set according to the template similarity matrix to obtain a streamlined template set; A reinforcement learning algorithm is applied to the simplified template set for dynamic tuning to obtain a diversified question template library.

[0008] Optionally, in a fourth implementation of the first aspect of the present invention, the templates are screened from a pre-built diversified question template library according to the key concepts and relationships, and the screened question templates are filled with elements according to the knowledge subgraph, so that the initial question set includes: Vectorizing the key concepts and relationships to obtain a semantic vector set, and performing similarity calculation and threshold screening on the templates in the diversified question template library according to the semantic vector set to obtain a candidate template set; Performing template matching processing on the knowledge subgraph according to the candidate template set to obtain a template filling mapping, and applying a context embedding algorithm to perform semantic completion processing on the template filling mapping to obtain a preliminary filling template set; The knowledge subgraph is subjected to multi-hop reasoning processing according to the preliminary filling template set to obtain a reasoning path set, and the reasoning path set is subjected to question reconstruction processing by applying a natural language generation algorithm to obtain an initial question set.

[0009] Optionally, in a fifth implementation manner of the first aspect of the present invention, the acquiring user information, extracting user features of the user information, and adjusting and optimizing the initial question set according to the user features to obtain the personalized question set includes: Perform multimodal data fusion processing on user information to obtain a user feature vector, and perform relevance scoring and threshold screening on the initial question set based on the user feature vector to obtain a core question set; Adjusting the language complexity of the core question set according to the user feature vector, and applying the knowledge graph reasoning algorithm to expand the adjusted core question set to obtain a supplementary question set; According to the user feature vector, the difficulty of the supplementary question set is graded and the answering time is estimated, and a dynamic programming algorithm is applied to reorder and screen the supplementary question set according to the obtained difficulty gradient and answering time to obtain a time-optimized question set; A dynamic feedback mechanism is applied to the time optimization problem set for real-time adjustment processing to obtain a personalized problem set.

[0010] Optionally, in a sixth implementation of the first aspect of the present invention, inputting the personalized question set into a preset questionnaire structure optimization system, and performing structured processing on the personalized question set by the questionnaire structure optimization system to generate a clinical trial questionnaire includes: Applying a semantic similarity algorithm to perform cluster analysis on the personalized question set to obtain question topic clusters, and constructing a question relationship graph based on the question topic clusters, and using a graph analysis algorithm to identify logical associations between questions based on the question relationship graph to obtain a question dependency matrix; Using the question dependency matrix to topologically sort the personalized question set, generating a preliminary question sequence, and dividing the preliminary question sequence into stages based on a preset clinical trial process model to obtain a multi-stage questionnaire structure; According to the multi-stage questionnaire structure, the number and type of questions in each stage are optimized by using a questionnaire balancing algorithm to obtain a balanced questionnaire framework, and question conversion rules are applied to the balanced questionnaire framework to reasonably distribute open-ended questions and closed-ended questions to form a diversified question sequence; Based on the clinical trial data collection requirements, detailed instructions and answer options are generated for each question in the diversified question sequence, a complete questionnaire content is constructed, and a natural language generation model is applied to the complete questionnaire content to generate a questionnaire guide and informed consent form that meet ethical requirements, and the complete questionnaire content, questionnaire guide and informed consent form are integrated into a clinical trial questionnaire.

[0011] A second aspect of the present invention provides a device for generating a clinical trial questionnaire, the device comprising: A request retrieval module, used to obtain a clinical trial questionnaire generation request, and search from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; A key extraction module, used to extract subgraphs from a preset enhanced medical knowledge graph based on the search results, obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; A question filling module is used to screen templates from a pre-built diversified question template library according to the key concepts and relationships, and fill elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; A question optimization module, used to obtain user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; The questionnaire generation module is used to input the personalized question set into a preset questionnaire structure optimization system, perform structured processing on the personalized question set through the questionnaire structure optimization system, and generate a clinical trial questionnaire.

[0012] The third aspect of the present invention provides a device for generating a clinical trial questionnaire, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the device for generating the clinical trial questionnaire executes the steps of the above-mentioned method for generating a clinical trial questionnaire.

[0013] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned method for generating a clinical trial questionnaire.

[0014] The above-mentioned method, device, equipment and storage medium for generating clinical trial questionnaires obtain a request for generating clinical trial questionnaires, and retrieve the results from the structured medical knowledge database according to the request. Based on the search results, the knowledge subgraph is extracted from the enhanced medical knowledge graph to obtain key concepts and relationships. Templates are screened from the diversified question template library, and elements are filled in according to the knowledge subgraph to generate an initial question set. User information is obtained, user characteristics are extracted, and the initial question set is optimized accordingly to form a personalized question set. The personalized question set is input into a preset questionnaire structure optimization system, and after structured processing, the final clinical trial questionnaire is generated. This method combines a diversified question template library and user characteristics to ensure the scientificity and consistency of the questionnaire. Through personalized adjustment of user characteristics, the questionnaire is made more targeted and applicable, thereby improving the accuracy and reliability of clinical trial data.

[0015] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of a first embodiment of a method for generating a clinical trial questionnaire in an embodiment of the present invention; Figure 2 A schematic diagram of an embodiment of a device for generating a clinical trial questionnaire in an embodiment of the present invention; Figure 3 Schematic diagram of an embodiment of a device for generating a clinical trial questionnaire in an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.

[0020] To facilitate understanding of this embodiment, a method for generating a clinical trial questionnaire disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps: 101. Obtain a clinical trial questionnaire generation request, and perform a search from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; In one embodiment of the present invention, after receiving a request, the system will first parse the request content and extract keywords and core concepts. The extracted information is then used as a search condition for accurate query in a pre-built structured medical knowledge database. This database is formed by collecting, cleaning and structuring multi-source heterogeneous medical data, and contains rich medical knowledge and clinical trial related information. The retrieval process uses an efficient indexing mechanism and semantic matching algorithm, which not only considers the literal matching of keywords, but also analyzes potential semantic associations. In addition, the retrieval will also consider relevant parameters of clinical trials, such as trial phase, target population, intervention measures, etc., to ensure the pertinence and comprehensiveness of the retrieval results. After the retrieval is completed, the system will perform preliminary filtering and sorting of the results, remove irrelevant or low-quality information, and sort the results according to relevance and importance. This optimized retrieval result set not only contains medical knowledge directly related to the clinical trial topic, but also includes relevant background information and the latest research progress that may affect the questionnaire design.

[0021] Furthermore, before obtaining the clinical trial questionnaire generation request and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain the search results, it also includes: collecting and cleaning multi-source heterogeneous medical data to obtain an initial medical text set, and performing word segmentation and part-of-speech tagging on the initial medical text set to obtain an annotated text sequence; performing named entity recognition on the text sequence according to a medical field-specific dictionary to obtain a medical entity set, and constructing an initial knowledge graph based on the medical entity set to obtain an initial knowledge graph, wherein the entities in the medical entity set serve as nodes of the initial knowledge graph, and the relationships between entities in the medical entity set serve as edges of the initial knowledge graph; applying a multi-layer graph convolutional network to the initial knowledge graph for information propagation and aggregation to obtain an updated node representation, and applying a bidirectional gated graph neural network to the updated node representation to obtain an enhanced node representation; applying a bidirectional long short-term memory network to encode the entity description text to obtain a sequence information representation, and fusing the enhanced node representation and the sequence information representation to obtain an enhanced medical knowledge graph.

[0022] Specifically, medical data is collected from multiple sources, including but not limited to medical literature, clinical guidelines, case reports, and medical records. These raw data are then cleaned to remove noise, correct errors, and unify the format, ultimately obtaining an initial medical text set. Next, the system performs in-depth natural language processing on this initial text set, starting with word segmentation and part-of-speech tagging. This step divides the continuous text into meaningful word units and assigns a part-of-speech tag to each word, such as nouns, verbs, adjectives, etc., to obtain an annotated text sequence. With this foundation, the system then uses a dictionary specific to the medical field to perform named entity recognition. This step can identify key medical concepts in the text, such as disease names, symptoms, drugs, treatment methods, etc., to form a set of medical entities. This set contains not only the entities themselves, but also various relationships between entities. Based on this set of medical entities, the system begins to build an initial knowledge graph, in which each medical entity is a node in the graph, and the relationships between entities constitute the edges of the graph, thus forming a preliminary medical knowledge network structure. After the initial knowledge graph is built, the system first applies a multi-layer graph convolutional network (GCN) for information dissemination and aggregation. The core idea of ​​GCN is to transmit and update node information through graph structure. Specifically, for each node in the knowledge graph, GCN considers the characteristics of its neighboring nodes and updates the node representation through a series of linear transformations and nonlinear activation functions. This process is repeated many times, and each iteration enables the node to obtain a wider range of contextual information. In this way, the representation of each node not only contains its own characteristics, but also integrates the information of surrounding nodes, thereby capturing richer semantic and structural relationships. Next, the system uses a bidirectional gated graph neural network (Bi-GGNN) to further process the node representation. The characteristic of Bi-GGNN is that it can consider the forward and backward propagation of information at the same time, and control the flow of information through a gating mechanism. This network contains update gates and reset gates, which together determine how new information is combined with existing information. The update gate controls how much old information is retained and how much new information is accepted, while the reset gate determines how to combine new input information with the previous state. This mechanism allows the model to selectively update node information and effectively capture long-distance dependencies, which is particularly suitable for processing complex graph structure data. At the same time, in order to make full use of text information, the system applies a bidirectional long short-term memory network (Bi-LSTM) to encode the entity description text. Bi-LSTM works by processing sequence data from two directions: one from the beginning to the end, and the other from the end to the beginning. This allows full contextual information to be obtained at any point in time. The special structure of LSTM contains input gates, forget gates, and output gates, which enables it to effectively process long sequences and avoid the gradient vanishing problem in traditional recurrent neural networks. Through this bidirectional processing, the system is able to capture complex semantic relationships and contextual dependencies in the text.After obtaining the node representation of the graph structure and the sequence representation of the text, the system needs to fuse the two types of information. This process uses the attention mechanism and gated fusion method. First, the system calculates the attention weight of the graph structure representation on the text representation. The purpose of this step is to determine which graph structure information is most important for the current text representation. Then, the gating mechanism is used to dynamically adjust the importance of the two types of information. The gating mechanism generates a weight vector based on the current state, the contextual information of the graph structure, and the sequence representation of the text. This vector determines the proportion of graph structure information and text information in the final representation. Through this complex fusion process, the system is able to generate an enhanced medical knowledge graph that contains rich semantic information and structural information. This graph not only retains the structural characteristics of the original knowledge graph, but also incorporates the sequence information of the text and the global dependency of the graph structure. It combines the structured knowledge captured by the graph neural network and the text semantics extracted by the recurrent neural network to form a multimodal and multi-level knowledge representation system.

[0023] Specifically, take a medical knowledge graph about "diabetes" as an example to illustrate this process: First, the system collects medical data about diabetes from multiple sources, including medical literature, clinical guidelines, and case reports. After cleaning and preprocessing, we get an initial set of medical texts. For example, a text may be: "Diabetes is a metabolic disease, which is mainly manifested by high blood sugar. Long-term high blood sugar can lead to various complications, such as heart disease and kidney disease." Next, the system performs word segmentation and part-of-speech tagging on this text. For example: "Diabetes / noun is / verb a kind of / quantifier metabolism / noun disease / noun, / punctuation mainly / adjective manifested as / verb high blood sugar / noun. / punctuation" Then, named entity recognition is performed using a medical field-specific dictionary. In this example, the system will identify medical entities such as "diabetes", "metabolic disease", "high blood sugar", "heart disease", and "kidney disease". Based on these entities and the relationships between them, the system constructs an initial knowledge graph. For example, "diabetes" is a node, and there is a "is a kind of" relationship edge between it and the "metabolic disease" node, and a "manifests as" relationship edge between it and the "high blood sugar" node. Next, a multi-layer graph convolutional network begins processing this initial graph. For example, when processing the node "diabetes", the GCN considers directly connected nodes such as "hyperglycemia", "heart disease", "nephropathy", etc., and updates the representation of the "diabetes" node. After multiple layers of processing, the representation of the "diabetes" node not only contains its own information, but also incorporates information such as related symptoms and complications. Then, the bidirectional gated graph neural network further processes these nodes. For example, it may strengthen the connection between "diabetes" and "hyperglycemia" because these are the most direct symptoms, while also retaining the association with "heart disease" and "nephropathy", but may give lower weights because these are long-term complications. At the same time, the bidirectional long short-term memory network processes the original text. It reads the text in both forward and backward directions. For example, in the sentence "diabetes is a metabolic disease", the forward processing will pay special attention to the key phrase "is a kind of", while the backward processing will focus on the important concept of "metabolic disease". Finally, the system fuses the graph structure information with the text information. For example, when considering the concept of "diabetes", the system combines the representation of the "diabetes" node in the graph structure (including the relationship information with other nodes) and the description of "diabetes" in the text. Through the attention mechanism, the system may pay more attention to the part of the text that describes the definition and main symptoms of diabetes, and pay less attention to the description of complications. In this way, in the final enhanced medical knowledge graph, the "diabetes" node not only contains its position and relationship information in the graph structure, but also incorporates the detailed description and contextual information in the text.

[0024] Furthermore, before obtaining the clinical trial questionnaire generation request and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain the search results, it also includes: collecting and preprocessing a large-scale medical question-answering data set to obtain an initial question set, and applying a semantic analysis algorithm to the initial question set to perform topic extraction processing to obtain a question topic classification; clustering the initial question set according to the question topic classification to obtain a question cluster set, and applying a corresponding syntactic analysis algorithm to the question cluster set to perform structure extraction processing to obtain a question structure pattern set; and The method comprises the following steps: performing template generation processing on the problem cluster set by using a constructed pattern set to obtain an initial template library; applying a variable replacement algorithm to generalize the initial template library to obtain a generalized template set, and performing difficulty assessment processing on the generalized template set according to a preset cognitive difficulty standard to obtain a difficulty labeled template set; applying a contrastive learning algorithm to perform similarity calculation processing on the difficulty labeled template set to obtain a template similarity matrix, and performing deduplication and merging processing on the difficulty labeled template set according to the template similarity matrix to obtain a simplified template set; applying a reinforcement learning algorithm to dynamically optimize the simplified template set to obtain a diversified problem template library.

[0025] Specifically, the collection and preprocessing of large-scale medical question-answering datasets. The system collects a large number of medical-related questions from various sources, such as medical textbooks, clinical practice guidelines, medical forums, and published research questionnaires. These original questions are initially cleaned and standardized to form an initial question set. Subsequently, the system applies advanced semantic analysis algorithms such as Latent Dirichlet Allocation (LDA) or transformer-based topic modeling techniques to this initial question set for topic extraction. The purpose of this step is to identify the core topic of each question, thereby obtaining a question topic classification system. For example, questions are classified into different topic categories such as "symptom identification", "treatment plan", and "drug interaction". With this topic classification system, the system then clusters the initial question set according to the topic of the question. This process uses algorithms such as K-means or hierarchical clustering to group semantically similar questions together to form a set of question clusters. Each question cluster represents a class of similar questions. For example, all questions about "diabetes symptoms" will be clustered into one cluster. The system then applies syntactic analysis algorithms, such as dependency parsing or component parsing, to these question clusters to extract the structural features of each question. The purpose of this step is to identify the grammatical patterns of questions, such as the position of question words, subject-verb-object structure, etc., to obtain a set of question structure patterns. These structural patterns reflect the typical syntactic structures of different types of questions. Based on these question structure patterns, the system performs template generation processing on each question cluster. This process involves abstracting specific question instances, extracting common structural features, and forming reusable question templates. For example, "What is your blood sugar level?" will be abstracted to "What is your [test indicator]?", thus obtaining an initial template library. Next, the system applies a variable replacement algorithm to this initial template library for generalization processing. The purpose of this step is to increase the flexibility and scope of application of the template. For example, "How often do you measure [test indicator]?" is generalized to "How often do you [act] [object]?", thereby obtaining a more generalized template set. The system then evaluates the difficulty of these generalized templates according to a preset cognitive difficulty standard. This standard considers factors such as the language complexity of the question, the depth of the required background knowledge, and the difficulty of reasoning. Through this evaluation, each template is assigned a difficulty level, forming a difficulty annotated template set. This provides the basis for the subsequent generation of questionnaires with different difficulty levels. To further optimize the template set, the system applies a contrastive learning algorithm to this difficulty annotated template set for similarity calculation. This process involves mapping each template to a high-dimensional vector space, and then calculating the cosine similarity or other distance metrics between templates, and finally obtaining a template similarity matrix. Based on this similarity matrix, the system is able to identify and merge highly similar templates while retaining sufficient diversity, resulting in a streamlined but comprehensive template set.Finally, the system applies a reinforcement learning algorithm to dynamically optimize this streamlined template set. In this process, the system simulates the scenarios of questionnaire generation and use, and regards the selection and combination of templates as a series of decisions. By setting appropriate reward functions, such as the completion rate of the questionnaire and the efficiency of information acquisition, the system can learn the optimal template selection strategy. This process not only optimizes the quality of a single template, but also considers the combination effect between templates, ultimately forming a diverse and efficient question template library.

[0026] 102. Based on the search results, extract subgraphs from a preset enhanced medical knowledge graph to obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; In one embodiment of the present invention, based on the retrieval results, subgraph extraction is performed from a preset enhanced medical knowledge graph to obtain a corresponding knowledge subgraph, and key concepts and relationships of the knowledge subgraph are extracted, including: semantic analysis processing is performed on the retrieval results to obtain a retrieval keyword set, and node matching processing is performed on the enhanced medical knowledge graph according to the retrieval keyword set to obtain an initial matching node set; the initial matching node set is expanded by a graph traversal algorithm to obtain an expanded node set, and subgraph extraction processing is performed on the enhanced medical knowledge graph according to the expanded node set to obtain a knowledge subgraph; node importance evaluation processing is performed on the knowledge subgraph by a centrality calculation algorithm to obtain a node importance ranking, and the knowledge subgraph is pruned according to the node importance ranking to obtain a simplified knowledge subgraph; community discovery algorithm is applied to cluster the simplified knowledge subgraph to obtain a concept cluster set, and weight calculation processing is performed on the edges in the simplified knowledge subgraph according to the concept cluster set to obtain a weighted knowledge subgraph; key path identification processing is performed on the weighted knowledge subgraph by a path search algorithm to obtain a key concept and relationship set.

[0027] Specifically, semantic analysis processing can use natural language processing techniques, such as term frequency-inverse document frequency (TF-IDF) analysis or word embedding models, to extract the most representative and relevant keyword sets from the search results. These keywords include not only medical terms, but also related concepts such as symptom descriptions and treatment methods. Subsequently, the system uses this set of search keywords as seeds to perform node matching in the enhanced medical knowledge graph. This matching process adopts a strategy that combines exact matching and fuzzy matching to ensure that all potentially related nodes can be captured, thereby obtaining an initial matching node set. Next, the system applies a graph traversal algorithm to this initial matching node set for expansion processing. The purpose of this step is to explore other important nodes that are directly or indirectly related to the initial node to ensure that a wide range of relevant knowledge is captured. Commonly used graph traversal algorithms include breadth-first search (BFS) and depth-first search (DFS). The system will set a maximum hop limit to control the scope of expansion. Through this expansion process, the system obtains a larger expanded node set, which includes the initial matching node and its related nodes. Based on this expanded node set, the system extracts a subgraph from the original enhanced medical knowledge graph, which contains knowledge structures that are highly relevant to the retrieval topic. However, this initially extracted knowledge subgraph may still contain some less important or less relevant information. In order to further optimize the quality of the subgraph, the system applies a centrality calculation algorithm to this knowledge subgraph to evaluate the importance of nodes. Common centrality calculation methods include degree centrality, betweenness centrality, and eigenvector centrality. Through these algorithms, the system can identify the most critical and influential nodes in the subgraph, thereby obtaining a node importance ranking. Based on this ranking, the system prunes the knowledge subgraph, removes nodes and edges with lower importance, and obtains a more streamlined and focused knowledge subgraph. In order to further understand the internal structure of this streamlined knowledge subgraph, the system applies a community discovery algorithm for clustering. The purpose of this step is to identify closely connected groups of nodes in the subgraph, which usually represent related concept clusters. Common community discovery algorithms include Louvain method, label propagation algorithm, etc. Through this process, the system obtains a set of concept clusters, each of which represents an important topic or concept group in the subgraph. Based on these concept clusters, the system performs weight calculation on the edges in the simplified knowledge subgraph. This weight calculation takes into account factors such as the connection strength between nodes, the importance of nodes, and the relationship between the concept clusters to which they belong, and ultimately obtains a weighted knowledge subgraph. This weighting process ensures that the edges in the graph not only reflect the connection relationship between nodes, but also the importance of these relationships. Finally, the system applies a path search algorithm to this weighted knowledge subgraph to identify key paths. The purpose of this step is to find the key paths that connect important concepts, which usually represent important reasoning chains or knowledge structures.Commonly used path search algorithms include variants of the Dijkstra algorithm or the A* algorithm, which consider the weight of the edge to find the optimal path. Through this process, the system finally obtains a set of key concepts and relationships, which highly summarizes the core knowledge structure related to the retrieval topic.

[0028] Specifically, suppose a questionnaire is generated for a clinical trial on "type 2 diabetes and its complications". The system first performs semantic analysis on the search results and extracts a set of keywords, which may include "diabetes", "insulin resistance", "hyperglycemia", "retinopathy", "nephropathy", etc. The system uses these keywords to match nodes in the enhanced medical knowledge graph and find relevant initial nodes. For example, the "diabetes" node will be matched directly, while "insulin resistance" may correspond to the "insulin sensitivity reduction" node through fuzzy matching. Next, the system performs graph traversal expansion on these initial nodes. For example, starting from the "diabetes" node, the system may expand to related nodes such as "blood sugar monitoring", "diet control", and "exercise therapy". At the same time, from the "retinopathy" node, it may expand to nodes such as "fundus examination" and "laser treatment". In this way, the system constructs a comprehensive knowledge subgraph that includes diabetes diagnosis, treatment, and complication management. Then, the system applies a centrality calculation algorithm to this subgraph. In this example, the "diabetes" node may be identified as the most important node because of its high connectivity. "Hyperglycemia" and "insulin resistance" may also be rated as high importance, while some more special treatment nodes may be less important. Based on this importance ranking, the system may cut out some less common complications or special treatments, retain the core diabetes-related concepts, and form a more focused knowledge subgraph. Next, the system applies a community discovery algorithm to cluster this streamlined subgraph. Several major concept clusters may be formed: one around "diagnosis" (including symptoms, test indicators, etc.), one around "treatment" (including drug therapy, lifestyle intervention, etc.), and several corresponding to different complications (such as cardiovascular complications, neurological complications, etc.). Based on these concept clusters, the system calculates the weights of the edges in the graph. For example, the edge from "diabetes" to "hyperglycemia" may receive a higher weight because it is a core symptom relationship; while the edge from "diabetes" to "foot ulcer" may have a lower weight because it is a less common complication. Finally, the system identifies key paths in this weighted knowledge subgraph. An important path may be: diabetes → long-term hyperglycemia → vascular damage → retinopathy → decreased vision. Another possibility is: diabetes → insulin resistance → need for insulin treatment → injection site complications. These paths represent important causal chains or disease progression processes. Through this process, the system eventually obtains a set of key concepts (such as diabetes, hyperglycemia, insulin resistance, retinopathy, etc.) and important relationships (such as symptom-disease relationship, treatment-effect relationship, disease-complication relationship, etc.). These concepts and relationships provide a structured knowledge basis for questionnaire generation.

[0029] 103. Screening templates from a pre-built diversified question template library according to the key concepts and relationships, and filling elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; In one embodiment of the present invention, the template screening is performed from a pre-built diversified question template library according to the key concepts and relationships, and the elements of the screened question templates are filled according to the knowledge subgraph to obtain an initial question set, including: vectorizing the key concepts and relationships to obtain a semantic vector set, and performing similarity calculation and threshold screening on the templates in the diversified question template library according to the semantic vector set to obtain a candidate template set; performing template matching on the knowledge subgraph according to the candidate template set to obtain a template filling mapping, and applying a context embedding algorithm to perform semantic completion on the template filling mapping to obtain a preliminary filled template set; performing multi-hop reasoning on the knowledge subgraph according to the preliminary filled template set to obtain a reasoning path set, and applying a natural language generation algorithm to the reasoning path set to perform question reconstruction to obtain an initial question set.

[0030] Specifically, for the vectorization of key concepts and relationships, the system uses advanced natural language processing techniques, such as Word2Vec, BERT or its medical field-specific variants (such as BioBERT), to convert each concept and relationship into a high-dimensional semantic vector. For example, in a clinical trial on diabetes, concepts such as "diabetes", "insulin resistance", and "hyperglycemia" will be mapped to the corresponding semantic vector space. This vectorized representation not only captures the literal meaning of the concept, but also contains its deep semantic information in the medical context. Next, the system uses these semantic vectors to screen the pre-built diverse question template library. This process involves calculating the similarity between the semantic vector and the predefined slots in the template. For example, a template may be "How often does your [symptom] occur?" The system calculates the semantic similarity between the concept of "hyperglycemia" and the [symptom] slot. By setting a similarity threshold, the system selects the most relevant templates to form a candidate template set. This set includes various types of questions, such as symptom frequency, treatment effect evaluation, quality of life impact, etc. With the candidate template set, the system then performs template matching on the knowledge subgraph. The purpose of this step is to determine which specific concepts and relationships should be filled into which positions of the template. For example, for the template "Do you often feel [symptom]?", the system may match common diabetes symptoms such as "thirst" and "polyuria" to the [symptom] slot. This process forms a template filling mapping to guide subsequent question generation. In order to further optimize the quality of filling, the system applies the context embedding algorithm to perform semantic completion processing on the template filling mapping. This step considers the contextual relationship of the concept in the knowledge graph to ensure that the filled content is not only literally matched but also semantically consistent. For example, when filling the template "Does your [complication] affect your daily life?", the system will not only consider the complication "retinopathy" itself, but also its association with "visual impairment", which may generate more specific questions, such as "Does the visual impairment caused by retinopathy affect your daily life?" This semantic completion process results in a preliminary filling template set, which contains a series of semi-finished questions. Next, based on this preliminary filling template set, the system performs multi-hop reasoning processing on the knowledge subgraph. The purpose of this step is to generate more complex and in-depth questions that may require patients to think in multiple steps or involve multiple related concepts. For example, the system may infer along the path of "diabetes → hyperglycemia → vascular damage → decreased renal function → proteinuria" to generate a set of inference paths. Finally, the system applies the natural language generation (NLG) algorithm to this set of inference paths to reconstruct the question. The NLG algorithm considers the characteristics of medical language, the grammatical structure of the question, and the natural fluency of the expression, and transforms the inference path into a coherent, professional, and easy-to-understand question.For example, based on the above reasoning path, the system may generate a question like this: "Considering that long-term high blood sugar may cause vascular damage and thus affect kidney function, do you regularly check your urine protein level? If so, what was the result of the most recent check?" This question not only inquires about specific medical indicators, but also implies the process of disease progression, which helps to assess the patient's understanding and management of their own disease. Through this series of complex processing steps, the system finally obtains an initial set of questions. This set of questions not only covers all aspects related to the topic of the clinical trial, but also includes questions of different difficulty and depth. For example, there may be simple and direct questions such as "How many times a day do you measure your blood sugar?" There are also complex questions that require patients to make certain inferences, such as "Considering your current blood sugar control and lifestyle, how great do you think the risk of developing serious complications in the next five years is? Please explain your opinion.".

[0031] 104. Obtain user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; In one embodiment of the present invention, the obtaining of user information, extracting user features of the user information, and adjusting and optimizing the initial question set according to the user features to obtain a personalized question set includes: performing multimodal data fusion processing on the user information to obtain a user feature vector, and performing relevance scoring and threshold screening on the initial question set according to the user feature vector to obtain a core question set; performing language complexity adjustment processing on the core question set according to the user feature vector, and applying a knowledge graph reasoning algorithm to expand the adjusted core question set to obtain a supplementary question set; performing difficulty gradient and answering time estimation on the supplementary question set according to the user feature vector, and applying a dynamic programming algorithm to reorder and screen the supplementary question set according to the obtained difficulty gradient and answering time to obtain a time-optimized question set; and applying a dynamic feedback mechanism to perform real-time adjustment processing on the time-optimized question set to obtain a personalized question set.

[0032] Specifically, the user information is first processed through multimodal data fusion, integrating user data from different sources, such as demographic information, medical history, lifestyle data, etc. For example, for a 65-year-old patient with type 2 diabetes, the system will integrate information such as age, gender, length of medical history, current medication, comorbidity status, daily activity level, etc. By using advanced machine learning algorithms, such as deep neural networks or ensemble learning methods, the system converts these heterogeneous data into a unified user feature vector. With this user feature vector, the system then scores the relevance of the initial question set. In this process, each question is assigned a score based on its relevance to the user's characteristics. For example, for a patient who takes insulin for a long time, questions about the experience of using oral hypoglycemic drugs may receive a lower relevance score, while questions about insulin injection and blood glucose monitoring will receive a higher score. The system sets a relevance threshold and only retains questions with scores exceeding this threshold, thereby obtaining a more focused core question set. Next, the system adjusts the language complexity of the core question set based on the user feature vector. This step takes into account the user's educational background, cognitive ability, and medical knowledge level. For example, for a patient with a weak medical background, the system will rewrite the professional term "Have you experienced symptoms of peripheral neuropathy?" to "Have you felt tingling or numbness in your hands and feet?" This adjustment ensures the comprehensibility of the question and the accuracy of the answer. The adjusted core question set is then expanded through the knowledge graph reasoning algorithm. The system uses the medical knowledge graph to infer additional questions that may be relevant based on the user's specific situation. For example, for a diabetic patient with a history of hypertension, the system automatically adds some questions about cardiovascular health to form a more comprehensive set of supplementary questions. In order to optimize the overall structure of the questionnaire and the answering experience, the system gradients the difficulty of the supplementary question set and estimates the answering time based on the user's feature vector. This process takes into account the complexity of the question, the required background knowledge, and the user's cognitive ability. For example, the system arranges simple yes-or-no questions at the beginning of the questionnaire, and places open-ended questions that require detailed descriptions in the middle. At the same time, the system estimates the average answering time for each question and considers the impact of the user's age and health status on the answering speed. Based on this information, the system applies a dynamic programming algorithm to reorder and filter the supplementary question set. The goal of this algorithm is to maximize the information collection value of the questionnaire within a given total time limit. For example, for a questionnaire that is expected to be completed in 60 minutes, the system will select and sort the questions so that the most important and relevant questions are included first, while ensuring that the overall answering time does not exceed the preset limit. The time-optimized question set obtained in this way not only ensures the comprehensiveness of the questionnaire, but also avoids the fatigue effect caused by too long a time. Finally, the system applies a dynamic feedback mechanism to the time-optimized question set for real-time adjustment.In actual use, the system monitors the user's answering situation, such as answering speed, skipped questions, repeatedly revised answers, etc. Based on this real-time feedback, the system can dynamically adjust the difficulty, type or order of subsequent questions. For example, if the system detects that the user spends too much time answering open-ended questions, it will add more closed-ended or multiple-choice questions to the subsequent questions to improve answering efficiency. Similarly, if the user shows special interest or concern in a certain topic, the system will dynamically add relevant in-depth questions.

[0033] 105. Input the personalized question set into a preset questionnaire structure optimization system, and perform structured processing on the personalized question set through the questionnaire structure optimization system to generate a clinical trial questionnaire.

[0034] In one embodiment of the present invention, the personalized question set is input into a preset questionnaire structure optimization system, and the personalized question set is structured by the questionnaire structure optimization system to generate a clinical trial questionnaire, including: applying a semantic similarity algorithm to perform cluster analysis on the personalized question set to obtain question theme clusters, and constructing a question relationship graph based on the question theme clusters, and identifying logical associations between questions based on the question relationship graph by a graph analysis algorithm to obtain a question dependency matrix; topologically sorting the personalized question set using the question dependency matrix to generate a preliminary question sequence, and dividing the preliminary question sequence into stages based on a preset clinical trial process model. A multi-stage questionnaire structure is obtained; based on the multi-stage questionnaire structure, a questionnaire balancing algorithm is used to optimize the number and type of questions in each stage to obtain a balanced questionnaire framework, and a question conversion rule is applied to the balanced questionnaire framework to reasonably distribute open-ended questions and closed-ended questions to form a diversified question sequence; based on the clinical trial data collection requirements, detailed instructions and answer options are generated for each question in the diversified question sequence, a complete questionnaire content is constructed, and a natural language generation model is applied to the complete questionnaire content to generate a questionnaire guide and an informed consent form that meet ethical requirements, and the complete questionnaire content, the questionnaire guide and the informed consent form are integrated into a clinical trial questionnaire.

[0035] Specifically, in the final stage of clinical trial questionnaire generation, the system converts the personalized question set into a structured questionnaire. This process first applies a semantic similarity algorithm to the personalized question set for cluster analysis. Taking the clinical trial of type 2 diabetes as an example, the system clusters the questions into topic clusters such as "symptom identification", "lifestyle management", "drug therapy" and "complication monitoring". This clustering not only organizes the questions, but also reflects the overall structure of the questionnaire. Based on these problem topic clusters, the system constructs a question relationship graph, in which each node represents a question and the edges represent the semantic associations between questions. By applying graph analysis algorithms such as PageRank or community detection algorithms, the system identifies the logical associations between questions and generates a question dependency matrix. This matrix clearly shows the relationship between questions, for example, there is a strong logical association between the question "What is your current fasting blood glucose level?" and "Are you taking hypoglycemic drugs?" Using this question dependency matrix, the system topologically sorts the personalized question set and generates a preliminary question sequence. This sequence ensures the reasonable arrangement of related questions, and arranges questions about symptoms before asking about diagnosis and treatment. Next, the system divides this preliminary question sequence into stages based on the preset clinical trial process model. In diabetes trials, this includes phases such as "baseline assessment", "intervention period" and "follow-up period". This division keeps the questionnaire structure consistent with the actual process of clinical trials, ensuring that appropriate information is collected at each stage. Continuing with this deterministic description, the system uses a questionnaire balancing algorithm to accurately adjust the number and type of questions in each phase. This algorithm considers the importance of each phase, the expected response time, and the diversity of questions. In the "baseline assessment" phase, the system includes more questions about the patient's background and current health status, while the "follow-up period" focuses on changes in treatment effects and quality of life. Through this optimization, the system generates a balanced questionnaire framework. Subsequently, the system applies predefined question conversion rules to distribute open-ended questions and closed-ended questions reasonably. For open-ended questions such as "How do you manage your blood sugar levels?", the system adds a series of closed-ended questions after it, such as "Do you use the following methods to control blood sugar: (a) regular monitoring (b) dietary control (c) exercise (d) drug treatment". This practice collects detailed information and ensures the quantification of data. Based on the specific data collection requirements of clinical trials, the system generates detailed instructions and answer options for each question in the diversified question sequence. For questions about blood sugar levels, the system provides the following guidance: "Please fill in the result of your most recent fasting blood sugar test in mmol / L. If you are unsure, please select the 'Unsure' option." These instructions ensure that the subjects understand the questions accurately and provide valid answers. The system uses a natural language generation model to create questionnaire guides and informed consent forms that meet ethical requirements.The introduction includes information such as the purpose of the trial, the expected duration, and a commitment to confidentiality, for example: "Dear participant, this questionnaire is designed to evaluate the effectiveness of a new diabetes treatment. Your participation is essential to our research. All information will be kept strictly confidential and used only for research purposes." The informed consent form details the risks and benefits of participating in the trial, ensuring that participants make decisions on a fully informed basis. The system integrates the complete questionnaire content, introduction, and informed consent form into a complete clinical trial questionnaire. This questionnaire has a clear structure, comprehensive content, and ensures ethical compliance. The final questionnaire begins with an informed consent form, followed by a questionnaire introduction, followed by a sequence of questions organized into stages such as "baseline assessment", "intervention period", and "follow-up period", with clear instructions and transitions for each stage. The order of the questions takes into account both logical connections and the answering experience, and more sensitive or complex questions are arranged in the middle of the questionnaire to avoid initial pressure or final fatigue for participants.

[0036] In this embodiment, a request for generating a clinical trial questionnaire is obtained, and the results are retrieved from a structured medical knowledge database according to the request. Based on the search results, a knowledge subgraph is extracted from the enhanced medical knowledge graph to obtain key concepts and relationships. Templates are screened from a diverse question template library, and elements are filled in according to the knowledge subgraph to generate an initial question set. User information is obtained, user features are extracted, and the initial question set is optimized accordingly to form a personalized question set. The personalized question set is input into a preset questionnaire structure optimization system, and after structured processing, the final clinical trial questionnaire is generated. This method combines a diverse question template library and user features to ensure the scientificity and consistency of the questionnaire. Through personalized adjustment of user features, the questionnaire is made more targeted and applicable, thereby improving the accuracy and reliability of clinical trial data.

[0037] The above describes the method for generating a clinical trial questionnaire in an embodiment of the present invention. The following describes the device for generating a clinical trial questionnaire in an embodiment of the present invention. Figure 2 In one embodiment of the present invention, a device for generating a clinical trial questionnaire includes: A request retrieval module 201 is used to obtain a clinical trial questionnaire generation request, and to search from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; A key extraction module 202 is used to extract subgraphs from a preset enhanced medical knowledge graph based on the search results, obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; A question filling module 203 is used to screen templates from a pre-built diversified question template library according to the key concepts and relationships, and fill elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; The question optimization module 204 is used to obtain user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; The questionnaire generation module 205 is used to input the personalized question set into a preset questionnaire structure optimization system, and perform structured processing on the personalized question set through the questionnaire structure optimization system to generate a clinical trial questionnaire.

[0038] In an embodiment of the present invention, the device for generating a clinical trial questionnaire runs the method for generating a clinical trial questionnaire, and the device for generating a clinical trial questionnaire obtains a request for generating a clinical trial questionnaire and retrieves results from a structured medical knowledge database according to the request. Based on the retrieval results, a knowledge subgraph is extracted from the enhanced medical knowledge graph to obtain key concepts and relationships. Templates are screened from a diversified question template library, and elements are filled in according to the knowledge subgraph to generate an initial question set. User information is obtained, user features are extracted, and the initial question set is optimized accordingly to form a personalized question set. The personalized question set is input into a preset questionnaire structure optimization system, and after structured processing, a final clinical trial questionnaire is generated. This method combines a diversified question template library and user features to ensure the scientificity and consistency of the questionnaire, and through personalized adjustment of user features, the questionnaire is made more targeted and applicable, thereby improving the accuracy and reliability of clinical trial data.

[0039] above Figure 2 The apparatus for generating a clinical trial questionnaire in an embodiment of the present invention is described in detail from the perspective of modular functional entities. The apparatus for generating a clinical trial questionnaire in an embodiment of the present invention is described in detail from the perspective of hardware processing.

[0040] Figure 33 is a schematic diagram of the structure of a device for generating a clinical trial questionnaire provided by an embodiment of the present invention. The device 300 for generating a clinical trial questionnaire may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 may be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device 300 for generating a clinical trial questionnaire. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the device 300 for generating a clinical trial questionnaire to implement the steps of the above-mentioned method for generating a clinical trial questionnaire.

[0041] The clinical trial questionnaire generation device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 3 The structure of the device for generating a clinical trial questionnaire shown does not constitute a limitation on the device for generating a clinical trial questionnaire provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0042] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein instructions are stored in the computer, and when the instructions are executed on a computer, the computer executes the steps of the method for generating a clinical trial questionnaire.

[0043] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0044] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0045] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a clinical trial questionnaire, characterized in that: The method for generating the clinical trial questionnaire comprises: Obtaining a clinical trial questionnaire generation request, and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; Based on the search results, extract subgraphs from a preset enhanced medical knowledge graph to obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; Screening templates from a pre-built diversified question template library according to the key concepts and relationships, and filling elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; Acquire user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; The personalized question set is input into a preset questionnaire structure optimization system, and the personalized question set is structured by the questionnaire structure optimization system to generate a clinical trial questionnaire.

2. The method for generating a clinical trial questionnaire according to claim 1, characterized in that: Before obtaining the clinical trial questionnaire generation request and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain the search results, the method further includes: Collecting and cleaning multi-source heterogeneous medical data to obtain an initial medical text set, and performing word segmentation and part-of-speech tagging on the initial medical text set to obtain a tagged text sequence; Performing named entity recognition processing on the text sequence according to a medical field-specific dictionary to obtain a medical entity set, and constructing an initial knowledge graph according to the medical entity set to obtain an initial knowledge graph, wherein the entities in the medical entity set serve as nodes of the initial knowledge graph, and the relationships between the entities in the medical entity set serve as edges of the initial knowledge graph; Applying a multi-layer graph convolutional network to the initial knowledge graph for information propagation and aggregation processing to obtain an updated node representation, and applying a bidirectional gated graph neural network to the updated node representation to obtain an enhanced node representation; The entity description text is encoded using a bidirectional long short-term memory network to obtain a sequence information representation, and the enhanced node representation and the sequence information representation are fused to obtain an enhanced medical knowledge graph.

3. The method for generating a clinical trial questionnaire according to claim 2, characterized in that: Based on the search results, extracting subgraphs from a preset enhanced medical knowledge graph to obtain corresponding knowledge subgraphs, and extracting key concepts and relationships of the knowledge subgraphs includes: Performing semantic analysis on the search results to obtain a search keyword set, and performing node matching on the enhanced medical knowledge graph according to the search keyword set to obtain an initial matching node set; Applying a graph traversal algorithm to expand the initial matching node set to obtain an expanded node set, and performing subgraph extraction processing on the enhanced medical knowledge graph based on the expanded node set to obtain a knowledge subgraph; Applying a centrality calculation algorithm to the knowledge subgraph to perform node importance evaluation processing to obtain a node importance ranking, and pruning the knowledge subgraph according to the node importance ranking to obtain a simplified knowledge subgraph; Applying a community discovery algorithm to cluster the simplified knowledge subgraph to obtain a set of concept clusters, and performing weight calculation on the edges in the simplified knowledge subgraph according to the set of concept clusters to obtain a weighted knowledge subgraph; A path search algorithm is applied to the weighted knowledge subgraph to perform key path identification processing to obtain a set of key concepts and relationships.

4. The method for generating a clinical trial questionnaire according to claim 1, characterized in that: Before obtaining the clinical trial questionnaire generation request and searching from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain the search results, the method further includes: Collecting and preprocessing a large-scale medical question-answering dataset to obtain an initial question set, and applying a semantic analysis algorithm to the initial question set to perform topic extraction processing to obtain a question topic classification; Clustering the initial question set according to the question subject classification to obtain a question cluster set, and applying a corresponding syntactic analysis algorithm to the question cluster set to perform structure extraction processing to obtain a question structure pattern set; Performing template generation processing on the problem cluster set according to the problem structure pattern set to obtain an initial template library; Applying a variable replacement algorithm to generalize the initial template library to obtain a generalized template set, and performing difficulty assessment on the generalized template set according to a preset cognitive difficulty standard to obtain a difficulty-labeled template set; Applying a contrastive learning algorithm to the difficulty annotation template set to perform similarity calculation processing to obtain a template similarity matrix, and performing deduplication and merging processing on the difficulty annotation template set according to the template similarity matrix to obtain a streamlined template set; A reinforcement learning algorithm is applied to the simplified template set for dynamic optimization processing to obtain a diversified question template library.

5. The method for generating a clinical trial questionnaire according to claim 4, characterized in that: The templates are screened from a pre-built diversified question template library according to the key concepts and relationships, and the screened question templates are filled with elements according to the knowledge subgraph to obtain an initial question set including: Vectorizing the key concepts and relationships to obtain a semantic vector set, and performing similarity calculation and threshold screening on the templates in the diversified question template library according to the semantic vector set to obtain a candidate template set; Performing template matching processing on the knowledge subgraph according to the candidate template set to obtain a template filling mapping, and applying a context embedding algorithm to perform semantic completion processing on the template filling mapping to obtain a preliminary filling template set; The knowledge subgraph is subjected to multi-hop reasoning processing according to the preliminary filling template set to obtain a reasoning path set, and the reasoning path set is subjected to question reconstruction processing by applying a natural language generation algorithm to obtain an initial question set.

6. The method for generating a clinical trial questionnaire according to claim 1, characterized in that: The acquiring of user information, extracting user features of the user information, and adjusting and optimizing the initial question set according to the user features to obtain a personalized question set includes: Perform multimodal data fusion processing on user information to obtain a user feature vector, and perform relevance scoring and threshold screening on the initial question set based on the user feature vector to obtain a core question set; Adjusting the language complexity of the core question set according to the user feature vector, and applying the knowledge graph reasoning algorithm to expand the adjusted core question set to obtain a supplementary question set; According to the user feature vector, the difficulty of the supplementary question set is graded and the answering time is estimated, and a dynamic programming algorithm is applied to reorder and screen the supplementary question set according to the obtained difficulty gradient and answering time to obtain a time-optimized question set; A dynamic feedback mechanism is applied to the time optimization problem set for real-time adjustment processing to obtain a personalized problem set.

7. The method for generating a clinical trial questionnaire according to claim 1, characterized in that: The step of inputting the personalized question set into a preset questionnaire structure optimization system, and performing structured processing on the personalized question set by the questionnaire structure optimization system to generate a clinical trial questionnaire comprises: Applying a semantic similarity algorithm to perform cluster analysis on the personalized question set to obtain question topic clusters, and constructing a question relationship graph based on the question topic clusters, and using a graph analysis algorithm to identify logical associations between questions based on the question relationship graph to obtain a question dependency matrix; Using the question dependency matrix to topologically sort the personalized question set, generating a preliminary question sequence, and dividing the preliminary question sequence into stages based on a preset clinical trial process model to obtain a multi-stage questionnaire structure; According to the multi-stage questionnaire structure, the number and type of questions in each stage are optimized by using a questionnaire balancing algorithm to obtain a balanced questionnaire framework, and question conversion rules are applied to the balanced questionnaire framework to reasonably distribute open-ended questions and closed-ended questions to form a diversified question sequence; Based on the clinical trial data collection requirements, detailed instructions and answer options are generated for each question in the diversified question sequence, a complete questionnaire content is constructed, and a natural language generation model is applied to the complete questionnaire content to generate a questionnaire guide and informed consent form that meet ethical requirements, and the complete questionnaire content, questionnaire guide and informed consent form are integrated into a clinical trial questionnaire.

8. A device for generating a clinical trial questionnaire, characterized in that: The device for generating the clinical trial questionnaire comprises: A request retrieval module, used to obtain a clinical trial questionnaire generation request, and search from a pre-built structured medical knowledge database according to the clinical trial questionnaire generation request to obtain a search result, wherein the clinical trial questionnaire generation request includes a clinical trial subject and related parameters; A key extraction module, used to extract subgraphs from a preset enhanced medical knowledge graph based on the search results, obtain corresponding knowledge subgraphs, and extract key concepts and relationships of the knowledge subgraphs; A question filling module is used to screen templates from a pre-built diversified question template library according to the key concepts and relationships, and fill elements in the screened question templates according to the knowledge subgraph to obtain an initial question set; A question optimization module, used to obtain user information, extract user features of the user information, and adjust and optimize the initial question set according to the user features to obtain a personalized question set; The questionnaire generation module is used to input the personalized question set into a preset questionnaire structure optimization system, perform structured processing on the personalized question set through the questionnaire structure optimization system, and generate a clinical trial questionnaire.

9. A device for generating a clinical trial questionnaire, characterized in that: The clinical trial questionnaire generation device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the clinical trial questionnaire generation device to perform the steps of the clinical trial questionnaire generation method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the method for generating a clinical trial questionnaire as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Self-supervised learning contract template generation method based on trade system platform

    CN119250050A

  • Data generation method and device, equipment, storage medium and product

    CN119337918A

  • Digital human interaction method and system based on knowledge graph, medium and product program

    CN119884388A

  • Digital human interaction method and system based on knowledge graph, medium and product program

    CN119884388B

  • Electronic check problem sequence design optimization method and device and storage medium

    CN120069947A