An artificial intelligence-based disease risk prediction method and system
By creating witness case pairs and training them using a competitive transport neural network, the problems of misjudgment in case matching and insufficient data in longitudinal medical records were solved, achieving more accurate disease risk prediction and providing data sufficiency prompts.
Patent Information
- Application Number
- CN202611346832.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
In existing disease risk prediction methods, irregular sampling and varying record density of longitudinal medical records lead to mismatches in case matching. Furthermore, the repeated use of opposite outcomes of the same medical event, coupled with a lack of competition and insufficient data, affects the accuracy of prediction.
By forming witness case pairs, the degree of matching between positive and negative cases is determined using baseline constraint features and observation opportunity features. This reduces the competitive allocation of shared source quality, and disease risk prediction is formed by training a competitive transport neural network. The prediction results are then combined with the current unallocated amount and coverage.
It improves the accuracy of disease risk prediction, reduces duplicate support for the same medical event, ensures data sufficiency, and provides case evidence and data prompts.
Smart Images

Figure CN123161901A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of disease risk prediction methods, and in particular to a disease risk prediction method and system based on artificial intelligence. Background Technology
[0002] Medical information systems continuously accumulate diagnostic, examination, laboratory, medication, vital sign, and follow-up records. These longitudinal records reflect changes in disease risk throughout the treatment process. Artificial intelligence-based disease risk prediction can extract risk data from these longitudinal records, providing auxiliary information for chronic disease management, complication screening, and follow-up prioritization.
[0003] Current disease risk prediction methods typically encode medical events into time series and then use recurrent neural networks, Transformer encoders, survival analysis networks, and patient similarity retrieval to form risks. Patient similarity retrieval usually selects neighboring cases based on case feature distance and then uses the outcome ratio of neighboring cases to assist in the prediction of the current case.
[0004] Longitudinal medical records suffer from irregular sampling and varying record density. Single case vector distance can easily misclassify cases with a large number of medical records as similar cases. Searching for positive and negative cases separately makes it difficult to ensure that the references on both sides have similar medical conditions. The same current medical event can also be reused by reference cases with opposite outcomes, resulting in a lack of competitive relationships and insufficient data to indicate disease risk. Therefore, an artificial intelligence-based disease risk prediction method and system is proposed. Summary of the Invention
[0005] In view of the aforementioned existing problems, the present invention is proposed.
[0006] Therefore, this invention provides an artificial intelligence-based disease risk prediction method that forms witness case pairs from historical cases with comparable treatment conditions and opposite target disease outcomes, enables a shared source quality of the same treatment event to be competitively allocated in a time-order-preserving manner among positive support, negative support, and unallocated quality, and determines the output state of the target disease risk based on the explanatory power and risk divergence of multiple current witness case pairs.
[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a disease risk prediction method based on artificial intelligence, comprising, S1. The medical data processing server obtains the longitudinal diagnosis and treatment records of historical cases and cases to be predicted, extracts the content of diagnosis and treatment events and the time of occurrence of diagnosis and treatment from the longitudinal diagnosis and treatment records, and forms a historical diagnosis and treatment event sequence and a current diagnosis and treatment event sequence based on the time of occurrence of diagnosis and treatment. S2. The medical data processing server forms baseline constraint features and observation opportunity features based on the historical diagnosis and treatment event sequence. Based on the baseline constraint features and observation opportunity features, it determines the degree of witness matching between positive and negative historical cases and forms witness case pairs based on the degree of witness matching. S3. The medical data processing server forms positive witness difference capacity and negative witness difference capacity based on the differences in diagnosis and treatment events between positive and negative witness cases in witness case pairs. It forms positive transport cost and negative transport cost based on the differences between historical case diagnosis and treatment events and the diagnosis and treatment events of positive and negative witness cases. Based on the positive witness difference capacity, negative witness difference capacity, positive transport cost, and negative transport cost, it performs time-order-preserving competitive allocation of shared source quality of historical case diagnosis and treatment events, forming positive transport allocation, negative transport allocation, unallocated quality, and witness risk. It also trains a pairwise witness competitive transport neural network based on the target disease outcome record to form training completion parameters. S4. The medical data processing server forms current baseline constraint features and current observation opportunity features based on the current diagnosis and treatment event sequence. Based on the current baseline constraint features and current observation opportunity features, it determines multiple current witness case pairs. Based on the current diagnosis and treatment event sequence, current witness case pairs, and training completion parameters, it forms current witness risk, current unassigned amount, and local support amount for diagnosis and treatment events. S5. The medical data processing server forms a witness weight based on the current witness matching degree and the current unallocated amount. Based on the witness weight and the current witness risk, it forms the target disease risk, witness coverage degree and risk divergence degree. Based on the witness coverage degree and risk divergence degree, it forms a witness insufficiency indicator. S6. The medical data processing server generates disease risk prediction results based on the target disease risk, witness coverage, local support for diagnosis and treatment events, and witness deficiency indicators.
[0008] Secondly, the present invention provides a disease risk prediction system based on artificial intelligence, comprising, The diagnosis and treatment event sequence formation module receives longitudinal diagnosis and treatment records of historical cases and cases to be predicted. The module extracts the content of diagnosis and treatment events and the time of occurrence of diagnosis and treatment from the longitudinal diagnosis and treatment records, and forms historical diagnosis and treatment event sequences and current diagnosis and treatment event sequences. The witness case pair formation module receives historical medical event sequences. Based on the historical medical event sequences, the witness case pair formation module forms baseline constraint features and observation opportunity features. Based on the baseline constraint features and observation opportunity features, it forms the witness matching degree and forms witness case pairs based on the witness matching degree.
[0009] The competitive transport neural network training module receives witness case pairs and historical medical event sequences. The competitive transport neural network training module sequentially forms medical event representations, shared source quality, positive witness difference capacity, negative witness difference capacity, positive transport cost, and negative transport cost. Then, it competitively allocates the results in an order-preserving manner based on the completion time of the formed results, and forms training completion parameters based on witness risk and target disease outcome records.
[0010] The current witness result formation module receives the current diagnosis and treatment event sequence, witness case pairs, and training completion parameters. The current witness result formation module forms multiple current witness case pairs and forms the current witness risk, current unassigned quantity, and local support quantity of diagnosis and treatment events based on the current diagnosis and treatment event sequence, multiple current witness case pairs, and training completion parameters.
[0011] The target disease risk formation module receives the current witnessed risk, the current unassigned amount, the local support amount of the diagnosis and treatment event, and the current witnessed matching degree. The target disease risk formation module forms the witnessed weight, and according to the witnessed weight, it forms the target disease risk, witnessed coverage, risk divergence degree, current diagnosis and treatment event comprehensive support amount, and witnessed insufficiency indicator in sequence.
[0012] The prediction result generation module receives the target disease risk, witness coverage, overall support from current medical events, and a witness insufficiency indicator. Based on the witness insufficiency indicator, the prediction result generation module determines the output status of the target disease risk and generates the disease risk prediction result.
[0013] The beneficial effects of this invention are as follows: This invention utilizes baseline constraint features and observation opportunity features to form witness case pairs with opposite outcomes for the target disease, ensuring comparability of diagnostic and treatment conditions for both positive and negative witness cases; this invention first reduces common diagnostic and treatment content in witness case pairs, then competitively allocates shared source quality of the same diagnostic and treatment event to positive witness cases, negative witness cases, and unallocated quality, reducing duplicate support for opposite outcomes; this invention continues to use the observation time length in the observation opportunity feature for treatment time normalization, ensuring data relay between case matching and time-order-preserving competitive allocation; this invention utilizes the current unallocated amount, witness coverage, and risk divergence to form a witness insufficiency indicator, enabling disease risk prediction results to simultaneously provide evidence of case witnesses and data sufficiency. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1This is an overall flowchart of an artificial intelligence-based disease risk prediction method in Example 1.
[0016] Figure 2 This is a schematic diagram of the structure of the pairwise witness competitive transport neural network in Example 1.
[0017] Figure 3 This is a schematic diagram of the shared source quality time-preserving competition allocation in Example 1.
[0018] Figure 4 This is a schematic diagram of the process for forming disease risk prediction results based on multiple current witnessed cases in Example 1. Detailed Implementation
[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0020] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0021] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0022] In the offline phase, the medical data processing server uses historical cases with recorded target disease outcomes to form witness case pairs and trains a pairwise witness competitive transport neural network. In the online phase, the medical data processing server uses the trained parameters to process the longitudinal medical records of the cases to be predicted.
[0023] Longitudinal diagnostic and treatment records are derived from electronic medical record systems, medical order systems, laboratory information systems, imaging information systems, vital sign data systems, and follow-up data systems. Target disease outcome records are derived from clinically confirmed diagnostic records, discharge summaries, and follow-up records. Positive historical cases are those that have achieved the target disease outcome within the disease prediction period, while negative historical cases are those that have not achieved the target disease outcome within the disease prediction period and whose effective follow-up time has reached the disease prediction period.
[0024] Example 1, referring to Figure 1 , Figure 2 , Figure 3 and Figure 4This is the first embodiment of the present invention, which provides a disease risk prediction method based on artificial intelligence, including the following steps: S1. The medical data processing server obtains the longitudinal diagnosis and treatment records of historical cases and cases to be predicted, extracts the content of diagnosis and treatment events and the time of occurrence of diagnosis and treatment from the longitudinal diagnosis and treatment records, and forms a historical diagnosis and treatment event sequence and a current diagnosis and treatment event sequence based on the time of occurrence of diagnosis and treatment. The medical data processing server collects diagnostic records, examination records, test records, medication records, vital sign records, and follow-up records for the same case according to the case identifier, and the collected records form the longitudinal diagnosis and treatment records for the corresponding cases.
[0025] The medical data processing server extracts the category, result, and time of occurrence of medical events from the longitudinal medical records. The category and result of the medical events together form the content of the medical events. The medical data processing server merges duplicate medical events with the same case identifier, category, time of occurrence, and source record identifier, and retains the results of the medical events that have been reviewed in the duplicate medical events.
[0026] The medical data processing server arranges and merges medical events according to their occurrence time, ensuring that each event retains both its content and occurrence time, resulting in medical events and their sequences. The expression is as follows:
[0027] in, For case indexing, For indexing medical events, For the first The number of medical events included in each case. Source: Case number The content of each medical event. The sequence of diagnosis and treatment events is derived from the time of occurrence of the corresponding diagnosis and treatment events. The sequence of diagnosis and treatment events for historical cases forms the historical diagnosis and treatment event sequence, and the sequence of diagnosis and treatment events for cases to be predicted forms the current diagnosis and treatment event sequence.
[0028] The medical data processing server sends historical medical event sequences into the witness case pair formation process and sends the current medical event sequence into the current witness case pair determination process.
[0029] S2. The medical data processing server forms baseline constraint features and observation opportunity features based on the historical diagnosis and treatment event sequence. Based on the baseline constraint features and observation opportunity features, it determines the degree of witness matching between positive and negative historical cases and forms witness case pairs based on the degree of witness matching. The medical data processing server forms baseline constraint features based on case attributes that are located before the prediction start point in the historical medical event sequence and have been determined at the start of disease prediction. The baseline constraint features include demographic attributes, past disease status, and past treatment status as specified by the data dictionary of the target disease prediction task.
[0030] The medical data processing server continues to form observation opportunity features based on the historical sequence of diagnosis and treatment events after the prediction starting point. The observation opportunity features include the length of observation time, the number of diagnosis and treatment events, the time interval between adjacent diagnosis and treatment events, and the distribution of diagnosis and treatment data sources. The observation opportunity features do not include the disease risk direction corresponding to the diagnosis and treatment event results.
[0031] The medical data processing server standardizes baseline constraint features and observation opportunity features using the median and interquartile range of corresponding features from historical training data, respectively. Based on the standardization results, it determines the degree of witness matching between positive and negative historical cases, and generates witness case pairs with positive and negative witness case indices through bidirectional nearest-neighbor matching. The expression is as follows:
[0032] in, For the index of historical positive cases, For negative historical case index, and Derived from standardized baseline constraint features, and Derived from the characteristics of observation opportunities that have been standardized. This represents a vector formed by concatenating baseline constraint features and observation opportunity features along their respective feature dimensions. and For reverse matching search index, This is an indicator function that takes a value of 1 if the condition is true and zero if the condition is false. To witness the case against the index, For the first Index of positive witness cases in a pair of witness cases, For the first Index of negative witness cases in a pair of witness cases, It is a 2-norm.
[0033] The medical data processing server retrieves the historical medical event sequences corresponding to positive and negative witness cases from the historical medical event sequences based on the witness case pair index. The medical data processing server then sends the witness case pairs, the historical medical event sequences corresponding to positive and negative witness cases, and the target disease outcome records into the pairwise witness competitive transport neural network training process. The historical case identifiers used for training are not included in the same witness case pairs used in the same training session.
[0034] S3. The medical data processing server forms positive witness difference capacity and negative witness difference capacity based on the differences in diagnosis and treatment events between positive and negative witness cases in witness case pairs. It forms positive transport cost and negative transport cost based on the differences between historical case diagnosis and treatment events and the diagnosis and treatment events of positive and negative witness cases. Based on the positive witness difference capacity, negative witness difference capacity, positive transport cost, and negative transport cost, it performs time-order-preserving competitive allocation of shared source quality of historical case diagnosis and treatment events, forming positive transport allocation, negative transport allocation, unallocated quality, and witness risk. It also trains a pairwise witness competitive transport neural network based on the target disease outcome record to form training completion parameters. The paired witness competitive transport neural network comprises a diagnostic event encoding layer, a paired competitive transport layer, a support aggregation layer, and a risk output layer. The diagnostic event encoding layer generates diagnostic event representations, the paired competitive transport layer generates positive transport allocations, negative transport allocations, and unallocated quality, the support aggregation layer generates support quantities, and the risk output layer generates witness risks.
[0035] The diagnostic event coding layer uses the existing Transformer encoder. It takes the diagnostic events generated in step S1 as a unified input and processes historical case diagnostic events, positive witness case diagnostic events, and negative witness case diagnostic events separately using shared coding parameters. This yields representations of historical case diagnostic events, positive witness case diagnostic events, and negative witness case diagnostic events, expressed as follows:
[0036] in, Index of clinical events for positive witness cases Index of clinical events for negative witness cases. To use the parameters to be trained The diagnostic event coding layer, and The first one, formed in step S2 respectively The three witnessed cases and three treatment events indicate that they jointly entered the process of forming shared source quality and basic receiving capacity.
[0037] The clinical event coding layer uses a single-source quality scoring function to process the representations of three clinical events, ensuring that all clinical events from historical cases share a normalized quality, and that clinical events from positive and negative witness cases each acquire a basic reception capacity, expressed as follows:
[0038] in, For parameters to be trained Updated source quality scoring function, For summation indexes of treatment events for the same case, and The number of clinical events corresponding to positive and negative witness cases, respectively. As an exponential function, the shared source quality enters the time-ordered competitive allocation, and the basic reception capacity of positive witness case diagnosis and treatment events and the basic reception capacity of negative witness case diagnosis and treatment events enter the common diagnosis and treatment content reduction process.
[0039] Paired competing transport layer comparison For each pair of witness cases, the representation of positive and negative witness case treatment events is first formed by creating the semantic difference between each witness case treatment event and the most recent treatment event on the other side. Then, the corresponding basic reception capacity is reduced using the semantic difference to obtain the positive witness difference capacity and the negative witness difference capacity, expressed as follows:
[0040] in, For parameters to be trained Updated semantic projection matrix of diagnosis and treatment events. and Formed by the nearest semantic distance, To establish a witness-based differential scale, the witness-based differential scale is calculated as the median semantic distance between the diagnostic and treatment events of positive and negative witness cases in independently validated cases. This indicates taking the minimum value; common diagnostic content corresponds to smaller semantic differences and smaller reception capacity, while unilateral diagnostic content corresponds to larger reception capacity.
[0041] The observation time length in the observation opportunity feature is further used to normalize the diagnosis and treatment occurrence time. The paired competitive transport layer forms positive transport cost and negative transport cost based on the normalized diagnosis and treatment occurrence time and the three diagnosis and treatment events, expressed as follows:
[0042] in, The first one specified for the target disease prediction task The starting point for predicting individual cases Source: The length of observation time in the observation opportunity characteristics of individual cases and Using the same source, , and To correspond to the normalized occurrence time of medical events, The treatment time difference scaling parameter is the ratio of the median semantic distance to the normalized median treatment time difference in the independent validation data. This indicates taking the absolute value.
[0043] The medical data processing server establishes a competitive allocation constraint relationship based on shared source quality, positive witness variance capacity, and negative witness variance capacity. This competitive allocation constraint relationship conserves the shared source quality of the same historical case's diagnostic and treatment event across positive transport allocation, negative transport allocation, and unallocated quality, and limits the quality of receiving diagnostic and treatment events for both positive and negative witness cases. The expression is as follows:
[0044] in, For the first The first historical case The number of medical events was allocated to the first The first witnessed case in China The quality of diagnosis and treatment events for each positive witnessed case. To allocate corresponding historical case treatment events to the first The quality of diagnosis and treatment events for individual negative witness cases To address the unassigned quality of historical case treatment events, the medical data processing server further prohibits earlier historical case treatment events from bypassing later historical case treatment events, thus preventing reverse cross-transmission. The allocation results that satisfy the competitive allocation constraint and the time order constraint constitute the time-preserving competitive allocation range. .
[0045] Within the time-order-preserving competitive allocation range, the pairwise competitive transport layer forms a competitive transport objective based on the positive transport cost, negative transport cost, unallocated quality cost, and bilateral overlap cost of the same shared source quality. It then obtains the positive transport allocation, negative transport allocation, and unallocated quality that minimize the competitive transport objective, expressed as:
[0046] in, For unallocated quality cost metric, For bilateral repetition allocation of the inhibition scale, For entropy smoothing scale, It is a negative entropy function. This represents the allocation result that minimizes the competitive transport objective from the time-order-preserving competitive allocation range. All three scales are determined using independent validation data. The pairwise competitive transport layer uses existing differentiable Sinkhorn iterations to solve for the competitive transport objective. The special processing of the pairwise competitive transport layer lies in the shared source mass conservation, witness difference capacity constraint, time order constraint, and the participation of unallocated mass in a single competitive allocation.
[0047] The support pooling layer directly aggregates positive transport allocation, negative transport allocation, and unallocated quality, and calculates the quality difference for the same diagnostic or therapeutic event in two transport directions, yielding positive support, negative support, unallocated quality, and local support for the diagnostic or therapeutic event. The expressions are as follows:
[0048] in, , and These are formed by directly summing the corresponding transport allocations. Greater than zero indicates the first The number of clinical events tended to be positive witness cases. Less than zero indicates the first The clinical events tend to be negative witness cases. The four outputs collectively contribute to the witness risk formation and network training process.
[0049] The support aggregation layer forms the witness support difference based on the positive and negative support volumes, and the risk output layer forms the witness risk based on the witness support difference. The expression is as follows:
[0050] in, A positive number set according to the floating-point calculation precision of the medical data processing server. and For training parameters of the risk output layer, For the Sigmoid function, positive numbers This is to prevent the denominator from being zero when both positive and negative support values are close to zero. Unallocated value is not considered as negative support value; instead, it is incorporated into the determination of the witness weight and witness coverage for the current witness case pair.
[0051] The medical data processing server generates a risk monitoring loss based on the target disease outcome record and witness risk, a competitive exclusion loss based on the overlap of positive and negative transport assignments from the same shared source, and a witness direction calibration loss based on the complementarity of witness risks before and after exchanging positive and negative witness cases. These three losses together form the training completion parameters, expressed as:
[0052] in, The number of combinations of historical cases and witness cases used for training, For the first Target disease outcome label for each historical case In exchange for the first The witness risk arising from positive and negative witness cases in a pair of witness cases and The loss balance parameters were determined using independently validated data. The natural logarithm function is used to train the parameters. This includes parameters for the diagnosis and treatment event encoding layer, source quality scoring function parameters, diagnosis and treatment event semantic projection matrix, and risk output layer parameters, as well as parameters after training. Proceed to the process of handling cases to be predicted.
[0053] S4. The medical data processing server forms current baseline constraint features and current observation opportunity features based on the current diagnosis and treatment event sequence. Based on the current baseline constraint features and current observation opportunity features, it determines multiple current witness case pairs. Based on the current diagnosis and treatment event sequence, current witness case pairs, and training completion parameters, it forms current witness risk, current unassigned amount, and local support amount for diagnosis and treatment events. The medical data processing server forms relationships based on the features established in step S2, and generates current baseline constraint features and current observation opportunity features according to the current sequence of diagnostic and treatment events. The observation time length in the current observation opportunity features is further used for normalizing the occurrence time of the current diagnostic and treatment events.
[0054] Medical data processing server according to the first The baseline constraint features of positive and negative witness cases in each witness case pair are used to form baseline constraint feature centers, and the observation opportunity feature centers are formed based on the standardized observation opportunity features of positive and negative witness cases. The current witness match degree is then determined based on these two feature centers, expressed as follows:
[0055] Among them, subscript Indicates cases to be predicted. and These are derived from the standardized current baseline constraint features and current observation opportunity features, respectively. , , and The first one, formed in step S2 respectively One witness case pair, Proceed directly to the selection of current witness cases and the formation of witness weights.
[0056] The medical data processing server selects a certain number of witness case pairs from the independent verification data according to the current witness matching degree from low to high, resulting in multiple current witness case pairs. The medical data processing server then combines the current diagnosis and treatment event sequence, the multiple current witness case pairs, and the training completion parameters formed in step S3. Common input pair witness competitive transport neural network.
[0057] Pairwise witness competitive transport neural networks utilize training to complete parameters The process sequentially executes diagnostic event coding, shared source quality formation, witness-based collaborative diagnostic content reduction, transport cost formation, and time-order-preserving competitive allocation. The same processing relationship directly forms the current witness risk for each current witness case pair. Current unallocated amount and local support for diagnosis and treatment events The degree to which the three results match the current witnesses Together they enter the multi-witness aggregation process.
[0058] S5. The medical data processing server forms a witness weight based on the current witness matching degree and the current unallocated amount. Based on the witness weight and the current witness risk, it forms the target disease risk, witness coverage degree and risk divergence degree. Based on the witness coverage degree and risk divergence degree, it forms a witness insufficiency indicator. The current witness match reflects the comparability of the predicted case and the corresponding current witness case pair in terms of baseline constraint characteristics and observation opportunity characteristics, while the current unassigned amount reflects the degree to which the corresponding current witness case pair cannot explain the current sequence of diagnostic events.
[0059] The medical data processing server simultaneously uses the current witness matching degree and the current unassigned amount to form a witness weight, giving higher witness weights to current witness case pairs with lower current witness matching degrees and lower current unassigned amounts. The expression is:
[0060] in, For the current number of witnessed cases, For the current witnessed cases, summation index, To establish a witness match temperature scale, the witness match temperature scale is taken as the median of the current witness match level in the independent validation data. A positive number set according to the floating-point calculation precision of the medical data processing server. To prevent the denominator from being zero when none of the current witnessed case pairs can explain the current diagnosis and treatment event sequence, the witness weight is directly incorporated into the formation process of target disease risk, witness coverage, and risk divergence.
[0061] The medical data processing server aggregates current witnessed risks based on witnessed weights to form target disease risks, aggregates the quality of allocated shared sources based on witnessed weights to form witnessed coverage, and forms risk divergence based on the weighted deviation of current witnessed risks relative to target disease risks. The expression is as follows:
[0062] in, Corresponding to the risk of a common target disease supported by multiple current witnessed cases, This reflects the weighted proportion of explanation that a current medical event can be provided by multiple currently witnessed cases. This reflects the differences in risk opinions among multiple current witness cases. All three results are used to determine insufficient witness coverage.
[0063] The medical data processing server generates a witness insufficiency flag based on witness coverage and risk disagreement, and aggregates the local support of the same current medical event relative to multiple current witness case pairs according to witness weights to obtain the comprehensive support of the current medical event, expressed as:
[0064] in, This is an indicator function that takes a value of 1 if the condition is true and zero if the condition is false. To witness the coverage of the boundary, The risk divergence boundaries are defined by parameters used in training. The corresponding independent verification data has been determined. When retrieving zero, the risk of the target disease is retained. Output the target disease risk value at a time when the condition is temporarily stopped. The positive and negative directions represent the first The current diagnostic events are generally biased towards positive and negative cases in multiple current witness case pairs.
[0065] The medical data processing server inputs the target disease risk, witness coverage, risk discrepancy, witness insufficiency indicators, and current diagnostic and treatment events into the disease risk prediction result formation process.
[0066] S6. The medical data processing server generates disease risk prediction results based on the target disease risk, witness coverage, local support for diagnosis and treatment events, and witness deficiency indicators.
[0067] When the insufficient witness indicator is set to zero, the medical data processing server forms a current witnessed risk range based on multiple current witnessed cases and their corresponding current witnessed risks, and determines the primary diagnostic and treatment event according to the absolute value of the comprehensive support quantity of the current diagnostic and treatment event. The medical data processing server combines the target disease risk, the current witnessed risk range, the witnessed coverage, the primary diagnostic and treatment event, and the support direction of the primary diagnostic and treatment event to form a disease risk prediction result.
[0068] When the witness deficiency indicator is selected, the medical data processing server stops outputting the determined target disease risk value and combines the current witness risk range, witness coverage, diagnosis and treatment events that cannot be fully explained by multiple current witness cases, and witness deficiency indications to form a disease risk prediction result.
[0069] After a new diagnosis and treatment event is added to the predicted cases, the medical data processing server updates the current diagnosis and treatment event sequence according to the relationship formed by the diagnosis and treatment events in step S1. The updated current diagnosis and treatment event sequence is then reconstructed according to the relay relationship from steps S4 to S6 to form the current witnessed case pairs, current witnessed risks, target disease risks, and witness deficiency indicators, and a disease risk prediction result corresponding to the newly added diagnosis and treatment information is generated.
[0070] Secondly, this embodiment also provides an artificial intelligence-based disease risk prediction system, including: The diagnosis and treatment event sequence formation module receives longitudinal diagnosis and treatment records of historical cases and cases to be predicted. The module extracts the content of diagnosis and treatment events and the time of occurrence of diagnosis and treatment from the longitudinal diagnosis and treatment records, and forms historical diagnosis and treatment event sequences and current diagnosis and treatment event sequences. The witness case pair formation module receives historical medical event sequences. Based on the historical medical event sequences, the witness case pair formation module forms baseline constraint features and observation opportunity features. Based on the baseline constraint features and observation opportunity features, it forms the witness matching degree and forms witness case pairs based on the witness matching degree.
[0071] The competitive transport neural network training module receives witness case pairs and historical medical event sequences. The competitive transport neural network training module sequentially forms medical event representations, shared source quality, positive witness difference capacity, negative witness difference capacity, positive transport cost, and negative transport cost. Then, it competitively allocates the results in an order-preserving manner based on the completion time of the formed results, and forms training completion parameters based on witness risk and target disease outcome records.
[0072] The current witness result formation module receives the current diagnosis and treatment event sequence, witness case pairs, and training completion parameters. The current witness result formation module forms multiple current witness case pairs and forms the current witness risk, current unassigned quantity, and local support quantity of diagnosis and treatment events based on the current diagnosis and treatment event sequence, multiple current witness case pairs, and training completion parameters.
[0073] The target disease risk formation module receives the current witnessed risk, the current unassigned amount, the local support amount of the diagnosis and treatment event, and the current witnessed matching degree. The target disease risk formation module forms the witnessed weight, and according to the witnessed weight, it forms the target disease risk, witnessed coverage, risk divergence degree, current diagnosis and treatment event comprehensive support amount, and witnessed insufficiency indicator in sequence.
[0074] The prediction result generation module receives the target disease risk, witness coverage, overall support from current medical events, and a witness insufficiency indicator. Based on the witness insufficiency indicator, the prediction result generation module determines the output status of the target disease risk and generates the disease risk prediction result.
[0075] In summary, the medical data processing server forms witness case pairs with opposite outcomes and comparable treatment conditions for the target disease based on historical medical event sequences. The pairwise witness competitive transport neural network reduces common medical content in the witness case pairs and enables time-order-preserving competitive allocation of the shared source quality of each medical event in the case to be predicted among positive transport allocation, negative transport allocation, and unallocated quality. The medical data processing server forms the target disease risk, witness coverage, risk divergence degree, and witness insufficiency indicator based on multiple current witness case pairs. This invention can avoid the same medical event repeatedly supporting opposite outcomes and provides case witness evidence and data sufficiency prompts for disease risk prediction results. It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A disease risk prediction method based on artificial intelligence, characterized in that: S1. Obtain longitudinal diagnosis and treatment records of historical cases and cases to be predicted, extract diagnosis and treatment events and the time of occurrence of diagnosis and treatment from the longitudinal diagnosis and treatment records, and form a historical diagnosis and treatment event sequence and a current diagnosis and treatment event sequence based on the time of occurrence of diagnosis and treatment; S2. Based on the historical diagnosis and treatment event sequence, baseline constraint features and observation opportunity features are formed. Based on the baseline constraint features and observation opportunity features, the witness matching degree between positive historical cases and negative historical cases is determined. Based on the witness matching degree, witness case pairs are formed. S3. Based on the differences in diagnostic and treatment events between positive and negative witness cases in the witnessed case pair, a positive witness difference capacity and a negative witness difference capacity are formed. Based on the differences between the diagnostic and treatment events of the cases and the diagnostic and treatment events of positive and negative witness cases, a positive transport cost and a negative transport cost are formed. Based on the positive witness difference capacity, the negative witness difference capacity, the positive transport cost, and the negative transport cost, a time-order-preserving competitive allocation of the shared source quality corresponding to the diagnostic and treatment events of the cases is performed, forming a positive transport allocation, a negative transport allocation, unallocated quality, and witness risk. S4. Based on the current diagnosis and treatment event sequence, form current baseline constraint features and current observation opportunity features. Based on the current baseline constraint features and current observation opportunity features, determine current witness case pairs. Input the current diagnosis and treatment event sequence and current witness case pairs into the trained pairwise witness competition transport neural network to form current witness risk, current unassigned amount, and local support amount of diagnosis and treatment events. S5. Based on the current witness matching degree and the current unallocated amount, a witness weight is formed. Based on the witness weight, a target disease risk and witness coverage degree are formed. Based on the deviation of the current witness risk from the target disease risk, a risk divergence degree is formed. Based on the witness coverage degree and the risk divergence degree, a witness insufficiency indicator is formed. S6. Based on the target disease risk, witness coverage, local support for diagnosis and treatment events, and signs of insufficient witness coverage, a disease risk prediction result is generated.
2. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: Based on case identifiers, longitudinal medical records are collected, and the categories, results, and times of occurrence of medical events are extracted. Duplicate medical events are merged and sorted according to the times of occurrence to form a historical sequence of medical events and a current sequence of medical events.
3. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: Baseline constraint features are formed based on case attributes before the prediction start point, observation opportunity features are formed based on medical records after the prediction start point, the degree of witness matching between positive and negative historical cases is determined based on the baseline constraint features and observation opportunity features, and witness case pairs are formed based on the two-way matching relationship.
4. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: The diagnostic event coding layer, which shares input parameters for case diagnosis events, positive witness case diagnosis events, and negative witness case diagnosis events, forms a case diagnosis event representation, a positive witness case diagnosis event representation, and a negative witness case diagnosis event representation. Based on the closeness between the positive witness case diagnosis event representation and the negative witness case diagnosis event representation, a positive witness difference capacity and a negative witness difference capacity are formed. Based on the differences between the case diagnosis event representation and the positive witness case diagnosis event representation and the negative witness case diagnosis event representation, a positive transport cost and a negative transport cost are formed.
5. The disease risk prediction method based on artificial intelligence as described in claim 4, characterized in that: Under the conditions that the quality of shared source is not repeatedly allocated, the quality of positive witness cases and negative witness cases received does not exceed the capacity of positive witness difference and the capacity of negative witness difference respectively, and the time order of diagnosis and treatment events is maintained, positive transport allocation, negative transport allocation and unallocated quality are formed, and positive support quantity, negative support quantity, unallocated quantity and witness risk are formed based on the positive transport allocation, negative transport allocation and unallocated quality.
6. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: The monitoring witness risk is recorded based on the target disease outcome. A competitive exclusion loss is formed based on the degree of repeated allocation of shared source quality to positive and negative witness cases based on the same case diagnosis and treatment event. A witness direction calibration loss is formed based on the degree of complementarity of witness risk before and after exchanging positive and negative witness cases. Paired witness competitive transport neural networks are trained based on the monitoring results of the target disease outcome, the competitive exclusion loss, and the witness direction calibration loss.
7. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: The current witness matching degree is determined based on the current baseline constraint characteristics and the current observation opportunity characteristics. The current witness case pair is determined based on the current witness matching degree. The trained pairwise witness competitive transport neural network is used to form the current witness risk, the current unassigned amount, and the local support amount of the diagnosis and treatment event.
8. The disease risk prediction method based on artificial intelligence as described in claim 1, characterized in that: Witness weights are formed based on the current witness matching degree and the current unallocated amount. Target disease risk and witness coverage are formed based on the witness weights. Risk divergence degree is formed based on the deviation of the current witness risk from the target disease risk. Witness insufficiency flag is formed based on the witness coverage and risk divergence degree. When the witness insufficiency flag is formed, the output of the determined target disease risk value is stopped.
9. A disease risk prediction system based on artificial intelligence, based on the disease risk prediction method based on artificial intelligence according to any one of claims 1 to 8, characterized in that: A diagnosis and treatment event sequence formation module, which forms historical diagnosis and treatment event sequences and current diagnosis and treatment event sequences; A witness case pair formation module, which forms witness case pairs; A pairwise witness competing transport neural network module, wherein the pairwise witness competing transport neural network module forms witness risk; The current witness result formation module generates the current witness risk. A target disease risk formation module, which forms a target disease risk and a sign of insufficient witnessing; A disease risk prediction result generation module generates disease risk prediction results.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the disease risk prediction method based on artificial intelligence as described in any one of claims 1 to 8.
