Method and system for generating change contracts for clinical trial projects
By decomposing the clinical trial project change data in a structured and multi-dimensional manner, building an association network and dependency graph, the identification and semantic encoding of key change paths are realized, which solves the problems of insufficient data processing and logical contradictions in terms generation in the existing system, and improves Ensure the accuracy and consistency of the contract changes.
Patent Information
- Application Number
- CN202410974480.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The existing clinical trial project change contract generation system suffers from insufficient data processing, lack of semantic understanding, logical contradictions in contract clause generation, and lack of consistency checks and version control. As a result, the generated contracts may contain errors and inaccuracies, making it difficult to meet complex changes. needs.
By acquiring and preprocessing clinical trial project change data, perform structured and multi-dimensional decomposition, build change association networks and dependency graphs, use semantic coding and path analysis to identify key change paths, match and reorganize contract terms, and conduct consistency checks and formats Processing and generating target change contract documents.
It improves the accuracy and consistency of the clinical trial project change contract generation, ensures the standardization and traceability of the contract, and enhances the comprehensive coverage of the change content and the logical coherence of the terms.
Smart Images

Figure CN118520863B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a method and system for generating a change contract for a clinical trial project. Background Art
[0002] Clinical trial projects often face various changes during their execution, which may involve multiple aspects such as trial plans, time arrangements, and resource allocation. Traditional methods of generating change contracts mainly rely on manual operations, which are not only time-consuming and labor-intensive, but also prone to omissions and errors. As the scale and complexity of clinical trial projects continue to increase, the manual method of processing change contracts can no longer meet current needs, and an efficient and accurate automated contract generation method is urgently needed.
[0003] Existing automated contract generation systems often have several major problems: the processing of change data is not comprehensive and in-depth enough, making it difficult to accurately capture the nature and impact of changes; secondly, the matching and generation process of contract terms lacks semantic understanding and context adaptation, resulting in logical contradictions or inapplicability of the generated contract terms; thirdly, there is a lack of effective consistency checking and version control mechanisms for the generated contract documents, making it difficult to ensure the accuracy and traceability of the contract. In addition, when dealing with complex clinical trial changes, existing systems often find it difficult to effectively analyze the correlation and impact paths between changes, resulting in the generated contracts possibly not being able to fully cover all relevant changes. At the same time, due to the lack of intelligent management and matching mechanisms for contract templates and terms, it is difficult for the system to flexibly select and combine the most suitable contract terms according to the specific changes. Summary of the invention
[0004] The present application provides a method and system for generating a change contract for a clinical trial project, which are used to improve the accuracy of generating a change contract for a clinical trial project.
[0005] In a first aspect, the present application provides a method for generating a contract for a change of a clinical trial project, the method for generating a contract for a change of a clinical trial project comprising:
[0006] Acquire clinical trial project change data, and preprocess the clinical trial project change data to obtain structured change data;
[0007] Performing multi-dimensional decomposition on the structured change data to obtain a set of change elements, and performing change impact analysis on the set of change elements to obtain a change association network;
[0008] Performing path analysis and weight calculation on the change association network to obtain a key change path, and performing semantic encoding on the structured change data to obtain a change content semantic vector;
[0009] Matching clauses of the contract knowledge base according to the key change path to obtain a candidate set of clauses, and calculating similarity of the contract template base according to the semantic vector of the change content to obtain a candidate contract template;
[0010] Performing semantic reorganization and context adaptation on the candidate set of clauses to obtain initial contract clauses, and performing consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses;
[0011] The candidate contract template and the optimized contract clauses are formatted and version controlled to generate a target change contract document.
[0012] In a second aspect, the present application provides a system for generating a contract for changing a clinical trial project, the system for generating a contract for changing a clinical trial project comprising:
[0013] An acquisition module, used to acquire clinical trial project change data, and pre-process the clinical trial project change data to obtain structured change data;
[0014] A decomposition module, used to perform multi-dimensional decomposition on the structured change data to obtain a set of change elements, and perform change impact analysis on the set of change elements to obtain a change association network;
[0015] A calculation module, used to perform path analysis and weight calculation on the change association network to obtain a key change path, and to perform semantic encoding on the structured change data to obtain a change content semantic vector;
[0016] A matching module, configured to match clauses of a contract knowledge base according to the key change path to obtain a candidate set of clauses, and to calculate similarity of a contract template base according to the semantic vector of the change content to obtain a candidate contract template;
[0017] An optimization module, used for performing semantic reorganization and context adaptation on the candidate set of clauses to obtain initial contract clauses, and performing consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses;
[0018] A generation module is used to format and version control the candidate contract template and the optimized contract terms to generate a target change contract document.
[0019] The third aspect of the present application provides a change contract generation device for a clinical trial project, comprising: 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 change contract generation device for the clinical trial project to execute the above-mentioned change contract generation method for the clinical trial project.
[0020] A fourth aspect of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned method for generating a change contract for a clinical trial project.
[0021] In the technical solution provided by this application, the structuring and standardization of change data are ensured through relationship extraction and topic modeling, and the change data is decomposed from multiple angles by feature vectorization. By constructing a change association network and a change dependency graph, the relationship and impact path between the changes are intuitively displayed. Combined with path analysis and weight calculation, the key change path is accurately identified. The pre-trained word embedding model and attention mechanism are used to achieve deep semantic encoding of the change content and improve the accuracy of semantic understanding. Through similarity calculation and screening, accurate clause matching is achieved, and the relevance of contract generation is improved. Based on the similarity calculation of semantic vectors, intelligent contract template selection is achieved, and the accuracy of template application is improved. The semantic coherence of the reorganized clauses is ensured through clustering and coherence scoring. Using semantic dependency analysis and logical contradiction point detection, potential clause conflicts are fully identified, the consistency of the contract is improved, the standardization and professionalism of the generated documents are ensured, reliable version control and document certification are achieved, and the change content is accurately presented by comparing the differences with the original contract, thereby improving the accuracy of the generation of change contracts for clinical trial projects. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 A schematic diagram of an embodiment of a method for generating a change contract for a clinical trial project in an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of an embodiment of a system for generating a change contract for a clinical trial project in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The present application embodiment provides a method and system for generating a change contract for a clinical trial project. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than the content illustrated or described here. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 An embodiment of the method for generating a change contract for a clinical trial project in the embodiments of the present application includes:
[0027] Step S101, obtaining clinical trial project change data, and preprocessing the clinical trial project change data to obtain structured change data;
[0028] It is understandable that the execution subject of the present application can be a system for generating a contract for changing a clinical trial project, or a terminal or a server, which is not specifically limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0029] Specifically, the clinical trial project change data is obtained, and the clinical trial project change data is cleaned and formatted to obtain standardized change data. According to the predefined entity type list, named entity recognition is performed on the standardized change data to obtain entity annotation data. By identifying and annotating important entities, the core information of the data is ensured to be retained and correctly interpreted. Relationship extraction is performed on the entity annotation data to obtain an entity relationship network, and semantic segmentation is performed on the standardized change data according to the entity relationship network to obtain a semantic unit set. Through relationship extraction and semantic segmentation, the correlation between data can be better understood to form a semantic unit set. The semantic unit set is subjected to topic modeling to obtain a change topic distribution, and the semantic unit set is subjected to cluster analysis according to the change topic distribution to obtain a change category label. Topic modeling and cluster analysis can help identify and classify the main topics and categories in the change data, making the data structured more clearly. The change category label and the semantic unit set are associated and mapped to obtain classified structured data, and the classified structured data is subjected to time series analysis according to a preset timing rule to obtain a change event sequence. Through association mapping and time series analysis, the time sequence and logical relationship of change events are identified to form a complete change event sequence. The change event sequence and classified structured data are integrated and indexed to obtain structured change data.
[0030] Step S102: performing multi-dimensional decomposition on the structured change data to obtain a set of change elements, and performing change impact analysis on the set of change elements to obtain a change association network;
[0031] Specifically, feature vectorization is performed on the structured change data to obtain a high-dimensional feature matrix, and principal component dimension reduction is performed on the high-dimensional feature matrix to obtain a feature representation after dimension reduction. Through feature vectorization, the change data is converted into a high-dimensional feature matrix, and then the principal component dimension reduction technology is used to reduce the data dimension and retain the main features and information of the data. Cluster analysis is performed on the structured change data according to the feature representation after dimension reduction to obtain a change category set. Through cluster analysis, change data with similar features are classified into the same category to form a change category set. Semantic parsing is performed on each category in the change category set to obtain a change element descriptor, and a change element set is generated based on the change element descriptor. The semantic parsing step extracts key change element descriptors by deeply analyzing the change data in each category to generate a change element set. Association rule mining is performed on the change element set to obtain association rules between elements, and the element influence weights are calculated based on the association rules between elements to obtain a weighted element set. Association rule mining can discover the potential relationship between change elements, and by calculating the element influence weights, the importance of each element in the change process is determined to form a weighted element set. A directed graph model is constructed for the weighted element set to obtain a change propagation network, and the change propagation network is topologically sorted to obtain a change impact sequence. By constructing a directed graph model, the impact relationship between change elements is intuitively represented, and the order of change impact is determined through topological sorting to form a change impact sequence. A change association network is constructed based on the change impact sequence and the weighted element set.
[0032] Step S103: Perform path analysis and weight calculation on the change association network to obtain the key change path, and perform semantic encoding on the structured change data to obtain a semantic vector of the change content;
[0033] Specifically, the change association network is topologically sorted to obtain a change node sequence, and the change association network is converted into a directed acyclic graph according to the change node sequence to obtain a change dependency graph. Through topological sorting, the processing order of the change nodes is determined, and the directed acyclic graph conversion is used to eliminate the circular dependency and form a clear change dependency structure. A depth-first search is performed on the change dependency graph to obtain a change path set, and each path in the change path set is weighted according to a preset change impact factor to obtain a weighted change path set. Through depth-first search, all possible change paths are traversed, and the impact of each path is quantified using a preset change impact factor to form a weighted change path set. The weighted change path set is sorted by path importance to obtain a path importance sorting result, and the key change path is selected according to the path importance sorting result. Path importance sorting can help identify the most influential change path, thereby ensuring the accuracy and reliability of the key change path. The structured change data is segmented to obtain a change word unit sequence, and the change word unit sequence is vectorized according to a pre-trained word embedding model to obtain a word unit vector matrix. The word segmentation process converts the change data into a basic word sequence, and the pre-trained word embedding model converts these words into vector representations to form a word vector matrix. The word vector matrix is weighted and summed using the attention mechanism to obtain a preliminary semantic vector, and the preliminary semantic vector is normalized to obtain the semantic vector of the changed content. The weighted summation of the attention mechanism can highlight important semantic information, while the normalization process ensures the stability and consistency of the semantic vector.
[0034] Step S104: Match the clauses of the contract knowledge base according to the key change path to obtain a candidate clause set, and calculate the similarity of the contract template library according to the semantic vector of the change content to obtain a candidate contract template;
[0035] Specifically, node features are extracted from the key change path to obtain a change feature vector set, and the contract knowledge base is preliminarily screened based on the change feature vector set to obtain a subset of relevant clauses. Semantic encoding is performed on the subset of relevant clauses to obtain a clause semantic vector set, and cosine similarity is calculated between the change feature vector set and the clause semantic vector set to obtain a clause matching matrix. The relevant clause subset is converted into a semantic vector set through semantic encoding technology, and then the similarity between the change feature vector set and the clause semantic vector set is evaluated by cosine similarity calculation to form a clause matching matrix. Threshold filtering and redundancy analysis are performed on the clause matching matrix. By setting a similarity threshold, clauses with low similarity are filtered out. At the same time, redundancy analysis is performed to remove redundant clauses and obtain a candidate clause set. The change content semantic vector is dimensionally expanded to obtain an extended semantic vector, and the templates in the contract template library are vectorized based on the extended semantic vector to obtain a template vector set. By dimensionally expanding the change content semantic vector, the richness of semantic information is increased to better match the templates in the contract template library. The dot product operation is performed on the extended semantic vector and the template vector set to obtain a template similarity list, and the template with the highest similarity is selected according to the template similarity list to obtain a candidate contract template. The dot product operation can effectively evaluate the similarity between the extended semantic vector and the template vector set, so as to select the most matching template according to the similarity list to form a candidate contract template.
[0036] Step S105: semantically reorganize and context-adapt the clause candidate set to obtain initial contract clauses, and perform consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses;
[0037] Specifically, by calculating the semantic similarity between clauses and constructing a similarity matrix, similar clauses are classified into the same semantic cluster using a hierarchical clustering algorithm, thereby forming clause semantic clusters. Subject extraction is performed on clause semantic clusters to obtain a cluster subject word set, and the clause semantic clusters are sorted according to the cluster subject word set to obtain an ordered clause sequence. Subject extraction is performed on each semantic cluster to identify the core subject words of each cluster, and then the clause semantic clusters are sorted according to these subject words to form an ordered clause sequence, thereby ensuring the logical order and coherence of the clauses in the contract. Coherence scoring is performed on the ordered clause sequence, and a clause coherence list is generated by evaluating the logical coherence between clauses. The clauses are then rearranged according to the list to obtain the initial contract clauses, thereby ensuring the logical coherence and readability of the contract clauses. Semantic dependency analysis is performed on the initial contract clauses, and a dependency tree between clauses is constructed to identify the logical relationship in the contract clauses, and the logical contradictions are detected to form a set of conflicting clause pairs. Conflict resolution is performed on the set of conflicting clause pairs. By analyzing and adjusting the conflicting clause pairs, the logical conflicts between the clauses are eliminated, and then the adjusted clause set is merged with other non-conflicting clauses to finally generate optimized contract terms.
[0038] Step S106: Format and version control the candidate contract template and optimized contract terms to generate a target change contract document.
[0039] Specifically, by analyzing the structure of the contract template, a template structure tree is formed, and then the optimized contract terms are mapped to the preliminary contract document in sections according to the mapping relationship of the structure tree to ensure the overall structure and logic of the contract. The preliminary contract document is processed in a unified style to obtain a formatted contract document, and the formatted contract document is numbered according to the preset contract numbering rules to obtain a numbered contract document. The style unification process ensures the consistency of the contract document in terms of format, font, paragraph, etc., so that the contract document looks neat and professional. According to the preset contract numbering rules, the formatted contract document is numbered to ensure that each clause and paragraph has a unique identifier, forming a numbered contract document, which is convenient for subsequent reference and search. The directory of the numbered contract document is automatically generated to obtain a contract document with a directory, and a contract metadata set is extracted according to the contract document with a directory. The directory automatic generation step automatically generates a directory of the contract by parsing the structure and numbering information of the numbered contract document, so that the hierarchy and terms of the contract are clear at a glance and easy to consult. At the same time, according to the contract document with a directory, a metadata set of the contract is extracted, including key information such as the contract title, clause title, and clause number. The version tagging step is to add version information to the contract document with directory and the contract metadata set to form a versioned contract document, and the contract document fingerprint is calculated based on the versioned contract document. The version tagging step ensures the version traceability and manageability of the contract document by adding version information to the contract document with directory and the contract metadata set. At the same time, by calculating the contract document fingerprint, a unique fingerprint information is generated for subsequent digital signature and difference comparison. The versioned contract document and the contract document fingerprint are digitally signed to obtain a signed contract document, and the signed contract document is compared with the original contract to generate the target changed contract document. The digital signature step ensures the integrity and immutability of the contract document by encrypting and signing the versioned contract document and the contract document fingerprint. By comparing the difference between the signed contract document and the original contract, the changed parts and differences are identified, and the target changed contract document is finally generated to ensure the accuracy of the contract and the transparency of the change.
[0040] In the embodiment of the present application, the structuring and standardization of the change data are ensured through relationship extraction and topic modeling, and the change data is decomposed from multiple angles by feature vectorization. By constructing a change association network and a change dependency graph, the relationship and impact path between the changes are intuitively displayed. Combined with path analysis and weight calculation, the key change path is accurately identified. The pre-trained word embedding model and attention mechanism are used to achieve deep semantic encoding of the change content, and the accuracy of semantic understanding is improved. Through similarity calculation and screening, accurate clause matching is achieved, and the relevance of contract generation is improved. Based on the similarity calculation of semantic vectors, intelligent contract template selection is achieved, and the accuracy of template application is improved. Through clustering and coherence scoring, the semantic coherence of the reorganized clauses is ensured. Using semantic dependency analysis and logical contradiction point detection, potential clause conflicts are fully identified, the consistency of the contract is improved, the standardization and professionalism of the generated documents are ensured, reliable version control and document certification are achieved, and the change content is accurately presented by comparing the difference with the original contract, thereby improving the accuracy of the change contract generation of the clinical trial project.
[0041] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0042] (1) Obtain clinical trial project change data, clean the data and unify the format of the clinical trial project change data to obtain standardized change data;
[0043] (2) Based on the predefined list of entity types, named entity recognition is performed on the standardized change data to obtain entity annotation data;
[0044] (3) Perform relationship extraction on the entity annotation data to obtain the entity relationship network, and perform semantic segmentation on the standardized change data based on the entity relationship network to obtain a set of semantic units;
[0045] (4) Perform topic modeling on the semantic unit set to obtain the change topic distribution, and perform cluster analysis on the semantic unit set based on the change topic distribution to obtain the change category label;
[0046] (5) Perform association mapping between the change category labels and the semantic unit set to obtain classified structured data, and perform time series analysis on the classified structured data according to the preset time series rules to obtain the change event sequence;
[0047] (6) Integrate and index the change event sequence and classified structured data to obtain structured change data.
[0048] Specifically, clinical trial project change data are collected from different data sources. These data sources may include electronic health records, clinical trial management systems, patient-reported results, etc. The collected data may have problems such as inconsistent formats, missing values, and noisy data. Data cleaning and format unification are required to ensure the accuracy and consistency of the data. Use methods to fill missing values, such as using the mean, median, or most common value, or use interpolation methods to estimate missing values based on adjacent data points. Remove noisy data and use smoothing, aggregation, or data discretization methods to reduce the impact of noise on the data. For example, use the moving average method to smooth time series data:
[0049] ;
[0050] in, represents the smoothed data, Represents the size of the sliding window. Format unification includes converting the data into a unified format and unit, such as unifying the date format in different data sources to YYYY-MM-DD, and converting measurements in different units to the same unit. After data cleaning and format unification, standardized change data is obtained. Named entity recognition is performed on the data according to the predefined list of entity types to identify key entities in the change data, such as patients, drugs, trial stages, etc. Relationship extraction is performed on the entity annotation data to build an entity relationship network. Relationship extraction is to identify the relationship between entities, such as the relationship between patients and drug use, the progress relationship between trial stages, etc. Assumptions Represents a set of relationship types, and obtains an entity relationship network through a relationship extraction model ,in It is a graph where nodes represent entities and edges represent relationships between entities. The relation extraction model can be expressed as:
[0051] ;
[0052] in, It is a relation extraction model. is a set of relationship types. Semantic segmentation is performed on the standardized change data according to the entity relationship network to obtain a set of semantic units. The standardized change data is divided into units with independent semantics, each of which represents a complete semantic segment. Semantic segmentation can identify different semantic segments by analyzing the nodes and edges in the entity relationship network. Assume Represents a set of semantic units, which can be obtained through the semantic segmentation model:
[0053] ;
[0054] in, is a semantic segmentation model, is a set of semantic units. Perform topic modeling on the set of semantic units to identify the topic distribution in the change data. Topic modeling is to identify potential topics in the data through statistical methods. Each topic represents a group of semantic units with similar semantics. Common topic modeling methods include latent Dirichlet allocation. Perform cluster analysis on the set of semantic units according to the change topic distribution to obtain the change category label. The set of semantic units is grouped according to the topic, and each group represents a change category. Assume Represents the set of change category labels, and the clustering model can be used to obtain:
[0055] ;
[0056] in, is a clustering model, is a set of change category labels. The change category labels and the semantic unit set are associated and mapped to obtain classified structured data. The change category labels are mapped to the units in the semantic unit set to generate classified structured data. Assume Represents classified structured data. Through the association mapping model, we can get:
[0057] ;
[0058] in, is an association mapping model, It is classified structured data. According to the preset time series rules, the classified structured data is analyzed in time series to obtain the change event sequence. By analyzing the time information in the classified structured data, the time series of the change event is identified. Assume Represents the sequence of change events. Through the time series analysis model, we can get:
[0059] ;
[0060] in, is a time series analysis model, is a sequence of change events. The change event sequence and the classified structured data are integrated and indexed to obtain structured change data. Integration and indexing is to integrate the change event sequence with the classified structured data to generate a searchable structured change data set. Assume Represents structured change data. By integrating and indexing the model, we can get:
[0061] ;
[0062] in, is the integration and indexing model, It is structured change data.
[0063] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0064] (1) Perform feature vectorization on the structured change data to obtain a high-dimensional feature matrix, and then perform principal component dimensionality reduction on the high-dimensional feature matrix to obtain a feature representation after dimensionality reduction;
[0065] (2) Perform cluster analysis on the structured change data based on the feature representation after dimensionality reduction to obtain a set of change categories;
[0066] (3) Perform semantic analysis on each category in the change category set to obtain a change element descriptor, and generate a change element set based on the change element descriptor;
[0067] (4) Perform association rule mining on the change factor set to obtain the association rules between the factors, and calculate the factor influence weights based on the association rules between the factors to obtain the weighted factor set;
[0068] (5) Construct a directed graph model for the weighted element set to obtain a change propagation network, and perform topological sorting on the change propagation network to obtain a change impact sequence;
[0069] (6) Construct a change association network based on the change impact sequence and weighted factor set.
[0070] Specifically, feature vectorization is performed on the structured change data, and each change record is represented as a high-dimensional feature vector. These vectors form a high-dimensional feature matrix. Suppose there is a structured change data set , which contains Change records, each record has After the features are processed by feature vectorization, a high-dimensional feature matrix is formed. It can be expressed as:
[0071] ;
[0072] in Indicates Record No. Features. Perform principal component analysis to achieve dimensionality reduction. Project the original high-dimensional data into a low-dimensional subspace through linear transformation while preserving the variance of the data as much as possible. Perform cluster analysis on the structured change data based on the feature representation after dimensionality reduction to identify different categories in the structured change data. Common clustering methods include K-means, hierarchical clustering, etc. Assuming that K-means clustering is used, the feature representation after dimensionality reduction is Divided into categories, each of which corresponds to a set of change category labels The goal of K-means clustering is to minimize the sum of the squared distances from each data point in each category to its cluster center:
[0073] ;
[0074] in, is the eigenvector after dimensionality reduction, Yes Category After obtaining the set of change categories through cluster analysis, semantic analysis is performed on each category to extract the change element descriptor. Semantic analysis uses natural language processing technology to extract key change elements from the change record, such as change type, impact scope, and involved entities. Assume that the change element descriptor is ,in is the number of descriptors. Generate a set of changed elements based on the changed element descriptors , expressed as:
[0075] ;
[0076] Perform association rule mining on the set of changed elements to identify potential associations between elements. Association rule mining can use the Apriori algorithm or the FP-growth algorithm to find frequent item sets and association rules. Assume that the association rule between elements is , where each rule It can be expressed as (If a feature collection appears , then the element set Y is likely to appear). By calculating the support and confidence of the association rules, a weighted element set is obtained, where the weight of each element pair is It is expressed as:
[0077] ;
[0078] Among them, support express and Frequency of co-occurrence, confidence Indicated in Under the conditions of occurrence The probability of occurrence. According to the weighted element set Building a directed graph model , where nodes represent change elements, edges represent associations between elements, and edge weights are the weights of association rules. Through the directed graph model, a change propagation network is obtained. Topological sorting is performed on the change propagation network to determine the order of influence of each element. Topological sorting can be achieved through depth-first search or Kahn algorithm to generate a change impact sequence , represented as an ordered list of elements:
[0079] ;
[0080] in, represents the first factors. and weighted feature collections Building a change association network , change the associated network It is a directed weighted graph, where nodes represent change elements, edges represent the relationship between elements, and the weight of the edge is determined by the weighted element set. The node set in is , the edge set is ,but It is expressed as:
[0081] ;
[0082] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0083] (1) Topologically sort the change association network to obtain a change node sequence, and then convert the change association network into a directed acyclic graph based on the change node sequence to obtain a change dependency graph;
[0084] (2) Perform a depth-first search on the change dependency graph to obtain a set of change paths, and calculate the weight of each path in the change path set according to the preset change impact factor to obtain a weighted change path set;
[0085] (3) Sort the weighted change path set by path importance to obtain the path importance sorting result, and select the key change path based on the path importance sorting result;
[0086] (4) Perform word segmentation on the structured change data to obtain a change word sequence, and then vectorize the change word sequence according to the pre-trained word embedding model to obtain a word vector matrix;
[0087] (5) Perform a weighted summation of the word vector matrix using the attention mechanism to obtain a preliminary semantic vector, and then normalize the preliminary semantic vector to obtain the changed content semantic vector.
[0088] Specifically, a change node sequence is obtained through topological sorting, and the change association network is converted into a directed acyclic graph according to the sequence to form a change dependency graph. In this process, it is assumed that the change association network By node set and edge sets Each node represents a change element, and each edge represents the dependency between change elements. Topological sorting is a method of linearly sorting a directed acyclic graph so that for each edge ,node Appears at a node in the sequence Before. Topological sorting can be achieved through the depth-first search algorithm. The recursive process of the depth-first search algorithm will traverse each node in the graph and record the access order to generate a topological sorting result. Specifically, a stack is set to store the visited nodes, and the nodes are pushed into the stack when the recursion returns. The final node order in the stack is the node sequence after topological sorting. According to the change node sequence, the change-related network is converted into a directed acyclic graph to form a change dependency graph. Perform a depth-first search on the change dependency graph to obtain a set of change paths. Each path in the change path set represents all possible paths from a certain change node to another node. The depth-first search will traverse all paths in the graph and record the node sequence of each path. Weight calculation is performed on each path. The black ones have preset change impact factors , which is used to measure the importance of each path. , and its weight calculation formula is:
[0089] ;
[0090] in, Indicates a change node and Through the above formula, we can get the weighted change path set: , where the weight of each path is expressed as . Sort the weighted change path set by path importance, and sort them from large to small by weight to obtain the path importance sorting results. According to the path importance sorting results, select the paths with the highest weights as the key change paths. These paths reflect the most important change relationships and impact chains in the change process. Perform word segmentation on the structured change data and decompose each change record into a sequence of tokens. Word segmentation can use natural language processing technology to convert text data into a sequence of tokens. For example, the sentence "The patient's dosage of drug A has increased" can be segmented into "patient", "use", "drug A", "dose", and "increase". After obtaining the change token sequence, use a pre-trained word embedding model (such as Word2Vec, GloVe, or BERT) to vectorize the token sequence to obtain a token vector matrix. . Assume that the length of the word sequence is , the embedding vector dimension of each word is , then the word element vector matrix is expressed as:
[0091] ;
[0092] in, Indicates The word embedding vector of the word unit. Perform weighted summation of the attention mechanism to obtain a preliminary semantic vector The attention mechanism calculates the attention weight of each word, highlights the information of important words, and obtains the representation of the sentence by weighted summation of all words. Set the attention weight to , the calculation formula of the preliminary semantic vector is:
[0093] ;
[0094] in, Indicates The attention weight of the word unit. Perform normalization to obtain the semantic vector of the changed content Normalization is done by scaling each element of a vector to a certain range, such as by L2 norm normalization, so that the length of the vector is 1:
[0095] ;
[0096] in, Representation vector The L2 norm of .
[0097] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0098] (1) Extract node features from key change paths to obtain a change feature vector set, and preliminarily screen the contract knowledge base based on the change feature vector set to obtain a subset of relevant clauses;
[0099] (2) Semantically encode the relevant clause subsets to obtain the clause semantic vector set, and calculate the cosine similarity between the change feature vector set and the clause semantic vector set to obtain the clause matching matrix;
[0100] (3) Perform threshold filtering and redundancy analysis on the clause matching matrix to obtain a candidate set of clauses;
[0101] (4) Expanding the dimension of the semantic vector of the changed content to obtain an extended semantic vector, and vectorizing the templates in the contract template library according to the extended semantic vector to obtain a template vector set;
[0102] (5) Perform a dot product operation on the extended semantic vector and the template vector set to obtain a template similarity list, and select the template with the highest similarity based on the template similarity list to obtain a candidate contract template.
[0103] Specifically, identify the characteristics of each node in the critical change path. Assume that the critical change path consists of a series of nodes Each node represents a specific change factor. Extract features from each node and generate the corresponding feature vector These feature vectors can include the semantic information of the node, the change time, the entities involved, etc. The feature vector set can be expressed as:
[0104] ;
[0105] in, Indicates The contract knowledge base is preliminarily screened according to the change feature vector set. The contract knowledge base contains multiple clauses, each of which can also be represented as a feature vector. By comparing the change feature vector set with the clause feature vectors in the contract knowledge base, the clauses related to the change path are screened out to obtain the relevant clause subset. Assume that the clause feature vector in the contract knowledge base is , the preliminary screening process can be achieved by calculating the similarity between the change feature vector and the clause feature vector. Semantic encoding is performed on the relevant clause subset to obtain the clause semantic vector set. Semantic encoding can be achieved by pre-trained word embedding models (such as Word2Vec, GloVe or BERT) to convert the clause text into a semantic vector. Assume that the relevant clause subset is , the corresponding clause semantic vector set is ,in It is In order to further filter the terms, the cosine similarity between the change feature vector set and the term semantic vector set is calculated to obtain the term matching matrix. The cosine similarity measures the similarity between two vectors, and its formula is:
[0106] ;
[0107] in, and are the change feature vector and clause semantic vector respectively, Represents their cosine similarity. Threshold filtering and redundancy analysis are performed on the clause matching matrix. Threshold filtering sets a similarity threshold to filter out clauses with similarity higher than the threshold and remove irrelevant or low similarity clauses. Redundancy analysis detects the repetition between clauses, removes redundant clauses, and obtains a candidate set of clauses. The semantic vector of the changed content is dimensionally expanded to obtain an extended semantic vector. Dimensional expansion can be achieved by adding contextual information of the changed content or introducing additional semantic features, making the semantic vector more comprehensive and accurate. Assume that the expanded semantic vector is , which has a higher dimension than the original semantic vector. The templates in the contract template library are vectorized according to the extended semantic vector to obtain a template vector set. Each template in the contract template library can also be represented as a semantic vector, and the similarity of the template is evaluated by comparing it with the extended semantic vector. Assume that the template vector set is ,in It is The vector representation of the template. Perform dot product operation on the extended semantic vector and the template vector set to obtain a template similarity list. The dot product operation is used to calculate the inner product of two vectors, and its formula is:
[0108] ;
[0109] in, is the extended semantic vector, It is A vector of templates, Indicates their similarity scores. According to the template similarity list, the template with the highest similarity is selected to obtain a candidate contract template. In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0110] (1) Calculate the semantic similarity of the candidate set of clauses to obtain a clause similarity matrix, and perform hierarchical clustering on the clause similarity matrix to obtain clause semantic clusters;
[0111] (2) Extract topics from clause semantic clusters to obtain cluster subject word sets, and sort clause semantic clusters according to the cluster subject word sets to obtain an ordered clause sequence;
[0112] (3) Score the coherence of the ordered clause sequence to obtain a clause coherence list, and rearrange the clauses according to the clause coherence list to obtain the initial contract terms;
[0113] (4) Perform semantic dependency analysis on the initial contract terms to obtain a term dependency tree, and detect logical contradictions based on the term dependency tree to obtain a set of conflicting term pairs;
[0114] (5) Resolve conflicts on the set of conflicting clauses to obtain an adjusted clause set, and merge the adjusted clause set with the non-conflicting clauses to obtain the optimized contract clauses.
[0115] Specifically, the clause similarity matrix is generated by calculating the semantic similarity between clauses. The commonly used semantic similarity measurement method is cosine similarity, and its formula is:
[0116] ;
[0117] in, and are the semantic vectors of the two terms, Represents their cosine similarity. By calculating the cosine similarity of each pair of terms, we get the term similarity matrix , where each element Terms of Use and Terms The similarity between them is calculated by . Hierarchical clustering is performed on the clause similarity matrix to obtain clause semantic clusters. Hierarchical clustering is a clustering method that gradually merges similar objects into clusters. Commonly used methods include agglomerative hierarchical clustering (bottom-up) and divisive hierarchical clustering (top-down). Through hierarchical clustering, similar clauses are clustered together to form multiple clause semantic clusters. The clause semantic clusters are subjected to topic extraction to obtain cluster subject word sets. By analyzing the content of the clauses in each cluster, the subject words that can represent the cluster are extracted. For example, the latent Dirichlet allocation model is used to identify the subject word set of each cluster. The clause semantic clusters are sorted according to the cluster subject word set to obtain an ordered clause sequence. The sorting process is based on the importance of the subject words and the logical order of the clauses to ensure that the clauses are coherent and easy to understand after arrangement. The ordered clause sequence is scored for coherence to obtain a clause coherence list. The coherence score is scored by evaluating the logical relationship and semantic fluency between clauses. For example, a language model can be used to calculate the transition probability between clauses. The coherence score formula is:
[0118] ;
[0119] in, Terms of Use and The coherence of Indicated in the terms After that, the terms The probability of . The clauses are rearranged according to the coherence list to obtain the initial contract clauses, ensuring that the arrangement of the clauses in the contract is logically clear and coherent. Semantic dependency analysis is performed on the initial contract clauses to obtain a clause dependency tree. Semantic dependency analysis identifies the subject-verb-object relationship and its modification relationship in each clause by constructing a syntactic dependency tree. Suppose there is a sentence Included terms , the dependency tree can be expressed as
[0120] ;
[0121] in, and are the words in the clause, is the dependency relationship between them. Through the dependency tree, we can detect the logical contradictions between the clauses and identify the set of conflicting clause pairs. Conflict resolution is performed on the set of conflicting clause pairs to obtain the adjusted clause set. Conflict resolution ensures that there is no logical conflict between the contract clauses by modifying or rewriting the conflicting clauses. For example, if there is a conflict between clause A and clause B, the conflict can be resolved by adding an explanatory clause or modifying the content of the clause. The adjusted clause set is merged with the non-conflicting clauses to obtain the optimized contract clauses. The optimized contract clauses are not only logically consistent but also conflict-free, ensuring the integrity and rationality of the contract content.
[0122] In a specific embodiment, the process of executing step S106 may specifically include the following steps:
[0123] (1) Perform structural analysis on the candidate contract templates to obtain a template structure tree, and segmentally map the optimized contract terms based on the template structure tree to obtain a preliminary contract document;
[0124] (2) The preliminary contract document is processed in a unified format to obtain a formatted contract document, and the formatted contract document is numbered according to a preset contract numbering rule to obtain a numbered contract document;
[0125] (3) Automatically generate a directory for the numbered contract document to obtain a contract document with a directory, and extract a contract metadata set based on the contract document with a directory;
[0126] (4) Version-marking the contract document with directory and the contract metadata set to obtain a versioned contract document, and calculating the contract document fingerprint based on the versioned contract document;
[0127] (5) Digitally sign the versioned contract document and the contract document fingerprint to obtain the signed contract document, and compare the signed contract document with the original contract to generate the target changed contract document.
[0128] Specifically, the candidate contract template is structurally analyzed. Contract templates usually contain multiple levels of structure, such as chapters, clauses, sub-clauses, etc. By analyzing the structure of the contract template, a template structure tree is formed. , where nodes represent different parts of the template and edges represent hierarchical relationships. Assume that the node set in the template structure tree is , the edge set is , then the template structure tree is represented as . According to the template structure tree, the contract terms will be optimized Map to the corresponding template node to generate a preliminary contract document During the mapping process, ensure that each contract clause is assigned to the correct template position to maintain the logical structure and continuity of the contract content. Perform style unification on the preliminary contract document to ensure that the document is consistent in terms of format, font, paragraph style, etc. Style unification includes setting a unified title style, body style, indentation and line spacing, etc., to ensure the professionalism and readability of the contract document. Assume that the unified contract document is Format contract documents according to the preset contract numbering rules Perform numbering processing to generate numbered contract documents The numbering rules are usually based on the hierarchical structure of the contract, such as chapter numbering, clause numbering, and sub-clause numbering. The formula for numbering can be expressed as:
[0129] ;
[0130] in, Terms of Use Number, section 、clause and subclause Respectively indicate terms The number of the section, clause, or subclause in which it is located. Automatically generate a directory. Automatically generate a directory by parsing the number and title information in the document to generate the directory structure of the contract. The generated directory contains chapter titles and corresponding page numbers to ensure the navigability and easy search of the contract content. Suppose the generated contract document with a directory is . According to the contract document with catalog Extract the contract metadata set The contract metadata set contains key information of the contract, such as the contract title number, date, signatory, etc. The process of extracting the metadata set can be achieved by parsing the key information fields in the document to ensure that the key information of the contract is effectively managed and tracked. and the contract metadata set Mark the version and generate versioned contract documents Versioning ensures that each version of a contract document can be tracked and managed by adding version numbers and timestamps to documents and metadata. The representation of a versioned contract document can be:
[0131] ;
[0132] Among them, version represents the version number and timestamp represents the timestamp. Calculating contract document fingerprints The contract document fingerprint generates a unique identifier by performing a hash operation on the document content to ensure the integrity and immutability of the document. The hash operation formula can be expressed as:
[0133] ;
[0134] Where hash represents a hash function, such as the SHA-256 algorithm. and contract document fingerprint Digitally sign and generate signed contract documents The digital signature generates a digital signature by encrypting the document fingerprint using the signatory's private key to ensure the authenticity of the contract document and the identity authentication of the signatory. The formula for the digital signature can be expressed as:
[0135] ;
[0136] Among them, sign represents the signature function, and private key represents the private key of the signatory. Compare the differences with the original contract and generate the target change contract document The difference comparison compares the content of the signed contract document with the original contract, identifies the changed parts in the contract, generates a change log, and ensures the transparency and traceability of the contract changes. Assume that the result of the difference comparison is , the target change contract document can be expressed as:
[0137] ;
[0138] in, Represents a change log.
[0139] The above describes the method for generating a contract for changing a clinical trial project in the embodiment of the present application. The following describes the system for generating a contract for changing a clinical trial project in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the system for generating a contract for changing a clinical trial project includes:
[0140] The acquisition module 201 is used to acquire clinical trial project change data and pre-process the clinical trial project change data to obtain structured change data;
[0141] Decomposition module 202, used to perform multi-dimensional decomposition on the structured change data to obtain a set of change elements, and perform change impact analysis on the set of change elements to obtain a change association network;
[0142] The calculation module 203 is used to perform path analysis and weight calculation on the change association network to obtain the key change path, and to perform semantic encoding on the structured change data to obtain the semantic vector of the change content;
[0143] The matching module 204 is used to match the terms of the contract knowledge base according to the key change path to obtain a candidate set of terms, and to calculate the similarity of the contract template library according to the semantic vector of the change content to obtain a candidate contract template;
[0144] The optimization module 205 is used to perform semantic reorganization and context adaptation on the candidate set of clauses to obtain initial contract clauses, and to perform consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses;
[0145] The generation module 206 is used to format and version control the candidate contract templates and optimized contract terms to generate a target changed contract document.
[0146] Through the collaboration of the above components, the structure and standardization of change data are ensured through relationship extraction and topic modeling. The change data is decomposed from multiple angles by feature vectorization. By building a change association network and a change dependency graph, the relationship and impact path between changes are intuitively displayed. Combined with path analysis and weight calculation, the key change path is accurately identified. The pre-trained word embedding model and attention mechanism are used to achieve deep semantic encoding of the change content and improve the accuracy of semantic understanding. Through similarity calculation and screening, accurate clause matching is achieved, and the relevance of contract generation is improved. Based on the similarity calculation of semantic vectors, intelligent contract template selection is achieved, and the accuracy of template application is improved. The semantic coherence of the reorganized clauses is ensured through clustering and coherence scoring. Using semantic dependency analysis and logical contradiction point detection, potential clause conflicts are fully identified, the consistency of the contract is improved, the standardization and professionalism of the generated documents are ensured, reliable version control and document certification are achieved, and the change content is accurately presented by comparing the differences with the original contract, thereby improving the accuracy of the generation of change contracts for clinical trial projects.
[0147] The present application also provides a device for generating a change contract for a clinical trial project, the device comprising a memory and a processor, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for generating a change contract for a clinical trial project in the above-mentioned embodiments.
[0148] The present application 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 change contract for the clinical trial project.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0150] 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 application 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. 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.
[0151] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 application.
Claims
1. A method for generating a change contract for a clinical trial project, characterized in that: The method comprises: Acquire clinical trial project change data, and preprocess the clinical trial project change data to obtain structured change data; Performing multi-dimensional decomposition on the structured change data to obtain a set of change elements, and performing change impact analysis on the set of change elements to obtain a change association network; Performing path analysis and weight calculation on the change association network to obtain the key change path, and semantically encoding the structured change data to obtain the semantic vector of the change content; specifically including: topologically sorting the change association network to obtain a change node sequence, and converting the change association network into a directed acyclic graph according to the change node sequence to obtain a change dependency graph; performing depth-first search on the change dependency graph to obtain a change path set, and performing weight calculation on each path in the change path set according to a preset change impact factor to obtain a weighted change path set; sorting the weighted change path set by path importance to obtain a path importance sorting result, and selecting the key change path according to the path importance sorting result; performing word segmentation processing on the structured change data to obtain a change word unit sequence, and vectorizing the change word unit sequence according to a pre-trained word embedding model to obtain a word unit vector matrix; performing weighted summation of the word unit vector matrix using an attention mechanism to obtain a preliminary semantic vector, and normalizing the preliminary semantic vector to obtain a change content semantic vector; According to the key change path, the contract knowledge base is matched with the clauses to obtain a candidate set of clauses, and the contract template library is similarity calculated according to the change content semantic vector to obtain a candidate contract template; specifically including: extracting node features of the key change path to obtain a change feature vector set, and preliminarily screening the contract knowledge base according to the change feature vector set to obtain a relevant clause subset; semantically encoding the relevant clause subset to obtain a clause semantic vector set, and calculating the cosine similarity between the change feature vector set and the clause semantic vector set to obtain a clause matching matrix; performing threshold filtering and redundancy analysis on the clause matching matrix to obtain a candidate set of clauses; dimensionally expanding the change content semantic vector to obtain an extended semantic vector, and vectorizing the templates in the contract template library according to the extended semantic vector to obtain a template vector set; performing dot product operation on the extended semantic vector and the template vector set to obtain a template similarity list, and selecting the template with the highest similarity according to the template similarity list to obtain a candidate contract template; Performing semantic reorganization and context adaptation on the candidate set of clauses to obtain initial contract clauses, and performing consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses; The candidate contract template and the optimized contract clauses are formatted and version controlled to generate a target change contract document.
2. The method for generating a change contract for a clinical trial project according to claim 1, characterized in that: The obtaining of clinical trial project change data and preprocessing of the clinical trial project change data to obtain structured change data includes: Acquire clinical trial project change data, and perform data cleaning and format unification on the clinical trial project change data to obtain standardized change data; According to a predefined list of entity types, named entity recognition is performed on the standardized change data to obtain entity annotation data; Performing relationship extraction on the entity annotation data to obtain an entity relationship network, and performing semantic segmentation on the standardized change data according to the entity relationship network to obtain a semantic unit set; Performing topic modeling on the semantic unit set to obtain a change topic distribution, and performing cluster analysis on the semantic unit set according to the change topic distribution to obtain a change category label; Associatively mapping the change category label and the semantic unit set to obtain classified structured data, and performing time series analysis on the classified structured data according to a preset time series rule to obtain a change event sequence; The change event sequence and the classified structured data are integrated and indexed to obtain structured change data.
3. The method for generating a change contract for a clinical trial project according to claim 1, characterized in that: The multi-dimensional decomposition of the structured change data to obtain a set of change elements, and the change impact analysis of the set of change elements to obtain a change association network includes: Performing feature vectorization processing on the structured change data to obtain a high-dimensional feature matrix, and performing principal component dimensionality reduction on the high-dimensional feature matrix to obtain a feature representation after dimensionality reduction; Performing cluster analysis on the structured change data according to the feature representation after dimensionality reduction to obtain a change category set; Performing semantic analysis on each category in the change category set to obtain a change element descriptor, and generating a change element set according to the change element descriptor; Performing association rule mining on the change element set to obtain the association rules between elements, and calculating the element influence weights according to the association rules between elements to obtain the weighted element set; Constructing a directed graph model for the weighted element set to obtain a change propagation network, and topologically sorting the change propagation network to obtain a change impact sequence; A change association network is constructed according to the change impact sequence and the weighted element set.
4. The method for generating a change contract for a clinical trial project according to claim 1, characterized in that: The semantic reorganization and context adaptation of the candidate set of clauses to obtain initial contract clauses, and the consistency check and conflict resolution of the initial contract clauses to obtain optimized contract clauses include: Calculating semantic similarity of the candidate set of clauses to obtain a clause similarity matrix, and performing hierarchical clustering on the clause similarity matrix to obtain clause semantic clusters; Performing topic extraction on the clause semantic clusters to obtain a cluster subject word set, and sorting the clause semantic clusters according to the cluster subject word set to obtain an ordered clause sequence; Scoring the consistency of the ordered clause sequence to obtain a clause consistency list, and rearranging the clauses according to the clause consistency list to obtain initial contract clauses; Performing semantic dependency analysis on the initial contract terms to obtain a term dependency tree, and detecting logical contradictions based on the term dependency tree to obtain a set of conflicting term pairs; The conflicting clauses are resolved to obtain an adjusted clause set, and the adjusted clause set is merged with the non-conflicting clauses to obtain optimized contract clauses.
5. The method for generating a change contract for a clinical trial project according to claim 1, characterized in that: The step of formatting and version controlling the candidate contract template and the optimized contract clauses to generate a target changed contract document includes: Performing structural analysis on the candidate contract template to obtain a template structure tree, and segmentally mapping the optimized contract terms according to the template structure tree to obtain a preliminary contract document; The preliminary contract document is processed in a unified format to obtain a formatted contract document, and the formatted contract document is numbered according to a preset contract numbering rule to obtain a numbered contract document; Automatically generate a directory for the numbered contract document to obtain a contract document with a directory, and extract a contract metadata set based on the contract document with a directory; Performing version marking on the contract document with directory and the contract metadata set to obtain a versioned contract document, and calculating a contract document fingerprint based on the versioned contract document; The versioned contract document and the contract document fingerprint are digitally signed to obtain a signed contract document, and the signed contract document is compared with the original contract to generate a target changed contract document.
6. A system for generating a change contract for a clinical trial project, characterized in that: A method for generating a change contract for a clinical trial project according to any one of claims 1 to 5, the system comprising: An acquisition module, used to acquire clinical trial project change data, and pre-process the clinical trial project change data to obtain structured change data; A decomposition module, used to perform multi-dimensional decomposition on the structured change data to obtain a set of change elements, and perform change impact analysis on the set of change elements to obtain a change association network; A calculation module, used to perform path analysis and weight calculation on the change association network to obtain a key change path, and to perform semantic encoding on the structured change data to obtain a change content semantic vector; A matching module, configured to match clauses of a contract knowledge base according to the key change path to obtain a candidate set of clauses, and to calculate similarity of a contract template base according to the semantic vector of the change content to obtain a candidate contract template; An optimization module, used for performing semantic reorganization and context adaptation on the candidate set of clauses to obtain initial contract clauses, and performing consistency check and conflict resolution on the initial contract clauses to obtain optimized contract clauses; A generation module is used to format and version control the candidate contract template and the optimized contract terms to generate a target change contract document.
7. A device for generating a change contract for a clinical trial project, characterized in that: The device for generating a change contract for a clinical trial project comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the device for generating a change contract for a clinical trial project to execute the method for generating a change contract for a clinical trial project according to any one of claims 1 to 5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, a method for generating a change contract for a clinical trial project as described in any one of claims 1 to 5 is implemented.
